make: *** [modules] Error 2 when trying to install rtl8723de driver

First, remove the inoperable files:

sudo rm -r rtl8723de*

Next, install another prerequisite:

sudo apt update && sudo apt -y install git

Now clone a better file:

git clone https://github.com/lwfinger/rtlwifi_new.git

Now build the driver:

cd rtlwifi_new
make
sudo make install
sudo modprobe rtl8723de

Your wireless should now be working.

EDIT: When Update Manager installs a newer kernel version, also known as linux-image, after the requested reboot, recompile:

cd ~/rtlwifi_new
make clean
git pull
make
sudo make install
sudo modprobe rtl8723de


Trouble Installing Codecs libx264 AND libmp3lame

Medibuntu (Multimedia, Entertainment & Distractions In Ubuntu) is a repository of packages that cannot be included into the Ubuntu distribution for legal reasons (copyright, license, patent, etc).

Some of these packages include the libdvdcss package from VideoLAN and the external binary codecs package (commonly known as w32codecs) used by MPlayer and xine.

follow this guide to include mediubuntu repository after that then :

  sudo aptitude libavcodec-extra-52

Dependencies

* libavutil-extra-50 (>= 4:0.6)
* libavutil-extra-50 (<< 4:0.6-99)
* libc6 (>= 2.7)
* libdirac-encoder0
* libfaac0 (>= 1.26)
* libfaad2
* libgsm1 (>= 1.0.13)
* libmp3lame0
* libopencore-amrnb0
* libopencore-amrwb0
* libopenjpeg2
* libschroedinger-1.0-0 (>= 1.0.0)
* libspeex1 (>= 1.2~beta3-1)
* libtheora0 (>= 1.0)
* libva1
* libvorbis0a (>= 1.1.2)
* libvorbisenc2 (>= 1.1.2)
* libvpx0 (>= 0.9.0)
* libx264-98
* libxvidcore4 (>= 1.2.2)
* zlib1g (>= 1:1.1.4)


UFW rules disappear after manually adding them to user.rules ubuntu 16.04

If you add your custom rules in /etc/ufw/before*.rules or after*.rules instead, it will not disappear after a reload.

When valid ufw commands are entered on the shell, i.e., custom user rules, they go into /etc/ufw/user*.rules files, and those persist.

root@ubuntu:~# ufw allow 22/tcp
Rule added
Rule added (v6)
root@ubuntu:~# grep tcp.*22 /etc/ufw/user*.rules
/etc/ufw/user6.rules:### tuple ### allow tcp 22 ::/0 any ::/0 in
/etc/ufw/user6.rules:-A ufw6-user-input -p tcp --dport 22 -j ACCEPT
/etc/ufw/user.rules:### tuple ### allow tcp 22 0.0.0.0/0 any 0.0.0.0/0 in
/etc/ufw/user.rules:-A ufw-user-input -p tcp --dport 22 -j ACCEPT
root@ubuntu:~# iptables -L -n | grep dpt:22
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0            tcp dpt:22

If you edit user*.rules directly, added rules (if valid) will be loaded in with ufw reload but will not persist at the next restart of the ufw service.

Therefore, add your custom rules in /etc/ufw/before*.rules or after*.rules instead.

References:

https://serverfault.com/questions/198398/ubuntu-how-to-add-an-iptables-rule-that-ufw-cant-create
https://bugs.launchpad.net/ufw/+bug/728128


Partial keys of wired keyboard are working upon boot up (works after unpluging & plugging back in)

This doesn’t happen very often but, when it does, it can usually be resolved by installing the Hardware Enablement package and/or xserver-xorg-input-all.
After booting (and doing the unplug/replug action for your keyboard), open Termimal and type these commands:
sudo apt update
sudo apt install --install-recommends linux-generic-hwe-20.04 xserver-xorg-input-all

Note: If you are not running 20.04, be sure to change the HWE version to match the one you’re using.
Once installed, reboot. Your USB keyboard should be properly functioning from that point onwards.


This package is available in Ubuntu from 16.04 LTS.

The source package is named glfw3.

You may try to install this package from Debian manually at your own risk. It provides it from Jessie.


Why is there no sound(not even alsamixer) in my Mac Mini ?


Is there a quick way to enter uppercase accented characters?

Looks like I should have done my homework.

Plenty of informationon the ubuntu wiki. In my specific case probably the quickest way is Unicode composition since combinations with the acute accent are kind of difficult, the acute accent being an alt-gr combination itself in the italian keyboard layout.

Update: the simplest answer I found is to just turn on Caps Lock. When caps lock is on every accented character you enter is automagically uppercased.


What is the command to minimize the gnome terminal?

You could use this command:

xdotool windowminimize $(xdotool getactivewindow)

You can change xdotool getactivewindow with a specific window that you would like to minimize.

xdotool wouldn't be installed on Ubuntu by default.So run the below command to install xdotool package.

sudo apt-get install xdotool


Open ScudCloud from terminal gives Cannot find dictionaries for "/usr/share/hunspell/en_IN" why?

try this,

sudo apt-get install hunspell-en-us libqtwebkit-qupzillaplugins python3-hunspell

https://github.com/raelgc/scudcloud/blob/master/README.md


display rendering problem ( most text, images and window edges split into tiny lines )?

First thing to try is to drop to a lower resolution and see if the problem goes away.  You didn't mention at what resolution Windows is actually running, along with the refresh rate.  The dot/pixel clock is generated from other values, see
http://arachnoid.com/modelines/

 Section "Monitor"
    # HorizSync source: xconfig, VertRefresh source: xconfig
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "CRT-0"
    HorizSync       28.0 - 55.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

The above goes into the xorg.conf file, which you might have to generate.  Playing around with the monitor like this is dangerous, you can destroy the monitor, start fires, etc.  Best to drop to a lower resolution.

Or a lower refresh rate, 60Hz may be too high.  You never did say what the Windows refresh rate was -- match it and the resolution.


Why some server requires './' to run scripts but others don't?

Normally scripts/programs in the current folder are not executed on linux/unix.

Scripts/programs are only executed when the script/program can be found in the $PATH variable.

So when the path is not included in the $PATH variable you have to give the path to the script/program to run it. To execute a script/program in the current folder you have to prepend it with ./ which denotes the currect folder.

Please check that the $PATH variable on both servers are the same.

Based on your comment about the $PATH variable I suspect that one of the scripts is in a folder that is found by the $PATH variable whereas the other is in another folder.

Attention

It is a bad idea to include ./ in your $PATH. This way a user can create a malicious command (such as ls) and guide you into the folder where he saves it. Then you will execute the local version instead of the system command (if the current folder is placed in $PATH before /bin).


Why does my OS hangs for less than a second?

It could be your graphics driver, but more info would be nice. Make sure you're watching the exact time whenever your system hangs. Then, you can check your logs (/var/log/syslog) to see what the issue is. As far as I know, nVidia drivers have been a problem for a while in Linux because nVidia doesn't want to open-source their drivers like AMD. Anyway, if your log at the time it hangs says something like "nouveau" then you can be sure it's a driver issue, so you might want to switch drivers

EDIT
Reinstalling GNOME appeared to fix the issue for OP sudo apt-get install --reinstall ubuntu-gnome-desktop


What is the /etc/apt/sources.list file supposed to look like for 10.10?

I'm running Kubuntu 10.10 as well, this comes from my sources.list. You should change nl.archive.ubuntu.com to your local mirror.

# deb cdrom:[Kubuntu 10.10 _Maverick Meerkat_ - Release amd64 (20101007)]/ maverick main restricted

# deb cdrom:[Kubuntu 10.10 _Maverick Meerkat_ - Release amd64 (20101007)]/ maverick main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://nl.archive.ubuntu.com/ubuntu/ maverick main restricted
deb-src http://nl.archive.ubuntu.com/ubuntu/ maverick main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://nl.archive.ubuntu.com/ubuntu/ maverick-updates main restricted
deb-src http://nl.archive.ubuntu.com/ubuntu/ maverick-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://nl.archive.ubuntu.com/ubuntu/ maverick universe
deb-src http://nl.archive.ubuntu.com/ubuntu/ maverick universe
deb http://nl.archive.ubuntu.com/ubuntu/ maverick-updates universe
deb-src http://nl.archive.ubuntu.com/ubuntu/ maverick-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://nl.archive.ubuntu.com/ubuntu/ maverick multiverse
deb-src http://nl.archive.ubuntu.com/ubuntu/ maverick multiverse
deb http://nl.archive.ubuntu.com/ubuntu/ maverick-updates multiverse
deb-src http://nl.archive.ubuntu.com/ubuntu/ maverick-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://nl.archive.ubuntu.com/ubuntu/ maverick-backports main restricted universe multiverse
# deb-src http://nl.archive.ubuntu.com/ubuntu/ maverick-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu maverick partner
# deb-src http://archive.canonical.com/ubuntu maverick partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu maverick main
#deb-src http://extras.ubuntu.com/ubuntu maverick main

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


AOC G2460PG on Ubuntu 20.04 640x480 Radeon 5700 xt

I found a solution.
Here are the modelines for your display:
  Detailed timing #1....... 1920x1080p at 85Hz (16:9)
    Modeline............... "1920x1080" 198,500 1920 1968 2000 2080 1080
    1083 1088 1124 +hsync -vsync
  Detailed timing #2....... 1920x1080p at 100Hz (16:9)
    Modeline............... "1920x1080" 235,500 1920 1968 2000 2080 1080 1083 1088 1133 +hsync -vsync
  Detailed timing #3....... 1920x1080p at 120Hz (16:9)
    Modeline............... "1920x1080" 285,500 1920 1968 2000 2080 1080 1083 1088 1144 +hsync -vsync
  Detailed timing #4....... 1920x1080p at 144Hz (16:9)
    Modeline............... "1920x1080" 325,080 1920 1944 1976 2056 1080 1083 1088 1098 +hsync +vsync

Check if they work with the following commands:
 xrandr --newmode "1920x1080_85.00" 198.500 1920 1968 2000 2080 1080 1083 1088 1124 +Hsync -Vsync
 xrandr --addmode DisplayPort-0 "1920x1080_85.00"
 xrandr --output DisplayPort-0 --mode "1920x1080_85.00"

If they work make a 20-monitor.conf at /usr/share/X11/xorg.conf:
Section "Monitor"
    Identifier "Displayport-0"
    Modeline "1920x1080_85.00" 198.500 1920 1968 2000 2080 1080 1083 1088 1124 +hsync -vsync
    Option "PreferredMode" "1920x1080_85.00"
EndSection

Section "Screen"
    Identifier "Screen0"
    Monitor "Displayport-0"
    DefaultDepth 24
    SubSection "Display"
        Modes "1920x1080_85.00"
    EndSubSection
EndSection

Section "Device"
    Identifier "Device0"
    Driver "amdgpu"
EndSection

That should fix your problem.
This page for monitor settings on the Arch wiki provides clarification


How to make the Asus PCE-N53 wifi card work with Ubuntu 16?

I have achieved some results right now. I have Ubuntu 16.04 LTS and Asus PCE-N53 card.

I have built a driver, using instructions from here:

https://github.com/mareksuscak/asus-pce-n53-linux

I had to fix 2 compile errors, changed this

