You can accomplish that without any external tools, simply by setting kernel variables.

Assuming that you are using IPV4 addresses, to disable ping responses:

sudo echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all

To reenable ping responses:

sudo echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_all

To disable icmp responses permanently, add this line to /etc/sysctl.conf

net.ipv4.icmp_echo_ignore_all = 1

Please don't experiment any further with kernel variables. It can make your system unstable and loose important data.


How to access a machine through VNC using SSH?

I'm a fan of x11vnc. It's a simple VNC server and you won't have to mess around with Gnome settings or 500 firewalls, just install x11vnc on all your computers (with puppet or whatever you're using for mass-control).

Then from your local computer run:

ssh user@host -L 5900:localhost:5900 "x11vnc -display :0 -noxdamage"

Obviously swapping user@host for the username and hostname/IP of the remote computer.

And then use a VNC client of your choice to connect to localhost:5900. The SSH command starts a vnc server on the remote computer and then tunnels back that port over SSH. You don't have to open up any ports (as long as you can already SSH).

If your computers have funny display settings, you might do better to leave off the -display :0 segment in the SSH command. x11vnc will then automatically try to find the right display.

This method is better than just running a VNC server on every machine because you're not going to slow every machine down all the time. It's also considerably less of a security risk as the SSH user is the only person who's going to see the VNC server; always-visible, always-on VNC servers are popular target hacks.


Tried to get OpenGL 4.x to work and now have broken something

I am working on OpenCL with mesa drivers and AMD RX 560. Got the same nasty warning constantly when running any binary.

The issue seems to be that the mention file is not in the repository. I fixed it downloading the file from here: https://cgit.freedesktop.org/mesa/drm/plain/data/amdgpu.ids and copying it at /usr/share/libdrm/amdgpu. My card is missing from that inventory but it does the trick. I know is a bit of a hack but I hope it works for you.

For more information refer to this thread at Phoronix: https://www.phoronix.com/forums/forum/linux-graphics-x-org-drivers/opengl-vulkan-mesa-gallium3d/24959-updated-and-optimized-ubuntu-free-graphics-drivers/page172

Cheers!


Realtek WiFi DRIVER installation (w/o ethernet connection)

Why can't comrade Cosmonaut just supply all available drivers within
the default Kernel - installation ISO?

Because many devices and their Linux drivers were developed and shipped after the date of the Ubuntu versions you reference. RTL8821CE and its suitable Linux driver were not available in April, 2018 or earlier. Moreover, although there is some overlap in terms of contributions to kernel development, Ubuntu, Canonical and Mr. Shuttleworth are not the gatekeepers of the Linux kernel.
Building the driver without a working internet connection is difficult but not impossible. If this is a laptop and you have the option to walk it to a friend's house that has ethernet or else tether your phone, it can be done in three minutes or so. If not, here is how to do it in three hours or so.
If, as I hope, you are planning to install Ubuntu from a DVD or USB, then they both contain the most essential part of the process, a package named, not coincidentally, build-essential. This method, although it is tedious, will work. The list of deb files you need is this (with the exception of bcmwl-kernel-source): https://paste.ubuntu.com/p/GbZ689gYXw/
Browse the USB or DVD drive and look in pool/main/b for build-essential; in pool/main/d for dkms and dpkg-dev; in pool/main/f for fakeroot and so on. Continue until every package on the list I provided is dragged on to the desktop of the new Ubuntu installation. Now let’s install the driver. Please download this file and transfer it to the desktop of the Ubuntu machine: https://github.com/tomaspinho/rtl8821ce/archive/master.zip Right-click it and select 'Extract Here.'
Now, open a terminal and do:
cd ~/Desktop
sudo dpkg -i *.deb
cd rtl8821ce-master
sudo dkms-install.sh
sudo modprobe 8821ce

Your wireless should now be working.


Setting up a dual boot would be the best thing to do in my opinion. You can create an extra partition and install Ubuntu on the new partition without touching your old OS. When you want to remove Ubuntu, you can simply format that partition again. The only thing you'll need is a recovery disk of your old OS to reset the bootloader since Ubuntu will install Grub.

Make sure to backup your data before making new partitions.

More information is in the Ubuntu Documentation Windows Dual Boot wiki.

More information on resetting the bootloader when you remove ubuntu: How to remove Ubuntu and put Windows back on?


I just had the same problem and found the answer.

The reason for the error is that a .list file for the given applications is missing in /var/lib/dpkg/info/. You can either install them again by running

sudo apt-get remove <package name>

and then

sudo apt-get install <package name>

or you can go for a bit more technical approach by making a new file for each package by running

touch <package name>.list

For example that would be

touch clamav-base.list

Source: http://www.vkernel.co.uk/?p=139


How do I check the internet speed inside Ubuntu 14.04

indicator-netspeed works nice

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install indicator-netspeed

You can watch the internet speed in top panel and it takes less space in top panel.


How to connect to QNAP NAS from Ubuntu 16.04 TLS with SMB 3.0 encryption enabled?

I was able to resolve the issue by following the instructions on How to force SMB2 protocol in samba?

However, to understand the issue, the article below helped.
https://richardkok.wordpress.com/2011/02/03/wireshark-determining-a-smb-and-ntlm-version-in-a-windows-environment/


While debugging in Eclipse the UI freezes completely. How can I find out what's going wrong?

There is a good way to debug issues with any local Java app, if you haven't used it before, VisualVM really helps with runaway server processes. It launces as a gui application and attaches to any Java apps running in the same jvm. If Eclipse is locked up doing work this will at least let you know what methods is stuck on.


How to forward ports for X11 on Proxmox to a MV

I solved it using this: https://wiki.iihe.ac.be/Use_X11_forwarding_with_WSL
So it's easy to do. You need to remember to enable all the required ssh config sections and export $DISPLAY on .bashrc if required.


How to permanently fix color emoji (Use Noto Color Emoji in Chrome, Brave Browser, etc) (Ubuntu 20.04)

Every solution I could find either didn't work, or the behavior reverted over time. Finally, I came up with my own. It's worked through reboots and patches for a month, so I wanted to share.

Just run the following command to create a symlink to the noto color emoji files in the current user's ~/.fonts directory.

Don't use sudo:

