How to remove Nitroshare from Ubuntu 15.10

If you installed NitroShare via PPA or by installing one of the binary packages from the website, you can remove it using the following terminal command:

sudo apt-get remove nitroshare

If you built NitroShare from source, you will need to manually remove the files. Here's a list of the files to remove ($PREFIX is usually /usr or /usr/local):

$PREFIX/bin/nitroshare
$PREFIX/share/applications/nitroshare.desktop
$PREFIX/share/icons/gnome/24x24/apps/nitroshare-indicator.png
$PREFIX/share/icons/hicolor/scalable/apps/nitroshare.svg
$PREFIX/share/icons/hicolor/scalable/apps/nitroshare-indicator.svg
$PREFIX/share/icons/ubuntu-mono-dark/apps/22/nitroshare-indicator.png
$PREFIX/share/icons/ubuntu-mono-dark/apps/24/nitroshare-indicator.svg
$PREFIX/share/icons/ubuntu-mono-light/apps/22/nitroshare-indicator.png
$PREFIX/share/icons/ubuntu-mono-light/apps/24/nitroshare-indicator.svg


What networking type do I need to use in my VirtualBox network?

The Host-only provides a direct network connection between the guest and the host.  The guest can connect to other sites, but the other sites can't direct connect to the guest.
The NAT remaps the IP as if it came from the Host.
The Bridged mode creates a new virtual adapter with it's own unique IP.
The Bridged mode is the one you will need to choose if you want two-way communications between the guest and other computers.  This is a requirement of any computer that will be functioning as a server or provides services that will be accessed from other computers.
Either mode can access other virtual machines.  But you will require the bridged mode if for other virtual machines to access the particular guest machine directly.
Configuring a Bridged Adapter
Configuring the host with the bridged adapter is done no different than any computer.  You have two options.

The GUI option, via NetworkManager
Editing the /etc/network/interfaces file.

If you edit the /etc/network/interfaces  file, this configuration will take presence over the Network Manger, and would disable Network Manager for this particular interface.
In Ubuntu, all NICs are DHCP configured by default.  So unless you specify something different, the adapter will poll the DHCP server for configuration.
You can check verify the configuration with a variation of these command-lines:
$ hostname -I
$ ip address | egrep inet
$ ifconfig

If you will be connecting to the computer from outside your local network you will have to configure your router to forward traffic (for the particular port of the service) to that particular computer.  You could have to look at the configuration of the server configuration to see which port to forward.  By default a web server uses port 80.  So if the service is a web server, you would configure your router to port traffic on port 80 to the IP of that computer.  The default port of a Mysql database server is port 3306.
If you want to be sure that a specific computer has the same IP address you can use one of the two methods above to manually specify the IP address of that computer (Network Manager or editing the /etc/network/interfaces file).
Your router will also have a method of reserving a specific IP address to a specific computer.  So you can perform this default consistent IP address via the router, rather than editing the network adapter.
In other words, configuring the bridged adapter of the guest machine is no different than configuring the NIC of any machine.


where does the Linode server hostname come from?

I checked out the Ubuntu Server 16.04 cloud image, and:

$ tar Jxf xenial-server-cloudimg-amd64-root.tar.xz etc/hostname -O
ubuntu

If the hostname is localhost, the choice was made by Linode.


Windows XP doesn't see a partition after removing Ubuntu. How to restore an access to it?

So, somehow when you being under Windows manually delete a partition where Ubuntu is located, that partition cannot be recognized by Windows later, after you have deleted Ubuntu.

But it cannot be recognized only by Windows Disk Manager. Disk Manager just throws an error if you want to do something with that partition. But Ubuntu (or Lubuntu) sees that partition just fine.

So, this is what I did to get that partition back in Windows. I reboot Windows using Windows CD and from there I chose to create a new 10 Gb partition on that space. Then I entered Windows as usual and Disk Manager could see that new 10 Gb partition. I formatted it with FAT32.

So now I have 10 Gb FAT32 shared partition and 50 Gb for Lubuntu.


Changing Keyboard language in on-screen keyboard

Go to "Settings > Region & Language" where you should see a section called "Input Sources". There, you should be able to add and/or delete keyboard layouts as desired.

Settings:

Region & Language:


Proper setup of multi-domain SSL certificate as VirtualHosts on multiple IPs

The problem was apparently the ServerName errors all along. They are fine as long as there's only 1 host per IP, but adding a second IP, even though it's on a new port and therefore has a new VirtualHost name wasn't enough to keep Apache from blowing up.

I added a ServerName to each and every VirtualHost even though we haven't needed them in the past, and now the new VirtualHost installs with no problem.


Conky - Command Output Display Limited to 256 Bytes 'tail -n20 logfile.txt'

Fix it with
text_buffer_size 2048

text_buffer_size bytes

Size of the standard text buffer (default is 256 bytes). This buffer is used for intermediary text, such as individual lines, output from $exec vars, and various other variables. Increasing the size of this buffer can drastically reduce Conky's performance, but will allow for more text display per variable. The size of this buffer cannot be smaller than the default value of 256 bytes.


I have read of many people who have this problem. It would seem a kernel bug. What you can do is either install an older version of the kernel without this problem (linux version 3.19) or try if it works with a live Ubuntu 14.04 and in case of a positive result keep Ubuntu 14.04


firefox and chrome keep crashing on lubuntu 19.04 and ubuntu 18.04 ff ver 68.0.2

Sorry people i went into my bios and reset it to factory defaults
please dont try this at home :) its only for the fool hardy!!
The aforementioned browsers are now both working without a hiccup
Solved ?????? who knows with technology today


how to install wine 0.9.52 using the terminal

You should try using the following code in the terminal it should install the latest version of wine it can find or update your wine:

sudo apt-get install wine

This should work.


Something similar happened to me after rebooting. Apparently, the desktop wallpaper setting was changed to "fill with background color". To fix it:

Right-click on an empty part of the desktop
Click on Desktop preferences
Set wallpaper mode to "Stretch to fill the entire screen"
Click browse and select an image in: /usr/share/lubuntu/wallpapers
The default is: lubuntu-default-wallpaper.png


How do I add a repository, but only for a specific package/version and its dependencies?

Pinning is an advanced package management technique that allows you to remain on a stable release while grabbing packages from a more recent version. Mixing repositories is not supported, and can get you into trouble if the package you want has been compiled against different library versions than you have on your system. If possible, you should try getting the package from the backports repository (or possibly a well supported PPA) first. That said, you seem to already know that puppet from Natty works well on your system.

In order to pin puppet to the natty version, we will have to edit a few files. First you will need to set your default release in /etc/apt/apt.conf.d/01ubuntu (I'm assuming you are using lucid, obviously substitute the actual release):

APT
{
Default-Release "lucid";
};

Next, you need to add natty to your /etc/apt/sources.list or create a the new file /etc/apt/sources.list.d/natty.sources.list with the following sources:

deb http://archive.ubuntu.com/ubuntu natty main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu natty main restricted universe multiverse

deb http://archive.ubuntu.com/ubuntu natty-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu natty-updates main restricted universe multiverse

deb http://archive.ubuntu.com/ubuntu natty-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu natty-security main restricted universe multiverse

Then, you need to set the "Pin-Priority" for the puppet package from Natty higher than the priority for your default release. Setting the default release in /etc/apt/apt.conf.d/01ubuntu essentially sets the priority for all packages originating in that release to 990. So in /etc/apt/preferences we need to over-ride this for puppet, using something higher like:

Package: puppet
Pin: release n=natty
Pin-Priority: 995

Now you simply need to run and apt-get update && apt-get upgrade


CDH (current version 5.0.3) is not currently supported with Ubuntu 14.04.
However, you can try

manual installation method
this blog here
adding the repos for CDH for ubuntu 12 to your ubuntu 14 and installing using apt-get

Your Mileage May Vary

I could never get the Cloudera Manager to get it working, but have installed CDH components manually with great success using point 3 above.


How would you separate fields with multiple spaces and store them in an array?

Using colrm to remove columns from file.

#!/bin/bash

shopt -s extglob

a=()
while read; do
   a+=("${REPLY%%*( )}")
done < <(colrm 26 < text.txt)

printf %s\\n "${a[@]:2:3}"

(Bash builtin version):

#!/bin/bash

shopt -s extglob

a=()
while read; do
    b="${REPLY::26}"; a+=("${b%%*( )}")
done < text.txt

printf %s\\n "${a[@]:2:3}"


Plans to automatically support existing GPT partitions during installation?

In my experience, the way Ubuntu handles UEFI and GPT partitions has slowly and steadily improved over the last few years and I feel that this will continue. The Ubuntu installer itself has come on in leaps and bounds throughout the development cycle.

However, I think this is the wrong place to be asking for peoples' opinions about this stuff and the Ubuntu Forums might be a better venue. This site is better for answering specific technical questions. As I am writing this, I am looking at the guidelines, above my reply, which state:

  Your Answer

  Thanks for contributing an answer to Ask Ubuntu - Stack Exchange!

  Please be sure to answer the question. Provide details and share your research!

  But avoid …

  Asking for help, clarification, or responding to other answers.
    Making statements based on opinion; back them up with references
    or personal experience.

  To learn more, see our tips on writing great answers.

It is therefore very difficult to answer your question in any meaningful way.

Your lack of a specific question makes this very difficult, but I must say that you give up too easily!

That being said, I did my research and managed to make it work.

I actually wrote up a howto and posted it to this very site:

How do I create a multiboot environment using LVM for your *buntu operating systems on a GPT formatted system drive, in a UEFI based system?

Parts of it should be very useful in enabling you to do what you want.

Just remember that the big commercial Operating Systems, such as Windows, do not play nicely at all with other OSes and that Linux, flawed as it may be, is likely to provide you with the best options in dealing with this issue.

Stick with it!


Monitors not detected using a Dell DisplayLink docker even after installing the driver for 20.04

Try to enable High Resolution mode when connected to a USB-C DP alt mode dock option.
https://support.hp.com/us-en/document/c06575423


Help Create First Desktop Application - "There was an error launching this application"

You need to edit the Exec= and Path= lines in your .desktop file, replacing each home/vitor with ~ (a symbol which simply means "the current user's home directory"). When you're done, it should look like this:

[Desktop Entry]
Version=1.0
Type=Application
Terminal=true
Exec=~/Dropbox/Ubuntu/ScriptsLinux/OpenNautilus.sh
Path=~/Dropbox/Ubuntu/ScriptsLinux
Name=OpenNautilus

With that change done, any user that has the same directory structure (Dropbox->Ubuntu->ScriptsLinux->OpenNautilus) and OpenNautilus.sh file in their home directory can run this .desktop file without making any changes to it.


How to move Ubuntu grub from usb to hdd boot

You must modify grub:

sudo gedit /etc/default/grub

change it as you wish and then:

sudo update-grub

If this doesn´t solve your problem please give as much detail as possible and try not to repeat posts, as soon as we can answer we will for sure :)


I can't install LightRead in Ubuntu 16.04

Easy way to install lightread is to check out the source from launchpad and then create your own package on quantal using quickly:

bzr branch lp:lightread
cd lightread
quickly package --extras
sudo dpkg -i ../lighread-`version`.deb

I don't know what the version quickly will spit out, so you'll have to check.

Note: You need to install the bzr and quickly packages, to download and install the source this way.


You can right click on the entry in the task bar and select More Actions then Special Application Settings to create a window rule. In the Size & Position tab check Screen and Force to the screen you want.


