How to Find, Partition, and Format Unmounted HD

Okay, much of this confusion was my fault.  I can now see the Seagate HD.  The answer was in the BIOS.  I have an ASUS Aura Sync TUF Gaming Z490-Plus (WI-FI) motherboard.
While booting, press F2 to enter the BIOS.  Press F7 to enter advanced mode.  Select "Advanced" from the menu on top.  Select "PCH Storage Configuration".  Select "SATA Mode Selection".  (I mistakenly thought the HD was on a PCIe bus.  As I understand it, the Seagate HDD is designed for the SATA bus only, so no jumper is involved.)  By default the SATA Mode Selection is "Intel RST Premium With Intel Optane System Acceleration (RAID)).  I changed it to ACHI.  I can now see the Seagate HD in gparted.
My use of SSDD was my inexperience with solid state drives.  I read an article which used that acronym when referring to a solid state drive.  As I understand it now, the SSD acronym is commonly used.  Again, my mistake.
Happy day, I can now see the drive using gparted.  Thanks, Stephen, for all the help.  I appreciate it very much.  You got me thinking.


Ubuntu boots quickly but is very slow loading X windows

I have taken to disabling networking before I shut down/suspend.

Desktop environment now loads in less than 10 seconds after login, then I enable networking, which is almost always instantaneous.

Prior to doing this I had the same issues as you, where from login to a usable desktop was taking almost a minute under 12.04 whether I used Ubuntu, Gnome or KDE.


The anti-cheat system will not allow you to play over wine or PlayOnLinux.
But you can run a KVM+QEMU high-efficiency virtual machine with Windows installed that should let you play with good performance.


problem install ubuntu through windows store

The message in the screen image says that you need a newer version of Windows 10.

You can download Ubuntu and using the instructions on that website, create a live USB from which you can try Ubuntu, or install Ubuntu on your system.


What does the '|' (vertical bar) character mean in a Terminal command?

The vertical bar | is commonly referred to as a "pipe". It is used to pipe one command into another. That is, it directs the output from the first command into the input for the second command. So your explanation is quite accurate.


Upgrade from 18.04 to 19.04 with out updating all softwares

You cannot upgrade from 18.04 to 19.04.

Ubuntu does not allow jumping over versions while upgrading (except for LTS to LTS). You have to go from 18.04 to 18.10 and then 18.10 to 19.04.

However Ubuntu 18.10 reached its end of life last week. So you can't upgrade to 18.10. And therefore you cannot upgrade to 19.04.

LTS to LTS Upgrade

If you want to continue to use some software specific to 18.04 then do not upgrade to newer versions of Ubuntu. 18.04 is LTS, and you will be able to upgrade directly to 20.04 LTS next year in July when 20.04.1 comes out.

Or you can continue with Ubuntu till April 2023, its end of life. In March 2023 you can upgrade to Ubuntu 20.04 LTS and then immediately upgrade to 22.04 LTS if you want the latest LTS version available then.

No holding back packages through upgrade to new version of Ubuntu

No. You will get the same message you got now

Please install all available updates for your release before upgrading

when you try to upgrade from 18.04 LTS to 20.04 LTS.

Ubuntu upgrade process requires that all packages are up-to-date from the current repository before it allows you to upgrade to the next version of Ubuntu.

About OpenJDK-8-jdk and OpenJDK-11-jdk

It is my understanding that both can be installed on the same machine at the same time. You can use the following command to switch between the two versions of Java:

sudo update-alternatives --config java

This will show you the list of Java versions currently installed and allow you to choose which one to use. Run the same command again and choose a different version if you want to switch.

Hope this helps


Is it possible to store configuration values in a webapp?

You can use HTML Storage for configuration management. This is not Ubuntu specific. For example:

// When user decides to have the application print "FOO" on startup
localStorage["print_FOO"] = true;

// And then later, when the application launches in another session
if (localStorage["print_FOO"]) {
    alert("FOO");
}

You can read about local storage in more detail at Dive into HTML5.


EasyBCD, Windows 8 Bootloader, and GRUB2 Help?

I do not have an answer to your first question. In any case, on this site it is recommended to ask ONE question at a time.

Regarding the second, you can update grub by typing in a terminal gksudo gedit /etc/default/grub Change the line GRUB_TIMEOUT=10 to GRUB_TIMEOUT=0. Then run sudo update-grub.

If in the future you need to access the grub menu, press shift and the menu should show.


Where can I download the php55 (or later) deb for Ubuntu 14.04?

On your offline machine run:

sudo apt-get install php5 --print-uris -y | grep -o http.*.deb

it will print all necessary stuff that are match to your running Ubuntu with all dependencies etc which you need to download. download all them at a machine with Internet connection.

Then move them to your offline machine in this path:

/var/cache/apt/archives

After all run:

sudo apt-get install php5

If your ubuntu machine sources have never been updated so it will not work for you. then try using an standalone utility like xampp:

https://www.apachefriends.org/download.html

Both php5 and php7 are available for Linux.


Can't install GNOME Shell extensions from the extensions.gnome.org site

This is a known issue with the extension site. I get the same message in Chrome. Try the site in Firefox and it should work fine.


Ubuntu 16.04 translation status (case study)

I can only answer authoritatively with respect to the Ubuntu Official documentation on help.ubuntu.com, however for Ubuntu desktop, the same stuff is also in the yelp based help package.

The Ubuntu Serverguide is published in about 64 languages, however only French Italian and Russian seem to somewhat keep up. It is published in all languages regardless of the percentage complete on the translations status, meaning some languages are basically just U.S. English. There were very late changes to the serverguide this cycle, and so translations are behind. We published what we had yesterday anyhow. We are still struggling to get subject matter expert input for several chapters which are obsolete, Samba for example. There will need to be point releases. The PDF version of the serverguide is only published in US English.

Since the serverguide is NOT a released package we not bound by any SRU (Stable release Update) rules. Also, it has been our observation, over a number of years now, at least with respect to the serverguide, that translators work on it when they feel so inclined and not to any deadline. Therefore I always offer to just to an update publish whenever asked to, rather on some fixed timeline. We have never been asked.

The desktop help documents are also published as a package and as part of the language pack, and therefore must adhere to the release schedule and SRU rules. It is published in about 66 languages, regardless of the translations percent complete. Basically, a snapshot of translations is taken at the release schedule deadline, but work can continue thereafter towards a point release. Late changes to the naming of "Ubuntu Software" from "Software" which had just changed from "Ubuntu Software Center" missed all deadlines and will have to be an SRU update, probably about the 16.04.1 date.

By the way, that link you gave for the translations status, does not include the serverguide, something that has annoyed me for years now.


You can do this at X11/Xlib level. See this question for how to handle global hotkeys correctly in C: Global Hotkey with X11/Xlib

Now you only need some Python Xlib library; python-xlib looks like a reasonable choice.


This is an easy one...
Backup any data on your Ubuntu partition, as this procedure could corrupt or loose data.

Boot to a Ubuntu Live DVD/USB in "Try Ubuntu" mode
start gparted from the Unity dashboard
right-click on sda8 in the lower pane and select resize
hover the mouse pointer over the left side of sda8 until it turns into a directional pointer
click and drag the left side of sda8 all the way left
click OK to close the move/resize window
click the Apply icon


Can Wubi install the 64-bit version of Ubuntu?

Wubi will automatically download and install the 64-bit version of Ubuntu if you are running Windows 64-bit.


How can I auto-skip a certain disk on boot up?

The simplest solution would be to use the noauto flag in your /etc/fstab file. This will prevent the OS from mounting a given partition completely.
For example:
/dev/sda3    none    ntfs-3g    defaults,noauto    0    0

or:
UUID=b72e8406-34e8-4e38-a422-e4ab6e35e6b8 none    ntfs-3g    defaults,noauto    0    0

If you choose to do this by UUID, you can list the values for each mount point in your system with sudo blkid, which will return something like:
/dev/nvme0n1p3: UUID="b72e8406-34e8-4e38-a422-e4ab6e35e6b8" TYPE="swap" PARTUUID="4b9f203e-de2c-4cc0-a9a6-2ac423b1b0e9"
/dev/nvme0n1p2: UUID="b33696cc-f2db-4dd4-9a63-15028cf5afc4" TYPE="ext4" PARTUUID="cd2a90a1-5a6b-4468-a4da-0a2f7c2a8f54"
/dev/nvme0n1p1: UUID="D3F2-9195" TYPE="vfat" PARTUUID="4e505bb1-c12b-4c71-afdf-42ac9a2f721b"
/dev/mmcblk0p1: UUID="dd5dffcf-9e3b-43eb-82a2-36137fc249be" TYPE="crypto_LUKS" PARTUUID="7688e21d-c1d3-4f02-95ac-5e816e2c1e05"

Note: I've removed all the squashfs records from the list just to keep it clean.
This should give you a faster boot time while also ensuring the Windows-only partitions are not visible in the Ubuntu UI.


Filter consecutive identical characters using Sed and Grep

Using sed:

sed -n '/\(^\| \)\([A-Za-z]\)\2\2\($\| \)/p' file

Using grep:

grep '\(^\| \)\([A-Za-z]\)\2\2\($\| \)' file

\(^\| \): matches either the start of the line or a  character;
\([A-Za-z]\): matches and groups any upper-case or lower-case alphabetical character;
\2: matches the previously grouped character;
\2: matches the previously grouped character;
\($\| \): matches either the end of the line or a  character;

~$ cat file
aa word word
word wordaaaword word
aAa word word
aaa word word
word bbb word
word word ccc
aaaa word word
~$ sed -n '/\(^\| \)\([A-Za-z]\)\2\2\($\| \)/p' file
aaa word word
word bbb word
word word ccc
~$ grep '\(^\| \)\([A-Za-z]\)\2\2\($\| \)' file
aaa word word
word bbb word
word word ccc


I had a same problem with running of steam.

You need to execute lines below:

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get upgrade

This will upgrade your libstdc++6:i386 and amd64 to libstdc++.so.6.0.22

After that you must execute:

ln -sf /usr/lib/i386-linux-gnu/libstdc++.so.6 $HOME/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libstdc++.so.6

If the problem appeared again then just execute last command once again. It's working for me.


Grub no longer recognizes Windows 7 after installing Windows 8

To dual-booting between Windows 8 and Windows 7 you must install the older OS first, make room for the second OS, and then install the newer OS.

Once Windows 8 is installed, you’ll find a new boot menu that appears when the PC starts up.

You must use this menu to pick between the Microsoft OSes installed on the PC.


Where are Nagios 3 Config Files in Ubuntu 12.04?

They're in /etc/nagios3/ and /etc/nagios3/conf.d/. Here's some background information which will help you to identify it for other software/packages as well.

The plain (upstream) version of software installs itself in /usr/local prefix path usually to avoid collision with any version installed by the distribution's package management. I suggest to take a look what Ubuntu (Debian) package maintainers had in mind by looking at the file list of the package you installed:

$ dpkg -L packagename

For Nagios3, the package nagios3 is just a metapackage, so use nagios3-core and nagios3-common. This will get you to the /etc/nagios3/ path for configuration. :-)

I also recommend you to read /usr/share/doc/packagename/README.Debian files that come with packages which includes information for users on what is Debian/Ubuntu specific about it. For Nagios3 that would have included the information you're looking for as well.

  Welcome to the nagios3 package for Debian GNU/Linux!

  Below are some debian-specific notes which may be of help to you.

  [...]

I hope this makes clear that specific paths (and other build configurations) in the documentation upstream should not be taken too literally and always be checked for changes by your distribution (Ubuntu) package maintainers.


I found the problem. I download oracle installer and unzipped the file on windows 7 laptop. And copied that to Ubuntu. So that is the problem cause. Dont unzip file with windows 7. İf you want to use a file with Ubuntu unzip them in ubuntu OS computer...


If you don't need the sbt thing you can remove it

In Settings>Software&Updates select second tab ie Other Software

Select the entry https://dl.bintray.com/sbt/debian and click remove

If you just want to get rid of the error

use sudo apt update --allow-insecure-repositories


How can I play videos on Ubuntu? using any player

Try running the following command:

sudo apt-get update && sudo apt-get install -f

This will update your repo cache and then will fix most dependency issues.

If this still fails, please try running the below command and then running the above command immediately after.

sudo apt-get update && sudo apt-get dist-upgrade

This will update all of your software and ensure that you're running on the latest version of Ubuntu.


How to configure bash to print exit status for every command?

The exit code from the last executed command is stored in the $? environment variable. So you just can add this variable to the default command prompt and you will always have the exit code printed there. The prompt is stored in the $PS1 environment variable. It is initially set in the /etc/bash.bashrc script and later in the $HOME/.bashrc.

So edit the line in $HOME/.bashrc (/etc/bash.bashrc would be system wide) from it's default value:

PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '

to this (for example):

PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w[$?] \$ '

So the default prompt in changed to:

user@host:/path/to/dir[0] $

The 0 in the brackets is your exit code, see:

user@host:~[0] $ ls
user@host:~[0] $ ls /root/
ls: cannot open directory /root/: Permission denied
user@host:~[2] $ ^C
user@host:~[130] $

For the meanings see http://www.tldp.org/LDP/abs/html/exitcodes.html


High memory utilization is quite normal on a Linux system. Ubuntu is no exception. It uses unused memory for disk caching to increase system performance. You can find a good explanation with some further detail here.

Slow speed is often more a function of DE weight (gnome is heavy) than distribution version. LXDE and XFCE are very light and can make even low quality or somewhat obsolete hardware deliver acceptable performance.

Other things that can drastically reduce system speed are failing or poorly performing storage devices, dusty or otherwise compromised cooling systems can lead to overheat conditions that will cause modern processors to reduce speed in an attempt at self preservation.

The output of commands like dmesg and grep "error"  /var/log/syslog can also provide clues as to what's going wrong in a system that doesn't perform as expected.

This is by no means a complete list, but it should give you some clues, and may very well lead you to new and more focused questions.

The memory leak bug you mention appears to now be squashed, However your vmstat output doesn't appear to indicate that you are effected by that bug.

According to your vmstat output your CPU is spending the majority of it's time idle, so the bottleneck isn't there. My best guess given the information available is either storage device or cooling system problems.


If you really need to use windows then go for a 2 partitions. Using wine and/or virtualbox inside ubuntu will be ok for most of the cases, but heavy applications like games and visual studio, it will definitely be too slow.


Tilda - Can I make it close on lose focus?

There's no such setting in Tilda, AFAIK.
You could hack similar behaviour using Compiz Widget Layer by specifying terminal window as "Widget Window".
Or you could check for another alternatives.
For example Stjerm supports "autohide" and is very lightweight. Two cons here:

Unlike Tilda, there's no configuration window, you have to specify all options through command-line or .Xdefaults file
Ubuntu package is very old, so you better download and compile stjerm yourself


iwl3945 vs. iwlwifi, what are the differences?

The iwl3945 module is a driver from the iwlwifi project.  The other drivers from the project are iwl4965 and iwlagn, which target different generations of the Intel Wifi hardware.

There was an older driver available for your card by the name ipw3945, but Ubuntu hasn't shipped with a kernel that featured the driver for some time (it was superseded by the newer iwlwifi drivers).


rEFind doal boot option disappeared after ubuntu 14 to 16 upgrade

You've encountered what I call a boot coup -- the update from Ubuntu 14[.04?] to 16[.04?] has made GRUB the default boot manager, bypassing rEFInd. rEFInd is probably still installed and can be made the default again in several ways, or there are other things you might do:

Use refind-mkdefault -- This script, which comes with rEFInd, will probably fix the problem. If you installed rEFInd in OS X, it won't be in the path from Ubuntu, so you'd need to find it on your OS X partition or obtain a version in Ubuntu. The most direct way is to download it from rEFInd's Sourceforge repository.
Use efibootmgr -- You can type sudo efibootmgr -v to see all your boot options and the current boot order (the BootOrder line). If you can figure out which option is rEFInd (it probably refers to refind_x64.efi), you can then change the boot order with the -o option, as in sudo efibootmgr -o xxxx[,yyyy,zzzz], where xxxx is the Boot#### option for rEFInd and subsequent numbers refer to alternative boot options. This is what refind-mkdefault does; the script just does it automatically.
Use bless -- If you can boot to OS X (by using Alt or Option as you power on the computer), you can use the bless utility in OS X to restore rEFInd as the main boot program. You'd follow steps 1, 2, and 8 in the manual rEFInd OS X installation procedure. Note that, if you're using a recent version of OS X, you might run into problems with SIP.
Re-install rEFInd -- You could install the rEFInd PPA or Debian package in Ubuntu; or use the Alt or Option key as you power on the computer to do a one-time boot to OS X and re-install rEFInd there. This option is overkill, and so might accidentally make a change you don't intend, but it can be relatively easy. On Macs, I recommend doing the re-installation from OS X if possible, although you might run into issues with SIP.
Keep using GRUB -- Presumably GRUB is controlling the boot process now. In theory, it should show you a boot menu that will enable booting either Ubuntu or OS X; however, it's not clear from your description if that's the case. If not, or if the OS X option doesn't work, GRUB Customizer might help you get it working better.

Your personal preferences and skill level come into play, but overall, I'd say you should try these options in more-or-less the order noted.


Thinkpad X1 Carbon 1st generation - third finger makes 2-finger scrolling jump

There is a question where similar problems are discussed (Adding a threshold to two-finger scrolling on touchpad). Also the documentation on https://help.ubuntu.com/community/SynapticsTouchpad may provide some help.


The answers in this question: Is there a way to install Ubuntu on usb pendrive as normal instalation (not live cd)? are also applicable to SD Cards. (Tested by me)

Pay special attention to this:

  Anyway I suggest you to disconnect all your hard disk drives in your
  computer, specially those which are having a OS installed (Windows,
  Linux, etc.) as you may finish having a multi-boot USB/SD Memory with
  GRUB and in certain cases the bootloader can be written in a different
  device, other than the USB Memory/SD Card.

Included in my answer here.

Good luck!


Firefox running very slow; Microphone does not work with Skype

Firefox running slow, you should try RAMBack, A Firefox's add-on that work fine for me! And may you check other things such as graphic driver or consider 12.10.


Random small icons missing in Gnome shell

I also landed in same issue. It was solved by simply changing icons to Yaru.
Open Gnome tweak > Apperance > select icons to Yaru or any other icon that works proper.


How to add custom sources to GNOME Music Player?

It seems to utilise 'Tracker' to find your music.

Open the "tracker-preferences" application, navigate to the 'Locations' tab, and add the location of your music. Apply the changes and close the window.

Tracker should immediately start scanning the new folders. You can follow this progress with tracker-control -f


Netplan-configured LXD host doesn't restore network config on reboot

Copied in solution as answer, as I missed it the first time I looked at this (in the comments)  Credit to @user4124, marked this as community wiki.

Install LXD (host only)

sudo apt remove --purge lxd lxd-client && apt install bridge-utils
sudo snap install lxd
sudo reboot
sudo lxd init

While installing, don't create network bridge.

Setup network for host

sudo nano /etc/netplan/01-netcfg.yaml

# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
  version: 2
  renderer: networkd
  ethernets:
    enp1s0:
      dhcp4: no
      dhcp6: no
  bridges:
    br0:
      dhcp4: no
      dhcp6: no
      interfaces:
        - enp1s0
      addresses: [ 192.168.0.2/24 ]
      gateway4: 192.168.0.1
      nameservers:
          addresses:
              - 192.168.0.1
              - 8.8.8.8
              - 8.8.4.4
      parameters:
          stp: false
          forward-delay: 0

sudo netplan --debug apply

Reboot and confirm that config is fine:

sudo reboot
ifconfig -a
ping google.com

Edit default profile to make sure only bridge is present in config, with no extra nic's

sudo lxc profile show default // add '> out.yaml' to output to file
sudo lxc profile edit default // add '< out.yaml' to read from file

Example out.yaml:

### This is a yaml representation of the profile.
### Any line starting with a '# will be ignored.
###
### A profile consists of a set of configuration items followed by a set of
### devices.
###
### An example would look like:
### name: onenic
### config:
###   raw.lxc: lxc.aa_profile=unconfined
### devices:
###   eth0:
###     nictype: bridged
###     parent: lxdbr0
###     type: nic
###
### Note that the name is shown but cannot be changed

config: {}
description: Default LXD profile
devices:
  br0:
    nictype: bridged
    parent: br0
    type: nic
  root:
    path: /
    pool: default
    type: disk
name: default
used_by:
- /1.0/containers/apache

Setup network for container

Run:

sudo lxc exec <container> bash
nano /etc/netplan/50-cloud-init.yaml

Insert:

network:
  version: 2
  ethernets:
    eth0:
      dhcp4: no
      dhcp6: no
      addresses:
        - 192.168.0.5/24
      gateway4: 192.168.0.1
      nameservers:
        addresses:
          - 192.168.0.1
          - 8.8.8.8

    netplan --debug apply


Unity will not load, ccsm settings don't stick

this happened to me on my hybrid graphics laptop.  I changed the driver from the default xorg driver to the fglrx driver and upon reboot--the unity bar and everything was missing.  I right clicked on the desktop to change the display to get the settings and changed back to the xorg driver and rebooted and it worked.


No network on LXC container running vivid on precise host

This might work. I had a similar problem: Fairly fresh and vanilla Ubuntu Wily (15.10) installation as host, and a newly created ubuntu lxc guest. Attached to the guest, and had no network connection. What worked for me was to do a

systemctl status -l lxc-net.service

on the host. Restarted the lxc guest, and the guest now got an IP address and a working network connection.


Is there Qt Creator documentation available in a ubuntu or debian package?