shopt -s dotglob; mkdir -p ~/.fonts/truetype/noto; ln -s /usr/share/fonts/truetype/noto/* ~/.fonts/truetype/noto


Removing xterm installs gnome-terminal even if mate-terminal is installed

It's not because of x-terminal-emulator as your mate-terminal package provides that. Some packages don't depend on x-terminal-emulator but on some specific terminals.

If you have aptitude installed

aptitude why gnome-terminal

should tell you why gnome-terminal is needed.


Are there any backup utilities for Lubuntu 18.04?

Install Timeshift like this:

sudo apt-add-repository -y ppa:teejee2008/ppa

sudo apt-get update

sudo apt-get install timeshift

Visit this link to learn how to use it or do a search yourself - your call

https://itsfoss.com/backup-restore-linux-timeshift/


How to upgrade a single package using apt-get?

You just need to do apt-get install --only-upgrade <packagename>. This will upgrade only that single package, and only if it is installed.

If you wish to install the package if it doesn't exist, or upgrade it if it does, you may leave out --only-upgrade.


Problem setting up Thunderbird on 14.04.1 install

Answered by OP:

In my home directory I have some links to fairly deep directories. I use the "IMAP Server Directory" option to point to my actual mail. While I haven't confirmed this with tcpdump, when I remove the links, the 31.0 Thunderbird seems to work as expected. When I restore the links, it just hangs as before. So I am guessing that 31.0 Thunderbird doesn't restrict the directory search to the "IMAP Server Directory".

Not ideal, but I can live with the workaround.


How can I manage multiple end-user-style localhost applications?

Juju would be good for this for one major reason, with the local provider each of those applications would be in their own separate LXC container, so they could be isolated amongst themselves.

Juju would handle the management of those services (the starting and the stopping) and the port registration. Most charms allow you to set a config option for which port to listen to so you could keep those nice and managed.

The other plus would be the ability to then push those applications to another machine/cloud when you're done developing them.

A minus would be overhead, do you really need an entire container for your torrent web interface?, etc. But on the other hand if they all share one mysql instance then that might make more sense.

Control port access to other machines on the network would be tricky, the local provider is kind of designed for you to develop these apps from your local machine, and not so much to have other machines on the network access these services, however if you know how to configure LXC networking properly you should be able to do this. See also:

How do I run Juju on a local server?
https://jujucharms.com/docs/stable/clouds-LXD
Juju with KVM and LXC in Ubuntu 14.04 LTS (example of running MediaWiki on your laptop in a form you could deploy to the cloud)


Solved.  Re-installed all of the nfs packages, rpcbind, etc., rebooted, and the NFS shares are now available.


Browse a website from my personal computer as if I were using my server

Thank you for your responses! I was able to make it work by following these instructions to open a SOCKSv5 tunnel and change the Proxy configuration on my alternative browser! It worked like a charm!


Running 64 bit Ubuntu distribution from 32 bit Ubuntu

As far as I know, VirtualBox can do this, but not qemu. Also, you need to have support for this kind of virtual machine enabled by the BIOS, and not all systems come with the option.


I do not know about the cause of your problem, but a work around might be to manually select a mirror

https://launchpad.net/ubuntu/+archivemirrors

Choose one near your with a large bandwidth. Sounds as if almost any mirror will work.

How can I get apt to use a mirror close to me, or choose a faster mirror?


Can't access Samba share from another Linux computer anymore

You could try gathering some more information by - for example - running wpa_supplicant in debug-mode.

First kill the already running process like this:
killall wpa_supplicant

Then run it in debug-mode like this (redirecting output to standard output and to the specified log-file):
wpa_supplicant -iwlan0 -c/etc/wpa_supplicant.conf -d | tee wpa_supplicant.log

You could also use -dd instead of -d for more verbosity.

Of course I'm assuming here wlan0 is your wireless interface and your configuration resides in /etc/wpa_supplicant.conf.


Cannot get VPN connection to work - AUTH: Received control message: AUTH_FAILED

Solved.

As suggested in a comment by Rinzwind, this message indicated the problem:

AUTH: Received control message: AUTH_FAILED

I was simply using the wrong credentials (I had not noticed that I needed to login with my account username and password to get a different VPN username and password).


Ubuntu dropped Qt 3 packages on favor of Qt4. You should install Qt 4 instead:

sudo apt-get install python-qt4


Install the development package libmutter-dev via

sudo apt-get install libmutter-dev

Why? This is why.

% apt-file search meta/prefs.h
libmuffin-dev: /usr/include/muffin/meta/prefs.h
libmutter-dev: /usr/include/mutter/meta/prefs.h

and because we talking about mutter

mutter/src/core/core.c

libmutter-dev is correct.


Remove mail menu from indicator-messages

You just need to remove the Thunderbird file from /usr/share/indicators/messages/applications.


It's not in /, it's in your current working directory when  you run the command. All directories have an implied . directory in them, which references the directory itself.

Thus, ./bootstrap.sh is in your working directory.

It's purpose is as described, to "download and install the dependencies".

You should be able to find it where the Readme file is or somewhere else in the file you downloaded (and maybe extracted).


Are the source(s) of update for Ubuntu 14.04 and Ubuntu GNOME 14.04 different or the same?

Yes. The exact same repositories are used for both. I believe that's one of the requirements for official flavours for Ubuntu, and Ubuntu GNOME is an official flavour.

  I know updates regarding that of GNOME won't be found on Ubuntu 14.04

If an update from GNOME upstream reaches Ubuntu, it will available for both Ubuntu and Ubuntu GNOME. But such updates are rare for LTS releases.


You're describing pinning. Checkout that wiki article.


Where are I/O schedulers set permanently? Kubuntu 20.04.1 64 bit

You should use udev rule for that.

/etc/udev/rules.d/60-schedulers.rules

ACTION=="add|change", KERNEL=="sda", ATTR{queue/scheduler}="deadline"


From your experience with vimtutor, it looks like you have the basic version of vim installed (vim-tiny). It is just a step above the old school vi in the evilutionary ladder, so try installing a more feature-complete version:

sudo apt-get install vim

Or, to get GVim as well:

sudo apt-get install vim-gnome

And do remember to call vim instead of vi. If you still can't see the status indicator, enable showmode:

:set showmode


How to check what devices are conncted to serial port

type in terminal "hwinfo --short"
It might tell you to run "sudo apt install hwinfo" Do that its small.
Here the last returning line says"/dev/ttyUSB0  Prolific PL2303 Serial Port" telling me my usb serial port is /dev/ttyUSB0. It tells you everything about everything including its name and port that is connected to your system.


Having problems with installing curl (and other packages) on lubuntu

The command you are using for installing curl is correct. Please try to disable all other non-standard repositories for 20.10 and then try sudo apt update and sudo apt install curl.


Connecting to the internet and installing MATE via terminal

Since you just installed it today why not just install MATE Ubuntu from scratch? Ubuntu MATE Remix

Other non-Unity options: LXDE, XFCE, Gnome, or Cinnamon


How do I make a custom launcher for terminal applications?

Custom launchers for terminal applications can be used, which can be very useful for applications such as irssi and mutt.

The thing to remember is that you’ll want to specify a different window manager class for the terminal using the --class argument, otherwise after you start your application via the Launcher, it will show up with all your other terminals and you can’t use a superkey keyboard shortcut with it.

For example, to create a launcher to login to another server, you can use something like the following for a .desktop file (see above for how to get this into the Launcher):

[Desktop Entry]
Version=1.0
Name=My Server
Comment=Login to my server
Exec=gnome-terminal --disable-factory --sm-client-disable --class=MyServer -x ssh -t myserver.example.com
StartupWMClass=MyServer
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=utilities-terminal
StartupNotify=true

After you've created this .desktop file (you can name it something like myserver.desktop) you can just drag and drop it onto your launcher.

Adapted from:

http://penguindroppings.wordpress.com/2011/04/08/unity-and-me/

Here's an example of how I made it for my personal servers at home:

[Desktop Entry]
Version=1.0
Name=Remote Servers
Comment=Login to my servers
Exec=gnome-terminal --disable-factory --sm-client-disable --class=remoteserver
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=utilities-terminal
StartupNotify=true
StartupWMClass=RemoteServers
X-Ayatana-Desktop-Shortcuts=Server1;Server2;Server3;

[Server1 Shortcut Group]
Name=SSH into bondigas.local
Exec=gnome-terminal --disable-factory --sm-client-disable  --class=remoteserver -x ssh -t bondigas.local
TargetEnvironment=Unity

[Server2 Shortcut Group]
Name=SSH into xbmc.local
Exec=gnome-terminal --disable-factory --sm-client-disable --class=remoteserver -x ssh -t xbmc.local
TargetEnvironment=Unity

[Server3 Shortcut Group]
Name=SSH into miggytop.local
Exec=gnome-terminal --disable-factory --sm-client-disable --class=remoteserver -x ssh -t miggytop.local
TargetEnvironment=Unity

Which ends up with this:


"Wifi Disabled by Hardware Switch" - Ubuntu 14.04.3 - Acer Aspire ES1-521

I have solved purchasing a wifi external adapter (in my case a MediaTek 802.11 n WLAN), and totally disable the internal wireless card.

I have tried this with Ubuntu 16.04, but I think that it's the same with previous versions.

Try following this steps:

1) Open a terminal window.

2) Digit:sudo gedit /etc/modprobe.d/blacklist.conf

3) In gedit editor, scroll up to last line, press enter and add this line: blacklist ath9k

4) Save the file and restart ubuntu, (take care the wifi adapter connected to the pc at restart).

I hope this help you to resolve with this workaround. Good Luck.


I cannot open any GUI application after do 'apt-get remove gnome*' - what can I do?

These errors are normal, as much as you'd think they are problems with the program, or the GTK. Ignore them.


How to make snaps access hidden files and folders in ~/home?

The Snap 'home' interface permits access only to non-hidden files and directories in a user's /home.

The Snap 'personal-files' interface permits access to all files and directories in a user's /home.

Snap interfaces are defined in the yaml file used in snap creation.
The personal-files interface requires an additional $snap connect foo:foo-connect. The home interface does not, which makes it more convenient for some uses.


I've managed to fix the issue!

For some reason, apt-get update wasn't getting aware of the new security packages (although Ubuntu security repository is correctly listed in my sources.list).

What I had to do was to manually download the following deb files, and then install them manually.

List of packages I had to download and install

64 Bit

openssl: http://security.ubuntu.com/ubuntu/pool/main/o/openssl/openssl_1.0.1-4ubuntu5.12_amd64.deb
libssl1.0.0: http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.0.0_1.0.1-4ubuntu5.12_amd64.deb
libssl-dev: http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl-dev_1.0.1-4ubuntu5.12_amd64.deb

32 Bit

http://security.ubuntu.com/ubuntu/pool/main/o/openssl/openssl_1.0.1-4ubuntu5.12_i386.deb
http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl-dev_1.0.1c-3ubuntu2.7_i386.deb
http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.0.0_1.0.1c-3ubuntu2.7_i386.deb

The following command will install a manually downloaded deb package:

sudo dpkg -i package_name.deb

After installing all the 3 packages and rebooting the server, the problem is now fixed!

(Output of http://filippo.io/Heartbleed/.)


Pictures don't show up in Facebook if I use Ubuntu

go to Account Settings/Security Settings/Secure Browsing and uncheck this option: "Browse Facebook on a secure connection (https) when possible". Then save changes and restart Facebook. It worked for me and I had the same issue.


How to change the default audio in Wine to Alsa only

I am aware that wine has just undergone a complete rewrite of the audio system and maybe winetricks could still help with your question...

In a terminal run

winetricks


iptables and expressing your IP address to the rules dynamically

If you are forced to use dynamic ip.

You can use MAC based filtering in iptables, like this:

iptables -A INPUT -m mac --mac-source 5E:D9:83:B6:61:8A -j DROP


Chrome -- Youtube videos upscaling pixelation

I had the exact same problem. Check chrome://gpu you'll probably find that hardware acceleration is unavailable. It might be the case you're missing some drivers or WebGL but in my case, my graphics card was blacklisted, so enabling "Override software rendering list" chrome flag (chrome://flags) worked.


You clearly have the correct driver:

driver=ath10k_pci

What you do not have is the required firmware:

loading /lib/firmware/ath10k/QCA6174/hw3.0/firmware-4.bin failed with
error -22

Let’s see if an update will get the required firmware. With a working internet connection, open a terminal and do:
sudo apt update
sudo apt -y upgrade

Reboot and show us:
dmesg | grep ath

If the firmware is still missing, do:
wget http://mirrors.kernel.org/ubuntu/pool/main/l/linux-firmware/linux-firmware_1.190_all.deb
sudo dpkg i linux-firmware*.deb

Reboot. You should be all set.
EDIT: I notice that the board-2.bin file has just recently been updated: https://github.com/kvalo/ath10k-firmware/blob/master/QCA6174/hw3.0/board-2.bin
Let’s back up your current file and download the newest:
cd /usr/lib/firmware/ath10k/QCA6174/hw3.0
sudo mv board-2.bin  board-2.bak
sudo wget https://github.com/kvalo/ath10k-firmware/raw/master/QCA6174/hw3.0/board-2.bin
sudo modprobe -r ath10k_pci
sudo modprobe ath10k_pci
sudo dmesg | grep ath

Is there any improvement?


has anyone successfully configured FlashPAP app in 2004

SOLVED
It appears that my issue was NOT having required javafx files. Once I got to the bottom of that, my FlashPAP.jar file worked as designed.
OPs...you can delete/archive this question as you see fit. Thanks.
GordK


Installing 32 bit App Inventor 2 on 64 bit Lubuntu 15.10

Based on the error message of socket.error: [Errno 98] Address already in use in your error log output above, the problem is that something is binding already to port 8004 on the system.

Based on your netstat output in your comment above, something is already listening on port 8004 on localhost (aka 127.0.0.1), and that something is aiStarter.  My guess is the application is already running; it may be configured such that it loads at boot or loaded right after installation.  It may also be the case that this is a temporary thing and when you reboot or log off you'll have to run the command to execute aiStarter again.

The second problem you have is that you're missing a lot of libraries - including the 32-bit version of libstdc++.  My guess is you'll need a lot of libraries, so lets go ahead and install build-essential.  This pulls in a lot more than just libstdc++, but it may help resolve a majority of the 'missing library' issues you're going to be seeing.


In my experience I installed Windows 8 first, then installed Ubuntu 13.04 (raring) and using GRUB I was able to boot to both operating systems. If the case is that you were able to boot to both previously using an older version of Ubuntu then I suppose you could install a previous version and upgrade via the update manager in the Linux OS.

If you wish to access your Windows partition then you could load the Windows 8 disc and use the CMD to recover the boot manager:

bootrec /fixmbr

and

bootrec /fixboot

But your best bet is to install Ubuntu altering the partitions as you install so that you can set the mount point to / in the hope that GRUB loads there and allows access to both OS's/


Running these:

sudo apt-get update
sudo apt-get install unity-2d
sudo apt-get install ubuntu-desktop
sudo apt-get install ubuntu-desktop-2d
sudo apt-get install compizconfig-settings-manager
sudo apt-get install xserver-xgl
sudo apt-get install emerald
sudo apt-get install compiz-fusion-plugins-extra
sudo apt-get install git compiz-plugins-extra
sudo apt-get install compiz-plugins-extra
sudo apt-get install unity

and rebooting should solve it, as it should put the extra bits back in.


I solved my 2 problems
1) for brightness ,use xbacklight
2) Wifi , Ralink Wifi driver installed.

But the screen sharpess seems to be less for ubuntu..
Any idea How to increase sharpness of screen?


Remove one Ubuntu installation using another

So, you have Ubuntu A and Ubuntu B. Let's say you boot up in Ubuntu A that you want to keep.

Open GParted, unmount partition with Ubuntu B then select swap partition of Ubuntu B (if any), right-click on it and choose swapoff. Swapoff is important, so don't miss it. Select partition with Ubuntu B and delete that partition. Apply changes.

Open a Terminal window and type:

sudo update-grub

Close Terminal and reboot. After restart, only one Ubuntu (ex-A) should appear in the boot menu.


Sound coming out from speaker and headphone on an Acer Aspire One Model 722

This issue has been resolved following the fixes on http://ubuntuforums.org/showthread.php?t=1811178


How to make a disk image and restore to another, the hardware between the servers are the same

You can use CloneZilla or ghost for Linux G4L.

I advise you to use CloneZilla: It's cloning software similar to True Image and Norton Ghost, and you don't really should care about mountings and such things since you'll not need to do so when a cone success.

CloneZilla has one limitation that it can't clone larger to smaller disk easily but since you have the same hardware and same size of storage, there will be no problems.


How to enable and create multiple workspaces in ubuntu 15.04

First you have to enable workspaces in Ubuntu 15.04. To do this:

Click the icon at the very right of the menu bar and select System Settings.
In the Personal section, click Appearance and select the Behavior tab.
Tick the Enable workspaces check box.

Now you can open the Launcher and click the workspace switcher icon near the bottom. By default, Ubuntu shows 4 workspaces, arranged in 2 rows and 2 columns.

If you want to add more workspaces, you can install and use Unity Tweek Tool to add additional workspaces.


Subversion 1.11 is not in Ubuntu yet.

You can give a look at the available PPAs but you may have to install 1.11 by hand if you need this version.


I'm installing graphics card drivers, and it's telling me to install these things, but i have NO idea what exactly it is actually telling me to do!

fglrx is actually available from apt-get.

First of all, you need to enable the restricted repository if it is not already enabled. Click here for more info.

To install fglrx, run the following commands:

sudo apt-get update
sudo apt-get install fglrx

For future reference:

To search for stuff available through apt-get, run the following commands:

sudo apt-get update
apt-cache search fglrx

to narrow the results, use grep like this:

apt-cache search fglrx | grep fglrx

Additionally, you can search for available proprietary drivers through the software center. Click here for more info.

Finally, if you insist on installing the downloaded drivers, you will need to run the following commands to install the needed packages:

sudo apt-get update
sudo apt-get install build-essential linux-headers-generic


It seems this may already have a kernel available and should be included in 4.5 kernel as well:

http://bugzilla.kernel.org/show_bug.cgi?id=108581

You may be able to install using usb mouse + Ubuntu 15.10 and then apply the kernel available via comment #24 of the link (assuming that its a UX305CA). You would then need to continue using that kernel for use of the touchpad.

Ubuntu 16.04 for instance will ship with 4.4 kernel so even for that you'd have a problem for install. Possibly 16.10 will finally make things easier that way here or possibly something like 16.04.1 if it includes kernel update.


NVIDIA GPU1 AMD GPU2. Cant get both drivers to work together on ubuntu 16.04

Assuming no drivers installed and no GPUs installed in computer
Add AMD GPU to computer, launch Ubuntu
Install amdgpu-pro driver
Install nvidia driver (for example via sudo apt install nvidia-384)
Shutdown computer
Add NVidia card to computer, launch Ubuntu
Switch to console mode via Ctrl+Alt+F1
sudo nvidia-xconfig
sudo nano /etc/X11/xorg.conf
Comment or delete all lines except Monitor, Device and Screen sections (edit under root). Example result:

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

lspci | egrep -h "VGA|3D controller" - remember identifiers at the beginning of each line:

01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Hawaii XT [Radeon R9 290X] (rev 80)
02:00.0 VGA compatible controller: NVIDIA Corporation GK110 [GeForce GTX TITAN] (rev a1)

sudo nano /etc/X11/xorg.conf and use these identifiers:

Section "Monitor"
    ... no changes ...
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BusId          "PCI:2@0:0:0" # Add this line (identifier 2 taken from lspci output on the previous step)
EndSection

# Add similar section for AMD card:
Section "Device"
    Identifier     "Device1"
    Driver         "amdgpu"
    BusId          "PCI:1@0:0:0" # Identifier 1 taken from lspci output
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"     # This identifier should be from the GPU device connected to display (you need NVidia, so it is Device0)
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Shutdown
Connect display to NVidia card
Launch Ubuntu - everything should work

If it doesn’t work - please provide output of lspci | egrep -h "VGA|3D controller", your /etc/X11/xorg.conf and /var/log/Xorg.0.log.

P.S. somebody please guide me how to properly "post" this answer for these similar questions:

Mixing AMD and Nvidia graphics cards in Ubuntu
How do I get both an AMD and NVidia GPU to not crash lightdm or hang on startup?
Setting up CUDA on NVIDIA and AMD GPU system, starting lightdm removes nvidia binaries
Using both nvidia and amd gpu in the same machine


For outgoing connections, e.g.:

sudo iptables -I OUTPUT -p tcp -m tcp --dport 22 -m state --state NEW,ESTABLISHED -j LOG --log-prefix "Outgoing SSH connection "

Check the log entries:

less /var/log/kern.log

If you reboot, your iptables configuration disappears. Save your configuration with:

sudo iptables-save > /etc/iptables.rules
sudo nano /etc/NetworkManager/dispatcher.d/01firewall

Paste this script:

if [ -x /usr/bin/logger ]; then
        LOGGER="/usr/bin/logger -s -p daemon.info -t FirewallHandler"
else
        LOGGER=echo
fi

case "$2" in
        up)
                if [ ! -r /etc/iptables.rules ]; then
                        ${LOGGER} "No iptables rules exist to restore."
                        return
                fi
                if [ ! -x /sbin/iptables-restore ]; then
                        ${LOGGER} "No program exists to restore iptables rules."
                        return
                fi
                ${LOGGER} "Restoring iptables rules"
                /sbin/iptables-restore -c < /etc/iptables.rules
                ;;
        down)
                if [ ! -x /sbin/iptables-save ]; then
                        ${LOGGER} "No program exists to save iptables rules."
                        return
                fi
                ${LOGGER} "Saving iptables rules."
                /sbin/iptables-save -c > /etc/iptables.rules
                ;;
        *)
                ;;
esac

and make it executable:

sudo chmod +x /etc/NetworkManager/dispatcher.d/01firewall

More infos about Logging and Configuration on Startup for NetworkManager.


Upgrading to a no longer supported version

Try changing your /etc/apt/sources.list to point to the old repositories.

Make a backup of sources:

sudo cp -v /etc/apt/sources.{list,backup}

Change sources.list

sudo sed -i 's/us.archive/old-releases/' /etc/apt/sources.list

Then run

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

Then run

sudo do-release-upgrade


I can't unmask a service on Kubuntu Wily 15.10

Check if you have a symlink /etc/systemd/system/cryptdisks.service or /lib/systemd/system/cryptdisks.service to /dev/null. If so, delete the symlink manually.

And also for cryptdisks-early.service.

After that:

sudo apt-get remove cryptsetup
sudo apt-get install cryptsetup


I experienced what I can only describe as jittering when I had my screen refresh rate too low. If you open "displays" in settings, make sure your monitor refresh rate is somewhere like 60Hz. Mine was set to 25 initially.


Do flavors other than the standard Gnome Ubuntu 20.10 support Raspberry Pi on the desktop?

Look up https://github.com/wimpysworld/desktopify which allows you to add whichever Ubuntu flavor you like on top of the Ubuntu Server image.
Desktopify does more than just add the desktop (allowing for some differences in the pi to amd64 boxes, plus desktop versus server).

Put an Ubuntu Server image for Raspberry Pi on a SDHC card.
Boot the Ubuntu Server SDHC on a Raspberry Pi 2, 3 or 4.
Login to the Raspberry Pi; username ubuntu and password ubuntu
    You will be prompted to change the password
Clone the project
    git clone https://github.com/wimpysworld/desktopify.git
Change your current directory to desktopify directory
    cd desktopify
Convert the server to a desktop
    sudo ./desktopify --de ubuntu-mate

Ubuntu-MATE do have an image (just released).
Please note sddm has an issue with some pi's (used by Kubuntu & Lubuntu) which desktopify currently doesn't cater for.  It's a known issue.


How to make Banshee to play AAC audio streams?

I had to install the "GStreamer plugin for aac" in the "Ubuntu Software Center"


Why I am taken to grub4dos when selecting Ubuntu from the windows boatloader menu?

For understanding what is going on and repairing your boot problem
see Dual boot Windows 7 and Linux.

Easybcd uses Windows 7 bootmgr to chainload grub4dos to chainload GRUB which is overkill. Bootmgr can chainload GRUB directly as well the other way around - GRUB can chainload almost any foreign boot manager.


I can not connect to the Internet with cable and login window

I have encountered this problem in many hotels where the hotel login is not Linux-friendly (I despise them for trying to make a quick buck out of selling an internet connection but this is for another discussion). To overcome this as a temporary measure, connect your cellphone to your computer and establish an Ethernet connection. Login to the network with your cellphone. You should then have a connection. Then do as @user535733 suggests.


Restoring full backup to Ubuntu Server with rsync

If you restored /etc, then you over-wrote /etc/fstab, and this will prevent your system from booting, because it points to the partitions on the system's hard drives.

There are numerous questions on this site about how to fix fstab from a live session. Or you could just not restore it, if you reinstalled already.


Bypass Thunderbird to open Gmail directly

There are seven Gmail integration apps in the default Ubuntu 16.04 repositories.

Gmail (unity-webapps-gmail) discontinued in 18.04

Gmail Webapp for Unity
Gmail Notify (gmail-notify)

Notify the arrival of new mail on Gmail
Gnome Gmail (gnome-gmail)

GNOME Gmail integrates the Gmail web interface into the GNOME environment. Once installed, Gmail becomes a choice as the default Mail Reader in the GNOME Preferred Applications administration application. When selected, a Gmail webpage will be used whenever an email service is requested.
CheckGMail (checkgmail)

CheckGmail is a system tray application that checks a Gmail account for new mail. When new mail is present the tray icon changes, an optional animated popup is displayed and a tooltip displays the number and details of new messages. Configuration is GUI-based and the application is designed to be simple, elegant and unobtrusive.
Webmail for Linux Desktops (desktop-webmail)

Provides a generic mailto: handler and webmail config dialog that
lets the user choose his preferred webmail provider on first run
and through the desktops Preferences-> Webmail facility.
Unity Mail (unity-mail)

Unity Mail is an application that integrates your mail into the Unity, MATE, Xfce, LXDE and other environments. It displays notifications about incoming mail, shows the number of unread messages and displays subjects in the Messaging Menu. The Launcher item also has a quicklist that provides quick access to your mail folders (configured for Gmail by default). It also allows you to quickly compose a new message.
KGmailNotifier (kgmailnotifier) discontinued in 18.04

Gmail notifier applet for the KDE Plasma Workspace. When a new mail has arrived in your inbox a small window will pop up, showing author and subject of the newest mail. The underlined link will take you right to your inbox (using your preferred browser).


Unable to run .sh script for cron task. Changing background image

Found the solution. I used the following script.

PID=$(pgrep gnome-session)
export DBUS_SESSION_BUS_ADDRESS=$(grep -z DBUS_SESSION_BUS_ADDRESS /proc/$PID/environ|cut -d= -f2-)
gsettings set org.gnome.desktop.background picture-uri "file:///home/mark/Pictures/Wallpapers/CAP.jpg"

However, the issue was in my cron file. I was using the line

***** root sh /home/mark/scripts/desktop.sh

when it should have been

***** mark sh /home/mark/scripts/desktop.sh

When I ran the script in cron with my own privileges, then I was able to run the script in cron successfully.


How can I successfully install Ubuntu 16.04.2 on a DELL inspiron 5565 which has Windows 10 preinstalled?

I would go ahead as follows: (I have done so before)
1. shrink the Windows 10 partition, using Windows own partition resizer
- Open explorer
- right-click on 'This PC', choose 'Manage'
- under the Storage section, click on 'Disk Management'
- right-click on your C: partition, choose 'Shrink'
- Open up the space you need for Ubuntu. I would say, 30 GB at least.
- after that is finished, shut down the PC.
2. Boot the PC with a Ubuntu DVD from an ISO or a bootable USB-stick
- choose install, Ubuntu will detect the HD partitioning
- choose to install side-by-side, in the space available
- simply let Ubuntu do it's thing.
After install and a reboot, you'll end up in GRUB, and the choice.
(Part 1 I could reproduce, Part 2 comes from memory) I have done it several times, with different flavors of Ubuntu/Linux, and it always turned out fine. I offer NO guarantees ;-)
Good Luck!


Where does Steam store its .desktop files on Ubuntu?

I know an answer has already be accepted but it doesn't seem to apply in all cases. On my machine, it doesn't.

There is no folder Steam in ~/.local on my computer. Instead, Steam stores its desktop files in the folder ~/.local/share/applications which is commonly used for this purpose. Any files in this folder automatically show up in the dash and can be added to the launcher by finding them via the dash and then dragging them over to the launcher. They can be moved around by long-clicking then then dragging and dropping them. Having to long-click first can be substituted by dragging them to the right which is slightly faster to do.

In that folder, there (among others) is the file Team Fortress 2.desktop containing this:

[Desktop Entry]
Name=Team Fortress 2
Comment=Play this game on Steam
Exec=steam steam://rungameid/440
Icon=steam_icon_440
Terminal=false
Type=Application
Categories=Game;

Quite evidently a desktop file created by Steam.


Can juju deploy charms to an EC2 instance of Windows Server?

Juju currently only deploys Ubuntu instances. On the client side, you can have an Ubuntu machine or an OSX machine. The client is Python so theoretically you can get it running on Windows, but I don't think anyone's tried that.

Even then Juju doesn't really deploy on a working instance that you already have running, it provisions a totally new instance. So you don't need to create an ubuntu instance on EC2 in order to bootstrap and deploy, Juju does all that automatically when you issue a "juju deploy" command.

I'll map this out for you by command, assuming your laptop or desktop is configured to use EC2:

juju bootstrap

This fires off an instance in EC2 to get started. You don't manually go into the AWS console or fire up an instance or install Ubuntu or anything like that, you just need to wait for AWS/Juju to do all that for you (takes about 6 minutes).

juju deploy mysql

This will fire off another EC2 instance; again, everything is automated, you're not launching anything ahead of time, as far as we're concerned you want mysql, so AWS/Juju will install Ubuntu server for you from the latest images (no need to specify AMI or anything), and then install and configure MySQL.

The idea behind Juju is to not have to do any of the manual things like hunting around for AMIs or going into the AWS console, you just ask what service you want and it'll snag the rest for you.


I have found the command, because now the graphic manager is not Lightdm or KDM anymore.
The new graphic manager is SDDM and the command to stop it is:

sudo systemctl stop sddm.service


Ok, so I think it has to do with either BIOS, Partition or Both. Try going onto bios setup (it says it when you boot, E.G. F2) Go into that HDD and make sure it says 'on'. Make sure to have GParted installed first, then open GParted and go into the Broken HDD and click 'Add Partition' It's up to you what file system you want to do. I reccomend Ext4 because Linux uses that. Hope I helped!


Boot a ubuntu live cd,open a terminal and run the following

sudo e2fsck -C0 -p -f -v /dev/sda5
sudo e2fsck -C0 -p -f -v /dev/sda8

Note:
Running e2fsck will help you,if not we want to re-install grub.Return back if it din help you.


Black Screen after login, gnome shell overwriting existing binding

Turns out this was caused by fcitx. It and gnome-shell were apparently switching things back and forth, causing the freeze. I uninstalled fcitx and am using ibus now.


Query mysql return an error Incorrect key file for table

According to google - this error is often related to not enough disk space left on the drive your temporary directory is located on.
You can check it with df -h


svn post- and pre- commit hooks don't work when subversion gets commited

First off, you're missing the shebang line; the first line should read #!/usr/bin/env bash or #!/bin/bash

Second, you're making assumptions on what the current working directory will be when the hook is run, so if it manages to run the script even though it's missing the important shebang line, it likely works, but writes datefile in a different directory than you assumed. Provide an absolute path to the file you want to write to.

Lastly, ${filename} is bad practice, you should always quote variable expansions to avoid word splitting and pathname expansion: "$filename". Also, instead of doing date | cut ..., just tell date to only output the bits you're after. E.g.

printf 'Commit happened at %s\n' "$(date "+%Y-%m-%d %H:%M:%S")" > "$filename"

On a side note, bash's printf (since 4.0) can output date strings too.

printf 'Commit happened at %(%Y-%m-%d %H:%M:%S)T\n' -1 > "$filename"

man bash | less +/printf to read more about printf.


Wine Application doesn't register mouse input

I know it's been 5 months by now, but just in case you haven't managed to solve it yet: I've wrestled with this problem for the past week or so and I did a bunch of things that might or might not have helped, but what ultimately solved the issue was to use winecfg to change the Windows version to Windows 7.


Terminal states ipython not installed despite being installed

Try sudo apt-get install ipython. I think the pip command is for python itself (installing module, etc.) and not for installing a system program, just speculation,not sure of it.

Maybe try

python ipython

Or python then import ipython or ipython


It is a 64bit system. Using the designation x86 only for 32bit architectures is not quite correct. There are x86 processors with 64bit architecture. More precisely there are two different architectures designated as x64: the Intel x86 with 64bit and the AMD64.

See also:

My processor is 64-bit - does that mean I need the amd64 image?


Will Office Home & Student 2019 work on Ubuntu + QEMU?

There is a simple way to know before paying. Download a trail version of Office 365, and check if it works. Since Windows 10 is working, I see no reason why Office would not work.
However, you can also look for alternatives

Microsoft Office Online is available for free. It allows to view as well as edit and save files. You can create a shortcut and use it as a standalone web app.

Some FOSS alternatives like OnlyOffice have a high compatibility with Microsoft office files. For example, it correctly shows annotations made with a stylus, which LibreOffice cannot show.


Is virtuoso-t restarting indexing after every boot?

As for my experiene - virtuoso-t takes so much cpu only until it index all the files. Once it happened - it behaves calmly. I suggest You to leave Your computer turned on for the night.

Also You might control the memory used by virtuoso-t.

And finally You coould have it broken. I suggest You remove Your local database then (it has some confings - and maybe they have gone made). For that I'd suggest You to remove all nepomuk related folders in ~/.kde.


Try this:

sudo -i
apt-get update
apt-get install exfat-utils exfat-fuse


Is there an easier or more 'correct' way to open gedit as root?

Use gksudo gedit.

gksudo is the equivalent of sudo for graphical programs, which are not safe to run using sudo.


Ok, I just redid some of the things that I have listed above as not solving the problem and it went away - no idea why. Here is what I redid:

Reinstalled Firefox again through Synaptic - not with the button for reisntallation, but instead removed it completely and then installed it (probably no difference). I left my user files as they were, so it loaded all my extensions and options when I started it for the first time.

Afterwards, I set permissions with sudo chmod 755 /BHDD (which was around the 4th or 5th time of me doing it).

Then finally, I changed the ownership again with chown -R useername:username /BHDD and also chown -hR useername:username /BHDD. (I had also done these a few times).

Next, I opened Firefox and I could download stuff wherever I wanted. Black magic.


Lemp stack nginx web server 502 Gateway error

First of all I want to be sure you have a firewall set up(if you are under a NAT that should do), because hosting a public web server at home can lead to some nasty security issues, so be sure no one from outside your LAN can have direct access to it.

I'm not sure which original index file you are referring to (because they might be more than one) but I guess this is the one you are looking for.

The problem I guess happened was that nginx expected a index.html and you provided a index.php. You may be able to change this in nginx's config file

If, however, this happened because of permission issues take a look at this answer here.


Can I install Unity aside with XFCE and switch them as I want?

you can install a desktop interface for example gnome3 like so

sudo apt-get install gnome-shell

and you can choose it from the login screen which desktop interface you want to use.

to install unity search for unity in the software-center
or run this in the gnome-terminal

sudo apt-get install unity


Wlan driver fails to auto-load in Xubuntu 14.04

Add wl to /etc/modules. The top of /etc/modules says:

# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.


First thing to do, 100%, is to back up your machine using something like CloneZilla. This will create a complete clone of your hard drive, including all boot partitions and stuff. In the long run, you'll likely hugely appreciate doing this, as your CNC router table will continue to function.

After that, sure, you should just be able to boot from the Debian ISO and choose the partition that Ubuntu lives on. You might need to delete some partitioning if bits of it were separated out at installation, in which instance you need to be careful not to delete the Windows boot manager. If you delete the GRUB loader, that's fine, you can replace it and add Windows to it later without any complications.

After that, if anything does go wrong, CloneZilla will come to the rescue and restore the machine to its exact state before the upgrade.


Info-Center and kded4 show different versions

KDE Neon is based on KDE 5; what Info-Center is showing are the version numbers for KDE 5.
Along the way you have installed a program depending on KDE 4 that has of course different version numbers for qt,...


How to determine where biggest files/directories on my system are stored?

The Disk Usage Analyzer is available under Ubuntu > Accessories > Disk Usage Analyzer. It provides you with a snazzy pie graph showing what files and folders take up the most space:

The documentation on it is a little sparse, but you can find more information on the Ubuntu wiki, and the project page.

If you're interested in using the command line, there's du which is described here.


Rename multiple files sequentially and starting by the same prefix

Try:

count=0; for f in *; do [ -f "$f" ] && mv -i "$f" "cin_$((++count)).${f##*.}"; done

Or, if you prefer your commands spread over multiple lines:

count=0
for f in *
do
    [ -f "$f" ] && mv -i "$f" "cin_$((++count)).${f##*.}"
done

How it works

count=0

This initializes the variable count to zero.
for f in *; do

This starts a loop over all files in the current directory.
[ -f "$f" ] && mv -i "$f" "cin_$((++count)).${f##*.}"

[ -f "$f" ] tests to see if the file $f is a regular file (not a directory).

If $f is a regular file, then the move (mv) command is run.  -i tells mv not to overwrite any existing files without asking.  "cin_$((++count)).${f##*.}" is the name of the new file.  cin_ is the prefix.  $((++count)) returns the value of count after it has been incremented.  ${f##*.} is the extension of file $f.
done

This marks the end of the loop.

Example

Consider a directory with these three files:

$ ls
alpha.jpg  beta.png  gamma.txt

Let's run our command:

$ count=0; for f in *; do [ -f "$f" ] && mv -i "$f" "cin_$((++count)).${f##*.}"; done

After running our command, the files in the directory now are:

$ ls
cin_1.jpg  cin_2.png  cin_3.txt


How to install Ubuntu on a zeroed-out drive?

Please refer to How do I install Ubuntu? for help. Skip steps 8 and 9, and only if it fails, try step 9, creating a new partition after invoking the New partition table command(skip the part with reducing old partitions). If you have trouble, feel free to comment(You may comment on answers to your questions, even with one reputation).


Docker ubuntu image download test failed

You have to enable http_proxy and https_proxy environment variables in /etc/default/docker (setting your proxy IP and port). The example below is looking for local cntlm doing proxy authentication:

export http_proxy="http://127.0.0.1:3128/"
export https_proxy="http://127.0.0.1:3128/"


Compiling: ./configure: syntax error near unexpected token

I'm the one developing Goozzee.

I reproduced your problem on my Ubuntu 16.10 VM and I think I have the solution.

As far as I understand, the MYSQL_CLIENT macro is located inside the mysql.m4 script. But this script isn't automatically installed with autotools.

What I did is install the libmysqld-dev package. That fixed the issue.

I also installed the following packages that are required by Goozzee:
libwxgtk3.0-0v5 and libwxgtk3.0-dev.

Please let me know if it worked for you.


Convert existing internal hard disk into network attached storage

Qnap is renowned for its good quality NAS. Synology is considered a good alternative. Usually all these NAS have linux inside. At the very least they support samba sharing (but they usually support a vast plethora of protocols) so you shouldn't have any problem accessing them from Ubuntu.

You just have to check the specs about ext4 file system. Older or very entry level NAS might not support that.

Looking at Qnap entry level 2-bays product I can say they support ext4. The same goes for the Synology counterpart.

Which one to pick mostly depends on your budget. Don't worry too much about Ubuntu compatibility (99% of them support Linux), just make sure -looking at the specs- that ext4 is supported.

Also, if you take a 2-bay NAS to access both drives at the same time, remember NOT to set any RAID between them. You want to access them individually. Once you have backed everything up you might consider setting up a RAID (not advisable with drives of different size though).


How to configure /etc/network/interface to use static IPv6, but dynamic IPv4?

Test this:

auto lo
iface lo inet loopback

auto eth0
allow-hotplug eth0
iface eth0 inet dhcp

iface eth0 inet6 static
address 2001:db8::xxxx:yyyy
netmask 64
gateway 2001:db8::xxxx:yy:zzzz


How can I make my Mac Mini start headless?

It's possible to buy dummy adapters, which tell the computer that there's a monitor connected.

They are quite easy to make oneself. Just use a DVI-I --> VGA adapter and connect the 2nd to the 7th pin using a 75 Ω resistor.


Freezes are generally hard to debug because your system becomes unresponsive then. This is even more the case when the cause of this could be anywhere

a problem of the host OS (Windows 7),
the guest OS (Ubuntu 10.10),
or from Virtual Box.

From your descriptions we can only guess what might be the cause. In your case the system slows down before freezing, indicating problems in memory management, or from applications that eat up the CPU power you gave your virtual environment.

In the Ubuntu guest you can find out if an application causes this by running top in a terminal (or if you prefer a GUI in System -> Administration -> System Monitor -> Processes) to list CPU and memory usage of individual processes.

Other valuable informations on problems, or error messages from applications can also be found in the .log files that can be viewed with System -> Administration -> Log File Viewer.

If you had suspicious findings there don't hesitate and edit your question to include these informations.

Sometimes it can help to increase the performance and stability of the guest OS with different settings (most can be done in the Virtual Box Manager GUI after a shut down of the guest OS):

disable screensaver in the guest OS
enable VT-x/AMD-V (if your host system  can do this)
regularly update Virtual Box to current stable version
install Guest Additions
disable 3D acceleration
increase video memory
allow more RAM
but avoid to allow more than 50% of total system RAM
use one CPU core only
enable or disable Nested Paging
try using another audio driver (or disable audio)

Settings in bold are recommended in any case. The other points are suggestions on what you can try out to improve the performance of your virtual Ubuntu.


Its pretty late, but for future users, I am anyhow answering this. The following worked for me.

tar -zxvf vmd........
cd vmd
./configure
cd src
sudo make install

In general, after unzipping the file always read the READ ME file. The instructions given there are pretty much direct and more specific to your issues.


I had my theme in terminal to match my theme in Ubuntu which was Black on Black, so I was typing, but couldn't see anything. Very easy to fix by:

Terminal > Edit > Profile Prefrences > Colors

Then deselect "use colours from system Theme."


try this :

echo "options rtl8723be fwlps=N ips=N" | sudo tee /etc/modprobe.d/rtl8723be.conf

sudo modprobe -rv rtl8723be
sudo modprobe -v rtl8723be

After the reboot the drops should never happen again.


Copy and paste between special lines using awk command

Lets assume that the given awk command
awk 'NR==1,/mode/{next}/tot/,NR==0{next}{print}' 1.out > 2.dat

was executed, and created file 2.dat.
In order to modify an existing file 3.out as requested, here is the answer using one awk command (to create a temporary file /tmp/3.out.tmpfile):
awk 'FNR==1{nf++}; NR==1,/mode/{print;next}; f2==0{f2=1;nextfile}; nf==2{print;next}; /tot/,0{print}' 3.out 2.dat 3.out > /tmp/3.out.tmpfile

and one mv command (to replace the original 3.out file by the modified one /tmp/3.out.tmpfile):
mv /tmp/3.out.tmpfile 3.out

For example, if the original 3.out file contains:
line-1
line-2
mode
line-X
line-Y
line-Z
tot
line-3
line-4
line-5

and file 2.dat contains:
inserted-line-A
inserted-line-B
inserted-line-C
inserted-line-D
inserted-line-E

then the above proposed commands will result in a modified 3.out file that now contains:
line-1
line-2
mode
inserted-line-A
inserted-line-B
inserted-line-C
inserted-line-D
inserted-line-E
tot
line-3
line-4
line-5

The original 3.out lines between mode and tot have now been replaced by the ones in file 2.dat.


The simplest option might be to enable webdav on your server.  There is a reasonable guide for this here:
https://www.techrepublic.com/article/how-to-enable-webdav-on-your-ubuntu-server/
For something a bit more comprehensive, you might want to consider NextCloud:
https://nextcloud.com/


Suspend, resume, shutdown work in legacy but not UEFI in 16.04LTS on HP AMD/Radeon desktop?

Thank for the suggestion. I ended up reinstalling in legacy boot mode (which I had to do via CD, in my case), instead, and that fixed the problem for me.


Install tar.gz , but no configure folder on install file

There's no configure file because the archive contains binaries.

The executable is in /bin/: assuming that you extracted the folder in ~/Downloads, you can directly execute the program making it executable by running

chmod +x ~/Downloads/RoKiSim/bin/RoKiSim

and executing it by running

~/Downloads/RoKiSim/bin/RoKiSim

To install it, I suggest you to move the folder to /opt/ by running

sudo mv ~/Downloads/RoKiSim/ /opt/

to make the program executable by running

chmod +x /opt/RoKiSim/bin/RoKiSim

and to add a symbolic link to /usr/bin/ by running

sudo ln -s /opt/RoKiSim/bin/RoKiSim /usr/bin/rokisim

After that, you'll be able to run the program just by running rokisim.


Open a terminal and change directory to /usr/share/xsessions. In there, use sudo rm to remove options you don't want to see in your login screen. Then log out and log back in again.


It's working as intended. ignoredups, implied by ignoreboth, doesn't add a command to history if it's the same as the immediate previous command. It doesn't look further back in history. From the manual:

  A value of ‘ignoredups’ causes lines which match the previous
  history entry to not be saved.

So, this will add foo twice to the history:

$ foo
$ bar
$ foo

But so will this:

$ foo
$ bar
$ foo
$ foo

The last foo won't be added to history, since the previous command was foo. Use erasedups in conjunction:

  A value of ‘erasedups’ causes all previous lines matching the
  current line to be removed from the history list before that line is
  saved.

So:

HISTCONTROL=ignoreboth:erasedups


Assuming you'll be including the base abstraction in each profile, edit that:

Add /etc/* r, to /etc/apparmor.d/abstractions/base and make sure #include <abstractions/base> is in every profile.

However, /etc/* r, (or whatever you're linking to) will be one line anyway. Either way you have to add a line.

I have no idea why you would want to do this, however.

You could also create a template with everything you need already defined.


How do you add Application detailed information to display in the Dash?

The Dash > preview takes/displays the info from the app's package info, specifically Description:

For a custom .desktop you could use a 1 line description via a Comment=line in the .desktop


ScreenCloud Update - Dependency Is Not Satisfiable

I managed to fix this. For anyone else who might have this problem:

Download QuaZip here. Select your architecture type (32 or 64-bit), download from one of the mirrors, install. After that run ScreenCloud installation.


How to launch shell scripts from XFCE desktop?

Even when marked as executable, the system doesn't know what to use to interpret the script. If it is a POSIX shell script, add this line to the very beginning of your script:

#!/bin/sh

Should it require bash or some other shell, use e.g. for bash

#!/bin/bash

The same applies to other executable text files, such as python programs:

#!/usr/bin/python


First, create a backup of {database}:

mysqldump -u {user} -p {database} > /home/$USER/Documents/backup.sql

To remove any trace of mariadb installed through apt-get:

sudo service mysql stop
sudo apt-get --purge remove "mysql*"
sudo rm -rf /etc/mysql/

and it is all gone. Including databases and any configuration file.

To check if anything named mysql is gone do a

sudo updatedb

and a

locate mysql

It should be fairly empty (maybe some manual pages or a connector). If though you see a my.cnf amongst the results remove that too.


Gathering @fossfreedom 's and @Rinzwind 's ideas about 7z and Archive Manager, and tweaking with some of my own, I guess ive found a nice solution:

Archive Manager (actually File Roller) supports 7z (as long as p7zip package is installed), and 7z supports WIM (thanks guys!). But here is the catch: File Roller does not know that 7z supports WIM. So the trick consists in "fooling" File Roller to think WIM files are actually 7z. Sure, renaming (or appending) WIM filenames with ".7z" extension works. But it can be more elegant than that.

Ive downloaded and and examined File Roller's source code, and found out that it (thankfully) detects files by mime types, not filenames.

So the complete solution could be:

Make sure you have p7zip package installed. You can install it with the following command:

sudo apt-get install p7zip-full

For Mime-Type dababase editing, install assoGiate (File Types Editor). Its a very easy, intuitve, well-polished tool. A must-have for mime-type editing. Saved me more than once, including now
To install it in Ubuntu 12.04 (Precise), use the following command:

sudo apt-get install assogiate

To install it in Ubuntu 14.04 (Trusty), you need to install libgnome-vfsmm-2.6-1c2a manually at Launchpad. In "Published versions", click on the release of your architecture. In the next page, download the *.deb file in "Downloadable files". We need to install libxml++2.6-2 available in Universe repo too, so we can install assoGiate using dpkg:

sudo dpkg -i libgnome-vfsmm-2.6-1c2a_2.26.0-1build1_amd64.deb
sudo apt-get update
sudo apt-get install libxml++2.6-2
sudo dpkg -i assogiate_0.2.1-3_amd64.deb

Open it in Menu > System Tools > File Type Editor
At it, go to Type > Find (CTRL+F, or search icon), type "7z".

Select x-7z-compressed,  go to Type > Edit
Go to Filenames tab, click on Add button
Type *.wim, click Add

Close all dialogs, and presto!
Nautilus now show the WIM archives as a 7-zip archive. Which, given that is 7-zip that handles them, it is not entirely false. No renaming needed, filenames are intact.

Double-click them, and good ol' Archive Manager opens them with no complains. No need of wine or any weird GUI

Note: these changes in the mime-type database are valid for the current user only. For a system-wide change, open File Type Editor as root:

gksudo assogiate &

Last but not least, for command line, all these steps can be skipped, and the following can be used:

7z x INPUTFILE.wim -oOUTPUTFOLDER


One solution could be setting up cronjobs to lock/unlock the game directory. To do so, follow the steps below.

Make sure cron-daemon is installed

sudo apt-get install cron

Setting up the cronjob to run for root

Start editing the cronjob by issuing following command:

sudo crontab -e

Add the folowing lines into the editor:

00 */1 * * * ...Documents/dota2/dotaapi2/ python match_scraper.py
01 */1 * * * psql dota2apidb
02 */1 * * * update games set online=1 where online is null;
03 */1 * * * ...Documents/dota2/gosugamers/gosugamers/spiders/ scrapy crawl dota
04 02 * * * ...Documents/dota2/dotaapi2/ python gosu_merge.py
05 02 * * * ...Documents/dota2/dotaapi2/ python unticketed.py