pci_read_config_word(((POS_COOKIE)pAd->OS_Cookie)->pci_dev, offset, &Configuration);

to this

pci_read_config_word(((POS_COOKIE)pAd->OS_Cookie)->pci_dev, offset, (u16*)&Configuration);

in 2 places of a file rtmp_mcu.c

After installing the driver, I run this command:

sudo lshw -C network

I saw, that RT5592 PCIe Wireless Network Adapter was disabled.

I did this (enp3s0 is a logical name from the previouse command)

sudo ifconfig enp3s0 up

So after that I could scan wifi with

sudo iwlist scan

There were WiFi spots in the result.

So, the final step is:

sudo service network-manager restart

I have all WiFi spots in the network connections.


Looking for File in Folder with Command Line

You cd to your ~/Desktop/Programming directory, then you do

cd Desktop/Programming/HelloWorld.java

There are two issues

This is a relative path. You can only cd to a path starting Desktop if Desktop is a subdirectory of the current working directory - in this case, you're in a subdirectory of Desktop... The full path would be ~/Desktop/Programming/HelloWorld.java - this will refer to the file you want no matter what the current working directory is.

But if you try to cd to that, you will get the error is not a directory because cd means change directory to the following. So, what are you actually trying to do with that file? You can't cd to it.

If you do ls after cd Desktop/Programming, you will see your file, and you are ideally located to do whatever you like, for example

javac HelloWorld.java

to compile the code...


First run :

sudo rm /var/lib/dpkg/lock

Then:

sudo dpkg -r dassault-systems-fraftsight

If it is successful or not, then run

gksudo gedit /var/lib/dpkg/status

In the resulting Gedit, remove the whole section starts with :

Package: dassault-systemes-draftsight

Save and Close it.


You have to load the Ubuntu ISO on the usb using a software called "Unetbootin", oherwise there's no way it loads itself for installation, other than burning the ISO on a DVD

NOTE: I'm not sure this will work with Ubuntu 14.04!, it depends on Unetbootin being updated or not


Can Ubuntu be installed to the pendrive it was booted from?

I was too curious to wait for you to check if it works. So I tried and here is my result:

Yes, it works with the following recipe :-)

Create a live-only drive by cloning ubuntu-16.04.1-desktop-amd64.iso to a 32 GB USB 3 pendrive with mkusb
Add the boot option toram and boot
When running live, unmount all mounted partitions in the pendrive (in this case it was only one), run in a terminal window

