My OS disappeared (WIN7) on Acer Aspire Lap top including BOOT file

It sounds as if you have installed the server version of Ubuntu, which does not have a graphic user interface.  Ubuntu comes with support for most laptops right out of the box.  Your best solution to get Ubuntu running would be to download the default version of Ubuntu from here:

http://www.ubuntu.com/download/ubuntu/download

There's a large orange box on the right side, just click that and download the image, burn it, and then boot from that disc.

Instead of installing it, you'd be best using the 'default' boot option, which will allow you to see the ubuntu desktop, which will give you a chance to see if it will work on your laptop or not.  If it does, then you'll be safe in formatting your hard drive (tand installing a fresh copy of ubuntu using the ubuntu installation program.


The installation page tells you what dependencies you need. This one is fulfilled by:

sudo apt-get install libssl-dev

This is already packaged in trusty/universe (version 1.0) so if dependencies haven't changed that much a good tip can be to just let apt-get build-dep help you:

sudo apt-get build-dep aircrack-ng

That will download all the dependencies required to build the repo version. Might not be everything you need but it should get you most of the way.


Bottom bar in Ubuntu Gnome (Ubuntu 19.04)

You appear to be logged in into the Gnome Classic session. You must have installed it at some point, and then have logged in to it, because it is not installed with Ubuntu by default.

This session mimicks the traditional Gnome 2 desktop by providing an application menu and, on the bottom, a window list.
These features are provided by officially supported Gnome Shell extensions.

If you just want to turn off the bottom bar, install Gnome Tweaks and, on the Extensions tab, disable the "Window list" extension.
If you want the default Ubuntu desktop, then log out, and before logging back in, click the "cog" icon to select the "Ubuntu desktop" session.


Setting LD_LIBRARY_PATH causes terminal app to not open

This seems to apply...

Note: You can only set this environment variable inside an interactive shell. [ie a terminal ] Since Ubuntu 9.04 Jaunty Jackalope, LD_LIBRARY_PATH cannot be set in $HOME/.profile, /etc/profile, nor /etc/environment files. You must use /etc/ld.so.conf.d/*.conf configuration files. See Launchpad bug #366728 for more information.


I had the same problem.

The souloution is reset and then go into the bios via F2 and it will then allow you to enable Launch CSM


Seems like heat sink on top of CPU is either not functioning well or thermal paste on top of CPU and under the heat sink fan needs refill.

Hope it solves it.


As you noticed, doc packages are not for basic man/info pages. They contain extended documentation,  usually in the form of HTML pages.  So Generally it's be safe to remove any installed doc packages. just make sure you don't over-remove packages, which is especially easy with *. Additionally regex is somewhat difficult from apt-get, it does not seem to use the standard POSIX/Extended POSIX style. I would actually do something like this.

dpkg -l | awk ' { print $2 } ' | grep '\-doc$'

If you approve of that list displayed, you can then attempt to purge them like this,

sudo apt-get purge `dpkg -l | awk ' { print $2 } ' | grep '\-doc$'`


Open the file /etc/network/interfaces in your terminal

sudo nano /etc/network/interfaces

Add this line:

iface eth1 inet manual

Save the file and run

sudo service network-manager restart

or

sudo systemctl restart network-manager.service

Source


After installed ubuntu on my windows 8.1, boot menu not shown, i directly deleted the ubuntu hard disk partition

For your laptop HP r014tx,boot options come in different ways-While booting press Esc then press F9 to get the boot or OS options.Hope it works!!


Ok, eventually this was really easy. There is an option -nozeroconf in /etc/afpd.conf, which disables advertising afp shares through avahi's dbus interface. This way, I could turn avahi's dbus interface back on without afp taking over all my shares. Now I can start forked-daapd correctly.


Hide disk information displayed on boot?

To prevent the display of text information as Ubuntu boots you will need to edit your grub here /etc/default/grub.

Change :

GRUB_CMDLINE_LINUX_DEFAULT=    #shows text but not splash screen

to:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"   #no text but shows splash screen

I am assuming that you have it set to the first example, hence the information your seeing.

See here for a comprehensive explanation.


AMD Phenom II X2 550 CPU not operating at full speed during Xvid encode

It's likely your CPU scaling governor is set to "ondemand" (you can check by looking at /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor). Similarly, you can check scaling speeds by comparing /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq and /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq.

The "ondemand" frequency scaler is not great for some workloads, and I've found encoding to be one of those. The are a number of tunables in /sys/devices/system/cpu/cpu0/cpufreq/ondemand that may help, especially the up_threshold. For one machine, I set this to 20 and that seemed to help.

In a more extreme case, you can replace the frequency scaler with "performance" which will force maximum CPU frequency:

for i in /sys/devices/system/cpu/cpu*; do echo performance | sudo tee $i/cpufreq/scaling_governor; done


Just edit the syslinux/syslinux.cfg (or isolinux/isolinux.cfg in the .iso) file after the Live image is created. You can repack the .sblive file or rebuild the .iso, or modify the file on the pendrive.
But if you using UEFI, then the EFI boot menu has no timeout...


Uninstalling Kali Linux and restoring the GRUB of Ubuntu from a triple boot

You can use a tool called Boot-Repair to easily re-install GRUB.

Boot a live session, connect to the internet, and then put this in your Terminal:

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


You need to qualify your include

#include <python2.7/Python.h>

Or tell gcc where to find Python.h with the

gcc -I /usr/include/python2.7/ program.c


Alpine - "From address not one of your addresses"

This error is caused by having an incorrect return address. It can be fixed by pressing: m, s, c, then scrolling (or using whereis) to find "Customized Headers".

From there, add something like this: From:  Jim Bob <jimbob123@mailserver.org> (replace the name and email with the correct ones).

That should fix your problem.

Source: The Often-Useful Arch Wiki


How to set up a default system configuration (packages, config)?

I would advise you to make a shell script.

basically you will enter all the commands you would normally use to accomplish these tasks in a file. You copy this on the pc right after installation and execute it.
there is lot's of good tutorials out there there are lots of bash tutorials out there but here are a few suggestions to get you started.

!#/bin/bash

sudo apt-get remove evolution

sudo apt-get install gimp inkscape flashplugin-installer

cp myconfigfile /etc/sshd/


Brightness Does not work at all Samsung ultra book intel backlight

I FIXED THE ISSUE!!

I just had a hunch after reading about fixing broken 1080p output and saw a slightly different configuration setting in this article Ubuntu 16.04 Skylake 6th Generation Screen Flickering

It turns out that the original configuration settings on this popular backlight fix were wrong http://itsfoss.com/fix-brightness-ubuntu-1310/ or at least for my setup.

To fix an intel backlight that does not work with the above fix we need to do the same thing again but "change" an option in its setting

First confirm its an intel backlight
ls /sys/class/backlight/

if it is open sudo gedit /usr/share/X11/xorg.conf.d/20-intel.conf,
And if it doesn't exist enter into the terminalsudo touch /usr/share/X11/xorg.conf.d/20-intel.conf, to create it

By default the file would be...
Section "Device"
        Identifier  "card0"
        Driver      "intel"
        Option      "Backlight"  "intel_backlight"
        BusID       "PCI:0:2:0"
EndSection

if you had tried that this is what you need to change Option      "Backlight"  "intel_backlight", to... Option      "AccelMethod"  "sna"

Or just backspace everything in the file and copy below into it then click "save"

Section "Device"
        Identifier  "card0"
        Driver      "intel"
        Option      "AccelMethod"  "sna"
        BusID       "PCI:0:2:0"
EndSection

Once done just reboot and you can now enjoy adjusting the brightness settings!
If you found this useful please like my answer and tell others about it who have that intel backlight issue, Thanks!


It is /usr/share/sounds/ubuntu/stereo/bell.ogg.

Other options can be seen in the Sounds settings (Bark, Glass, Sonar, etc.) depending on which desktop, etc. is installed. These are also located in /usr/share/sounds. For example, with GNOME:

$ ls /usr/share/sounds/gnome/default/alerts/
bark.ogg  drip.ogg  glass.ogg  sonar.ogg

Fishing around in /usr/share/sounds, the actual default if Ubuntu hadn't added their own would be /usr/share/sounds/freedesktop/stereo/bell.oga.

(If you're not actually running a GUI, then it will be the system beep as mentioned in the other answer.)


What are the plataforms/devices Ubuntu touch will run from?

Ubuntu Touch is officialy supported on Nexus S, Nexus 4, Nexus 7 and Nexus 10.
Thanks to the community is also available for an high number of others devices, see https://wiki.ubuntu.com/Touch/Devices

As long as I know there are no devices where you can do dual-boot, but I can be wrong.

Ubuntu Touch does not run on Android (Ubuntu for Android does it) but is a indipendent system, like on computers!


How to pass to tar.gz a file after rename using xargs?

If you want to create a separate .tar.gz file for each of the log files that find collects, you don't need to use xargs. You can save the dated appended name of each file to a variable (f in this case) and reuse the new name in the tar command. This will also leave your renamed files in place.

find . -type f -iname "log*" -exec bash -c ' \
    f="${0}_$(date -r "$0" +"%Y%m%d%H%M%S")"; \
    mv "$0" "$f" && tar -czf "${f}.tar.gz" "$f" \
' "{}" \;


I've had the same issue with ePSXe & this is how I fixed it.
(I've used BIOS files you provided)

1) Navigate to your ePSXe/bios
2) Rename PSX - SCPH1001.BIN to scph1001.bin (extension must be in lowercase)
3) Run ePSXe from terminal


Did you try going into your additional drivers in unity start menu? Press super key (Windows key)  or click the launcher in the top left corner and type 'additional'
It should bring up additional drivers.  Choose the nvidia proprietary, enter your password and follow prompts.


Switch to a TTY (ctrl-alt-f1). You may restart between each step to see if that worked.

sudo rm -r ~/.config/compiz*
sudo rm -r ~/.cache/compizconfig-1

Clear the cache

sudo rm -r .cache/

Reset Unity

sudo dconf reset -f /org/compiz/
setsid unity


How to create new folder in Files/Nautilus

There was an issue in previous nautilus versions where indeed you could not anymore use the mouse to create a new folder when there was no empty space in the  pane. That now has been addressed by a more functional "breadcrumb". Besides, there are several other options.

Only mouse: Click or right-click the current folder to see a "New Folder..." menu item. You see a downwards pointing arrow, hinting to that you can expect a menu dropping down there.

Only mouse: Click the "Hamburger menu", then the rightmost icon in the top bar, which stands for "New Folder".

Alternative ways to access the option involve the keyboard:

Mouse or mouse and keyboard: Ctrl+F10 revels the right-click menu that you otherwise also can obtain by right-clicking an empty space in the folder. Ctrl+F10 followed by pressing f is a keyboard-only way.
Only keyboard: The shortcut Ctrl+Shift+n immediatelly lets you create a new folder only with the keyboard.


Difficulties installing apache web-server on Ubuntu 16.04

Try checking your group membership to make certain you're using an account capable of making changes to the system.  For example...

richard@XubHome:~$ groups
richard adm cdrom sudo dip plugdev sambashare lpadmin

If you show as being a member of the sudo group, simply entering your account password again should initiate the changes you are attempting to make.

Best success...


You must also allow Apache to access that directory. By default, Apache is only allowed to access /var/www and /usr/share; this access is granted by blocks like this in /etc/apache2/apache2.conf:

<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride None
        Require all granted
</Directory>

Thus you must add a similar block somewhere in your Apache configuration, to grant access to /media/pi/storage/root_folder/:

<Directory /media/pi/storage/root_folder/>
        Require all granted
</Directory>

If you already have a <Directory /media/pi/storage/root_folder/> block, for example in your virtual host config file, just adding the Require all granted directive to it will be sufficient.

In addition, the error log shows that Apache (i.e., the www-data user) does not have read or search permissions to a component of /media/pi/storage. The output of ls -ld /media /media/pi /media/pi/storage shows that /media and /media/pi/storage both have 755 permissions, so the culprit must be /media/pi. Since /media/pi is using Access Control Lists (as denoted by the + sign in the output of ls -ld), we give www-data read and search permissions with

sudo setfacl -m u:www-data:rx /media/pi


Can I make do-release-upgrade only download packages for a later upgrade?

Your first four steps are correct, but step 5 should be sudo do-release-upgrade (instead of sudo apt-get dist-upgrade).  It should notice that all (or most) of the packages it was going to download are already present in /var/cache/apt/archives.

In some earlier versions of do-release-upgrade there was a bug where it would clean /var/cache/apt/archives before downloading the packages anew, but IIRC that bug's been fixed.


Do I have to upgrade to 13.04 to use latest ATI driver

You can not update 11.04 for security updates because it has reached EOL. Any update you make will have to be from the archive repositories and those are just updates up till the time 11.04 reached EOL so they are outdated and your system would still be vulnerable.

Here is a link that talks about EOL versions of ubuntu.
https://help.ubuntu.com/community/EOLUpgrades

I recommend 12.04 it will receive updates for five years and is the most stable version at this time.

You can edit your source list and be able to get updates but these will be old updates.
Edit /etc/apt/sources.list and change archive.ubuntu.com to old-releases.ubuntu.com

sudo sed -i -e 's/archive.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list

Run the command sudo apt-get update && sudo apt-get dist-upgrade and you should get the updates available.


Apt full-upgrade not updating all packages

* UPDATE APPENDED *

Try running this:

sudo apt install libodbc1 odbcinst1debian2 odbcinst -y

That just installs those three apps that are upgradable, calkling them out one by one, typing them manually... and the -y at the end just answers yes to any question that pops up.. so you dont have to answer manually.

good luck

-Booey

Update:

Sorry. I mis-read your question. Allow me to try and correct my mistake.

I myself have ran into this same issue a while back. From what I remember, the issue happens because the option "full-upgrade" is different from the "dist-upgrade" option.

Now, its been a while, but I believe that those items are showing up when you run update because you have "pre-released updates" selected in your Software Properties App.

I dont have anything that is upgradable so I can't test this out, but i think it you run apt / apt-get with dist-upgrade, thosew items will upgrade, and you can see that the two options are different

sorry for the crappy answer.. its been a while since i looked this up

UPDATE #2:

I just looked up my answer, and I can say that I am confident in what I said.

If you open Software Properties App and check the "Developer Options" tab, you should see that the "pre-released updates" is checked.

Just unselect it if you don't want to deal with this issue again.

Cheers

-Booey


Lan (wired) connection not working anymore

As described in the question and comments:

eth0 network link status is link=no
Other devices using the same cable/router can connect to the Internet

The problem is not with the cable/router

The computer worked with the same software/cable/router until a few days ago, and since then it doesn't work anymore
the network-card LEDs doesn't blink

Conclusion

It seems like hardware problem with the network-card.

Suggested solutions:

Use Wifi only
buy USB->ethernet dongle and use Ethernet over USB
Fix/replace the network-card


I have figured out after hours of painful search and Google around the web. The issue lies in the Virtualbox extensions.
First go to the downloads page of virtualbox page and download the extension that MATCHES YOUR VIRTUALBOX version, I highlighted this because it is very important that you do so. Download it in a known folder if your virtualbox is older but in the newer versions it installs in your virtualbox as soon as you click the extension file after it is downloaded. After that all you have to do is agree to the terms of service and it will be installed immediately.
Last but not least is RESTART both the host and guest OS, if you don't do this it will not work. That is it, now the webcam will be visible. Your virtualbox will also be able to support USB 2 and USB 3.


SSH remote commands very slow after migrating from 12.10 to 14.04 on EC2

Um, I think you'll find that your server is triggering a message of the day update upon an established ssh connection.

You can run the scripts in /etc/update-motd.d and see which is running slowly and deal with the slow script however you wish.

Or you can disable this automatic updating by commenting out the following lines in the /etc/pam.d/sshd file

session    optional     pam_motd.so  motd=/run/motd.dynamic noupdate
session    optional     pam_motd.so # [1]


ELAN touchpad of Asus X571 not correctly working with Unity on Ubuntu 19.10, no soft touch

I found a workaround for this bug by adding this command to Startup Applications:
xinput set-prop "ELAN1200:00 04F3:3104 Touchpad" "libinput Tapping Enabled" 1

However at System Settings / Mouse & Touchpad there still are no touchpad controls shown.


You can directly upgrade to PHP 7.4.

PHP versions are separately installed in different directories. Therefore you can also install 7.4 next to 7.2 (if you are running your web hosting yourself, that is).

There are however some compatibility issues between these versions, but in many cases, these do not pose a problem (in my experience). See also:
https://www.php.net/manual/en/migration73.incompatible.php
https://www.php.net/manual/en/migration74.incompatible.php

I hope this answers your question. Otherwise, please let us know.


This problem seems to be "cross platform" (to call it somehow) and most of all has to do with a bug in Flash:

1) Go to http://www.youtube.com/user/YouTubeHelp#p/u

2) Now, the Biggest video That  appears on the left side. click with the right button of your mouse and go to “Settings”, click on the first TAB the monitor TAB and uncheck (turn off) the “Hardware Acceleration”.

3) Go to the video / videos Where You Have Problems viewing and refresh this page. Your videos Should Already Be looking good. No matter if you delete the navigation data in your web browser, the videos Are still playing well. Now you just Have to wait for a new Flash Player Update for hardware acceleration Without any problems ...


The latest release for jpcap was in 2011, so the jpcap-0.7.deb file will be wildly outdated relative to current Ubuntu - or in fact to any still supported release of Ubuntu.

Use installation from source, as described on the jpcap site, or look for an up-to-date successor for the software.  Ubuntu comes with several excellent package inspectors.


Computer automatically switches on in the morning

Check your BIOS, maybe it is set like that (Timer) or Wake-On-LAN or something of that sort. Just reset BIOS Settings and Done!


How can I get autologin at startup working on Ubuntu Server 16.04.1?

Try this:

sudo systemctl edit getty@tty1.service

This will the create a drop-in file (if neccessary) and open it an editor. Add the following, replacing myusername with your user name:

[Service]
ExecStart=
ExecStart=-/sbin/agetty --noissue --autologin myusername %I $TERM
Type=idle

This will:

Create the folder /etc/systemd/system/getty@tty1.service.d if necessary
Create the file /etc/systemd/system/getty@tty1.service.d/override.conf if necessary


sudo apt-get install --reinstall gnome-shell will do the work for you.


This tool should work even if pwmconfig fails to detect manageable sensors  : https://github.com/ichiriac/ubuntu-smart-fan


Lubuntu - Is it possible to install network-manager from an boot disk

you could use the wpa_supplicant package that comes by default on lubuntu to connect to the wifi hotspot and once internet is flowing you can then install network-manager. I assume your hotspot does not have a password on it.

First of all kill wpa_supplicant:

sudo killall wpa_supplicant

then create the wpa_supplicant file:

sudo nano /etc/wpa_supplicant.conf

and paste in the network specs:

ctrl_interface=/var/run/wpa_supplicant

#settings for connecting to an open hotspot without password
network={
    ssid="HOTSPOT NAME"
    key_mgmt=NONE
}

replace HOTSPOT NAME with the name of your hotspot

now start wpa_supplicant via that conf file:

sudo wpa_supplicant -iwlp2s0 -c/etc/wpa_supplicant.conf

wlp2s0 is the name of your wifi interface. you can find it with iw dev

after your machine is able to successful connect to the hotspot request for an ip address:

sudo dhclient -r
sudo dhclient wlp2s0

ping to check if internet is working:

ping google.com

Now if you were able to get the internet to work you can then install network-manager:

sudo apt install network-manager

Hope this helps


How do I replace Windows with Ubuntu, yet keep my data?

Since the process involves a lot of steps, I think it'd be better to provide a link.

So here you have it: How to Install Ubuntu 12.04 Precise Pangolin

If you've any other queries, don't hesitate to ask.

If you want to retain any data which is stored in C: drive, make a backup either on some other partition or on some external media.

If you install Ubuntu in the C: Drive (where the windows is installed) everything in the C: will be deleted. (C: contains all the contents of your Desktop, My Documents, Recycle Bin, and in most cases all your installed programs and files related to them).

On the other hand, if you choose any other partition, the contents of that partition would be deleted.

Since you want to remove Windows and install only Ubuntu, you'll have to choose C: while installing Ubuntu. There will be a window like below while installation and there'll be plenty of other options in your case and I guess you'll be able to choose to remove Windows and install Ubuntu.

If not, you'll have to manually select the partition containing Windows and install Ubuntu on it.


Only root can access to USB even if the user belongs to the right groups

The strace output is too long for the mini comment.

mune@lello:~/work/Domotica/eagle-owl.FM/testpg$ strace cm160
execve("/usr/local/bin/cm160", ["cm160"], 0x7ffe535ecfa0 /* 65 vars */) = 0
brk(NULL)                               = 0x55c7900bb000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=174200, ...}) = 0
mmap(NULL, 174200, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f1a1d4a1000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libusb-0.1.so.4", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20\27\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=30944, ...}) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1a1d49f000
mmap(NULL, 2131264, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f1a1d09c000
mprotect(0x7f1a1d0a3000, 2093056, PROT_NONE) = 0
mmap(0x7f1a1d2a2000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6000) = 0x7f1a1d2a2000
mmap(0x7f1a1d2a4000, 1344, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f1a1d2a4000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0000b\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=144976, ...}) = 0
mmap(NULL, 2221184, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f1a1ce7d000
mprotect(0x7f1a1ce97000, 2093056, PROT_NONE) = 0
mmap(0x7f1a1d096000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x19000) = 0x7f1a1d096000
mmap(0x7f1a1d098000, 13440, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f1a1d098000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\16\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=14560, ...}) = 0
mmap(NULL, 2109712, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f1a1cc79000
mprotect(0x7f1a1cc7c000, 2093056, PROT_NONE) = 0
mmap(0x7f1a1ce7b000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7f1a1ce7b000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260\34\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=2030544, ...}) = 0
mmap(NULL, 4131552, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f1a1c888000
mprotect(0x7f1a1ca6f000, 2097152, PROT_NONE) = 0
mmap(0x7f1a1cc6f000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1e7000) = 0x7f1a1cc6f000
mmap(0x7f1a1cc75000, 15072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f1a1cc75000
close(3)                                = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1a1d49d000
arch_prctl(ARCH_SET_FS, 0x7f1a1d49db80) = 0
mprotect(0x7f1a1cc6f000, 16384, PROT_READ) = 0
mprotect(0x7f1a1ce7b000, 4096, PROT_READ) = 0
mprotect(0x7f1a1d096000, 4096, PROT_READ) = 0
mprotect(0x7f1a1d2a2000, 4096, PROT_READ) = 0
mprotect(0x55c78f594000, 8192, PROT_READ) = 0
mprotect(0x7f1a1d4cc000, 4096, PROT_READ) = 0
munmap(0x7f1a1d4a1000, 174200)          = 0
set_tid_address(0x7f1a1d49de50)         = 888
set_robust_list(0x7f1a1d49de60, 24)     = 0
rt_sigaction(SIGRTMIN, {sa_handler=0x7f1a1ce82cb0, sa_mask=[], sa_flags=SA_RESTORER|SA_SIGINFO, sa_restorer=0x7f1a1ce8f890}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {sa_handler=0x7f1a1ce82d50, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART|SA_SIGINFO, sa_restorer=0x7f1a1ce8f890}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
brk(NULL)                               = 0x55c7900bb000
brk(0x55c7900dc000)                     = 0x55c7900dc000
getcwd("/home/mune/work/Domotica/eagle-owl.FM/testpg", 512) = 45
stat("/home/mune/work/Domotica/eagle-owl.FM/testpg/eagleowl.db", {st_mode=S_IFREG|0644, st_size=11264, ...}) = 0
openat(AT_FDCWD, "/home/mune/work/Domotica/eagle-owl.FM/testpg/eagleowl.db", O_RDWR|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=11264, ...}) = 0
lseek(3, 0, SEEK_SET)                   = 0
read(3, "SQLite format 3\0\4\0\1\1\0@  \0\0\0\5\0\0\0\v"..., 100) = 100
fcntl(3, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(3, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(3, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
access("/home/mune/work/Domotica/eagle-owl.FM/testpg/eagleowl.db-journal", F_OK) = -1 ENOENT (No such file or directory)
fstat(3, {st_mode=S_IFREG|0644, st_size=11264, ...}) = 0
access("/home/mune/work/Domotica/eagle-owl.FM/testpg/eagleowl.db-wal", F_OK) = -1 ENOENT (No such file or directory)
fstat(3, {st_mode=S_IFREG|0644, st_size=11264, ...}) = 0
lseek(3, 0, SEEK_SET)                   = 0
read(3, "SQLite format 3\0\4\0\1\1\0@  \0\0\0\5\0\0\0\v"..., 1024) = 1024
lseek(3, 9216, SEEK_SET)                = 9216
read(3, "\r\0\0\0\5\1c\0\1c\2\216\2\313\0039\3r\1\262\0\345\0\345\0\0\0\0\0\0\0\0"..., 1024) = 1024
lseek(3, 10240, SEEK_SET)               = 10240
read(3, "\r\0\0\0\4\1]\0\2$\2_\3\301\1]\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 1024) = 1024
fcntl(3, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
fcntl(3, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(3, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(3, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
access("/home/mune/work/Domotica/eagle-owl.FM/testpg/eagleowl.db-journal", F_OK) = -1 ENOENT (No such file or directory)
fstat(3, {st_mode=S_IFREG|0644, st_size=11264, ...}) = 0
lseek(3, 24, SEEK_SET)                  = 24
read(3, "\0\0\0\5\0\0\0\v\0\0\0\0\0\0\0\0", 16) = 16
fstat(3, {st_mode=S_IFREG|0644, st_size=11264, ...}) = 0
access("/home/mune/work/Domotica/eagle-owl.FM/testpg/eagleowl.db-wal", F_OK) = -1 ENOENT (No such file or directory)
fstat(3, {st_mode=S_IFREG|0644, st_size=11264, ...}) = 0
fcntl(3, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
getcwd("/home/mune/work/Domotica/eagle-owl.FM/testpg", 512) = 45
stat("/home/mune/work/Domotica/eagle-owl.FM/testpg/eagleowl_stat.db", {st_mode=S_IFREG|0644, st_size=11264, ...}) = 0
openat(AT_FDCWD, "/home/mune/work/Domotica/eagle-owl.FM/testpg/eagleowl_stat.db", O_RDWR|O_CLOEXEC) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=11264, ...}) = 0
lseek(4, 0, SEEK_SET)                   = 0
read(4, "SQLite format 3\0\4\0\1\1\0@  \0\0\0\4\0\0\0\v"..., 100) = 100
brk(0x55c790104000)                     = 0x55c790104000
fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0
write(1, "Wait for cm160 device to be conn"..., 38Wait for cm160 device to be connected
) = 38
openat(AT_FDCWD, "/dev/bus/usb", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 5
fstat(5, {st_mode=S_IFDIR|0755, st_size=120, ...}) = 0
getdents(5, /* 6 entries */, 32768)     = 144
close(5)                                = 0


In the first command, you are writing the output to a location that you have write access to, so everything is fine there.

Now the /pra directory does not exist by default, so I assume you have created it using root access.
So to write to it, you have to use root access as well. Just add sudo to the command as,

sudo sshpass -p prakash123 ssh -t -p $1 prakash@localhost './update_script.sh > /pra/log/update.out 2> /pra/log/update.err < /dev/null | echo $! > /pra/log/update.pid &'

But rather than doing this ,I would suggest you write to a directory in $HOME dir and give it rwx------ permission(i.e read/write/execute for you and no permissions to others).Thus you won't have to use sudo.


Ubuntu 18.04 fails to boot every 15 to 20 boots

It ended up being a bad hard drive.  Replaced it, and everything started working fine.


What package to install to play midi files in Ubuntu 16.04?

Open the terminal and enter:

sudo apt install timidity timidity-interfaces-extra

Enter your password, another prompt may appear type, Y and hit enter.

Go to your menu, you should now have an application called TiMidity++  launch it. In terminal would be timidity mymusic.mid.

In TiMidity++ go to File > load and redirect it the location of your midi file, select the file, then okay then play


How to avoid clamdscan's "ERROR: Can't access file [dead link]"?

According to the man page the default is to not follow links so I think you are getting this error due to a misconfiguration of /etc/clamav/clamd.conf which I assume was edited as clamd creates it the first time it runs.

Regardless you'll want to edit the file and comment out the line.

FollowFileSymlinks (yes/true/1)<-it will have one of these equivalent boolean values

and if you don't want to follow directory symlinks either comment out the line

FollowDirectorySymlinks (yes/true/1)<-it will have one of these equivalent boolean values

as well. This should return you back to default operation and eliminate the ERROR: Can't access file /tmp/test/file

Alternatively: If you prefer, rather than commenting out the line that's deviating from default behavior you can simply choose to set it to one of the following: no, false, or 0

If that doesn't solve your problem you've discovered a bug and should report it.


It sounds like your sources.list file is missing, based on your topic description. Check if the file is indeed missing...

file /etc/apt/sources.list

If it is missing, I've attached a copy of the original sources.list file at the end of this answer. (By the way, I noticed you are logged in as root.  It's probably better to login as an admin user and elevate your privileges as/when needed).

In a terminal type

gksudo gedit /etc/apt/sources.list

Cut and paste the contents of sources list shown at the end of this answer. Close gedit, and enter the following in your terminal

sudo apt-get update

Regarding other repositories you may have added, open a new question as suggested.

Standard sources.list file (14.04)

#deb cdrom:[Ubuntu 14.04 LTS _Trusty Tahr_ - Release amd64 (20140417)]/ trusty main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ trusty main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-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://us.archive.ubuntu.com/ubuntu/ trusty universe
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty universe
deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-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://us.archive.ubuntu.com/ubuntu/ trusty multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty multiverse
deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-updates multiverse

## 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://us.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu trusty-security main restricted
deb-src http://security.ubuntu.com/ubuntu trusty-security main restricted
deb http://security.ubuntu.com/ubuntu trusty-security universe
deb-src http://security.ubuntu.com/ubuntu trusty-security universe
deb http://security.ubuntu.com/ubuntu trusty-security multiverse
deb-src http://security.ubuntu.com/ubuntu trusty-security 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 trusty partner
# deb-src http://archive.canonical.com/ubuntu trusty 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 trusty main
deb-src http://extras.ubuntu.com/ubuntu trusty main

Generate a sources.list file instead

You can generate a list interactively via this URL: https://repogen.simplylinux.ch/


Add startup dependency from netplan to ssh

The standard ssh systemd unit declares:

After=network.target auditd.service

If you need to wait for the network to be up before starting the service, you should change this unit to also be sequenced after network-online.target.

For upgradability, this should be installed as an add-on config file in /etc/systemd/system/ssh.service.d/.


How to restart apache2 when I get a pid conflict?

Thanks to @douggro who found the answer.

Find the processus id of Apache2 with :

pidof apache2

Kill the process(es) :

sudo kill -9 <pid>

Then you can start Apache2 as usually :

sudo service apache2 start

UPDATE

If sudo kill -9 <pid> doesn't work, just try sudo kill <pid> !


Dual boot Windows and Ubuntu on separate drives

I don't understand why you used EasyBCD, as it's really not necessary in this case. It appears to be that you have been booted to a Grub shell. Take a look at this for how you should boot to your Linux HDD. Once you do that, run (in a terminal):

sudo update-grub

and it should automatically add entries to your Grub configuration.


Unity WebApps API not available on load in Chromium

The example below (from here) shows the event unity-webapps-api-ready will fire when the API is available. I'm not sure where this is officially documented, but it seems to work for me.

function onApiReady() {
    Unity = external.getUnityObject(1.0);
    Unity.init({name: "Unity Web Tutorial",
        iconUrl: "http://www.ubuntu.com/tutorialIcon.png",
        onInit: unityReady});
}

if (navigator.userAgent.search('Chromium') >= 0) {
    // Wait until WebApps API is available
    document.addEventListener('unity-webapps-api-ready', onApiReady);
} else {
    onApiReady();
}


Confusion regarding *.desktop files: okular.desktop appears multiple times in Nautilus // okular.desktop vs. okularApplication____.desktop

.desktop files are simple text files. All you need to do is have a look at the contents to see the differences between them.

As far as I can tell, these are just different .desktop files for different file formats that open with okular.

I'm not sure what you're actually asking. If you're asking how you can find the "Real" okular desktop file, it's the one that's actually called okular.desktop:

ls /usr/share/applications/kde4/okular.desktop

To see the differences, you can run diff. For example:

 diff okular.desktop okularApplication_dvi.desktop

That will show you that the differences are basically in the mimetypes and KDE categories associated with each .desktop file. These are just internal tricks used by the desktop environment (KDE for example) to correctly classify programs in its menus and file associations. For example, the plain okular.desktop is categorized as

$ grep Categories okular.desktop
Categories=Qt;KDE;Graphics;Office;Viewer;

While the okularApplication_dvi.desktop (which is okular acting as  .dvi viewer) is:

$ grep Categories okularApplication_dvi.desktop
Categories=Qt;KDE;Graphics;Viewer;

Note that it is not categorized as Office since this is okular in its manifestation as a dvi viewer.

Basically, these are all internal details that you can safely ignore. Whenever you want to find the .desktop file for a program, just look for ProgramName.desktop and ignore the rest.


Erratic scrolling and no control with logitech M325 in all programs Ubuntu 18.04 bionic

From the comments...

Unplugging the Logitech Unifying receiver and turning off the mouse solves the problem.

Narrow it down by just plugging the Unifying receiver back in, but leaving the mouse TURNED OFF. That'll identify if the mouse itself is causing the problem.

Update:

It was the mouse, as I suspected.


apt-get failed install of libg15, all package management is failing

I solved the problem!

I did a quick edit of /var/lib/dpkg/status and removed the half installed package information. After that I was able to open synaptic and purge all of the packages associated with G15.


How do I disable global menu for Libreoffice 4.0 in Ubuntu 12.04?

The global menubar integration comes with libreoffic-gnome.


Installing ubuntu 19.04 (Desktop & Server) Kernel Panics and Crashes

You need to verify the ISO, or if it's valid, write it again to thumb-drive or your install media as either of them was flawed as shown by squashfs read errors in your picture.

For information on verifying your install media, please see

https://tutorials.ubuntu.com/tutorial/tutorial-how-to-verify-ubuntu

To use the check-media-for-defects option you can see

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

though the picture shows a much older release of Ubuntu, but the "Check CD for defects" option is what you needed to use to detect your flaws

The other options is a bad thumb-drive (or cd/dvd or whatever install media you had), or bad hardware, but I'm betting it'll be download or write-to-thumb-drive that failed.


Does copying files from NTFS to EXT4 degrade/corrupt the files?

Its a nice thought, but no it doesn't. You will just need to set the permissions for all the files since NTFS doesn't support that.

However, you should think about having a dual boot, if it is that you installed Ubuntu alongside Windows with Wubi. If you do have a dual boot, there is no real reason why Ubuntu should be slow, except if you have your Ubuntu partition full, or have allocated no swap partition.


Can I change the standby time for my monitor with ddcutil?

I am the developer of ddcutil
The only feature in the Monitor Control Command Set relating to DPMS is xd6 (Power Mode).  There is nothing to adjust the standby time.   It is conceivable that one of the features in the manufacturer reserved range (xeo-xff) does so.  Only trial and error can determine this.  Your best bet is the On Screen Display.
Unless you have specific knowledge, I wouldn't put much stock in the controller manufacturer/model number (feature xc9). I've yet to observe a functionality pattern.


unable to locate the packages slapd and slapd-utils

First you need to do is, update the cache:
apt-get update
Search the package name:
apt-cache search slapd
Install the package based on the output you see in step 2.
apt-get install <pakcage_name>

However if it still not visible there must be something that need to be fix in APT.


Ctrl + Alt + F1 gives you the CLI version of your OS.
Enter your username when it says login: and you will be prompted for password.
Proceed to type the commands as you do in a normal terminal and things should be fine.
You can switch back to graphical mode by pressing Ctrl + Alt + F7/F8

Here is a Link to one of the answers to your problem


Installing ubuntu server using Network Console

This message comes up because you have connected to a machine with the IP address of 10.0.0.20 before and the machine you are now connecting too doesn't have the same fingerprint for the RSA key.

If that IP address is one that you often use for your test machines or VMs then simply edit ~/.ssh/known_hosts on your MacBook Pro and remove the entry for 10.0.0.20

The next time you try to ssh it should ask you if you want to save the RSA fingerprint.


IP Messenger not working in Ubuntu 14.04 LTS

After spending lot of efforts, I've found two solutions:

1. Wine

Install wine to run IPMsg.exe on ubuntu. But it has a problem while transferring files. Ubuntu system can only receive files form IPMsg if its running using wine. While sending files from Ubuntu to Windows based IPMsg it will show 0KB file size and it will not allow you to receive any files.

So if you are just looking for non-file transfer solution. Just install wine and run IPMsg.exe.

2. iptux (Preffered solution)

This is the solution I've used finally. Installed iptux in my ubuntu system and its all working now. I can send files to windows users who are using IPMsg.exe.

$ sudo apt-get install iptux

Sending file from IPMsg (Windows system) to iptux(Ubuntu system)

Receiving file at iptux (Ubuntu system)

Update:
Sometimes iptux also unable to send file from Linux system to any other. In such case please try transferring directory instead files. It works.


How do I mount a hibernated partition with Windows 8 in Ubuntu?

You can not mount a hibernated partition (At least in a Read/Write state). The reason behind this is that if you happen to copy something from your Ubuntu system to the Window's hibernated system, it will be lost when you boot Windows.

This is actually a safety feature put by the mounting process in Ubuntu because many users complaint that when they copied something from Ubuntu to Windows, they lost the data. It later came to light, that the Windows system was hibernated, creating this problem because in hibernation, everything is frozen (The system is read only) and is not changed until you boot again from within Windows.

The recommendation as mentioned by the warning is to boot Windows 8 and shut the system correctly. not by hibernation, but by the shutdown option.

If you still want to mount the unit, it should be in a READ ONLY state. For this we could do the following:

sudo mount -o ro /dev/sda2 /mnt

Where ro is Read Only, /dev/sda2 is the partition you want to mount and /mnt is where you want to mount this partition.

Still I would go with going to Windows 8, shutting down the computer (No hibernation) and going back to Ubuntu and enjoy a warm and sweet moment with a Read/Write partition.

UPDATE: If your Windows 8 system always stays in a hibernated state, please read the section about TROUBLESHOOT in Installing Ubuntu Alongside a Pre-Installed Windows with UEFI . It covers the weird behavior "feature" Windows 8 offers to users automatically to make the system more confusing "better" for them.


How do I use my RX 5700 with Ubuntu 19.04?

I wrote a guide on how to use RX 5700 (XT) on 19.04 with open source drivers here: https://ubuntuforums.org/showthread.php?t=2425799
If you already have oibaf's PPA and 5.3 kernel installed all you need is to download firmware files and copy them into /lib/firmware/amdgpu


How do I configure a network interface that has a predictable network interface name?

What IS the name of the ethernet interface? In later Ubuntu versions, it is probably not eth0. Find out with:

ifconfig

Guessing that it may be enp8s0, I suggest that you amend your file to:

auto lo
iface lo inet loopback

auto enp8s0
iface enp8s0 inet static
address 10.0.0.252
netmask 255.255.255.0
gateway 10.0.0.1
dns-nameservers 10.0.0.1 8.8.8.8

Reboot and check:

ifconfig
ping -c3 www.ubuntu.com


you seem to not be depending on "@angular/core". This is an error

I got the solution by running the below command:

Delete your node modules , Check your package.json file should have the @angular/core and reinstall it with
npm i.


Toshiba satellite radius not loading bootable usb

I've installed UbuntuGNOME 15.04 just recently and v608 of Unetbootin for windows consistently failed to write a bootable image.I solved the problem by using imageusb to burn the iso on to the drive. You should also see the checksum of the .iso that could tell you if it's a corrupted download.
To do that in windows if you have 8 or 8.1 is to open powershell cd to the directory and type

Get-FileHash -Algorithm sha256/md5/etc .\thefileyouwanttocheck.iso

It's slow for bigger files it may well take up to a minute or more, so don't close it.Otherwise you'll need to download a tool for checksums.


Mine looks similar to yours and works as advertised. Based on the differences I see I would recommend the following course of action:

0) make a backup copy of /etc/default/grub as in sudo cp /etc/default/grub /etc/default/grub.bak So that if an error is made you can revert to the previous file and be no worse off.

1) Place quotes around all non comment values after an = sign

2) Remove or comment out the line GRUB_RECORDFAIL_TIMEOUT=10 as it's indicated a problem in this bug which is flagged a duplicate of this bug

3) run sudo update-grub after completing these changes.


I do not know anything specific that could be done, though Ubuntu does have a built in wireless backports package. That might enable your hardware to work itself. Unless you know you need an external download to allow it to work. To install just search 'wireless backport generic' in synaptic. There should be a meta package for wireless.

If you know what configuration files you need, back them up to a flash drive and then restore them manually. I advise you ask specific questions or do research on your exact chip. You can find out the chipset and driver by running this in a terminal:

  sudo lshw -C network


Kept trying without any luck.

I ended up creating a third folder /home/shared and then making the developers group owner of that and it started working fine.

I'd still like to know if there's a fix to my original question though.


Will it be possible to switch from systemd to upstart from 15.10 onwards?

Unlikely anyone will be able to answer this based on facts but I would assume that ...

switching from GRUB like you can do now (at run time) is likely to disappear and this is also likely to happen when 16.04 LTS arrives. During the Ubuntu Developer Summit (UDS 14.03) Mark Shuttleworth announced that systemd will be used as default on the next LTS version of Ubuntu, Ubuntu 16.04.
but as long as the package is available you can install it yourself. 15.10 still has upstart. How well new services will be supported by upstart is anyone's guess. Even I myself doubt it will be supported.

So I assume the answer is yes but with increasingly difficulty. I would forget about upstart and get to know systemd. In this case I would advice to not swim against the current.


Can't connect to ethernet with Atheros AR8161 on Ubuntu 12.04.2

In network-manager on tab Ethernet set MTU size to 8192. https://bugzilla.kernel.org/show_bug.cgi?id=70761


You can't get it to work easily. Kodos still uses the very ancient Qt3 which is dropped in Quantal. Debian already dropped it in May. See Debian bug #604359. Quoting:

  One year and a half later, it is about time to remove Qt3 and python-qt3.
  Please, migrate to the Qt4 version (if existing) or file for removal of your
  package.

Talk with the developers of Kodos in order to get it fixed. Depending on Qt3 is a dead end nowadays. And that's why installing Qt4 packages isn't helping you.


After uninstalling ubuntu i can't enter any system. Grub rescue error: unknown file system

Of course! You erased the boot loader, so nothing can boot. you have two options:

If you want to install Ubuntu again, just do it! That will install a new grub over the broken one!
If you don't want to install Ubuntu, insert Windows 8 disk and repair the boot loader from it. I'm not sure if you can do it with Windows7 disk or not!


Best way to access a Windows-XP virtual machine

If you want something that really rocks, you'll probably want to have a look at SPICE, which works with KVM and the newest virt-manager. It really is something else. The last time I played with it on Ubuntu, it was a little difficult to get up and running, but it was definitely worth it. I know people have been working to make this easier, but I don't know how how far they've come.


Slow file transfer issue with usb storage

Linux kernel implements the strategy that all read-writes from/to external devices go though the RAM (buffer).

So sometimes it can be seen graphically that at first the contents are going very fast from disk to the external USB but its slowing down at the last moment, this happens when the contents are being transferred from buffer to the USB device. This solely depends on how speedy your USB are and also depends on disk speed at first while transferring from disk to buffer. Sometimes it can also happen that you don't have sufficient free buffer to carry out the operation smoothly.

I would suggest you to look at iotop to get a better idea on this. You can install iotop by :

sudo apt-get install iotop


How can I specify the order in which filesystems are automatically mounted?

One option is to postpone mounting until after /etc/fstab has completed, this gives you full control over the mount order.

Just add noauto to the mount options in fstab, and mount in rc.local.

According to the man page, mount -a mounts the entries in fstab sequentially, while adding the -F ('fork') option will mount them in parallell. It appears that the standard boot is using 'fork', presumably to reduce boot time, so I guess mounting (semi-)manually afterwards is the simplest way to regain control of the mount order.


How do I enable extended attributes on ext4?

To enable extended attributes the user_xattr option in /etc/fstab

Example:

/dev/sda2  /media/mount_point  ext4  auto,users,user_xattr  0  2

You would then re-mount the partition.

and the man page :

http://manpages.ubuntu.com/manpages/precise/man5/attr.5.html
I looked at the kernel configs here and support for xattr is enabled by default , so no need for a custom kernel.
Discussion on the Ubuntu Forums


I had the exact the same problem.

I had to run this command (see below) to see what all tomcat related libraries are there and remove ALL the tomcat related libraries:

To see what all tomcat related libraries are there:

dpkg -l | grep -i tomcat

To remove a tomcat library:

dpkg -P <library-name>

Then, I reinstalled tomcat7 using the command:

sudo apt-get install tomcat7

[ During installation, it spit out messages saying it is going to install some of the other libraries related to tomcat7 - I chose - yes ].

It installed tomcat7 and started it.

Then, I stopped and restarted tomcat7 using these commands:

/etc/init.d/tomcat7 stop
/etc/init.d/tomcat7 start


Can I call the GNOME restart confirmation prompt from the command line?

/usr/lib/indicator-session/gtk-logout-helper -r will do it.

Note that this is not the upstream GNOME restart dialog; it's specific to indicator-session. You'd invoke the GNOME one with gnome-session-save --shutdown-dialog.


Tap to click - short mouse movements registering as a click

Maybe this also helps here:

Edit the file

/usr/share/X11/xorg.conf.d/50-synaptics.conf

And edit the "touchpad catchall" section, so it will look like this:

Section "InputClass"
Identifier "touchpad catchall"
Driver "synaptics"
MatchIsTouchpad "on"
# This option is recommend on all Linux systems using evdev, but cannot be
# enabled by default. See the following link for details:
# http://who-t.blogspot.com/2010/11/how-to-ignore-configuration-errors.html
MatchDevicePath "/dev/input/event*"

Option "FingerLow"              "46"
Option "FingerHigh"             "46"
Option "ClickFinger1"           "1"
Option "ClickFinger2"           "2"
Option "ClickFinger3"           "3"
Option "TapButton1"             "1"
Option "TapButton2"             "2"
Option "TapButton3"             "3"
Option "AreaBottomEdge"         "85%"
Option "SoftButtonAreas"        "60% 0 85% 0 40% 60% 85% 0" # Btn2 LRTB - Btn3 LRTB
Option "EmulateMidButtonTime"   "75"
EndSection

(source: http://memobadz.wordpress.com/2014/02/16/lenovo-yoga-pro-2-on-ubuntu/ )

Try some of the tips from here:

Ubuntu on Lenovo Yoga 2 Pro


After rebooting with a Hard disk drive with ubuntu 18.04 ISO inside and clicking "Install Ubuntu", I got a black screen. My laptop is Lenovo

Installing to External Drive from External Drive
You first need to install Ubuntu Live to an external drive before you can use it to install Ubuntu. (It is likely much easier to use a Live USB to install Ubuntu to the external drive).
Both Rufus and Etcher will install Ubuntu Live to an External USB pendrive. Ubuntu Live can then be used to install Ubuntu to the same external drive.
In Rufus select "List USB Hard Drives"
In Etcher select the gear in the upper right hand corner, then select "Unsafe mode"
Warning: This will overwrite all data on the external drive.
Remember to unselect these options when done.
Disable internal drive before proceeding.
Once Ubuntu Live is installed to the external drive, boot it in the same BIOS/UEFI mode Windows uses, using the toram option.
Press shift as soon as the boot starts. Press esc then press F6, press esc again, then type a space and then type toram.
Once booted open Nautilus and enter sudo umount -lrf /dev/sdxy Where sdxy is the partition containing the running Live Ubuntu.

Start Install Ubuntu.
Select Language, click "Continue".
Select Keyboard layout, click "Continue".
Select Wireless network, click "Continue". (optional).
Select installation preference and select "Download updates while installing Ubuntu", (optional), and Select "Install third-party software ...", click "Continue". (Optional).
If asked about mounted partitions, select Yes, click "Continue".
Do not use Advanced feature disk encryption for this install method.
At "Installation type" select "Something else". (Full disk encryption is not working with flash drives).
Select "Continue".
Confirm target device for bootloader is correct.
Select "New Partition Table".
Click Continue on the drop down.
Click "free space" and then "+".
Select "Primary", "Size ..." = 4500 to 6000 MB, "Beginning of this space", Ext4, and Mount point = "/" then OK.
Click Install now.
Confirm partitions to be formatted if asked, click continue.
Select your location. click "Continue".
Insert your name, computer name, username, password and select
if you want to log in automatically or require a password. - Click "Continue".
Wait until install is complete.


Run this command in a terminal window (press Ctrl+Alt+F1 key combination at login prompt if needed to enter text-mode Ubuntu/console):

    sudo update-grub

Reboot and see what next. If you still have problems after reboot, visit this page where you'll find some official guide for Ubuntu repair with the installation media. Make sure you still have Ubuntu installation DVD or the Live USB pendrive from where you installed Ubuntu.


Installing two linux distros with windows 10

Short answer: BIOSes and EFIs boot very differently. You're thinking in BIOS terms.

Long version: In a BIOS, boot code resides in the boot sector of a disk and then in various follow-on locations. Typically, the boot loader for an OS goes on the same physical disk as the OS's main files. Therefore, you can control the boot process by plugging in one disk or another.

Under EFI, boot loaders are stored as ordinary files on a partition called the EFI System Partition (ESP). The ESP might or might not be on the same physical disk as the OS(es). You can also have multiple ESPs -- one per disk, two on one disk and one on another, or whatever. The computer knows which boot loader to use because that information is stored in NVRAM. If you unplug a disk, the NVRAM may be cleared of references to boot loader(s) on that disk. (This behavior is a feature of some EFIs, but not of all of them.) When you install a new OS, it will typically put its boot loader in an ESP and make it the default boot loader. Which ESP? Good question! Unless you understand and properly control the process, it might as well be random.

GRUB adds a further twist to the picture, because it relies on a configuration file that need not be on the ESP. In the case of both Ubuntu and Mint, the GRUB configuration file goes in the Linux /boot/grub directory. If this directory is on a different physical disk than the ESP, and if you unplug that disk, GRUB will fail, presenting a grub> prompt and being generally useless. You were unclear about GRUB's failure state, but it sounds like this was it.

Under EFI, it's possible to change the default boot program by using a Linux program called efibootmgr -- type sudo efibootmgr to see the available boot programs (or sudo efibootmgr -v to get more details), then use the -o option to re-order them, as in sudo efibootmgr -o 3,5,0.

Putting all of this together, chances are you wound up with Ubuntu's GRUB on an ESP on your internal disk with its configuration file on the external disk. You might have been able to correct this by using efibootmgr to switch back to Mint's GRUB -- but as Mint is basically Ubuntu with bits added, it's likely that Ubuntu's GRUB overwrote Mint's GRUB, so this might not have worked. Using Boot Repair probably restored Mint's GRUB to control of the computer and added Ubuntu to Mint's GRUB menu.

Another option would have been to install another boot loader that doesn't have GRUB's cross-partition dependencies. My own rEFInd is particularly useful in situations like yours, because it scans for boot loaders and kernels at every boot. Thus, if you were to install rEFInd on your internal disk's ESP, it would detect Ubuntu's kerenels if and only if your Ubuntu disk were plugged in. With that disk unplugged, the Ubuntu kernel option would disappear from the menu. (There might be a separate option for launching GRUB, which would probably have an Ubuntu icon.)


Unable Connect To Internet In Ubuntu 14.04.4 LTS

verify that your ethernet devices did not change names after the update/reboot. in your /etc/network/interfaces file you probably have something like:

# The primary network interface
auto eth0
iface eth0 inet dhcp

Check dmesg output that the device is still being called ethX. I have seen them become emX. If they have changed, you need to make changes to /etc/network/interfaces to reflect the different device name.


What is the best way to ensure that a specific interface gets assigned to eth0 after install?

Ethernet Interface Logical Names

Interface logical names are configured in the file /etc/udev/rules.d/70-persistent-net.rules If you would like control which interface receives a particular logical name, find the line matching the interfaces physical MAC address and modify the value of NAME=ethX to the desired logical name. Reboot the system to commit your changes.

https://help.ubuntu.com/lts/serverguide/network-configuration.html


Explanation of exporting a path variable

$PATH is a variable where bash looks for executables.

It is a list of directories separated by a :

echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

So yes you are adding $TEST1 to your path

If you set a variable in a bash shell, the variable is available only within the context of the script. When you export it, it is available outside the script.

See:

http://www.codecoffee.com/tipsforlinux/articles/030.html

http://www.ibm.com/developerworks/linux/library/l-bash/index.html


Buddies > Show > Offline buddies :-) (You can hide them again when you're done.)


Finally, I managed to narrow down the possibilities. When booting, I pressed Ctrl + R to view RAID settings. It turns out the drive had been connected properly, but the system didn't yet know it existed through the PERC 6/i controller.


Can't see android Pocophone in Ubuntu 18.04 (usb cable)

This is actually a problem of Android, not Ubuntu. Do this on Android:

Open the Settings app.
Go to About Phone
Tap Build Number 7 times (On the Pocophone, this is called 'MIUI version (for POCO)
This should activate Developer Options
Go to Settings > Developer Options > Select USB configuration
Select MTP (Media Transfer Protocol)

After this Ubuntu (and other OS) should show you the files inside your phone.


Using the Installer and clicking Upgrade - Are they the same?

But my question is will this happen even if I run the CD while on Ubuntu?

You should understand that the Ubuntu Live-CDs (which most people download) do NOT contain the .deb packages that are used for an upgrade; instead, they contain the entire filesystem in compressed form, so that it can be used both for the LiveCD, and to perform a new installation (the filesystem is simply copied to the hard disk in that case).

If you have decent internet access, it is HIGHLY recommended to go the upgrade route. If you don't, maybe you can get your hands on the alternate CD? That does have the regular deb packages/repository, and you could conceivably use apt-cdrom to add it to your /etc/apt/sources.list as a local repository and use it for the upgrade.


Copying partitions from larger HDD to smaller SSD

I would do that with clonezilla.
https://clonezilla.org/


Copying files and folders with cp with shopt extglob - error is not a directory

Are you sure the problem is not the usage of "user" here...
DEPLOY_SIMULATION_ENV="/home/user/Desktop/fancyproject/"

If the account name is not "user" it will fail with the same error as you show. You need $USER if you want the actual user.

Is there a way to do it with cp

Yes... but not how you expect it.

--parents
Form the name of each destination file by appending to the target directory a slash and the specified name of the source file. The last argument given to cp must be the name of an existing directory. For example, the command:

      cp --parents dir1/dir2/file1 dir3

will create /dir1/dir2 inside dir3 (needs to already exist) and copy file1 into it.


You can follow the official Ubuntu how-to guide:https://help.ubuntu.com/community/BinaryDriverHowto/AMD.

open your terminal and type:

 sudo apt-get install fglrx

Then generate a fresh xorg.conf, before you reboot:

 sudo amdconfig --initial
 sudo apt-get update

Reboot.


How can I choose a different Ubuntu One default local folder?

To change the Ubuntu One default folder (tested in Ubuntu 12.04):

Open /etc/xdg/ubuntuone/syncdaemon.conf as root

comment out the following code:

from   root_dir.default = ~/Ubuntu One

to     # root_dir.default = ~/Ubuntu One
Copy /etc/xdg/ubuntuone/syncdaemon.conf

to ~/.config/ubuntuone/syncdaemon.conf

with user attributes
Open ~/.config/ubuntuone/syncdaemon.conf as user

change the root directory wherever you want, e.g.:

from   # root_dir.default = ~/Ubuntu One

to     root_dir.default = ~/Public/Ubuntu One
logout and log back in

It's done and working (at least for me)

(ubuntu 12.04 with Gnome and Unity)

General comments:

Playing with root_dir.default in /etc/xdg/ubuntuone/syncdaemon.conf is
troublesome because changes become active for all users in the same machine.

Aside soft links doesn't really change de directory.

Finally, ability to change working directory from user interface should be
standard if we want to make Ubuntu more user friendly for new linux users
as a way to attract users from other systems (always preaching)


Error when update ubuntu 19.04 to 20.04?

That's not an error.
That's the expected behavior when you miss the release-upgrade window. You are several months too late for a release-upgrade.

Your remaining supported release-upgrade method is to backup your data and clean-install a supported release of Ubuntu.

There are several unsupported methods you could try...but if you run into problems we won't offer useful help. They are not supported.

Consider marking your calendar so you don't miss the three-month-long release-upgrade windows (October-January and April-July). Or consider migrating to an LTS so release upgrades happen every two years.


cant install libqt4-sql-psql on ubuntu precise unmet dependencies

It seems like you are using or have been using the kubuntu backports ppa.

Check if you have pinned packages in /etc/apt/preferences.d/ preventing the install of certain package versions.

Then make sure the kubuntu backports ppa is added and updated by running the commands below. Run apt-get install python-software-properties (on Ubuntu 12.04 Precise) if you don't have the apt-add-repository command.

apt-add-repository ppa:kubuntu-ppa/backports
apt-get update

Then try to install the package again:

apt-get install libqt4-sql-psql

If apt is completely stuck and won't let you do the above, you might need to either uninstall the broken package or force install.

apt-get remove libqt4-sql-psql

or

apt-get install -f


Redmine install from repos is having macro problems

I think you are suffering from:
http://www.redmine.org/issues/7013

It's probably a good idea to re-report this issue at:
https://bugs.launchpad.net/ubuntu/+source/redmine/+filebug

Hope this helps.


Lost my Wifi connection after running last ubuntu update

You need to update linux-firmware. The 18.04 repo doesn't have the rtw88/rtw8822c_wow_fw.bin file yet.
You can safely install the linux-firmware from the 20.04 repo, because now you have the same firmware. Run in a terminal:
wget http://mirrors.kernel.org/ubuntu/pool/main/l/linux-firmware/linux-firmware_1.187.2_all.deb
sudo dpkg -i linux-firmware_1.187.2_all.deb


Cron not running scripts, no errors in /var/log/syslog

Turns out, my script was creating the file in cron.d with the wrong permissions. This was causing cron to ignore the script.

chmod 600 /etc/cron.d/myfile fixed the problem.


If you have a LAN behind a router with NAT you can forward ports to your routers public IP address to a private address and port in your LAN.

You could also set something usually called DMZ or something to a machine in your LAN. Then all ports will be forwarded to that machine.

All this has to be done in the router and not in your local servers iptables. There iptables will work on connection to your machine and not with NAT.

That usually works well, sort of, outside of your LAN using the public IP address of your router. It also works from your LAN using the servers private address. But if you use your public address from within your LAN, there are usually problems connecting because the router get confused.
There are solutions to add ip rules in your router/NAT so it works, but then you get other problems.

Yes, NAT is an uggly hack where this is just one small problem with NAT. The real solution is to use IPv6.

To analysing this you need a machine inside the same LAN as the server and one other machine outside your LAN.
You should use nmap from server with localhost, local machine and use private and global address to the server and last from the machine outside your LAN to the global address of the server/router.
Also try traceroute from your local machine to your server using private and global address.
For more detailed analysis use wireshark from strategical points in your LAN.


Change the voltage of the CPU for each frequency

This is your classic XY problem where you ask how to change CPU voltage differently than how Intel does it when the frequency changes. In reality the question to ask is how to save battery life for more operational time.

This article addresses your issue in 8 simple steps:

Set Ubuntu’s Built-In Power Settings

Open ‘System Settings’
Select the ‘Power’ icon
Adjust settings to suit your needs

Turn off Bluetooth. Simple click the Bluetooth icon and:

Switch slider to ‘off’ (more recent versions of Ubuntu)
Click ‘turn off Bluetooth’ (older versions of Ubuntu)

Turn off Wi-Fi

Click on the ‘Wi-Fi’ icon
Select the ‘Enable Wireless’ entry

Lower Screen Brightness

Open System Settings
Select Brightness & Lock
Adjust the Brightness slider

Unplug USB Drives, SD Cards, Discs, etc

Open a new File Manager window
Click the eject button on attached USB drives/SD cards

Quit Apps You’re Not Using
Avoid Adobe Flash (Where Possible)

Try to use a browser that configures Flash content to show ‘On Demand’. Firefox will prompt you to ‘enable’ Flash elements.
Google Chrome has a hidden ‘Plugin Power Saver’ option in chrome:flags that you can try.

Install TLP. Options include:

Kernel laptop mode and dirty buffer timeouts
Processor frequency scaling including “turbo boost” / “turbo core”
Power aware process scheduler for multi-core/hyper-threading
Hard disk power management level and spin down timeout
Runtime power management for PCI(e) bus devices
Wi-fi power saving mode
Powering off disc drive
Audio power saving mode

Read the article for more details on each step.


Your listing says you tried to run -bash literally, with the hyphen at beginning. Compare with this example:

$ asd
asd: command not found
$

Try issuing the command again without the leading hyphen.


You can remove the Nvidia proprietary driver by running in terminal

sudo apt-get purge nvidia*

I also suggest removing xorg-edgers ppa too. It can be done by

sudo apt-get install ppa-purge
sudo ppa-purge ppa:xorg-edgers/ppa

But I suggest installing proprietary Nvidia driver with nvidia-prime.

If you choose the right driver and install it correctly, you will always be able to switch to Nvidia or Intel GPU.

If you do not do this, both adapters will consume power. You will get overheating and low battery life.


How can I protect my OLED screen from burn-in?

Activate the xdg-screensaver after enabling it, or use Xscreensaver (man page).  The former blanks the output, whereas the latter provides your choice of blank output, or multiple outputs which randomize the content.


How should one lock Wine apps to the Unity launcher?

Try this:

run the app
right-click its icon
select "keep the launcher in dock" or similarly named option.

EDIT: it didn't work, so second way:

install Alacarte or menulibre (these are menu editors)
create a custom launcher with command like wine "/home/<your_username>/Downloads/Rosetta Stone.exe"
drag it from menu to the dock.

It should work, but if we aren't lucky, you may have two icons when the app is running - the launcher you created and wine icon (because wine will be running).


Virtual Packages ; offline installation problem

Because python-sip provides sip-api-8.1:

$ apt-cache show python-sip | grep Provides
Provides: python2.7-sip, sip-api-8.0, sip-api-8.1

How can you find that out for yourself?

$ aptitude show sip-api-8.1
No current or candidate version found for sip-api-8.1
Package: sip-api-8.1
State: not a real package
Provided by: python-sip

or, using grep-dctrl in dctrl-tools:

$ grep-aptavail -F Provides -s Package,Provides sip-api-8.1
Package: python-sip
Provides: python2.7-sip, sip-api-8.0, sip-api-8.1


Only 4 partitions for Ubuntu 16.04 Desktop

This is by no means an exact science. Many people will have different preferences or recommendations.

Here is what I tend to use (except I don't use swap):

/  (root, approx 30GB. It's better to not have to resize this later)
/boot (boot/efi, approx 1GB, min 512MB)
/home (disk_size - root_size - boot_size - swap_size)
/swap (if you have tons of ram you might not even need a swap partition unless you need hibernation)

Your OS/Programs go into the root, or can be installed into your home folder.  The programs themselves are not what is important to keep, it's the program data that is stored in your $HOME folder that is important to retain between installations.


Convert multiple images to png with Adam7 interlacing

Install Image Magic first
sudo apt-get -y install imagemagick

use the convert command in your image directory like this
convert -interlace PNG *.jpg images.png

Hint: The best way to figure this out is to make a copy of your image directory and try it more than ones.
More information about imagemagick could be found at: Image Magic.org


I want to move drivers out of my archive manager/file roller

Update manager, Software center and Synaptic all only access software present in one of the package repositories you've added to your system.

There is no easy way to have them use a archive file from the archive manager (you'd need to convert the driver archive to a .deb file and set up your own package repository for that).

For some drivers there are already (unofficial) package repositories, so if you tell us which driver you want to add maybe someone knows a repository for it.


how can I rewrite a bash script as a one liner?

Since you need to run a command with a value given by a previous command, you at least have to run two different commands. So first store the value of wid and then use a one-line if check:

wid=$(xdotool search --name Keyboard|head -1)
[[ "$(xwininfo -id "$wid" | grep "Map State:")" == *IsViewable ]] && xdotool windowunmap $wid || xdotool windowmap $wid

This takes ventage of the fact that an if condition:

if [ ... ]; then
   do if true
else
   do if false
fi

Can be written as a mere [ ... ] && do if true || do if false

In just one line:

wid=$(xdotool search --name Keyboard|head -1); [[ "$(xwininfo -id "$wid" | grep "Map State:")" == *IsViewable ]] && xdotool windowunmap $wid || xdotool windowmap $wid


Disable a device/ trackstick with libinput

I suggest that you amend the rc.local line to send the output of evtest to null and release the boot process to continue. I suggest that you try:

evtest --grab /dev/input/event7 > /dev/null 2>&1 &


Usefullness of multi-threading for Ubuntu

All laptops allow multi-threading to work. Even the Intel laptops without HyperThreading generally all have at least 2 CPU cores, so you will still get SMP support. A lot of apps don't use threads though, so those apps may not generally see any benefit, or it may not be obvious. Even without it though, the kernel can place processes on other cores when started, which allows things to run faster.


How to I install Glassfish on Ubuntu from the command line?


Cannot connect to network using a WiFi USB Adapter

You can install the driver this way. Connect to Ethernet and run in terminal:

sudo apt-get install git
git clone https://github.com/lwfinger/rtlwifi_new.git
cd rtlwifi_new
make
sudo make install

And reboot. Wifi should work.


Looks like a bug in /usr/bin/ucfr. As a workaround you could remove the ucfr call from /var/lib/dpkg/info/dovecot-core.postrm:

In line 19 change

ucfr --purge dovecot-core $conffile

to

true ucfr --purge dovecot-core $conffile

Then run

sudo apt-get purge dovecot-core

If that works reinstall dovecot-core


Why is sudo by default asking for the password of the user that ran it?

sudo asks for your password by default.  It is not recommended, but you may bypass passwords for users/groups for all, or limited commands, if you chose to do so.

Here is why sudo asks for a password by default:

Linux is a multi-user system, and the easiest way to see this is to look at the root user, vs your own user.  Major system-critical components are protected by being accessible by only root.  This is why people suggest you create an alternate user than root when doing daily tasks.  Imagine the following command run as both users (root and you):

apt-get purge ubuntu-desktop    #DO NOT RUN THIS

If you're cruising around as root, you've just removed ubuntu-desktop;  If you're logged in as a normal user, you'll get an error.

Now, imagine how many different programs you run, and how connected to the internet they all are.  Each of these clients/internet-connectable programs that you run are attack vectors or ways for people to gain entry into your machine.

Let's say that there is a new exploit for your favourite browser firefox that allows the attacker to gain shell.  Would you rather the user have YOUR shell, or your ROOT shell?

This is why sudo asks you for your password.


Where is the Xpad content stored on disk?

Your notes are saved in ~/.config/xpad folder.

Open up nautilus (files) and head to that folder,
your notes are in files named content-****** where * are unique random characters.

Opening one in a text editor will display your notes for that pad.

See screenshot below:


How can I get Firefox to use the KDE style?

The first thing when you install KDE Distro is to install gtk3-engines-oxygen.

sudo apt-get install gtk3-engines-oxygen

Then re-apply gtk settings in System Settings/Application Appearance/GTK

re-select a GTK2 Theme:  oxygen-gtk

re-select a GTK3 Theme:  oxygen-gtk

and click apply...

Then every program include Firefox should appear correctly.


Since the intention is to maintain compatibility, the answer is "probably not". As a simple example, libc differs enough between the distributions to make the operating and development environments not behave as desired.

You have a social engineering problem which can be solved with a brick (although a rubber hose leaves less marks): smack the guy who won't upgrade or downgrade as the project requires. You could also move build and test off to a different machine of the appropriate revision and let the engineers use CP/M with WordStar on their desks if they want, but this approach is less fun.

Finally, you could get Mr. 10.04 to set up a cross-compilation environment with a 9.10 target, but it would be really hard to prove that it is correct.


Embedding external URLs behind text in Tomboy

Sorry, this isn't currently possible in Tomboy, unless you develop a custom add-in to do it.

We might add this feature in a future version, though.


I could not get the snap package to work. However there is a PPA.

sudo add-apt-repository ppa:peek-developers/stable
sudo apt-get update
sudo apt install peek

...and as a bonus (1) it works, (2) it's 128kB to download not 56MB! With apt, it's a snap!


PlayOnLinux is a "helper application" for Wine. Wine is the "translation layer" that allows windows programs to run on linux. However the configuration of wine can be anything from easy to very difficult. This is where PlayOnLinux helps.

PlayOnLinux is two things:

a repository of "recepies" that can automatically download/install/configure windows programs.
A Wine-Container-Manager. This is what they call "virtual drive".

The recepies are there that the normal user does not need to deal with the gory details of wine configuration. The containers (virtual drives) are the killer-feature of this application, because: for each container you can define (and change) the wine version to use.

By default each application is installed into its own container. But you can create a container for each application you install, or you can install all your applications in a single container.

Install a Program

Although it says "Install a program" it will only invoke the recepie for the selected program. Some commercial programs will require you to have the original windows- installation media (CD/DVD) ready. Generally it can only do "the complete installation job" if the program is open source. I don't know the status of "The two thrones".

To address your issue:

I suggest you delete the container you've created. Then you can start over to install anything you want. To delete the container you do:

Select "Configure"
in the new window, in the left pane, click on the container you want to delete
click the "Remove" button below.


Go back and look at the actual text of your .pem file.
It must look like this :

-----BEGIN RSA PRIVATE KEY-----
.
. (20 odd lines of key)
.
-----END RSA PRIVATE KEY-----

It is complaining about the "beginning marker", so did you delete or alter this at all ? Recommend re-copying.
The .ppk is generally used for PuTTY, especially from Windows.

EDIT , take II

I can only suggest having a look at a hexdump then, and you may have to regenerate. Also name it .pem if it is a .pem file and either have it in the same folder (~ ?) you launch from or specify a path. (~/.ssh/xxxx.pem).
On the server the ~/.ssh/authorized_keys folder is conventional, but from the command line on a client the .pem file can be anywhere.


Recording device resets to default after reboot

You can do that using the pactl command.
First: List the audio devices using
pactl list short sources

Second: To set a default output device run the command
pactl set-default-sink <'output_device_name'>

Example: pactl set-default-sink 'alsa_output.pci-0000_00_1f.3.analog-stereo'
Now that the device names are known, and they have been verified to work by using the pactl application. They can be used in conjunction with the default Pulse configuration file.
First, open the file /etc/pulse/default.pa using :
sudo -H gedit /etc/pulse/default.pa

Then scroll to the bottom of the file, where two lines starting with set- will be commented out.
Now, uncomment these lines and replace the words input and output with the number of the sink (for output) / source (for input) that you want to be the default.
### Make some devices default
set-default-sink 3
set-default-source 3

OR
You can also put the input/output name in /etc/pulse/default.pa instead of the input/output number.
### Make some devices default
set-default-sink alsa_output.pci-0000_00_1f.3.analog-stereo
set-default-source alsa_output.pci-0000_00_1f.3.analog-stereo.monitor

After doing this, delete the ~/.config/pulse directory, and then reboot the system. Once the system comes back up, the appropriate devices should now be set as the defaults.
The downside to this approach, will be that if the device list changes, the indexes of the devices may also change, meaning this process may need to be repeated; but it resolves the immediate issue, when there are multiple audio devices connected on a permanent basis.


How do I move the clock in GNOME Classic?

Hold Alt (or Windows/Super/Meta+Alt depending on your configuration) and right click the clock. Then you can access the panel menu for it (move/remove).

The same is true for adding widgets, creating new panels, etc.


Assuming you are talking about English (US, international with dead keys), that keyboard layout turns the quotation symbol key to a dead_diaeresis key for typing e.g. ë. To type the quotation symbol you need to press both <AltGr> and <Shift>.

The dot key should be unchanged, though.

You can see an overview of the currently selected keyboard layout by clicking the input source indicator in the menu and selecting Keyboard Layout Chart.


Is your keyboard one of those with double-character keys, which you type in the secondary characters by pressing Ctrl + Alt + "Key" in Windows? My Acer laptop's keyboard (PT-BR) has the "Q" and "W" keys with "/" and "?" as secondary characters, and instead of Ctrl + Alt, in Ubuntu, I have to press AltGr (right alt) and the key to get their secondary characters.

This might be the case with your numeric characters as well. Give AltGr + key a try!


How can I resolve package dependency conflict?

In order to fix this, I needed to edit my /etc/apt/sources.list file.

I had only the line:

deb http://archive.ubuntu.com/ubuntu bionic main universe restricted multiverse

and I needed to add the lines:

deb http://archive.ubuntu.com/ubuntu bionic-security main universe restricted multiverse
deb http://archive.ubuntu.com/ubuntu bionic-updates main universe restricted multiverse

to add the bionic-security and bionic-updates repositories. Afterward I still had some trouble, which turned out to be related to Sophos AV. After unintstalling Sophos AV,

sudo apt update
sudo apt upgrade

fixed all the dependencies.


How to remove a bash script that runs at launch?

You could remove the line

“export DISPLAY=:0.0”

in the file .bashrc.
The file would be in your user's home.


how to disable cairo-dock opened application effect?

I found this: ~/.config/cairo-dock/current_theme/cairo-dock.conf "animation on demands attention=rotate"
It is at: behavior/taskbar/interaction.
just select the blank (empty first item) option at it will be disabled for good!


How to make Nvidia CUDA work? (for GPU rendering in Blender)

To install CUDA from the standard repositories do a:

sudo apt-get install nvidia-cuda-toolkit nvidia-modprobe

This will currently install V6.5 of CUDA. At the time of this writing V7.0 is the latest and can be had straight from the nVidia repositories. Read this warning before you head to the nVidia repositories.


I had the same problem and PavelRyzhov's solution in this link helped me solve it: https://askubuntu.com/a/949272/311570

To copy his current solution:

  In order to let openvpn to alter the system DNS settings, therefore
  eliminating the leak, add the following lines at the end of the your
  *.ovpn configuration file:

script-security 2
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf

Details of what this does are included in his post.


The Linux malware is increasing (it's a good sign, because this means that Linux is becoming very popular!) and is a good practice to have a firewall enabled and a good antivirus to check the suspect files; this will also help to protect the other computers in your home/office.
To update the ClamAV's engine+database and fix vulnerabilities/bugs execute this safe and easy procedure:

Connect to the internet; you need a stable connection.
In a terminal (xterm is ok) execute sudo apt-get update and sudo apt-get upgrade. This will ensure that your system is up to date; the clamAV installer can behave differently if your base installation is old or if your source definitions are old.
Install the latest ClamAV from the Official Ubuntu repository, like any other Ubuntu software. Do not install it from other, unsafe and non-specific sources, it can be dangerous.
Execute sudo add-apt-repository ppa:ubuntu-clamav/ppa and then sudo apt-get upgrade. This should update the engine.
After all that, execute sudo freshclam to update the definitions. You must do that after an engine upgrade.

If you can't upgrade automatically your ClamAV installation, upgrade it from the source code or wait for an Ubuntu-specific release. I often suggest to compile the packages from sources because you often obtain a better result and you see what you are installing; please note that this type of installation is not always possible, you need the correct dependencies.
To install ClamAV from sources follow the Official ClamAV Source-Install Guide; if you don't understand one point of the guide, feel free to ask by commenting under here and don't forget to press the UP arrow if I'm of any help.


Rear speakers and subwoofers not working in Ubuntu 12.04 on HP dv6

I have the same laptop, I found a partial solution. With this solution the sub-woofers don't mute on headphone plug in.

open the file:

/etc/modprobe.d/alsa-base.conf

add the line:

options snd-hda-intel model=ref

If you find a better solution please let me know!


What does it mean it can't access this file?

The error messages probably mean that you have e.g. Ubuntu Software Center or Synaptic running. Close them if you want to install from a terminal window.

Wine 1.6 is not (yet) installable in Ubuntu 14.04 due to missing dependencies. In the meantime you can install Wine 1.4.


The static libraries are likely there because you have installed one or more of the C development packages - to see exactly which, you can query the package database e.g.

$ dpkg -S libm.a
libc6-dev-i386: /usr/lib32/libm.a
libc6-dev:amd64: /usr/lib/x86_64-linux-gnu/libm.a
libc6-dev-armel-cross: /usr/arm-linux-gnueabi/lib/libm.a


Trying to run live usb of 16.04 Intel NUC5PPYU

You need to change some options on the bios setup.

While the nuc is starting, press F2 to enter the BIOS setup. Then follow this path:

BIOS > Boot > Boot Configuration > OS Selection > set Linux

This fixed it. With older kernels there is no need to do this.

Source: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1521749
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1529353


How can I change the default python on my Ubuntu 20.04 to Python3.8?

The correct way is sudo apt install python-is-python3 - it effectively does a symlink, but it also keeps pace with future updates; so if your ubuntu distribution moves to say Python 3.9, the manual symlink will no longer work, but the package makes sure it is still valid.


Large, unexplained gap in Unity launcher

Yes this is a known bug, a bug report has even been filed on it here: https://bugs.launchpad.net/unity/+bug/1400402


As @terdon said Onedrive-D is still under development.
Alternatively you can use other cloud storage services.
Here is the instruction on how to install "OneDrive-D":

Step1: Download the program from GitHub.

Step2: Extract the contents of the .zip file and run the installer from “onedrive-d-master.”

For that Press Ctrl+Alt+T and execute:

cd ~/Downloads
ls
unzip onedrive-d-old-future.zip
cd onedrive-d-old-future
./install.sh

Note 1: I used ls command to list files in that folder and to avoid mistakes in file names.SInce there is another new project for same purpose.

Note 2: onedrive-d need python-3. Refer here for prerequisites,but all necessary softwares will be  installed ,during installation process.So no need to worry about prerequisites.

Step 3: After installation you will see message like this:

onedrive-d installed successfully.
Please run command `onedrive-pref` to set up the program.

Now open terminal and run:  onedrive-pref

Open the link in browser and enter your user id and password.

you will see prompt like this :

Click on YES. Then copy the link and paste it in terminal.You will see message like this:

onedrive-d has been successfully authorized

Next,you need to adjust settings,if you want to keep default settings just press n .If you want to change press y and adjust.

Example:

(STEP 2/4) Do you want to specify path to local OneDrive repository? [Y/n] y
 Please enter the abs path to sync with your OneDrive (default: /home/[name]/OneDrive):
 Path successfully set.
(STEP 3/4) Do you want to change the numeric settings? [Y/n] n
 Skipped.
 (STEP 4/4) Do you want to edit the ignore list file? [Y/n] n
 Skipped
 All steps are finished.

Finally ,onedrive-d --help for commands.

onedrive-d [command]

Commands:
     start    Start the daemon.
     stop     Stop the daemon.
     restart  Stop then start the daemon.
     status   Get the status of the daemon.


Tool to add shapes, annotations and text using templates to images

Warning: broken. Shutter is severely broken in Ubuntu 18.04 and not available in later versions.

Shutter (which you can install from the Ubuntu Software Centre or sudo apt-get install shutter) is a tool which has a variety of options for taking and annotating screenshots. (Note: You can annotate any images of your choice, not just screenshots.)


hybrid-dump for VDPAU accelerated video playing on Ubuntu 11.10 with bumblebee 3.0?

This is how I got vdpau:

Edited /etc/bumblebee/xorg.conf.nvidia to have

Section "Screen"
    Identifier "Screen0"
    DefaultDepth 24
    SubSection "Display"
        Depth    24
        Virtual  1920 1080
    EndSubSection
EndSection

Run

LD_LIBRARY_PATH=/usr/lib/nvidia-current:/usr/lib/nvidia-current/vdpau DISPLAY=:8 optirun mplayer -vo vdpau file.720p.mkv

Run

LD_LIBRARY_PATH=/usr/lib/nvidia-current DISPLAY=:8  compiz --replace &

Downloaded https://github.com/gebart/hybrid-windump, removed xorg.conf from it, then compiled (just make command).
Run ./windump :8 :0

Note: You don't need to edit /etc/bumblebee/bumblebee.conf and change KeepUnusedXServer to true as we run MPlayer directly with Optirun.


How to disable auto-startup of Microsoft Teams in Ubuntu?

The only method I have found so far to solve the problem is configuring settings in Teams:

Right click the Teams icon on the system tray
open Settings
uncheck Autostart

The following methods do not work.

If you disable Teams as a startup application, it will enable itself the next time you open Teams.
If you restrict the write access to autostart folder only to superusers (so that Teams cannot add itself to startup applications), Teams will refuse to open and show errors.


How to install Pixel saver on Gnome 3.10

To use Pixel Saver in Gnome version 3.10, you need an older version of the extension, as noted in the extensions' github README page

  Version 1.3 will be the last version to support gnome shell prior to 3.12 .

First grab the tarball of version 1.3 from it's release page.
Then extract the tarball to get a pixel-saver@deadalnix.me folder.
Copy that folder in Gnome shell extensions directory

cp -r pixel-saver@deadalnix.me -t ~/.local/share/gnome-shell/extensions

Activate it using

gnome-shell-extension-tool -e pixel-saver@deadalnix.me

Here is the project's Github page

Newer version of the extension can be directly installed from Gnome Shell extension page. Here is the link of it

Pixel Saver Extension


apt-get upgrade doesn't upgrade bash --- so why the bash reinstallation is an upgrade?

You can check what upgrades that can be expected with the following command

apt-cache policy bash

I run Ubuntu 16.04 LTS, and the output is

bash:
  Installed: 4.3-14ubuntu1.2
  Candidate: 4.3-14ubuntu1.2
  Version table:
 *** 4.3-14ubuntu1.2 500
        500 http://se.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages
        500 http://security.ubuntu.com/ubuntu xenial-security/main i386 Packages
        100 /var/lib/dpkg/status
     4.3-14ubuntu1 500
        500 http://se.archive.ubuntu.com/ubuntu xenial/main i386 Packages

In other words, there is no newer version of bash in the repository for 16.04 alias xenial. This is the reason why it will not be upgraded.

Normally there is no reason to upgrade a program package in a case like this, but it is possible, if you can find a newer version, for example via a PPA.


Download the relevant run file from Nvidia. Run with --kernel-module-only flag.


What is the purpose of having three(or more?) directories with icons?

/usr/share/app-install/icons contains icons for installed applications. (/usr/share/app-install/desktop/ contains .desktop files for applications)

/usr/share/icons are for themes.

/usr/share/pixmaps are for (gnome? (and kde?)) specific applications.

3 different things that each have their own usage and therefor each might have their own image. If you make a suggestion on, for instance, brainstorm or ayatana mailing list(?) someone might be inclined to give it a tought into merging them.
Me myself I like it when things are put into their own directory and there are all part of /usr/share/ ;)

Maybe they'll be put together someday :)