(Just to make clear you have to use proper commands and paths maybeputting some of that in prepared bash scripts so you can reduce the amount of crons running)


Partition problem when upgrading to 13.10

You need a LiveUSB or LiveCD, preferably GParted. Get it from

gparted.org/download.php

Use Tuxboot to make a bootable USB Pendrive and boot from the USB. If pendrive with Tuxboot installed GParted fails to boot (happened to me), use UNetBootin. When you boot into GParted, click on the drive with Windows partition and click Resize/Move. Resize the partition as you want and click Apply. It will start going, it's a fast process. When you're done, reboot, and this time boot into your hard drive. Done! You're good to go.


I had some sort of problem with chrome (dev) if you press Super/start twice it should slide back hope this work if this doesn't work you could do is open a different program through the dash (press super/start) I don't know why this some happens.


Using the CCSM, is there a way to run Desktop Cube smoothly with Unity Desktop Manager?

CCSM has been dangerous now for a very long time.

See this question about problems with CCSM

I cannot recommend it at all.

Generally the features it provided were moved to more pertinent locations with the advent of Unity, and in some cases nixed. Unity was developed in a completely different mantra - I would not expect smooth sailing, and many, many conflicts.

I'm quite surprised it's still available these days.  I remember running Eve Online fondly with desktop cube running!

