That particular file is a little shielded and I suspect that you have downloaded only a 302 error page. However the following one liner works well enough on my system:

wget --referer http://support.amd.com \
https://www2.ati.com/drivers/linux/ubuntu/amdgpu-pro-17.40-492261.tar.xz

Note the use of the --referer option. Looks like some effort has been made to prevent people using linking from outside the AMD site. This is easy enough, and quite reasonable I believe, to circumvent in this manner.

From the wget man pages:

--referer=url
   Include `Referer: url' header in HTTP request.  Useful for retrieving
   documents with server-side processing that assume they are always being
   retrieved by interactive web browsers and only come out properly when
   Referer is set to one of the pages that point to them.

The full process on my own system worked as follows:

1. Initial download:

andrew@illium~$ wget --referer http://support.amd.com \
> https://www2.ati.com/drivers/linux/ubuntu/amdgpu-pro-17.40-492261.tar.xz
--2017-11-11 16:09:04--  https://www2.ati.com/drivers/linux/ubuntu/amdgpu-pro-17.40-492261.tar.xz
Resolving www2.ati.com (www2.ati.com)... 23.7.24.254
Connecting to www2.ati.com (www2.ati.com)|23.7.24.254|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 361491288 (345M) [application/x-tar]
Saving to: ‘amdgpu-pro-17.40-492261.tar.xz’

amdgpu-pro-17.40-492261 100%[=============================>] 344.74M   794KB/s    in 7m 27s

2017-11-11 16:16:32 (789 KB/s) - ‘amdgpu-pro-17.40-492261.tar.xz’ saved [361491288/361491288]

2. Subsequent extraction:

andrew@illium~$ tar xvf amdgpu-pro-17.40-492261.tar.xz
amdgpu-pro-17.40-492261/
amdgpu-pro-17.40-492261/Packages
amdgpu-pro-17.40-492261/xserver-xorg-video-modesetting-amdgpu-pro_1.19.0-492261_amd64.deb
amdgpu-pro-17.40-492261/opencl-amdgpu-pro-icd_17.40-492261_i386.deb
amdgpu-pro-17.40-492261/amdgpu-pro-lib32_17.40-492261_amd64.deb
amdgpu-pro-17.40-492261/libgbm1-amdgpu-pro-base_17.40-492261_all.deb
amdgpu-pro-17.40-492261/libgl1-amdgpu-pro-ext_17.40-492261_amd64.deb
amdgpu-pro-17.40-492261/libgles2-amdgpu-pro_17.40-492261_amd64.deb
amdgpu-pro-17.40-492261/libgl1-amdgpu-pro-ext_17.40-492261_i386.deb
amdgpu-pro-17.40-492261/gst-omx-amdgpu-pro_1.0.0.1-492261_amd64.deb
amdgpu-pro-17.40-492261/hsa-ext-amdgpu-pro-finalize_1.1.6-492261_amd64.deb
amdgpu-pro-17.40-492261/xserver-xorg-video-glamoregl-amdgpu-pro_1.19.0-492261_i386.deb
amdgpu-pro-17.40-492261/libllvm5.0-amdgpu-pro_5.0-492261_amd64.deb
amdgpu-pro-17.40-492261/libgl1-amdgpu-pro-glx_17.40-492261_amd64.deb
amdgpu-pro-17.40-492261/hsa-ext-amdgpu-pro-image_1.1.6-492261_amd64.deb
amdgpu-pro-17.40-492261/amdgpu-pro-install
amdgpu-pro-17.40-492261/libgl1-amdgpu-pro-appprofiles_17.40-492261_all.deb
amdgpu-pro-17.40-492261/amdgpu-pro-core_17.40-492261_all.deb
amdgpu-pro-17.40-492261/llvm-amdgpu-pro-dev_5.0-492261_amd64.deb
amdgpu-pro-17.40-492261/libvdpau-amdgpu-pro_17.0.1-492261_i386.deb
amdgpu-pro-17.40-492261/clinfo-amdgpu-pro_17.40-492261_i386.deb
amdgpu-pro-17.40-492261/llvm-amdgpu-pro-5.0-dev_5.0-492261_amd64.deb
amdgpu-pro-17.40-492261/libgbm1-amdgpu-pro-dev_17.40-492261_amd64.deb
amdgpu-pro-17.40-492261/vulkan-amdgpu-pro_17.40-492261_i386.deb
amdgpu-pro-17.40-492261/libegl1-amdgpu-pro_17.40-492261_i386.deb
amdgpu-pro-17.40-492261/libopencl1-amdgpu-pro_17.40-492261_amd64.deb
amdgpu-pro-17.40-492261/libdrm-amdgpu-pro-amdgpu1_2.4.82-492261_i386.deb
amdgpu-pro-17.40-492261/libgbm1-amdgpu-pro_17.40-492261_i386.deb
amdgpu-pro-17.40-492261/rocm-amdgpu-pro-opencl-dev_17.40-492261_amd64.deb
amdgpu-pro-17.40-492261/rocm-amdgpu-pro-opencl_17.40-492261_amd64.deb
amdgpu-pro-17.40-492261/libgbm1-amdgpu-pro_17.40-492261_amd64.deb
amdgpu-pro-17.40-492261/rocr-amdgpu-pro-dev_1.1.6-492261_amd64.deb
amdgpu-pro-17.40-492261/xserver-xorg-video-amdgpu-pro_1.3.99-492261_amd64.deb
amdgpu-pro-17.40-492261/libdrm-amdgpu-pro-radeon1_2.4.82-492261_amd64.deb
amdgpu-pro-17.40-492261/llvm-amdgpu-pro-5.0_5.0-492261_i386.deb
amdgpu-pro-17.40-492261/hsa-runtime-tools-amdgpu-pro_1.1.6-492261_amd64.deb
amdgpu-pro-17.40-492261/libegl1-amdgpu-pro_17.40-492261_amd64.deb
amdgpu-pro-17.40-492261/llvm-amdgpu-pro-5.0-runtime_5.0-492261_amd64.deb
amdgpu-pro-17.40-492261/hsa-runtime-tools-amdgpu-pro-dev_1.1.6-492261_amd64.deb
amdgpu-pro-17.40-492261/vulkan-amdgpu-pro_17.40-492261_amd64.deb
amdgpu-pro-17.40-492261/llvm-amdgpu-pro-5.0-doc_5.0-492261_all.deb
amdgpu-pro-17.40-492261/libdrm-amdgpu-pro-utils_2.4.82-492261_amd64.deb
amdgpu-pro-17.40-492261/rocm-amdgpu-pro-icd_17.40-492261_amd64.deb
amdgpu-pro-17.40-492261/opencl-amdgpu-pro-icd_17.40-492261_amd64.deb
amdgpu-pro-17.40-492261/libgl1-amdgpu-pro-glx_17.40-492261_i386.deb
amdgpu-pro-17.40-492261/libllvm5.0-amdgpu-pro_5.0-492261_i386.deb
amdgpu-pro-17.40-492261/rocm-amdgpu-pro_17.40-492261_amd64.deb
amdgpu-pro-17.40-492261/llvm-amdgpu-pro_5.0-492261_amd64.deb
amdgpu-pro-17.40-492261/clinfo-amdgpu-pro_17.40-492261_amd64.deb
amdgpu-pro-17.40-492261/libvdpau-amdgpu-pro_17.0.1-492261_amd64.deb
amdgpu-pro-17.40-492261/roct-amdgpu-pro-dev_1.0.6-492261_amd64.deb
amdgpu-pro-17.40-492261/libgl1-amdgpu-pro-dri_17.40-492261_amd64.deb
amdgpu-pro-17.40-492261/llvm-amdgpu-pro-5.0_5.0-492261_amd64.deb
amdgpu-pro-17.40-492261/amdgpu-pro-dkms_17.40-492261_all.deb
amdgpu-pro-17.40-492261/libgl1-amdgpu-pro-dri_17.40-492261_i386.deb
amdgpu-pro-17.40-492261/gst-omx-amdgpu-pro_1.0.0.1-492261_i386.deb
amdgpu-pro-17.40-492261/llvm-amdgpu-pro-runtime_5.0-492261_amd64.deb
amdgpu-pro-17.40-492261/libdrm-amdgpu-pro-dev_2.4.82-492261_amd64.deb
amdgpu-pro-17.40-492261/ids-amdgpu-pro_1.0.0-492261_all.deb
amdgpu-pro-17.40-492261/xserver-xorg-video-modesetting-amdgpu-pro_1.19.0-492261_i386.deb
amdgpu-pro-17.40-492261/llvm-amdgpu-pro-5.0-runtime_5.0-492261_i386.deb
amdgpu-pro-17.40-492261/libopencl1-amdgpu-pro_17.40-492261_i386.deb
amdgpu-pro-17.40-492261/rocr-amdgpu-pro_1.1.6-492261_amd64.deb
amdgpu-pro-17.40-492261/libdrm-amdgpu-pro-utils_2.4.82-492261_i386.deb
amdgpu-pro-17.40-492261/libdrm2-amdgpu-pro_2.4.82-492261_i386.deb
amdgpu-pro-17.40-492261/mesa-amdgpu-pro-omx-drivers_17.0.1-492261_amd64.deb
amdgpu-pro-17.40-492261/libglamor-amdgpu-pro-dev_1.19.0-492261_i386.deb
amdgpu-pro-17.40-492261/amdgpu-pro_17.40-492261_amd64.deb
amdgpu-pro-17.40-492261/libgbm1-amdgpu-pro-dev_17.40-492261_i386.deb
amdgpu-pro-17.40-492261/llvm-amdgpu-pro-dev_5.0-492261_i386.deb
amdgpu-pro-17.40-492261/llvm-amdgpu-pro-5.0-dev_5.0-492261_i386.deb
amdgpu-pro-17.40-492261/Release
amdgpu-pro-17.40-492261/xserver-xorg-video-glamoregl-amdgpu-pro_1.19.0-492261_amd64.deb
amdgpu-pro-17.40-492261/xserver-xorg-video-amdgpu-pro_1.3.99-492261_i386.deb
amdgpu-pro-17.40-492261/libdrm-amdgpu-pro-radeon1_2.4.82-492261_i386.deb
amdgpu-pro-17.40-492261/llvm-amdgpu-pro-runtime_5.0-492261_i386.deb
amdgpu-pro-17.40-492261/mesa-amdgpu-pro-omx-drivers_17.0.1-492261_i386.deb
amdgpu-pro-17.40-492261/libdrm-amdgpu-pro-amdgpu1_2.4.82-492261_amd64.deb
amdgpu-pro-17.40-492261/roct-amdgpu-pro_1.0.6-492261_amd64.deb
amdgpu-pro-17.40-492261/amdgpu-pro_17.40-492261_i386.deb
amdgpu-pro-17.40-492261/libglamor-amdgpu-pro-dev_1.19.0-492261_amd64.deb
amdgpu-pro-17.40-492261/libgles2-amdgpu-pro_17.40-492261_i386.deb
amdgpu-pro-17.40-492261/llvm-amdgpu-pro_5.0-492261_i386.deb
amdgpu-pro-17.40-492261/libdrm-amdgpu-pro-dev_2.4.82-492261_i386.deb
amdgpu-pro-17.40-492261/libdrm2-amdgpu-pro_2.4.82-492261_amd64.deb
andrew@illium~$

So hopefully this small wget trick will help you out....


Will I be able to install Ubuntu on Windows 8 Laptops/Ultrabooks?

If the device has an x86 processor, the latest we've heard is that the vendor is required to allow the user to disable secure boot. I have a feeling that it'll be enabled by default, but you should be able to go into the BIOS and disable it.

Still, I would let someone else be the guinea pig:

Wait until Windows 8 ultrabooks and laptops are released.
Wait until somebody haphazardly buys one intending to install Linux on it.
Pick out a model you like.
Continuously google for "Microsoft locked me out, I can't disable secure boot on the x86 laptop!!!!!!111oneoneone"
If you find no indications of the unit being locked down, go ahead and buy it.

Speculating at this point is not going to be very productive.


Camera mirrored on xps 15 with ubuntu 20.04

Probably not an ideal solution, but you might be able to unmirror it in the software you use it for. Cheese does have an option that can be turned on or off to mirror the video, and if you record something and later find out it's mirrored, you could use a video editor (or something like ffmpeg) to unmirror it. I guess for programmes like Skype, there might or might not be an option to mirror/unmirror video in the programme.


The simplest way:

> filename

This is a less obvious way and probably less readable in a shell script by others, but it's all you need.

Because > is not actually a really command (it is bash builtin) you can't use:

sudo > filename

when you don't have permissions on that file. But you can use:

sudo bash -c "> filename"


Reinstall Windows 10 on a dual-boot system with encrypted Ubuntu

Well, first, if you ain't sure about what you are doing, make sure that your important data is backed up.
Second, installing windows after ubuntu will overwrite GRUB with windows boot loader. I don't think that there is a way to avoid it.
So, I found two ways to deal with that:
1- Set the windows entry inactive
Like Kana mentioned here, is possible to set the Windows boot manager entry to inactive, as Windows overwrites the entry to 0000 and changes the boot order.
As Karlovsky120 also reminded it may only work if Ubuntu has been installed in UEFI mode. You can check it using the command: if test -d /sys/firmware/efi;then echo efi;else echo bios;fi.
2 - Reinstall GRUB after the windows installation
There are many ways to repair GRUB, as recommended on the official ubuntu help page
Specifically about encrypted volumes, there are many other posts about it:

How to reinstall grub from a liveUSB if the / partition is encrypted and there is a separate /boot partition?
Unable to reinstall GRUB on encrypted filesystem
Samuel Colvin - gist.github.com


No image when booting into either recovery mode or normal gnome session

You don't say if you are using the latest nvidia Drivers, which would be useful in order to give you an answer. But assuming that you have the latest nVidia Drivers installed, try setting up your nVidia Settings by dropping the next in a terminal:

sudo nvidia-settings

After entering your password the nVidia X Server Settings window will appear, and after adjusting the parameters that make your screen look as you wish, click on the "X Server Display Configuration" in the left pane, then just save your changes by clicking the "Save to X Configuration File" button.

After that, a soft reboot of the X will be enough but if you reboot your machine will also do the trick. In order to soft-restart the X, press the [Ctrl][Alt][F1] in order to go to the console (text only) mode and drop the next command:

killall5

Please make sure you save all your open documents prior to do this because of the system is going to close down your session without allowing you to save anything.

Log in again and see the changes. If your configuration remains, it's time for a hardware reboot. Do it and check.

IMPORTANT NOTE: either that you can drop the single nvidia-settings command in the terminal, it won't allow you to save the changes. Do it as suggested and let's see what happen.

Just a question: which window's decoration manager are you using? your problem sounds more like a problem with Emerald or something. Sorry if my answer isn't what you expected.


source list broken pakage update 16.04 ubuntu

You have to purge "pipelight" from your system with either dpkg or the apt utility.  After that you should be able to run updates.  It looks like you have updated the sources list, but forgot to remove the installed package and all of it's dependencies.


No, it's a Nautilus-specific fake path, similar to the about: protocol in Firefox and chrome: in Chrom{e,ium}.

If you want a command line history (to see where you've been recently on the command line) you can run history | grep cd but this is specific to your shell (zsh and bash should work) and it won't factor in your recent directories.

Recent files (not directories) are stored in ~/.local/share/recently-used.xbel by a number of desktop applications (including Nautilus) so if you just need a list of those, you can extract them with:

awk -F '[ |"]' '/<bookmark / {print $5}'  ~/.local/share/recently-used.xbel


Documentation for theming of unity-greeter

I haven't found a documentation, but I have found the source code ;)

apt-get source unity-greeter
tar xf unity-greeter_*.tar.xz
cd unity-greeter

As the name of the file gtk.css says, it's an CSS file with definitions for classes. Let's start a grep

% grep -r 'add_class' *
Binary file deb/usr/sbin/unity-greeter matches
Binary file dev/usr/sbin/unity-greeter matches
unity-greeter-15.10.1/tests/unity-greeter.vala:        ctx.add_class ("lightdm");
unity-greeter-15.10.1/src/toggle-box.vala:        selected_button.get_style_context ().add_class ("selected");
unity-greeter-15.10.1/src/toggle-box.vala:        item.get_style_context ().add_class ("toggle-button");
unity-greeter-15.10.1/src/unity-greeter.vala:        ctx.add_class ("lightdm");
unity-greeter-15.10.1/src/prompt-box.vala:        option_button.get_style_context ().add_class ("option-button");
unity-greeter-15.10.1/src/prompt-box.vala:        combo.get_style_context ().add_class ("lightdm-combo");
unity-greeter-15.10.1/src/prompt-box.vala:        combo.get_child ().get_style_context ().add_class ("lightdm-combo");

or better

% grep -rlI 'add_class' * | xargs -I {} awk -F\" '/add_class/ {print $2}' {} | sort -u
lightdm
lightdm-combo
option-button
selected
toggle-button

and now we have the supported classes. All other things like background-image, background-color, border-color and so on are CSS definitions.

Dig in the source code and learn CSS. That's the best documentation.

Previous version of my answer, perhaps helpful for further readers

All you need is in /usr/share/glib-2.0/schemas/com.canonical.unity-greeter.gschema.xml. After editing this file execute:

glib-compile-schemas /usr/share/glib-2.0/schemas/

Each key tag has a summary tag to describe what the key does. Some examples:

The background image

<key name="background" type="s">
  <default>'/usr/share/backgrounds/warty-final-ubuntu.png'</default>
  Background file to use, either an image path or a color (e.g. #772953)
</key>

type="s" means, wee need a string for the tag default
The value is an absolute path to an image file

The background color

<key name="background-color" type="s">
  <default>'#2C001E'</default>
  Background color (e.g. #772953), set before wallpaper is seen
</key>

type="s" means, wee need a string for the tag default
The value is a color code

Show the hostname

<key name="show-hostname" type="b">
  <default>true</default>
  Whether to show the hostname in the menubar
</key>

type="b" means, wee need a boolean value for the tag default
Valid values: true/false

The resolution settings

<key name="xft-dpi" type="d">
  <default>96</default>
  Resolution for Xft in dots per inch
</key>

type="d" means, wee need numerical value for the tag default
Use xrdb -query | grep dpi to determine a correct value or play with the value to see the behavior

partially source

Trial and error and reading the source code is the best documentation =)


The most known GBA emulator is VisualBoyAdvance (as the link that fossfreedom posted says). The problem is that it lacks of some important features. The good news is that it exists a fork: Visual Boy Advance-M.

It supports loading Gameshark, action replay saves and a lot more. (I specially like the option to use smart filters when scaling the game).

No filter

hq2x filter

You can install it from PlayDeb.net.
The bad news is that PlayDeb hasn't updated their packages to Precise Pangolin (12.04). But I think that installing the oneiric package should work perfectly.

After you install the PlayDeb package, you will only have to install the following package: vbam-gtk

EDIT: Right now, PlayDeb packages are available from 9.10 to 13.04 (the packages have not been updated yet to 13.10). As always, if you use 13.10, in most cases, you can use 13.04 (or any other version) packages without experiencing any problems (if any, it will be because of dependencies, which is very unlikely), as well as 13.04 repository.


Running bash script through crontab results in diffrent results

It may not be finding service.

You may need to specify SHELL and PATH variables like

SHELL=/bin/bash;
PATH=<copy from your current $PATH that works>

before you add e.g

0 10 * * * /usr/bin/service-check


How to install "qemu-img" and use it to convert a "qcow2" image to a Virtual Box one?

The package you want is qemu-utils:

% apt-file search qemu-img
qemu-utils: /usr/bin/qemu-img
qemu-utils: /usr/share/man/man1/qemu-img.1.gz

So install qemu-utils:

sudo apt-get install qemu-utils

To convert a QCOW2 image to a VirtualBox VDI image:

qemu-img convert -O vdi test.qcow2 test.vdi

Or to convert to a VMDK image:

qemu-img convert -O vmdk test.qcow2 test.vmdk

Or to convert to a VHD image:

qemu-img convert -O vpc test.qcow2 test.vhd


Ethernet dongle not working on a Lenovo Thinkpad X1 Carbon

Looking at the output of lsusb, I did some more research and found a well documented solution, modifying an existing asix driver to support the Lenovo dongle:

Case of the Broken Linux Driver (Lenovo USB 2.0 Ethernet 10/100 dongle)

After compiling and installing the driver, the dongle now works immediately.


How many packages exist for each supported architecture?

The easiest method is via Launchpad:

https://launchpad.net/ubuntu/trusty/i386
https://launchpad.net/ubuntu/trusty/amd64
https://launchpad.net/ubuntu/trusty/armhf
https://launchpad.net/ubuntu/trusty/arm64
https://launchpad.net/ubuntu/trusty/ppc64el

You can always replace "trusty" with the release you are interested in.


Newer alternatives to gcolor2

Overview

gcolor2 is good but hasn't been updated in quite a while. There are two more recent alternatives out there, gcolor3 and pychrom.

gcolor3

The first one is a GTK3 port of gcolor2. There are no differences in the features it comes with as far as I can tell:

pychrom

pychrom on the other hand has a few additional goodies:

CMYK and terminal color support
systray indicator
zoom function

A couple of screenshots of pychrom in action:

Installation

The downside to these more recent color pickers is that they aren't available from the official repositories or any other repos for that matter.

gcolor3 you will have to compile manually. Please follow the instructions on the project page to do so.

pychrom is a python application and can be executed without having to be compiled first. The source archive comes with two files, pychrom and pychrom.desktop. To install the application simply copy pychrom to your PATH (e.g. ~/bin or /usr/local/bin) and move the .desktop file either to ~/.local/share/applications (user-bound installation) or /usr/share/applications (system-wide installation).


You need to install the samba-dsdb-modules package, which contains the LDb modules that  are mentioned in the error message.

Run:

apt-get install samba-dsdb-modules


Going by your title, What I interpret is you need Navigation commands, shortcuts or tips-tricks related to that.

In that case Read this section under Chapter 1: Getting started with GNU/Linux from book :

Section 1.1: Useful shortcuts

Please see the About Page that states :

  This Linux® Notes for Professionals book is compiled from Stack Overflow
  Documentation, the content is written by the beautiful people at Stack Overflow.
  Text content is released under Creative Commons BY-SA, see credits at the end
  of this book whom contributed to the various chapters. Images may be copyright
  of their respective owners unless otherwise specified

Also there is lots of Linux knowledge documented by experienced community guys. Have a look at that also.

Feel free to add-in more details.


Enter Unicode mathematical symbols conveniently

If you use Visual Studio Code, install latex-input extension.

It works as following:


how to turn second partition into extra space

you can do that by using gparted partition manager.

sudo apt-get install gaprted will install that if its not installed.

Then open it.

make sure that those two partitions are unmount. If its not possible to unmount them then rub a live Ubuntu and open gparted over there.

from which volume you would like to take the space use shrink option. so save some space from it. it will show you how much minimum you should keep and how much you can attain.
to which volume you would like to add the space you extend option.


SSH session alway active, what is it? Should I close it?

According to your output SSH is not running. SSH agent is software to hold private keys and is a helper. ps -ef | grep ssh shows there's no SSH active and grep --color=auto ssh is a result from your grep command and does not mean that SSH is active.


Moved from Japan to the US, how do I update apt-get to use local repositories?

You can update it in 'Software and Update' (or 'Software Sources' in other releases).
Procedure
Open System Settings
Click on the cog in the top right corner -> click on 'System Settings'

Open Software and Updates / Software Sources
Next click on 'Software and Updates' (or 'Software Sources')

Change server
Lastly change the server at the 'Download from' option and enter your password when asked to save the new setting.


How to move system partition on same hdd?

What you're trying to do is to move the water without moving the glass it's in, so just move the glass and the water will follow!

Move the left edge of /dev/sdb3 (the glass) to the left and then move /dev/sdb5 (the water) to the left edge!  :-)

And that's why they're both coloured blue...


Granting a sftp user access to a /var/www directory

This is the process:

Add the user to the group: sudo usermod -aG www blub as in Whats the simplest way to edit and add files to "/var/www"?

or just use sudo adduser <username> www-data
Install vsftpd sudo apt-get install vsftpd
Configure vsftpd for remote access: sudo nano /etc/vsftpd.conf and inside the file set

chroot_local_user=YES

and ensure this is commented out:

#chroot_list_enable=YES

as per documentation.
Restart nsftp: sudo service vsftpd restart
Configure the user's home directory to the web directory (not in /home):

sudo usermod -d /var/www/mysite/ftpaccessdir <username>

Configure ssh chroot

sudo nano /etc/ssh/sshd_config

add the following to the end:

Subsystem  sftp  internal-sftp
Match user <username>
    ChrootDirectory /var/www/site
    ForceCommand internal-sftp
AllowTcpForwarding no

and ensure that further up in the file that this is commented out (ie before the one you just added)

#Subsystem sftp /usr/lib/openssh/sftp-server

Restart ssh

sudo service ssh restart

Change the permissions for apache:

chown root:root /var/www
chown root:root /var/www/site
chmod 755 /var/www

As in the docs here.
Ensure that your directory has www-data access

sudo chown -R www-data:www-data /var/www/site
chmod 755 /var/www/site


Why does installing `parted` try and install nginx?

Its not parted,but a previosly uncomplete installation.


What happens when WiFi connection breaks down

It is not the kernel's job to do anything of the kind.  The network layer might seek an alternate route if it is configured to have a switchover default route.  See ROUTE ADD in this.
See this answer to see if it will be possible for a single WiFi node to connect to more than one 802.11 bases.


Why can't I get this code to work? $ echo mean? "">>/apache/conf/httpd.conf

Your directory is wrong: apache is NEVER installed in the root of a Linux system.

It needs to be:

echo "" >> /etc/apache2/conf/httpd.conf

To make sure do a

locate httpd.conf

and change the directory to what it returns. Mind that I also assume you are using a new Ubuntu... you likely have apache2 as a directory and not apache(1). The locate will also confirm that. apache was replaced by apache2 ages ago.

You also might need "sudo" depending if you own the http.conf or not.

edit:

  and after I wrote the program and went back to check the files it said file does not exist can anyone figure this out to help me?

Please tell us: why does everything in that edit NOT have a / in front of apache and the command that gives the error does have one?

Based on the edit I would then assume it needs to be

echo "" >> apache/conf/httpd.conf


How can I disable KDE sounds in Xfce (Vivid)? Or: Why is systemsettings empty?

Ok, apparently the systemsettings shipped by (X)Ubuntu 15.04 is for KDE 5. This means that control center modules for KDE 4 don't show up there.

They can be loaded through the kcmshell4 command. In my case, it was

kcmshell4 kcmnotify

Then go to “Player settings” → “No audio output”.

Silence.


WiFi Adapter AX201 Just Doesn't Work Ubuntu 18.04

Of course, the problem was Windows, the problem is always Windows...
"Shutting down" doesn't really mean "shutting down" to Microsoft.
I happen to notice that Wi-Fi would fail after I was booting Ubuntu from a previous Windows session... But Wifi would load properly if I was rebooting from a previous Ubuntu session.
Well, the "splinter in my toe" has been that with Windows 10, even though you shut down the computer, it actually stays on with minimal power and annoyingly keeps control of the wifi car as part of its "fast boot" functionality.
This means each time that I was booting into Ubuntu following a windows session the Intel Wifi card would fail because it was already in use by the Windows 10 partition.
Symptoms other may face with this same problem:
1.) Aforementioned, WIFI only fails after a previous Windows session on a dual-boot machine
2.) Your firmware is completely up-to-date from manufacturer
3.) Switching to older kernels doesn't resolve the wifi connectivity problem
4.) After loading -without- wifi, you are unable to manually load the driver via command line
SOLUTION
If you are experiencing these symptoms you should:
1.) Boot in Windows 10
2.) go into settings > power > advanced options > Select: Choose what power button does > uncheck fast boot (fast startup)
3.) Re-boot and enjoy your microsoft-interference-free wifi ;-)
Gotta give credit to this threat, that stop me from pulling hair out..
Ubuntu 18.04 cannot recognized Intel Wireless-AC 9260


How can I upgrade my server's kernel without rebooting?

I don't know much about ksplice but thought I'd mention it - have you heard about kexec? This might be what you need.

Regarding the question why haven't we adopted this as a default mechanism? Well, overwriting the memory of the current kernel while it's still running can cause potential issues. It also expects hardware devices to be in a well-defined state which isn't always possible.

You can take a look at the IBM developer works article about it to decide if it suits your needs.


Cant Create folder with full permission on ubuntu 14.04

From this SO answer:

  You can use umask() immediately before the fopen() call, but umask
  shouldn't be used if you're on a multi-threaded server - it'll change
  the mask for ALL threads (e.g. this change is at the process level),
  not just the one that you're about to use fopen() in.

  e.g.

$old = umask(000);
fopen('foo.txt', 'w'); // creates a 0666 file
umask($old) // restore original mask

  It'd be easier to simply chmod() after the fact, however:

fopen('foo.txt', 'w'); // create a mode 'who cares?' file
chmod('foo.txt', 0666); // set it to 0666


UEFI: Install Ubuntu first then Windows 10

Well, I solved this way:

removed efi & boot flags from the already existing Ubuntu-EFI partition
(/dev/nvme0n1p5 for me) and let just fat32 flag
I removed Windows related partitions (created at installation moment) so that the initially empty space at the end of the disk was restored
I restarted the Windows 10 installation -> successful this time

This works because my motherboard (Asus H370-I) allows me to choose the booting partition:

the previous Ubuntu-EFI one (now just fat32) -> my curent choice
or the new Windows-EFI one

Then by default I boot Ubuntu but I can switch to Windows from the grub menu.


Gaming makes my CPU Temp & GPU Core Temp 85C+

Flash is CPU intensive because it can't use xv output. On your CPU model, a single page with a flash video (YouTube) should use about 25-35% of your CPU. Depending on the embedded flash player used by different sites, CPU usage can be higher than that.

Check my flash optimization tutorial for some tips:

http://firefox-tutorials.blogspot.com/2010/05/flash-optimization.html


Newbie needs help setting up laptop for mom

Great, the laptop is ready. You don't need to do anything else at all. Systems sold with Ubuntu or other Linux distributions don't ship with an antivirus (AV) program because you don't need AV software on Linux. A lot of users coming from the Windows world automatically try to install an AV program on Linux but it is really unnecessary.
I won't go into details here (you can search for "linux virus" or similar thing on Google if you want to learn more) but the basic issue is that:

Linux is inherently more secure than Windows since it was always designed as a multi-user system, limiting the ability of normal users to change system files.
and

Because it has a small share of the desktop computer market and little effort has been spent on trying top develop viruses for it.

The result is that you simply have no need for an antivirus tool on Linux.   While there are some viruses that can affect Linux they are exceedingly rare and mostly harmless.
As for upgrading firefox, just update it like any other piece of software on your system: click on the dash (top left of the buttons on the left hand side of your screen) and then search for "update", select "Software Updater" and follow the onscreen instructions.

The take home message here is that the laptop is ready. You don't need to do anything at all, just give it to your mother.


Are all of these packages installed?

fonts-dejavu-core
fonts-khmeros-core
ttf-ancient-fonts-symbola
ttf-dejavu-core
ttf-indic-fonts-core
ttf-ubuntu-font-family

I got that list by running:

$ strace -o unity-control-center.strace -s 8192 -f unity-control-center
$ grep open\( unity-control-center.strace  | grep ttf | sed -e 's;^.*(";;' -e 's;".*$;;' | xargs dpkg -S | awk -F: '{print $1}' | sort -u

Also I switched to the keyboard panel in the unity-control-center (which the GUI calls System Settings).


Konsole does not execute .profile or .bash_profile

These files: .profile or .bash_profile are executed by the command interpreter only for login shells. See what is Difference between Login Shell and Non-Login Shell?

To execute, for example, .profile file in your konsole after you open it, run the following command:

source ~/.profile

or:

. ~/.profile

These commands are equivalent and they source/execute the code from inside of ~/.profile file.


Removing the dot in the date (or escaping it with \\.) resolved the error in my case.

See: https://github.com/rstudio/rmarkdown/issues/145


The where.yahooapis.com/geocode seems to be down. I'm seeing same thing. Script calling this URL has been working fine for about 10 months. Stopped working today.

Perhaps Yahoo stopped offering this service or you (and I) are on the 2000 max. request per day limit. But then again, you wouldn't expect to get a 404.

More info here


It seems to be a hardware problem. Try it with a nother mouse before starting debugging. You should even try changig batteries in you wireless mouse if you can. (In some models, lacking the wireless signal can be considered as don't pressing the button, even if you do so)


Try yr script as:

#!/bin/sh
set -e
sudo mount -t vboxsf folder ~/shared

Do not forget the -t mount flag, to signal that you're mounting a virtual box shared folder.
Careful too with what you mount where. If yr shared folder is called folder in above script and you mount it at ~/shared, then you're ok ...


How to validate a user's password, with a shell script?

You can use Prompty. It will allow you to prompt the user for their password, and then you can use Prompty's exit code to determine if they entered the correct password or not. If they didn't then stop your script.

Installation:

[Applies to Prompty 1.0]

Download Prompty from one of the links posted at "http://www.bleepingcomputer.com/forums/t/612007/prompty/" to your Downloads folder.
Install Prompty and it's dependencies:

sudo mkdir -p /opt/prompty
sudo unzip "$HOME/Downloads/Prompty 1.0 Stable.zip" -d "/opt/prompty"
sudo chown -R root "/opt/prompty"
sudo chgrp -R root "/opt/prompty"
sudo chmod -R u=rxX,g=rxX,o=rxX "/opt/prompty"
sudo apt-get install sed grep coreutils bash

Usage

[Applies to Prompty 1.0]

At the beginning of your script, execute Prompty.

bash /opt/prompty/prompty-cli --task="1" --useuserpassword="y"

Check to see what the exit code was, and use that to determine if your script should terminate:

if [ "$?" -ne "254" ]
then
    exit 0
fi

Add the rest of your script code.

Sources

"About" file from Prompty 1.0 Stable


network DISABLED

Indicates your wireless radio killswitch is still active.

Run

sudo rfkill list

to see what the current state is. "Soft blocked" can be unblocked using a command:

sudo rfkill unblock all

"Hard blocked" means you'll have to find the switch on your notebook to unlock it.


Script to set IP address connected to an interface to a shell variable

arp manipulates the entries in the kernel ARP cache, you are probably going to get a lot of entries (depends on the size of the LAN). As you are only interested in the IP addresses you should use the -n option so that arp shows numeric addresses instead of hostnames first.

Also you will typically get a lot of IP addresses depending the size of your LAN, so you should probably use an array instead of a variable to store the IP addresses.

The following command takes the IP addresses out of the arp cache and put them in array addrs :

addrs=( $(arp -ni eth0 | grep -o '^[0-9][^ ]*') )

Here is an example :

$ addrs=( $(arp -ni eth0 | grep -o '^[0-9][^ ]*') )

$ echo "${addrs[0]}"  ## First IP
192.168.2.27

$ echo "${addrs[2]}"  ## Second IP
192.168.1.1

$ echo "${#addrs[@]}"  ## Number of IP addresses
37

You can use sed too :

addrs=( $(arp -ni eth0 | sed -nr 's/^([0-9][^ ]*).*/\1/p') )

The IP addresses will be shown in the first column, we are extracting the first column by [0-9][^ ]*. ^[0-9] here is to ensure that the line starts with a numeric so the first line containing header is discarded from the output.

On a different note if you have only one entry you can save it in a variable instead :

addr="$(arp -ni eth0 | grep -o '^[0-9][^ ]*')"

Or

addr="$(arp -ni eth0 | sed -nr 's/^([0-9][^ ]*).*/\1/p')"


Here are some answers to your questions that can hopefully get you on your way:

  Do applications have to undergo a reviewing process like Apple's appstore and the Ubuntu Software Center?

When you upload an app to the Ubuntu Store, it is automatically review by the store. Here, apps can take 5 minutes to go from review to being published! This is because apps are confined, so there is no need to have a code review. As a result, apps are published significantly quicker to the store than if they were published from Apple's appstore or the Ubuntu Software Center.

  Is it possible to monitor the activity of the app, in terms of number of downloads, users, etc.?

When you publish your app to the store, there is a page for developers to see how many people have download your app, on what date they downloaded your app, and from what region your users are from. Since you are making an HTML5 app, you could integrate analytic software, like Google Analytics to give you more information in real time.

  I don't have a smartphone, so will I be able to reliably test apps in the Ubuntu SDK?

The Ubuntu SDK has an Ubuntu Devices tab to manage Ubuntu Emulators, so you will be able to test out your application as if you had a real device. When you app is ready for testing, feel free to reach out to the Ubuntu App Developers Community on Google Plus to get people to test your app on real devices and get feedback.

  Can I charge for apps?

Yes, the Ubuntu Store does allow developers to charge for their application.

  Can I get access to built in features of the phone/tablet such camera, GPS and accelerometer using HTML5? I know this is supported for android and iOS but not too sure about Ubuntu.

Looking on the HTML5 API Page on developer.ubuntu.com, it does not appear that there is a native api for access to these features. However, since Ubuntu Touch has native support for HTML5, it is very likely that some of these features are supported.

Your best place to start for access to these features is to check out the Cordova guide for Ubuntu. Cordova is an awesome api for developing cross-platform HTML5 apps with access to device sensors. For more information on Ubuntu HTML5 app development, see the HTML5 page on developer.ubuntu.com.

  Is there an official desktop appstore for Ubuntu Touch, or is the third-party uApp Explorer the only option?

There is an appstore, but it is in the Unity 8 version of Ubuntu, the version running on Ubuntu Phones. There is a desktop preview for Unity 8, but that requires installing it on your desktop. Eventually, Unity 8 will be default on the desktop. Until then, your will have to view apps from  uApp Explorer or the store on the Emulator.

I hope this helped you! If you have more questions, see developer.ubuntu.com, the community, or askubuntu.com


Install pavucontrol:
sudo apt install pavucontrol

Launch it by running pavucontrol on the command-line, and adjust the volume of the mic in the "Input Devices" tab. You can even go above 100%, although I don't recommend it as it can lead to distorted sound:


as a user:

$ echo "rinzwind:2" | chpasswd
Changing password for rinzwind.
chpasswd: (user rinzwind) pam_chauthtok() failed, error:
Authentication token manipulation error
chpasswd: (line 1, user rinzwind) password not changed

as root:

root@schijfwereld:~# echo "rinzwind:1" | /usr/sbin/chpasswd
root@schijfwereld:~#

You need to do it as "root". ANY other method of course will ask for the current password. It would be a security issue if you could alter it

When you do it as "root" it also accepts short passwords as you can see. Setting "1" as a password is not allowed by default from a normal prompt.

You can do

$ echo -e "1\naaaabbbb\naaaabbbb" | passwd rinzwind

where 1 is the old password and aaaabbbb is the new password. The flow of passwd is: old password, enter, new password, enter, new password. Mind that the password is visible (if only for a brief moment) in the processlist.


Can we have a user without a primary group?

There are two kinds of groups:

Primary Group:
This is the group applied to you when you log in; in most user cases it has the same name as your login name. The primary group is used by default when creating new files (or directories), modifying files, or executing commands.

Secondary Groups (AKA Supplementary Groups):
These are groups you are a member of beyond your primary group. As an example, this means that if a directory or file belongs to the www-data group (as used by the web server process in this case), then all www-data group members can read or modify these files directly (assuming the permissions also allow for this).

When we create a user foobar using this command,
sudo adduser foobar

User foobar will be assigned the primary group, foobar (which is same as username), by default.
We can also change the primary group of the user as,
sudo usermod -g www-data foobar

The lowercase -g option refers to a primary group.
Now foobar has the www-data primary group context. We can change user's primary group but can't remove it.


It seems the apt prevent you from --fixing because you had package that being used by two different package, hence the 'trying to overwrite' message. This answer by @AvinashRaj explain what trigger the error.

  From the above error report it was clearly shown that, while running sudo apt-get install -f command dpkg tries to extract and install
  .deb file 1. Installation requires to place package_file_A on the
  /usr/bin directory.

  But it was shocked on seeing the same package_file_A
  file on the /usr/bin directory and produced the error, because this
  file was placed to /usr/bin during the installation of some_package.

I changed several word, all credits goes to https://askubuntu.com/a/430443/253251

What to do ?

For a dirty hack you can try to force overwrite the offending files, be careful though.

sudo dpkg -i --force-overwrite /var/cache/apt/archives/nvidia-418_418.40.04-0ubuntu1_amd64.deb

You can then attempt to fix remaining problem.

sudo apt -f install


I would recommend you do a fresh install leaving only the gcc version that you need/want.
Uninstall all g++ and gcc and do a fresh install. Purge them if necessary.


You have to install not only the header files, but the libraries also. These are the packages ending in -dev, so in this case:

sudo apt-get install libpcap-dev

By the way, this is a metapackage, which will install libpcap0.8-dev package.


Ubuntu 20.04 on VMWare Workstation 16 says the disk full even though it isn't

I've used the "du" utility to see the large files.
The disk usage on a specific path:

It turned out a single test file that I've deleted were containing 49 GB's of data. I recently copied this file from Windows. Actually, the file size is around 4 KB. I don't know why this has happened. I removed that file and I'm okay right now.
So when copying data from Windows be careful, this also may happen to you.


This answer applies only to Lenovo Z470, but there's probably a similar way to solve for other models.

Found the answer here: lenovo z470 keyboard gets stuck

From that question:

Open your Terminal.
$ sudo nano /lib/udev/hwdb.d/60-keyboard.hwdb
In nano editor look for "lenovo" section (CTRL + w). On Ubuntu 15.04 there should be a section similar to the one you have to add but for IdeaPad Z370.
Add this section (Copy and Paste) below the one for Z370 (or wherever you think is right :P ):

Ubuntu 13.10 and 15.04

    # IdeaPad Z470
    keyboard:dmi:bvn*:bvr*:svnLENOVO*:pn*IdeaPad*Z470*:pvr*
     KEYBOARD_KEY_a0=!mute
     KEYBOARD_KEY_ae=!volumedown
     KEYBOARD_KEY_b0=!volumeup

Ubuntu 15.10

    # IdeaPad Z470
    evdev:atkbd:dmi:bvn*:bvr*:svnLENOVO*:pn*IdeaPad*Z470*:pvr*
     KEYBOARD_KEY_a0=!mute
     KEYBOARD_KEY_ae=!volumedown
     KEYBOARD_KEY_b0=!volumeup

Save changes and exit nano.
sudo udevadm hwdb --update
restart.

This was a reported bug for Lenovo Z370 and it was fixed. Unfortunately, not for Z470 (should there be a less specific fix?)

https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1245189


root folder is just filling up and filling up

I solved this by getting rid of snapd completely.

sudo apt autoremove --purge snapd

(Special thanks to OldFred on the Ubuntu Forum for this suggestion)


Luckily you don't need to be an expert on dconf anymore:

guake --restore-preferences ~/myguakeprefs
guake --save-preferences ~/myguakeprefs


You don't need to add the repository for ubuntu 20.04. Just do:

sudo apt update.
sudo apt install libpq-dev
sudo apt install gdal-bin
sudo apt install libgdal-dev


Ubuntu 16.04 WiFi not working | Realtek RTL8723DE

Currently it only works with kernel version 4.14

sudo add-apt-repository ppa:teejee2008/ppa

sudo apt-get update

sudo apt-get install ukuu

Install version 4.14

Restart.

Make sure v4.14 is Running

git clone https://github.com/smlinux/rtl8723de.git -b 4.11-up
dkms add ./rtl8723de
dkms install rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414
depmod -a
reboot

Now wifi should appear.


Can I modify power-management settings on a laptop running Ubuntu Server?

Power management is handled by acpid; man 8 acpid and poke around in /etc/acpi/events.


Make a new .desktop file for xmonad. That allows you to pick it at the log-in screen, and if anything goes wrong, you can restart and pick whatever you're normally using. Here's the file I have:

[Desktop Entry]
Encoding=UTF-8
Name=XMonad
Comment=Lightweight tiling window manager
Exec=xmonad
Icon=xmonad.png
Type=XSession

Placed in /usr/share/xsession/xmonad.desktop


This is the concept: the user who installs the system is regarded as system admin. Every time you try to do something to the system you just have to say: "Yes, I am aware that this could be serious" and "yes, its me (and not somebody else)".

For these purposes you are asked for your own password.


How do I adjust the margin for the line numbers in gEdit?

The request for more space between line numbers and content has sometimes been voiced on the mailing-lists before, and here is a summary of my investigation of the current situation.

We can find any additional gedit settings by entering in terminal

gsettings list-recursively | grep -i gedit

and then we can narrow it down a bit further by entering

gsettings list-recursively | grep -i gedit | grep -i margin

which returns the margin entries and your current settings:

org.gnome.gedit.preferences.editor display-right-margin true
org.gnome.gedit.preferences.editor right-margin-position uint32 2

But these are right margin settings, and are just the same as the gui settings menu; there also doesn't seem to be any appropriate possibilities in the rest of the settings or any plugins that would be useful for you.

It is important to note that gedit uses gtksourceview, and, when examined, the feature set from that library will be familiar to gedit users. There is, however, no mention in the specifications of the left margin or a way to specify a separation between line numbers and the entries in your gedit document.

However, I think you could do what you want by patching the gtksourceview library,  and patching gedit. After looking at the gtksourceview specifications I think you would need to patch the gtksourcegutter settings; in the documentation it is noted that

  The GtkSourceGutter object represents the left and right gutters of the text view. It is used by GtkSourceView to draw the line numbers and category marks that might be present on a line. By packing additional GtkSourceGutterRenderer objects in the gutter, you can extend the gutter with your own custom drawings.

There is a discussion on the gutter in the mailing-lists, although not with specific reference to your question, but with regard to possible customisations.

You may have thought you had enabled space between line numbers and entries in your document by carrying out the process shown in the screenshot below.

You create a new file with gedit, go to edit > preferences > view and enable the right margin and set it to 2, for example. Then you place the cursor on the margin, type something, press return, and then save the file. Then when the file is reloaded the space between the numbers and the content stays until you go beyond the margin.

This has happened to me a few times, and is confusing, but is not a reliable way of doing what you want. As there are no official settings available the only way to do what you want would be to patch gtksourceview and gedit.


Accidentally changed Bluetooth mode to off

I've experienced this too, though it was not in the 'off' profile, but telephony profile for some reason.

Try installing pavucontrol, start it up (PulseAudio Volume Control), and reselect the A2DP profile used for your audio device there in the tab 'Configuration'. It should remember the profile the next time you plug in (or connect for Bluetooth).

For a command-line way of doing this, try

BLUEZCARD=`pactl list cards short | egrep -o bluez.*[[:space:]]`
pactl set-card-profile $BLUEZCARD a2dp

As can be found in this answer (by @izx).


In a "Save as ... " dialog, what's the quickest way to keyboard-navigate to "Recently Used" in the "Places" side-pane of Nautilus?

In my English Ubuntu 12.10, when I hold Alt, the "P" in "Places" becomes underlined. This gives the hint that Alt+P will move focus to the "Places" bar.

The accelerator might be different in another release or a localized version of Ubuntu. Also note that some characters in other labels become underlined, too -- the logic is the same here.

This works in many other dialogs in Ubuntu and Windows.

EDIT: Beyond that logic, hitting Alt+R selects "Recently used" in the "Places" bar and leaves the focus in the "Files" pane.

EDIT 2: Alt+D selects "Desktop".


How do I disable app menu in LibreOffice?

The gtk-desktop integration activates the unitymenu if unity is available. This can be prevented by uninstalling libreoffice-gtk, which also removes all themeing and results in a very ugly LibreOffice without unity integration.


BASH: write the output of a command to a file

time is a bit funny. It's a Bash built-in so the first thing you need to do is limit it to the right command. You can do that by grouping it with braces or subshelling with parenthesis.

Then you need to note that it outputs to STDERR. This won't be redirected by default but we can fix this by redirecting STDERR into STDOUT and then redirecting that.

Finally (as choroba spotted before me) using > will overwrite by default. Doing it in a loop will result in just the last iteration showing in the file. You want >> which will append.

{ time ./merge $i ; } >> nn 2>&1

If you don't want any original STDOUT, and just want the time output, you could run this instead:

{ time ./merge $i >/dev/null 2>&1; } 2>> nn

This is junking all the output of the ./merge command and is just redirecting the STDERR from the wider block.

Just as a test harness to show this working:

$ for i in {1..10}; do { time echo $i >/dev/null 2>&1; } 2>> nn ; done
$ wc -l nn
40 nn

That's 10×4-line time blocks (the echo output is suppressed).


dpkg: warning: files list file for package 'liba52-0.7.4' missing

You can just re-install the 'liba52' package:

apt-get install --reinstall -y liba52-0.7.4

To install this you may have to enable the Universe repository, so consult How do I enable the "Universe" repository? if you are not sure how to do this.


How to stop Thunar from being default file browser?

Another method to set nautilus as default using GUI :-

Click on the top-left Xubuntu logo, it will display a menu

Select Settings ➞ Settings manager

The Settings window will open, Click on the Preferred Applications icon.

Then click on the Utilities tab and select nautilus from File Manager section

That's it. Now nautilus becomes your default File manager.


Stuck at gdm login loop after failed boot and fsck

I can get to the GUI bu making a new user with

sudo adduser ...
sudo usermod -aG sudo ...

But that is really suboptimal, since the older user had a highly custom configuration, and it is a real pain in the you-know-what to reconfigure the new one from scratch now.

Turns out that some files inside ~/.config and ~/.dconf were corrupted. Trying to access them spew out input/output errors. After renaming these directories every profile setting is gone, but gdm isn't looping at least. They are recreated with default data.


How to disable autoformat in LibreOffice 6 Calc?

Select an input area, right-click it and select "Text" format.

That will disable auto formatting.

I added 00:10:00 to LO Calc 5 and it didn't change though.

Probably they added some automation in the 6 version.


You may need to restart your display manager to fix your problem.

11.04 and earlier.

sudo service gdm restart

Ubuntu 11.10 and newer.

sudo service lightdm restart

lightdm replaces gdm in Ubuntu 11.10

Ubuntu 15.04 and newer.

sudo service sddm restart

While restarting lightdm restarts the entire display manager, you may be able to resolve the issue by restarting unity or compiz (Unity is a compiz plugin).

Restarting Unity (nohup setsid unity OR nohup unity --restart on the CLI OR Alt+F2 and type unity) restarts the Unity shell.

If that doesn't work, restart compiz with nohup compiz --replace. You may need to restart unity again after restarting compiz.

Restarting lightdm restarts the entire display manager which is most likely to work but it will also close your running applications.  Which you need to do depends on how broken your session is.  If you can just restart Unity or Compiz, do that.  If that doesn't work, restart lightdm.

The following wiki article has additional information about fixing LightDM issues:

https://wiki.ubuntu.com/LightDM


How do I get Vidalia Tor to work on 14.04?

Just follow up these steps

Open up /etc/apparmor.d/usr.bin.vidalia file with root permissions. For this you can run sudo gedit /etc/apparmor.d/usr.bin.vidalia in a Terminal.
Add this line /usr/bin/tor Ux, anywhere inside the /usr/bin/vidalia {...} block. Place of this line in that block does not matter.
Run sudo apparmor_parser --replace /etc/apparmor.d/usr.bin.vidalia in a Terminal.

Okay, now you're done!


apt-file no longer finds or lists most of the content since Ubuntu 19.10 eoan

This was an upstream packaging bug and has been fixed within the last hours. A new apt-file update and subsequent apt-file search /bin/bash now delivers the expected results even under Ubuntu eoan.


It's been a while since I've seen a default keyring - what version of Ubuntu is that?  Open up the default keyring to determine what applications are stored in there.  If there's only one or two, you might want to consider just deleting that keyring and storing everything in the login keyring instead.

It's possible that you have default keyring because your login keyring is out of sync with your login password.  Depending on your security requirements, you might want to consider changing the password on your login keyring to a blank password (called "unsafe storage") which ensures that all future passwords are stored in the login keyring.

I'd only advocate this approach if a) you're using encrypted home or b) you don't care about security.


Dual booting Ubuntu18.04 with Windows 10

Did you remove the GRUB package? Deleting Ubuntu is never a good alternative, but which ever suits you fine is okay.For reference you can check this to see if you have followed this
https://www.easeus.com/partition-master/remove-partition-windows-10-free.html#:~:text=Step%201%3A%20Search%20%22Disk%20Management,system%20complete%20the%20removing%20process.


Can I add /dev/sda1 after I accidentally deleted?

Using fdisk,

sudo fdisk /dev/sda

n create new partition

press enter for first sector

add desired space using +#K or +#M or +#G
example +256M adds 256 megabytes


Since /etc/passwd is a list of fields separated by a stable separator (much like CSV), you should utilize commands that can work with them, like cut or awk (for more complex operations).

In this case, cut is sufficient:

cut -d: -f-3

Explanation:

The flag -d sets the delimiter (or field separator). We want : here.
The flag -f selects fields to print. -3 means “up to 3rd column”.

Example:

$ cut -d: -f-3 /etc/passwd | head
root:x:0
daemon:x:1
bin:x:2
sys:x:3
sync:x:4
games:x:5
man:x:6
lp:x:7
mail:x:8
news:x:9

By the way, it is superfluous to issue echo $(command). Use the command directly.


First, check and see if you have a battery entry in /proc/.

ls /proc/acpi/

If the list you get back includes a 'battery' entry you can run:

cat /proc/acpi/battery/

Which will return the information on the battery.

Secondly, if the above ls /proc/acpi doesn't include an entry for 'battery' than you can install acpi with:

sudo apt-get install acpi

Once installed (you may need to reboot) you should be able to run:

acpi -b

and this will return the battery level information.

For more info on the acpi command, run man acpi


This has already been answered here.  The --new-window option is needed.
Make sure that no other Nautilus window is already open on the remote machine.  Else, you'll open Nautilus windows there, and not in your SSH client.


Ubuntu 16.04, Nvidia Geforce GT 610 getting nvidia drivers to work

The low end GT610 is quite easy to use and doesn't even require the latest drivers. Your problem is somewhere else. Too much "attempts" installing graphics drivers without properly cleaning the system of all remains of the version in use prior to try a new one can have all sorts of undesired effects.

In a properly installed 16.04 the best and tested driver can be easily installed at Additional Drivers. The long term support 340.xx seems to give the optimal result for your card.


Why xdg-open should not be used as root?

As you may know xdg-open is used to opens a file or URL in the user's preferred application.

If you run it using root you may end up a broken system, but why?

Cause you may run a graphical program using root access ( Why should users never use normal sudo to start graphical applications? ).

It may also run a program which shouldn't be run with root access or even accidentally runs a dangerous command using root access.

It simply going to run a command which we are not sure what it is, so it shouldn't be run with root access.


Lexmark Intuition S505 Scanner not detected by Simple Scan

Lexmark supports this printer with linux drivers. Use this link to install the latest version.

Support Page

Then sane should work.
You may also need to add yourself to the lp user-group.

I would also check for a file in the /.sane/xsane folder for a file name like Lexmark:S505.drc, this would be the scanner configuration for SANE.


How to delete the string pattern from a file between 2 colon character

Use sed:

sed 's/:[^:]*/:/'

first : - match colon
[^:]* - match any number of characters which are not a colon
last : - replace the match with colon, because your match includes the first colon, but from your output I see you want to keep it.


Text editor to edit large (4.3 GB) plain text file

Another method is to use split. Split the file into 8 pieces and manipulate the files with a editor. After that, you reassemble the files again.

split -b 53750k <your-file>

cat xa* > <your-file>

SYNOPSIS
       split [OPTION]... [INPUT [PREFIX]]

-a, --suffix-length=N
              use suffixes of length N (default 2)

       -b, --bytes=SIZE
              put SIZE bytes per output file

       -C, --line-bytes=SIZE
              put at most SIZE bytes of lines per output file

       -d, --numeric-suffixes
              use numeric suffixes instead of alphabetic

       -l, --lines=NUMBER
              put NUMBER lines per output file


kubuntu 20.10 won't Start: xsession warning unable to write to /tmp


Django Cannot Create Test Database Permission Denied

you user probably does not have permission to create a database, open a terminal and log into postgress as postgress and run the following

ALTER USER user CREATEDB;


Ubuntu 18.04LTS - mouse scroll is just wrong

I'm also having this problem. So far, this doesn't throw an error:

  $ xinput --set-prop 17 --type=float --format=32 "Evdev Scrolling Distance" 1

But it doesn't actually change anything, at least for me. I'll keep trying...

Edit:
I found the manpage for evdev here. I didn't glean enough from it to solve it. I'm sure it would be interesting to figure out another time, though.

In continuing to read, I found a little program called imwheel that works.

  sudo apt install imwheel

Then create an rc file:

  vim ~/.imwheelrc

".*"
None,      Up,   Button4, 7
None,      Down, Button5, 7
Control_L, Up,   Control_L|Button4
Control_L, Down, Control_L|Button5
Shift_L,   Up,   Shift_L|Button4
Shift_L,   Down, Shift_L|Button5

Where lines 2 and 3 end with '7', which is the scroll distance (default '3'). Try playing with it, just do imwheel --kill then imwheel to reload changes. The last four lines introduce standard behavior between shift/control and scrolling.

The full guide is here and has more info.


You need to configure your BIOS to boot from USB and not from the HD. How it is done change from computer to computer so you may refer to the docs of your system if you don't know how to do this. Usually modern BIOS have an option to press a key while booting and offer to change the boot order which is easier than changing the default in BIOS.

If you already are booting from the USB pendrive, the pendrive is not bootable so you should verify that you completed all the steps while installing ubuntu on it, including writing GRUB on it and not on your HD.


Unable to understand what jdk location is

All ubuntu JRE and JDK installs gets stored in /usr/lib/jvm/.
You need to add the multi-arch specific JDK location to Idea12.
For example, on 32-bit x86 Ubuntu installations, use /usr/lib/jvm/java-7-openjdk-i386.


End kernel panic not syncing out of memory and no killable processes

I guess kernel panic occured due to one of the following reasons or may be more

1 . Compiling the kernel is basically installing the kernel so instead of replacing the old kernel it instead got stuck in deadlock where neither of the kernels were able to use the memory thus the panic.

The new kernel entered into some kind of loop, think it this way "it tried to call itself" or simply it became a type of fork bomb thus the out of memory error and panic.
The partition allocated for the new kernel was not sufficent. Try to make a different partition,mount it,sys link it so that others programs can execute it. Now re compile it using gcc and chains(linker)
Instead of replacing the kernel it killed itself.
If you extract a kernel tarball which is initially 300 mb of size, after extracting i.e "tar -xvf kernel.zip" it becomes a giant of 900 mb of size. After installation of packages like gcc,g++,gnu-make,etc and compiling it, the compiled kernel may become a mamoth of 2 GB of space. So If it the partition doesnt have that much space out of memory may occur.
You didnt provide a swap area. As building a kernel is resource intensive it needs both a good amount of space,a swap are and ram.
During installation it creates sub folder like /mount, /proc, /boot ,/dev etc . So that each part gets respective location which some how failed due to out of memory.
Usually a kernel is compiled in chroot like enviroment, but if the chroot is not properly set it may fail to get a resource like proc,mnt,dev thus the panic.

If you still need some help then checkout these two places #1  kernel team for ubuntu  , #2  kernel debugging team for ubuntu

New Update:

As your update seems to implying compiling the kernel worked.

It could only mean that you compiled the whole kernel.

Usually a kernel has everthing in it which may be important to one but a waste of space and time for other.

So either you could use the new kernels from ubuntu kernel . In my case its v4.14-rc1.Download the kernel which match your arch.
 I have x86_64 so I would choose 64 bits one.
I would download these

linux-headers-4.14.0-041400rc1_4.14.0-041400rc1.201709162031_all.deb
linux-headers-4.14.0-041400rc1-generic_4.14.0-041400rc1.201709162031_amd64.deb

linux-image-4.14.0-041400rc1-generic_4.14.0-041400rc1.201709162031_amd64.deb

and would then issue "sudo dpkg -i *.deb" to compile all.

Now it seems that the kernel you compiled are of more than 1GB thus its using more resources.

The ubuntu kernel has many parts stripped out so its low i size and uses heavy compression.

Your kernel might have everything in it and can be used by IOT,servers,desktop, and may be compatible with arm 64,amd64, etc as it may have all the modules present to run these.

So to reduce it you need to remove all the parts useless in your case like drivers for hardware you never have heard of. Stripping server parts where ever possible.

Great work by the way as kernel compiling is a headache as its uses intensive resource ,time and patience

Update #2:

As you mentioned that your initrd.img  file was huge. Could you atleast post a screenshot of your /boot/ or in terminal use "ls -l " to list the size of everything.

Kernel happens to be the heart of any Linux distro. Its very complex so without knowing anything one can just guess whats the issue.

I would still suggest you to strips the unwanted modules from your kernel and then compile it.


Share folders through a tethering connection

Here your Android Smartphone indeed works as gateway but partially you also have to configure routes from laptop side.

The reason behind PC cannot see the share folders of the Laptop is that Laptop routes packets through your wifi router.  You need configure your android smartphone's ip address as gateway in your laptop.

Currently gateway of laptop is router. Please remove 192.168.35.254 ip address and configure smartphone as gateway 192.168.35.115 in your laptop's network configuration. After applying configuration, it should work.

You can check routes of laptop using route -n command.


conky keeps grabbing focus and shortcuts and desktop switching does not work

Yes! Install Compiz configuration manager and compiz plugins:

sudo apt install compizconfig-settings-manager compiz-plugins

now open compiz manager and enable window rules plugin:

and and add class=Conky to No focus line:

now simply set window class in conky:

own_window_class = 'Conky',

and log-off and log in again.

my whole Conky window setup:

own_window_class = 'Conky',
own_window_argb_visual = true,
own_window_argb_value=0,
own_window_type='dock',
own_window=true,
own_window_transparent=true,
own_window_hints='undecorated,below,sticky,skip_taskbar,skip_pager',


I solved the problem forcing the GRUB to appear by pressing Shift repeatedly while starting the PC. Then I introduced nomodeset again and I followed this steps.


Remember monitor setup: add it to Startup Applications

There are many possible reasons why a monitor setup would not "survive" a reboot. In far most situations, the pragmatic solution is to simply make the setup run automatically on startup (log in actually).

How to do that

In your situation, DisplayPort-0 obviously represents the left monitor, as we can see in:

DisplayPort-0 connected 1920x1200+0+0

where the last section, +0+0 is the x/y offset of the screen, as explained here.

The command to position a monitor looks like:

xrandr --output DVI-0 --pos 1920x0

In commands, we should always position monitors from left to right, so the command in your situation is:

xrandr --output DisplayPort-0 --pos 0x0 && xrandr --output DVI-0 --pos 1920x0

However, we need a break

If we add the command to Startup Applications just like that, it will almost certainly run too early, and either break, or be overruled by incorrect local settings, called afterwards.

The complete command, to add to Startup Applications therefore should include a break of appr. 15 seconds:

/bin/bash -c "sleep 15 && xrandr --output DisplayPort-0 --pos 0x0 && xrandr --output DVI-0 --pos 1920x0"

How to add to Startup Applications

Open Dash > Startup Applications > Add. Add the command:

/bin/bash -c "sleep 15 && xrandr --output DisplayPort-0 --pos 0x0 && xrandr --output DVI-0 --pos 1920x0"

Note

Please try the command below (without the break) first from a terminal, to see if it runs correctly:

xrandr --output DisplayPort-0 --pos 0x0 && xrandr --output DVI-0 --pos 1920x0

Although I checked well, blind spots and typos are always possible :)


How do I browse files on my android phone (bluetooth or usb)?

Is your phone unlocked and in MTP mode?

The most common advice online for this problem is to connect, then pull down the notification bar, tap the USB Connection bubble, and change to MTP. In "Charge Only" mode, the phone connects via MTP but doesn't present any of its files.

A known issue with the G3 (which apparently affects the G4 as well) is also mentioned here, with identical symptoms:

  This is a known issue with the Marshmallow update on G3 with SD card set as portable storage (users who switched to internal storage seem to have no issues)... Disconnect USB, then Go to Settings, Apps, and Show System Apps, then find External Storage and Media Storage, and clear data and cache on each one and reboot. Give it 5 min after full boot up to rebuild media databases and connect to USB and select MTP, should be good to go.

In addition, mounting via MTP sometimes takes ages for no apparent reason. I once gave up on troubleshooting this, leaving my phone connected while I worked on a different computer. When I returned an hour later it was magically working.


cups-insecure-filter error for Lexmark printer on Trusty

This is probably too late to help the original poster, but for others searching some day:

sudo chmod g-w /usr/local/lexmark/v3/etc/lxS800.ppd
sudo /etc/init.d/cups restart

For other models of Lexmark printers, choose the appropriate .ppd file in
/usr/local/lexmark/v3/etc


Problems running Ubuntu 14.04 inside of a virtual machine within Virtual Box

How much memory have you given to use for the Ubuntu VM?

You need at least 4GB for Unity and around 2GB for Lubuntu.

I think you didn't give enough memory to install it, and that is why it is getting stuck there.


Yes, I think that is what is happening.

Okay, my solution was to clone the Windows disk to an external USB disk (doing so in Windows) and then reformatting the internal clone disk. update-grub then does not find it.

The disk ID didn't change now that there is one of them in the grub.cfg.

So, I think it would work to manually delete part of grub.cfg for the clone, too. The IDs of the two disks apparently really are the same, and grub happened to boot the clone, so removing it should get it to boot the right Windows disk.


How to schedule a command to run a few seconds after startup?

You could simply add

sleep 10

to the beginning of your script. This way, your script will "sleep" (wait) 10 seconds before continuing.


Press the Super key (windows key).
Type "Startup Applications"
Click on the Startup Applications option
Click "Add"
In  the "name" field, type Terminal
In the "command" field, type gnome-terminal
Click "Add"

You are done! Next time you login, the terminal app will be launched.


How do I install and setup the environment for using PortAudio?

Installing ALSA Development Kit

The OSS sound API is very old and not well supported. It is recommended that you use the ALSA sound API. The PortAudio configure script will look for the ALSA SDK. You can install the ALSA SDK on Ubuntu using:

sudo apt-get install libasound-dev

You might need to use yum, or some other package manager, instead of apt-get on your machine. If you do not install ALSA then you might get a message when testing that says you have no audio devices.

You can find out more about ALSA here: http://www.alsa-project.org/

Configuring and Compiling PortAudio

You can build PortAudio in Linux Environments using the standard configure/make tools:

./configure && make

That will build PortAudio using Jack, ALSA and OSS in whatever combination they are found on your system. For example, if you have Jack and OSS but not ALSA, it will build using Jack and OSS but not ALSA. This step also builds a number of tests, which can be found in the bin directory of PortAudio. It's a good idea to run some of these tests to make sure PortAudio is working correctly.

Using PortAudio in your Projects

To use PortAudio in your apps, you can simply install the .so files:

sudo make install

Projects built this way will expect PortAudio to be installed on target systems in order to run. If you want to build a more self-contained binary, you may use the libportaudio.a file:

cp lib/.libs/libportaudio.a /YOUR/PROJECT/DIR

On some systems you may need to use:

cp /usr/local/lib/libportaudio.a /YOUR/PROJECT/DIR

You may also need to copy portaudio.h, located in the include/ directory of PortAudio into your project. Note that you will usually need to link with the approriate libraries that you used, such as ALSA and JACK, as well as with librt and libpthread. For example:

gcc main.c libportaudio.a -lrt -lm -lasound -ljack -pthread -o YOUR_BINARY

Reference


I just booted a trusty VM on my computer at home (I'm still in the office) and tried to load the file in OpenShot and VLMC, not luck.

On2 my be a bit confusing to read, that's the company that built all the VP codecs, until Google bought them. This version of OpenShot was released in October 2012, before VP9 was released and the developers since then tried to put out the next release, first 1.5 that apparently didn't make it, now 2.0.

So it seems that typical video editors in 14.04 cannot read this file. (I haven't tried Kdenlive, but it's installed on the host.) The greatest chance of success would be convert the video to VP8, we would still need a more recent build of ffmpeg for a conversion from VP9 to VP8 though. You could install another Linux distribution, build ffmpeg on your own or pick the Windows binary and run it with Wine. (It's under bin/ in the zip, place it in the same folder as the video and replace ffmpeg-win64 in the example with the actual .exe filename.)

That's what the command (1st line) and the output will look like:

$ wine64 ffmpeg-win64 -i Downloads/Acute_leukemia.webm -c:a copy -c:v libvpx -crf 10 -b:v 0 Downloads/Acute_leukemia_.webm
err:menubuilder:init_xdg error looking up the desktop directory
ffmpeg version N-77556-g4160900 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 5.2.0 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
  libavutil      55. 11.100 / 55. 11.100
  libavcodec     57. 20.100 / 57. 20.100
  libavformat    57. 21.100 / 57. 21.100
  libavdevice    57.  0.100 / 57.  0.100
  libavfilter     6. 22.100 /  6. 22.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
Input #0, matroska,webm, from 'Downloads/Acute_leukemia.webm':
  Metadata:
    encoder         : Lavf56.7.101
  Duration: 00:10:18.24, start: 0.007000, bitrate: 697 kb/s
    Stream #0:0: Video: vp9 (Profile 0), yuv420p(tv), 1812x1018, lossless, SAR 1:1 DAR 906:509, 30 fps, 30 tbr, 1k tbn, 1k tbc (default)
    Stream #0:1: Audio: opus, 48000 Hz, stereo, fltp (default)
File 'Downloads/Acute_leukemia_.webm' already exists. Overwrite ? [y/N] y
fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x01b6 ignored
[libvpx @ 000000000038e480] v1.5.0
[webm @ 000000000038cd00] Codec for stream 1 does not use global headers but container format requires global headers
Output #0, webm, to 'Downloads/Acute_leukemia_.webm':
  Metadata:
    encoder         : Lavf57.21.100
    Stream #0:0: Video: vp8 (libvpx), yuv420p, 1812x1018 [SAR 1:1 DAR 906:509], q=-1--1, 30 fps, 1k tbn,30 tbc (default)
    Metadata:
      encoder         : Lavc57.20.100 libvpx
    Side data:
      unknown side data type 10 (24 bytes)
    Stream #0:1: Audio: opus, 48000 Hz, stereo (default)
Stream mapping:
  Stream #0:0 -> #0:0 (vp9 (native) -> vp8 (libvpx))
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=18547 fps=8.3 q=0.0 Lsize=   46960kB time=00:10:18.23 bitrate= 622.3kbits/s speed=0.277x
video:40026kB audio:6591kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.735802%

And here the proof that the file now loads in OpenShot:

I'm a bit surprised that the Video got smaller, it should have been bigger especially since -crf 10 should result in higher bitrates than the default settings, it's either not high enough (try values lower than 10), or my parameters are wrong for VP8. (They work with VP9.)

https://trac.ffmpeg.org/wiki/Encode/VP8
https://trac.ffmpeg.org/wiki/Encode/VP9
If you just want to cut the video you may want to have a look at mkvtoolnix-gui (store link, but better get the new GUI from the developers site) and split the file with timecodes.
Apparently Opus is already supported by OpenShot, if not try Vorbis, just replace copy with libvorbis -q:a 4 for Vorbis 128 kbps (may be a bit too high).

It seems to work, but the encode was rather slow here. I cannot check if the result is proper, VRDP is very laggy here even with conservative settings.


"Configuring grup-pc" what should I choose?

Just select the ext4 partition where ubuntu is installed.


Switching from ubuntu to kubuntu. What applications to use?

Konversation for IRC
For IM, I'd actually still recommend Pidgin, but if you really don't want to use GTK apps, there is Kopete.
For email, I would recommend Thunderbird.
For browsing I would recommend Chrome or Firefox. Neither of these are Qt applications, but Konqueror, the KDE browser isn't very good.


USB stick product code is recognised but not "No Medium"

Since all you get from Disks is Edit Mount Options, with no real vendor, model, size, or media info, and gparted does not even recognize it, and Windows won't recognize it, then it has failed. Return it to the vendor for replacement


FIXED] Apache2 URL Rewrite using Joomla - Permission issue? (500 internal error)

I found the solution to my own problem.

I used this guide: http://docs.joomla.org/How_to_check_if_mod_rewrite_is_enabled_on_your_server

...to find out if mod_rewrite is functioning; It was not. What this means is that the problem does NOT lie in .htaccess or your joomla settings, but in apache.

If apache is not configured correctly, .htaccess will be ignored.

In my configs the AllowOverride was set to target /var/www/ instead of /var/www/html/. Updating that fixed the problem for me.

I hope this may help other people as well, and if you find that your apache setup passes the guide I mentioned, then your problem lies in your website; your .htaccess or joomla configs.


can not access USB shared drive from Ubuntu to Ubuntu 20.04

What is missing is how you set up this share on the server. Adding the output of the following commands would tell us that:
testparm -s

net usershare info --long

I suspect the problem is the path to your mount point:

/media/user/USB-DRIVE

The only samba client user that will gain access to that share is user so you either have to pass that users real username and samba password or if it is a guest accessible share "force" the client user to look like user.
You would do that by editing /etc/samba/smb.conf - on the server - and right under the workgroup = WORKGROUP line add this one:
force user = user

Where user ( after the = sign ) is the same user that is in the /media/user/USB-DRIVE path.
Then restart smbd:
sudo service smbd restart


I guess it is because of the space in the line export PERL5LIB=PERL5LIB:/home/lib-11/Downloads/mirdeep2 /lib/perl5/site_perl/5$ (Notice the space between mirdeep2 and /lib/perl5)

It should be export PERL5LIB=PERL5LIB:/home/lib-11/Downloads/mirdeep2/lib/perl5/site_perl/5$ (Without space)


Is it possible to convert a 30 second clip of an .mp3 to .wav via the command line?

Try

ffmpeg -ss 45 -t 30 -i file.mp3 output.wav

(start at 45s, length 30s)

More info:
http://linux.die.net/man/1/ffmpeg


PowerBook displays “Fixing recursive fault but reboot is needed!” and stops booting

I have a 15" PowerBook G4 and I was able to install Lubuntu 12.10 from a USB stick when I entered these yaboot paramaters:

live snd-powermac.blacklist=yes video=raedonfb:1024x768-32

I found that stuff on the PowerPCKnownIssues page at the Ubuntu site.


how to replace word in vi editor globally in ubuntu

Not sure why you have both Unix and Linux in your command.
How about:

:%s/windows/linux/g

or if the replacement string is unix/linux:

%s/windows/unix\/linux/g


How to copy files to/from (gnome) desktop using Dolphin on Ubuntu 19.04?

This will not be easily solved. The implementation of the possibility of using your desktop to store files is very specific to the desktop environment. Currently, in Ubuntu, the functionality is not anymore provided by the file manager. It is now provided by a Gnome Shell extension.

Traditionally, and in many other desktop environments, that functionality is provided by the file manager itself. As such, Dolphin can manage the desktop in the KDE desktop, but not in Gnome Shell because the KDE desktop is fundamentally different. The file manager nemo manages the desktop in Cinnamon desktop, but would also still be able to do so in Gnome Shell, because it is forked technology.

Having this work would require programming to implement the functionality in one way or another, and thus is reserved to skilled developers.


How to resume a process after loosing ssh session?

Hello the way i know is you can use the command in screen sessions so even if you get disconnected you can still connect to it. I use it to run my minecraft server.
and i can connect to it again with the following command
screen -r server
simple right?


Python version ambiguity on ubuntu 18.04 & ubuntu 20.04

Python3.6 is being invoked whenever you're calling python because you have aliased python to python3.6. The reason why which doesn't see the alias is because which scans the PATH for executable files matching the names of the  arguments. In your case, which was actually giving the output for /usr/bin/python. From which's manpage:

  which returns the pathnames of the files (or links) which would be executed in the current environment, had its arguments been given  as  commands  in  a  strictly  POSIX-conformant shell. It does this by searching the PATH for executable files matching the names of the arguments. It does not canonicalize path names.


disable default network package and use wicd

I ended up using WICD with the help of "How to set up an ethernet and wireless network using /etc/network/interfaces"   https://help.ubuntu.com/community/WICD    The Boss liked the friendly menus.


From what I have read in a few forums in just the past couple of minutes, it seems that there have been people looking for a Coda alternative on Linux and haven't been able to find one. Eclipse is rather good, but I choose to stick with Sublime myself. Just like any other editor, it takes some getting used to.. but eventually, you can power through it (sometimes better than a fully developed IDE).


"paths must precede expression" error when trying to find all jpg files in the current directory

tl;dr Always quote globs in find: find . -maxdepth 1 -type f -name "*.jpg" (notice the " characters surrounding *).

In your case, the shell is interpreting *.jpg (note the * character) and trying to match file names within the current directory that end in .jpg.  There is a file named pic1 (1).jpg so that file name replaces *.jpg.  The command the system is given by the shell becomes

find . -maxdepth 1 -type f -name 'pic1 (1).jpg'

To see in depth, try tracing the original command using strace.  What is actually executed is:

touch foo.jpg bar.jpg
strace find . -maxdepth 1 -type f -name *.jpg 2>&1 | grep jpg
execve("/usr/bin/find", ["find", ".", "-maxdepth", "1", "-type", "f", "-name", "bar.jpg", "foo.jpg"], [/* 62 vars */]) = 0
...


How do I remove Skype 4.3 from Ubuntu 14.04 LTS (32-bit)

My case is something different, here i run two commands :-

dpkg --get-selections | grep 'skype'

output is :- skype-bin:i386                 install

So, to remove i run :-

sudo apt-get --purge remove skype-bin:i386

and after that i remove ".Skype" from home directory


Installing Oibaf's Drivers for AMD R5 M430 on Ubuntu 16.04

With your instructions you linked, they seem kind of crazy, but really they are very easy to install.  From a terminal window, run the following lines:

sudo add-apt-repository ppa:oibaf/graphics-drivers
sudo apt update
sudo apt upgrade

It should download automatically and install and set up the driver for you.

Hope this helps!


No, it's not outdated - although the version from the regular manual page (man find instead of info find) is perhaps easier to understand:

find [-H] [-L] [-P] [-D debugopts] [-Olevel] [path...] [expression]

In the case of

find . -name "foo*"

. is a path (referred to as a FILE in the info page)
-name "foo*" is an expression

and the other options [-H] [-L] [-P] [-D debugopts] [-Olevel] are all empty.

Note that GNU find is somewhat unusual in making both path and expression optional; so the simple command

find

will find all files (and directories), recursively, starting from the current directory; for portability, you will often see people preferring to specify the current directory explicitly as . as in your example.


How to install PHP5.6 when using apache2.4.28 complile from source on Ubuntu 16.04?

I believe you have done several things wrong. First this line:

./configure --prefix=/etc/apache2 --enable-mods-shared="reallyall" --enable-mpms-shared="all"

should have been:

./configure --prefix=/usr/local/apache2" --enable-mods-shared="reallyall" --enable-mpms-shared="all"

Your --prefix option during compile is wrong. I advice you remove it and fix that --prefix option

How to compile:

Download the source file for the version you want
Install build requirements:

sudo apt-get install build-essential

Install Zlib for compresssion with these steps:

cd /usr/local/src
wget http://www.zlib.net/zlib-1.2.8.tar.gz
tar xvfz zlib-1.2.8.tar.gz
cd zlib-1.2.8/
./configure --prefix=/usr/local
make

Compile apache with these steps:

Move the downloaded apache source file into /usr/local/src, then

cd /usr/local/src
tar xvfz httpd-2.4.10.tar.gz
cd httpd-2.4.10/
sudo ./configure

If you get APR error run :

sudo apt install libapr1-dev libaprutil1-dev

If successful run:

sudo make
sudo make install

Check to see if it's working:

sudo /usr/local/apache2/bin/apachectl start

put http://localhost or your machine ip address and you should see a message saying "It works!"

Enable boot startup:

sudo cp /usr/local/apache2/bin/apachectl /etc/init.d/apache2
sudo chmod +x /etc/init.d/apache2

Add to default runlevels:

sudo /usr/sbin/update-rc.d -f apache2 defaults

Source:

http://www.linuxpathfinder.com/install-apache-from-source-on-ubuntu


Packaging is too broad and changing fast. The documentation is always lagging back.

I'm not quiet familiar with such type of apps. But I may able to point you where you can start.

dh/debhelper has many modes, if it can't detect your project you can enforce a mode using --with ... option in debian/rules file.
Learn by real examples, open https://packages.ubuntu.com/ and search for php based project like Wordpress.

Click on the main package.
On the package page, look to right you should find the original source archive .orig.tar.xz and Debian packaging files .debian.tar.xz .


How to change the refresh rate at which the network manager updates the wireless access points

The "refresh rate" (scan interval) is hardcoded in the source code of network manager. The interval is some value between 20 and 120 seconds. Some heuristics decide when to scan more often and when less often. There seems to be no way to configure the interval other than patching the source and compiling.

See the relevant source file of network manager version 0.9.0 and search for interval.

There is a lot of discussion on the internet about allowing users to change the interval. The developers do not want that. They argue that users might set the interval too low and that will cause grievance for all members of the wireless network, not only for the user alone.

I am sorry I cannot provide you a link to that discussion. I forgot to save the link and now I couldn't find it again. You will have to take my word for it.

So it is not possible to configure the refresh rates, and it seems that it will not happen anytime soon.

You can trigger a scan manually using the following command:

sudo iwlist eth1 scan

Replace eth1 with the name of your wireless device. Use iwconfig to find out the name of your wireless device.

You can list the found networks using nm-tool.

You can observe the activity of your wireless device using iwevent.


Xdotool does not minimize terminal window when using in Startup Application when pc boots?

Here is a workaround that uses xdotool: Create an auxiliary startup script, that will be executed within a gnome-terminal, which is opened by Startup Applications. The script will execute some commands and will minimize the active window. Please read carefully the comments within the script's body bellow.

1. Install xdotool: sudo apt update && sudo apt install xdotool

2. Create auxiliary executable script file. Let's assume it is placed in user's $HOME directory and it is called run-and-minimize:

touch "$HOME/run-and-minimize"
chmod +x "$HOME/run-and-minimize"

The script should look as this:

#!/bin/bash

# Put your commands here, for example:
echo 'The current time is:'

sleep 2                                            # Adjust this value. The mouse should not be moved while this period otherwise some other window could become active!
xdotool windowminimize $(xdotool getactivewindow)  # Minimize the window

# Or put your commands here, for example:
while true; do printf '%(%c)T\r'; done &           # Some commands must be pushed into the background (`&`) to be successfully interrupted with keep open the terminal window.

exec bash                                          # Keep the window open after the above commands are finished or interrupted

3. Open Startup Applications and create a new entry. Its command should be:

gnome-terminal -x sh -c 'exec $HOME/run-and-minimize'

I also successfully have tested:

gnome-terminal -x bash -c 'exec $HOME/run-and-minimize'

References:

What is the command to minimize the gnome terminal?


It's not clear to me how deleting both operating systems would break the BIOS.  I presume you are saying that when starting up the laptop, F2 gives you a blank screen and not the BIOS / EUFI menu.

Assuming the obvious and that F2 does indeed cause entering the BIOS on your hardware and that you have pushed F2 a LOT during the powerup phase, probably the quickest way to move this problem forward would be to reset the BIOS to factory defaults if that feature is available on your laptop.  Or, install the latest supported BIOS via the vendor's flash procedure. Needless to say, this assumes that the monitor is working and will display SOMETHING.  I'm skeptical  because what you did should have gotten you as far as a no bootable operating system found error message. It could be that the screen just coincidentally quit working for whatever reasons.

That said, since you deleted both operating system partitions you will most likely have to re-install both from scratch.


How to get username (only) of the Apache?

The username and group ID of Apache2 is set by a directive in the configuration file.  This is located at in the file /etc/apache2/envvars.

You can examine that file and notice that by default, as you suspected, it's www-data.  Also, as you can see from the file the usergroup is set by default to the same name.

Now that you have the effective user of apache you can use this to change the files to that user:

$ sudo chown -R www-data:www-data myhtmldirectory

That will change the user and group owner of myhtmldirectory and all files and directories below it to www-data.

If you want to just change the user owner, drop the :www-data part which is for group.

A very sure way of having the correct usrID is:

$ awk -F= '$1 == "export APACHE_RUN_USER" {print $2}' /etc/apache2/envvars

This line will parse the envvars file for the current session that was started.


Computer not booting after update installed!

Could you give some more info on the things that you've already tried?

otherwise try to boot into a live cd or usb, this already gives you back some control of your machine.

Try repairing the installed packages from here:

https://help.ubuntu.com/community/LiveCdRecovery#Update_Failure

If that doesn't fix the issue, drop into a shell and check the available log files.

We should be able to move on from there.

\_/>


How to change shortcut to switch windows in Kubuntu?

The actions you're looking for are named Walk Through Windows... They are located in System Settings at Shortcuts | Global Shortcuts | KWin.

Note: Search for "walk" or "window" instead of "tab", shown in the screenshot. Searching for "tab" works on my computer because I have it set to use alt+tab, while on your computer, they're "misconfigured".

You can also configure the shortcuts in the Task Switcher settings, located at Window Management | Task Switcher.


Set up Email accounts for virtual servers on VPS

Here it is an example

If you use sendmail, place your domains in /etc/mail/local-host-names and /etc/mail/generics-domains.
After that in the /etc/mail/genericstable add your user's emails in this format:

myuser myemail@domain.dom
myotheruser myotheremail@otherdomain.dom

In the /etc/mail/virtusertable add the reversing:

myemail@domain.dom myuser
myotherdomain@otherdomain.com myotheruser

In the /etc/mail/sendmail.mc use this config, changing the domain name to your primary domain:

VERSIONID(`setup for linux')dnl
OSTYPE(`linux')dnl
define(`confDOMAIN_NAME', `myprimarydomain.dom')dnl
define(`SMART_HOST',`myprimarydomain.dom')dnl
define(`SMTP_MAILER_MAXMSGS',`40')dnl
define(`confDEF_USER_ID',``8:12'')dnl
define(`confTO_CONNECT', `1m')dnl
define(`confTRY_NULL_MX_LIST',true)dnl
define(`confDONT_PROBE_INTERFACES',true)dnl
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
define(`PROCMAIL_MAILER_FLAGS', `mSDFMhun')dnl
define(`ALIAS_FILE', `/etc/aliases')dnl
define(`STATUS_FILE', `/var/log/mail/statistics')dnl
define(`UUCP_MAILER_MAX', `2000000')dnl
define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl
dnl define(`confPRIVACY_FLAGS', `goaway,nobodyreturn,authwarnings,novrfy,noexpn,restrictqrun')dnl
dnl define(`confPRIVACY_FLAGS', `goaway,nobodyreturn,authwarnings,noexpn,restrictqrun')dnl
define(`confAUTH_OPTIONS', `A')dnl

DAEMON_OPTIONS(`Port=submission, Name=MSA, M=Ea')dnl
DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl
dnl DAEMON_OPTIONS(`Port=smtps, Name=TLSMTA, M=s')dnl

dnl INPUT_MAIL_FILTER(`greylist',`S=local:/var/run/milter-greylist/milter-greylist.sock')dnl
dnl INPUT_MAIL_FILTER(`greylist',`S=inet:3333@localhost, F=T, T=S:1m;R:2m;E:3m')dnl

define(`confMILTER_MACROS_CONNECT', confMILTER_MACROS_CONNECT`,{daemon_port}')dnl
define(`confMILTER_MACROS_HELO', confMILTER_MACROS_HELO`,{verify},{client_resolve}')dnl
define(`confMILTER_MACROS_ENVRCPT', confMILTER_MACROS_ENVRCPT`,{client_resolve}')dnl
define(`confMILTER_MACROS_CONNECT', `H, j, _, {daemon_name}, {daemon_port}, {if_name}, {if_addr}, {client_addr}')dnl
define(`confMILTER_MACROS_HELO', `{verify}, {cert_subject}')dnl
define(`confMILTER_MACROS_ENVFROM', `i, {auth_type}, {auth_authen},{auth_ssf}, {auth_author}, {mail_mailer}, {mail_host}, {mail_addr},{md_tag}')dnl
define(`confMILTER_MACROS_ENVRCPT', `{greylist}')dnl

INPUT_MAIL_FILTER(`spamassassin', `S=unix:/var/run/spamass-milter/spamass-milter.sock, F=, T=C:15m;S:4m;R:4m;E:10m')dnl
define(`confMILTER_MACROS_CONNECT',`t, b, j, _, {daemon_name}, {if_name}, {if_addr}')dnl
define(`confMILTER_MACROS_HELO',`s, {tls_version}, {cipher}, {cipher_bits}, {cert_subject}, {cert_issuer}')dnl
define(`confMILTER_MACROS_ENVRCPT',`r, v, b, Z')dnl

define(`confAUTH_MECHANISMS', `LOGIN PLAIN  DIGEST-MD5 CRAM-MD5')dnl
TRUST_AUTH_MECH(`LOGIN PLAIN  DIGEST-MD5 CRAM-MD5')dnl

define(`confCACERT_PATH',`/etc/pki/tls/certs')dnl
define(`confCACERT',`/etc/pki/tls/certs/ca-bundle.crt')dnl
define(`confSERVER_CERT',`/etc/pki/tls/certs/sendmail.pem')dnl
define(`confSERVER_KEY',`/etc/pki/tls/certs/sendmail.pem')dnl
define(`confCLIENT_CERT',`/etc/pki/tls/certs/client.crt')dnl
define(`confCLIENT_KEY',`/etc/pki/tls/certs/client.key')dnl
define(`confCRL',`/etc/pki/tls/certs/revoke.crl')dnl
define(`confTLS_SRV_OPTIONS', `V')
define(`confTO_IDENT', `0')dnl
FEATURE(`no_default_msa',`dnl')dnl
FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl
FEATURE(`genericstable',`hash -o /etc/mail/genericstable.db')dnl
GENERICS_DOMAIN_FILE(`/etc/mail/generics-domains')dnl
FEATURE(redirect)dnl
FEATURE(always_add_domain)dnl
FEATURE(use_cw_file)dnl
FEATURE(use_ct_file)dnl
FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnl
FEATURE(`access_db',`hash -T -o /etc/mail/access.db')dnl
FEATURE(`blacklist_recipients')dnl
EXPOSED_USER(`root')dnl
FEATURE(`accept_unresolvable_domains')dnl
dnl FEATURE(`dnsbl', `relays.ordb.org', `Rejected - see http://ordb.org/')dnl
dnl FEATURE(`dnsbl', `bl.spamcop.net')dnl
dnl FEATURE(`dnsbl', `sbl.spamhaus.org')dnl
dnl FEATURE(`dnsbl', `blackholes.mail-abuse.org')dnl
dnl FEATURE(`dnsbl', `relays.mail-abuse.org')dnl
LOCAL_DOMAIN(`myprimarydomain.dom')dnl
FEATURE(masquerade_envelope)dnl
FEATURE(masquerade_entire_domain)dnl
MASQUERADE_DOMAIN(localhost)dnl
MASQUERADE_DOMAIN(localhost.localdomain)dnl
MAILER(smtp)dnl
MAILER(procmail)dnl
define(`confLOG_LEVEL', `14')dnl

When you finished, restart sendmail.


How to installing Ubuntu 16.04 LTS 64-bit to Intel Joule 570x with attached USB HD?

I've hit this GRUB2 bug before and down-graded to grub-legacy with ubuntu12(LTS). You might find it so easy to boot over USB using GRUB2 since the introduction of microcode-auto-updates in ubuntu16.04+ Have you tried booting with YUM-bootloader using Fedora or centOS7. I find the tools are more user friendly for booting linux using external-HDs. I'm also looking for that magic-sugar somewhere in the boot-flags to turn off ucode checking. I found that Bodhi-linux just ignores ucode-flag checking and boots right up into x64-bit mode. Some ubuntu-distributions won't boot at all over USB which is a bust for me cos I have no internal CDR. Have you also tried setting the BOOT_STUB firmware using a boot-utility scripts like firmware-utility-sh? See github.com/MrChromebox/scripts