eike> AkivaAvraham: run "make -j1 docs" in your qt creator build directory

eike> and then in Qt Creator Options > Help > Documentation, add /shared/qtcreator/doc/qtcreator-dev.qch

eike> (that file is also in the shipped qt creator binaries from qt.io, but you have to register it manually


How to get Ubuntu to stop heating up so much

You may try to reduce load indeed. Start with tools like top or htop to determine which processes are straining the netbook the most and decide if all of them are necessary (some unnecessary or unwanted services are turned on by default). A more detailed answer could come if you post more info on culprits of (possible) high load.

Are you sure though that the OS is the cause of this? I didn't work with this particular model, but apparently according to reviewers at Amazon it frequently overheats. I don't think help with hardware is on topic in here and possible solutions depend very much on whether the machine is still within the vendor warranty period (as I guess you would not like to void the warranty).


Window list Panel Applet mouse shortcuts

The window list applet does not support this. A possible "solution" would be to try dockbarx and use that for managing windows. Please note though that this is unsupported.


How to turn IBus input method on after installing ibus-m17n for Bengali-avro?

Use "Prabhat" keyboard, which is better supported in Ubuntu, easy to type and no installation needed. Go to System Settings > Keyboard layout > Add (Click + sign) Bengali(India or Bangladesh)


Touchpad jerks on tap, makes double clicking a pain

Try creating the file .xinputrc in your home folder and paste this into it:

#!/bin/sh

SYN="SynPS/2 Synaptics TouchPad"
xinput set-prop "$SYN" "Synaptics Noise Cancellation" 26 26

This doesn't totally eliminate the problem, but for me, it corrects it substantially.

Maybe type xinput list to make sure your device is called exactly "SynPS/2 Synaptics TouchPad." Set the SYN variable in the script to whatever your touchpad is named.


Is it safe to delete the .jpg images in my music folder?

I would suggest to first move the files to some other location and observe if something is unusable. If nothing notable happens for quite a time, you can delete them permanently. Otherwise just restore the files.

Although, this approach is not always good, it works sometimes.


How can I prevent LibreOffice Calc from removing the plus (+) sign?

Simply add a apostrophe when entering your data - turns the cell into a text cell :)

'+888888

If you need to use the number and cannot have it as text, you need to create a number format for it.

Right click and select Format Cells... -> Numbers. Enter your format into the Format Code field. The easiest format would be +0, which will display your number with a + and keep it a number, so it can be used in formulas.


It's not a terminal command; it's about the contents of this file:

/etc/apt/sources.list.d/google-chrome.list

If you have a 64 bit installation, you should edit the file and change the last line to:

deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main

If you have a 32 bit installation, you'd better just delete the file. There won't be any further updates of Google Chrome for 32 bit.


Refind only shows recovery hd for mac osx, stages a "coup" when booting into mac osx

First, booting OS X through Recovery HD is normal, at least for recent installations of OS X. This method is a consequence of how Apple has chosen to design its system. Specifically, in the past, the OS X boot loader resided on the OS X root (/) partition; however, the firmware (and therefore rEFInd) cannot read this partition if it's encrypted or uses an LVM setup. As Apple switched to LVM by default a version or two ago, it had to put the boot loader elsewhere. Rather than put it on the EFI System Partition (ESP), like everybody else, Apple decided to put it on the Recovery HD partition. Because rEFInd reports the name of the volume from which the boot loader is loaded, you see this accurately represented in the menu.

As to the boot coup, your use of that term suggests you may have already read it, but if you haven't, please read my page on the subject. Persistent boot coups caused by OS X are extremely rare, in my experience. I have a couple of suggestions:

Automate the bless solution -- My page describes using bless to recover from a boot coup. You could create a short script that mounts your ESP, issues the bless command with appropriate options, and optionally unmounts your ESP, then call this script as a startup or login script. I'm not an expert on this aspect of OS X, but see references like this or this for information.
Re-install rEFInd on an HFS+ volume -- If you re-install rEFInd on a (non-LVM) HFS+ volume by using the --ownhfs option to refind-install, that might be enough to get OS X to stop with its boot coups. (This solution assumes that rEFInd is currently installed to the ESP. If it's already installed to an HFS+ volume, you might try switching it to an ESP-based installation.) This solution is likely to require shrinking your existing OS X installation by a small amount to make room for a dedicated rEFInd volume; however, if you happen to have a separate HFS+ partition that you use for user files or some other purpose, adding rEFInd to it might be possible.


Encrypted LVM with custom partition table

You are using the wrong installer

The normal Ubuntu Desktop installer is intended for use by folks who have never heard of LVM, and have no opinion on encryption.

So the choices offered are limited for experts like you.

Ubuntu offers several ways to customize your install in advanced ways. The easiest is the Alternate Installer. Don't be confused by the phrase '-server' in it; simply install your preferred desktop environment on top when your customization is complete.


Jungledisk Desktop not showing a window after 1st run

I had to restart my Ubuntu to enable the systray settings. I allowed all applications, and now I have truecrypt and junglediskdesktop in the tray. Finally. :-)

I used dconf-editor to set this. Here is a screenshot:


Before I install Ubuntu, I want to be sure that there are wireless drivers for my card. Where do I go to find these drivers?

Allow me to provide a little bit of info here.

A lot of manufacturers (Dell included) do not provide Linux drivers because they usually do not have them.  As well, a lot of drivers are readily available through a Google search.

Unfortunately, it is impossible to say where one should go for a driver, as we do NOT have your entire hardware list.  To that end, you should run Ubuntu in a Live environment (LiveCD or LiveUSB) and test things.  It would be able to determine whether you'd need additional drivers or not.


Why fixed address assigned to DHCP server doesn't work?

In the file /var/lib/dhcp/dhclient.leases you can see your dhcp leases.

When you flush this file that it is empty, you should get a new ip address. Type:

echo -n "" >/var/lib/dhcp/dhclient.leases

And then again:

dhclient -v eth0

If it still doesn't work, then I think your hostname is not sent via dhcp and the dhcp-server cannot fit the host-statement for you. In the file /etc/dhcp/dhclient.conf there is a directive called send host-name:

user@host:~# grep "send host-name" /etc/dhcp/dhclient.conf
send host-name "<hostname>";

In my case it's disabled. Enter your hostname in this statement to enable dhclient to send the host-name within the dhcp-request:

send host-name "sxalid-s";

If it still doesn't work,  please add the contents of /var/log/syslog (of the dhcp-server) during the dhcp request to your question.


Install proprietary video drivers if available via hardware drivers applet. If that doesn't work disable C6 sleep state for CPU in BIOS.


This is a kernel patch, it is used to make modifications to the kernel source code. After applying it, you would need to recompile the kernel (from the modified source code), which is not a trivial operation and which you probably don't want to do.


I was able to fix this issues by restarting the machine.
I think the problem was with cached configuration and starting a new session helped clear.

Modify the qtchooser configuration file

find the configuration file with command : locate qtchooser | grep conf
modify with your favorite editor: sudo gedit ${path}/qtchooser/qt5.conf like below:

/opt/Qt/5.9.9/gcc_64/lib
/opt/Qt/5.9.9/gcc_64

Start a new session


How to setup device mapper RAID on LVM on Ubuntu 12.04

See http://wiki.gentoo.org/wiki/Device-mapper#RAID1

Though I don't think you can boot off it and the management tools are pretty low level. If you can't manage it well then RAID just becomes a great way to lose your data :) It's nowhere near as convenient as using MD to create a RAID and then adding that MD block device as physical volume to a LVM volume group.


Have you installed the Nvidia (closed-source) drivers? Ubuntu uses the Nouveau (open-source) drivers out of the box, which do not support power management yet. This causes the GPU fan to run at 100% - noisy!


Desktop wakes from suspend at random (14.04)