(Here's my Ubuntu 9.04 +Compiz +Eve Online video from 2009!)
https://www.youtube.com/watch?v=4tvJssnzNhw

For now, there isn't really an alternative.

Kind Regards


One forum thread says Synaptic's search function is affected if you remove apt-xapian-index.

You can disable the periodic updates by adding this line:

APT::Periodic::Enable "0";

to a file called /etc/apt/apt.conf.d/99periodic-disable (I picked that name. You can change it, as long as you keep the 99 in front, if you don't like it).

I have no idea if the Synaptic search is still usable after you do this, but I prefer this solution to others, as it doesn't affect config files (that won't be updated on next package upgrade because of local changes), doesn't change permissions (that will be restored on next package upgrade) and Synaptic (if you use it) might still be a happy bunny.


Actually zlib1g is already uninstalled but it's configration files still exist.that is why apt-get is unable to find the package.
But when dpkg -l tries to find all installed packages,it searches for both packages as well as its configuration files.so it will still show zlib1g as installed.

So instead of running

  apt-get remove zlib1g:i386

(using sudo if not a root terminal)

run

  apt-get purge zlib1g:i386

(again using sudo if not a root terminal)

purge removes the configuration files as well as package.

Now when you run dpkg -l you will not find the package in the list.

The man page of dpkg-query gives some details.

  -l, --list [package-name-pattern...]
                List packages matching given pattern. If no package-name-pattern
                is  given,  list all packages in /var/lib/dpkg/status, excluding
                the ones marked as not-installed (i.e.  those  which  have  been
                previously  purged).


Is it possible to install Linux side by side with Windows 7, but on the other drive, part of which is occupied by ntfs partition?

Yes, this is very easy to do.
Now in your question you say:

If so, what options I need to select during drive questions in order
not to kill MBR and be able to load to both Windows and Linux?

You are going to have to install GRUB to the MBR of one of your disks.

If you install it to the MBR of your SSD, you won't have to change anything to get the dual-boot working properly.

If you install GRUB to the MBR of your HDD, you will have to alter the boot order in your BIOS so that the HDD is booted before the SSD.

Both are perfectly valid options.
Please leave a comment under my answer with which option you want to do, and also with a picture from the "Something Else" installation option, and I'll be more than happy to guide you through the partition setup.
Do not select "install alongside Windows"!Select "something else", as shown in this picture.
I need you to take a picture of what this screen looks like for you in the installer:


not able to become root becouse of changing /etc/passwd file

Have you tried sudo nano /etc/passwd to edit the file ?

In last resort, you could always

boot a Live USB/CD
Launch gnome-terminal

get a root shell by running sudo -i
find the name of the device of your root partition in the output of blkid. If you have used labels, that would help you. otherwise you will have to guess.
make a directory where to mount the fs with mkdir /mnt/myubuntu
mount your root partition with mount /dev/sdxy /mnt/myubuntu

edit the /etc/passwd of that partition i.e. /mnt/myubuntu/etc/passwd
umount /mnt/myubuntu
reboot


How to make indicator-sysmonitor as a default indicator on the login screen

Greeter/Login Screen

I end up looking how the nm-applet works. I tracked it down, as it seems hard coded in unity-greeter.

This modification make it appear in the greeting screen after boot or logoff (but not in the lock screen).

Download source and build dependencies

sudo apt-get build-dep unity-greeter
apt-get source unity-greeter

Add spawn function for indicator-sysmonitor

cd unity-greeter-*/
vim src/unity-greeter.vala +590

There you find Process.spawn_command_line_async ("nm-applet"); in original code which spawn the nm-applet for the greeter screen. Make a copy of it with the full try..catch wrap and modify it to spawn indicator-sysmonitor too.

    /* Make nm-applet hide items the user does not have permissions to interact with */
    Environment.set_variable ("NM_APPLET_HIDE_POLICY_ITEMS", "1", true);

    try
    {
        Process.spawn_command_line_async ("nm-applet");
    }
    catch (Error e)
    {
        warning ("Error starting nm-applet: %s", e.message);
    }

    /* I added these for sysmonitor, from here */
    try
    {
        Process.spawn_command_line_async ("indicator-sysmonitor");
    }
    catch (Error e)
    {
        warning ("Error starting indicator-sysmonitor: %s", e.message);
    }
    /* to here */

}