I have the same printer and Ubuntu 14.04, and I was also wondering why the test page won't get printed, even though the set-up seemed to be successful.

After a while I recognized that the system couldn't auto-install a proprietary plug-in for the driver, but it is fairly easy to install with the pre-installed tool hplip. Just type the command hp-setup and follow the instructions.

It should be quite straight forward, but you can find more information here:
http://hplipopensource.com/hplip-web/support.html


Is it may be same issue?
How to switch 'default' sound device controlled by hardware keys in Xubuntu?

You should check, that 'active-card' in xfce4-mixer settings is proper.


I got the Windows version of Reaper "relatively" easy to work on Ubuntu with low-latency-kernel. With Cadence for jack and the jack/wine bridge you can pass the routes to Reaper in a bit more comfortable way than configuring each program on its own. But don't get your hopes up. I was at first very happy that it worked at all but soon reality started to kick in. There was simply no configuration of jack i could find which didn't had a latency to high or broke the connection now and than. It was besides of this not very stable and crashed from time to time.

Let me spare you a great amount of ass-pain: Don't use linux for DAW stuff. I was really pissed at this realization but sinking almost a week into this fathomless pit i was pretty burned out and didn't bother to use Windows 7 again (10s horrible updates brought me to try linux-DAW again xD).


Keyboard uunresponsive after resume from suspend

I have a laptop with the i8042 device, too.  I noticed that when the machine resumed after a suspend, that the dmesg command showed log entries with

  rfkill: input handler

which is supposed to enable and disable wireless.

Since the keyboard is also an input device, I wondered if rfkill might be impacting the keyboard in some way. So I disabled rfkill by doing:

sudo mv /usr/sbin/rfkill /usr/sbin/rfkill.disabled

After rebooting, the problem with the keyboard has gone away for the past 2 days, despite multiple tests over many hours, to reproduce the problem.  However, control over turning WiFi on/off is gone from the desktop.

If you see rfkill in your dmesg output, you might give this a try.


I have found a partial solution to the problem.

It would seem that the root of the problem lies somewhere in mutter or the Intel driver, or a dependency. From https://bbs.archlinux.org/viewtopic.php?pid=1092628, a workaround is to put the following in /etc/environment (or somewhere else which gets "sourced" before things are run):

CLUTTER_PAINT=disable-clipped-redraws:disable-culling

For me, this makes Gnome 3.4 pretty usable, but still a bit worse than 3.2 in terms of performance. The workaround fixes the tearing and choppiness, but it adds lag when moving windows around so that it feels like they're in honey or something!


Using already installed Windows from Ubuntu

It can done by using your physical drive as disk image. But i am not encourage to do it. it may cause some data loss or system crash. i am not responsible for any of the damage cause by using this method

make a virtual drive of your physical the below code

VBoxManage internalcommands createrawvmdk -filename "hdd.vmdk" -rawdisk /dev/sda

assuming your physical drive is /dev/sda
open virtualbox with root access

sudo virtualbox

create a new virtual machine by clicking new, enter a name and in harddisk selection section select 'use an existing virtual hard disk file' browse to your home directory and select  hdd.vmdk . press create

if there were no errors you will see grub. select windows. now you can user windows inside ubuntu. it has limited usage.

if you are looking for running windows application install wine (use this ppa for installing latest version)


Openshot

OpenShot can take your videos, photos, and music files and help you create the film you have always dreamed of. Easily add sub-titles, transitions, and effects, and then export your film to DVD, YouTube, Vimeo, Xbox 360, and many other common formats.


Should I uninstall the softwares which Ubuntu has already in it?

Well, you shouldn't.

Mozilla and LibreOffice on your Windows XP where compiled for Windows to run on Windows. Applications on Linux(also Ubuntu) where compiled to run on this OS.


How to filter a regex (exclude special characters)

One of many alternatives would be find . -maxdepth 1 -iregex '.*/[a-z0-9.]*' -ls

If you think you may need to use this often, you could even create an alias to shorten the command:

Note: The below alias will only work in the current directory, although you could easily create a script that would parse a command line argument for the directory..

alias myls="find . -maxdepth 1 -iregex '.*/[a-z0-9.]*' -ls"

If you were to do that, every time you issued the command myls you'd get the desired output without all the extra typing. Lazy or efficient, you decide.

Sources:
Byte Commander comment here

https://stackoverflow.com/questions/4509624/how-to-limit-depth-for-recursive-file-list - specifically this answer

man find


Permissions and passwords error after Fresh install

This sounds like a permissions issue, possibly caused by lack of ownership of your home directory. If your username is John, you would want to issue the following command to restore ownership of your Home directory, and everything in it to you.
sudo chown -R john:john /home/john
In the command above, replace "john" with the name of your user folder, all lowercase.
If your home directory and everything in it belongs to you, then you can try fixing permissions, with the following command.
sudo chmod -R a+rwX,o-w /home/john
That command should set all of the directory permissions to 755, and file permissions to 644 for user John. Files already marked as executable should remain as such.


It's probably also dependent on the PDF version:

In my document headers created with LibreOffice, the version 1.4 is having fewer header information.
Using the print function (f.e. firefox) uses 1.5, which is the same like a PDF I created with the newest M$ Word (2010).

Could you try out PDFsam (pdf split and merge) ? It has the option to choose the pdf version naming also the related Acrobat version.


Turns out to be a bad ISO. Re-downloaded and fixed this problem.


I just installed Ubuntu 12.10 from a DVD

Try to install using boot-able  pen drive , it is the best option.
To make pen drive boot-able use the following command

  sudo dd if="loaction of ubuntu file" of=/dev/sdb.

When I install ubuntu using DVD it gives me problem most of the times.


Can you boot into grub and then chainload Windows efi.
During grub you can press C to enter the CLI (you called it BASH-like terminal).
grub> set root=(hd0,gpt2) #sets / to the Efi partition
grub> chainloader /EFI/Microsoft/Boot/bootmgfw.efi #tell which efi file to laod
grub> boot #does the magic

if it works well, you might add this as a grub-entry. See here for more infos about creating an entry.


Open the terminal by pressing Control+Alt+T and type:

sudo apt-get remove wine

That will uninstall wine but if you want to get rid of wine and anything related to wine run:

sudo apt-get purge wine


Older wireless devices, manufactured before the introduction of WPA and WPA2, are generally not capable of doing WPA and WPA2 because the engineering that went into the chipset didn't provide for technologies that were unknown at the time. You can learn what the device will do with:

sudo iwlist wlan0 auth

Of course, substitute your wireless interface if it's not wlan0. As WEP is quite insecure, I can't recommend you use the device if it doesn't authenticate with WPA2.


I did end up getting this working again- through the "software and updates" program on ubuntu, i went to the additional drivers tab and switched to the "nvidia-drver-460" driver, the mistake i was making was failing to reboot and "enroll MOK" for secure boot- i was just continuing to boot.


How do I find Ubuntu drivers for my gigabyte GA-Z77-D3H motherboard?

Phoronix, a trusted source, indicated that the Z77 works without trouble in Linux. The drivers are built right into the kernel and will be automatically loaded at boot.

As for the nVidia card, just go to Software Sources > Additional Drivers and activate the driver and you will get OpenGL detection.


How to boot from toshiba recovery partition after installing ubuntu 14.04.1?

You can not recover Windows if you installed Ubuntu instead of it, you need a working windows partition to restore the recovery data.

All the recovery partition does is use a earlier working version of Windows to fix any errors with the current install.

Your Windows is gone


Unable to access fresh installation of 14.04 with full disk encryption

I found a similar problem to yours. This might help. What I would do is figure out the difference between the Norwegian layout and the default layout. According posters from the link provided, he has to press the Y key to enter z into the password field. It seems the keyboard layout reverts to default during boot.


How do I turn off the alt-shift-uparrow keybinding in GNOME?

sudo apt-get install compizconfig-settings-manager

Dash Home -> CompizConfig Settings Manager-> Scale(icon) under Windows Management Category -> Bindings(tab) -> Initiate Windows Picker -> change to <Shift><Super>Up

Done.


Ubuntu GNOME boots to grey screen with border

I had the same problem and I've spent around 5-6 hours trying to make it work. Now, it works! What I did was change the BIOS from Legacy to UEFI, reinstalled Ubuntu GNOME, restarted, waited for a bit, and works. Hope this can work for you too :)

Edit: I restarted and got the grey screen with the border again, but only for around 5 seconds. Afterwards, it'll boot into the login screen.


KUbuntu What is the function of Check and Default Checkboxes on Pin Submenu

On my system, Default refers to the default activity, the one that exists by default and can't be deleted. The other entries are the names of other activities I created. It's probable that you have an Activity named Check.


Sorry, Ubuntu 19.10 has experienced an internal error after upgrade

After some more googling I stumbled across this Ask Ubuntu question: tracker-miner-fs ubuntu 19.10

Following the answer posted there, which was to remove these two directories:

~/.cache/tracker
~/.local/share/tracker

I ran the following two commands:

rm -rf ~/.cache/tracker and rm -rf ~/.local/share/tracker

Since restarting my laptop the error popup has not re-appeared.


Yes, compiling a kernel usually means:

Downloading the source code.
Possibly modifying the source code (most non-programmers don't usually do this).
Configuring the kernel (what features/modules/drivers to include, etc.)
Compiling it.

Instead of just make/make install, most people use a special toolchain that will generate debs at the end; you can simply install these with dpkg and have the GRUB, etc. parts taken care of.

Please see this question for a how-to:  What's a simple way to recompile the kernel?


Xubuntu: how to remove the printer icon?

I had the same problem, below is how I solved it.

Just right click on the icon, and then click Hide.  That will hide the icon, and it won't show again.  See image below.


Dual boot Windows 8 and Ubuntu 13.04 on dell Inspiron 15R 3521 in UEFI mode

Follow this article to dual boot Windows 8 and Ubuntu 13.04 on Dell Inspiron 15R 3521. I tried it on my Dell 15R and it works well. http://itechwik.com/dual-boot-windows-8-and-ubuntu-in-uefi-mode-on-your-computer-or-laptop-2728/


Run sudo apt install -f this should rectify your problem.


Ubuntu does not recognize windows and I'd like to delete windows. NOT dual-boot

If you are able to, then choose the "delete everything" option. Otherwise, choose something else, click on every partition that shows up, and press the delete button. Then you will have all free space. Click on the space and simply click next. No need for further partitioning , it will do all by itself.


Use iptables to change firewall.
https://help.ubuntu.com/community/IptablesHowTo

something along the lines of
iptables -A --dport1900 -j REJECT

similar to this:
https://www.linuxquestions.org/questions/linux-networking-3/turn-off-http-port-80-keep-https-port-443-a-288442/


Why is Software Updater showing additional updates?

You asked "why?" and luckily there is a command that is called the same why in aptitude:

aptitude why clamav
i   cron         Suggests exim4 | postfix | mail-transport-agent
p   postfix      Suggests mail-reader
p   kmail-mobile Provides mail-reader
p   kmail-mobile Suggests clamav

As you can see, cron suggests postfix, which suggests mail-reader, which suggests kmail-mobile. This is in my specific case, in your's the reason might be even more obscure or bizarre. So, why did your update-manager decided to install clamav* package? The Update Manager doesn't use the same tactics as apt-get upgrade, rather it uses apt-get dist-upgrade which is more aggressive in trying to install and remove packages that you may (or may not) need.

I'm sure somewhere you have a a package of a recommendation of a recommendation of a suggestion that makes update-manager install some clamav related package and this at the same time pulls the entire clamav baggage.

aptitude why dansguardian clamav
p   dansguardian Depends clamav (>= 0.80)


After install Docker CE on 20.03, network interfaces disappear

Oops. Apologies. Here is the output:
$ lsusb
Bus 002 Device 002: ID 8087:8000 Intel Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 006: ID 148f:5372 Ralink Technology, Corp. RT5372 Wireless Adapter
Bus 003 Device 003: ID 1c4f:0002 SiGma Micro Keyboard TRACER Gamma Ivory
Bus 003 Device 002: ID 04f2:0939 Chicony Electronics Co., Ltd USB Optical Mouse
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Jeff


You still may still be able to change the Windows version using winetricks:

winetricks winxp

This should set the Wine version back to Windows XP - it may not work if wine doesn't work.

The wine configuration (by default) is stored in the home directory in a hidden file called ~/.wine. So another way to do this (start again), would be backup the current wine configuration (you can restore it then if needed):

mv ~/.wine ~/.wineBACKUP

or remove it (permanently):

rm -r ~/.wine

A better thing to do in the future would be to run Wine with multiple config directories, each for a version of Windows (98, XP, etc). This is covered in the Wine wiki, but basically if you install the WinXP programs normally in Wine, then run this:

WINEPREFIX="$HOME/.wine98" winecfg

and set up a second setup of Wine version for Windows 98, and then install it in that version:

WINEPREFIX="$HOME/.wine98" wine /path/to/program-that-needs-win98.exe

Both sets of applications should run happily, and if the Win98 one in ~/.wine98 mucks up, the WinXP in ~/.wine should be fine.


I had the same issue on Opera and Firefox browser (on Ubuntu 18.04.1).

Type this on terminal:

sudo add-apt-repository ppa:uget-team/ppa
sudo apt update
sudo apt install uget-integrator

Then restart your browser.

Edit: You can visit Source for another distributions/OS.


Its the nature of evince and some have reported as a bug, see here and here. Evince will not open files without the .pdf extension added to it. To get it to do so you have to add the .pdf file extension to any document, at least that's evince for now.


Press Ctrl+Alt+F1 (to enter a virtual console), log in with with your account and install the package gnome-terminal with the command:

sudo apt-get install gnome-terminal

When you type passwords into a text-only virtual console, you don't see anything on the screen. That's normal.

Return to Unity (or whatever other desktop environment you're currently running) by pressing Ctrl+Alt+F7.


Failed update of 10.10 results in unbootable system

I have had that problem before and I bit the bullet and re-installed it due to the fact that I needed Ubuntu for a project.

My advice is to download an up to date version of Ubuntu 10.10 ISO image and re-install it.

Just don't give up on Linux and Ubuntu so fast.


Very strange bug in Unity (or less likely in Gimp and Skype) - some windows dont show anything

Ubuntu tracks this as the following bug in Launchpad:
https://bugs.launchpad.net/ubuntu/+source/gimp/+bug/1371928

In case of Nvidia GPUs, this is traced to the following bug in compiz:
https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/1072206

And users are reporting that it still happens to them in 2015, so it is apparently not fixed. A workaround could be to not use Unity and/or compiz.


Installing Ubuntu to have a dualboot system running on Asus UEFI bios

Asus may be picky about recognizing USBs.  Have the USB present when you shutdown, then in BIOS/UEFI Settings, it should show up in the bootorder, and may be put first. This setting may not persist even if you just switch USBs.

Did you hashcheck the downloaded ISO?  A bad download may prevent the USB from booting.  Does the USB work in other ports, in other machines?  Maybe there was a bad write to the USB, and it wont work anywhere.  Number of partitions on the hard disk may prevent an install, if DOS partitioning is used and all four primary partitions are used, but shouldn't affect booting the USB.

Setting up a bootable USB  which works for both BIOS and UEFI is dog-meat simple -- a byte-for-byte copy of the ISO to the USB is all it takes (the dd method).  You wont get any persistence, and any space on the USB over 4G will be wasted, so various programs offer ways to do that, confusing the basic issue. Additionally, about 5 years ago, the ISO added a link, which is fine for an ISO9660, but not allowed on a Fat filesystem, so just copying the files out of the ISO onto a FAT USB no longer worked (for a UEFI boot). Since the USB you made  works on other computers, you have the technique, now you just have to figure out what your Asus needs to boot, or find a Windows dd equivalent to just copy the ISO, which boots both ways.  The Rufus defaults should work, but I am not familiar with Rufus.  I do know you should avoid offers of strange filesystems like ntfs or exfat23.


Lubuntu Core meta-package

Lubuntu Core is a meta-package (that helps you install the packages that will make a basic operating system into Lubuntu Core. There is no corresponding iso file. This is different from Xubuntu, where a Xubuntu team member has uploaded unofficial Xubuntu Core iso files.

You need a wired connection (ethernet) to the internet for this to work.

BIOS mode - start from Ubuntu mini.iso

I would install it like this (in BIOS mode),

Download an Ubuntu mini.iso iso file alias a Netboot iso file.
Check that it matches the corresponding md5sum.
Create a boot USB/CD drive (for example by cloning).
Boot into the USB/CD drive and use the text mode installer to install a basic operating system that works in text mode.
Reboot and login in text mode (in the basic operating system).
Run the following commands to install Lubuntu Core

sudo apt update
sudo apt full-upgrade
sudo apt install lubuntu-core

Now, when you reboot, you should have Lubuntu Core, which looks pretty much like standard Lubuntu, but without several program packages. So select and install the application program packages that you want :-)

UEFI mode - start from Ubuntu Server iso file

If you must install Lubuntu Core in UEFI mode, you can start from an old style Ubuntu Server iso with the Debian installer. The procedure looks pretty much the same as with mini.iso, and it works in both BIOS mode and UEFI mode.


What download managers are available for Ubuntu?

I would recommend the wget command line utility which is absolutely awesome!

wget is a GNU free software package that is used for retrieving files over the web. If you have got it installed, then all you have to do is to get the download link and use wget to download it.

In order to get the download link, right click on whichever download you want in the firefox download manager. There will be an option ‘copy download link’. Click on it.

Then open a terminal and go to whichever folder you want the file downloaded to. Assuming it is in the Desktop, type the following command at the prompt:

$ wget <paste your download link here>

Now even if it gets stuck in the middle, you can resume from wherever it was interrupted by giving the option -c to wget. That is, the command will be like

$ wget -c <paste your download link here>

And there it continues beautifully.


My advice would be to simply disable cups.

sudo mv /etc/init/cups.conf /etc/cups.conf.disabled

Or you could edit /etc/init/cups.conf and comment out the start line (s).

#start on (filesystem
#     and (started dbus or runlevel [2345])
#     and stopped udevtrigger)
stop on runlevel [016]

See http://upstart.ubuntu.com/cookbook/#disabling-a-job-from-automatically-starting

Alternately you can remove cups, but probably , at least IMO, more hassle then it is worth.

CUPS is your printing service. The first command stops the service from running.

The link I gave you discusses Upstart. A service is a process that runs in the background, usually waiting for connections. In the case of cups, cups = Common Unix Printing System http://www.cups.org/ and it will share your printer if you configure it to do so.  Upstart is the process which monitors, starts, and stops various services.

You could as easily simply remove cups and sane (sane is for scanners), but probably more hassle then it is worth.

It is highly unlikely cups or sane is consuming significant resources or in any way slowing down your performance.

If, as you gain experience with Ubuntu / Linux, you wish a smaller, lighter system, it is IMO far easier to start with a minimal install and build up then start with a standard desktop install and start removing things.

If you are new to Ubuntu and Linux, take care in removing things you do not yet understand.

See also:

https://help.ubuntu.com/community/Installation/MinimalCD

https://help.ubuntu.com/community/Installation/LowMemorySystems


downlaod the missing dll and copy it to your wine system32 foler.

go Home > ctrl+h > .wine > windows > system32 > (paste the missing dll that you downloaded.

if another error poped out and looking for another dll download it and do the same thing above.

i hope it helps...


Ubuntu 16.04 LTS will automatically log out

Similar problem happened to my friend because somehow he corrupted the .Xautority file.

Log into a tty (Ctrl+Alt+F6) and after typing your username and password:

sudo rm -v .Xauthority

.Xauthority file can be found in /home/, which is where the terminal's default working path also usually is. If you use a tty to sign in as one user to delete another's .Xauthority file, make sure you've cd'd to the right directory first.

Then restart lightdm with:

sudo service lightdm restart

The system will recreate the .Xautority file.
Hope it helps.


Automatic switching between performance and powersave mode on plugging in/out the power supply

You should try forcing the acpi-cpufreq scaling driver. To do so, edit (as sudo) the /etc/default/grub file and change the "GRUB_CMDLINE_LINUX_DEFAULT" line, adding this (and my example has some other stuff for my case that was there before):

GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 intel_pstate=disable crashkernel=384M-:128M"

Then run:

sudo update-grub

Then re-boot.
You should find that your Ubuntu system will default to the ondemand governor about 1 minute after boot up.

I would be interested to pursue why you seem to be having issues with the intel-pstate driver.

To answer your actual question, look into the laptop-mode-tools package and it configuration


How to change the screen resolution when using RDesktop?

I like using rdesktop -g 90% servername, which will use set the size of the remote desktop to 90% of the size of your local screen, which works quite well regardless of resolution.. :)


just use SUDO which stands for "Super User DO" and give ur actions root-privileges. That should do the trick.So u just :

sudo ./scripts/driver-select ath9k

Have fun (-:


What is the differences between Ubuntu existing kernel vs rt kernel?

The -rt kernel   vs   the -generic kernel
The -rt kernel is based on the Ubuntu kernel source tree with the PREEMPT_RT patch applied to it (and therefore can use the same features, patches, enabled hardware, security fixes and so on) and should offer the same services that the Ubuntu default -generic kernel offers.
e.g.,
It should be compatible with closed video drivers (nvidia and fglrx), any external DKMS drivers, and have available backport packages.
The goal of an -rt kernel is to obtain a real time variant of the Ubuntu kernel that is aligned with the -generic kernel.
As it can be read from the Control Systems Technology Group article "Realtime Linux":

The goal of -realtime and -rt (hard real-time) kernels is to achieve the lowest possible latency at every cost. In technical slang hard realtime systems should always meet their deadlines. Thus developers should use the most advanced programming techniques (sleeping spinlocks, PI Mutex, Full preemption, IRQ Threads and others) and sacrifice things like reliability, power-saving and throughput. Almost all parts of kernel should be analysed to guarantee that right behaviour always occurs.
The goal of -preempt and -lowlatency (soft real-time) kernels is to achieve good realtime characteristics, meanwhile offering welcomed features like rock-solid reliability, good power-saving features and also good throughput. But in this way it can't guarantee lowest latency under all conditions.

You audio Delay Issue
To you audio delay problem, the -realtime and -rt (hard real-time) kernels are your best option to achieve the lowest possible latency at every cost, thus reducing the sound delay.
Take note that other mitigating circumstances may be influencing your audio performance.

To answer your question directly

does audio delay depends on general kernel vs rt kernel? Where some audio capture looks like it has always a few MS delay.

Yes, the kernel type being used influences the hardware performance, thus influencing details like the audio delay.
Have it said, using -realtime and -rt (hard real-time) kernels, that have a more aggressive configuration, can further reduce latency, being this your best choice.


How can I get Unity to recognize installed applications it doesn't list?

I think you need to create a .desktop file in your /usr/share/applications/ folder. Have a look at any .desktop file and create a new one with what you need.

Here's my Banshee.desktop. Only replace Exec, Name, Icon and a few things.

[Desktop Entry]
Exec=banshee-1 --redirect-log --device-activate-play=%u
NoDisplay=true
MimeType=x-content/audio-cdda;
Version=1.0
Name=Banshee Media Player
GenericName=Media Player
X-GNOME-FullName=Banshee Media Player
Comment=Play and organize your media collection
Icon=media-player-banshee
StartupNotify=true
Terminal=false
Type=Application
Categories=GNOME;Audio;Music;Player;AudioVideo;X-Ximian-Main;X-Novell-Main;X-Red-Hat-Base;
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=banshee
X-GNOME-Bugzilla-Component=General
X-GNOME-Bugzilla-Version=1.7.6
X-Ubuntu-Gettext-Domain=banshee

I think also you can create in "alacarte" (the Menu Editor) a launcher (it creates it self a .desktop file).


Nautilus doesn't open .tex files on left-click (12.04)

I just found an answer in this thread:

double-click does not open the default program

(I should have mentioned that in fact I meant double-click, not left-click. I forgot that double-click is default in Nautilus and I just changed it to left-click in my properties. Anyway, problem occured in any case.)


Automatically force fsck -fy when encountering "UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY."

Let me preface this with a disclaimer that if you have regular issues with unclean filesystems, even though you shutdown your system cleanly, you have grave underlying problems and its possible fsck can do more harm than good !

AFAIK there is no mechanism for an automatic fsck only if inconsistencies are found.

However, you do an fsck at every boot with some kernel parameters.

sudo nano /etc/default/grub

find the line that says

GRUB_CMDLINE_LINUX_DEFAULT

and add

fsck.mode=force  fsck.repair=yes

to the existing things there.

yes here should do the same as your FSCKFIX=yes in /etc/default/rcS or a manual fsck -fy. Personally I think preen would be safer, but then again it would hang on startup if the disk needs some more fixes that fsck does not deem "safe " and wants user interaction.

run

sudo update-grub

to update grup and verify it with

grep fsck /boot/grub/grub.cfg

or have a look with an editor in /boot/grub/grub.cfg

If you then reboot, the filesystem should be checked, you can verify the last time it was checked (should be your boot time) with

sudo dumpe2fs -h /dev/your/device | grep checked
dumpe2fs 1.43.5 (04-Aug-2017)
Last checked:             Sun Feb 18 08:53:31 2018


Have a look at the output. Which url can't be reached.
Have you checked this url also via web browser?

One reason may be an ppa repository that is not available any more.


Loading Grub2 from a different location?

When you installed 13.04, it reinstalled the Grub bootloader to the drive MBR and this is pointing at the 13.04 install, not the 12.04 install. You can still boot the 12.04 install, but it won't be the first one in the list.

Therefore all your customizations in the 12.04 install are not taken into account. You can fix this by booting your 12.04 install, and reinstalling grub:

sudo grub-install /dev/sda

This will put 12.04 back in charge of booting as it were (the Grub bootloader will be loading modules and the configuration from 12.04) and you'll see the 12.04 install at the top of the Grub menu again.


Ubuntu 12.04 gnome classic problem - multiple top and bottom bars

Alt+Super+Right Click is what works for me :D


How can I clone a terminal and retain its current history?

In a nutshell:

To open a new terminal window with the same full history as the current session, run:

 history -a && gnome-terminal

Full explanation:

The Bash history works like this:

You open a terminal which starts a Bash session.
Bash loads the old history from $HISTFILE, which is usually ~/.bash_history.
You can enter commands into the Bash shell. Those commands will be stored in a temporary history in memory.
You exit the Bash session or close the terminal window.
Before Bash terminates, it synchronizes the temporary history in memory with the one saved in $HISTFILE on the disk.

Note that for both the temporary and the persistent history may have size limits and get truncated when they become too long.

As each Bash instance only writes to a temporary history in your memory, the actions from a running session do not appear if you start a second session in parallel: It will load the old version of the persistent history file!

If you need to synchronize the temporary histories of two Bash instances, you need to do this via the persistent history file. There is a command to help you: history

To flush the current Bash session's temporary history from RAM to the $HISTFILE on the disk by appending the new command lines to it, you run:

 history -a

This command gets automatically invoked whenever you exit a Bash session.
To re-read the $HISTFILE from the disk and add the new command lines from it to the current Bash session's temporary history which you can use, you run:

 history -r

This command gets automatically invoked whenever you start a Bash session.

Note the leading space in front of both history commands. It prevents that the history command itself will appear in the Bash history. If you want it to appear there, just omit the space at the beginning.

So to open a new terminal window that has access to all the current history, you need to flush the current temporary history first, and then open a new terminal with a new Bash session:

 history -a && gnome-terminal

Again, note the space in the beginning to prevent this command to appear in the histories. If you want it to appear there, omit the space in front of the command.

If you want a short command for that, create a Bash alias:

echo "alias newterminal='history -a && gnome-terminal'" >> .bash_aliases

You could also add a context menu entry to the Gnome-Terminal launcher if you want. Ask for it in a comment if you need it.

To synchronize the histories of two already open terminal windows, first flush the history of the first window, then reload the history file in the second window:

Terminal 1 (source):

 history -a

Terminal 2 (target):

 history -r

If you need a two-ways synchronisation, first run the history -a commands on all windows, then run the history -r everywhere.

More information about the history command can be found when you execute

help history


I had the same problem described here, new install of Ubuntu 18.04 LTS. I installed VS Code from conda.

Discovered that if you run the following

code --verbose

It will tell you what is going on with Code. In my case

code --verbose
[main 20:19:26] Startup error:
Error: EACCES: permission denied, mkdir '/home/<user>/.config/Code/CachedData'

sure enough the folder ~/.config/Code had root access permissions for some reason. Deleted the folder using sudo.

rm -rf /home/<user>/.config/Code

Tried again to run code and it working fine.


Wine: Keyboard not working after changing focus

I had the same problem while playing Among Us desktop. This did the trick for me:

Open Regedit
Go to HKEY_CURRENT_USER\Software\Wine\X11 Driver
Create a new entry named "UseTakeFocus" with value "N"

I found this workaround in winehq forum.


OBS Will achieve this. Download Here.
Although, this will not be thru a Wine HQ App. I will delete this answer if you are specifically looking for this. (I suppose you could install OBS as a Windows App, but I do not recommend this type of installation)


xrdp with Win7Pro Remote Desktop not working

You need to setup proper shell to be used with xrdp otherwhise you will see just wallpaper.
Hint: Unity does not work with XRDP but Unity 2D does!


This is not possible.  The VESA driver uses the VESA BIOS interface to interact with the video card.  This is an absolutely bare-minimum interface compared to current technology - it dates back to the MSDOS days, before 3D acceleration and when the available VRAM on the graphics card limited your maximum resolution.  Driving two monitors was not a priority at this point!

Multiple displays on a single graphics card, and indeed driving multiple graphics cards, requires card-specific knowledge.  As VESA has no card-specific knowledge, it can't do it.

That said, we should have appropriate drivers for virtually any piece of graphics hardware you try to run Ubuntu on, and these should support multiple monitors.  If you've got problems with those, that's probably where to look, rather than trying to get VESA to do what you want.


Problem on running shell script (how to NOT make it run from gedit) - Ubuntu 12.04

In order to run a text file as executable from nautilus two things need to be set. Sounds like you have done the first already.

The second is that the file needs to be marked as executable.

To do this from nautilus right click on the file select "properties"

then on the "Permissions" tab select "Allow executing file as program".

Or from the command line

chmod +x file

replacing file with the file name.


How to shutdown a server that's configured to use XRDP for Remote Desktop [Ubuntu 10.14]?

Have you tried getting a command prompt on the server then running sudo shutdown -r now to reboot and sudo shutdown -h now to shutdown the server?


Will 4000 MB be enough for all the download work needed to install Ubuntu?

Size of iso is near ~750 MB . And you may need extra band width for installing additional tools . Your system specs are enough to run ubuntu smoothly .


Grub installed over refit after installing ubuntu 12.04 on imac7,1

You can set up rEFInd to boot Linux directly. Chances are all you need to do is to install the EFI filesystem driver for whatever filesystem holds your kernel (probably ext4fs). You can do this in OS X by creating an /EFI/refind/drivers directory and copying the relevant driver file (such as ext4_x64.efi) from the rEFInd package to the new directory. (This assumes a default installation of rEFInd from OS X; if you used the --ownhfs or --esp option, rEFInd will be located somewhere other than /EFI/refind.) Once you've set this up, you may also want to run the mkrlconf.sh script, which comes with rEFInd, in Linux. This isn't absolutely required in most cases, although it is necessary for some configurations. The biggest change you'll see is a switch from verbose boot with text-mode boot messages to the more familiar graphical boot with an Ubuntu logo on the screen.


Can upgrading Ubuntu 14.0 to 16.04 affect my windows 10 installation?

If your machine is booting the "wrong" operating system, you may manually select what to boot.  There are several possibilities, UEFI machines have a UEFI boot menu which may be invoked by some key (vendor specific, check the initial splash screen for info or the vendor's web site).  From the UEFI menu, you may select Windows or ubuntu.

Grub may be forced to display by holding shift key or typeing esc repeatedly at boot time -- then select what to boot from the grub menu.


Does Ubuntu support the asus crosshair v formula Z motherboard?

This page on the Asus website says that your motherboard support Ubuntu 12.04.


Me personally, for my laptop (an old Dell), I use Redshift because I am unable to adjust the brightness (something about old technology so no dimming via function commands). Redshift is in Ubuntu Software. I absolutely adore it!

I have never had it where mine was dim then bright upon open/close of the lid. Interesting issue. I wonder if Redshift will resolve that for you.

jth


Removing libjack0 removed a lot of packages

Usually works this way, If you know exactly which packages had been removed, then everything should be ok after reinstalling them again, unless You also purged a configuration then your custom settings will be gone.

If OS informed you that all those packages will be removed, then either you really don't need them, or they have some kind of conflict with new app/package You want to install.

I would recommend, to run below command

sudo apt install -f

Above command will attempt to fix all broken packages if any. (--fix-broken)


Gwibber error with facebook log in-with strange warning

Related bug https://bugs.launchpad.net/ubuntu/+source/gwibber/+bug/1058672
I dont think is an exploit, maybe something has changed on Facebook.


Apache2 Virtual Hosting ServerName in Ubuntu Server 14.04 in LAN not Working

Looks like there is a domain name related issue.

Are you sure you set your domain name provider's nameserver settings to point to the hosting provider's domain servers?

For example, assume you use digitalocean for hosting, you need to go to the control panel of domain name registrar, find fields named "Domain Name Server" and set their values to 'ns1.digitalocean.com', 'ns2.digitalocean.com' and 'ns3.digitalocean.com'.

Also, you can verify if you did it successfully by whois.

p.s.: It may take an hour or two for the changes to be reflected on your site.


How to loop over an if condition in Bash?

I would suggest using a while loop, with a conditional break ex.
#!/bin/bash

while :
do
  read -r -p "Enter file name: " file
  mkdir "/home/jeremy/MesFichiers/$file"

  read -r -p "do you want to create another file (y/n)? " answer
  case $answer in
    [Yy]*)
      continue
    ;;
    *)
      echo "Thanks"
      break
    ;;
  esac
done

Note that if you decide to use an if ... then construct in place of the case statement, the syntax of the test operator is very specific about whitespace i.e. if [ string1 = string2 ]


Skype icon doesn't show up on app indicator on Ubuntu 16.04 Xenial

Be sure to have sni-qt installed for i386 :

sudo apt-get install sni-qt:i386


How do I delete or skip over a word or a line of text in ubuntu terminal?

To delete a word before the cursor, press Ctrl+w. This is actually kind of a "cut to clipboard". Use Ctrl+y ("yank") to paste it back elsewhere. Ctrl+k will cut to the end of the line, Ctrl+u to the start of the line.
To skip over a word backwards, use Alt+b. Use Alt+f to skip over a word forwards.
These keys and many others universally work in bash in your terminal emulator, in a virtual console or over an ssh connection.
In the gnome terminal emulator, Ctrl+Left/right will jump over words left or right. Alt+Backspace will delete the word on the left, Ctrl+Del will delete the word to the right from the current position.


I took the nuclear option and ran this script

#!/bin/bash

for pkg in `dpkg --get-selections | awk '{print $1}' | egrep -v '(dpkg|apt|mysql|mythtv)'` ; do apt-get -y --force-yes install --reinstall $pkg ; done

It goes through everything installed and reinstalls it. Mouse works now.


First of all, I suggest you to use apt or apt-get utility to download and extract source files.

--download-only will download all three file for you and makes sure they are okay. at my xenial:

apt-get source --download-only linux-image-4.8.0-46-generic

--download is same as --download-only and it will extract the source for you.

apt-get source --download linux-image-4.8.0-46-generic

Just cd to the directory where your downloaded files are, and try using apt or apt-get, if something is wrong with them, it will try to download them again.

Anyway, it seems that something is wrong with your:

linux-lts-vivid_3.19.0-73.81-14.04.1.diff.gz

Again I recommend to use apt or apt-get, however you should download this  file and verify that it has been downloaded correctly.

To do that run:

sha1sum linux-lts-vivid_3.19.0-73.81-14.04.1.diff.gz

It should return:

a94c660c4e15f6a950573c11618a04094eacc652

Then try to extract it using dpkg-source -x, if it did not work, rename:
linux-lts-vivid_3.19.0-73.81-14.04.1.diff.gz
to:
linux-lts-vivid_3.19.0-73.81~14.04.1.diff.gz, (Not sure but give it a try).


'Install' option is missing in ubuntu software center

Now all is working fine...
There was something locking administrator, I just removed it out by

sudo rm /var/lib/apt/lists/lock

and also deleted the lock file in the cache directory

sudo rm /var/cache/apt/archives/lock

After that all is fine...


Change PSI or download software to Logitech G900 mouse

To change the pointer speed you can go to

Settings > Input Devices > Mouse > Pointer speed


Use a vnc server offered in the Ubuntu packages, like x11vnc or vnc4server.  Then when it is run, it will find the libraries and configuration files in their expected locations.


apt list not working properly. (Ubuntu 18.04, zsh and bash)

Many shells like bash or zsh don't just pipe the input through to the program that's called. Instead, several expansions and substitutions get performed. To give you an idea, bash performs eight different kinds of expansions.

For example, let's look at something like ls my_fi*.txt. With this command, bash would do what's called a "pathname expansion". If there's a file named my_file.txt in your current directory, the shell expands the command to ls my_file.txt. The ls program never sees the my_fi*.txt parameter, it only gets the expanded version.

So, when you type apt list *, the * will get replaced with a list of files in your current directory, and that's what apt list will get as an input. You're basically filtering the package list by arguments you didn't intend to use.

To keep bash (zsh works similar, I believe) from all that expanding and substituting, you can mask the special characters that "trigger" the process. That way, they get handed over to apt list (or whatever program you're calling) unchanged.

To mask a character, you can put a backslash in front of it

apt list \*

or you can put the whole argument into quotes

apt list '*'

You might want to note that the first method applies to one character

apt list my_packa\*

the second method applies to the whole argument

apt list "my_packa*"


Is there a "Settings history", or a log of changes in configuration?

The program etckeeper keeps track of setting changes in the /etc directory, using a source code repository like git or bzr. So it really tracks the actual changes of config files. It commits changes automatically when installing packets, for example.

See man etckeeper

It's easy to set up - not much more than apt-get install etckeeper and optionally editing /etc/etckeeper/etckeeper.conf to select git instead of the default bazaar as version control "backend" - see this answer: Kevin Bowen on: "Is there an application to manage config files in the /etc folder with version control software?"

In theory, you could actually manage all your configuration files in a source code repository.
In practice, that is more tedious than it sounds - I would not recommend it as a general solution.

The question whether to use Canonicals bazaar (bzr) or Linus's git as repository backend is not really important;
You do not interact much with the repository in normal operation, and if you need to, like for tracking down a config problem, you'll need only basic vcs features, easy to look up.

If you are familiar to one of them more than the other (or plan to get familiar), choose it.

One can discuss the question a long time in the style of the editor war of vi and emacs; for
the basics see Is it easier to manage code with GIT or Bazaar? - Google will keep you stocked with ammunition of your preferred side.

One objective reason to choose git is working in a software related field; I would expect more git to be used, or migrated to; so it's a useful skill to have worked with it a little.


r8168 module not used by ethernet controller

Turn off secure boot in your BIOS. Ubuntu will not load unsigned kernel modules with this enabled.

edit:

The r8168-dkms is not the right driver for your Realtek Semiconductor Co., Ltd. RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller (rev 07).

To uninstall it:

sudo dkms remove r8168/8.043.02 --all # to uninstall r8168 kernel module

sudo apt-get purge r8168-dkms # to uninstall r8168-dkms

Make sure that the file /etc/modprobe.d/r8168-dkms.conf does not exist.

Reboot the computer.

Edit your question to include the terminal output of the first 3 lines of modinfo r8169, and sudo lshw -C network

You will have to download the rtl8101 driver from http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=7&PFid=7&Level=5&Conn=4&DownTypeID=3&GetDown=false#2

Follow the instructions in the README file contained in the download file, and review this Realtek ethernet driver error ubuntu 16.04 (starting with the answer that contains "For product: RTL8101/2/6E PCI Express").


Window titles disappear when setting scale to 0.875 on 16.04

Window titles also disappear when setting scale to any position except 1 on Ubuntu 16.04 for me.

I use scaling 1.25:

In Unity Tweak Tool, if I set the default font for windows title to Ubuntu 11, text in all window titles disappears.

If i set Ubuntu Regular 11 titles on some windows exist and on some do not exist

I tried to use many fonts and sizes and finally with DejaVu Sans Mono Bold 10 all windows titles show normally

So open a couple of different windows and try to find a font that works for you in Unity Tweak Tool.


How to encode / convert a complete folder using ffmpeg?

Let me restate your problem. You wish to:

process all the files named video?.mp4
generate an output filename output?.mp4
process the input file to the output file.

for i in video?.mp4 ; do
    outfile="output${i##video}"
    ffmpeg -i "$i" -vf scale=1280:720 -acodec aac -strict -2 "$outfile"
done

Read man bash


How to make containters get IP addresses from LAN and not from the bridge in netplan

The solution for me was to use the following config:

network:
  version: 2
  renderer: networkd
  ethernets:
    eth0:
      dhcp4: no
      dhcp6: no
      match:
        macaddress: 70:...
  bridges:
    br0:
      interfaces:
        - eth0
      dhcp4: yes
      dhcp6: no
      macaddress: 70:...

And then I could assign a static IP in my router which worked.


Ubuntu 11.10 x64 is not loading after a hard reset.

Your problem is that the drive has been put into read only mode, which can be fixed by running a disk check.
Instructions

You will need a Live CD/USB.
Once it boots, open a terminal.
Type: sudo fdisk -l
Find your hard drive from the list.
Once you know what it is, run sudo e2fsk -f /dev/yourdiskhere
Allow it to run completely, and allow it to fix any errors.
Once it completes, close the terminal and the Live System and reboot your computer.


Ubuntu 18.04 lags while using Android Stuido and IntelliJ Idea

User removed /swapfile.

The /swapfile is primarily used when RAM memory gets full, and the system moves active, but recently unused, pages of memory out to swap, and them pulls them back into memory when needed. This makes room in memory for other programs, or other active pages.

Warning: Improper use of the dd command can cause data loss.

sudo swapoff -a           # turn off swap
sudo rm -i /swapfile      # remove old /swapfile

sudo dd if=/dev/zero of=/swapfile bs=1M count=4096

sudo chmod 600 /swapfile  # set proper file protections
sudo mkswap /swapfile     # init /swapfile
sudo swapon /swapfile     # turn on swap
free -h                   # confirm 16G RAM and 4G swap
reboot                    # reboot and verify operation


Just upgraded to 16.10 and have lost wireless conectivity, I tried this in terminal

I would blacklist dell-rbtn as this is a newer kernel module and it is supposed to allow the FN combo to clear a hard block but if the FN combo doesn't work

echo "blacklist dell-rbtn" | sudo tee /etc/modprobe.d/dell-rbtn.conf

Reboot


Ubuntu Touch and installing .click packages outside of Ubuntu app store?

I am not fully clear of the question. You wanna know if click packages are able to install without the Ubuntu store?
If that is the question, then the answer is yes.

You need the click file. In the terminal you can install it on the device.


What is the best way to install openstack

Try to follow the steps provided on this site: OpenStack Install guide


Multi-Boot with WindowsXP, Windows7 and Ubuntu. Boot problems

I'm about to sleep so I apologize in advance for jumping to a conclusion. But the impression I'm getting is that either you are having problems on where to install GRUB 2. Can't tell much, but could you boot your computer via a Linux Live USB (i.e. Ubuntu) and then run GParted, then take a screenshot?

Below is not a solution, but an advice to share a personal "best practice" when multi-booting:

Order of install is all MS Windows OS first (oldest to newest, so in your case install XP first and then Windows 7).
Last will be your Linux Operating System/s.
If you are multi-booting, say two (2) MS Windows OS's and two (2) Linux OS's, install the MS Windows OS's as per #1. And then for the Linux OS's, just be reminded that the last Linux OS you install is the one that will take over the "Bootloader" (GRUB is an example of a "bootloader").
The best tip that I follow when multi-booting is to learn how to install GRUB 2 in a "dedicated" partition.

This way, you avoid the issue where your MS Windows OS "magically disappeared"...you can actually check if the MS Windows installation really disappeared or got deleted by booting a Linux Live USB of your choice and then try checking in the File Manager if the MS Windows partition is still there.

And if it's still there, then it narrows down your problem to how the bootloader (i.e. GRUB 2 in Linux) got installed.

When you opt to install GRUB 2 in a "dedicated" partition, it frees you from the worry of the bootloader being deleted along with the respective OS partition, or other complex scenarios. At least, the working OS that was installed will boot up properly.


How do I get the touchscreen working on a  VAIO VPCL237FX?

Try this page. The file to edit is /etc/X11/xorg.conf. Be sure to have a backup of your original xorg.conf before you modify it. This could save your life.

sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf-backup-20120517-touchscreen-not-working

Then edit the file accordingly to what is written in the above link.

Remember that editing xorg.conf can lead to a broken X Windows System (no GUI) and thus is pretty dangerous if you're not fully comfortable with a bare command line.

If you should have troubles, you can always:

try to remove xorg.conf (sudo rm /etc/X11/xorg.conf) and see if Xorg can start a decent X server without it
issue a sudo Xorg -configure (see Configuring X11). It should create a xorg.conf.new in your /root directory. Then try to copy it to its original location with sudo cp /root/xorg.conf.new /etc/X11/xorg.conf
read a bit more about X configuration and expecially about display resolution configuration (and in your specific case also about input device configuration) and try to build yourself your first working xorg.conf

Good luck.

EDIT: sorry didn't see the previous comments. Also found a guy that probably did it:

  The touch screen is a NextWindow Voltron 23.6" touchscreen. It works great in windows and with a little configuring I can get it to work in Ubuntu. To get it working in Ubuntu I need to install the evtouch driver for X and then add a few lines to the X config.


Given the limited information to date this is the closest answer I could find to your problems: [SOLVED] Xrandr it doesn't detect HDMI output.

In a nut shell you may need to:

Implement Intel early microcode updates
Utilize a command something like: xrandr --output LVDS-1-0 --auto --rotate normal --pos 0x0 --output HDMI-0 --auto --rotate normal  --left-of LVDS-1-0 --output VGA-0 --right-of LVDS-1-0

Please try appropriate solutions in the link. Then report back success or how your system is different then we can work from there.


Sound fails randomly, mostly when headphones are connected

When this issue was observed I was on Ubuntu Gnome, over time I moved to Linux Mint 18.1, then 18.2 and 18.3 and the issue still persisted. It had certainly less to do with the specific OS and more with the drivers and kernel it seems.

Dell has been consistently releasing BIOS software updates. I am currently on BIOS version 1.3.0 (Release Date: 09/11/2017) and kernel version 4.13.0-36-generic and noticing that I no longer have this problem. It stopped a few kernel updates ago, but I waited to observe/confirm.

There have been further updates to BIOS (latest version as of this post is 1.5.4) and so to kernel, but I have not tested them. Unless a regression occurs they should work. Will revert if  the issue occurs again after any update, till then let's consider this as fixed.


Missing characters after update ubuntu 14.04

I had the same problem with my X1 carbon and it appears I've solved it. The steps I took were:

get gnome tweak tool: sudo apt-get install gnome-tweak-tool
use the tweak tool to disable font antialiasing
reboot
use the tweak tool to re-enable antialiasing

It seems like a weird fix and I have no idea why it works, but I've rebooted mymachine now 6 times without any missing characters, whereas previously at least half the time I'd have the problem.


How do I get the color temperature value of Night Light?

To obtain the value it's set on currently, run this command in the terminal:
gsettings get org.gnome.settings-daemon.plugins.color night-light-temperature

To set it to a specific kelvin value yourself use this example:
gsettings set org.gnome.settings-daemon.plugins.color night-light-temperature 5900

If you want to deal with this on a graphical interface, install the dconf-editor app:
sudo apt install dconf-editor

It may take a little time to get the hang of using its navigation feature.
You need to get to the org.gnome.settings-daemon.plugins.color namespace. Or you can use its search feature to look for "night-light".


Logitech Wireless Keyboard & mouse not working aftesr upgrade to 12.04?

I had the same problem; still do. But my solution now (after other failed ones) is to de-port and then re-port the two USB receivers after the initial daily boot up; then both the wireless mouse and keyboard work fine. A very minor nuisance at worst.

Hope this is helpful to someone.


How can I change the owner of a process?

It's not possible to externally change the user or group of a running process in Linux. What you can do is change the configuration of whatever you're running to use the new user from the next time it runs. That depends on how you have installed and configured PHP (or rather, whatever is running PHP for you - apache, php-fpm, etc.).


font missing in Freelancer game with Wine

arial-unicode-ms.ttf is missing.
Install it in the system or in wine in:
~/.wine/dosdevices/c:/windows/Fonts/


the menu bar (the top bar) turns dark and hard to recognise

Uninstall KDE related things.

Then delete folders gtk-2.0 and gtk-3.0 inside ~/.config:

~/.config/gtk-2.0
~/.config/gtk-3.0

Then to reset Unity run:

dconf reset -f /org/compiz/
setsid unity


The method in AliNa answer if you have VirtualBox, but if you have VMWare Workstation, right click on the VM, choose Power, and then Power On to BIOS.  Once you get the BIOS screen, go to the Boot Tab, and change the Boot order, save and exit.


Key combination to kill the task using the most processor power

I'm not sure about a sysrq combination for this task, but you can use top or htop to find the process using the most CPU and kill it with killall -9 <process>. If it is possible to use a sysrq combination for this, somebody please correct me. For a complete list of sysrq combinations, check out this article:
https://en.wikipedia.org/wiki/Magic_SysRq_key


ZFS doesn't allow me to follow kernels with updates

Looking at your logs I was wondering if Ubuntu has been able to generate the boot files properly, and I was thinking if you have enough space in /boot.
Is /boot a partition or is a directory under root fs?.
Many default Ubuntu installations had small /boot partitions that got full and create problems.
Are you using encryption?.
Another idea is, those Kernels that fail are attempted to install by the updates; can you install one of those kernels manually with apt install?.
Cheers


created my own Desktop Entry specification file and its is working great.. Thanks for the intro

[Desktop Entry]
Value=1.0
Type=Application
Name=MyData
Comment=Storage location of all my data
Icon=system-file-manager
Exec=nautilus /host
Categories=System;FileManager;FileTools


For sure your top/htop doesn't lie, but Chrome is a multi-process/multi-thread application. One process per window and per tab, one for each extension, one for the GPU. Just try ps ax | grep -v grep | grep -i chrome .
The other point is about timing. The time it takes you from a terminal to the web UI of chrome can make the difference. You'd be keeping open both the terminal with htop and the Task manager at the same time.


Question about Kodibuntu auto-login default session location?

I found the answer. The file is located here: ~/.dmrc


How I can completly reinstall VirtualBox 5.1?

You may delete your virtualbox with

sudo apt remove virtualbox

and you may reinstall it from here.


What (input) types of files can avconv convert and to what (output) files?

There is an inbuilt list of codecs supported from the version of avconv you have installed.

In a terminal type

avconv -formats

This will give you a rather long list of supported formats beginning e.g. like below (D allows decoding E also allows encoding):

File formats:
 D. = Demuxing supported
 .E = Muxing supported
 --
  E 3g2             3GP2 format
  E 3gp             3GP format
 D  4xm             4X Technologies format
 D  IFF             IFF format
 D  ISS             Funcom ISS format
 D  MTV             MTV format
 DE RoQ             raw id RoQ format
  E a64             a64 - video for Commodore 64
 D  aac             raw ADTS AAC
 DE ac3             raw AC-3

For more information on codecs, and details on their usage see:

Multimedia Wiki: Video Codecs
Multimedia Wiki: Audio Codecs


What is the purpose of port 1234/TCP running by 'systemd' with process id '1' on Ubuntu 20.04

SOLUTION:
Removed monopd $ sudo apt remove monopd, which removed entry for port 1234 from $ lsof -i ouput.


Pantheon (Elementary Desktop) not loading

You need to install pantheon-shell.

Before installing add these two ppa in your system:

ppa:ricotz/testing

ppa:elementary-os/testing

Note that they are unstable now.


I ended up resolving this as far as I can tell by running sudo dpkg-reconfigure lightdm and selecting lightdm instead of sddm and rebooting.

Then, from the login screen I was able to enter TTY1 via CtrlAltF1 and run sudo dpkg -R sddm.

This seemed to work, as sddm is no longer an option under dpkg-reconfigure lighdm and I've had no issues since with the audio or graphical glitches.


Specific SSH access via IP address range, NOT via subnet

Instead of 192.168.10.60-80 you "might" try 192.168.10.60-192.168.10.80, but from what I've been reading, unfortunately I think you are going to have to list each ip. "*@192.168.10.60 *@192.168.10.61 *@192.168.10.62 *@192.168.10.63" etc.  It could be worse, that's "only" 20 entries, with copy paste it should old take a couple minutes.


Can I uninstall Ubuntu Software-Centre from 18.04?

You can simulate software-center removal to see what will be impacted:

sudo apt -s remove software-center

I don't have it installed so cannot show you what removal would look like.

A simulated install looks like this though:

$ sudo apt -s install software-center
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  apt-xapian-index gir1.2-gmenu-3.0 libxapian-1.3-5 oneconf oneconf-common python-apt
  python-aptdaemon python-aptdaemon.gtk3widgets python-attr python-blinker python-bs4
  python-cffi-backend python-chardet python-cryptography python-cups python-dbus python-debian
  python-debtagshw python-defer python-dirspec python-enum34 python-gi-cairo python-html5lib
  python-httplib2 python-idna python-ipaddress python-jwt python-lxml python-oauthlib python-oneconf
  python-openssl python-pam python-piston-mini-client python-pkg-resources python-pyasn1
  python-pyasn1-modules python-serial python-service-identity python-six python-twisted-bin
  python-twisted-core python-twisted-web python-ubuntu-sso-client python-xapian python-xdg
  python-zope.interface python3-oneconf python3-piston-mini-client python3-xapian1.3
  software-center-aptdaemon-plugins ubuntu-sso-client
Suggested packages:
  xapian-tools python-apt-dbg python-apt-doc python-blinker-doc python-cryptography-doc
  python-cryptography-vectors python-dbus-doc python-dbus-dbg python-enum34-doc python-genshi
  python-crypto python-lxml-dbg python-lxml-doc python-openssl-doc python-openssl-dbg python-pam-dbg
  python-setuptools python-wxgtk3.0 | python-wxgtk python-twisted-bin-dbg python-tk python-glade2
  python-qt3 python-wxgtk3.0 xapian-doc ubuntu-sso-client-gui
The following NEW packages will be installed:
  apt-xapian-index gir1.2-gmenu-3.0 libxapian-1.3-5 oneconf oneconf-common python-apt
  python-aptdaemon python-aptdaemon.gtk3widgets python-attr python-blinker python-bs4
  python-cffi-backend python-chardet python-cryptography python-cups python-dbus python-debian
  python-debtagshw python-defer python-dirspec python-enum34 python-gi-cairo python-html5lib
  python-httplib2 python-idna python-ipaddress python-jwt python-lxml python-oauthlib python-oneconf
  python-openssl python-pam python-piston-mini-client python-pkg-resources python-pyasn1
  python-pyasn1-modules python-serial python-service-identity python-six python-twisted-bin
  python-twisted-core python-twisted-web python-ubuntu-sso-client python-xapian python-xdg
  python-zope.interface python3-oneconf python3-piston-mini-client python3-xapian1.3 software-center
  software-center-aptdaemon-plugins ubuntu-sso-client
0 upgraded, 52 newly installed, 0 to remove and 0 not upgraded.
Inst python-dbus (1.2.0-3 Ubuntu:16.04/xenial [amd64])
Inst python-dirspec (13.10-1ubuntu1 Ubuntu:16.04/xenial [all])
Inst python-httplib2 (0.9.1+dfsg-1 Ubuntu:16.04/xenial [all])
Inst python-blinker (1.3.dfsg2-1build1 Ubuntu:16.04/xenial [all])
Inst python-cffi-backend (1.5.2-1ubuntu1 Ubuntu:16.04/xenial [amd64])
Inst python-enum34 (1.1.2-1 Ubuntu:16.04/xenial [all])
Inst python-idna (2.0-3 Ubuntu:16.04/xenial [all])
Inst python-ipaddress (1.0.16-1 Ubuntu:16.04/xenial [all])
Inst python-pkg-resources (20.7.0-1 Ubuntu:16.04/xenial [all])
Inst python-pyasn1 (0.1.9-1 Ubuntu:16.04/xenial [all])
Inst python-six (1.10.0-3 Ubuntu:16.04/xenial [all])
Inst python-cryptography (1.2.3-1ubuntu0.1 Ubuntu:16.04/xenial-updates, Ubuntu:16.04/xenial-security [amd64])
Inst python-jwt (1.3.0-1ubuntu0.1 Ubuntu:16.04/xenial-updates, Ubuntu:16.04/xenial-security [all])
Inst python-oauthlib (1.0.3-1 Ubuntu:16.04/xenial [all])
Inst python-openssl (0.15.1-2build1 Ubuntu:16.04/xenial [all])
Inst python-twisted-bin (16.0.0-1ubuntu0.2 Ubuntu:16.04/xenial-updates, Ubuntu:16.04/xenial-security [amd64])
Inst python-zope.interface (4.1.3-1build1 Ubuntu:16.04/xenial [amd64])
Inst python-attr (15.2.0-1 Ubuntu:16.04/xenial [all])
Inst python-pyasn1-modules (0.0.7-0.1 Ubuntu:16.04/xenial [all])
Inst python-service-identity (16.0.0-2 Ubuntu:16.04/xenial [all])
Inst python-twisted-core (16.0.0-1ubuntu0.2 Ubuntu:16.04/xenial-updates, Ubuntu:16.04/xenial-security [all])
Inst python-twisted-web (16.0.0-1ubuntu0.2 Ubuntu:16.04/xenial-updates, Ubuntu:16.04/xenial-security [all])
Inst python-ubuntu-sso-client (13.10-0ubuntu11 Ubuntu:16.04/xenial [all])
Inst ubuntu-sso-client (13.10-0ubuntu11 Ubuntu:16.04/xenial [all])
Inst libxapian-1.3-5 (1.3.4-0ubuntu6 Ubuntu:16.04/xenial [amd64])
Inst python3-xapian1.3 (1.3.4-0ubuntu1 Ubuntu:16.04/xenial [amd64])
Inst apt-xapian-index (0.47ubuntu8.4 Ubuntu:16.04/xenial-updates [all])
Inst gir1.2-gmenu-3.0 (3.13.3-6ubuntu3.1 Ubuntu:16.04/xenial-updates [amd64])
Inst python-apt (1.1.0~beta1ubuntu0.16.04.2 Ubuntu:16.04/xenial-updates [amd64])
Inst python-bs4 (4.4.1-1 Ubuntu:16.04/xenial [all])
Inst python-chardet (2.3.0-2 Ubuntu:16.04/xenial [all])
Inst python-cups (1.9.73-0ubuntu2 Ubuntu:16.04/xenial [amd64])
Inst python-debian (0.1.27ubuntu2 Ubuntu:16.04/xenial [all])
Inst python-debtagshw (2.0.1ubuntu6 Ubuntu:16.04/xenial [all])
Inst python-gi-cairo (3.20.0-0ubuntu1 Ubuntu:16.04/xenial [amd64])
Inst python-html5lib (0.999-4 Ubuntu:16.04/xenial [all])
Inst python-lxml (3.5.0-1build1 Ubuntu:16.04/xenial [amd64])
Inst python-pam (0.4.2-13.2ubuntu2 Ubuntu:16.04/xenial [amd64])
Inst python-serial (3.0.1-1 Ubuntu:16.04/xenial [all])
Inst python-xapian (1.2.22-2build1 Ubuntu:16.04/xenial [amd64])
Inst python-xdg (0.25-4 Ubuntu:16.04/xenial [all])
Inst python-piston-mini-client (0.7.5-0ubuntu2 Ubuntu:16.04/xenial [all])
Inst software-center-aptdaemon-plugins (0.1.6build1 Ubuntu:16.04/xenial [all])
Inst python-defer (1.0.6-2build1 Ubuntu:16.04/xenial [all])
Inst python-aptdaemon (1.1.1+bzr982-0ubuntu14 Ubuntu:16.04/xenial [all])
Inst python-aptdaemon.gtk3widgets (1.1.1+bzr982-0ubuntu14 Ubuntu:16.04/xenial [all])
Inst oneconf-common (0.3.9 Ubuntu:16.04/xenial [all])
Inst python3-piston-mini-client (0.7.5-0ubuntu2 Ubuntu:16.04/xenial [all])
Inst python3-oneconf (0.3.9 Ubuntu:16.04/xenial [all])
Inst oneconf (0.3.9 Ubuntu:16.04/xenial [all])
Inst python-oneconf (0.3.9 Ubuntu:16.04/xenial [all])
Inst software-center (16.01+16.04.20160420 Ubuntu:16.04/xenial [all])
Conf python-dbus (1.2.0-3 Ubuntu:16.04/xenial [amd64])
Conf python-dirspec (13.10-1ubuntu1 Ubuntu:16.04/xenial [all])
Conf python-httplib2 (0.9.1+dfsg-1 Ubuntu:16.04/xenial [all])
Conf python-blinker (1.3.dfsg2-1build1 Ubuntu:16.04/xenial [all])
Conf python-cffi-backend (1.5.2-1ubuntu1 Ubuntu:16.04/xenial [amd64])
Conf python-enum34 (1.1.2-1 Ubuntu:16.04/xenial [all])
Conf python-idna (2.0-3 Ubuntu:16.04/xenial [all])
Conf python-ipaddress (1.0.16-1 Ubuntu:16.04/xenial [all])
Conf python-pkg-resources (20.7.0-1 Ubuntu:16.04/xenial [all])
Conf python-pyasn1 (0.1.9-1 Ubuntu:16.04/xenial [all])
Conf python-six (1.10.0-3 Ubuntu:16.04/xenial [all])
Conf python-cryptography (1.2.3-1ubuntu0.1 Ubuntu:16.04/xenial-updates, Ubuntu:16.04/xenial-security [amd64])
Conf python-jwt (1.3.0-1ubuntu0.1 Ubuntu:16.04/xenial-updates, Ubuntu:16.04/xenial-security [all])
Conf python-oauthlib (1.0.3-1 Ubuntu:16.04/xenial [all])
Conf python-openssl (0.15.1-2build1 Ubuntu:16.04/xenial [all])
Conf python-twisted-bin (16.0.0-1ubuntu0.2 Ubuntu:16.04/xenial-updates, Ubuntu:16.04/xenial-security [amd64])
Conf python-zope.interface (4.1.3-1build1 Ubuntu:16.04/xenial [amd64])
Conf python-attr (15.2.0-1 Ubuntu:16.04/xenial [all])
Conf python-pyasn1-modules (0.0.7-0.1 Ubuntu:16.04/xenial [all])
Conf python-service-identity (16.0.0-2 Ubuntu:16.04/xenial [all])
Conf python-twisted-core (16.0.0-1ubuntu0.2 Ubuntu:16.04/xenial-updates, Ubuntu:16.04/xenial-security [all])
Conf python-twisted-web (16.0.0-1ubuntu0.2 Ubuntu:16.04/xenial-updates, Ubuntu:16.04/xenial-security [all])
Conf python-ubuntu-sso-client (13.10-0ubuntu11 Ubuntu:16.04/xenial [all])
Conf ubuntu-sso-client (13.10-0ubuntu11 Ubuntu:16.04/xenial [all])
Conf libxapian-1.3-5 (1.3.4-0ubuntu6 Ubuntu:16.04/xenial [amd64])
Conf python3-xapian1.3 (1.3.4-0ubuntu1 Ubuntu:16.04/xenial [amd64])
Conf apt-xapian-index (0.47ubuntu8.4 Ubuntu:16.04/xenial-updates [all])
Conf gir1.2-gmenu-3.0 (3.13.3-6ubuntu3.1 Ubuntu:16.04/xenial-updates [amd64])
Conf python-apt (1.1.0~beta1ubuntu0.16.04.2 Ubuntu:16.04/xenial-updates [amd64])
Conf python-bs4 (4.4.1-1 Ubuntu:16.04/xenial [all])
Conf python-chardet (2.3.0-2 Ubuntu:16.04/xenial [all])
Conf python-cups (1.9.73-0ubuntu2 Ubuntu:16.04/xenial [amd64])
Conf python-debian (0.1.27ubuntu2 Ubuntu:16.04/xenial [all])
Conf python-debtagshw (2.0.1ubuntu6 Ubuntu:16.04/xenial [all])
Conf python-gi-cairo (3.20.0-0ubuntu1 Ubuntu:16.04/xenial [amd64])
Conf python-html5lib (0.999-4 Ubuntu:16.04/xenial [all])
Conf python-lxml (3.5.0-1build1 Ubuntu:16.04/xenial [amd64])
Conf python-pam (0.4.2-13.2ubuntu2 Ubuntu:16.04/xenial [amd64])
Conf python-serial (3.0.1-1 Ubuntu:16.04/xenial [all])
Conf python-xapian (1.2.22-2build1 Ubuntu:16.04/xenial [amd64])
Conf python-xdg (0.25-4 Ubuntu:16.04/xenial [all])
Conf python-piston-mini-client (0.7.5-0ubuntu2 Ubuntu:16.04/xenial [all])
Conf software-center-aptdaemon-plugins (0.1.6build1 Ubuntu:16.04/xenial [all])
Conf python-defer (1.0.6-2build1 Ubuntu:16.04/xenial [all])
Conf python-aptdaemon (1.1.1+bzr982-0ubuntu14 Ubuntu:16.04/xenial [all])
Conf python-aptdaemon.gtk3widgets (1.1.1+bzr982-0ubuntu14 Ubuntu:16.04/xenial [all])
Conf oneconf-common (0.3.9 Ubuntu:16.04/xenial [all])
Conf python3-piston-mini-client (0.7.5-0ubuntu2 Ubuntu:16.04/xenial [all])
Conf python3-oneconf (0.3.9 Ubuntu:16.04/xenial [all])
Conf oneconf (0.3.9 Ubuntu:16.04/xenial [all])
Conf python-oneconf (0.3.9 Ubuntu:16.04/xenial [all])
Conf software-center (16.01+16.04.20160420 Ubuntu:16.04/xenial [all])

As you can see it has a great number of dependencies. By comparison ubuntu-software has none that would be removed:

$ sudo apt -s remove ubuntu-software
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  ubuntu-software
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Remv ubuntu-software [3.20.5-0ubuntu0.16.04.11]


Microk8s doesn't start without internet access

There has been some discussion on the microk8s github about this issue here : https://github.com/ubuntu/microk8s/issues/1653
Maybe it helps as a solution was proposed there which worked for the issue reporter:

It's working now and I will list out what I did for the benefit of others.
Assuming 192.168.210.32 is your master node IP address.

Run sudo ip route add default via 192.168.210.32 for ALL VM nodes (Worker nodes too otherwise pulling image from local docker registry wouldn't work).
Disable and enable dns in microk8s
Run sudo snap restart microk8s
Remove worker-nodes from cluster and add them back. You should now see Join node with: microk8s 192.168.210.32:25000/JSKjpIGPOcVsJWKrKeoNOGbKdvvYiCiF, notice the IP is now your master node IP (it was the router IP if you have internet connection I think?).
For me, I encountered ImagePullBackErr in the VMs that hasn't assign a hostname to 192.168.210.32. The pull error was fixed once I assigned 192.168.210.32 with the same hostname as the master node VM's. i.e. I append the line 192.168.210.32 master-node to /etc/hosts


getting build dependencies and source by default

To install the build dependencies for foo, run

apt-get build-dep foo

To get the source code, run

apt-get source --download-only foo

Note that this downloads three files into the current directory: a tarball of the source code, a compressed .diff.gz patch file, and a .dsc metadata file. Omit the --download-only option to have the command unpack the source code for you too.

If you'd like this to happen automatically, you could write a wrapper script that automatically calls each of apt-get install, apt-get build-dep, and apt-get source.

If you installing directly from .deb files instead of accessing an APT repository, then you might not be able to do this, because .deb files do not contain source code, or even a link to the source code they were built from.

There is some more information on the apt-get man page.


Is Snappy Core available for Raspberry Pi 3/4?

The rpi3 image will be available very shortly (once the Ubuntu core series 16 images are beeing released).

To keep posted on such announcement, best is to sign up for the snappy mailing list https://developer.ubuntu.com/en/snappy/support/ this is where you will hear the latest on the topic and / or find people to collaborate with on the topic.


From the ScreenCloud github: https://github.com/olav-st/screencloud/issues/8

Instructions here: http://software.opensuse.org/download.html?project=home%3Aolav-st&package=screencloud

tl;dr:

For xUbuntu 13.10 run the following as root:

echo 'deb http://download.opensuse.org/repositories/home:olav-st/xUbuntu_13.10/ /' >> /etc/apt/sources.list.d/screencloud.list
apt-get update
apt-get install screencloud

You can add the repository key to apt like this:

wget http://download.opensuse.org/repositories/home:olav-st/xUbuntu_13.10/Release.key
apt-key add - < Release.key


how to specific volume type on AWS io1 and set provisioned iops via juju deploy with constraints?

First you need to create a new storage pool.

juju create-storage-pool iops ebs volume-type=io1 iops=NNNN

where NNNN is IOPS per GiB. When you have that, you can use:

juju deploy foo --storage bar=iops,50G


From where can I download the source code of the original kernel developed by Linus Torvalds?

kernel.org should have all of the previous versions available, at least since they were being kept in source control.  I'm not sure if it's the very first release, but their site has linux kernel 0.01 (with a timestamp from 1993) available here:

http://www.kernel.org/pub/linux/kernel/Historic/


Well, for what it's worth the issue has now vanished on its own. Not too sure of what changed, most likely that whatever was causing it got fixed by some update, but it's gone. Not really an answer but might as well disclose that my particular issue is no more.


How to repair a hard drive file system used for Samsung smart tv

The fdisk output says that it is an NTFS file system:

/dev/sdc1            2048   976769023   488383488    7  HPFS/NTFS/exFAT

So you don't need linux to correct it, you need windows and run chkdsk /f on the drive. xfs_repair is for the XFS file system and fsck is for most of the linux native file systems. Linux doesn't have proper tools to fix an NTFS file system, since NTFS is not linux native, but Microsoft's proprietary file system.


The MBR is not a plain text file. The only way you will be able to make any sense whatsoever of it would be to use hexdump:

sudo dd if=/dev/sda count=1 | hexdump -C


How do I cd into a directory in the home folder?

cd ~/Downloads

Remember: Linux is case sensitive, so Downloads and downloads are different directories.

~ is a "shortcut" to the home directory. Another one would be $HOME. If you're already in your home directory you can just cd Downloads.


FTP error - Filezilla crash when drag and drop a file

It's caused by a known (now fixed) bug in wxwidgets. Follow the steps & and the issue should be resolved in no time.

First, run the following command (only if curl isn't already installed):

sudo apt-get install curl

(Everything that follows is mandatory) Then issue this command:

curl http://apt.wxwidgets.org/key.asc | sudo apt-key add -

Then go to System Settings > Software Sources > "Other Software" tab > click "Add..." and add the following one after the other (or edit /etc/apt/sources.list file):

deb http://apt.wxwidgets.org/ natty-wx main
deb-src http://apt.wxwidgets.org/ natty-wx main

Then run the following commands one after the other:

sudo apt-get update
sudo apt-get install python-wxgtk2.8 python-wxtools wx2.8-i18n

That's it! You don't even have to restart your PC.

[source: detailed instructions here]


monitor network status for systemd script

The best you can do is use the event-driven statuses already available in the Network Manager.

Create a file NetStatus.x in /etc:

sudo nano /etc/NetStatus.up

Add the following text:

  This is the NetStatus file.  If its name has an extension of "up", it means the network status is up, whereas an extension of "down" means its down. (Duh!)

Edit /etc/NetworkManager/dispatcher.d/01ifupdown and add the bold statements below:

case "$2" in
    up|vpn-up)
        export MODE="start"
        export PHASE="post-up"
        exec run-parts /etc/network/if-up.d
        mv /etc/NetStatus.down /etc/NetStatus.up
        ;;
    down|vpn-down)
        export MODE="stop"
        export PHASE="post-down"
        exec run-parts /etc/network/if-post-down.d
        mv /etc/NetStatus.up /etc/NetStatus.down
        ;;

Modify your own collection script to check for the existence of /etc/NetStatus.up prior to actually start collecting data by the following code snippet:

if [ -e /etc/NetStatus.up ] ; then
  #move your existing collection in here
fi

Why?

A rename is the fastest way of changing a status on any OS, including floppy-based systems and is extremely easy to use.  I've used the above system to have server statuses, backup statuses, calculation statuses from lowly MS-DOS based systems up to super computers.


How can I know the number of bad sectors on my hard drive?

There are two ways to detect bad sectors in Linux: you can use the disk utility (gui), or you can use the badblocks command to check your hard disk for bad sectors:

sudo badblocks -v /dev/{device}

That should answer the question but for anyone else interested in how to mark them it can be done with 2 simple commands...

You add the bad blocks to a file...

sudo badblocks /dev/sdb > {/dir/to/filename}

and then tell fsck to mark these as unusable with ...

sudo fsck -l {/dir/to/filename} /dev/{device}


Set up a serial port with VirtualBox on Ubuntu (guest OS : Windows XP)

Your user is not in the group that has access the serial port. You can either run Virtualbox as root (Not recommended ), or add your user to the group.

sudo usermod -a -G dialout <username>

You might have to logout and login again to make this work.

Cheers


I was able to solve this by adding
Option "AccelMethod" "SNA" and
Option "DRI" "3"
to /etc/X11/xorg.conf
Section "Device"
    Identifier "intel"
    Driver "intel"
    BusID "PCI:0@0:2:0"
    Option "AccelMethod" "SNA"
    Option "DRI" "3"
EndSection


Thanks for comments. I understand it’s hardware problem. The exact same issue happened with me 6 months, it was in warranty so got motherboard changed.
It don’t believe it to be mere coincidence that same happened twice. After repairing it was working fine, until yesterday when i again installed ubuntu.
Just after installation

system temperature went high even when nothing was running.
High rate of battery depletion
Fan running at high speed.

It is sad to say I have to leave using ubuntu and go for another linux distribution or WSL2

can’t afford another laptop
Can’t afford damage after installing ubuntu

I have my own doubts that there is something wrong in linux distribution after May 2020. I was using ubuntu for nearly a year before on current system and heating issue was not there. After may 2020 heating went high even though nothing was running. Yesterday I installed again and paid the cost.


This is a different approach from where you were going with this, but perhaps you could just use python's str.replace() or re.sub() methods to parse out the hexidecimal strings from your text body. i.e.:

If the hex is predictable:

originalText = "\xc3\xa5Test"
filteredText = originalText.replace("\xc3\xa5", "")

Or if you need to match any hex chars with a regular expression:

import re

originalText = "\xc3\xa5Test"
filteredText = re.sub(r'[^\x00-\x7f]', r'', originalText)

More good discussion of this strategy


How can I reset Document Viewer's per-document settings?

You can remove all GVFS attributes, related to evince, for a given file with this script:

file="MyFile.pdf"
while read attribute value; do
    [ "${attribute:0:18}" = "metadata::evince::" ] && \
            gvfs-set-attribute "${file}" -t unset "${attribute:0:-1}"
done < <(gvfs-info "${file}")

You can check the attributes with gvfs-info "${file}"


Add (usb support via) plop boot manager in grub menu - Ubuntu 12.04 . (Console Mode)

This answer is based on tutorial from Ubuntu Greek Community

Now , the procedure is easiest from the Desktop Environment but for you, because you have to interfere with console mode, it will be little more difficult. If you pay attention and follow the steps I believe you will succeed.

Download Plop boot manager via wget

Current version is 5.0.14

wget "download.plop.at/files/bootmngr/plpbt-5.0.14.zip" -O ~/Downloads/plpbt-5.0.14.zip

Extract via 7z. If you don't have the package , install p7zip-full via apt-get.

cd Downloads && 7z e plpbt-5.0.14.zip

copy from Linux folder the two files plpbt.bin and plpcfgbt inside /boot.

sudo cp ~/Downloads/plpbt-5.0.14/Linux/plpbt.bin /boot/
sudo cp ~/Downloads/plpbt-5.0.14/Linux/plpcfgbt /boot/

Now is the difficult part for you (because you haven't graphical environment and I don't know any other way). You have to note down some lines from the /boot/grub/grub.cfg file. The easiest way (IMO) is a mobile HD photo but if you prefer the traditional way, paper and pencil.

Open the file

sudo nano /boot/grub/grub.cfg

find (scroll down with arrow keys) the Ubuntu entry. It will begin like

menuentry 'Ubuntu, with Linux 3.2.0-XX-generic-.....`

Note the 3 lines

insmod ext2
set root='(hdX,msdosX)'
search --no-floppy --fs-uuid --set=root XXXXXXXXXXXXXX

replace X with your actual numbers. Close the file with Ctrl+X

Now open another file where you have to input these lines plus another. Root privileges required here

sudo nano /etc/grub.d/40_custom

at the end of this file add the lines you noted down before plus one more important line

important line is linux16 /boot/plpbt.bin and do not forget the brackets.

An example of the contents inside 40_custom

#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry "Plop Bootmanager" {
insmod ext2
set root='(hdX,msdosX)'
search --no-floppy --fs-uuid --set=root XXXXXXXXXXXXXXXXXXXXX

linux16 /boot/plpbt.bin
}

save the file with Ctrl+X then Y(es) then ENTER

Finally run

sudo update-grub

Plug in your usb flash drive, reboot and select plop boot manager from Grub menu , then select USB.


How to change sound level with visual indication in Unity

You should able to map XF86AudioLowerVolume and XF86AudoRaiseVolume to whatever custom key sequences you wish using the usual keymapping configuation tool, in addition to your already dedicated media keys.  There is no restriction on a unique mapping.

Another possible command line solution is to use xdotool This tool lets you simulate keyboard input using the X11 XTEST extension.  E.g. after installing the package, you should be able to use the commands:

xdotool key XF86AudioLowerVolume

and

xdotool key XF86AudioRaiseVolume

to do what you want.


I am not able to control my Keyboard back light(Asus TUF Gaming Aus Aura RGB)

You can try OpenRGB, I don't have a ROG computer so i don't know if it works, but try it.