Are ubuntu Snappy and "Traditional Ubuntu Core" now just one?

Indeed, in the past Core and Snappy were two distinct OS flavors. If you dig through old releases, there's core images, but no snappy.

Dustin's blog dates to January 22, 2015. In this techcrunch article from December 9, 2014 the author refers to the two as distinct versions:

  A few years ago, Ubuntu launched a minimalist “core” version of its
  operating system for embedded systems. Today, it is launching an alpha
  version of its new “snappy” edition of Ubuntu Core with transactional
  updates that is specifically geared toward container farms, large
  Docker deployments and platform-as-a-service environments

Since around  mid-2015, Ubuntu Core ceased to exist and now "Snappy" and "Snappy Core" are used interchangeably.


The cause of your issue could be that you are booting the EFI default bootloader of the harddrive instead of the Windows bootloader (NVRAM entry named Windows Boot Manager), which usually "corrects" the boot order. Just use the Windows bootloader in that case, alternatively you could replace the default bootloader with another one.


My internet is very slow and freezes-unfreezes-freezes-unfreezes (16.04)

I believe you're asking about: How do I determine if my drivers are up-to-date on Ubuntu.

For starters, you should post the results of lshw -short and nano /etc/os-release to provide hardware and OS information about your current build.

Now, assuming I interpreted your question correctly, the first thing you want to do is make sure your applications are up to date, so run the following:

sudo apt-get update

sudo apt-get autoremove

Once done here, click on your Unity Dash and search for checkbox, run the tests within this application. This will perform some automated tests (along with tests requiring user input).

Just a side note: Refer to Rmano's answer here about how Linux uses generic drivers.

Now as for the software side of things, if you're still under the impression there are delays, try another browser and see if it software related. To begin testing I would recommend is installing nethogs and bmon and do some investigation, are there applications that seem to be over-utilizing the network card? If you need a GUI to assist, try etherape.

Here is the community fix to an issue relating to yours:

Fix the bug in Debian Avahi-daemon

The slow WiFi in Ubuntu problem could also be related to a bug in Avahi-daemon of Debian. Ubuntu and many other Linux distribution are based on Ubuntu so this bug propagates to several Linux distributions. To fix this bug, you have to edit the nsswitch configuration file. Open a terminal and use the following command:

sudo gedit /etc/nsswitch.conf

This will open the configuration file in gedit so that you could edit it easily in GUI. In here, look for the following line:

hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4

If you find this file, replace it with the following line:

hosts: files dns

Now restart the PC and see if the speed improves.

Here are some links to questions that relate to this issue:

Ubuntu Wireless slow
Very slow internet on Ethernet
Internet Slow on Ubuntu 14.04

If this has not assisted, view the article here on "how to speed up internet"


Setting proxy in apt.conf using Bash Script

Ravexina's answer identifies the underlying reason correctly:

  You need to quote the config value.

However, if you find escaped quotation marks difficult to read or simply ugly there's an alternative:

printf 'Acquire::http::proxy "http://%s:%u";\n' "$prox" "$port" | sudo tee -a /etc/apt/apt.conf > /dev/null

I think you can do the other two lines on your own.

Improvements suggestions:

There's a lot of repetition in your code which you could avoid with a loop:

for proto in http https ftp; do
    printf 'Acquire::%s::proxy "%s://%s:%u";\n' "$proto" "$proto" "$prox" "$port"
done |
sudo tee -a /etc/apt/apt.conf > /dev/null


How to add your Eclipse workspace folder to your PATH?

The command python is expecting a file in the current working directory with the name HelloWorld.py and that is why it's failing (it does not look in PATH for this, and this makes sense).

The PATH variable is for directories that contain executables (commands). If your Python files have the shebang:

#!/usr/bin/python

and are executable, you should be able to run them as:

$ HelloWorld.py

for example.

Say you want to add the directory ~/MyExecutables to PATH. You would add the line

PATH="~/MyExecutables:$PATH"

to your .bashrc file.

If ~/MyExecutables has an executable file called myexecutable you would be able to run it as

$ myexecutable <arguments>

To make a file myfile (in ~/MyExecutables) executable you'd run:

$ chmod +x ~/MyExecutables/myfile

Remarks. If a file is in a directory contained in PATH, but this file is not executable you won't be able to run it. Also if the file is a non-bash script and does not have the shebang line, it won't run even if it is executable.


Install another distro from an iso while live booted into a different one

If I understand you correctly, you want to install Linux Mint again, from an ISO.

You can simply burn the ISO to a disc or thumb drive, boot to it, and install it wherever you like. You don't have to worry about booting into Xubuntu and you can even install it right over your non-working Mint installation, if you want.

Hope that helps.


How resilient is Ubuntu to repeated "power-off" shutdowns?

Note: this answer is from the perspective of a production environment where data loss or downtime can lead to loss of money, customers, industrial equipment malfunctioning, etc. If you are just tinkering with a Raspberry Pi at home, I'd say there's no problem... :)

I would not recommend Ubuntu in its default configuration, and the (default) ext4 filesystem by design, for an embedded environment where there would be repetitive "ungraceful" shutdowns like you suggest.

If I'm correct, you're using Ubuntu 8.04, which supports ext3 at best. While both ext3/ext4 use journaling as a way to maintain file (write) integrity and to aid in recovery, these should not be relied on when "pull the power cable" is the rule rather than the exception.

The ideal option, assuming that your system will not need dynamic reconfiguration once set up, is to mount its root filesystem read-only and to entirely use a temporary in-memory partition when operational (like the LiveCD does). In this case, the system would return to its "initial" configuration whenever booted up.
To store (a limited amount of) user data in a non-volatile way, you could create a secondary partition, perhaps using a filesystem optimized for flash media such as JFFS2 depending on the internal structure of the CF card.  To reduce the chances of data corruption by pulling the plug, you could disable hardware write caching for the device, and mount it in synchronous (sync) mode, disabling write caching by the kernel. These options may severely affect throughput and performance, even on a "high-end" CF card, so you would have to take the intended use into consideration too.


ffmpeg build works different on ubuntu 18.04.2 and macOS

Remove -to 10

You're outputting a single frame so you don't need to declare a duration stop time with -to. A single image has no duration so -to is ignored anyway.
-ss (start time offset) with a value of 0 is doing nothing, so you can remove that too.

Example:

    ffmpeg -y -i acb.mp4 -qscale:v 2 -frames:v 1 abc.jpeg

Same as above but gets a screenshot at 30 seconds:

    ffmpeg -y -ss 30 -i acb.mp4 -qscale:v 2 -frames:v 1 abc.jpeg

Get a screenshot at 22 hours 15 minutes 5 seconds but output lower quality:

    ffmpeg -y -ss 22:15:05 -i acb.mp4 -q:v 5 -frames:v 1 abc.jpeg

You can use the alias -q:v instead of -qscale:v if you want.

Why it works in macOS and not Ubuntu

The -to option was previously only an output option. It has been updated to also work as an input file (declared before -i). You are using FFmpeg 3.4.6 which is too old to use -to as an input option. Your FFmpeg version on macOS is new enough that it can use -to as an input option. But as mentioned previously, when outputting a single image -to does nothing and is ignored.

Also see

How to control JPEG output quality in ffmpeg


Screen goes black after VGA external monitor plugged in

Here's my permanent solution to the problem, which required I install:

sudo apt install gnome-session-wayland

Once installed, reboot. When at the login screen, a cog should be visible beside the 'Sign In' button. Click on the cog and choose from a selection of desktop environments. I had four:

Gnome
Gnome on Xorg
Ubuntu
Ubuntu on Wayland

The two environments in bold supported the external monitor without any problems.

It seems that Wayland is necessary for my external monitor to be recognised.

This became apparent when preventing gdm3 from using Wayland caused my login screen to fail, when it had previously displayed properly.

From there I was able to find what package was necessary to use Wayland on the Desktop, which resulted in the fix described above.

More information on Wayland and Xorg is available here.


How to hibernate laptop when it overheats

Normally, OS do an Emergency Shutdown whenever the die reach a certain temperature which in your case is 90°C.

Windows and Ubuntu (any Linux distribution) has different ways to deal with overheating, so it's not necessary that Ubuntu (any Linux distribution) respond the same to overheating.

I don't know how to change this behavior, you should ask another question for this. And it is also preoccupying that your Laptop overheats, maybe you should check for dust on the fan and air flow, if that doesn't help you should check this question about how to diagnostic weird cases.


How can I maintain my system without a root password?

There is no root password set by default on Ubuntu. It is an account which cannot be logged into, unless you do set a password for it.

If you are getting a prompt for admin access, or from the sudo command on the command line, then it is wanting the password for your user, not the root password.


If you have access to the modem you could try connecting using the LAN cable into one of the LAN terminals available in the modem. And if that works, then you can look for the wifi driver online.


The Unity multitouch grab handles plugin ships with Unity. It is activated by a three finger press on a touch screen. You can toggle it by repeatably tapping three fingers on your touchscreen.

You can use it with a mouse by toggling the plugin on and off. To ensure the plugin is enabled, do the following:

Start the CompizConfig Setting Manager: Press Alt + F2 to open the run dialog, type ccsm, and press Enter (if that doesn't work, you probably need to install the package compizconfig-settings-manager first).
The grab handle plugin will only work correctly, if the Png plugin is enabled, so scroll down to the Image Loading section and make sure Png is ticked:

(source: xrmb2.net)
Now scroll further down to the Uncategorized section and tick the Unity MT Grab Handles plugin:

(source: xrmb2.net)
By default, there is no shortcut defined to initiate the handles, so click on the Unity MT Grab Handles button to configure the shortcut (and also the fade duration, if you like):

(source: xrmb2.net)
Next to Toggle Handles click on the Disabled button and tick the Enable checkbox:

(source: xrmb2.net)
Now click on Grab key combination and press the desired shortcut:

(source: xrmb2.net)
Confirm and close the CompizConfig Setting Manager. Now you should see the handles like in the picture in the question when using the shortcut you just defined.


How to overcome SSHFS error "Software caused connection abort" during copying files

Which sshfs options are you using and which have you tried ?

Here is a list

https://linux.die.net/man/1/sshfs

you can add them to /etc/fstab or specify them on the command line.


I would suggest that you download the full installer and follow this guide: https://help.ubuntu.com/community/WindowsDualBoot


Upgrade 14.04 to 16.04 or fresh install 16.04

If you really only have an apache installed and some html files then I would recommend you copy the files somewhere else and do a fresh install. It will be faster and cleaner.


Problem when creating a network with my virtual machine

You need to set your network adapter to bridged and for Name: choose your host NIC - your wireless or LAN connection adapter from laptop.

Mine is Intel Centrino Wireless-N 1000

Instead of that choose yours.

and press the MAC Adress refresh button (on the right the blue one with arrows) a few times


Cannot connect to internet through ethernet

Apparently the new network was blocking the DNS servers that my desktop was trying to use.

/edit

Whenever I tried to ping google.com on my desktop I noticed it was hanging instead of complaining about an unknown host. This means that the issue was during DNS lookup.

I started playing around with dig to find the issue. dig google.com was hanging as expected. dig @8.8.8.8 google.com was also hanging, which is odd because Google's DNS is normally very responsive. I decided to take a look at which DNS servers I was using vs the ones DHCP told me to use.

$ nm-tool

Device: eth0  [Ethernet connection 1] ----------------------------------------
  Type:              Wired
  Driver:            e1000e
  State:             connected
  Default:           yes
  HW Address:        C8:60:00:DE:4F:BB

  Capabilities:
    Carrier Detect:  yes
    Speed:           100 Mb/s

  Wired Properties
    Carrier:         on

  IPv4 Settings:
    Address:         10.212.9.183
    Prefix:          16 (255.255.0.0)
    Gateway:         10.212.0.1

    DNS:             208.67.220.220
    DNS:             208.67.222.222

This output shows me that the DNS servers that DHCP told me to use were 208.67.220.220 and 208.67.222.222. However, these were not the DNS servers my desktop was configured to use:

$ cat /etc/resolv.conf

nameserver 209.222.18.222
nameserver 209.222.18.218

I use PIA's linux beta and it had changed my resolv.conf to prevent DNS leaks which is normally not an issue. However, since PIA's DNS servers are blocked on this new network and I could not connect to the VPN because the ports required for PPTP are blocked on this network, it ended up causing all DNS lookups to fail.

I restored my /etc/resolv.conf to its resolvconf managed form and restarted the ethernet network to fix the issue.

$ sudo ln -sft /etc /run/resolvconf/resolv.conf


I assume you now have it configured with network manager under X.

But you can also configure a client-vpn-connecton in a config file and put it in /etc/openvpn/. Openvpn should start as a service when booting your client machine and start all configurations found.

From the quickstart guide on openvpn.net:

  The initscript will scan for .conf configuration files in /etc/openvpn, and if found, > will start up a separate OpenVPN daemon for each file.

Check out: openvpn Client Example Config and Ubuntu Communitu Documentation - OpenVPN more information.


systemd is ignoring ExecStop in the unit file, runs it as part of ExecStart

As others have mentioned, the problem is that vmctl.sh immediately exits. Contrary to @Christophe's answer, forking will not work most likely, as vmctl.sh likely does not fork. What you need is a oneshot service, with RemainAfterExit=true. If you just change it to oneshot, you'll get the exact same behavior. The RemainAfterExit part tells it that even after the ExecStart exits, the service should still be considered running, so it should not run the ExecStop(s).


Help installing Ubuntu on a Lenovo Thinkpad L420

I figured it out finally.  There was a bug in the bios and I had to update my bios.  Now it works like a dream.  Just go to the Lenovo site then download the bios iso and burn it to a disk or put the iso on a thumb drive with poweriso.  Set the boot to optical drive first then follow the prompts.  It should install fine after that.


When you call a shell script from the command line, you can pass it additional arguments called Positional Parameters. For example, when entering the following in the command line to run the script myscript.sh:

./myscript.sh param1 param2

The variables would have the following values:

"$0" = "./myscript.sh"
"$1" = "param1"
"$2" = "param2"

The variable $# gives the number of parameters, not including the command. In this example:

"$#" = 2

The variable $* lists all the parameters as a single word (quotes added to emphasize string boundaries):

"$*" = "param1 param2"

The variable $@ lists each parameter as a separate quoted string (quotes added to emphasize string boundaries):

"$@" = "param1" "param2"

Note that you should almost always quote variables in bash, so you should use "$@" and not $@. See this programming guide for more information.


Install Ubuntu touch on production devices

The recovery is only needed if you want to flash the device with ubuntu-device-flash. If you use system-image-cli directly on the device to switch channel, then the recovery image isn't required.


Try to install ubuntu 18.04 to HP Laptop 1-da0xxx

I have successfully installed 18.04 to two seperate HP da0xxx model laptops. I had no issues installing from live cd or bootable usb. I have to re-install quite often on one of them, due to my inexperience and and tendency to make mistakes. I have not had a single issue out of the 20 plus installs I have done. I am not sure that it matters, but I did a customization on the partitions from different suggestions I have found across the web. You may have to change some settings in your BIOS/EFI. I did, as the factory settings would not initially allow it. If you are asking the question, I would imagine you have attempted it and had no luck. You should try giving specifics in your question so that the answers can help you in detail. I hope this helps.


Compiling kernel fails during "dkms-build downloading zfs" with "ERROR 404: Not Found"

This is my solution, try this to see if that helps:
sudo apt-get install gawk
The main reason for this failure is that dkms_zfs_linux_version is empty(gawk not work for user root)
check with

sudo gawk '/^zfs-linux / { print $$2; }' debian/dkms-versions

to see if it prints the right version (For me it's zfs-linux 0.8.3-1ubuntu12.4)
phoenix-a300@phoenixa300-desktop:/raid/ubt-kernel/ubuntu-focal$ git grep dkms_zfs_linux_version
debian/rules:dkms_zfs_linux_version=$(shell gawk '/^zfs-linux / { print $$2; }' debian/dkms-versions)
debian/rules.d/2-binary-arch.mk:        $(if $(filter true,$(enable_zfs)),$(call build_dkms, $(mods_pkg_name)-$*, $(pkgdir)/lib/modules/$(abi_release)-$*/kernel, $(dbgpkgdir_zfs), zfs, pool/universe/z/zfs-linux/zfs-dkms_$(dkms_zfs_linux_version)_all.deb))


Can't boot from USB after installing Ubuntu

Make sure USB drive comes first in the list of boot devices in your BIOS settings. In some BIOSes unplugging the USB drives removes it from the list of boot devices so you need to do this every time you want to boot from USB, with your flash drive plugged in when you open BIOS setup.

Ubuntu, or any other OS, has absolutely no control over the early stages of boot process - basically, your BIOS decides which device to boot from before it invokes GRUB or any code from Ubuntu.


Is it possible to use an old computer that just has the possibility to use an USB interface WiFi?

Ubuntu 8.10 is no longer supported and you will no longer receive any updates.

You'll have to do the work yourself if the 8.10 kernel doesnt support your device i.e. find out what the kernel module is required for the device, compile it and add it to your 8.10 kernel.

If you are worried about newer supported versions of ubuntu requiring more resources - then look at installing Lubuntu or Xubuntu.  Both are lighter on resources - Lubuntu itself has a minimum requirement of 128Mb RAM.

By using a newer version of ubuntu, you will more likely have a kernel that supports your device out-of-the-box or that is more likely to be used by people here on AskUbuntu or on UbuntuForums.

For finding out what devices are compatible with Ubuntu - look at Ubuntu Certified products.  If you install 11.10 Lubuntu or Xubuntu then most modern wifi USB devices will be supported - sometimes you will need to install firmware, but Ubuntu usually takes you through this process via the Additional Hardware window


I had the same "undefined reference to `memcpy@GLIBC_2.14'" error with Oracle 11g R2 on Debian 8 (Jessie). I solved it with the solution found here:

Define the relevant directories:

ORACLE_HOME="/u01/app/oracle/product/11.2.0/dbhome_1"
mkfile="$ORACLE_HOME/ctx/lib/ins_ctx.mk"

Create a short C wrapper:

cat << __EOF__ > /tmp/memcpy_wrap.c
#include <stddef.h>
#include <string.h>

asm (".symver wrap_memcpy, memcpy@GLIBC_2.14");
void *wrap_memcpy(void *dest, const void *src, size_t n) {
    return memcpy(dest, src, n);
}
__EOF__

Edit the make file to use this wrapper and compile it:

sed -i -e 's/\$(INSO_LINK)/\$(INSO_LINK) -Wl,--wrap=memcpy_wrap \$(ORACLE_HOME)\/ctx\/lib\/memcpy_wrap.o/g' "$mkfile"
gcc -c /tmp/memcpy_wrap.c -o ${ORACLE_HOME}/ctx/lib/memcpy_wrap.o && rm /tmp/memcpy_wrap.c


Server edition - Nothing appears when password is entered

The password line will not display the password you type in. Once you type in you user name and click enter, it moves to the password line. Anything you type here will not display (not in letters or asterisks).


You may disable your sounds or whatever. Try this trick:1. Open the Activities overview and start typing Sound. 2. Click on Sound to open the panel.3. In the Alert Sound section, select an alert sound. (Each sound will play when you click on it so you can hear how it sounds.)Enjoy!


how can i go back to 12.04 from 12.10 in a dual boot pc?

There's a good guide on how to downgrade an Ubuntu installation which you can find here
https://help.ubuntu.com/community/DowngradeHowto

However, it is a better idea to do a reinstall. Back up any data you can (this is why it's a good idea to separate root and /home) and reinstall... you'll probably save more time in the long run unless you have critical data.


Script to get the (short) installed app list similar to Ubuntu Software Center?

In Python, you can get the list of installed packages this way:

import apt
packages = apt.Cache()
packages.open()
installed_packages = [i.name for i in packages if i.is_installed]

If you want to know additional info about the packages, the process is a bit more involved. See the documentation for Python's apt module for all the information that's available. Additionally, you can look through the Software Center's source to find out what they do.

You won't get this info merely by looking at some file somewhere or running a simple command. You're going to need to do some scripting.

EDIT: I believe that Software Center gets its list of packages to show from those packages that ship .desktop files. It might be more complicated than that, but you can easily filter the list to those packages that are installed and have a .desktop file. This example continues my previous code:

import os
desktop_files = ['.'.join(i.split('.')[:-1]) for i in os.listdir('/usr/share/applications')]
installed_in_software_center = [i for i in installed_packages if i in desktop_files]


sudo add-apt-repository -y ppa:ptrkrysik/gr-gsm sudo apt update && sudo apt install gr-gsm

is not a valid command chain. This is:

sudo add-apt-repository -y ppa:ptrkrysik/gr-gsm && sudo apt update && sudo apt install gr-gsm

Mind the extra && before the 2nd sudo.


Have you tried running Boot-Repair?

It worked for me with a similar issue.
This software repairs common issues with boot and grub menu entries. And if it can't solve a certain issue, it outputs a report which you may paste here so that the issue may be understood better.

You may install and run it on Ubuntu through the following commands:

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

I hope it can work out the issues with kernel entries you described!


How to deactivate a specific screenshot keyboard shortcut?

On my Lenovo Thinkpad ultrabook, the Fn and Ctrl keys are swapped too. I find this super annoying.

What I propose next definitely doesn't answer the question on how to disable the Fn + S "take screenshot" keyboard sequence, but it may help you quit accidentally hitting it all the time by putting your Ctrl key back to where you expect it. Some computers have a setting in their BIOS/UEFI chip which allows swapping the Fn and Ctrl keys. Here is an option to do so, for instance, in my BIOS/UEFI chip config settings:

Additional research while still trying to solve this problem:

Note that for me personally, this does NOT resolve my problem, as I'd like to leave the key that says "Ctrl" on it as the Ctrl key, and I'd still like to disable the Fn + S "take screenshot" keyboard sequence. I looked around my BIOS settings and didn't find anything else which seemed to be related.
Note also that Lenovo has intentionally made Fn + S have this behavior. See here (https://support.lenovo.com/us/en/solutions/ht503647) where they show their "Key combinations". Note that Fn + S = the SysRq, or System Request (ie: kernel interrupt) key, which is PrintScreen on Linux. Therefore, on Linux, for these Lenovo computers, Fn + S = SysRq = PrintScreen. Here's Lenovo's full list of Key combinations:

  Key combinations:

  Fn + B: This key combination has the same function as the Break key on a conventional external keyboard.
  Fn + K: This key combination has the same function as the ScrLK or Scroll Lock key on a conventional external keyboard.
  Fn + P: This key combination has the same function as the Pause key on a conventional external keyboard.
  Fn + S: This key combination has the same function as the SysRq key on a conventional external keyboard.
  Fn + 4: Press Fn+4 to put the computer into Sleep mode. To wake up the computer, press any key or the power button.
  Fn + Space Bar: If the computer supports keyboard backlight, press Fn+Spacebar to switch between the different keyboard backlight status (off, low, or high).

This may mean these key combinations are hard-coded into Lenovo laptops, which is very bad news for us if so, as either this is in the circuit board layout, chips, or firmware which we can't change, and in which case we have no way to disable this if there is nothing provided by Lenovo to do so in the BIOS.

Related:

How do I disable screenshots with 'fn+s'


How does Ubuntu mount the encrypted home folder when accessing it over samba?

If you're meaning the eCryptfs home directory encryption, then the reason it is available is because the kernel keeps the user's home directory encryption key in memory for as long as the user is logged in (as defined by a PAM "session"). Specifically, the software that handles this is pam_ecryptfs. See its use in /etc/pam.d/common-*.


Ubuntu 12.04: Open launcher elements only with double click

The launcher is not hidden I guess? I would hide the Launcher and lower the sensitivity for popping up the launcher.

And if you hit a button, hit the program that's opening and hit Alt-F4 it's the fastest way I can think of.


Fonts in Firefox weird after installing kubuntu-desktop

The solution is removing .fonts.conf placed by KDE. This restored the fonts to normal.


Getting error while updating all snaps using single command

That documentation is incorrect. The command to refresh all your snaps is:

sudo snap refresh

NOTE: You do not need to manually run this. Your system will update all your snaps four times a day, using delta downloads to conserve bandwidth.


Try Lubuntu 13.04 32-bit or Ubuntu GNOME 13.04 32-bit, if they don't work, you probably need something called a non-PAE kernal, so install Lubuntu 12.04 32-bit and then run the following commands in a Terminal (press Ctrl + Alt + T):

sudo add-apt-repository ppa:prof7bit/fake-pae
sudo do-release-upgrade
sudo do-release-upgrade

That should upgrade you to Lubuntu 13.04. You can then install Ubuntu GNOME for 'fuller' Ubuntu experience (it has the Ubuntu system tray in the top-right).

sudo apt-get install gnome

To remove Lubuntu:

sudo apt-get remove lubuntu-desktop


Trouble with old video card (NVIDIA GeForce 6600 GT) and Ubuntu 20.04

I'm afraid you'll have to run with nouveau and accept its performance as is.
There's no other solution because the last Nvidia proprietary driver that supports your card is 304 and 304 can't be installed with any kernel newer than the one present in the first release of Ubuntu 16.04. So, yes, that was a long time ago.
You may try Ubuntu flavors other than the standard Gnome, like Xubuntu or Lubuntu. The current standard Ubuntu is too much for hardware of such vintage.


unrar nested folder in ubuntu strange behaviour

The manual says:
e - Extract files to current directory.
x - Extract files with full path.

so it is expected behavior.  Use x for to have it restore including path names.


Can I make my desktop background active?

I can give you similar conky script but no 100%. You need to change the font, alignment and icon set.

Result

Step 1.

Install conky

sudo apt-get install conky

Step 2.

Install conky forecast

sudo add-apt-repository ppa:conky-companions/ppa
sudo apt-get update && sudo apt-get install conkyforecast

Step 3.

Save at home folder

.conky1
.conky2
.weather-ob
.conkyForecast.config

Step 4.

Open .conky2 and locate --location=MYXX0006

Replace MYXX0006 with you location code.

You can find your code here

Step 5.

Run your conky

By terminal:

conky -c ~/.conky1
conky -c ~/.conky2

Make startup application

Open startup application

  Name : Conky1

  Command : conky -p 20 -c ~/.conky1

  Name : Conky2

  Command : conky -p 20 -c ~/.conky2


Modified from owncloud.org:

sudo nano /etc/apt/sources.list.d/owncloud.list

Then paste this into that screen

deb http://download.opensuse.org/repositories/isv:/ownCloud:/community/xUbuntu_14.04/ /

Then update repos and install:

sudo apt-get update
sudo apt-get install owncloud

That should install all the dependencies it needs etc also.


My laptop does not recognize the network card in ubuntu

I had the same issue with my previous HP laptop. After going to numerous forums, repair shops and hp customer care, the conclusion was as follows:

The ACPI drivers were incompatible (Booting Ubuntu with "acpi=off" grub parameter) and hence would not allow access to the wireless card. (This also caused my laptop to not recognize the battery).

The issue seems to be unfixable (barring the purchase of a new laptop - you can find systems which work with Ubuntu here : https://certification.ubuntu.com/desktop/).

However, you might want to try finding the relevant drivers before you head out for a new laptop (you might find it here if it is by Intel: https://www.intel.com/content/www/us/en/support/articles/000005559/network-and-i-o/wireless-networking.html).

Also, the cheapest solution would be to use an Ethernet cable.


Dell Vostro 3568 - wifi very slow internet connection

I hope it will help someone, my issue is resolved by

sudo apt-get purge bcmwl-kernel-source
sudo apt-get install firmware-b43-installer


Read-only filesystem after reinstalling Ubuntu

It might be because your drive is failing. Try booting from a LiveCD/USB and run something like smartmontools to see if the drive's S.M.A.R.T. lists that it's had some failures. Very important to do on SSDs, though HDDs aren't immune to this sort of issue either.

You could also do the same through GParted in the LiveCD itself. E.g. How can I check the SMART status of a SSD or HDD on current versions of Ubuntu 14.04 through 17.04?


No 'Move to Trash' in Files for symlinked directory

When I start a console session I have not yet done a 'newgrp' for the symlinked directory.  Thunderbird started from the command line after 'newgrp' does write to the directory.

Explanation: When you log in with a graphical console, the start-up scripts such as 'bashrc' are run.  Presumably you do not have a 'newgrp' command in them.  So then any graphical app you start from the menu bar inherits that environment.  When you open a terminal app, it starts a new shell that inherits that environment also.  After you do 'newgrp' in that terminal, any app started from that terminal will inherit that group, but the original environment is not changed.

Solution: If you set the 's' permission bit for the group (chmod g+s ) and if your 'groups' response includes the group which owns that directory, then when you write to the directory it keeps its original group and does not try to change it to your primary group (first group listed by 'groups'). You cannot change the group of a directory you do not own.


Execute binary from shell script, and see output in terminal


Why can't I open the image in any viewer?

The issue is probably RAM and/or CPU.

The TIFF image is LZW-compressed. When an application wants to display it, it needs to uncompress the image first. And that's where RAM and CPU come into play. Furthermore, depending on the application, there may be buffers that also need RAM.

I did some (non-scientific) experiments and noticed differences between applications in three phases: when loading the image, after loading the image, when zooming in.

Shotwell took up to 5GB of RAM while opening the file and then dropped to 2GB. When I zoomed in, it went up to 7GB.

Gimp went up to 5GB and stayed there when viewing the image and zooming in. The RAM usage gradually increased when editing the image.

GwenView went up to 3.8GB while loading and dropped to 2GB afterwards. When zooming in, it went up to 2.7GB.

Your best bet is trying GwenView (the default image viewer in Kubuntu, but can be installed in stock Ubuntu as well).

What options do I have if the image is way too big for RAM?

In general, if the image is too big to fit into RAM, you can split it using convert which is part of the imagemagick package.

You need to increase the default limits which are defined in /etc/ImageMagick-6/policy.xml (the number 6 may change in future versions). You need to adjust the maximum size in pixels, which are defined in the following lines:

<policy domain="resource" name="width" value="16KP"/>
<policy domain="resource" name="height" value="16KP"/>

KP means KiloPixels, i.e. thousand pixels. In your case, the image has 40000x12788 pixels, so you only need to change the width to something greater than 40KP, e.g. 41KP.

Additionally, you need to increase the maximum disk space:

<policy domain="resource" name="disk" value="1GiB"/>

to something reasonable like 10GiB.

To split the image into 5x3 parts and produce one file per part, use the following command:

convert -crop 5x3@ inputfile.tif outputfile%0d.tif

For more information about convert, see man convert or take a look at the documentation.

Maybe a bit off topic, but here's a quick&dirty bash script that tiles an image and creates an html page that displays an overview where you can click on a tile to open it in full resolution. Save it as e.g. tile_image.sh and invoke it like ./tile_image.sh originalImage tilesX tilesY, where tilesX is the number of tiles horizontally and tilesY is the number of tiles vertically.

#!/bin/bash
INPUT_FILE=$1
TILES_X=$2
TILES_Y=$3
OUTPUT_FILE=${INPUT_FILE%.*}_tile_%0d.png
convert -crop $TILES_X"x"$TILES_Y\@ $INPUT_FILE $OUTPUT_FILE
HTML_FILE=${INPUT_FILE%.*}_tile_view.html
echo "
" > $HTML_FILE
X=0
Y=0
while [ $Y -lt $TILES_Y ]; do
    echo "
" >> $HTML_FILE
    while [ $X -lt $TILES_X ]; do
        TILE_NUMBER=$(echo $Y*$TILES_X+$X | bc -l)
        TILE_NAME=${INPUT_FILE%.*}_tile_$TILE_NUMBER.png
        THUMBNAIL=${INPUT_FILE%.*}_tile_$TILE_NUMBER"_thumb.png"
        convert -resize 100x100 $TILE_NAME $THUMBNAIL
        echo "	" >> $HTML_FILE
        let X=X+1
    done
    let X=0
    echo "
" >> $HTML_FILE
    let Y=Y+1
done
echo "
" >> $HTML_FILE


How to make a "clean wineprefix" in a terminal?

If you plan on having more than one alternative prefix, I'd recommend keeping a directory of prefixes (e.g., ~/.wine/wineprefix/<nameofprefix>). In your case of only needing one prefix, let's call our alternative wineprefix ".wine-w-wmp":

mkdir ~/.wine-w-wmp
WINEPREFIX=~/.wine-w-wmp wine winecfg

The wineprefix part tells the wine program which virtual drive to use. wine winecfg is the actual command, which will bring up the virtual drive's configuration. However, winecfg will notice that no virtual drive exists at this new location and will create one. Wine "bottles"/"wineprefixes" and "virtual drives" are used interchangeably--they refer to a new instance of wine, like separate computers with their own setup. So this is your clean wineprefix.

In your case, to install Windows Media Player 10, download it from their website, and if the file is in your Downloads folder, run:

WINEPREFIX=~/.wine-w-wmp wine ~/Downloads/MP10Setup.exe

Then install as usual.

If you're planning to type WINEPREFIX=<directory of prefix> at the start of each wine command, you might want to just set that wineprefix as the default. (When run without "WINEPREFIX=", wine looks to its default wineprefix at ~/.wine.) To change the default (at least until your next restart), run:

export WINEPREFIX=~/.wine-w-wmp <or the directory of your prefix>

(If you want this command to stick between new Terminal instances, add the above line to your ~/.bashrc and then run source ~/.bashrc to reload the file in your current instance.)


"BOOTMANAGER is missing" error when trying to dual boot

If you have an and windows 7 disk handy. Boot off of it and choose recovery. Then choose recovery console and type fixmbr, this should get the windows boot screen back and also have a choice for ubuntu if it's still intsalled.


Solution for casting from Mac to Ubuntu?

You could try to install a linux distro like OpenElec http://openelec.tv/

It's a distro made for home entertainement, it uses Kodi Media Center http://kodi.tv

And as you said, Kodi has an AirPlay service, it might work but it's not a sure thing


Broadcom wireless doesn't work on an HP Mini 110 1199EA under Wubi install

My wireless device seems to be called "Broadcom 802.11b/g WLAN" does that make any sense?

Yes. You need to install drivers for it, in this manner:

Connect your netbook to a wired connection (your router/ethernet)
Open a terminal with Ctrl-Alt-T
Type sudo apt-get update
Type sudo apt-get install b43-cutter firmware-b43-installer -y
Exit, reboot and give it 30 seconds or so...you should hopefully see the "Wireless Networks Detected" popup.
If you don't have a way of getting the wired connection, please add a comment and I'll include a way using a USB stick.


Auto-mount in fstab no longer working until manually running 'sudo mount -a'

If it doesn't at boot and works fine after boot, it's entirely possible that the network isn't available at the time the mount is done. Networking comes up at login these days so this seems likely.

Two solutions to fix this issue:

You should be able to add _netdev to your list of mount options. This forces the mount to wait for a network interface to come up. Win.
Usurp the boot stack and configure your own network card. If it's a simple ethernet connection whacking something like this in /etc/network/interfaces might work:

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

It's a little messier but this is what Ubuntu used to do. And it works for me.

If in doubt try both. At once if you need to.


How to turn off digital output on my iMac?

open a terminal window and give:

amixer set IEC958 off


please try sudo apt-get install gnome-control-center which is the cog and wrench program I have installed on 18.04


Access point with hostapd on ubuntu 20.04 server won't let clients connect

Still no clear idea about why the deauth messages appeared, but I solved the hostapd issues by setting up the bridge in netplan.
adam@gondolin:~$ cat /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:
    enp5s0:
      dhcp4: yes
      dhcp6: yes
    eno1:
      dhcp4: no
      dhcp6: no
    wlp6s0:
      dhcp4: no
      dhcp6: no
  bridges:
    br0:
      interfaces:
        - eno1
        - wlp6s0
      addresses:
        - 192.168.0.3/24
      nameservers:
        addresses: [208.67.220.220,208.67.222.222]
adam@gondolin:~$


Well, due to kernel version I guess you have Ubuntu 12.10 (12.11 is not a version of Ubuntu, please edit your question and correct it).

Then you said that virtualbox not work due to missing headers of 3.2.0-32 kernel. This kernel is from 12.04 Ubuntu version . Ubuntu 12.10 uses 3.5.0-17 (3.5 series).
So the only thing I can guess is that you've upgraded from 12.04 to 12.10 and the old kernel remained to your system.

The easy solution here is to remove the old kernel 3.2.0-32.

See here on how to remove the old kernel

Then run again sudo /etc/init.d/vboxdrv setup and should be fine.


Where did blender generate the system-info.txt file?

This question does not concern Ubuntu but rather blender, however I still have an answer for you.

Blender has its own text editor which you can open by selecting text editor from the current editor button.

After you are in the text editor simply select the browse text button (icon that looks like a notepad) and select system-info.txt.


(QML) What does the "?" do in defining properties?

The snippet of code in your question does not work for me. I wrote a minimal example:

import QtQuick 2.0
import Ubuntu.Components 0.1

MainView {
    width: units.gu(48)
    height: units.gu(60)
    id: mainView

    Rectangle {
        height: visible ? 20;
        width: 20;
    }

}

And qmlscene reports the following error:

qmlscene ./foo.qml
file:///home/sylvain/foo.qml:10 Expected token `:'

The correct syntax for the javascript ternary operator is as follow:

height: visible ? 20 : 10;


How can I determine which version of FFMPEG comes by default?

Yours is a PPA version, which is most probably similar to the official version. See below, from Precise (Ubuntu 12.04):

$ dpkg --list ffmpeg
ii  ffmpeg                                 4:0.8.1-0ubuntu1
Multimedia player, server, encoder and transcoder (transitional package)

$ apt-cache policy ffmpeg
ffmpeg:
  Installed: 4:0.8.1-0ubuntu1
  Candidate: 4:0.8.1-0ubuntu1

$ ffmpeg

ffmpeg version 0.8.1-4:0.8.1-0ubuntu1, Copyright (c) 2000-2011 the Libav developers
  built on Mar 22 2012 05:09:06 with gcc 4.6.3

.....

To reinstall the official version over the PPA version, you can either use the ppa-purge script (install that first!), or if you have already deleted the PPA, use

sudo apt-get install ffmpeg=4:0.8.1-0ubuntu1

You may have to throw a --reinstall switch in there if it fails.


The subvolume was correctly marked as deleted and will be cleaned at a later time. This is the same behavior as before Trusty.

Before Trusty, btrfs subvolume list was just omitting the deleted, not-yet-cleaned subvolumes in the output. In Oct 2013, this was changed to list them as DELETED rather than skipping them, so this change is in Trusty's btrfs-tools (3.12) but not in previous Ubuntu releases.


Whats the meaning of CPU% for each process in top command?

The CPU Usage percentage in top is relative per core. For example, if a program was running at full capacity on each core in a quad-core machine, the program  would be reported as 400% in top.

In this case, qemu was using a sum of 133% of one core's computation power. This means that qemu could be using all of one core and some of another, or a little bit on each core.

Related SU Question


Is there a way to create a Windows virtual machine on Ubuntu Server?

You should use KVM, because ... because Ubuntu love Kvm

what is KVM

KVM (for Kernel-based Virtual Machine) is a full virtualization solution for Linux on x86 hardware containing virtualization extensions (Intel VT or AMD-V).

Using KVM, one can run multiple virtual machines running unmodified Linux or Windows images. Each virtual machine has private virtualized hardware: a network card, disk, graphics adapter, etc.

The kernel component of KVM is included in mainline Linux, as of 2.6.20.

Ubuntu uses KVM as the back-end virtualization for non-graphic servers and libvirt as its toolkit/API. Libvirt front ends for managing VMs include virt-manager (GUI).

Let's go to hack

This setup guide is to configure a KVM on Ubuntu Server and management of the VMs is done remotely from another machine running Ubuntu Desktop.

SERVER SIDE

STEP #1: Install lib-virt package.

sudo apt-get install kvm libvirt-bin

STEP #2:allow incoming tcp and udp packet on port 22 (ssh) on server

sudo ufw allow 22

DESKTOP SIDE

STEP #2: Install Virtual Machine Manager (on Ubuntu Desktop machine).

sudo apt-get install virt-manager

STEP #3: Connect to the server: execute virt-manager

gksudo virt-manager

FILE.
ADD Connection.

Connect to remote computer
Method : SSH
User : your user server
machine name : ip address of the server

NOW YOU ARE READY TO CREATE VIRTUAL MACHINE ON THE SERVER

STEP #4: Create the Guest VM image. Virtual Machine Manager provides a GUI to easily create an image. Just right-click on the server and select “New”. You will then be prompted step-by-step on the variables (e.g. # of processors, memory, etc.) needed to be configured for your VM.

STEP #5: Install the Guest VM OS. Use your regular CD/DVD installer or iso image to install the operating system on the VM.

More information in ubuntu official server Documentation -> here

Good Luck and Happy Rocking

P.S : you souldn't be afraid of command line.....


If you can access the computer from terminal like TTY1 (hit control+alt+F1), try removing the .Xauthority file from your home directory.

rm .Xauthority

You may need to use sudoin case the permissions are messed up like

sudo rm .Xauthority

And then restart


How do I completely uninstall and old version of Redis?

There is a make-command but no make-install-command. Because of this, I think it is enough to delete just the main-folder (where you executed the make-command) and every file you copied to any location on your filesystem according to the guide.


How do I get the list of the active login sessions?

Here are few alternatives to get the list of the current session:

The command who - display who is on the system:

$ who
spas     pts/1        2017-11-05 21:43 (tmux(1597).%0)
spas     pts/14       2017-11-09 13:02 (192.168.100.110)
guest    tty2         2017-11-09 16:15 (:1)

The command w - displays  information  about the users currently on the machine:

$ w
 16:16:12 up 3 days, 18:33,  9 users,  load average: 4,33, 2,79, 2,44
USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU WHAT
spas     pts/1    tmux(1597).%0    нд21    3days  3days  3days tmux new-session -d -s my-tmux-session
spas     pts/14   192.168.100.110  13:02    1.00s  0.29s  0.01s sshd: spas [priv]
guest    tty2     :1               16:15    3days  1.27s  0.17s /sbin/upstart --user

The command last lastb - show a (history) listing of last logged in users. It provides few analytical options as --until, --since, etc.
The command users - print the usernames of users currently logged-in to the current host. It has really limited usage:

$ users
guest spas spas

To kill a specific session you could use who -u (or who -a) to print the process numbers and then sudo kill -9 <session-process-number>:

$ who -u
spas     pts/1        2017-11-05 21:43  old         1597 (tmux(1597).%0)
spas     pts/14       2017-11-09 13:02   .         31822 (192.168.100.110)
guest    tty2         2017-11-09 16:15  old         2225 (:1)

$ sudo kill -9 2225   # this command will kill the third session from the above list

Additionally you could kill all processes of a specific user (reference):

sudo pkill -9 -u <username>

See also:

How do I find who is logged-in as root?
How do I list logged-in users without duplicates?


I once had similar problems trying to use HDMI to access builtin monitor speakers.  A simple work-a-round was to unplug/re-plug in the HDMI cable after rebooting.
this somehow caused the speakers to then be acknowledged.  You may also try configuring System Settings ==> Sound ==> Output.


Casting movies from Linux PC Kodi to TV using Bubbleupnp and Chromecast dongle

If your add-on has the ability to save to file while you watch, you can run this suite of python scripts on the result.
https://github.com/Pat-Carter/stream2chromecast

Or if you setup an apache server (or expose it via another URL provider of some sort (lighttpd, python -m SimpleHTTPServer 8080, etc,etc ) to your cache directory, and plop this set of html examples into it as well, you can stream almost instantly.
https://github.com/vickyg3/UrlPlayer

*I'm currently working on a native Kodi solution myself, but it's going to take a bit to figure out the ins and outs and migrate the Pat-Carter's python code into an addon/script. If you're techy savvy, this might be fairly easy to do.

For now, I personally use SMPlayer. (http://www.smplayer.info/en/downloads) while not a near enough kodi solution, it's how I found out about UrlPlayer.
(may the stack and format gods not hurt me too badly? I'm still relatively new to answering.)


Dual boot Windows 10 and ubuntu 18.04 problem

If you have some data to save do it.
You have already deleted Ubuntu partition and you don't want Windows either, so no problem.
Download Ubuntu ISO (and see other options) from here.
Make a bootable USB (see here) or DVD (see Here).
Boot from USB or DVD by selecting the option by pressing F8 or F12. For other kind of computers see here.
When asked choose 'Something else'.
When asked choose the partition to install. So on..
when completed reboot.
Open gparted and delete Windows 8/10 partitions.
Run sudo update-grub
Done.


Don't use -t ntfs with mount.  It is old, and I believe deprecated in favor of fuse ntfs 3rd gen.  Fuse should installed.  Try replacing ntfs with ntfs-3g, and see if that helps.

There were some other options that went along with fuse like mount as user (instead of root, if mounting readwrite) and so on.  I'd try mount -o ro (Read Only) until you are sure your drive's not in an unstable state.

Good luck!


Ubuntu 16.04 installer is not creating partition in Dell Latitude Laptop

I have resolved the issue. It looks like if you have McAfee drive encryption installed the partitions do not get created.


I use ssh-agent to load keys.  You can control the length of time the keys are active.

You can also use a private configuration file to specify the key and other settings for individual hosts.


Remove Multiple Players from Ubuntu Sound Menu is not working on 14.04

The new instructions on OMG! Ubuntu! worked for me, here is a summary:
dconf-editor: com > canonical > indicator > sound
Double click on the closed brackets next to interested-media-players and delete the players you wish to remove from the Sound Menu, but leave in the square brackets and don’t delete any commas or apostrophes from items you wish to keep.
To avoid having to repeat the process add them to the blacklisted-media-player section.
Remember to enclose each player in apostrophes with a comma separating multiple entries. They must also be inside the square brackets — so double check before exiting.


Can't install 14.04 with any method (usb,dvd,wubi)

Also, make sure you turn off QuickBoot or FastBoot in your BIOS. I had the purple screen issue with Win 7 and Ubuntu last year and that's what ultimately fixed it for me.


grep -v "grep" takes input line by line, and outputs only the lines in which grep does not appear. Without -v, it would output only the lines in which grep does appear. See man grep for details.

As far as the grep utility is itself concerned, it's unimportant that the pattern grep passed to it as an argument is the same as its name. But in most cases where grep -v grep actually appears, this is no coincidence.

grep -v grep (or grep -v 'grep' or grep -v "grep") often appears on the right side of a pipe whose left side is a ps command. That is likely where you have seen it. For example, I might be looking for running programs whose names, paths, or command-line arguments suggest they're related to Xfce:

ek@Io:~$ ps x | grep xfce
 2955 ?        Ssl    0:10 xfce4-power-manager
 2958 ?        S      0:00 /usr/lib/x86_64-linux-gnu/xfce4/xfconf/xfconfd
31901 pts/1    S+     0:00 grep --color=auto xfce

My grep command was shown in the output, but it's not what I'm looking for. I'm looking for information on processes that were already running when I examined what was running, not the process that's only running because of my effort to examine what is running.

One common way to remove this distraction is to add another pipe to grep -v grep:

ek@Io:~$ ps x | grep xfce | grep -v grep
 2955 ?        Ssl    0:10 xfce4-power-manager
 2958 ?        S      0:00 /usr/lib/x86_64-linux-gnu/xfce4/xfconf/xfconfd

grep without -F treats its pattern as a regular expression rather than a fixed string. So another approach is to write a regular expression that matches exactly xfce but is written differently. For example:

ek@Io:~$ ps x | grep '[x]fce'
 2955 ?        Ssl    0:10 xfce4-power-manager
 2958 ?        S      0:00 /usr/lib/x86_64-linux-gnu/xfce4/xfconf/xfconfd

This works because [x] is a character class that matches exactly the letter x.

One shortcoming of those popular methods is that they'll filter out lines that contain grep even when they're not the grep command you just ran yourself. They might not even be grep commands--just commands whose names, paths, or command-line arguments contain grep. So, as Sergiy Kolodyazhnyy has pointed out, often neither of those ways (nor any other approach involving piping the output of ps) is really ideal and, as Nic Hartley mentioned, other ways often use pgrep. For example:

ek@Io:~$ pgrep -af xfce
2955 xfce4-power-manager
2958 /usr/lib/x86_64-linux-gnu/xfce4/xfconf/xfconfd

-a shows the full command line. Omit it to show only the process ID number.
-f searches in full command line. Omit it to search only the names.


Just right click on the panel, and select Add to Panel. Scroll down, and look for Indicator applet. Click the Add button. That should add the indicator. If that does not solve your problems, open a terminal, by pressing Ctrl + Alt + t

Type

rm /home/wissen16/.gconf/apps/panel/

And log out for the settings to take effect.


Change installation path / move programs

Create a folder on your HDD e.g. "my_games". Then copy all the contents from /home/YOURUSERNAME/.local/share/Steam to "my_games" on your HDD.

Then open Steam:

>> Settings >> Downloads >> Content Libraries

Click on ADD LIBRARY FOLDER and select "my_games" (your HDD is mounted / found inside the /media folder(!)) on your HDD. Then select the old library folder and click on REMOVE LIBRARY FOLDE

After closing the menu remove the old folder with: rm -r /home/YOURUSERNAME/.local/share/Steam


You can get rid of the

no connection to ibus-daemon

error following the suggestions on this thread Is removing ibus enough?. Maybe it solves your problem.


BQ M10 Ubuntu Touch - Micro HDMI Not Outputting to TV

I had a similar issue, it seems a little picky about what it will connect to. It wouldn't work with my monitor through a HDMI to DVI converter or in my TV through its second HDMI port, which is labled as a HDMI/DVI. It did however work in a different HDMI port (HDMI 1). So this is rather a long way of saying try a different port


Be careful: you tagged your post 14.04 but the link you give refers to ubuntu 16.04.

If you want to install SQL server on your ubuntu you will have a to add the Microsoft corresponding repository and use apt-get.

Here is the MS tutorial describing accurately each step to take :

MS tutorial to install SQL server


Electron `chrome --type=renderer --field-trial-handle=...` won't shut down, eats up Memory

It is not caused by Electron.
I was searching for what they were doing consuming my memory when I ran across your question. But I am not using or even have Electron installed. I instead run Brave browser which is built upon chromium.
So this must be some chrome shit. I am new to this too.


Encrypted HDD - enter passkey with on-screen keyboard and touch screen

A very nice on-screen keyboard ships with Ubuntu.  (If it is not included with the alternate installer, install it using  sudo apt-get install onboard).  The keyboard can be invoked by searching for and running Onboard from the Dash; it can be configured by launching Onboard Settings from the Dash.

The danger with an on-screen keyboard and touch (only) screen is that the user could potentially close the keyboard at the Lock-Screen or the Login-Screen, and would have no way to bring it back up.  (After having logged in, however, the user could easily tap on the Ubuntu Dash, and restart the keyboard, if necessary).

I wrote a script to address this and other issues with a touch-screen only keyboard system.  Perhaps it will be useful to you...

Tablet Mode Switcher, Post # 259

(When viewing the above post, if you log into ubuntuforums.org, you will be able to see the attached screenshots of the online keyboard).

Additionally, you can enable an onscreen keyboard from System Settings | Universal Access | Typing | On Screen Keyboard | On.


trying to dual boot ubuntu 15.10 with windows 10, new dell xps 9350

Disable secure boot in BIOS.
Also make sure that you are installing Ubuntu in EFI mode as Windows
is also installed in EFI mode.
Turn off hibernation and fast boot from Windows
Check your ISO image. If possible use Universal USB Installer as in this link

When downloading Ubuntu - I will suggest go for LTS release - current one is 14.04.3 specifically Desktop - 64 bit(if your machine is 64 bit). Very soon(in April, we are going to get 16.04 LTS)


See SSH doesn't resize terminal. The user reported that the problem was fixed when he upgraded to gnome-terminal-3.12.1.

To install the new version in 14.04:

wget http://ppa.launchpad.net/gnome3-team/gnome3-staging/ubuntu/pool/main/v/vte3/libvte-2.90-common_0.36.2-1ubuntu1~trusty1_all.deb
wget http://ppa.launchpad.net/gnome3-team/gnome3-staging/ubuntu/pool/main/v/vte3/libvte-2.90-9_0.36.2-1ubuntu1~trusty1_amd64.deb
wget http://ppa.launchpad.net/gnome3-team/gnome3-staging/ubuntu/pool/main/g/gnome-terminal/gnome-terminal-data_3.12.1-0ubuntu1~trusty1_all.deb
wget http://ppa.launchpad.net/gnome3-team/gnome3-staging/ubuntu/pool/main/g/gnome-terminal/gnome-terminal_3.12.1-0ubuntu1~trusty1_amd64.deb
dpkg -i libvte-2.90-common_0.36.2-1ubuntu1~trusty1_all.deb
dpkg -i libvte-2.90-9_0.36.2-1ubuntu1~trusty1_amd64.deb
dpkg -i gnome-terminal-data_3.12.1-0ubuntu1~trusty1_all.deb
dpkg -i gnome-terminal_3.12.1-0ubuntu1~trusty1_amd64.deb

And to uninstall (change the versions to match the latest found in the archive.ubuntu.com repository):

# apt-cache madison gnome-terminal gnome-terminal-data libvte-2.90 libvte-2.90-common
gnome-terminal | 3.6.2-0ubuntu1 | http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
gnome-terminal | 3.6.2-0ubuntu1 | http://archive.ubuntu.com/ubuntu/ trusty/main Sources
gnome-terminal-data | 3.6.2-0ubuntu1 | http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
gnome-terminal | 3.6.2-0ubuntu1 | http://archive.ubuntu.com/ubuntu/ trusty/main Sources
libvte-2.90-dev | 1:0.34.9-1ubuntu1 | http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
libvte-2.90-9 | 1:0.34.9-1ubuntu1 | http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
libvte-2.90-doc | 1:0.34.9-1ubuntu1 | http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
libvte-2.90-common | 1:0.34.9-1ubuntu1 | http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
libvte-2.90-common | 1:0.34.9-1ubuntu1 | http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
      vte3 | 1:0.34.9-1ubuntu1 | http://archive.ubuntu.com/ubuntu/ trusty/main Sources
# apt-get install gnome-terminal=3.6.2-0ubuntu1 gnome-terminal-data=3.6.2-0ubuntu1 libvte-2.90-9=1:0.34.9-1ubuntu1 libvte-2.90-common=1:0.34.9-1ubuntu1
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be DOWNGRADED:
  gnome-terminal gnome-terminal-data libvte-2.90-9 libvte-2.90-common


why is there more than one python 2 command in ubuntu 12.04?

python is the default interpreter used by the distribution. It may (or may not1) point to python3 in the future.

python2 is the default Python 2 interpreter (that is the same as above if python points to python2, not otherwise). It points to the current stable/supported interpreter.

python2.7 is the specific interpreter --- you can have for example python2.7 as the current one, and a python2.1 that you need to check compatibility matters.

To see all of them:

[romano:~] % ls -l /usr/bin/python /usr/bin/python2 /usr/bin/python2.7
lrwxrwxrwx 1 root root       9 jul 22  2014 /usr/bin/python -> python2.7
lrwxrwxrwx 1 root root       9 jul 22  2014 /usr/bin/python2 -> python2.7
-rwxr-xr-x 1 root root 3345416 jun 22 20:51 /usr/bin/python2.7

So in your scripts  — in the shebang2 — you use python if you want to use the default interpreter for the distribution (and if you want total future safety you have your script both working in version 2 and 3, but see note 1 below);   python2 or python3 if you need version 2 or 3 specifically, but it's ok using the default one the distribution offers (recommended); python2.7 if you need that specific version and you prefer that your script fails if it's not available.

1 I think it will never change to point to python3, it's too dangerous. But well, I have no crystal balls...

2 this is the first line of the executable scripts that for Python should look like

#! /usr/bin/env python2


Create an application's shortcut to launch it from Terminal?

You clearly have to cd to the proper directory first.
/usr/bin/sqlnuke should look like:

#!/bin/sh
cd /opt/sqlnuke && ./sql.rb "$@"

If "sqlnuke" is for your use only, adding a script into /usr/bin is overkill. Add this to your ~/.bashrc:

sqlnuke() ( cd /opt/sqlnuke && ./sql.rb "$@" )


"By default, the root user is disabled on Linux virtual machines in Azure. ", see more on
https://docs.microsoft.com/en-us/azure/virtual-machines/virtual-machines-linux-use-root-privileges

You might be able to use sudo <cmd> one command at a time ... if this doesn't work you will have to contact Microsoft support, I think.


Will the alpha/beta ISO become official after Release?

The beta ISO image will always be beta, because it contains a snapshot of packages that existed at a particular time, and Ubuntu 13.04 was beta at that time. (It is also beta now, as you know, though it will be released soon.)

Any version of Ubuntu can contain bugs but development versions (alphas and betas) are expected to have more bugs than released, stable versions. It's possible for a bug to cause a problem installing updates. However, except for possible beta bugs getting in the way (which only rarely happens), a system installed from the beta ISO can be updated successfully.

After 13.04 is released, an installed beta version will become the stable version simply by installing updates (in the Software Updater or by running sudo apt-get update, sudo apt-get upgrade, and, if any packages are held back, sudo apt-get dist-upgrade). For more information about this, see:

I installed an alpha or beta, am I up to date with the final release if I keep upgrading?

So, in summary:

Your beta ISO image will always be beta; it will never be supported as stable installation media, and the system you get by installing it will always initially contain unstable packages. (And they'll be old, obsolete unstable packages if you install from the beta ISO after 13.04 is released.)
The actual operating system should, barring corner cases where a bug prevents it, simply upgrade seamlessly into the stable version, once the stable version is released.

If you're going to do new deployments of Ubuntu 13.04 after it is released, it's a good idea to obtain a copy of the stable release ISO for it. (Which doesn't exist yet, of course, but will once 13.04 is "released.")


Insert a password into the terminal through a script?

You can use something like this in your script:

echo 'yourPassword' | sudo -S yourCommand

The -S flag makes sudo read the password from the standard input. You can check it in manual pages using man sudo:

  -S, --stdin

  Write the prompt to the standard error and read the password from the
  standard input instead of using the terminal device. The password must
  be followed by a newline character.

If you get an error using this, it's because your sudo access token is active, to get around that, you could use -k to reset the access token:

echo 'yourPassword' | sudo -kS yourCommand

Hope it helps.


Per this article on July 8, 2019, WPS Office dropped 32-bit support.
As such, you cannot obtain 32bit WPS Office anymore.


First, as you said

  The information inside the HD is valuable for me

I would suggest to use testdisk utility and attempt to recover your data into a safe place. In future, of course you should make backups of your important data.

Use smartmontools and check the disk's health. If it's ok, you should follow the "error's suggestion" and run the chkdsk command from a Windows PC.

If you don't have Windows available, an alternative method is to use ntfsfix command which is included in ntfs-3g package. From there you can attempt a repair. See an example here.

A way to ensure that your data will be remain intact, does not exist.


How to access a Windows shared drive/folder from Ubuntu?

Your login should indeed be your login on the remote machine.

There is no way to allow general access to your home folder over the network without a password.  If you want full access to your home folder, you must give your account a password. You can leave automatic login turned on if you simply don't want to type a password at startup.

You can, however, allow access to the Public directory in your home directory without requiring login. To do that, go to Network and Sharing Center⟶Change advanced sharing settings, turn on Public folder sharing, and turn off Password protected sharing (located under the Advanced Sharing Options section near the bottom).

The domain, if this isn't on an ActiveDirectory domain (which seems likely, since your account has no password), should be either blank or the word WORKGROUP in all caps.


Touchpad stopped working DELL Latitude D630

Did you ever figure this out? The first thing I would check is if there is a button on the laptop that disables the touchpad. That's happened to me a few times before.


Is chromium-browser from Trusty repos up-to-date security-wise?

Version numbers can be misleading.

The Ubuntu Security Team patches vulnerabilities in 65.0 (usually using an upstream-provided patch), then pushes the update to you via Ubuntu's -security repository. The patched version is still 65.0, since it's not a new upstream release. Since it's no longer stock 65.0, a supplemental version number is added at the end (that's the '0Ubuntu1' at the end of the version string).

The Security Team won't push a new (untested) upstream version 69.0 to merely address a patchable vulnerability. Pushing a new upstream version outside the normal release cycle is precisely the opposite of the software stability that an LTS release is intended to provide.

The Ubuntu Security Team maintains a searchable database of all known vulnerabilities in all Ubuntu packages, so you can see the status for yourself without guessing.


I recomend you to check another driver for nvidia. Open the Additional Drivers utility (Dash -> Additional Drivers) and try a different version.
I have had to change it to nvidia 304 driver since Ubuntu 13.10 for a nvidia GT9800 because the same problem. If you can try this version but it is unavailable, you can install it by using this command:
sudo apt-get install nvidia-304

If the problem continues, you can try a clean installation for the nvidia driver:
How do I install the Nvidia driver for a GeForce GT 630


Installing ubuntu on a specific partition

Note the C partition (its size,freespace) on a paper.
Boot ubuntu live cd or usb.During the installation process slect Something else option which allows you to manually select the partition where you are going to install ubuntu.
Partitions appears on the screen and select the right partition by total size and free space you already noted.(Because the partition doesnot appear as C during ubuntu installation.)
Select that partition,right click on it and format it to ext4 filesystem.
Atlast Select the formatted ext4 partition for Ubuntu installation.And don't forgot to create a SWAP partition.Swap partition size must be double the RAM size if the size of the RAM was lesser than 4GB.


Allow DHCP to Update Bind9 DNS with Samba AD

It should work. If it isn't then there may be something wrong with your setup.
Did you by any chance miss the blue box at the bottom of the wikipage that says this:
Do not log a bug report on Samba bugzilla for any problems you have with this set up, ask on the samba mailing list.
So, come and ask me about my script on the samba mailing list.


10.10 to 11.04 upgrade unmet dependencies

I solved this issue. The problem was that I had moved the ppa files from /etc/apt/sources.list.d/ and the missing dependency was changed by one of the ppas.

So moving back the ppa was one thing.

After that, I realized that the ppa was commented and was not picking up. So I removed the comment from .list file and it is working fine now.


How can I create a bootable USB drive with Ubuntu?

you can use Startup Disk Creator. If you don't have it installed, you can install it via Ubuntu Software.
After you run it, you have to choose the path to you iso file and select the disk to use (the USB Drive). Then press the button Make Startup Disk.


ls -sh does not report sizes as you'd expect. It does not look inside the directories, and just reports then at some fixed size (usually, 4,0k)

There are many tools to check what is taking space on your disk. I'd recommend gdmap. It will show you a self-explanatory map of your disk

To install:

sudo apt-get install gdmap

to run, use

sudo gdmap -f / , if you want to check the whole disk

sudo gdmap -f /some/folder, to check some specific folder


How to pretend to browse from a different country?

you can use tor proxy to browse internet anonymously. Check this link for more info:
http://maketecheasier.com/install-tor-in-ubuntu/2010/07/06


Can I install Debian Unstable Scala 2.8.1 package in Ubuntu? Won't it cause problems?

You could use the jar installer as follows:

First download the IzPack Installer from the Scala Website, http://www.scala-lang.org/downloads.

Run it with

sudo java -jar installer.jar

and use the default folder /usr/local/scala for the installation

(where for me it was sudo java -jar scala-2.8.1.final-installer.jar).

Then edit /etc/environment so PATH is as follows
PATH="... :/usr/local/scala/bin"
and add
SCALA_HOME=/usr/local/scala

Now logout and login again.


error prevents upgrade of ubu 18, unable to open /usr/share/perl/5.26.1/warnings.pm.dpkg-new

The solution was to install libnet-perl before perl-modules-526:
sudo apt install libnet-perl


How to fix "Fontconfig warning [...] Having multiple  in  isn't supported [...]"?

So here are some details on how to debug the problem to find where these problems are originating from.

Lets start by checking which package is responsible for this problem

foo@bar ~$ dpkg -S 41-ttf-arphic-uming.conf
ttf-arphic-uming: /etc/fonts/conf.avail/41-ttf-arphic-uming.conf

So the problematic file was coming from a package named ttf-arphic-uming. Doing the same for the other file revealed another package named ttf-droid.

Next, I checked what these packages are used for:

foo@bar ~$ apt show ttf-arphic-uming
Package: ttf-arphic-uming
Version: 0.2.20080216.2-4ubuntu4
Status: install ok installed
Priority: extra
Section: oldlibs
Source: fonts-arphic-uming
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Debian Fonts Task Force <pkg-fonts-devel@lists.alioth.debian.org>
Installed-Size: 38.9 kB
Pre-Depends: dpkg (>= 1.15.6~)
Depends: fonts-arphic-uming
Homepage: http://www.freedesktop.org/wiki/Software/CJKUnifonts
Download-Size: unknown
APT-Manual-Installed: yes
APT-Sources: /var/lib/dpkg/status
Description: transitional dummy package
 This package is a dummy transitional package. It can be safely removed.

The important part is in the last line, which tells us that we do not need this package and can safely remove it.

After removing both packages the warnings no longer appear. Taking a closer look at the issue I realized that I had many obsolete packages installed on my system and those two packages were just two of these obsolete packages.

If you have upgraded from previous versions of Ubuntu using the update-manager, it may happen that you have obsolete packages left on your computer, you can check that via aptitude search '~o'. A proper solution is probably to check the obsolete packages on your system and remove all that are not needed anymore. Nevertheless I decided to post this answer in case anyone has a similar problem and may find it useful.


after remove zeitgeist, there is no unity in Ubuntu

Use this to Remove/Uninstall Compiz Unity:

  sudo apt-get remove compizconfig-settings-manager

  sudo apt-get remove compiz-fusion-plugins-extra

  sudo apt-get remove compiz-plugins-extra

  sudo apt-get purge compiz*

Then to Re-install Compiz Unity use:

  sudo apt-get install unity-2d

  sudo apt-get install ubuntu-desktop

  sudo apt-get install ubuntu-desktop-2d

  sudo apt-get install compizconfig-settings-manager

  sudo apt-get install xserver-xgl

  sudo apt-get install emerald

  sudo apt-get install compiz-fusion-plugins-extra

  sudo apt-get install git compiz-plugins-extra

  sudo apt-get install compiz-plugins-extra

  sudo apt-get install unity


curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall

set permission :

chmod 755 msfinstall

Then:

./msfinstall

Create and initialize the msf database.

msfdb init


Xubuntu 12.04 : Random boot to black screen

Just to fold this question properly.

The issue was caused by the following bug : https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1058303, which has been corrected.

I do not experience this issue anymore. Thank you all for your help.


Ubuntu Theme installer crashes whenever I try to install a new theme?

You can install a theme from an archive using the command line by running:

tar xavf ARCHIVE -C ~/.themes

(replacing ARCHIVE with the path to the theme archive)

If it is a zip archive, use:

unzip ARCHIVE -d ~/.themes


New update ubuntu 18.04.4 LTS causes me log out of my account multiple times

Edit /usr/share/X11/xorg.conf.d/40-libinput.conf file and in

Section "InputClass"
        Identifier "libinput touchscreen catchall"
        MatchIsTouchscreen "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

replace libinput in driver section to evdev, so it will be:

Section "InputClass"
        Identifier "libinput touchscreen catchall"
        MatchIsTouchscreen "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
EndSection

Then restart and try to login.

People here did the same for evdev configuration making it invalid by replacing evdev to libinput. In this way they disabled touchscreen.

If you have /usr/share/X11/xorg.conf.d/10-evdev.conf file, then change evdev to libinput in Driver section for this case.


No network interfaces detected when installing Ubuntu Server on Mac Mini

Go into bios; check to see if Virtualization (VT-d) is enabled.
Try again.
If that doesnt work...

Get driver here: http://www.broadcom.com/support/ethernet_nic/netxtreme_desktop.php
Copy to USB disk and configure.


Just download any of openvpn zips from vpnbook web page. Unpack it. Run in terminal the following: sudo openvpn vpn_file.ovpn and enter the password on ask. That's it.


Undelete: Access is denied because the NTFS volume is already exclusively opened

I had to manually umount my drive. It turned to be vfat fs, so finaly, the best way to restore files in my situation was this one:

ben@ben-V5-171:~/tmp/flash$ sudo dd if=/dev/sdb1 of=fl.img bs=1024
ben@ben-V5-171:~/tmp/flash$ tsk_recover -e fl.img files/


Plug-in a headphone/earphone first. Then, go to System Settings >Sound >Inputthen increase the Input Volume.


Installing SET (Social Engineering Toolkit) but no setup.py program anywhere

pip3 -r install requirements.txt
after that, try to see setoolkit directory or the other. that should be a  setup.py in there.
and then run python setup.py

or if you confused, you can read the README.md with command "cat README.md"
hope this helpful


Unicode input doesn't work in all applications

Maybe because is a non-gtk application. Also, seems that we lost that feature completely on Ubuntu 16.04, with Mir.


Stuck on splash screen on boot, can't type into tty terminal

Changing my keyboard converter from USB to PS/2 fixed the problem of being unable to type into the tty screen. Now I have an additional problem of being unable to log in correctly but I doubt that's related so this question is done with. Thanks mttdbrd for leading me on the right track.


The command prompt format is stored in the PS1 environment variable. If you set it to the empty string, no command prompt will be displayed. You can then clear the console:

user@host:$ PS1=
clear

If you need to restore it afterwards, you can save the initial value in a different variable first:

user@host:$ PS1_INITIAL=$PS1 # store the initial value
user@host:$ PS1=
PS1=$PS1_INITIAL # restore the initial value
user@host:$

Or you can source .bashrc where the original values are defined:

. ~/.bashrc
user@host:$


Yes, you can assign a specific, non-used key-combination as a shortcut to shut-down. To assign Ctrl+Alt+Esc (or any other key combination) as the shortcut, go to System settings > Keyboard > Shortcuts > Custom shortcut and then add a new shortcut.

The command should be

dbus-send --system --print-reply --dest=org.freedesktop.ConsoleKit /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop

I am not pretty sure why you have --system twice in the command, but a single one works on Ubuntu 13.10(have tested, confirmed to work).


Installing Ubuntu on HP Envy 4 - 1104tx (preinstalled Windows 8)

I had this problem on a Lenovo. Load Ubuntu onto a USB stick and then in Windows try running it from there. It will give you the option of when you want to restart the machine. Tell it to restart straight away and it should allow you to boot the USB.

Note: you may still need to press F9 or it may prompt you to press something else.


Well, I just found a workaround that fixes the issue for me:

echo 'Binary::apt::Keep-Downloaded-Packages "1";' > /etc/apt/apt.conf.d/01keep-debs

I'm not sure why they've changed default behavior. I just lost several gigabytes of bandwidth + a couple of hours.

Hope this helps someone


Remove some unneeded groups

Step 1 - Full system backup

The commands in this answer can cause havoc with your system. Make a full system backup with your preferred method. Validate/test this backup. Secure your backups so that the following steps can not harm them.
For more information about backups see Ubuntu Community Wiki - BackupYourSystem. I would recommend Clonezilla for a one time full os and user data backup. But for on going backups I use Borg Backup.

Step 2 - Select groups and users to remove

Running getent group | egrep \:[1-9][0-9][0-9]\: will list groups in the 100-999 range. From this list take note of a minimum of 10 unwanted groups related to guest accounts. They should not have any users listed as part of the group, nor should they be programs that are currently installed. The following code block shows that fourth field contains users in that group. Of these few only sambashare has a user. Only the "guest-" groups are a problem.

saned:x:122:
uuidd:x:123:
sambashare:x:124:jon
ssh:x:125:
geoclue:x:126:
guest-262uVu:x:127:
guest-qAD7pX:x:128:
guest-H1HJgy:x:129:
guest-fbfgab:x:130:
guest-LdeNZx:x:131:
guest-jIHtqC:x:132:
guest-w7GINW:x:133:

Step 3 - Remove unwanted groups

In the following commands replace <NEWGID> with a group to hold any residual files. You could either use an existing group or a new group. Also replace <OLDGID> with a group to be deleted. Run the commands once for each group to be removed. If you don't want any of the files from the old groups run the potentially very harmful command find / -group <OLDGID> -exec rm {} \;. If you don't care who may end up owning the deleted groups files you could just run delgroup --only-if-empty <OLDGID>.

find / -group <OLDGID> -exec rm {} \;
find / -group <OLDGID> -exec chgrp -h <NEWGID> {} \;
delgroup --only-if-empty <OLDGID>
# example using random groups
find / -group 200 -exec chgrp -h 2000 {} \;
delgroup --only-if-empty 200

Step 4 - Clean up

Run sudo dpkg --configure -a to finish configuring unpacked packages.

A bash script covering steps 2-4. Open a text editor, copy and past the following code block. Save the file as guest.sh. In a terminal navigate to where guest.sh was saved. run chmod +x guest.sh, to make the file executable. Then run ./guest.sh.

#!/bin/bash
TEMP=$(mktemp --tmpdir)

getent group | grep guest- | cut --delimiter=: -f 3 > "$TEMP"

NGID=$(head -n1 "$TEMP")
GIDS=$(grep -v "$NGID" "$TEMP" | tr '\n' ' ')

for i in $GIDS
    do
        find / -group "$i" -exec chgrp -h "$NGID" {} \;
        delgroup --only-if-empty "$i"
    done
rm "$TEMP"
sudo dpkg --configure -a


Can you be more specific as to where you're faltering?  The instructions in the readme file seem pretty straight forward, but maybe it's because I'm used to Linux.  Open terminal and type:

sudo apt-get install openjdk-6-jre
sudo apt-get install libbluetooth-dev

cd ~/whateverdirectoryyouunpackedto/
sudo sh install

That should be it, unless you get errors in which case report those.  Then you can run by the launcher in your applications or by typing

ucontrol

at the terminal.  Are your running a 32 bit system?  This package says that 64 bit is unsupported.


Trying to open a new ubuntu terminal window from the existing window

Because your setup is "terminal only", you currently cannot run apps that run a graphical user interface or GUI. However, you can use something like tmux which will allow you to "tile" your terminal.

Run the following commands to install tmux:

sudo apt update
sudo apt install tmux

Then, to run tmux, just type the following command:

tmux

Now, to run in "split window" mode, press Ctrl and b at the same time, release both, and then press the % key.

The the % key is actually Shift + 5 of course.

To navigate to the left and right terminal, press Ctrl and b at the same time, release both, and then press the left or the right arrow key.

Click here to view "a quick and easy guide to tmux".

Click here to view "a tmux crash course".

Alternatively, if you want to install a complete desktop setup with application-windows and graphical applications, you can run the following command:

sudo tasksel

Then, you can select your desired desktop environment. Choosing the "Ubuntu desktop" will install Gnome applications such as Gnome Shell and gnome-terminal. Do not select any of the "live cd" options.

You can use your arrow keys to scroll down to "Ubuntu desktop" or you can choose any one of the other Ubuntu flavours (like Xubuntu desktop, Ubuntu Mate desktop, etc . . .). Each of these desktop environments uses a different set of applications. For example, Xubuntu uses xfce4-terminal instead of gnome-terminal.

Finally, use the space bar to select or deselect a desktop and then use the tab key to select "OK" and then press Enter to install.


Will 11.04 come along with up to date GNOME Shell packages?

Unfortunately it seems highly likely that GNOME Shell will not make it into the 11.04 repositories. This is because of its dependencies on the GNOME 3 stack, which won't make it into 11.04.

  There have been quite a lot of architectural changes in the rest of the GNOME stack, which we aren't adopting in Ubuntu this cycle and are necessary to make gnome-shell work properly

There is likely to be a PPA with these underlying GNOME 3 libraries and a "stable" version of GNOME Shell. GNOME 3 is due for release on April 4th, so around this time I'd start to keep a look out for this PPA.

For more details see the mailing list post Status update on GNOME3 and natty


Cannot change Intel turbo boost (/sys/devices/system/cpu/intel_pstate/no_turbo/ not accessible)

The turbo enabled or disabled flag can be misleading. Excerpt from Documentation/cpu-freq/intel-pstate.txtin the source tree:

Sysfs will show :
        max_perf_pct:100, which corresponds to 1 core ratio
        min_perf_pct:24, max_efficiency_ratio / max 1 Core ratio
        no_turbo:0, turbo is not disabled
        num_pstates:26 = (max 1 Core ratio - Max Efficiency Ratio + 1)
        turbo_pct:39 = (max 1 core ratio - max non turbo ratio) / num_pstates

So, in this case the "1" means turbo is disabled.
For most computers, turbo can be disabled in the BIOS, in which case one can not override the indicator flag in Sysfs. Example 1 (turbo is disabled in the BIOS):

$ echo 0 | sudo tee /sys/devices/system/cpu/intel_pstate/no_turbo
0
tee: /sys/devices/system/cpu/intel_pstate/no_turbo: Operation not permitted

Example 2 (turbo is enabled in the BIOS):

$ cat /sys/devices/system/cpu/intel_pstate/no_turbo
1
$ echo 0 | sudo tee /sys/devices/system/cpu/intel_pstate/no_turbo
0
$ cat /sys/devices/system/cpu/intel_pstate/no_turbo
0


wifi suddenly stopped working in ubuntu 14.04 lts,drivers are installed but i think i messed with configuration

First, I see this in /etc/rc.local:

ethtool -s eth0 autoneg
off speed 100
exit 0

It should be amended to:

ethtool -s eth0 autoneg off speed 100
exit 0

Second, since Network Manager is installed and running, I suggest you eliminate all settings in /etc/network/interfaces except:

auto lo
iface lo inet loopback

Restart the computer and see if the wireless has returned. If needed, I will edit this answer to add troubleshooting steps.


Let xdotool type some text using a different keyboard layout

It might not be the cleanest solution but this works for me.

Use setxkbmap before your xdotool command :

$ xdotool type azerty
qwerty

$ setxkbmap fr && xdotool type azerty
azerty

You can avoid having to change the keyboard layout in your script by including your current layout in the config file .xinitrc. Create the file if it does not exist.

setxkbmap fr


Creating multiuser chatroom in XMPP client

Profanity will append the domain as you showed if one is not supplied.  You can supply one if it is different from the default.

It will also only allow you to create a room if no room configuration is required.

For more information on the join command see: http://www.profanity.im/rooms.html

And room configuration is planned for a future release: https://github.com/boothj5/profanity/issues/169


how to netstat and kill pid of the program to make server working?

Looks like nginx is listening to port 80,you should stop nginx with this command sudo service nginx stopand start apache after.

Edit: after short discussion we figured out the problem was in: wrong config in /etc/hosts and running nginx server. everything fixed after moving apache to another port and adding correct hostname in hosts file.


In the first place, if you aim to edit sound in Ubuntu perhaps the UbuntuStudio distribution could be of help. It has a lot of sound-related stuff that the main version does not.

5.1 sound configuration should work out of the box, programs that can handle it should use it directly (videolan, audacity, ...). You may want to look into the JACK daemon if you need some specific connection setup (MIDI input, etc.)

As pointed out bu @Rohit, the Audacity sound editor is a multi-track recorder and editor that works quite well. If it is not yet installed, you can use your preferred package manager to do so.

HTH.


Ecryptfs remove hard drive without logout

That's not quite how ecryptfs works. Your data is stored in an encrypted, obfuscated form on disk. (see ls -lL $HOME/.Private) ecryptfs mounts a stacked filesystem on top of your $HOME, and decrypts the files (data and metadata) on-the-fly, as you access the files through the ecryptfs filesystem (which uses the underlying ext4 (or whatever) filesystem on disk for data storage). The results of the ecrypts filesystem (files, metadata) exists ONLY in the virtual memory of the running system. If your disk is hot-unplugged, all that is taken away is the encrypted, obfuscated disk storage. Also, your computer will be unhappy.


How do I enable automatic history expansion for commands using 'magic space'?

Per the blog command you just need:

$if Bash
  Space: magic-space
$endif

The rest (the default settings) are sitting in /etc/inputrc.

This is read when GNU Readline (the input library Bash uses) is started. Because it's not directly part of Bash, reset and source ~/.bashrc et al won't work. To reload this without starting a new session, you need to run  bind -f ~/.inputrc.


How can you install new fonts to LibreOffice snap?

You must copy your fonts into ~/.fonts folder, then in terminal type

sudo fc-cache -fv

Go to the ~/snap/libreoffice/current/ path and make a link to ~/.fonts folder by the command below:

ln -s {source-filename} {symbolic-filename}

i.e. here in particular

ln -s ~/.fonts .fonts


Unfortunatelly you should turn off 3d acceleration. Don't know why, but just do it. It's solved same problem with my installation.


Dell d1450u driver not present after upgrade

Driver for that model used to work out of the box with previous releases, but not anymore from what I can see.

According to Dell you need to install the Windows driver or optionally you can install the Dell DKMS drivers which include the necessary module for your card.

More information over the DKMS driver can be found here. You will need to download the .deb file and install it on your system using the following command:

sudo dpkg -i downloaded_file.deb

The Windows driver can be downloaded from the Dell support site, you need to extract it and using the Windows Driver tool in Ubuntu, point to the .inf file present on the extracted files.


Can't update grub to work in dual boot with Windows 10 & Ubuntu 18.04.4 LTS

I have had this problem with certain laptops. My usual solution is.

Set boot mode to UEFI. Plug in the Ubuntu install/live usb drive.
Don't boot, go into boot order menu. There should be an entry for OEM manufacturer install or something similarly named. Go into that and follow installation instructions.Take care of the extra partitions u need to create here, from the usual Ubuntu install.

This solution has usually worked for me and is a quick fix.(Do explore other options if you have the time)

hope it helps you today.


Where are panel launchers stored in Ubuntu 14.04?

Custom application launchers are stored in ~/.config/gnome-panel/launchers. You can backup these launchers, but they won't be automatically added to panel if you copy launchers in that directory. You can drag&drop these launchers to panel.

Otherwise panel settings are stored in gsettings/dconf under /org/gnome/gnome-panel. I don't know if there is easy way to backup/restore only gnome-panel settings.


From a terminal window type in:

sudo apt-mark hold texmaker

which should prevent the package from getting updated in the future.  You would have to change it back to auto from hold if you want to remove it or update it in the future.


How do I delete specific attributes in LDAP using ldap-utils command-line?

ldapdelete is to remove entries, you need to use ldapmodify to delete attributes.

This command should remove attribute1 and attribute2 from the username entry:

$ ldapmodify -D "uid=..." -w ... -h ... <<%EOF%
dn: uid=username,ou=Non-Enterprise,ou=People,dc=foo,dc=com
changetype: modify
delete: attribute1
-
delete: attribute2
%EOF%


Cannot install Kurento Media Server on Ubuntu 16.10

You need change source to Ubuntu 16 install 14by default: trusty -> xenial

echo "deb http://ubuntu.kurento.org **xenial** kms6" | sudo tee /etc/apt/sources.list.d/kurento.list
wget -O - http://ubuntu.kurento.org/kurento.gpg.key | sudo apt-key add -
sudo apt-get update
sudo apt-get install kurento-media-server-6.0

Hope this will help you!

Bgs,


Hi there is a dd gui for hard disk cloning/partiton backup etc task called gdiskdump. But its not in official repository you can download it from
https://launchpad.net/gdiskdump


I struggled with this same issue. Adding the following line to my xstartup file before "gnome-session &" seemed to fix it for me:

eval `dbus-launch --sh-syntax --exit-with-session`
gnome-session &


In order to use it you must have permissions. Usually arduino is recognized as tty port, so just typing these commands should be fine:

sudo usermod -a -G tty yourUserName

sudo usermod -a -G dialout yourUserName

After that, your user will have enough permissions to use Arduino. Just log off and log in again.


CPU governor changes automatically to "performance" under load

I played around with different things and ended up removing cpufreqd from my system and only left cpufrequtils installed and boom it does not switch the governor anymore on load.
The following will also remove your cpufreqd configuration files so back them up if you plan to possibly reinstall cpufreqd in the future.
sudo apt purge cpufreqd

The change should be immediate. After you set the governor to powersave using:
sudo cpupower frequency-set -g powersave

The governor will no longer switch to performance after heavy load.


Installing package + dependancies and removing them all

You can use apt history log :

gedit /var/log/apt/history.log

and find on the log, the entry when you first installed the metapackage of your desktop env (Gnome-shell, Cinnamon, KDE...).
You will find an entry like : apt-get install yourdesktopenv
followed by all packages dependencies and their arch info.

Copy the whole entry and pase it in LibreOffice Writer, then use a Search/Replace using a regular expression : :amd64 \([0-9\~\.\+a-zA-Z\-, ]*\),?
Replace by an empty space.   (amd64 or i368 depending on your system arch)
This replace operation will replace all the somedependency:amd64 (4.9.2-0ubuntu2, automatic),  by  somepackage    .
At the end, append sudo apt-get remove --auto-remove to the top of the replaced text.
Copy and paste on Terminal.

Warning: this method is correct only if you have not performed significative updates between the time you first installed the desktop env and the time you want to remove it.

Ideally, you can automate these operations in a bash script:

 #!/bin/bash

#This creepy & very small script extracts package strings from APT history log file.
#Tested in Ubuntu 12.10 Linux
#this script is not fully portable; ksh & zsh not supported.
#---------------------------------------------------------------------------------------
#@author= hanynowsky@gmail.com
#---------------------------------------------------------------------------------------
#Beware. This scripts supposes you installed the desktop environment only once. Besides if
#you performed significant updates from the time when you installed it and the time when
# you want to remove it, there is a risk that you'd likely remove other dependency packages needed by other programs.
#---------------------------------------------------------------------------------------
#REGEXMATCH=`grep -Po ':amd64 \([0-9\~\.\+a-zA-Z\-, ]*\),?'`
#APPENDCOM=`sed -i '1isudo apt-get remove --auto-remove ' ~/Desktop/removeENV.txt`
# or sed 's/\[[^]]*\]//g'    instead of perl -lpwe   | tee ~/Desktop/removeENV.txt`
# insert command: sed '/Install:/ i\sudo apt-get remove --auto-remove '
# ARCH=`dpkg --print-architecture`   ->  variable to get arch (amd64 or i386)
#---------------------------------------------------------------------------------------

# k = kde | g = gnome-shell | c = cinnamon | x = xcfe | l = lmde | o = openbox
echo "Uninstall Desktop-Environment : "
read -p "Enter letter ( k ) for KUBUNTU - ( g ) for GNOME-SHELL - ( x ) for XUBUNTU - ( l ) for LUBUNTU - ( o ) for openbox : " desk
if [ "$desk" = "k" ]; then DESKSTRING="kubuntu-desktop"
elif [ "$desk" = "g" ]; then DESKSTRING="gnome-shell";
elif [ "$desk" = "x" ]; then DESKSTRING="xubuntu-desktop";
elif [ "$desk" = "l" ]; then DESKSTRING="lubuntu-desktop";
elif [ "$desk" = "o" ]; then DESKSTRING="openbox";
else DESKSTRING="UNKNOWN-DESKTOP-ENV"; echo "Sorry $USER, operation is not valid for $DESKSTRING" ; echo "Aborted."; exit 0;
fi

ARCH=`dpkg --print-architecture`
APTLOGFILE="/var/log/apt/history.log"
WARNING="This will uninstall your desktop environment : $DESKSTRING . Enter 'y' to continue, or 'n' to abort. "
read -p "$WARNING" option
if [ "$option" = "y" ]; then FETCHCOM=`sed -n "/$DESKSTRING/{:a;n;/End-Date/q;p;ba}" $APTLOGFILE |
sed -e 's/Install://g'  |
sed -e 's/,//g' |
perl -lpwe "s/:$ARCH \(.*?\)//g" | tee ~/Desktop/un_desk_log.txt`
else FETCHCOM="aborted by $USER"
fi
if [ "$option" = "y" ]; then ACTIONCOM="sudo apt-get remove --auto-remove "
else ACTIONCOM=""
fi
FINALCOM=$ACTIONCOM$FETCHCOM
COMLOGFILE=~/Desktop/un_desk_log.txt
eval $FINALCOM | tee -a $COMLOGFILE
sed -i.bak '1i sudo apt-get remove --auto-remove ' $COMLOGFILE
exit 0;

Download the script here: http://ubuntuone.com/4CPFXpA2gFDRZtfS6Y7sva


Due to your connections first need to be configured look alike:

and other screenshots is here

about configuration

  QjackCtl holds its settings and configuration state per user, in a file located as

    $HOME/.config/rncbc.org/QjackCtl.conf

  Normally, there's no need to edit this file, as it is recreated and
  rewritten every time qjackctl is run.


Correct way to create Ubuntu Scope Project?

The appid is not the package name. What you need to have set as you are asking, is the package name, and it should be set that way in the manifest.json file already. If it is not, it is a bug and you should report it in Launchpad.


Most of the time these problems in Ubuntu are caused by some issue with graphics driver or configuration. While installing, at the start Ubuntu does provide you an option to install third party graphics driver with just a check.
This issue can be resolved by installing the compatible drivers again.
Refer to this link to install Nvidia graphics driver:
https://linuxconfig.org/how-to-install-the-nvidia-drivers-on-ubuntu-20-04-focal-fossa-linux
This link is just for reference:
https://help.ubuntu.com/stable/ubuntu-help/hardware-problems-graphics.html.en
If nothing works, you can always reinstall Ubuntu.


How do I get the TrackPoint buttons working on an X1 Carbon(2015)?

It's a known bug that has a fix being pushed very soon.  https://bugs.freedesktop.org/show_bug.cgi?id=88609