sudo umount /media/{and press the TAB key for 'tab completion'}
# or
sudo umount /media/*/*  # if more than one partition

Check that all partitions on the pendrive are unmounted with

df

Start the installer with the desktop icon
Follow the instructions like any other installation
Reboot

I did it in a laptop computer with 4 GiB RAM in BIOS mode without any internal drive.

If there is an internal drive, things may be more tricky in order to avoid writing bootloading things to the internal drive, but this is not due to the fact that it is installed to the same drive as the system was booted from.

-o-

Edit 1: I tested in UEFI mode. The final 'Reboot' got stuck at the plymouth 'five dots'.

I waited for a couple of minutes and could finish gracefully with SysRq r e i s u b

and when rebooted, the installed system works. A better alternative is to

'Continue testing' instead of reboot
Flush the buffers in a terminal window

sync

Reboot the live system

and it finishes and reboots beautifully.

-o-

Edit 2: You find help how to add the boot option toram at this link,

How to unmount a live DVD/USB?


You need to tell the installer to install Grub to /dev/nvme0n1 (at least that's how it shows up on my NUC 5i5RYK with an NVMe drive. However, at least in my case, it appears the installer is broken as I still was not be able to boot into the newly installed system.

However, I did find two methods that fix broken Ubuntu 15.10 boot failure after initial install:

Use the GUI program Boot Repair:

The default or
"Recommended Repair" doesn't work, but I selected the "Advanced
Options" and uncheck "SecureBoot" but keep all other default options
then follow the instructions, the system correctly boots to the
newly installed OS.

Results available at
http://paste.ubuntu.com/14439023/
Install Ubuntu 15.04 first, then upgrade to 15.10. As an alternative
to  running Boot Repair, I found that if I install 15.04, run all
updates:

sudo apt-get update
sudo apt-get upgrade

then run

sudo do-release-upgrade -d

then 15.10 will successfully boot.


How can I stop another working webserver?

You could check first which program is using port 80 (default http port) with :

sudo netstat -tulpn | grep :80

And you will get something like

tcp    0    0 0.0.0.0:80    0.0.0.0:*    LISTEN    1547/nginx

For me is nginx, but it could also be apache2, lighttpd, or any other.

Next step is to now if it's running as service, which is an option in xamp.

service --status-all | grep nginx

If so, disable the service following instructions https://superuser.com/a/35160

If not, just kill the process, with kill -9 PID, being pid in the result from the first command, for me 1547 (1547/nginx)


Ubuntu 13.04 three-finger window moving not working anymore

Apparently this has been removed 'by design'. The bug mentioned by @Anthony has been set to "Won't Fix".

https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1172172/comments/16

It's bullshit, really.


When you are in the log in screen there should be gear(menu) button that opens a drop down menu. You should be able to pick your "flavor" from there.


VLC can't play MP4 files to Living Room TV through Chromecast

You can try to use a converter like Handbrake, sometimes there are presets for media streaming devices and such.


Enabling bluetooth on Compaq Presario C504EA

On viewing uname -a; lsusb; dmesg | egrep -i 'blue|firm' and lshw on the terminal, there is no mention of Bluetooth capabilities, so it would appear that the Compaq Presario C504EA is one of the models that wasn't Bluetooth enabled.


How to get Icon-Names for MIME-types in a bash script?

The icons are selected based on the mime-type name. The basic idea is that there should be an icon named application-pdf.png or similar in the path for the current theme.

For example, in my system there are a bunch of them, you can find them by

locate application-pdf | grep icons

Moreover, you can find the files for definition of characteristics of mime-types in /usr/share/mime/: for example for application-pdf you have /usr/share/mime/application/pdf.xml. I do not know if this file can contain an override for the icon.

I have published a little page for adding new MIME types, but I am not sure if publishing the link here is considered acceptable policy...


How to access existing files when you have booted from USB due to load kernel module error

If you choose "Install Ubuntu 18.04.04 LTS alongside Ubuntu 16.04.6 LTS"

AND you did not take the deliberate and detailed steps required to encrypt your /home directory,

you will be able to access the old files while operating in Ubuntu 18.04.04 LTS.

Most folks don't encrypt, and you'd know it if you did.


12.04.2 LTS Server failure during installation during "Detecting Network Hardware..."

After consulting with my brother, much deeper in Linux then I am, we discovered I committed a classic noob mistake... The existing wireless NIC was preventing the mobo-resident LAN interface from working correctly, causing the installation routine to stop working.

Solution: Pull the wireless NIC, then the installation routine completed successfully.


There's no need to reinstall the system. Just reset your password using the following guide:

I unexpetedly deleted administrator account and the other accounts are asking root password

(I mean Fernhill Linux Project's answer.)

You don't need to add a new user, but you should run passwd command to set a new password.


Hard Disk Spins Down as long as Battery is in Laptop

I think you need to eliminate if you have a battery problem. If you remove the battery and just run on the charger and the problem goes away it could be a battery that is pulling too much current and the system would go bonkers because the little external charger can't handle the load. You can check the battery by giving it a full charge then run on battery in Windows if you have Dual boot or a live CD other than Ubuntu. If you still have the problem it is probably the battery. If not it's likely a software problem. Good luck.  Maury


apt-fast upgrade not working in ubuntu 14.04

I think it is caused by your setting of Maximum number of connections in apt-fast greater than the max number apt-get or aptitude(depends on which one you use) allowed.

The solution is easy:

sudo vim /etc/apt-fast.conf
change _MAXNUM=100(in my case it's set to 100）to _MAXNUM=16 or some number less than 16


Can't get bigger resolution then 1152x864 when running Ubuntu 12.10 or 13.04 in Hyper-V

The maximum possible resolution for Ubuntu (Linux) running in Hyper-V is 1920x1080

Here is how you can change the resolution of Ubuntu (Linux) running in Hyper-V:

Open the Terminal and type: sudo gedit /etc/default/grub
Find the line starting with GRUB_CMDLINE_LINUX_DEFAULT, and add
video=hyperv_fb:1920x1080 (or your preferred resolution) in between
the quotes like this: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:1920x1080"
Save and Exit
Run sudo update-grub
Restart Hyper-V (restarting Ubuntu (Linux) might be enough)

This is for Ubuntu 14.04, but I think it will work for 12.10 and 13.04 too. Here is my original post.


Eve Online + Wine 1.6 (U 13.04): Offline mode

What is going on:

At bootstrap the game tries to load the libraries, it cannot find them and then crashes or does nothing.

Possible reason:
You are missing some libraries (redistributables and/or common DLLs) that must be installed first.

Proper installation steps:

Before you start you might want to read first about winetricks

From WineHQ database page (HOWTO - Eve Online install on Linux):

You will need to install a number of required libraries with winetricks.

"winetricks corefonts d3dx9_36 vcrun2005 vcrun2008 vcrun2010" if this does not work try:

wget http://winetricks.org/winetricks
chmod +x winetricks
"./winetricks corefonts d3dx9_36 vcrun2005 vcrun2008 vcrun2010"

wine Eve_Oline_Installer*.exe

Creating a new wine prefix

If you need/want to use wine different instances of "windows" for Eve.  (Important if you have a lot of games with various installed dlls, and overrides that conflict.)  Creating a new prefix is simple create the directory and add the WINEPREFIX to all wine and winetricks commands.

mkdir ~/wine_games
add "WINEPREFIX=~/wine_games/wine-eve" to all wine and winetricks commands.

Additional resources:

This guide is from EVE's wiki


I reinstalled Ubuntu, and I can't see my windows 8.1 anymore, where is my Windows files?

I had a problem, not with windows disappearing, but with it not longer booting.

To get Wiindows back (and for you to see if there is anything there to save) you will need to boot using your Windows installation media and start repair mode. If there is still a Windows partition it should find it and say it is on, e.g. d:\windows

For Windows7 - and from memory yesterday this was also for Windows8 (it has changed since XP (or Vista)).

Basically, once you are in repair mode AND it has found a Windows partition the commands you need to run (read what I ran yesterday and finally got my Windows7 back) are:

Select command line mode
enter bootrec twice as:

bootrec /fixboot
boot /fixmbr

Hope this helps!


Touchpad recognized as a mouse. Touchpad gestures don't work

This touchpad is not fully supported by Linux kernel yet.

There is no way to get multitouch working without writing a kernel driver.


Cron job running successfully suddenly reports script is not found

Not entirely sure if this will be of any help. But restarting your cron may/or may not help.

sudo service cron restart


The Open Source Radeon driver for some ATI/AMD graphics cards and APUs, "xserver-xorg-video-ati package" is already pre-installed in Ubuntu 16.04, and your video card's TURKS chipset seems to be fully supported with those drivers. You could also opt for (not recomeded) the closed-source, proprietary fglrx driver called AMD Catalyst, from AMD Inc. The Open Source Radeon driver supports some older chipsets that fglrx does not.

To configure screen resolution under Ubuntu 16.04:

>System Settings >Screen Display

Select the appropriate screen resolution there.


HDMI audio output not working in Ubuntu 16.04 LTS

You have to edit the sound setting and make audio out to hdmi.
Other wise sound will be from either ubuntu machine or ubuntu machine and hdmi both together.

Follow this blog, it should work.
I am looking for some automated solution too. Will update when found a better solution.

Fix No Sound Through HDMI In External Monitor In Ubuntu Linux


ssh on ubuntu 16.04 crashes after a few seconds

I found the problem. I had an IP address conflict on my local network with 2 linux boxes configured with the same IP address. Fixing this conflict fixed the ssh problem. It all makes sense now...  :-)


Accessing my samsung f480T through Nautilus

The phone probably has a "USB storage device mode" (or something similar) that will allow it to act like a USB hard drive when connected to a computer.


Disable a touch screen button on dell xps 11

If you run xev and then press the button, it will show you the key code that is being sent by that button.

Then you can run this command

 xmodmap -e 'keycode number = NoSymbol'

where you replace "number" with the keycode shown.


Ubuntu 19.04 + Gnome 3.32 = How to get dynamic transparency to dock and top bar back?

Edit 2019-05-17: as of Ubuntu 19.04, the Dynamic transparency feature of Dash To Dock does not seem to work. You can set a custum, fixed opacity only.
end edit

As the feature has been removed, you will need to adjust transparency separately for the dock and for the top bar, and play with the settings for each of the items to make them match

Dock
The easiest way is to install the Gnome Shell extension Dash to Dock. Ubuntu Dock is based on Dash to Dock and uses the same settings. However, Dash to Dockexposes plenty of configuration options that allow you, among others, to set dynamic transparency. You can easily install Dash to Dock with the terminal commandsudo apt install gnome-shell-extension-dashtodock`.

To enable the extension and access the configuration settings, make sure you have Gnome Tweaks (or just "Tweaks") installed. On the extensions tab of Tweak, you can enable or disable the installed extensions. Click on the cog next to an extension to customize.

In the Dash to Dock options, you will find the option to customize transparency (or opacity) on the "Appearance" tab. Next to "Custom opacity", you can turn on dynamic opacity.

Finally, make sure you disable either Dash to Dock or Ubuntu Dock. Otherwise, you will be running two docks.

Top bar

Because it is a feature removed from the stock Gnome Shell, one can bring the feature back in with a Gnome Extension. The fully updated Gnome Shell extension Dynamic Panel Transparency will fill your needs.

As the extension is not included in the default software source, you need to install it from the website. This is not possible in a default Ubuntu install. As I did not locate another Askubuntu post that may describe how to enable the installation of extensions from the Gnome extensions website, I mention it briefly here:

Install the host connector. You can do this easily in de terminal with the command sudo apt install chrome-gnome-shell
Install the gnome shell integration in your browser. The procedure depends on the browser you use.

Now, you should be able to install an extension merely by clicking the "On/Off" button on the extension's site.


How to delete entries after uninstalling softwares

These files are for configurations. You can delete them which means that if you re-install the software you will have the default instead of yours previous configuration.

1) To delete them:
  - Open nautilus (Alt + F2 and type nautilus),
  - Press Ctrl + H to show the hidden files,
  - Right click over the folder to delete,
  - Choose "Move to Trash"

2) Yes, the configuration will be used.

3) Yes, as referred in "1".


exactly the same thing happens to me.

When you are in the black screen press ctrl+alt+f4

Type your user and enter.

Type your password and enter.

Type startx and enter.

I know it's not a solution but for now it allows me to use my computer.


reset of full-speed USB device using ehci-pci kills Bluetooth

This means there is some kind of issue with the underlying USB bus. I have seen this happen with USB cameras or mice that had damaged wires or internals. Essentially, something at a very low level is sending or receiving corrupted USB data, so as a last resort Linux resets the USB connection.

To complicate things further some systems implement their Bluetooth controllers are USB controllers, which is likely why its' affecting both.

For technical details see this Unix Exchange post.

It's possible that updating your PC firmware could resolve the issue. I would look at the available new versions of your BIOS from your manufacturer and see if they mention improvements in USB or Bluetooth stability. The process of upgrading the firmware/BIOS should involve putting a file onto a USB thumb drive and rebooting, but it depends on your system. There is also the fwupdate command in Ubuntu which can tell you if new firmware exists possibly for the Bluetooth device itself.

Assuming this keeps happening you can at the very least try reloading the kernel module associated with Bluetooth to avoid a complete reboot. You'll have to determine which module is being used for Bluetooth, you likely can get that from lsmod | grep blue, and then you can do the following to reload the module instead of rebooting:

sudo rmmod name_of_module
sudo modprobe name_of_module

If you get an error trying to rmmod you can try passing the -f option to "force" the removal of the module, although with anything in Linux once you start "forcing" something may be creating additional problems and your mileage may vary.


How to execute a script every time the terminal opens?

This can be done in multiple ways.

Probably the simplest one is to add call to your script at the end of .bashrc file, as stated in the comment. However, this will cause your script run not only when a terminal starts up, but also when you for example log in to the text console (reachable by pressing Ctrl+Alt+F4 for example), or when you log in remotely via ssh. If you don't use any of these, or if it is OK for you to run script in these cases also, then you don't need to look for other options :). If you however want the script to run only when terminal window is opened and not in any other case, then you can use one of the two other options:

You can add the line bash -i at the end of your script and then use the following command to start terminal: gnome-terminal -e /path/to/your/script (you may even edit the menu option that launches the terminal to include this parameter)

You can add the line bash -i at the end of your script (as in option 2) and then edit the default profile in the terminal. On the "Command" tab, check "Run custom command instead of shell" (the exact English wording may be a bit different, I'm using a non-English language version of Ubuntu), and below in the "Custom command" field, type the path to your script.

These are the methods that come to my mind right away. Probably there are more...


How to use Super key alone to switch layouts and use Super key in shortcuts in Ubuntu 18

The way the super key behaves in Ubuntu 18.04, and in Gnome Shell, should not prevent you from defining your own hotkey combinations that involve Super as amodifier key. In fact, several hotkey combination involving Super are already defined by default. Nothing prevents you from adding your own.

This is because Super will trigger the Overview only once released. If you press the key, then press another key, a keyborad combination will be send, that you can assign to your custom script using Settings - Keyboard.

That said, you can disable the special action of the Super key alone with gsettings:

gsettings set org.gnome.mutter overlay-key ''

You still can open the overview using the build in hotkey Super+s or with Alt+F1

If you wish to use Super on its own but for another function than showing the dash, you need to resort to a utility ksuperkey. That utility allows you to redirect pressing and releasing the Super key to any other hotkey, which then can be assigned your custom function. Use of that utility requires disabling its normal function with the gsettings command shown above.


Is there a Powerpoint (PPT) to text/html converter?

Just found a python based command line converter called unoconv (install from Software Center or with apt-get)
 which will allow you to convert from and to anything openoffice can deal with including ppt, txt and html plus as it is cli based so you can batch process nicely :)

Homepage of unoconv


Screen flickers in response to P, can't bind it to anything

If you are lazy just paste this on terminal:

gconftool-2 --type bool --set /apps/gnome_settings_daemon/plugins/xrandr/active False

The Super+P press is handled by gnome-settings-daemon.

Using gconf-editor, find the following conf key:

/apps/gnome_settings_daemon/plugins/xrandr/active

and set it to false (not checked). The change should be effective immediately after the edit.

References: 1, 2.


Here are some things I tried, when I could not get Unity and Thunderbird integrated.

Please check to see that global menu is installed.
You can run sudo apt-get install thunderbird-globalmenu to get a message that it is installed, or it will be installed.

You can also try uninstalling and re-installing Thunderbird.

You could also try this: try removing the Thunderbird version that is currently installed. and add the ppa provided by mozilla team using

sudo apt-add-repository ppa:ubuntu-mozilla-security/ppa

The Thunderbird menu will take over the top menu.


Running "python3 setup.py bdist_wheel" on a /mnt/c/... path results in a "Errno 13 Permission Denied" error

I had it pass by specifying a temporary directory that is not under /mnt/c.

One can use the following:

python3 setup.py bdist_wheel --bdist-dir ~/temp/bdistwheel


Dropbox requires Nautilus to be restarted for its integration. If clicking on Restart nautilus doesn't work for some reason, just logging out and logging back in would restart Nautilus and solve your problem.

Once logged in, Dropbox would autostart and ask you to connect to your account to proceed further.


Ubuntu 13.10 installer/live fails to boot from DVD/USB on UEFI

If you get to the grub menu (NOT the syslinux linux menu) in UEFI mode with secure boot on, you have booted.  Your machine has successfully run the Microsoft signed shim.efi, which has successfully run the Canonical signed grubx64.efi.  Now I know of some problems with getting chainloader to successfully run anything, but that's not your problem.  Sounds like a video problem, so at the grub menu, type "e" to edit (instructions at bottom of screen), and try entering nomodeset where the "quiet splash" occur on the linux kernel line.  Other things to try:

nomodeset
acpi=0
acpi_osi=linux
acpi_backlight=vendor
noalpic
i915.i915_enable_rc6=1
video=1280x1024-24@60
video=VGA-1:1280x1024-24@60

Good luck.


I do this sort of thing all the time. Some tips:

You need to read the documentation, such as the sites Bujiraso referenced.
A tool like system-config-lvm (which is available with Ubuntu, but IIRC is not installed by default) can help by providing a GUI that makes it less necessary to remember the dozens of LVM text-mode commands (or even the half-dozen you're likely to use frequently). See this page (for CentOS, but applicable to Ubuntu) for information on using this tool.
Remember to create a separate /boot partition -- that is, not in the LVM setup. Make it at least 500 MB in size. (Over 1 GB would be overkill, though.) If there's any chance you'll ever install multiple Linux distributions (including future Ubuntu versions installed side-by-side with your current installation), be sure you set aside at least one to-be-/boot partition for each installation. (In theory, GRUB can boot from a kernel stored inside an LVM, but in practice this is rarely done, and I don't know how well Ubuntu would cope with this configuration. Some boot loaders don't enable booting in this way, so having a separate /boot partition expands your boot loader options.)
If you're using an EFI-based computer, you'll need a non-LVM EFI System Partition (ESP). I recommend making this one 550 MiB in size.
If you're booting from a GPT disk in BIOS/CSM/legacy mode, you'll need a ~1 MiB BIOS Boot Partition. On modern computers, I don't recommend this combination (BIOS-mode booting with GPT); most computers sold since late 2011 support EFI-mode booting, so I'd use that on such computers.
You can (but do not need to) create multiple LVM partitions (physical volumes). This gives you some flexibility for reconfiguring the system for multi-booting with non-Linux OSes in the future (or to split off space for additional /boot partitions, ESPs, etc). There's little or no advantage to this if you want to have one big Ubuntu installation; but for a heavily multi-booted system, having multiple PVs means you won't need to resize your PV to make room for some non-Linux OS you add in the future; just be sure one PV is empty, remove it from the volume group (VG), adjust its partition type code, and create a new filesystem on it.
You can boot the Ubuntu installation medium in its "try before installing" mode to use GParted and the LVM tools of your choice, then launch ubiquity (the Ubuntu installer) from the same boot to do the installation. Use the "something else" partitioning option (as described here). If the partition type codes are set correctly, Ubiquity should detect the ESP automatically, if it's present, and show the existing LVs. You'll need to explicitly identify your /boot partition and each LV you want to use.


Unable to run *.run intallation packages

This is likely due to the permissions on your external drive.  As indicated by your file path, it's a directory in /media/$USER/MY PASSPORT.  WD makes My Passport drives, but they create NTFS by default.

NTFS does not support the +x executable bit.  No NTFS supports the capability to execute with just doing a chmod +x.  You will need to mount the drive with the exec mount option, which permits execution of files.

You may also wish to just copy the .run file to your actual home directory and execute it from there:

cp '/media/sepanta/MY PASSPORT/Linux/64/qt-opensource-linux-x64-5.5.1.run' ~
cd ~
chmod +x ./qt-opensource-linux-x64-5.5.1.run
./qt-opensource-linux-x64-5.5.1.run


how do I install 12.04 when I am using 13.8?

You cannot do a downgrade (from whatever version 13.8 is; there is 13.04, which is EOL, and 13.10). You will have to do a full re-install.


Where is the install location for the "snap" download tool?

I added /snap/bin to $PATH. That worked for opening VS Code from the CLI.


How do we test after upgrading to 1.0.1-4ubuntu5.12 (any possible testing commands to know the configuration works after upgrade?)?

SSLlabs tests for Heartbleed:

https://www.ssllabs.com/ssltest/


Why won't ls display output in multiple columns, for some directories?

As you may have found and as sudodus mentioned, --color=never prevents colorized output. However, it's not obvious if or how this is related to the number of columns being displayed.

You mentioned trying -c. That flag specifies a sort order and is unrealted to printing in multiple columns. The flag to print in columns is -C (i.e., a capital C). You may want to try this if you haven't, but I suspect it won't help in this particular situation.

Usually when you can't get ls to a directory's contents in multiple columns, it's because there's at least one file whose name is too long to fit while permitting a second, properly aligned column to be shown in your terminal.

Typically you simply won't want multiple columns displayed in that situation. The output wouldn't make much sense that way.

If that's what's happening, then you can list files in multiple columns by:

Increasing your terminal's width. If you're using a graphical terminal emulator, it's nearly always sufficient to just make the window bigger and run ls again. This usually works even over SSH.
Listing only some of the files. For example, perhaps you only really need to see files that end in .txt, and the files with really long names don't have that suffix. Then you could use ls *.txt.

If you've tried all this and are sure that's not what is going on and that the problem is caused by something you changed while configuring the colors used by ls, then more information will be needed. In particular, you'd have to specify what changes you made, show any files in which they were made -- or at least the relevant portions -- and provide the output of type -a ls.


Ubuntu 17.10 - Ultrawide 21:9 resolution on Wayland

Choose Xorg session at login, and your old method will work.
I currently don't know a solution that works with Wayland.


what causes this error by `apt-get update`

Whenever we add a repository for installing packages we also need a GPG key used by apt to authenticate packages for security reasons.

When adding a Launchpad hosted PPA this key will automatically be downloaded to use. So we do not have to do anything in addition.

This is different when adding an external repository such as the Oracle repository for Virtual Box. We then have to manually download and add the signing key. To do this the following steps are involved:

add the repository to our sources
download the GPG key
add this key for authentication
update our apt cache
install the desired software package

There are many different ways to achieve this, from command line or with graphical tools which I will not further elaborate here.

For adding the key there is a single-line command from the Virtual Box download page which always had worked for me:

wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -


git: ascii special characteres displayed wrong (inverted ESC)

For many people, the desired behavior of a simple git show eab24c62075505a is to show it in some pager, e.g. less by default; that is, without having to manually redirecting the output. This is achieved by git internally calling the pager.

Make sure your pager is less (it probably is), and also make sure that this less recognizes and handles colors by using its -R option. You can achieve the latter by exporting the LESS environment variable (e.g. export LESS=-R), or by setting PAGER or GIT_PAGER accordingly, such as export GIT_PAGER='less -R').


Ubuntu live usb, with persistent memory?

Yes once the Live version is up and running there should be an ICON on the desktop you can click to install the OS permanently, follow the instructions.


Is there a working uPnP client/server combo?

Here's a working combination I found:

MediaTomb as the server (package mediatomb). I think almost any of the available uPnP servers should work but this is the one that was working when I found a client.

For clients I used Totem (for video) and Rhythmbox (for audio). I had to install and enable plugins for each of these to be used as a client.

The "Coherence DLNA/uPnP Client" plugin for Totem is packaged in totem-plugins-extra. Once you have installed and enabled it, uPnP servers are shown in the sidebar, a fact that does not appear to be documented and is not easy to discover.

for audio, the "DLNA/uPnP sharing and control support" is packaged in rhythmbox-plugin-coherence. Once enabled, a "Shared" category appears on the left hand side (under Playlists) listing the uPnP servers.


Does dd or shred do any harm to the physical media of a hard disk?

They change the physical state of parts of the drive (changing the intensity of the magnetic fields in a mechanical drive and the amount of charge of the electronic fields of a flash drive), that's how those stuff even work, although I don't think that's your question.

The use of things also consumes them, but I don't think that's your question either.

There's no direct harm those tools do to storage drives, but refrain from running them constantly on flash drives, because their cells suffer from a limited number of possible program-erase cycles before break.


I would try keeping Chrome OS because this will avoid having to configure the hardware if you remove it. Then install your preferred Ubuntu flavor via Crouton.

Source: https://github.com/dnschneid/crouton View targets or desktop environments:

sh ~/Downloads/crouton -t help

View available releases (I believe 'help' also works.):

 sh ~/Downloads/crouton -r list

Then I would just install the needed server packages. How to make a home server using Ubuntu desktop?

You may want to choose to install CLI only and build from there:
https://github.com/dnschneid/crouton#i-dont-always-use-linux-but-when-i-do-i-use-cli (The crouton page is full of beneficial info.)

You will want to keep the laptop from sleeping. This may be problematic.https://github.com/dnschneid/crouton/issues/210

It looks like eliminating Chrome OS and just installing Ubuntu is involved and possibly risky.

(If it doesn't work out, you may want to just spend $70 on a Raspberry Pi instead to use as a server.)

I hope it works out!


Why install the tar version of Thunderbird?

Thunderbird is available in Ubuntu Software Center:

This is the best version for Ubuntu and has been tested by many many users before you.

EDIT If you want bleeding edge: Thunderbird 5 hits beta and a PPA has been provided for Ubuntu 10.04, 10.10 and 11.04.

Highlights:

New Addons Manager and extension management API (user interface will be changed before final release)
Tabs can now be reordered and dragged to different windows
Revised account creation wizard, offering improved set-up
Attachment sizes now displayed along with attachments
New troubleshooting information page to aid supporting and diagnosing problems in Thunderbird
Plugins can now be loaded in RSS feeds by default

Installation:

sudo add-apt-repository ppa:mozillateam/thunderbird-next
sudo apt-get update && sudo apt-get install thunderbird

As should be expected when using development releases, be aware that some extensions installed in earlier builds of Thunderbird may be incompatible and/or require updates to work with Thunderbird Beta.

What are PPAs and how do I use them?


Login Problem after changing some settings

root is not designed for auto login, it was designed for password login.  Remove auto login for root, and this should resolve your issues.


Ubuntu 18.04 boot error: syntax error: unexpected end of file when loading .profile

The problem is lines 32 and 33:

  unexpected EOF while looking for matching "

Somewhere on line 32 a " hasn't been closed (or opened), and it's causing an "unexpected end of file". It's hard to say what exactly needs to be changed without being able to read your .profile.

Since you can't get past this error, you'll need to switch to another console with ctrl+alt+f1. Login then open it up with vim /home/moloy/.profile to find the error and edit it.

(vim will show you which line your cursor is on at the bottom and hopefully make things easier to spot with syntax highlighting.)


I tried to install git in my machine but i got a error message like below?

first of all u need to remove some dependency which was conflit using

sudo apt-get autoremove

sudo apt-get autoclean

sudo apt-get clean

Then add the Thirdparty Repository Using

sudo apt-get install build-essential

sudo apt-get install python-software-properties

sudo add-apt-repository ppa:git-core/ppa

While adding this Press Enter

sudo apt-get update

sudo apt-get -y install git git-man git-svn

Now your git will work fine..


"SASL authentication failed" with mutt and Gmail, why?

This

set smtp_url = "smtp://name@smtp.gmail.com:587/"

should probably be

set smtp_url = "smtps://username@domain.ex@smtp.gmail.com:465/"

2 differences:

use smpts and not smtp;
it is not clear if you meant that but name in your command should be like xxx@yyy.zz (not just the xxx in front of the @)

Also make sure

openssl
libsasl2
gnutls-bin

are installed.


Is there a Linux utility for monitoring hosts with GUI?

One of the best tools for network exploration (and security auditing) is nmap. This is a command line tool. People using this tool (without a GUI) are usually either hackers or network security experts.

For a list of GUIs based on nmap, see this answer.


How do I configure laptop lid closing event to turn off screen but not put computer to sleep?

HandleLidSwitch=ignore does just that: it ignores lid behavior.  So the screen will not turn off if you use this method.

The following answer is adapted from this source

You will need to write a script:

In a terminal, create the file /etc/acpi/lid.sh, make it executable, and instruct your system to reference this file for the behavior of lid "events":

sudo touch /etc/acpi/lid.sh
sudo chmod +x /etc/acpi/lid.sh
sudo echo 'event=button/lid.*' | tee --append /etc/acpi/events/lm_lid
sudo echo 'action=/etc/acpi/lid.sh' | tee --append /etc/acpi/events/lm_lid

then, open the script for editing:

sudo nano /etc/acpi/lid.sh

The contents of this file should be: (replace your_username with your username)

#!/bin/bash
USER=your_username
grep -q close /proc/acpi/button/lid/*/state
if [ $? = 0 ]; then
  su -c  "sleep 1 && xset -display :0.0 dpms force off" - $USER