The advice given by Jos and Rinzwind gave me a start, but did not fix the issue. I do not have an Ethernet cable connected, nor do I have WOL (this
actually didn't exist as an option in the BIOS) or Wake On Keyboard enabled.

I tried unplugging the mouse, a Logitech wireless with a USB reciever, before
putting the computer in suspend over the night - no wakeups!

Why didn't I think of this before? I always turn off my mouse when suspending
the pc. I didn't think it would cause any more problems.

So, how can one prevent the mouse/reciever from causing wake ups? First, run
the command cat /proc/acpi/wakeup. This will list devices that can cause a wake up.

$ cat /proc/acpi/wakeup
Device  S-state     Status      Sysfs node
P0P1    S4          *disabled   pci:0000:00:1e.0
USB1    S3          *disabled
USB2    S3          *disabled
USB3    S3          *disabled
USB4    S3          *disabled
USB5    S3          *disabled
USB6    S3          *disabled
USB7    S3          *disabled
RP01    S4          *disabled   pci:0000:00:1c.0
PXSX    S4          *disabled   pci:0000:01:00.0
RP02    S4          *disabled
PXSX    S4          *disabled
RP03    S4          *disabled
PXSX    S4          *disabled
RP04    S4          *disabled
PXSX    S4          *disabled
RP05    S4          *disabled   pci:0000:00:1c.4
PXSX    S4          *enabled    pci:0000:02:00.0
RP06    S4          *disabled
PXSX    S4          *disabled
RP07    S4          *disabled
PXSX    S4          *disabled
RP08    S4          *disabled
PXSX    S4          *disabled
PEG0    S4          *disabled
PEGP    S4          *disabled
PEG1    S4          *disabled
PEG2    S4          *disabled
PEG3    S4          *disabled
GLAN    S4          *disabled
EHC1    S4          *enabled    pci:0000:00:1d.0
EHC2    S4          *enabled    pci:0000:00:1a.0
XHC     S4          *enabled    pci:0000:00:14.0
HDEF    S4          *disabled   pci:0000:00:1b.0
PWRB    S3          *enabled

In the field Status you can see whether they can wake up the computer
(enabled) or not (disabled).

EHC1, EHC2 and XHCrepresent USB controllers. Obivously USB1 - USB7 as well,
but they are all disabled in my case. I can't go into specifics because I
don't know much about it.

I would think that PWRB (last line) represents the power button. It would be a good idea to leave it enabled, since you probably want to be able to wake your computer up by using the power button.

By giving the command sudo sh -c "echo EHC1 > /proc/acpi/wakeup" you toggle the setting for EHC1. If you run the command to list the devices again you will see that the setting for EHC1 has changed.

I tried this with the controllers EHC1, EHC2, XHC since I don't know
what controller controls what USB device.

For me, leaving EHC1 and XHCenabled and disabling EHC2 gives me the
result I wanted. Now neither the keyboard or the mouse (even if turned on) can
cause a wake up. I have to press the physical power button on the computer
itself.

Unfortunately the setting will be reset when you reboot. To combat this, you can put the code below in your /etc/rc.local. It must be edited using elevated privilegies: sudo gedit /etc/rc.local for example.

for device in EHC2
do
    if grep -q "$device.*enabled" /proc/acpi/wakeup
    then
        echo $device > /proc/acpi/wakeup
    fi
done

You can add more devices by changing the first line in the code: for device in EHC1 EHC2 XHC USB1 and so on. I found the script, written by user toojays.

This solved my issue.


unable to install kvm on ubuntu 16.04.02 lts dependencies

I had a similar problem and solved with:

sudo update-rc.d mountkernfs.sh defaults
sudo apt-get -f install


Display randomly goes into wrong position

Because Ubuntu 14.04 open source drivers come together with a peculiar video patch, the chances to install official drivers for ATI cards are slim sometimes and not so slim other times. I was under the impression that this patch error affects only NVIDIA video cards but it seems that ATI video cards can have the same issues.

Sometimes open source drivers work like a charm with ATI cards, and sometimes you get funny results like in your case. To fix the problem you are supposed to remove your ATI drivers from your system, remove xorg.conf, and after that reinstall xorg completely and finally reconfigure Xorg.

All this operations are better performed in the console terminal, and to get to the console you have to press Ctrl+Alt+F1 at login prompt, and login with your username and password. So it would be better to write down these commands on some piece of paper before actually running them.

  sudo apt-get purge fglrx*

  sudo rm /etc/X11/xorg.conf

And to reinstall xorg completely:

  sudo apt-get install --reinstall xserver-xorg-core libgl1-mesa-glx:i386 libgl1-mesa-dri:i386 libgl1-mesa-glx:amd64 libgl1-mesa-dri:amd64

immediately followed by:

  sudo dpkg-reconfigure xserver-xorg

and finally

  sudo reboot

The following is a well documented guide addressed to fixing the proprietary ATI drivers, the one I used to address your problem. I have no idea whether it will work for you, I never used ATI video cards but I think you should also read the comments to this guide because there are a few interesting suggestions in there too.


I had it removed using patget autoremove and cannot reinstall it due to dependencies issues :(
Your idea is good but I do not want to spend more time only for installing a program, unless someone finds a way to install it without messing up anything else.

I am still "glued" to AmaroK 1.4, but I recently tested out other players. My current choice (till I have tested some more) is Guayadeque. You should give it a try, if not already done. Last version seems stable and has all the features I liked on good old AmaroK.

I also made a comparison: http://socialcompare.com/en/comparison/linux-open-source-audio-players


How can I change settings in Evolution under Ubuntu 14.04?

I'm running the same version of Evolution and mine looks like this:

But I'm running on 14.04.3 Unity.

You can set the mail preferences directly in the config file:

nano ~/.config/evolution/sources/nnnnnn@$USER.source:

[Mail Submission]
TransportUid=1405846492.7444.1@fab-ux
SentFolder=folder://local/Sent

RepliesToOriginFolder=false

[Data Source]
DisplayName=Fabby Mail
Enabled=true
Parent=1392030387.8173.21@fab-ux

[Mail Identity]
Name=Fabby
Address=Fabby@Mail.COM
SignatureUid=1438771030.3264.0@fab-ux

Organization=
ReplyTo=

[Mail Composition]
DraftsFolder=folder://local/Drafts
SignImip=true

Bcc=
Cc=
TemplatesFolder=

[Pretty Good Privacy (OpenPGP)]
AlwaysSign=false
AlwaysTrust=false
EncryptToSelf=false

KeyId=
SigningAlgorithm=
SignByDefault=false

[Secure MIME (S/MIME)]
EncryptByDefault=false
EncryptToSelf=true
SignByDefault=false
EncryptionCertificate=
SigningAlgorithm=
SigningCertificate=

[Message Disposition Notifications]
ResponsePolicy=ask


You can do it with Python!

From How can I edit the source of HTML in the clipboard? ...

#!/usr/bin/env python
import gtk
print (gtk.Clipboard().wait_for_contents('text/html')).data

(just save that in a file called, say, clip.py, then execute python clip.py in the Terminal application)

See also: https://stackoverflow.com/questions/2346924/dump-x-clipboard-data-with-gtk-or-pygtk


I also use/d iTerm2. After trying out tmux and Yakuake, I opted for Terminator and am very happy with it. Reason being, I didn't want a purely CLI-based multiplexer (tmux) ... I wanted more GUI based controls. And I didn't want a KDE based GUI (Yakuake). Terminator was the closest I found to iTerm2. The only feature I didn't find was the "clear" feature.

After deciding to switch and coming to post this answer, I noticed @jrg said this also, as a comment. I posted this because I almost missed Terminator and don't want others to miss it.

http://gnometerminator.blogspot.com/p/introduction.html
https://launchpad.net/terminator

I became totally dependent on split-screens, and now my addiction can rage on:

Simple layout example.

Complex layout example.

To install on Ubuntu or Mint, search for Terminator in Software Center ( Software Manager on Mint )... or open Terminal and type:

sudo apt-get install terminator

So far, the only feature I have not found is the ability to right-click on a session screen, and have a "clear" option to purge the buffer of visible text in that session.


Dual Boot Ubuntu/Windows 10 Partition Size?

The first thing you need to understand is that Ubuntu is very different from Windows. The filesystem is different, installing software is different, security is different, installing and reinstalling is different, etc.

Deeply-ingrained Windows habits will cause problems and break things. You must be open to learning new techniques and habits.
Dual-boot requires good backups from the start. You never know when a Windows update or a user typo will wipe all your partitions. If you lack a good backup strategy, you're not ready to start dual-booting.
Reinstalling Ubuntu is very easy. There's no product key to preserve, no system-restore partition, and no need for a swap partition or separate data partition (though you can have those if you want). Lots of folks change their minds (or really muck things up) and reinstall Ubuntu a few times during their first year.
You can install Ubuntu to a USB stick. Be sure to use USB 3.0 hardware and ports, or you will notice lag. USB sticks have a limited number of write cycles, so it will only last a few months or years of modest use.

Advice: Create a single 300-500GB partition for Ubuntu. No separate data or swap partitions. Nothing fancy -- stick to the installer defaults. Make your first install successful instead of perfect. Try it for a couple weeks -- gain enough experience to have a preference. Then repartition and reinstall as complex a system as you wish.

Advice: Since you have 1TB to work with, consider using a Virtual Machine for Ubuntu. Or WSL. It's much easier and less risky. Then you don't need muck about with partitioning and you can install multiple OS (and multiple versions of OS) for your development and testing.


Issue with multiple monitors (one is detected as built in, the other isn't detected)

Here's what I would try (and have used in the past):

Install arandr from the Software Center or by typing sudo apt-get
install arandr into a terminal window.
Run arandr by typing it into
the Unity dash. You should be able to see a graphic showing both
monitors.
You can drag them to any relative position as well as set
the resolution of each. (I don't have a second monitor here, but you should be able to get an idea from this screenshot.0


Java class runs fine in IntelliJ but not from command line

You have to run java YourClassName, not java YourClassName.class.
The problem is that you are including the .class suffix in the command.
There are a few other possible explanations, since you have not given the specific command you ran. It's possible that you are running the command from somewhere other than the location of your .class file and not giving a full path to it, or that you are misspelling its name, and so forth. However, including a spurious .class suffix, which the java command does not expect, is the most common cause of this problem.
Suppose the class that contains your program's entry point (main() method) is called Foo, and that its source code was in a file in the current directory called Foo.java, so that you compiled your program by running javac Foo.java. Because Foo is the name of the class, this produces a file called Foo.class containing the compiled Java bytecode for that class.
To run the program, you must run:
java Foo

Your description makes it sound like you are instead running java Foo.class. This is a common stumbling block for users who using the java command to run .class files for the first time (whether they are programming in Java or just running .class files provided by someone else).
java Foo.class won't work; the java command interprets its argument as the name of the class that contains the entry point, not the name of the file. When you run java Foo it knows to look for a file called Foo.class.


.part files are usually incomplete downloads from Firefox.
It seems the file didn't download correctly and you have to restart the download.


First click here to open the sound menu:

Then click sound preferences to open the sound preferences:

Now you can slide your volume above 100%


Unable to Boot into Windows 7 After Installing Ubuntu 16.04

Run this command in Terminal :  sudo update-grub2
`


Ubuntu 18.04 crashes or freezes after login (dual boot, nvidia graphics)

While restarting, press Escape to enter Grub menu.
Press E to edit Ubuntu option, after quiet splash text, add pci=nommconf.
Then, press F10 to save & boot.
After logging in install Grub Customizer.
In the app Go to General then Kernel Parameters and add pci=nommconf after quiet splash.

I also have an Omen 15 Laptop with GTX 1050, i7, 12 GB Ram, this fixed it for me, and the Nvidia drivers.

If it persists, Upgrade to a newer kernel, or switch to 20.04 LTS ( Which I HATE. ) But if it doesn't, I would try upgrading kernel, as it will support newer GPU's.


Why does CPU usage spike just when Transmission is finishing a download?

Generally when ever you are trying to watch a video , your video player will take some time to load the required libraries to play the video and video can be played properly after proper decoding. So what ever the short lagging you are feeling due to Loading of video libraries and decoding of your video to play.

while doing the any data operations CPU will consume its maximum free memory. So when ever your Transmission had completed the download it needs to check the data before displaying the status as Completed.

I think for those two situations that explanation can help you to understand the issue,:)


Is Groupwise not supported in Evolution?

Transcribed answer from the Ubuntu forums:

Start by installing git

sudo apt-get install git

Next, download the source code (several commands)

git clone git://git.gnome.org/evolution-groupwise
cd evolution-groupwise
git checkout -b 3.2.0-patch EVOLUTION_GROUPWISE_3_2_0

# This is the patch for the SOAP port bug
git cherry-pick 3aae80f55d5fd565274f19210564e74d5350a66c

Using any editor, edit configure.ac at about line 48 add the line

AC_CHECK_LIB(gthread-2.0, g_thread_init)

Install the dependencies

sudo apt-get build-dep evolution

Compile

./autogen.sh
make
sudo make install

Last, using any editor, edit /etc/services add in the lines

groupwise 1677/tcp
groupwise 1677/udp


Monitor goes to sleep in the middle of installation

Before you boot the live cd (or the live usb) choose nomodeset.
You also can try others settings at boot like acpi=off and noapic
WelshBluebird has reported the same problem if he keeps his wireless card attached.

Reference: 1.


Is watching a video on HDD using VLC, or a youtube video in a browser considered as 'computer idle'?

Yes, 'idle' generally means there is no user input through the keyboard or mouse (or touchscreen).

There is also API available for applications to tell the system to inhibit idle screen blanking, for when in presentation, watching a movie, etc… However, not all applications make use of this API.


How to change the background of the terminal through a command

below script is to change only the Default Profile terminal background color.

script:

#!/bin/bash

defaultprofile=$(gsettings get org.gnome.Terminal.ProfilesList default)
profileID=$(echo "$defaultprofile" | cut -d "'" -f 2)
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:$profileID/ background-color yellow


"debconf: DbDriver "config": config.dat is locked by another process: Resource temporarily unavailable" while installing packages

A solution to this locking problem is detailed in the wiki:

sudo fuser -v /var/cache/debconf/config.dat

Will show you what process is holding the lock:

                     USER        PID ACCESS COMMAND
/var/cache/debconf/config.dat:
                     root      18210 F.... dpkg-preconfigu

Then you simply need to note down the PID and kill it like so:

sudo kill PID
sudo kill -9 PID  # if the first doesn't work


local deb file repository failes during apt-get update

Adding the line to apt-get update fixed it.

-o APT::Sandbox::User=root

complete apt-get update becomes:

apt-get -o Acquire::GzipIndexes=false -o APT::Sandbox::User=root update


In the source code of Siesta developers have the file named README_TRANSIESTA with contents:

  TranSiesta is now part of the distribution.
  See the manual in Docs/siesta.tex for information.

The file above is dated 2009-08-30 16:56:56 UTC. The documentation says:

  Starting from version 3.0, siesta includes the TranSIESTA module.

Also developers note in RELEASE_NOTES:

  Backward-compatibility issues

  The transiesta executable has been deprecated. Please use
   siesta --electrode
  for electrode calculations. For regular transiesta runs, there
  is no need for the specific executable. Details were given in the
  4.1-b4 release.

So it looks like you already have the needed component installed if get newest source from https://gitlab.com/siesta-project/siesta .


Download the .deb package suitable for your system architecture: i386 or amd64 (choose a mirror in your vicinity – your system architecture is shown by uname -m, where x86_64 corresponds to amd64)
Open the file to install the package.

Alternatively you can download the tar.gz archive and install it as explained here: How do I install a .tar.gz (or .tar.bz2) file?


`sudo apt upgrade` shows broken packages

Usually sudo apt --fix-broken install should fix it.


Which Ubuntu-list for feedback on 11.10 to 12.04 upgrade issues?

Check out the Ubuntu mailing lists page

Both the development and QA lists are there.


http://www.howtoforge.com/how-to-upgrade-ubuntu-10.04-lucid-lynx-to-10.10-maverick-meerkat-desktop-and-server

go to this link and it will show you the steps.

once you have updated it once keep doing it until you reach ubuntu 12.
you have to do this because all the other has bug fixes and other secuirty patches.

this method is good if you want to keep all your data and you wont lose anything and you will still have your software you wont lose anything.


How do I crop (time not picture) an MP4 video file

ffmpeg
ffmpeg -i source.mp4 -ss 00:00:00 -t 00:00:00 -vcodec copy -acodec copy splice.mp4
This will take source.mp4 and, using the same audio and video codecs and not degrading quality, take -t time after -ss start time video and output your splice.mp4
Please note that the timing is very sensitive to formatting (above is one example formatting).  Also, in some distributions, ffmpeg has been replaced with avconv.  Simply run the above command and replace the word ffmpeg with avconv to solve this.
Another excellent source of information on this topic. (Thanks @pbhj)


There are no interfaces on which a capture can be done

Open a terminal by pressing Ctrl+Alt+T and type the following commands:

sudo dpkg-reconfigure wireshark-common

press the right arrow and enter for yes

sudo chmod +x /usr/bin/dumpcap

you should now be able to run it without root and you will be able to capture.


Windows 7 not booting after installation of Ubuntu 12.04

I would first try to rebuild Grub to see if that fixes your issue. Try using Super Grub disk. Super grub disk


Show all lines of a (log) file in terminal

If a file has too many lines to show in only one screen, you can pipe the output to less like so:

cat myfile.txt | less

This paginates cat's output, allowing you to navigate through the file using the arrow keys.


nfs error 'no locks available' after update to 16.10

Someone in systemd land decided that starting nfs shouldn't start the statd service which nfs uses to provide locks. So, your fix should be simple, on the host machine:

sudo systemctl enable rpc-statd  # Enable statd on boot
sudo systemctl start rpc-statd  # Start statd for the current session

You don't even need to reboot, just launch vagrant after doing that.

Thanks systemd!


Need some help with adding to “Startup Application” in 14.04

No it's not removed. It's right there. It's called "Startup Applications"

done.


.bashrc edit messes up terminal command arrow-up history print

I have no idea why (never really understood the escape codes), but adapting the other prompt seems to work:

PS1='\[\033[1;32m\][\W]\$ \[\033[00m\]'

Apparently, you need to enclose the escape sequences in \[...\], to tell bash not to count them while determining the prompt width. Therefore, both the above PS1 and the following would work equally well:

PS1='\[\e[1;32m\][\W]\$ \[\e[m\]'


Errors After Partial upgrade from Ubuntu 18.04 to 20.04

Your output clearly explains why some folks encounter this problem "Unofficial software packages not provided by Ubuntu", and indeed your apt output supports that common reason.
The first comment in the duplicate question clearly explains how to fix it: "remove all 3rd party software (ie. return to only using Ubuntu repository software), perform the upgrade, reboot then add back any 3rd party software required."
Since you didn't do that, and then compounded your mistake with a Partial Upgrade, you are now stuck with a Frankensystem.
It seems clear that your 18.04 version of your non-Ubuntu software is incompatible with Ubuntu 20.04. You must locate a version that is compatible with 20.04

You can try following the original advice. It might still work, it might not:

Uninstall all non-Ubuntu software
dist-upgrade again to eliminate package errors
When apt is working properly, install a version of your non-Ubuntu software that is compatible with 20.04

Alternately, you can clean-install 20.04, then install a version of your non-Ubuntu software that is compatible with 20.04.


Solve error file compiling PHP configure: error: libXpm.(a|so) not found

I got past this by doing

sudo ln -s /usr/lib/x86_64-linux-gnu/libXpm.a /usr/lib/libXpm.a

You can also set the lib dir by adding

'--with-libdir=/usr/lib/x86_64-linux-gnu'

to the configure line but that missed some of the ones in /usr/lib.


A solution to this problem was found by Robert Joynt in a comment to this alsa-driver bug report. Here is a  copy of the instructions:

  Install alsa-tools if not installed:

sudo apt install alsa-tools

  Create and save a script in /usr/local/bin:

#!/bin/bash
hda-verb /dev/snd/hwC0D0 0x20 SET_COEF_INDEX 0x67
hda-verb /dev/snd/hwC0D0 0x20 SET_PROC_COEF 0x3000

  Run the script as root in a terminal to immediately fix the problem.

  To run the script on startup, use cron with the @reboot command:

sudo crontab -e

  and then add line in crontab:

@reboot [full path to script]

  To run script on resume from suspend, copy the script to
  /lib/systemd/system-sleep

  For more technical details regarding this fix, see
  https://bugzilla.kernel.org/show_bug.cgi?id=195457


Unity8 Development install troubleshooting

Try running ./build.sh --setup, it appears we left the .sh off the end of that step. The --setup should pull in all those other dependencies.


Based on the comments the solution was as follows:

Removing the formerly installed hugin
Install hugin via default sources (sudo apt-get install hugin)


Try Simon Listens

  Simon is an open-source speech recognition program and replaces the
  mouse and keyboard.  Its designed to be very flexible and allows
  customization for any application where speech recognition is needed.

To Download and more information visit simon on kde.org


Install 32bit Java (OpenJDK) on 64bit Ubuntu 12.04

To answer the original question:
On 12.04 and 12.10, it is possible to install i386 packages on amd64 by appending ":i386" to the package name when running apt-get. So, for example, while running an amd64 Ubuntu 12.04 Live CD, I ran:
sudo apt-get remove firefox openjdk-6-jdk icedtea-6-plugin
sudo apt-get install firefox:i386 openjdk-6-jdk:i386 icedtea-6-plugin:i386

And could then successfully log into the VPN.
Since 12.04, Juniper VPN will work on OpenJDK 6 out-of-the-box but only on i386. There was a bug in the icedtea plugin that was preventing this from working previously. I have verified that this is fixed using an i386 Ubuntu 12.04 Live CD.
I am surprised that the amd64 Oracle JDK is working for you. However, I have not yet tested it myself, but when I do I will update this answer. It would be good if you can confirm exactly what packages you are now running.
It is worth noting that there is an optional part to the Juniper VPN login process called the Host Checker that may or may not be configured on the VPN server you are connecting to; it enforces security policies on Windows computers but still has to run on Linux to check what OS you are using. This could result in differing reports of success from different people. For reference, the VPN I use does have the Host Checker enabled.
In your original question you state that you were installing Java 7 packages, yet your log shows you are using Java 6 in Firefox. If you have multiple JDKs installed, you need to be clear which on you are using.
For reference, there is also a very long-running thread on the Ubuntu forums on Juniper VPN.
Update
I have now tested the amd64 Oracle JDK and it wouldn't work for me. So as far as I can see, installing the i386 version of the Oracle JDK or Open JDK is the only way to get it working.


How to find which part of my system still references a certain device

I found the answer. I was basically chasing a ghost problem. TL;DR: the card-reader hardware was causing the issue.
While at some point I did have a device that would be available as sdg and therefore it was reasonable to assume that there is some remnant of that in some configuration, the cause turned out to be something else.
In addition to the observations detailed in the question, lsblk, blkid and similar tools did not show sdg at all. The LVM-related tools only gave the above mentioned error output.
As it turns out, my machine did have a /dev/sdg nevertheless, created by the kernel. And that's when I realized that there must be something which causes the kernel to create that device node. Alas inxi -F also didn't show anything. However, lshw was able to shed some light on the mystery. And this is what the respective output looked (excerpt):
 *-scsi:6
      physical id: 2d
      logical name: scsi8
      capabilities: emulated scsi-host
      configuration: driver=usb-storage
    *-disk
         description: SCSI Disk
         product: SD/MMC CRW
         vendor: Generic-
         physical id: 0.0.0
         bus info: scsi@8:0.0.0
         logical name: /dev/sdg
         version: 1.00
         serial: 2012062914345300
         capabilities: removable
         configuration: ansiversion=6 logicalsectorsize=512 sectorsize=512
       *-medium
            physical id: 0
            logical name: /dev/sdg

It was the card-reader hardware all along. And the error was shown because there was no card in it at the time os-prober called lvs ...
My main lesson from this is not to trust tools like lsblk and blkid or even inxi and always look for the actual device node or use other tools to query information.


Would a USB NIC work with Ubuntu Server 12.04.4 LTS?

I can't imagine why you wouldn't be able to. NIC is a NIC. As for it being PCI, technically everything is connected to a PCI location in the linux filesystem. Find out if you require a physical PCI slot which I doubt this is the case. Everything PCI will be listed under lspci which also include usb devices.

Unfortunately I have used Clonzilla Server myself so I cannot be 100% sure.


Lubuntu 15.0 on windows 8.1 win scp not connectiing

simply add your network to home network just try to ping your VM Linux IP it should be if not then troubleshoot network by network wizard same applies for Linux to try to ping your windows host machine if both are ok then it will connect.
if not then troubleshoot and add the VM network to home /private network


As you already mentioned, there are two different clocks:

The software clock is set and used by the linux kernel and provides the time for all programs
The hardware clock (real time clock (RTC)) has battery backup power (i.e. is always running) and is used to adjust the system clock on boot

UEFI has no access to the system clock and thus uses the RTC. date uses the system clock. The reason why it is properly working when there is an internet connection might be a running ntp service which adjust the time on startup?

You might want to use sudo dpkg-reconfigure tzdata for a text based option to set your system time properly. If Ubuntu will still display your last login date (really?) after reboot, there seems to be an issue with the RTC based system clock initialization on startup.

Source: man rtc


I can't access to the login screen in Lubuntu 16.04 LTS

I got a similar message with an Asus EEE 900

Rebooted to GRUB and selected "Advanced options for Ubuntu". Selected "recovery mode". Selected "Resume normal boot". Click through the warning about graphics drivers. Boots fine to desktop.


How to set up SSD raid and TRIM support?

I know I'm being a Johnny-come-lately to this question but I'd like to see if I can shed some light on this for anyone searching.

First, @ppetraki's answer is excellent.

The short answer to "Can I RAID SSDs and boot from them" is "Yes!". Here are instructions for 14.04. Instructions for RAID configuration on 12.04.x are identical, but this tutorial using 9.10 has pictures. Following here are some important gotchas and details I had to discover the hard way, through personal experience:

I'm running Ubuntu 12.04.5 with the 3.8 kernel on an MD RAID0 configuration and the SSD-friendly Btrfs filesystem. I run fstrim as a weekly cron.

My extra Btrfs mount options from fstab:

defaults,ssd,ssd_spread,space_cache,compress=no,noatime

The 3.8 kernel is required if you want to use compress=no as a Btrfs mount option and may also be required for use of fstrim, the manual trim command used for scheduled trim.

You must also manually align partitions (on any multi-partition setup, raid or not) on the SSDs BEFORE booting to the installer because depending on the page size of your SSD, only the first partition will be properly aligned (it took me a while to catch it) and this can severely impact drive lifespan. You can do this from a command prompt within the installer or from a live usb/disc before you attempt installation. Caveat: Do the math yourself. Fdisk will lie about alignment.

Further reading: I think Btrfs can even create its own raid arrays.

Regarding TRIM:

It's arguably unnecessary thanks to overprovisioning

14.04 is the first release to enable TRIM support out-of-the-box but it's trivial to enable on previous distributions, provided you are using kernel 2.6.33+.

Depending on your chosen filesystem, you can enable trim/discard by editing your fstab and setting the appropriate mount option. The difference between doing this and running it via cron is that the first will trim/discard on-the-fly and the second will do it in a lump on a schedule. I use the second.

Does it matter? Supposedly, the online discard (using the mount option) is not wonderfully implemented and is slow so it's "not recommended". I can tell you that my "hdd" (hehe) lights go nuts for 10-20 minutes when the weekly cron job runs but the OS responsiveness is almost completely unaffected.

Booting from the array

Though I don't see this in a quick scan of the ubuntu 14.04 instructions, I had to create an additional primary partition that is NOT part of my raid arrays. Disk 0 has a 500mb primary partition of ext3fs. During installation I told the installer this was to be mounted at "/boot" and I set the bootable flag. The bootloader is then installed here so the OS can start and then mount the RAID. The remaining Disk 0 space is divided between 2 partitions which are later used for the MD arrays that become "/" and "/swap". Disk 1 has the same, but no boot partition. Also, I only created the swap in case I need it sometime and btrfs does not support swapfiles. This partition is never mounted; after installation, I commented it out in my fstab.

Forgive all the edits, just trying to get it all out there.


You can use the settings manager to load an icc profile as follows:

Goto Settings->Devices->Color
Choose your monitor (e.g. Laptop screen)
At the bottom of the panel, choose 'Add profile' to load an existing profile or import another
You can then select that new profile or another for your display

If you want more functionality, I highly recommend dispcal which is a GUI for the Argyll color management system.  It's really fun to use and has a large feature set.  For example, not only can you manage and manually adjust your profiles, the system integrates with many colorimeters. The package is dispcalgui, e.g. sudo apt install dispcalgui.  There is also the gnome color manager (gcm) but this is harder to use IMHO.


How to assign /home partition of LinuxMint when I replace LinuxMint with Ubuntu

By default Ubuntu will create a dual boot with the existing Mint, or it will wipe and overwrite all of your hard drive(s), depending on your choice.

To install Ubuntu on the existing Mint partition with keeping HOME on the other partition you need to choose "Do someting else" on installation.

This will open the graphical partition manager Gparted for a custom partitioning of your drive(s). You may not need to create new partitions but you should take care on where the mount points are.

Take care to tick format for the root partition at mount point / (where Mint resides) only.
Do not tick format for your previous home partition. Choose this partition to have its mount point /home.


I cannot connect to WIFI network due to 'missing CA certificate'

Your university probably uses WPA2 Enterprise authentication. This is probably set up to have a PKI, or at the very least encrypt the authentication. The CA certificate is the one that signed the certificate of the RADIUS server handling the authentication. I think it would be best to contact the IT helpdesk and ask them for the CA certificate.


unable to change brightness settings in sony vaio e series laptop

Your system has nvida chips. So please install driver from Addtional Drivers (press Super / Win, and search for it). Reboot and see if it solves the problem.

If above not working try following (but don't uninstall the driver)

execute sudo gedit /etc/default/grub

Change this line

GRUB_CMLINE_LINUX_DEFAULT="quiet splash"

to something like below

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

Execute sudo update-grub and reboot . See if brightness keys are working.

It is still possible ubuntu won't remember your brightness settings. So you have to change brightness each time.

Please let us know the result as many sony users are facing this problem.

Update: This is for setting brightness manually.

Try following for path shown by ls /sys/class/backlight/*/brightness and replace accordingly.

Get the maximum brightness:

cat /sys/class/backlight/intel_backlight/max_brightness

Try a lower value to set the brightness, say output is 2048 so I will try with half of it

echo 1024| sudo tee /sys/class/backlight/intel_backlight/brightness

If this works,  make this happen in each login automatically by doing the following

sudo gedit /etc/rc.local

Enter this line just before exit 0. It should look like

echo YOUR_VALUE_HERE > /sys/class/backlight/intel_backlight/brightness
exit 0

Also you can try with xdotool


How do I change the boot loader of dualboot windows 10 and Ubuntu18.04LTS?

GRUB 2 builds its menu by running scripts found in the /etc/grub.d/ folder and the settings in the /etc/default/grub file.

What I usually do is rename the os-prober script file to take precedence, before script 10_linux.

sudo mv /etc/grub.d/30_os-prober /etc/grub.d/06_os-prober

Don't forget to sudo update-grub2 after.


interface device name em1 to eth0 linux 14.04 lts

Best way to achieve that what you are looking for:

First, uninstall the package biosdevname

sudo apt-get remove biosdevname

then run

sudo update-initramfs -u

After the next boot, everything will work the good ol way.


less not displaying coloured output in konsole

unbuffer apt search okular | less -R returns a coloured output in less.


To show Grub 2 menu at boot only the right hand Shift. key works. In EFI boot Esc key works.

Once you get the grub you can change the password in in Advanced Options > Recovery Mode > Drop to root shell prompt.


Likewise download for ubuntu 14.01 without internet connection

You can find all the Ubuntu software on the packages.ubuntu.com BUT Likewise is no more as of Ubuntu 12.04. The ubuntu help has this to say:

  LikewiseOpen is now Beyond Trust - PowerBroker Identity Services Open Edition The Likewise website is gone, and links to it are broken. I have repaired some of them, but I have not found them all. The repositories are still using the likewise-open name, so the instructions are still good. However, the repo version in 12.04 will not work with the repo version of samba. Get the new branded version at http://www.beyondtrust.com/Technical-Support/Downloads/PowerBroker-Identity-Services-Open-Edition/?Pass=True

There is a download on that page for 32 and 64 bit versions of Ubuntu:

Linux 2.4/2.6 kernel 32-bit DEB
Linux 2.4/2.6 kernel 64-bit DEB

The download is an shell script; not a debian installer. So assuming you put it into "downloads" from command line:

cd ~/Downloads
chmod 664 pbis-open-8.0.1.2029.linux.x86.deb.sh
./pbis-open-8.0.1.2029.linux.x86.deb.sh

or for the 64 bit version:

cd ~/Downloads
chmod 664 pbis-open-8.0.1.2029.linux.x86_64.deb.sh
.pbis-open-8.0.1.2029.linux.x86_64.deb.sh

and the rest should be taken care of by the installer


can't open menus in firefox or okular after update. Graphics issue?

Just got an answer on another forum for this, and it now works. If you change the compositor from openGL to xrender, it solves the problem. These settings on plasma 5 are in settings/systemsettings/ display and monitor


Have now solved this one by re-installing the five nvidia-304 packages from Synaptic, which caused the kernel modules to be re-compiled, so now OpenCL is fine. I suppose something must have gone wrong during the online upgrade. Thanks for reading!


Getting dev/sda1: clean ... after update-rc.d

The problem was due to some lines that I had added in /etc/security/limits.conf

On the black screen, I pressed Ctrl+Alt+F1, then

sudo vi /etc/security/limits.conf

removed the two lines, saved and rebooted.

Ubuntu rebooted normally.


How do I make my own customized ubuntu sounds?

Ubuntu uses freedesktop.org sound themes. For writing your own sound themes refer to the Sound Theme Specification. You can find sound themes on many sites, this one appears to be one of the more popular ones.

This question has some more detail on the files themselves.


Probably not 100%. The system has a SIS graphics controller included and those are seriously lacking support.

Regarding the black screen I found this fix for Natty (might be worth while checking if it is applicable to 11.10 too) (copy/paste from link and untested):

sudo apt-get install git xorg-dev libdrm-dev libtool mesa-common-dev

After installing these packages, then type on your terminal:

git clone git://github.com/hellnest/xf86-video-sismedia-0.9.1.git
cd xf86-video-sismedia-0.9.1
./configure –prefix=/usr –disable-static
make
sudo make install

Then reboot your system.

Default resolution is 1280×800.

If your system has a 1366×768 resolution, you can edit your xorg.conf, by typing :

sudo gedit /etc/X11/xorg.conf

Copy this script:

Section "Device"
    Identifier     "Configured Video Device"
    Option         "UseTiming1366" "yes"
EndSection

Section "Monitor"
    Identifier     "Configured Monitor"
EndSection

Section "Screen"
    Identifier     "Default Screen"
    Monitor        "Configured Monitor"
    Device         "Configured Video Device"
EndSection

Save, and its resolution will be changed but you can’t get your 3d effect. So the 3d Unity cannot be activated, but if you still need the Unity, you can install 2D Unity by going here:

How do I install and switch to the Unity 2D desktop?

Then activate your 2D Unity

sudo unity-2d-launcher

Reboot your system.


I managed to regain ssh access again. For some reason the ufw rule for port 22 was lost. It should have been the first place to look, but it was an error on my part to not question if ssh service was up. I made a bad assumption that it was down. Lesson learned.

If a beginner with the same issue stumbles on this, if you use ufw check your /lib/ufw/user.rules and /lib/ufw/user6.rules to see if a rule for OpenSSH exists. In my case adding the below solved it:

### tuple ### allow any 22 0.0.0.0/0 any 0.0.0.0/0 in
-A ufw-user-input -p tcp --dport 22 -j ACCEPT
-A ufw-user-input -p udp --dport 22 -j ACCEPT


Network not working after network-manager disabled

NetworkManager was not the problem. I had configured KVM to use a bridge network, which took control of eno1 and prevented it from communicating on the LAN. Here's /etc/network/interfaces after enabling the bridge network. I commented out the lines 'auto kbeno1','iface kbeno1 inet manual', and 'bridge-ports eno1'. Now the host can talk on the LAN again.

///interfaces(5) file used by ifup(8) and ifdown(8)

auto lo

iface lo inet loopback

auto kbeno1

iface kbeno1 inet manual

  bridge_ports eno1

auto eno1

iface eno1 inet static

  address 192.168.1.201

  netmask 255.255.255.0

  gateway 192.168.1.1

  dns-nameservers 8.8.8.8


The screen with the text can appear sometimes. it necessarily doesn't mean that your pc is hanging. If it is slowing down, then it is most likely a hardware problem. Your PC does look a bit old. Many factors are at play here, for example, the RAM, processor, etc. Sometimes overheating can cause this as well.try maintaining the PCs insides. Cleaning it up, replacing the fans, etc. Although I would not recommend doing this if you haven't done it before. It would be best to get it checked by a local repair shop. Old PCs tend to be a bit unreliable.


Eclipse crashes with X Window system error using NX - cairo the solution?

The eclipse crashing issue was solved with this Arch linux article. Essentially:

  Start eclipse using (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=386955):

    eclipse -vmargs -Dorg.eclipse.swt.internal.gtk.cairoGraphics=false

I added this to my eclipse.ini file (since I have installed eclipse manually from their site, the config file is /opt/eclipse/eclipse.ini


Network Printing Requires Authentication

If the Windows computer is responsible for the printer share, I would suggest diagnosing password issues from the Windows side. Depending on your Windows OS version, you can try googling for "windows  print share password". I see a couple good forums on this topic on tomshardware.com when I do this search.


Zentyal internet load sharing. how to avoid it

By default does not share the load. we can distribute the load using traffic shaping. The problem in my case was my network was not good. i replaced it and everything works like charm


The emacs compile function is what you want. Type (into Emacs, without the spaces): ^H f c o m p i l e RETURN.


As always(maybe sometimes), google is my friend:

$ sudo apt-get install libarchive-zip-perl
$ crc32 my_file


Ubuntu 12.04 administrator how to write commands to run a py file as a startup with no terminal?

Make sure your script it starts with #!/usr/bin/env python (so the shell knows how to interpret it) and then you can just call your script directly without the python executable.

Failing that, some executable places (like the startup) have weird environments. You could try wrapping it all in bash just to make sure things are set up the way you'd expect:

bash -c "python /path/to/script"

As you're still having problems, consider logging the output of the python command, with something like this:

bash -c "python /path/to/script >> /path/to/logfile 2>&1"

If the Python is what's blowing up, at least this way you'll have a chance to debug and fix it.


What does it means: `cgroup_disable=memory` in my `dmesg`?

cgroups (control groups) are used mainly by LXC (LinuX Containers) and its "memory cgroup" is for process group memory restriction. Unless you need this stuff it's better to disable this feature, since otherwise it consumes a part of RAM for its internal structures and CPU can be affected as well.


MultiGet GUI download manager is not available in the default repositories of any currently supported version of Ubuntu. The last supported version was 14.04. uGet is an alternative GUI download manager to the MultiGet application.
uGet is a lightweight and very powerful download manager application. You can install uGet in all currently supported versions of Ubuntu with this command:
sudo apt install uget

There is an option in the uGet settings to always show a uGet system tray icon in the notification area of the panel to the left of the clock and volume icons.
Features

Resume downloads  – If your connection is interrupted, you can start right back where you left off with download resuming. (not guaranteed, it's server controlled and cannot be bypassed by a download manager)

Queue downloads

Classify downloads in categories

Batch downloads

Multi-Protocol – support for downloading files through HTTP, HTTPS, FTP, BitTorrent and Metalink

Clipboard monitoring

Import a list of URLs to download via .txt or .html files ✅

uGet also can be launched from the terminal with the command: uget-gtk


Computer randomly loggin-out on ubuntu 13.04

Turns out installing the drivers from my builtin Intel graphic chip solved the problem. Instructions for installation can be found here : https://01.org/linuxgraphics/downloads/2013/intelr-linux-graphics-installer-version-1.0.2


How to find 'local network share' folders?

I found it.

Despite all of the misinformation out on the web which says that shares are configured in smb.conf, it turns out that when you creat a "local network share" in nautilis, it creates a file in /var/lib/samba/usershares It looks like one flat ASCII file per share.  The file name is the same as the share name, and it contains the local path, the "comment" that remote users see, and the access control parameters.


how to retrieve files when there is a problem with how the HDD treats the computer?

Reliable, but dangerous method is

acquire (for while) equal hard drive
replace your HDD PCB with one from equal HDD
copy information to another storage (aside of two HDDs mentioned above)
replace PCBs back
give the equal HDD back to its owner

But, it may be disconnection inside the enclosure, so one should disassemble the enclosure and check, if the drive itself securely connected to converter.


how can i access my ubunu server with fileza as root user

You cant without activate the login for the root user with password. but you shouldn't give access for the root user with password. Use a key file an put these in /root/.ssh/authorized-keys and use WinSCP where you can define your keyfile for login, also for root login.
https://www.ssh.com/ssh/keygen/
https://winscp.net/eng/download.php
if you don't want to listen to me, check /etc/ssh/sshd_config for this:
DenyUsers root
PermitRootLogin no

and set a password for root user.


Start Firefox in Safe Mode Automatically

For each custom startup application, you will find a .desktop launcher in the folder ~./config/autostart. .config is a hidden folder. Enable "Show hidden Files" to see it in the file manager.

In that folder, locate the file for Firefox and open it in a text editor.

Find a line starting with Exec=, that specifies the command needed to run firefox. Add the command line options you need to have Firefox launch in Safe Mode, as in
Exec=firefox -safe-mode %u

See man firefox for the manual detailing the syntax of the firefox command and its options.


Packet sniffers come in different form. Some packet sniffers used by network admin to detect misconfiguration and troubleshooting the network and others are hackers used to sniff on the network for collecting passwords, users critical data etc. Hackers can use sniffers to eavesdrop on unencrypted data in the packets to see what information is being exchanged between two parties. They can also capture information such as passwords and authentication tokens (if they are sent in the clear).

To protect yourself from hackers, it is strongly recommended:

Always protect your traffic with SSL or TLS which will help you to protect your network traffic from being sniffed. Note: Hackers can sniff traffic but they will see some gibberish data because the data is encrypted.
If you are a network admin and want to know if someone is using a sniffing tool. It can be detected using "antisniff tools" such as sniffdet, sniffer.detectors, ntop etc.


Find and replace regular expression (matching unicode character class Devanagari) in multiple files

As suggested by steeldriver, you can force both STDIN/STDOUT to be UTF-8:

  -C on its own (not followed by any number or option list), or the empty string "" for the PERL_UNICODE environment variable, has the
  same effect as -CSDL. In other words, the standard I/O handles and the
  default open() layer are UTF-8-fied but only if the locale environment
  variables indicate a UTF-8 locale.

find . -name 'test.*' 2>/dev/null | xargs perl -w -C -i -p -e 's/(\p{Devanagari})/D/g'

Will transform your sample file like this:

ಕದಂಬ
DDDDD

Source: http://perldoc.perl.org/perlrun.html#Command-Switches


Well, depends what do you mean by

  if something happens

You have to notify DisplayHost about the event in order for it to grab a remote video stream.

What is a source of a video?

What you might want to do is just forward X output to DisplayHost. You can find part of the answer here: Enabling SSH and Remote Desktop Access

In that case you can send a message to DisplayHost and trigger it's connecton to HostA or HostB

P.S. I assume that HostA and HostB both are producing video streams and DisplayHost is connected to a projector.


Suggestion for dual booting ubuntu 18.04 and 20.04

The options you have are:

Having two separate installations side by side, as you propose. Whichever method works fine. What you have to do is first take decisions related to partitioning design. E.g., whether you need separate swap partitions (unlikely).
Use a VM with 20.04 inside 18.04. This is "less invasive" than the first, and much easier to take back to the original configuration (simply remove the VM). Plus, you can run both OSs at the same time. If the resources in your system are enough to make this work reasonably, this is likely a better option.

I am assuming that both options agree with the intended use of your system.
Related (most are somewhat "aged"):

https://medium.com/@manujarvinen/setting-up-a-multi-boot-of-5-linux-distributions-ca1fcf8d502
Ubuntu 18.04 and 20.04 on the same computer
https://ubuntuforums.org/showthread.php?t=2382905
Dual booting two Ubuntu versions
https://superuser.com/questions/251270/can-i-install-two-ubuntu-versions-on-the-same-machine
Installing 2 versions of Ubuntu on same hard drive?
How to use manual partitioning during installation?


User in sudo group cannot use sudo command

Since you error message says your user is not in the sudoers file, could you please check your /etc/sudoers file, see if there is such a line:

%sudo   ALL=(ALL:ALL) ALL

If this line is missing, users in the sudo group will not be sudoers.  Edit the file using visudo command (checks for correct synthax and locks the file).

You can also try to add a customized line like this:

root    ALL=(ALL:ALL) ALL

Replace root with your username, reboot, and try if it works.


Problem when installing intel i40e driver

On your host is where you must connect to the WiFi and you will see that the virtual machine connects directly to your wifi but appears as wired connection. Select the wifi you want to use on your host machine not the virtual machine :)


How to execute a file like "~/.bashrc" for bash for ash?

When you run exec /bin/ash -f /root/aliases.sh ash runs non-interactively, and it exits as soon as "/root/aliases.sh" has been executed; that's why the SSH session ends.

So the solution is to run the shell interactively; from man 1 ash:

  If the environment variable ENV is set on entry to a shell, or is set in the .profile of a login shell, the shell next reads commands from the file named in ENV. Therefore, a user should place commands that are to be executed only at login time in the .profile file, and commands that are executed for every shell inside the ENV file.

So just set ENV in "~/.profile":

export ENV=/root/aliases.sh

and run the shell interactively:

exec /bin/ash

However notice that:

Running exec /bin/ash at the end of "~/.profile" will replace any shell sourcing "~/.profile" (i.e. any login shell) with an ash instance;
This makes no sense. The correct way to get ash as a login shell for an user is to change the login shell for the user, which can be done using chsh.

So I really suggest you to remove exec /bin/ash from "~/.profile" and to change the login shell for the user using chsh instead.


Text editor installed via deb, but not shown in "open with" menu

To show an entry in open with, you need a desktop file. In your case in /usr/share/applications.

And you need a %f or %F at the end of the command for Exec=

Exec variables
Add...  Accepts...
%f      a single filename.
%F      multiple filenames.
%u      a single URL.
%U      multiple URLs.
%d      a single directory. Used in conjunction with %f to locate a file.
%D      multiple directories. Used in conjunction with %F to locate files.
%n      a single filename without a path.
%N      multiple filenames without paths.
%k      a URI or local filename of the location of the desktop file.
%v      the name of the Device entry.

E.G.

[Desktop Entry]
Name=myeditor
GenericName=Text Editor
Comment=Edit text files
Exec=myeditor %F
Terminal=false
Type=Application
StartupNotify=true
MimeType=text/plain;
Icon=accessories-text-editor
Categories=Utility;TextEditor;


Nautilus freezes every time I try to delete a file from my mounted disc

If you hold shift while deleting it has the same effect as bypassing the Trash. but that may not help with the issue if it is a bug. It is likely to still crash.


Is there a way to make dig report the actual name server rather than 127.0.0.1?

Not that I am aware of.

You could use:
nmcli dev list iface *insert outbound interface name here* | grep IP4 | grep DNS as was suggested here.

It works for me.

A cleaner invocation that doesn't rely on entering the interface name is:
nmcli -f IP4 dev list | grep DNS


Try executing following command
$sudo service apache2 restart|stop|start

open the web browser and go to the URL http://localhost
if you read

"It works!"

message on browser
which is the content of the file

/var/www/index.html

this proves that Apache server has started and it is working.
source.


32-bit to 64-bit migration using virtualbox

The method you came up with may work, but it would be far easier to:

Export the list of packages on your 32-bit system
Install Ubuntu 13.04 64-bit straight over the old installation, selecting the otion during setup to keep the data in your /home partition
Import the list of packages to your 64 bit system


Is it possible to have 2 pxe servers in the same subnet

Your router/L3 switch is the one which needs to handle this (if possible). Either by looking at IP/MAC addresses or some other logic. This question though, in my opinion has nothing to do with Ubuntu.

I'm pretty sure it's not possible to have multiple PXEs on one subnet. My guess is you'll have to use VLANs and also divide your network into two subnets.


App starts failed then log the current user out?

im also new to linux and I had a similar problem, i boot up spotify and it just stays black screen.
What worked for me is to go to console and type

program_name --disable-gpu

I'm not sure if that is going to fix your problem, but you can still try.
Hope this works out :)


This worked for me. Just typed this on terminal:

adb devices

It showed that daemon has started successfully and is able to read connected android devices.


First thing is to start play an video or audio file and let it play to know when your sound will start working
Just open the terminal and run alsamixer and then using arrows browse through playback devices and unmute muted (M key) devices until you hear a sound.


terminal ask password but I cannot type nothing

You can type, but no characters are shown. This is as designed. Just type your password and press Enter.

If you are doing sudo ..the password is the same as your login-password.


I was also having the same problem after I updated the kernel to the latest version. See you are on the latest one then I would suggest you downgrade it to a previous one. I mean upgrading or downgrading your kernel version. You can check the steps here.

If your problem still persists, then simply downgrade to Ubuntu 16.04. I also downgraded to it, because 18.04 has too many glitches right now. There is a new problem every day.


need assistance setting up wired internet on ubuntu sacy(13.10)

Configuration of nic is thesame for win and linux. Check if your nic in win set do get data from dhcp, if yes in Network-manager set this option for nic.

You have configuration manual here

Maybe you got ip param based on the mac address of nic. If answer is yes, you must change mac address.
Easiest way to change mac address on nic is:

sudo ifconfig eth0 down
sudo ifconfig eth0 hw ether  xx:xx:xx:xx:xx:xx
sudo ifconfig eth0 up

Where xx:xx:xx:xx:xx:xx represent mac addressc address of nic card.


From tor browser specification:

  The User Agent MUST (at user option) prevent all disk records of browser activity. The user should be able to optionally enable URL history and other history features if they so desire.

So if this is correctly implemented, the so-called private mode in other browsers is the default here. There is nothing to delete in the first place because normally nothing is kept on disk.


How to resolve HiDPI problem with Qt apps

A less than perfect temporary solution that I've found is the following simple wrapper bash script that can be used in the relevant .desktop file instead of the executable of the app in question, e.g. masterpdfeditor4:

#!/bin/bash
HiDPI="$(xdpyinfo | grep dots | awk -F'x' '{print $2}' | awk -F' ' '{print $1}')"
if [[ ! $HiDPI = 96 ]]
then
    xrandr --dpi 96
    masterpdfeditor4 "$@"
    xrandr --dpi $HiDPI
else
    masterpdfeditor4 "$@"
fi

This will restore the original dpi setting only if one such app is opened and closed, or in case more than one such app is launched, only if the first app is closed last.

Secondly, somehow some GUI elements other than menus and toolbars cannot be fixed in this way, e.g. cursor size in Krita workspace...


Mounted disk confusion and how to restore order

My typical mounting scenario is to start with fdisk to identify the disks, in my case what I am looking for is which size matches the /dev/sda or /dev/sdb disks.

$ sudo fdisk -l | grep sd
Disk /dev/sda: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors
Disk /dev/sdb: 5.5 TiB, 6001141572096 bytes, 11720979633 sectors
....

Once I know which disk is which, then I look at which ones are mounted.  You can look at /etc/mtab but I typically use df which includes where it is mounted and disk space usage

$ df -ah | grep media
/dev/sdb                 5.5T  4.1T  1.5T  75% /media/Disk1
/dev/sda                 1.8T  1.8T   80G  96% /media/Disk2

For temporarily mounting each drive

$ sudo mkdir /media/Disk1
$ sudo mount /dev/sdb /media/Disk1
$ sudo mkdir /media/Disk2
$ sudo mount /dev/sda /media/Disk2

For permanent mounting get the UUID from /dev/disk/by-uuid/ that points to the correct /dev/sd*

$ ls -al /dev/disk/by-uuid/
lrwxrwxrwx 1 root root   9 Mar 21 13:36 76d38a67-f1dd-41e9-ab75-8d4ccc760123 -> ../../sda
lrwxrwxrwx 1 root root   9 Mar 21 13:35 23e046d3-2348-4f68-8283-f63366a7f997 -> ../../sdb

Then add that UUID to your /etc/fstab, you would also need to specify the file system like xfs, ext4, ntfs, vfat, etc.

# /etc/fstab
UUID=23e046d3-2348-4f68-8283-f63366a7f997   /media/Disk1    xfs defaults    0   0
UUID=76d38a67-f1dd-41e9-ab75-8d4ccc760123   /media/Disk2    ext4    defaults    0   0

Just remember that if you put it in fstab, make sure you remove it from fstab before physically removing the disk, otherwise you may end up being forced to correct it at next bootup.


software center got stuck/not responding

It is not generally necessary to run Software Center as root. (I understand you might have been running it as root to try to work around another problem; I've addressed this below.) If you run it as a normal user and try to install or remove software, it will ask you for your password to perform just that action as root. It does this automatically.

The actual condition you've experienced when running Software Center as root with sudo is probably a bug, but it's somewhat common for bugs to occur in software that is run as root, when the developers didn't intend for it to be run that way.

I recommend reporting a bug, but running Software Center not as root will probably solve your problem. (Just run: software-center)

As for the problem of the Software Center not listing any software: make sure Software Center is not running, then try removing your user-specific Software Center configuration files, its global configuration files, and reinstalling it. To do all that, open a Terminal window (Ctrl+Alt+T) and run:

sudo killall software-center
sudo killall -KILL software-center
cd ~/.config && sudo rm -r software-center
sudo apt-get update
sudo apt-get --purge --reinstall install software-center

(Normally it would not be necessary to run rm -r software-center with sudo, but since you've attempted to run software-center as root with straight sudo at least once, root might own files contained in that directory. In the future, to run a graphical program as root, you should generally use gksudo, sudo -H, or sudo -i and not plain sudo.)

After running those commands, try running software-center (not as root, not with sudo) and see if it works. If it does not, then please edit your question to include all the text from the terminal starting with the beginning of the line on which you entered the first command listed above, and continuing through the end of the output of software-center.


/sbin/fsck.zfs_member not found while regenerating the initramfs

There is no fsck for ZFS.
So fsck has to be ignored.

ZFS-partitions are identified as zfs_member (to verify run sudo lsblk -l or sudo blkid). update-initramfs wants to install the appropriate fsck. That is not possible.

By the way: You can start a deep check for a ZFS-pool manually using sudo zpool scrub MyPoolName.


How do I know what packages I need to install?

Use

$ apt-cache search <mysearchterm> <othersearchterm>

to search for packages matching these terms in the description field. For example, let's say you're looking for a PDF viewer for use in KDE, you could do this:

$ apt-cache search pdf viewer kde
okular - universal document viewer

Then use apt-cache show <pkgname> to show more details:

Description-en: universal document viewer
 Okular is a universal document viewer with support for advanced document
 features, such as annotations, forms, and embedded files.
 .
 This package provides the document viewer application, plus plugins for a wide
 variety of document formats such as:
  * PostScript (PS)
  * Portable Document Format (PDF)
[...]

Alternatively, use any other package management tool that you like. E.g.:

aptitude  (ncurses-based semi-GUI in terminal)
synaptic  (GUI)

They all provide similar search functionality which is more user friendly than apt-cache search.


How to upgrade Ubuntu Software Center to the latest version

Update manager will always update the softwares to the version meant for your distro not any other (i.e for 11.04 not 11.10). if you do want to try 11.10 version of ubuntu soft center go to this site https://launchpad.net/ubuntu/+source/software-center (this is the official ppa for ubuntu soft center) download the latest stable release and try to install it(at your own risk)


Running command in a new bash shell process

You can use ssh with -n option as,

ssh -Xn user@hostname <command> <argument>

Use of -X is optional to forward X11. In your case,

ssh -n user@hostname node ./bin/www

Example: To open a text file (file.txt) in remote machine with gedit,

ssh -Xn user@hostname gedit file.txt

From man ssh

-n      A common trick is to use this to run X11 programs on a remote machine.  For example,
         ssh -n shadows.cs.hut.fi emacs & will start an emacs on shadows.cs.hut.fi, and the X11 connection will be
         automatically forwarded over an encrypted channel.  The ssh program will be put in the background.