Build

./autogen.sh
./configure --prefix=/usr
make -j2

Install

sudo cp src/unity-greeter /usr/local/sbin/unity-greeter

Reboot

Lock Screen

Anyway, this will show all application indicators (notice nm-applet in the screenshot), this may be a security & privacy drawback. It is possible to pre-define an indicator list for lockscreen mode only, I just don't have time to do so and test it.

Download source and build dependencies

sudo apt-get build-dep unity
apt-get source unity

Modify unity-panel-service to load application indicators even in lockscreen-mode.

cd unity-7*/
vim services/panel-service.c +893

if (!lockscreen_mode) below prevent loading indicators in lock screen mode.

static void
initial_load_default_or_custom_indicators (PanelService *self, GList *indicators)
{
  GList *l;

  suppress_signals = TRUE;

  if (!indicators)
    {
      /* comment these lines
        if (!lockscreen_mode)
        {
          load_indicators (self);
        }
      */
      // add this line
      load_indicators (self);

      load_indicators_from_indicator_files (self);
      sort_indicators (self);
    }
...

Build

mkdir build
cd build/
cmake ../
make

Install

sudo mv /usr/lib/unity/unity-panel-service /usr/lib/unity/unity-panel-service.orig
sudo cp services/unity-panel-service /usr/lib/unity/unity-panel-service

Try it: CtrlAltL


"/dev/nume0nlp7: clean, 206252/1222992 files, 3661566/4882432 blocks" appears when I boot Ubuntu 20.04

I'm very sorry for posting this as the answer. I don't have 50 reputation yet to comment, but this is definitely just a comment.
The row you described above is not an error. It's just an info message, that at least on my laptop doesn't make any sense. See the post on askubuntu below for explanation of this message (and maybe solution, because your post looks like duplicate or very related). Have you tried to wait at least 5-10 minutes? If nothing changes, then i recommend to look into boot log to determine the real error.
"dev/sda1: clean, ..." This message appears after I startup my laptop, then it won't continue booting


8.6 GB swap? Do you really have > 8GB of RAM? Windows needs big swap space, but Linux only needs a swapspace equal to your RAM chip memory, unless you are editing humungous files.

As to repartitioning to fix the problem, use gparted (and install it if you don't have it from Synaptic or Software Center) and resize the swap file, specifying Align To: Cylinder when you get to the Resize screen.

The only tricky thing about gparted is if you have multiple HDD/SSDs - look for the spin box at right, above the middle, which lets you select the drive to work on. If you only have one HDD or SSD then you need not worry about it.


Issue on booting from rEFInd using USB -- make sure you have the latest firmware update installed

Booting from USB media, particularly in BIOS/CSM/legacy mode, has always been problematic on Macs. I have several suggestions:

Use the right bit depth -- Your Mac is new enough that it uses a 64-bit EFI. As such, you should be trying to install a 64-bit version of Ubuntu. If you're trying to install a 32-bit version, STOP! Download the 64-bit version instead and try with it.
Check how you prepared the USB drive -- rEFInd is better able to boot in EFI mode than in BIOS mode (see the next point), but to do so, the USB drive must have an EFI-mode boot loader installed. Depending on how you prepared the USB drive, that EFI-mode boot loader may be missing. Thus, preparing the disk with another tool, or with different options for the tool you're using, may be necessary. See "Creating EFI-Bootable USB Drives" on this page of mine for more on this subject.
Boot in EFI mode -- The messages you report describe failures of booting in BIOS/CSM/legacy mode. You're more likely to be able to boot in EFI mode. rEFInd is likely to display at least two options for booting an Ubuntu installation disk, one of which boots in BIOS mode and the other of which boots in EFI mode. Try picking the EFI-mode option, which will probably be described as "Boot Fallback boot loader from {description,}" where "{description}" is some sort of disk description.
Use Apple's boot manager -- Instead of using rEFInd, you could try using Apple's boot manager. You can get to this by holding down the Option (or Alt) key as you start the computer. It may work better than rEFInd for booting external media, especially in BIOS mode.
Try a CD-R instead -- Some people have reported that optical discs work better than USB flash drives for booting the Ubuntu installer on Macs. Your 2015 Mac probably lacks an optical drive, but if you've got an external one, you could give it a try. I make no promises about its working, but it's worth a try.

I wouldn't worry too much about the unreadable nature of the USB drive in OS X. Some tools (especially dd) create USB drives that are in weird formats that OS X might not recognize, although they should work fine in Ubuntu.


How do I use Ubuntu mercurial package to create updated .deb?

The changelog is parsed to get the version, so you might want to update it:

dch -i

Change the new version you get to 3.4.1. That's also used to pick the source tarball, if you have one.


Multiple network interfaces with netplan

You appear to have two default routes on the two interfaces, both provided by DHCP.  If you try to ping the 192.168.1.50 address from another machine not on the 192.168.1.0/24 network, the response will be sent via the 10.10.10.50 interface, which is not what the network is expecting.

To have two remotely-accessible addresses, you likely need to configure policy-based routing instead of accepting default routes from dhcp.


Kernel oops during resume after suspend/hybernate

TuxOnIce provides the best way of enabling hibernation when the standard Ubuntu hibernation fails.

sudo apt-get install hibernate
sudo apt-get install tuxonice-userui


0
down vote

have you solved this problem? I had exactly the same issue on my laptop when I installed Ubuntu 14.10

I tracked it down to a bug in the kernel, at least in my case. Try using my kernel see if it fixes it. Suspend has been working with no issues for me for about a week now so I'll push the change upstream when I have a chance.

http://lyktoree.com/dragan/linux-image-3.16.7-ckt8_3.16.7-ckt8-10.00.Custom_amd64.deb

md5sum: 568d6ff307bc646b4f69a64375bbc8f1 linux-image-3.16.7-ckt8_3.16.7-ckt8-10.00.Custom_amd64.deb

Built for x86_64, hope it helps.


There's probably a better way but this is what I would do. First convert the input file:

$ cat nmap-scan.txt

Host: 45.310.302.11 (li982-11.members.ionic.com)
Ports: 21/closed/tcp//ftp///, 22/open/tcp//ssh//OpenSSH 5.3 (protocol 2.0)/, 23/closed/tcp//telnet///, 25/closed/tcp//smtp///, 53/closed/tcp//domain///, 80/open/tcp//http//Apache httpd/, 110/closed/tcp//pop3///, 111/closed/tcp//rpcbind///, 135/filtered/tcp//msrpc///, 139/filtered/tcp//netbios-ssn///, 143/closed/tcp//imap///, 443/open/tcp//ssl|http//Apache httpd/, 445/filtered/tcp//microsoft-ds///, 993/closed/tcp//imaps///, 995/closed/tcp//pop3s///, 1723/closed/tcp//pptp///, 3306/open/tcp//mysql//MySQL 5.7.24/, 3389/closed/tcp//ms-wbt-server///, 5900/closed/tcp//vnc///, 8080/closed/tcp//http-proxy///

To a new file with fields separated by new lines:

$ sed -e 's/, /\n/g' nmap-scan.txt > nmap-new.txt

$ cat nmap-new.txt

Host: 45.310.302.11 (li982-11.members.ionic.com)
Ports: 21/closed/tcp//ftp///
22/open/tcp//ssh//OpenSSH 5.3 (protocol 2.0)/
23/closed/tcp//telnet///
25/closed/tcp//smtp///
53/closed/tcp//domain///
80/open/tcp//http//Apache httpd/
110/closed/tcp//pop3///
111/closed/tcp//rpcbind///
135/filtered/tcp//msrpc///
139/filtered/tcp//netbios-ssn///
143/closed/tcp//imap///
443/open/tcp//ssl|http//Apache httpd/
445/filtered/tcp//microsoft-ds///
993/closed/tcp//imaps///
995/closed/tcp//pop3s///
1723/closed/tcp//pptp///
3306/open/tcp//mysql//MySQL 5.7.24/
3389/closed/tcp//ms-wbt-server///
5900/closed/tcp//vnc///
8080/closed/tcp//http-proxy///

Then grep the new file in simpler syntax:

$ grep -E '^80/|^443/' nmap-new.txt

80/open/tcp//http//Apache httpd/
443/open/tcp//ssl|http//Apache httpd/


Is there a standalone version of soapUI for Linux?

Download the zip file. Then you just unzip the files into a directory somewhere. There is a sh file - you just need to make it executable and run that - from memory.

unzip soapui-*.zip
cd soapui-4.5.0-Beta1/bin/
chmod +x soapui.sh
./soapui.sh


Kodi loads on ubuntu 14.04 but doesn't open

Go to
Accesories/ File manager -
.kodi -
User data -
Database -
Then delete textures13.db from the file
Worked for me


In a terminal (ctrl+alt+Fx if KDE is stuck to use tty) type :

$ kquitapp5 plasmashell

and eventually

$ plasmashell

to restart or

$ kstart plasmashell

if you want to be able to logout of the tty.


Canon PIXMA MP230 doesn't work with Ubuntu 20.04

I have had the same problem for a long time after upgrading to Ubuntu (Xubuntu/Ubuntu studio in my case) 20.04: my Pixma mp230 accepted print jobs, proudly announced "rendering complete" (in the log file) and just as proudly refused to print. I have tried to fix it a couple of times, but it failed miserably and was not a great priority these past few months.
This is the simple solution, which I found on distrowatch.com' s user rating page of Ubuntu 20.04  (the review dated 2020-08-19):

remove ippusbxd (sudo apt remove ippusbxd in terminal)
delete and reinstall the printer using the normal GUI printer utility
Print a test page. Worked for me!

The proposed theory behind it is that ippusbxd "creates" a "ubuntu"-printer which interferes with the original printer/printer drivers (in the reviewer's case a Brothers printer, in my case a Canon Pixma mp230).
I am incredibly thankful to the original problemsolver for this simple solution and thought I would pay it forward here, where more people might see it.
You might also want to read these related questions where more knowledgeable people than me explain how all printers now are "network printers" or something like that. Apparently removing ippusbxd isn't the most elegant solution, but as long as it works I'm happy :-)

Getting HP DeskJet 3700 working with Xubuntu 20.04


sudo apt-get install volumeicon-alsa
nohup volumeicon-alsa &

you can then add the command volumeicon-alsa to your Settings > Start-up Applications

to fix keyboard bindings, Settings > Keyboard > shortcuts > new. Click on the new binding and it will autocapture your key combo when you press the volume controls on your keyboard.

For the volume increase key combo bind the command: amixer set 'Master' 5%+

For the volume decrease key combo bind the command: amixer set 'Master' 5%-

You can change 5% to whatever you want, I find 3-5 is generally a good number


Where I can download the Wubi installer for Ubuntu 10.04 LTS?

you can get the 10.04 wubi installer from here.

You're looking for the file wubi.exe which is right at the bottom, or you can click this link and download it directly.


Ubuntu won't boot when choose "Try Ubuntu without installing"

I followed some comments and succesfully installed Ubuntu16.04 with Rufus USB.

But when I boot Ubuntu, it didn't display toolbar whish usually able to see at left.

The following commands helped me.

sudo apt-get update
sudo apt-get upgrade

I also used these commands to enable gtx1080.

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-367
sudo apt-get install mesa-common-dev
sudo apt-get install freeglut3-dev


Microsoft Outlook can include attachments in email using a proprietary format. Email clients that do not support the Outlook format see that attachment as a file winmail.dat. You can still decode the attachment using a command line tool tnef.

Install the command line tool with the command

sudo apt install tnef

Then you can easily decode the winmail.dat file into the original binary files with

tnef winmail.dat

Following is in case you are very unfamiliar with how the terminal works.

If you are not used to working with the terminal: the command above assumes that your current working directory (folder) is containing winmail.dat. You can easily open a terminal in the folder where your winmail.dat folder resides using the file manager.

Alternatively, you can open a terminal. By default, the current folder will be your home folder (/home/<yourlogin> which can be indicated as ~). You can check in which folder you are with the pwd command. You can check what files are present in the current folder with the ls command. Otherwise, you need to first change to the directory where the file resides. There, you use the cd command. Suppose you downloaded the attachment in your "Downloads" folder, then you can in the terminal move to that directory with the command:

cd ~/Downloads

after which you will successfully be able to execute the command to decode the attachment.


Receiving unallocated space from /home Partition after resizing it

resize2fs resizes a file-system, not a partition. To shrink a partition both have to be resized, first the file-system, second the partition.

I would recommend to use GParted to edit partitions, both steps are managed by GParted and you don't need to bother with that.

Follow the warning in your second screenshot to repair the partition and then just resize the partition using GParted's graphical user interface.

Remind that shrinking the /home-partition will result in unallocated space in the extended partition. You can create only logical partitions in that space. To create a primary partition (which is needed for a Windows installation) you will have to shrink the extended partition sda2 as well.

Do all that partition-editing while booted into a live-session, so all partitions on your HDD are unmounted.

If you have any data on your disk you can't risk to lose, it is a good idea to backup it first.

If you use a laptop, make sure your power supply is connected, you don't want to run out of battery while performing such tasks!


Update Manager broken package libxext6 and libxext6:i386

You could try:

sudo apt-get update --fix-missing

As far as your architecture goes, Ubuntu calls 64bit packages AMD64, regardless of your processor being AMD or Intel.

Report if this works.


I suggest you to use usb-creator to install Kubuntu in to your USB disk. I think it's the best way of installing any Ubuntu version in to a USB disk. Format the USB drive and try installing Kubuntu again using usb-creator. This document contains in-depth information on how to do that.


12.04 Browser fonts changed unexpectedly

It seems clear now that the installation of Font-Manager is what caused this problem.   I have not removed Font-Manager since I like it for previewing and hope to be able to keep using it.

So, I am not 100% sure I did this all correctly, but I renamed ~/.fonts.conf  to ~/.fonts.conf_bk

~/.fonts.conf looked like this:

This file is maintained by Font Manager.
    If you wish to make any changes it is suggested you do so using
        /home/jdier/.config/font-manager/local.conf
    Any changes made to this file will be automatically relocated there
    at startup and any settings already in that file will be overwritten.

It included listings of directories for fonts, but did not include anything in /usr/share so I think that is where the standard fonts are and when the system could not find them, it just grabbed some of the decorative fonts that I had installed into ~/fonts


Can I override a Linux install? (Replace Distro)

That depends on the versatility of the distro's installer. Ubuntu is able to recognize previous Ubuntu installations on dual/multi boot computers and provides the option to replace all or keep existing Documents and programs. I'm sure that the other Ubuntu-like distros do as well. Debian Jessie might. With Mint, it depends on the version number. I doubt Arch will.


Does an application need root permissions if it modifies files in the "/" directory?

Strictly, the directory: / is the "root" directory of all directories. That includes all sub- directories, so includes your home directory as well.
You need additional privileges for all directories outside ~ (your homedirectory), so either you need to:

be member of a specific group (e.g. to share files or directories), or, more drastically,
you need sudo privileges

outside your personal home directory.
A .deb installer, to install items globally for all users, will therefore need t be run with sudo privileges, since it installs files and executables outside your home directory.
When a .deb package is installed, where do the contents go?
Although there are quite strict rules for using directories outside your home directory, there is no easy answer to that; it depends on the application, its role and what kind of application it is. See also here and here (among others).
If you want to get an impression on where files are installed, look inside an unzipped .deb installer of a simple application. It contains a scaled version of your system and shows where the files will be "projected" to.


Nvidia driver 290.10 or 173 from additional drivers package?

If you installed the latest drivers from the Nvidia site (290.10) there is no need to install any drivers from the Additional Drivers tool.

The 290.10 drivers are quite stable and seem to be working good both with Unity and Gnome-Shell.

If the installation went good I would stick with those until anything new comes out.


Malware present in my Ubuntu, says some tabs in Chrome

It's spam+scareware.  Just dismiss it, and reconsider your choices on which websites you frequent if it scares you.

If at first glance, you didn't know better than to believe it - you shouldn't be doing whatever it was that you were doing that used such a promiscuous ad network.


What happens to PPA and applications installed from PPA if Ubuntu is updated to the next release

PPAs and other third-party repositories are disabled during a release upgrade. You have to manually enable them post-upgrade.

The packages are upgraded if a newer version exists, or left alone if there's no corresponding package in the official repositories.

You can visit the PPA page and check if it supports the newer release. In the Overview of published packages section, the Published in dropdown menu lists the  releases for which packages are available.


ubuntu 20.04 Booting from flash drive fails at checking disks

Removing Disk Check on Persistent USB's

The command line option fsck.mode=skip can be used to skip the disk check.

The line Checking disks: 0% complete will still come up but fsck will not be run, nor will boot time be increased.

mkusb After the Persistent USB drive is created, open /boot/grub/grub.cfg as root.

Add fsck.mode=skip to the Persistent menuentry thus:

linux  ($root)/casper/vmlinuz  file=/cdrom/preseed/ubuntu.seed maybe-ubiquity fsck.mode=skip quiet splash persistent ---

Newer versions of mkusb already include this fix

UNetbootin After creating the boot drive, open /boot/grub/grub.cfg as root.

Add fsck.mode=skip to the first menuentry for (UEFI boot mode).
Open syslinux.cfg as root and add fsck.mode=skip to the default menuentry for (BIOS boot mode).

Rufus After creating the boot drive, open /boot/grub/grub.cfg as root.

Add fsck.mode=skip to the Default menuentry for (UEFI boot mode).
Open /isolinux/txt.cfg as root and add fsck.mode=skip to the "Try Ubuntu without installing" menuentry, (for BIOS boot mode).

The Try Ubuntu / Install Ubuntu screen can be removed from BIOS boot by overwriting syslinux.cfg with:

default persistent
label persistent
  say Booting an Ubuntu Persistent session...
  kernel /casper/vmlinuz
  append  file=/cdrom/preseed/ubuntu.seed boot=casper persistent initrd=/casper/initrd quiet splash noprompt --


Unable to mount and burn DVD on Ubuntu 14.04 LTS

mount: block device /dev/sr0 is write-protected

You're trying to burn to a DVD that's write protected. Perhaps it's already burned and a DVD-/+R?


How to turn a Logical Drive back to Primary Partition in Windows 7?

It is not possible to convert a logical partition to a primary partition. A logical partition, which resides within an extended partition, has to be deleted if you need the room to have a primary partition in its place. Then the extended partition in which it resided has to be adjusted or deleted, to make room for creating a new primary partition.

Both Windows 7 and Ubuntu have suitable tools to perform the partionning.


Try running the following command from terminal

 sudo alsa force-reload

And then restart. This should be enough to fix it. If not you may need to reinstall

 sudo apt-get --purge remove alsa-base pulseaudio

And then reinstall

 sudo apt-get install alsa-base pulseaudio

And then run

 sudo alsa force-reload

Side Note
I suspect the force reload will fix, just be sure to restart after. You shouldn't need to reinstall, but I included just in case.

I just had this problem with no sound all of a sudden and

 sudo alsa force-reload

Fixed it for me. Hope helps.

Edit: Now that I think of it, since you had problems to begin with (only one speaker working) you may need to do a reinstall, but I would definitely try force-reload first.


Missing all the small icons on submenus in Ubuntu 18.10 GNOME 3.30

Thanks to @vanadium, I was able to fix this problem by following the instructions as follows.

From the accepted answer in this link:

  Both gtk-menu-image and gtk-button-images were deprecated and ignored, after that they made them deprecated but not ignored: https://git.gnome.org/browse/gtk+/commit/?id=627a03683f5f41efbfc86cc0f10e1b7c11e9bb25 https://git.gnome.org/browse/gtk+/commit/?id=c46aca463a9d66cf402ec8c3f9f2e2efc98c42ca

  the problem is the gsettings keys (org.gnome.desktop.interface buttons-have-icons and menus-have-icons) are gone so I don't see a way to set them...

  However it seems you can set the relevant GtkSettings via the gnome-settings-daemon xsettings plguin: open dconf-editor -> org.gnome.settings-daemon.plugins.xsettings and change the overrides key from:

{}

  to:

{'Gtk/ButtonImages': <1>, 'Gtk/MenuImages': <1>}

  usually the change is instantaneous (e.g. in gimp), but some apps need to be restarted (e.g. firefox).

  Or just use gsettings:

gsettings set org.gnome.settings-daemon.plugins.xsettings overrides "{'Gtk/ButtonImages': <1>, 'Gtk/MenuImages': <1>}"

  but note that this method overwrites the current value of that key; one obvious caveat is if you've previously enabled pasting with the middle click from gnome-tweak-tool -> "keyboard and mouse", you'll need to re-set it there again (unlike the above gsettings command, gnome-tweak-tool "adds" new values to the overrides key and doesn't blindly overwrite it).

  Edit: testing recently, it seems now that toggling either of these settings in gnome-tweak-tool remove the custom values added above:

  Top Bar -> "show application menu"
  Keyboard and mouse -> middle-click paste so if you toggle any of those settings you'll have to re-add the 'Gtk/ButtonImages': <1>, 'Gtk/MenuImages': <1> bits.


I had issues with the built-in network-manager based Hotspot since a long time, both related to compatibility and security. For instance, Android phones are able to connect only to Infrastructure APs which network-manager doesn't support out of the box (as you pointed out). That's the reason I've written my own Wifi Hotspot in python called hotspotd. Feel free to explore and use it:

Hotspotd


try using "disk utility" from GUI see if it shows up there. in terminal try mounting with sudo
example: sudo mount /dev/sda4 /mnt.
could look for it in the fstab  enter  less /etc/fstab

if its a usb the command lsusb may show its mount point and or that the system recognises the fs

the disk utility program has helped me a few times mount usb drives my system wouldn't auto mount


AppIndicators not working for Electron applications (Skype for Linux, Discord etc.)

Run the application with env XDG_CURRENT_DESKTOP=Unity to get the AppIndicator working.

E.g., for Skype for Linux, use the command:

env XDG_CURRENT_DESKTOP=Unity skypeforlinux

To make this fix permanent, go to the application desktop file in /usr/share/applications/, open with Text Editor, select all the text and copy it to a new text file made in Text Editor.

Change the 'Exec' line by adding 'env XDG_CURRENT_DESKTOP=Unity' (without the quotes ('')) immediately after 'Exec=' (don't forget the space after 'Unity'!). Save this in ~/.local/share/applications/.

Some applications are set to start automatically and in that case, you'll have to edit the desktop file from ~/.config/autostart/ in the same way.

(Note that 'skypeforlinux' should not be in the GIF below!)

Note that some applications overwrite any changes made to their autostart files, located in ~/.config/autostart/. A way around this is to rename the autostart file, then in the application settings, set the application not to start on login. This way, the modified autostart file will be used (which has a different name and contains the workaround).

In the case of Discord, for example, launch it with env XDG_CURRENT_DESKTOP=Unity discord (you'll want to load Discord from the Dash and click File > Exit to close it properly beforehand), then click on the indicator and uncheck 'Run Discord when my computer starts'.

Source
Credit to Peek which I used to make the GIFs, you can get it here.


Is Unity's dash supposed to go away when I click outside of it?

Yes, it is supposed to close, but it seems it first needs to fully show, so you might need to wait a bit before closing it works (but that's also true for the Super and Esc key).


Special thanks to @vanadium for providing me with the solution
I just needed to add a little wait time before executing the command. By adding those 2 lines to the Startup Applications
sh -c "sleep 5 && rclone --vfs-cache-mode writes mount 'Personal Onedrive': ~/'Personal - Onedrive'" and
sh -c "sleep 5 && rclone --vfs-cache-mode writes mount 'Business Onedrive': ~/'Business - Onedrive'"


Is Data Transfer between 2 Ubuntu Machines possible via USB-Cable?

When you say, USB cable you are referring to a Windows Easy Transfer Cable, right?

In that case, the easiest way to do this is to just hook the two machines directly together with an Ethernet cable. Modern NICs are smart enough that you don't even need a crossover cable; they just automatically crossover when they detect that you connected two computers.


ASUS USB-N13 Wireless Adaptor Losing connection

I have found that if you go to Asus' support site, locate your device, and click the OS dropdown and select Linux you can find the driver that purportedly supports your device. Device Support Page

Also, not sure how much help this may be but here's a forum thread on getting your device working with Ubuntu. Thread In the thread they claim the 2010 driver may be defective, so, there's that.


Finally, I found a solution,

sudo apt-get --purge remove conky conky-all

Thanks for your efforts :)


Browse Ubuntu Server 16.04 LTS Filesystem from a Ubuntu 17.04 Desktop

Since you're trying to access Ubuntu Server files, FileZilla is the best program out there.

If you want to access Ubuntu Server terminal, try setting up an SSH Server. Ubuntu has SSH Enabled by default. All you need to do is find your server's IP via "nmap":

sudo nmap -sn 192.168.x.0/24

where 'x' is your network, where your devices are connected (Most common is 192.168.1.0)

You can use ifconfig and search for "inet address".

Then, do ssh username@ip replacing username with your server's username and ip with the server's ip in order to connect to your server. It will ask for a password. Write the password of the server's user. Hope i heped.