fi
grep -q open /proc/acpi/button/lid/*/state
if [ $? = 0 ]; then
  su -c  "xset -display :0 dpms force on &> /tmp/screen.lid" - $USER
fi

CTRL + O to save and CTRL + X to exit.

Reboot your system.

This may not work with multiple users.


System Settings > Privacy > disable Record Activity (in the bottom-right-corner).


How do you backup your encrypted home folder?

If you are logged in then your homefolder is unencrypted, and you can backup like normal.

The only protection an encrypted home folder provides is when the computer is off and you haven't entered the password yet.

I just rsync my home folder to an offsite location so that it is safe and sound should I ever need to restore it.


I think the fix for the internal wifi is to
sudo apt install git dkms
git clone https://github.com/lwfinger/rtlwifi_new.git
cd rtlwifi_new/
git checkout extended
git checkout 0a751e3
cd
sudo dkms add rtlwifi_new
sudo dkms install rtlwifi-new/0.6
echo "options rtl8723de ant_sel=2" | sudo tee /etc/modprobe.d/rtl8723de.conf
echo "blacklist rtw_pci" | sudo tee /etc/modprobe.d/rtw_pci.conf
Reboot


Look for Transmission in /usr/share/applications.

Specifically look for transmission-gtk


How do you resize the standard Ubuntu Desktop inside of Virtualbox?

Inside the virtual machine, install the virtualbox-guest-dkms, virtualbox-guest-utils and virtualbox-guest-x11 packages. These "guest additions" include a video driver that will do what you ask, plus a mouse driver that interacts with the host system so you don't have to use the host key to "uncapture" the mouse; it just works when you're on the virtual machine's window.
There are 2 ways to do this:

From the VirtualBox top menu choose Devices, Install guest additions, then wait for a mock-CD ROM to appear and run the install from there, or

just type
sudo apt-get install virtualbox-guest-dkms virtualbox-guest-utils virtualbox-guest-x11

(personal recommendation: the second (apt-get) option is very simple and quick).


Kubuntu 16.10 - wifi stuck on 'waiting for authorization'

Try this if you have network-manager enabled :

sudo nmcli dev wifi

to find your wifi ssid and

sudo nmcli dev wifi connect <your ssid> password <your pass>

Looks like network-manager is waiting for root permission.


Steam fails to launch after installing OpenGL drivers

Steam is almost impossible to run without proprietary drivers (in my experience).  You should be able to re-install them through:

System Settings... --> Software & Updates --> Additional Drivers


ASUS windows 8 desktop dual boot is not working

This guide should be helpfull:
https://help.ubuntu.com/community/UEFI
have you tried the boot menu?
32bit will not boot with 'secure boot' enabled in the bios, if a system has a windows 8 sticker it has the option and is enabled


If you installed Ubuntu inside Windows (via Wubi), follow this guide.
Else, you can uninstall any OS (Ubuntu, Windows...) via this little tool: OS-Uninstaller


Can't boot XP after Ubuntu Installation, how to fix?

Boot into a live CD and run this

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

Install Use the Advanced options

To start using gksudo boot-repair

source


this smells like hardware problem. The motherboard and graphic card should be fine, as the external monitor is working. It cant be a driver issue as not even the bios is displayed. Either the screen is broken or it is a cable issue. Good luck.


Ubuntu 16.04.2 shutdown wait for 10 minutes after the step 'Stopped LVM2 metadata daemon'

I had the same problem a couple of days ago.
What I did to work out this issue was quite simple. Just edit the /usr/share/unattended-upgrades/unattended-upgrade-shutdown file at the line 120 this way:

Before: if apt_pkg.config.find_b("Unattended-Upgrade::InstallOnShutdown", False)

After: if apt_pkg.config.find_b("Unattended-Upgrade::InstallOnShutdown", false)

I hope it works for you too.


I found the bug which coses my problem
https://bugs.launchpad.net/ubuntu/maverick/+source/xserver-xorg-input-evdev/+bug/636311
Ohh and by the way its not related to Qt
and upgrading xserver-xorg-input-evdev from the xorg-edgers ppa fixed my problem.


Wifi keeps disconnecting on ubuntu 15.04

I had the exact same issue. Mine is Lenovo G40. Check following

lspci -nn | grep Wireless

if it is RTL8723BE, following solution should work:

 sudo gedit /etc/modprobe.d/rtl8723be.conf

When the terminal window opens, copy paste this in:

#Prevents the WiFi card from automatically sleeping and halting connection
options rtl8723be fwlps=0 swlps=0


Can I play OGG or WAV files using PulseAudio?

No.
Pulseaudio is a low-level "driver", or better, a "layer" that exists between applications and ALSA(Advanced Linux Sound Architecture) used to direct and mix sounds. For example, a game needs to make a noise. It sends this noise to pulseaudio(or another layer which it uses if it is made differently), and pulseaudio mixes and sends to ALSA, which interfaces with your sound card. While you could write your own application, you are better off using banshee  or vlc . While writing software to interface with pulseaudio is beyond the scope of my knowledge, you can try using this extra reference.


If I stop moving my (USB)mouse, it stops working until I click

Yes, I encountered this same problem (although in a different way).

In my case it was due to agressive powersaving on USB ports.
This was something I did (to) myself.

If you want to change this behaviour (which, I guess, you do), you could create a permanent settings file to force USB always on.
Open a root console and type (or copy/paste):

echo 'ACTION=="add", SUBSYSTEM=="usb", TEST=="power/control" ATTR{power/control}="on"' >/etc/udev/rules.d/usb_power_save.rules


The syntax to run a jar-file is

java -jar jarfilename.jar

Not sure if the order java filename -jar causes the problem, but you could try change it.

Did you make the jar executable?

sudo chmod a+x file-to-make-executable

Navigate to the folder that holds the jar-file and run that command.

Hope this helps


Ubuntu 16.04 - Wifi Disconnection - Script To Fix

My bash script https://github.com/waltinator/net-o-matic.git - "Watch for (WiFi) network going down, then do a user-specified thing to fix it."

should help


How to cycle through and open, open windows?

You can make use of the key above Tab, if you are using a US keyboard layout that would be Alt+`. It cycles through the windows.


Instead of fiddling with all those files, I simply did the following two steps:

added the folders I needed to a group in which www-data is a member of and granted the group both read and execute permissions (for some reason execute was not enough), thanks Brian
Added what I originally had in my alias.conf to apache2.conf

Obviously I first removed all the havoc I had created in my previous attempts.


xf86OpenConsole: Cannot find a free VT: Invalid argument

You can't start X like this in container-based virtualization like OpenVZ. Use full hardware virtualization like KVM (also available in Proxmox) instead. It will then offer you a virtual video card accessible over VNC or a Java applet.


Sounds like this bug https://bugs.launchpad.net/unity/+bug/931171. I think we should wait till this fixed.


configuring wireless on command line interface

You will need the wpasupplicant package in order to connect to a network secured with wpa or wpa2.

Listed by order :
1 : sudo iwlist scan

2 : sudo iwconfig <interface> essid "my network"
iwpriv <interface> set AuthMode=<WPA2PSK or WPA2AES>
iwpriv <interface> set <WPA2PSK or WPA2AES>='WPA PASSPHRASE'

3 : sudo iwconfig <interface> essid "my network"
ifconfig <interface> inet <ip> netmask <mask>
then set a route to your gateway route add <destination> gw <gateway ip>


TSC_DEADLINE disabled due to Errata - when "trying" Ubuntu

In such case try to upgrade the BIOS of your motherboard - as it should contain newer microcode.


How to install Radeon Open Source Driver?

Removing the watermark is very simple with a bit of cut and paste, then a command:

How to remove the “AMD Testing use only” watermark?

If you did want to use the open source drivers (which are not as feature complete) you just need to remove the fglrx driver:

sudo apt-get remove fglrx*

then ensure the open source one is installed. It should then be picked up:

sudo apt-get install xserver-xorg-video-ati

The problem with the HD 7000 series is that support for it in the open source driver only arrived around Christmas, so unless you are running the xorg-edgers PPA you would be better off with just removing the watermark for now.


Possible with x2x to have cut/paste work between Ubuntu PCs?

It seems that either not many people use x2x and/or perhaps it's not possible to have cut/paste support with x2x.
So, to answer my own question I moved from x2x to Barrier and I can confirm that this does support cut/paste. And of course there is a Windows version so it works Ubuntu/Ubuntu as well as Ubuntu/Windows.
It's a great bit of software and it can be used/configured manually via CLI or via the GUI.
Thoroughly recommended to anyone who wants to easily control multiple PC's/laptops on a desk with a single mouse/keyboard.


As you can see you're not using proprietary/binary driver for your video card you're using an open-source driver nouveau and bugs are acceptable it cannot guarantee 100% of reproduction for your video card, all the bugs you can submit to Launchpad if you wish to stay with nouveau you might consider adding Xorg-edgers ppa for the latest nouveau bug fixes and updates you can find ppa detailed description in Launchpad. Or consider installing proprietary/binary driver for your video card.


apt-get working with organization network but now with home network (Ubuntu guest Virtual Box)

sudo gedit /etc/apt/apt.conf and move all the contents there to a text file in some place so that apt.conf contains nothing. now your apt-get will fetch in home network. if you want to work in the previous proxy, restore the lines from the text file you have created. these are exactly the proxy configuration for apt.


Difference between Mate installation packages

ubuntu-mate-desktop is a comprehensive suite of software packages that will get the MATE environment up and running on your Ubuntu installation.

This includes many applications that are NOT part of MATE per-say but give you an overall useful environment to work in. Things like office productivity, web browser, games, etc.

mate-desktop-environment is a limited suite of software packages that MATE can integrate with nicely.

ubuntu-mate-desktop includes most, if not all, of mate-desktop-environment.
mate-desktop-environment does not include the non-MATE related/integrated components of ubuntu-mate-desktop.

mate-core is the bare bones MATE installation.

mate-core in included in both mate-desktop-environment and ubuntu-mate-desktop

mate-desktop-environment-extras, mate-dock-applet, andmate-applets` are a small selection of software to make MATE reasonably user friendly.

They are not necessarily included in mate-desktop-environment and ubuntu-mate-desktop.
They would be considered optional extras that add visual, integration and usability tweaks in addition to the basic requirements of the mate-desktop-environment and ubuntu-mate-desktop packages.

You can find out exactly what each package mentioned above would install on your system by running apt install -s followed by the appropriate package name.  The -s is a simulation of what would happen. There's not much point in listing each and every component here, partly because the output would depend on what is already present on your system.


How to get rid of multiple linux versions in grub boot menu

I would suggest that you always keep not only the latest kernel, but also the previous one.
This way if at some point you find issues with latest kernel, you can still 'downgrade' your system to the previous stable configuration.


Error when trying to run snap install from ubuntu on docker

You need to at least have snapd running in the container for a snap install to work as the snap command mostly sends restful messages to snapd to get things done.

Look at the service unit for snapd to see the parameters and environment setup required to run.

PS: This might get installation working, but the next hurdle will be stacking security profiles from docker and snapd


Of all things... it was the wireless keyboard interfering with mouse.... Unplugged the adapter and plugged it back in --> success

Devastated it was that simple after reinstalling the OS...


How can I assign Super key + Up / Down to volume up/down?

You can reassign the "Super" key that does the launcher key to another key such as Alt.  When you do this the "Super" reverts back to whatever your keyboard short-cuts is defined.

Alt + F2

type

gconf

click on the gconf-editor icon revealed in the dash

navigate to

/apps/compiz-1/plugins/unityshell/screen0/options/show_launcher

change the value from  to whatever key you wish to reveal the launcher


Sure you can. Just boot a live system (e.g. your installation medium), delete the windows partition and resize the Ubuntu partition. You can do this with GParted.

After that you might need to edit the /etc/fstab on your Ubuntu partition to set the new UUID of the resized partition - if it changes. You get all the UUIDs with sudo blkid

Then you can reboot and your Ubuntu should boot.


How can I set up ubuntu to switch back to English after a few minutes of inactivity?

That is very well possible, with the help of a background script, using xprintidle, which returns the current idle time.

You will need to install it first:

sudo apt-get install xprintidle

The script below reads the output of the command xprintidle and sets your keyboard whenever the set time is passed.

How to get the keyboard to be set (index)

To create the correct command, the script needs to know the index of the targeted keyboard. To get that, run the command:

gsettings get org.gnome.desktop.input-sources sources

The output will be something like:

[('xkb', 'us+intl'), ('xkb', 'us'), ('xkb', 'nl')]

Now if you want to set the last one after x time, its index is 2, since the first item in a list is always 0.

How to use the script

As mentioned, first install xprintidle
Copy the script below into an empty file
In the head section of the script, set:

the index of the targeted keyboard language, as explained above
the idle time after which you will change the keyboard language (in seconds)

Save the script as change_kb.py
Test-run it from a terminal by the command:

python3 /path/to/change_kb.py

If all works as expected, add it to your startup applications: Dash > Startup Applications > Add

The script

#!/usr/bin/env python3
import subprocess
import time

#---
kb_id = 2       # set the targeted keyboard index (first = 0)
set_time = 300  # idle tim in seconds
#---

get_t = lambda cmd: subprocess.check_output(cmd).decode("utf-8").strip()

t1 = int(get_t(["xprintidle"]))
idle_t = set_time*1000

while True:
    time.sleep(1)
    t2 = int(get_t(["xprintidle"]))
    if all([t1<idle_t, t2>idle_t]):
        cmd = "gsettings set org.gnome.desktop.input-sources current "+str(kb_id)
        subprocess.Popen(["/bin/bash", "-c", cmd])
    else:
        pass
    t1 = t2


You try to connect automatically to a network that is secured by a password, so you need authentication. Since you see this message either you did not enter the password at all in your networkmanager or you did enter a wrong one.


How to import new lensfun correction file to darktable installed using snap

Thanks for your follow-up. I would like to add some information I found on top of your findings:

snap local directory can be found in

~/snap/darktable/current/.local/share/lensfun

I also found that only creating your own config file was not enough. You have to copy everythin from the snap directory to the local configuration directory, because it replaces the snap database:

cp /snap/darktable/current/usr/share/lensfun/version_1/*.xml ~/snap/darktable/current/.local/share/lensfun/

Be careful not only with the syntax of the file (different from v2 to v1) but with the content. The v2 profile for my lens did not match its actual focal length and apparently darktable/lensfun 0.3.2 do not like it.


Ubuntu Server 12.04, MDADM device number suddenly changes?

First: you are probably having errors in your array.  You need to check its status, immediately.

Example:

root@locutus:~# mdadm --detail /dev/md0
/dev/md0:
        Version : 1.2
  Creation Time : Fri Jun  1 15:30:31 2012
     Raid Level : raid10
     Array Size : 1953119232 (1862.64 GiB 1999.99 GB)
  Used Dev Size : 976559616 (931.32 GiB 1000.00 GB)
   Raid Devices : 4
  Total Devices : 4
    Persistence : Superblock is persistent

    Update Time : Sun Nov 25 21:39:44 2012
          State : clean
 Active Devices : 4
Working Devices : 4
 Failed Devices : 0
  Spare Devices : 0

         Layout : near=2
     Chunk Size : 512K

           Name : locutus:0  (local to host locutus)
           UUID : b81ac63a:51a9b01c:c01812ec:86c534c4
         Events : 182

    Number   Major   Minor   RaidDevice State
       0       8        1        0      active sync   /dev/sda1
       1       8       49        1      active sync   /dev/sdd1
       2       8       17        2      active sync   /dev/sdb1
       3       8       33        3      active sync   /dev/sdc1

You will very likely find that you have errors... those will need to get addressed.

Moving on, you should change the way your fstab is set up, to use UUID instead of using devicename.  Use the blkid command on your array (or a partition under your array) to get its UUID, then use that UUID to mount it in /etc/fstab.

Example:

root@locutus:~# blkid /dev/mapper/vg0-root
/dev/mapper/vg0-root: UUID="61998221-7b39-49cd-83f7-62fda973218c" TYPE="ext4"

With this information, I would set my /etc/fstab entry for root to look like this:

UUID=61998221-7b39-49cd-83f7-62fda973218c    /    ext4    defaults,errors=remount-ro    0    1

Once you've done this, your system will find your partitions no matter whether their device names change or not (for example, if drive cables get swapped around).

You should also set up your /etc/mdadm/mdadm.conf to find things automatically without needing any particular drive to be in any particular location:

# mdadm.conf
#
# Please refer to mdadm.conf(5) for information about this file.
#

# by default (built-in), scan all partitions (/proc/partitions) and all
# containers for MD superblocks. alternatively, specify devices to scan, using
# wildcards if desired.
#DEVICE partitions containers

# auto-create devices with Debian standard permissions
CREATE owner=root group=disk mode=0660 auto=yes

# automatically tag new arrays as belonging to the local system
HOMEHOST <system>

# instruct the monitoring daemon where to send mail alerts
MAILADDR root

# definitions of existing MD arrays
ARRAY /dev/md/0 metadata=1.2 UUID=c913486a:e62c7ea1:cfb98b6b:253d1f62 name=lucas.mgscreativa.com.ar:0

NOTE THAT THERE ARE NO DEVICES SPECIFIED IN THIS CONF FILE.  This is a feature, not a bug.  With mdadm.conf set up this way, your system will automatically scan all attached drives looking for anything that belongs to your array, and will assemble them all as /dev/md0.


Error while installing reaver-1.4 "no acceptable C compiler found in $PATH"

Reaver-1.4 can be installed in Ubuntu 18.04 from the terminal. Open a terminal and type:

sudo apt install reaver


For managing multiple apps/ windows, it's always good to use a tiling window manager instead of the regular desktop.

Tiling window manager Wiki

Consider trying,
Awesome Window Manager

Very much customizable, guaranteed improvements in productivity.

Here is the Overview youtube link.


Maya Calendar from Elementary OS on Ubuntu

This is the way to install Mayan Calendar on Ubuntu.

sudo apt-add-repository ppa:elementary-os/daily
sudo apt-get update
sudo apt-get install maya-calendar

Source


You need to install the libdbd-mysql package by executing the following command in a terminal Ctrl+Alt+T

sudo apt-get install libdbd-mysql

Or you can find this package in the gnucash recommended packages.


Dual graphics set up: NVIDIA and Intel, possible?

If you want them to function the way they do in Windows then bumblebee really is your best bet.

The monitor will run on the intel chipset and whenever you want to run something with your nvidia card you use optirun or primus if primus is installed.

example: optirun steam

You can do this through the terminal or even add it to a shortcut/launcher


Installing Kodi, add apt-repository won't work

I just noticed that you have a typo in the command:

sudo add-apt-repository pps:team-xmbc/ppa

The actual command is:

sudo add-apt-repository ppa:team-xbmc/ppa

(Notice pps: vs ppa: and xmbc vs xbmc)

The notification is because of this bug and as suggested in this answer you can ignore that notification.


To the best of my recollection, if the browser window is open, be it Chromium or Firefox, it will only shake the icon and not bring the window to the front. I do not believe there is a way to bring the browser window to the front in this situation without getting deeper than a toggle switch in your settings.


UFW not blocking connections to docker instance

I had the same problem and resolved it by using IPTABLES instead.

Example to only allow 3306 from source ip xxx.xxx.xxx.xxx:

Adds an accept for source matching our ip to line 1 of the FORWARD chain

iptables -I FORWARD 1 -p tcp -i eth0 -s xxx.xxx.xxx.xxx --dport 3306 -j ACCEPT

Drops all other connections on the FORWARD chain for that port

iptables -I FORWARD 2 -p tcp -i eth0 --dport 3306 -j DROP

Using the line numbers (1 & 2) forces the rules to be added above the ones created by docker such as:

-A FORWARD -d 0.0.0.0/32 ! -i docker0 -o docker0 -p tcp -m tcp --dport 3306 -j ACCEPT


You must download 32-bit iso...Take a look at  Ubuntu alternative downloads.


Brother printer has stopped working with 20.10

Holy smokes! After nearly a day of tweaking this and that, I decided to go back to scratch. I unplugged the printer, deleted it from my list of printers, plugged in again the printer and waited. Ubuntu's printer list soon populated with my printer, I cancelled its search for drivers, since it is driverless, printed a test page and voila! It works. I tried a couple of other docs (pdf, inter-active pdf) and it is working like it just came back from spring break.
Many thanks to those who took the time to think about my problem and offered solutions. If only I had tried this first...


Easiest way to upgrade php to latest version?

It looks as if the problem is still under discussion on your question in stackoverflow, so ...

IMO you have two options:

dot.deb

dot.deb has php packages and I have used them on Ubuntu before.

Add the dot.deb repository

sudo echo "deb http://php53.dotdeb.org stable all" >> /etc/apt/sources.list

Install php5

sudo apt-get update
sudo apt-get install php5-cli php5-common php5-suhosin

compile php

From the precise repository - This may be safer ;)

apt-get install ubuntu-dev-tools
pull-lp-source php5 precise
dpkg-source -x php5_5.3.10-*.dsc
apt-get build-dep php5
cd php5-5.3.10
debuild binary

This second method was pulled from How to update to PHP 5.3.10 in 10.04?


How does a newbie install a Ubuntu dual boot on an computer with XP?

You can simply download Wubi - Windows Installer and make partition from your widows with free space depends your need. And install the wubi.exe from windows, here you can select drive, allocate virtual space as per your need, create username password and finaly install. If you have iso file place it which drive you select for Ubuntu. Else it will download directly from internet.

It's the simplest way to install Ubuntu in windows.


/etc/sudoers is owned by gid 33, should be 0, and when I try pkexec I get "authentication failed"

If you know the password for the root user, try logging in as root (in a tty by pressing Ctrl+Alt+F1 or Ctrl+Alt+F3), then execute this:

chown root:root /etc/sudoers

Otherwise, you need to have physical access to the server to boot a live USB system to execute the above command as root from the live session.


Enable Ctrl+Alt+F1 Virtual Consoles in GNOME (Ubuntu 17.04+)

I'm running Kubuntu v16.04 - not the version that you are - but I had to modify /etc/systemd/logind.conf, uncomment NAutoVTs=6 and restart.

Also, check /etc/default/console-setup, the line: ACTIVE_CONSOLES="/dev/tty[1-6]"


How to install fio 3.13 on ubuntu 18.04.2

There is no 3.13 for Ubuntu yet.

3.8 is cosmic/18.10
3.12 is disco/19.04
alternative debian 10  has 3.12 too.

So if you want it from a debian installer you need to wait for 19.10.

The only way is installation from a source file. Download is to an arch ftp for 3.13.


Why isn't shutdown giving me a chance to save files in running programs?

If you shutdown or logout from the cog menu (top right), Ubuntu does this anyway. How are you shutting down (or have you changed any settings)?


Why ubuntu 15.10 still needs restart to update the kernel?

Although Kernel 4 supported live patching, ubuntu did not provide the necessary updates for live patching of the kernel.

But now on Ubuntu 16.04, canonical has started to provide the live patches through Canonical Livepatch Service, all you need is to register (free for up to 3 systems), install the service

sudo snap install canonical-livepatch

and enable it with your Token

sudo canonical-livepatch enable [Token]

Afterwards, you will no longer need a restart.


After installing i3 I now have the i3 notification theme on unity. How can I change it back?

For me this worked, I'm running Ubuntu 16.04

run the following commands withsudo

create a file /usr/bin/user_notify and write
the following text to the file.

#!/bin/bash
set -euo pipefail
if pgrep -x i3 >/dev/null ; then
  /usr/bin/dunst
else
  /usr/lib/x86_64-linux-gnu/notify-osd
fi

make the file executable by running chmod a+x /usr/bin/user_notify

open the file /usr/share/dbus-1/services/org.knopwob.dunst.service
and replace Exec=/usr/bin/dunst by Exec=/usr/bin/user_notify

Remark To use the standard unity notifier (also in i3) just
replace Exec=/usr/bin/dunst by Exec=/usr/lib/x86_64-linux-gnu/notify-osd
in the file /usr/share/dbus-1/services/org.knopwob.dunst.service.


How to create a script file to input password?

Please do not downvote this answer. The questioner really knows and understands that this is a huge security risk, but he just wants to know a way so as to accomplish what he wants.

So, yes, it is simple:

echo login_passwd | sudo -S nautilus


Error removing broken mongo server package

I had this problem before and in the end I had to go into mongodb-org-server.prerm (in /var/lib/dpkg/info/) and commented out the lines where it tries to stop the mongod.service, before using apt-get to remove it.


How to install rsibreak 0.12.1 from source using cmake?

Satisfying all dependencies can sometimes be a hassle when trying to build a package from source.  You are probably missing the extra-cmake-modules package.

One tool that I find extremely helpful in diagnosing unclear dependencies is the apt-file utility that lets you search filenames of packages you don't have installed.  Install apt-file and then run apt-file update to download the file cache.  Then you can search to find what packages contain missing desired files.

$ apt-file search ECMConfig.cmake
extra-cmake-modules: /usr/share/ECM/cmake/ECMConfig.cmake


Help! suddenly cant ssh into server for no apparent reason (operation timedout)

I found the answer.  Linode had disabled most networking functionality because they think the server was hacked.


Removing Windows 10 from a dual boot Ubuntu 16.04

I suggest to back up your Linux files and go for a fresh Ubuntu install. You can use timeshift or a similar app, or even rsync to back up your files.
Boot into a live session and choose Erase disk and install Ubuntu or Something else if you wish to include an extra level of precaution, in this case you should know how to set the partitions and mount points and how much size to allocate.
If you wish to manually partition your disk, please refer to this article for the various options.
Follow the instructions. Once the install is complete, you can restore your backed-up files to their respectful partitions.


Fatal error reading PNG image file: Not a PNG file

You may have a corrupt PNG library.  Try reinstalling it.  Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt-get install --reinstall libpng*-dev


I can't get Steam to run on Ubuntu 20.04 - "Fatal error - Steam needs to be online" and "Unmet packages"

I was getting the same issue but I found Battenborn's comment here https://bbs.archlinux.org/viewtopic.php?id=263871
In your terminal you have to run:
ping media.steampowered.com
Copy the IP address in brackets. For me it was 62.24.203.41
Then run:
sudo nano /etc/hosts
and add the following to that file:
IP    client-download.steampowered.com
so for me it was:
62.24.203.41    client-download.steampowered.com
If you don't know how to use nano. Press Ctrl + O then enter to save and Ctrl + X to exit :)


how to install google chrome from terminal

I think you didn't add the google-chrome repository to Ubuntu.
open your terminal and then type:

wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -

then after that to add the repository, type this :

sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'

after that update your system,type this in terminal :

sudo apt update

last, to install google chrome, type this :

sudo apt install google-chrome-**<version>**

where version is beta or stable or release

for example :

sudo apt install google-chrome-stable

I prefer to use the stable version.


Live USB not booting in Lenovo Ideapad s10-3

There's a kernel bug specific to your Lenovo S10-3: bug #634702.  It's also in the release notes:

  Lenovo S10-3 systems don't boot.
  Temporary workaround: add
  "intel_idle.max_cstate=0" as a kernel
  paremeter at boot (634702). A fix
  already exists that will be available
  only at release time (647071).


Ubuntu Server/Desktop 18.04 how update Vim from 8.0.1453 to 8.2

This is what the download page you've linked to suggests:

Unix

The best way to install Vim on Unix is to use the sources. This requires a compiler and its support files. Compiling Vim isn't difficult at all. You can simply type "make install" when you are happy with the default features. Edit the Makefile in the "src" directory to select specific features.

You need to download at the sources and the runtime files. And apply all the latest patches. For Vim 6 up to 7.2 you can optionally get the "lang" archive, which adds translated messages and menus. For 7.3 and later this is included with the runtime files.

Using git
    This is the simplest and most efficient way to obtain the latest version, including all patches. This requires the "git" command.
    The explanations are on the GitHub page.

Summary:

git clone https://github.com/vim/vim.git
cd vim/src
make

Using Mercurial
    This is another simple and most efficient way to obtain the latest version, including all patches. This requires the "hg" command.
    The explanations are on this page: Mercurial

Summary:

hg clone https://bitbucket.org/vim-mirror/vim
cd vim/src
make

You are probably ok with version 8.0.1453, but good luck anyway.


How do I make it so that the spread comes up on one click?

Hopefully you'll get answers with more possibilities, but I can tell you that for the official Unity releases, the answer is no.  There's no such preference.  At least exposed in the UI.  I don't know of anything that could be changed through gsettings, either.  But perhaps it's escaped me.

There are a few third-party apps available from PPAs that allow for tweaking Unity more. My Unity, Ubuntu Tweak, and I believe others.  It's possible someone like that has coded this, too.  I can't remember more right now, so sorry that's all I can offer.


(If you dont want to install other programs)

Open a terminal and use this command to disable the name display

gsettings set com.canonical.indicator.session show-real-name-on-panel false

To revert it back simple use

gsettings set com.canonical.indicator.session show-real-name-on-panel true

After using one of the commands you need to log off and back on or use unity --replace & to reload unity.

You can also remove the user switching menu from the indicator panel with

gsettings set com.canonical.indicator.session user-show-menu false

and enable it with

gsettings set com.canonical.indicator.session user-show-menu true

but if you do so you will disable both the username and the user switching indicator. You cannot remove the user switching menu while keeping the username indicator.


For removing the Mail icon, open Terminal and copy & paste the following command:

sudo apt-get autoremove indicator-messages

For the Keyboard Layout, click on it and de-select Show Current Input Source In The Menu Bar


Normally you'd left-click on the trashcan icon, select the file you want to restore, and click on 'Restore selected items'.

If that's not working for you, try this:

Open a terminal (ctrl-alt-t) Type this to go to the trash directory:

cd .local/share/Trash/files

To see the files in the trash directory type:

ls

If  you see the file you need to restore, use the mv command to move it elsewhere in the filesystem:

mv my-large-file.tc ~/Desktop

If the file has a strange name you can use quotes around it, like this:

mv "1940's hits (rock)" ~/Desktop

Alternatively, type mv, then the first characters of the filename (for example, 1940), then press the TAB key to get filename autocompletion, which will take care of adding necessary quoting automatically. If the generated filename has characters like \, it's OK, those are for quoting special characters.


Found part of the answer.

Use the config on the ARK wiki and its debian version here. Then, systemd would start using s2disk (pm-hibernate uses s2disk) to hibernate. This will getsudo systemctl hibernate working, and dependent features like hibernate on Power button press will automatically work. However, why the native systemd hibernate commands aren't working, is something still unknown.


Your usb is probably corrupted, try re-burning the iso image to your usb. If that doesn't work I would re-download the iso. Also try using a different usb port to boot your machine.


javaws crashes, error in ld-linux-x86-64.so.2

OK, after several tries I could fix the issue myself.
What worked for me was to uninstall all openjava6 and dependencies via dpkg.
That left me without javaws and the plugins.
So I installed sunjava7 64 Bit as described here
http://brunoreis.com/tech/intalling-java-ubuntu-natty/

Now everything is working fine for me.


My ATI Radeon Video Card still has quite bad performance in Ubuntu 11.04

Try installing the latest ati catalyst - ati-catalyst-114 or try the steps given in this blog - installing hardware drivers in ubuntu


Try using another DNS server, like Google's:

Primary: 8.8.8.8
Secondary: 8.8.4.4

Sometimes using a secondary DNS will solve any conflicts/problems that your ISP's default server causes.


Long story short, you can either change the directory or just move the apc.so file from it's directory to the one specified in PHP.ini file.


Manual method:

Mount the drive with the backup using the -t hfsplus option.

If you mount it in media you will have something like this:

/media/{mountpoint}/Backups.backupdb/Drive/{date}/

{date}: the newest data obviously has the newest backup. ls -l will show a list of directories with a number behind the permissions. The data is actually stored in a hidden dir and with that number like this:

cd /media/{mountpoint}/.HFS+ Private Directory Data/dir_{the number you found}/

and you can use cp to copy your data to a Ubuntu partition.

Some scripts others made to automate it:

Script fuse-time-machine (2012).
Script copy-from-time-machine.sh (2014).
Script tmfuse (2014).
Script restoretmbackup.py (2009).


Installing Ubuntu Server on a secondary HDD within Ubuntu Desktop

You can use Startup Disk Creator. It's pre-installed on (most) Ubuntu. You have to select the ISO and the drive where yout want the ISO to be installed an click on CREATE.


Lenovo X131e Chromebook Ubuntu installation

I'm assuming you want the LTS (long term support) version of ubuntu.
There is a tool developed for this. It's called crouton.
Since chromeOS is based on linux you'll be able to switch with a simple keyboard shortcut (if you want you can also make it a more traditional dualboot (you'll want this script if you want to do that) but this is imho better.

First things first: make a backup of all the files you want to save that are not in the cloud (because they WILL be lost).

2) Press and hold the Esc and Refresh keys together, then press the Power button (while still holding the other two keys). This will reboot your Chromebook into Recovery Mode.

3) When you get the yellow screen with the exclamation mark hit ctrl + d (This will bring up a prompt asking if you want to turn on Developer Mode.) Press enter (this will take about 15 to 20 min. You'll get a screen with a red exclamation mark but leave it be until it reboots into chromeOS).

4) Download crouton

5) press ctrl + alt + T and you'll get a terminal (linux uses the same shortcuts)

6) type "shell" (without the quotation marks) to get a ubuntu shell

7) type this command

sudo sh -e ~/Downloads/crouton -t xfce

(if you have a touch screen you'll want to change that to include the touch functions)

sudo sh -e ~/Downloads/crouton -t touch,xfce

if you want the unity desktop then change xfce for unity

if you want another release then run this to give you a list of the recognized releases and which distros they belong to.

sh -e ~/Downloads/crouton -r list

8) Let it run. (when it's done it'll ask you for a new username and password)

9) run this command to start your new environment.

sudo startxfce4

10) Now, you can switch back and forth between Chrome OS and Ubuntu using Ctrl+Alt+Shift+Back and Ctrl+Alt+Shift+Forward (if you're on an ARM-based Chromebook) or Ctrl+Alt+Back and Ctrl+Alt+Forward (If you're on an Intel-based Chromebook). In the latter case, you will also need to press Ctrl+Alt+Refresh after pressing Ctrl+Alt+Forward to bring up the desktop. To exit the Linux desktop, just log out of it like you would on a normal PC—you'll close it completely and go back to Chrome OS (after which you can run sudo startxfce4 again to go back).

if you experience problems the crouton link on the top redirects you to the official crouton page including a troubleshooting page


Graphical environment does not start after update

I suppose the problem here has been the incompatibility that I mentioned above between GDM3 and AMD drivers because I installed lighDM before updating the drivers again and it did not happen again, I have also done it in 20.04 but this time from Xubuntu that already comes with lightDM So I cannot assure you that the problem has been corrected in this release.


How do I install Divergence IV - "A New Hope"?

Try this link - http://ubuntu-art.org/content/show.php/Divergence+IV+-+%22A+New+Hope%22?content=133892 - there's a good installation instruction...


How soon are packages updated to latest release?

They will not: 20.04 is already complete and released.

New "Landings" will be for 20.10, to be released in October 2020.

During every cycle, some abandoned/broken/incompatible packages are dropped.

Consider using the Search box at the top of the page to look for existing questions about each dropped package.
See the existing PSPP in 20.04 Question

For clues about why a package was dropped, look at the Debian Bugs page and the Debian Package Tracker.

XPDF: 37 Outstanding bugs, and No Package Maintainer (Orphaned in Debian).
Debian welcomes volunteers to adopt packages. YOU can learn how to get XPDF re-added to Ubuntu!


How do I install multiple packages from a command where some are obsolete?

I had to add some mirrors to my list. This wasn't clear at first, but now I'm able to install the packages after doing this.


Installing ubuntu alongside windows 8 without partitioning

You can create an extended partition to contain all partitions (except Windows) as logical partitions. An extended partition counts as one primary partition and a logical partition can boot Linux and not Windows.
So the drive should look like:

Primary - Windows
Primary - Extended

Logical - Ubuntu

Logical - Swap

Logical - Data 1

Logical - Data 2

Logical - Data 3


Too slow Ubuntu after upgrading to 16.10

I've found few solutions but one very effective with Bleachbit, very effective to clean all caches, temps and memory
www.bleachbit.org

first enter as adminstrator with and input your password:
sudo su
apt-get install bleachbit

later run with:
bleachbit

very effective aside to use the right controller for your video card and right setting of swappiness %


New to Ubuntu Is it possible to install Ubuntu on my Compaq 420 windows 7 pc?

yes mate

Linux supports all type of computers
Just make sure to download a 32bit version of ubuntu and free space for the dualboot in case you want it


Ubuntu 20.04 and 20.10, /etc/securetty: No such file or directory

Here's a copy of /etc/securetty from a 19.10 desktop installation. Only tested for a couple of minutes, but so far /var/log/auth.log is quiet.
When placed into /etc the file should look like this:
-rw-r--r-- 1 root root 4.1K May 14 10:31 securetty

Here are the /etc/securetty contents:
# /etc/securetty: list of terminals on which root is allowed to login.
# See securetty(5) and login(1).

console

# Local X displays (allows empty passwords with pam_unix's nullok_secure)
:0
:0.0
:0.1
:1
:1.0
:1.1
:2
:2.0
:2.1
:3
:3.0
:3.1
#...

# ==========================================================
#
# TTYs sorted by major number according to Documentation/devices.txt
#
# ==========================================================

# Virtual consoles
tty1
tty2
tty3
tty4
tty5
tty6
tty7
tty8
tty9
tty10
tty11
tty12
tty13
tty14
tty15
tty16
tty17
tty18
tty19
tty20
tty21
tty22
tty23
tty24
tty25
tty26
tty27
tty28
tty29
tty30
tty31
tty32
tty33
tty34
tty35
tty36
tty37
tty38
tty39
tty40
tty41
tty42
tty43
tty44
tty45
tty46
tty47
tty48
tty49
tty50
tty51
tty52
tty53
tty54
tty55
tty56
tty57
tty58
tty59
tty60
tty61
tty62
tty63

# UART serial ports
ttyS0
ttyS1
ttyS2
ttyS3
ttyS4
ttyS5
#...ttyS191

# Serial Mux devices    (Linux/PA-RISC only)
ttyB0
ttyB1
#...

# Chase serial card
ttyH0
ttyH1
#...

# Cyclades serial cards
ttyC0
ttyC1
#...ttyC31

# Digiboard serial cards
ttyD0
ttyD1
#...

# Stallion serial cards
ttyE0
ttyE1
#...ttyE255

# Specialix serial cards
ttyX0
ttyX1
#...

# Comtrol Rocketport serial cards
ttyR0
ttyR1
#...

# SDL RISCom serial cards
ttyL0
ttyL1
#...

# Hayes ESP serial card
ttyP0
ttyP1
#...

# Computone IntelliPort II serial card
ttyF0
ttyF1
#...ttyF255

# Specialix IO8+ serial card
ttyW0
ttyW1
#...

# Comtrol VS-1000 serial controller
ttyV0
ttyV1
#...

# ISI serial card
ttyM0
ttyM1
#...

# Technology Concepts serial card
ttyT0
ttyT1
#...

# Specialix RIO serial card
ttySR0
ttySR1
#...ttySR511

# Chase Research AT/PCI-Fast serial card
ttyCH0
ttyCH1
#...ttyCH63

# Moxa Intellio serial card
ttyMX0
ttyMX1
#...ttyMX127

# SmartIO serial card
ttySI0
ttySI1
#...

# USB dongles
ttyUSB0
ttyUSB1
ttyUSB2
#...

# LinkUp Systems L72xx UARTs
ttyLU0
ttyLU1
ttyLU2
ttyLU3

# StrongARM builtin serial ports
ttySA0
ttySA1
ttySA2

# SCI serial port (SuperH) ports and SC26xx serial ports
ttySC0
ttySC1
ttySC2
ttySC3
ttySC4
ttySC5
ttySC6
ttySC7
ttySC8
ttySC9

# ARM "AMBA" serial ports
ttyAM0
ttyAM1
ttyAM2
ttyAM3
ttyAM4
ttyAM5
ttyAM6
ttyAM7
ttyAM8
ttyAM9
ttyAM10
ttyAM11
ttyAM12
ttyAM13
ttyAM14
ttyAM15

# Embedded ARM AMBA PL011 ports (e.g. emulated by QEMU)
ttyAMA0
ttyAMA1
ttyAMA2
ttyAMA3

# DataBooster serial ports
ttyDB0
ttyDB1
ttyDB2
ttyDB3
ttyDB4
ttyDB5
ttyDB6
ttyDB7

# SGI Altix console ports
ttySG0

# Motorola i.MX ports
ttySMX0
ttySMX1
ttySMX2

# Marvell MPSC ports
ttyMM0
ttyMM1

# PPC CPM (SCC or SMC) ports
ttyCPM0
ttyCPM1
ttyCPM2
ttyCPM3
ttyCPM4
ttyCPM5

# Altix serial cards
ttyIOC0
ttyIOC1
#...ttyIOC31

# NEC VR4100 series SIU
ttyVR0

# NEC VR4100 series SSIU
ttyVR1

# Altix ioc4 serial cards
ttyIOC84
ttyIOC85
#...ttyIOC115

# Altix ioc3 serial cards
ttySIOC0
ttySIOC1
#...ttySIOC31

# PPC PSC ports
ttyPSC0
ttyPSC1
ttyPSC2
ttyPSC3
ttyPSC4
ttyPSC5

# ATMEL serial ports
ttyAT0
ttyAT1
#...ttyAT15

# Hilscher netX serial port
ttyNX0
ttyNX1
#...ttyNX15

# Xilinx uartlite - port
ttyUL0
ttyUL1
ttyUL2
ttyUL3

# Xen virtual console - port 0
xvc0

# pmac_zilog - port
ttyPZ0
ttyPZ1
ttyPZ2
ttyPZ3

# TX39/49 serial port
ttyTX0
ttyTX1
ttyTX2
ttyTX3
ttyTX4
ttyTX5
ttyTX6
ttyTX7

# SC26xx serial ports (see SCI serial ports (SuperH))

# MAX3100 serial ports
ttyMAX0
ttyMAX1
ttyMAX2
ttyMAX3

# OMAP serial ports
ttyO0
ttyO1
ttyO2
ttyO3

# User space serial ports
ttyU0
ttyU1

# A2232 serial card
ttyY0
ttyY1

# IBM 3270 terminal Unix tty access
3270/tty1
3270/tty2
#...

# IBM iSeries/pSeries virtual console
hvc0
hvc1
#...
#IBM pSeries console ports
hvsi0
hvsi1
hvsi2

# Equinox SST multi-port serial boards
ttyEQ0
ttyEQ1
#...ttyEQ1027

# ==========================================================
#
# Not in Documentation/Devices.txt
#
# ==========================================================

# Embedded Freescale i.MX ports
ttymxc0
ttymxc1
ttymxc2
ttymxc3
ttymxc4
ttymxc5

# LXC (Linux Containers)
lxc/console
lxc/tty1
lxc/tty2
lxc/tty3
lxc/tty4

# Serial Console for MIPS Swarm
duart0
duart1

# s390 and s390x ports in LPAR mode
ttysclp0

# ODROID XU4 serial console
ttySAC0
ttySAC1
ttySAC2
ttySAC3


The way I read your post is: The server ( NAS ) did not have SMB1 enabled. The Ubuntu client could not get share enumeration of that Server until you enabled SMB1 on the Server.
Is that correct?
If so it is a bug.
The samba client in Ubuntu 20 can by default go from SMB2.02 all the way up to SMB3.11 so it is already capable of connecting to a server at a higher dialect.
The problem is a bug in gvfsd-smb-browse which is hard wired to scan the network at SMB1 but then gets stuck there. But this only happens when you browse the network for samba hosts. The only way around this issue is to bypass gvfsd-smb-browse:
You can do that from Nautilus by asking for the server and share explicitly in the Location bar or using Connect to Server:
smb://nas-hostname/share-name

OR
smb://nas-home-name.local/share-name

OR
smb://nas-ip-address/share-name

OR
Doing a mount.cifs mount which also goes from SMB2 to SMB3 by default but doesn't use gvfsd-smb-browse:
I would suggest creating a mount point under /media ( lets say /media/nas-share ) for reasons explained below:
Make sure cifs-utils is installed: sudo apt install cifs-utils
If your nas allows guest access:
sudo mount -t cifs //nas-ip-address/nas-share /media/nas-share cifs guest,uid=marc

If your nas requires credentials:
sudo mount -t cifs //nas-ip-address/nas-share /media/nas-share cifs username=XXXXX,password=YYYYY,uid=marc

It's the uid=marc option that replaces root as the owner of the mounted share with marc so that he has r/w access.
Once this works you can add an entry into /etc/fstab so that you can mount as required through Nautilus and not have to do a terminal mount. So in fstab it would look something like this:
//nas-ip-address/nas-share /media/nas-share cifs username=XXXXX,pasword=YYYYY,uid=marc,noauto,user 0 0

noauto = makes it not mount automatically at boot.
user = allows an ordinary user ( not sudo ) the ability to mount the share.
Since the share is mounted under /media an icon will appear on the side panel of Nautilus and when selected will mount that share per the instructions in fstab. That same icon can be used later to unmount the share.