I've got exactly the same problem with pwmconfig and decided to implement it on my own.

Try this utility https://github.com/ichiriac/ubuntu-smart-fan, it's based on lm-sensors and it will manage the fan speed and log them.

At start you can run it as a monitor in order to seed the fan behavior.

After calibrating the temperature and thresholds you will be able to run it as a daemon on your server, and retrieve a log with fan events


How do I mount a brand new logical volume?

Did you create a filesystem for the lvm???
sudo mkfs -t ext4 /dev/mapper/hdd--vg-hdd--lv1
(ext4 or whichever filesystem you choose to use)


How to remap 'Caps_Lock' key to 'w' in Wayland

there is a good guide here.. https://brokkr.net/2019/01/11/customize-your-keyboard-layout-and-have-it-work-under-wayland/
Tested in vanilla GNOME 3.38.1 Wayland.
Result: The remapping works form boot,login screen,etc. not like xmodmap which is once the user logs in. Also in the console the remap is effective.
As the above link/guide explains I have followed it. the steps are below.
If any of the package is not installed while running the commands, install them.
sudo evtest
[admin@ADMIN ~]$ sudo evtest
[sudo] password for admin:
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0:  Power Button
/dev/input/event1:  Lid Switch
/dev/input/event2:  Power Button
/dev/input/event3:  AT Translated Set 2 keyboard
/dev/input/event4:  Toshiba input device
/dev/input/event5:  PC Speaker
/dev/input/event6:  Compx 2.4G Receiver
/dev/input/event7:  Compx 2.4G Receiver
/dev/input/event8:  Compx 2.4G Receiver System Control
/dev/input/event9:  Compx 2.4G Receiver Consumer Control
/dev/input/event10: ETPS/2 Elantech Touchpad
/dev/input/event11: Video Bus
/dev/input/event12: Video Bus
/dev/input/event13: HDA Intel PCH Mic
/dev/input/event14: HDA Intel PCH Headphone
/dev/input/event15: HDA Intel PCH HDMI/DP,pcm=3
/dev/input/event16: HDA Intel PCH HDMI/DP,pcm=7
/dev/input/event17: HDA Intel PCH HDMI/DP,pcm=8
/dev/input/event18: HDA Intel PCH HDMI/DP,pcm=9
/dev/input/event19: HDA Intel PCH HDMI/DP,pcm=10
Select the device event number [0-19]:

I Choose 6 as it is my wireless keyboard.

Then press Caps_Lock key, some of the output
type 4 (EV_MSC), code 4 (MSC_SCAN), value 70039

note down the value 70039
Create a text file /etc/udev/hwdb.d/10-my-modifiers.hwdb with below content
evdev:input:b0003*
KEYBOARD_KEY_70039=w  # bind capslock to w

then run below commands
sudo systemd-hwdb update
sudo udevadm trigger

Instantly the Caps_Lock key changed to w, I can type W with shift key.
It took some time to understand this line evdev:input:b0003* in the text file but document suggests 0003 works just fine.


apt-get install python-xxx vs pip install

For the archives, after much trial and error this is what I've found (in retrospect, some bits make sense, others quite confusing).

If you sudo apt-get install python-xyz, the package will appear in pip list. Of course you can import it in python, but it doesn't appear in pip.get_installed_distributions(). (Obviously the opposite is not true. i.e. if you do pip install xyz it will not appear in your apt/synaptic)
After sudo apt-get install python-xyz if you do pip install xyz what happens depends on the version of pip you have.

OLD v1.5.6 (the current version shipping on Ubuntu PPA):

This version of pip (1.5.6) will just install a new copy of xyz in a different location. You end up with multiple copies and this causes a huge mess. e.g:

numpy from apt-get is 1.8.2 at /usr/local/lib/python2.7/dist-packages
numpy from pip is 1.10.4 at ~/.local/lib/python2.7/site-packages

If I do pip install numpy yet again, it downloads and installs it again. So you could end up with many different versions which you can't really access. I can do pip install numpy 5x times, and then I can do pip uninstall numpy 5x times! Obviously you can pay attention to not do that, but sometimes other software's install scripts are a bit careless and can mess things up. Unbelievable that Ubuntu officially ships this version of pip.

NEW v8.0.2 (the current version on pip itself):

newer versions of pip (e.g. 8.0.2 which is on pip) will refuse to install the same package saying requirement is already met. So you cannot install a new version. This is good behaviour (more on getting this version of pip later).
In this case you can only upgrade, i.e. install with -U flag.
However when you try to pip install -U xyz on a package installed with sudo apt-get, you'll get permissions error because the apt-get was installed in /usr/ and you need root access to write there.
So AFAIK you have no choice but to sudo pip install -U xyz to be able to update it. In this case pip installs the latest package into the same place as sudo apt-get wrote it. e.g. in my case /usr/local/lib/python2.7/dist-packages. This is good.
It's also worth pointing out that the packages on apt are often quite older than those on pip (e.g. numpy v1.8.2 vs 1.10.4, scipy 0.14.1 vs 0.17.0, ipython 2.3 vs 4.0.3, spyder 2.3.5 vs 2.3.8)

So my current thoughts are to get the big things with sudo apt-get, e.g.
sudo apt-get install python-numpy python-scipy python-matplotlib ipython ipython-notebook python-pandas python-sympy python-nose spyder

and then update them (or at least some of them) with sudo pip install -U.

NB It seems quite important to get the new pip from pip (very meta)

sudo apt-get install python-pip
sudo pip install -U pip

P.S. I am aware of virtualenv but I have no need for it right now. I need only one development environment.

And here is a little script to dump a list of packages, version and path (but only works on pip installed modules, not those from apt-get)

import pip
pp = pip.get_installed_distributions()
for p in sorted([p.location+"\t"+p.project_name+" ("+p.version+")" for p in pp]):
    print p


Why does ./a.out work, but a.out doesn't?

It'll depend on what you $PWD is.
./a.out tells the system to look for the a.out in the present directory as you've provided a path for the file a.out
a.out will only work if $PWD (your present working directory) happens to be in $PATH or the directories searched for binaries.
Your current directory is only searched if it's listed in the search fields, which reduces mistakes & potentially improves security by avoiding mistakes.


The issue is likely that your Windows VNC client does not support the connection encryption mechanism that the Vino server is trying to enforce - see VNC accessible from non-linux machines only with encryption disabled.

You should be able to work around that by turning off the default require-encryption setting

gsettings set org.gnome.Vino require-encryption 'false'

If your session is exposed to a public network, i.e. you are using VNC for anything outside your own NATed LAN it is advisable to keep the actual VNC port closed and/or firewalled, and tunnel the connection over SSH.


I don't think you can have docky on both monitors. However, you can move it to the monitor where you want it.
The site https://answers.launchpad.net/do/+question/60850 says:

Right click "Docky"
Click "Settings"
Notice "Drag to Reposition" help cue at the bottom?
Drag you dock while in "Settings" mode to whichever desktop you want.

Maybe you will find something useful here How to make the most of dual monitors?


Stacked Launcher Item Double Click Behaviour on Alt-tab

The shortcut to spread multiple windows that is Alt+` (that's the same key as the ~, on the top left)
You can use it directly with the current program, or use it with Alt+Tab after your chosen program is highlighted.
Firefox example:


You may want to consider adding the following repository which delivers the latest stable versions of Google talk plug-in for linux.

Use Software Sources tool to add this.

deb http://dl.google.com/linux/talkplugin/deb/ stable main

then refresh your software repositories and install/update the plugin

use the following command to add the authentication key:

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


You can check if the script is being run inside screen, and if not, re-execute it in screen:

#! /bin/bash

[[ -z $STY ]] && screen -S vpn -d -m "$0" "$@"

if [ "$1" = "seed-rl" ] ;
then
    cd "/home/robbiel811/vpn configs"
    echo password | sudo -S openvpn --config seed-rl.ovpn
fi

...

STY is a variable set by screen, which we can use to detect if we're running in it. $0 is the current command being executed, and $@ all the arguments.

Also, consider simplifying your script using associative arrays:

#! /bin/bash

[[ -z $STY ]] && screen -S vpn -d -m "$0" "$@"

declare -A configs
config['seed-rl']='seed-rl.ovpn'
config['atl10']='Atlanta-10.ovpn'
# ... etc.
config['nyc11']='NewYork-11.ovpn'

cd "/home/robbiel811/vpn configs"
echo password | sudo -S openvpn --config "${config[$1]}.ovpn"

And using NOPASSWD sudoers rules instead of storing your password in clear text.


SNI Missing Warning when executing Python script with Datadog API

The answer was to remove the warnings by adding import... directly in the python script, as explained in this answer on stackoverflow.com.


Can I retrieve files from trash after it has been emptied?

Maybe...

I suggest you give extundelete a try. (Assuming that you use an ext partition)

  extundelete is a utility that can recover deleted files from an ext3 or ext4 partition. The ext3 file system is the most common file system when using Linux, and ext4 is its successor. extundelete uses the information stored in the partition's journal to attempt to recover a file that has been deleted from the partition. There is no guarantee that any particular file will be able to be undeleted, so always try to have a good backup system in place, or at least put one in place after recovering your files!

As the site warns, the more writes to the filesystem, the less likely you'll get any files. You probably want to unmount your partition immediately and then run the program.


The command should be:

echo $PATH

not just $PATH.

Here are the outputs of a test just done by me:

Only $PATH:

$ $PATH
-bash: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games: No such file or directory

Now echo $PATH:

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


You could just use xrandr at startup to turn off the other output

find the name of the output you want turned off at the by typing xrandr at the command prompt.

Press Super(Win)Key Type startup application
Go to add, Give it a name and in command put : xrandr  --output LVDS1 --off   (replace LVDS1 with the output you want to disable)


Follow these steps:

Download the three files as mentioned in the bottom Ref:

When running kernel 3.10:

procfs.patch
vmblock.3.10.patch

When running kernel 3.11, apply the following extra patch as well:

vmblock.3.11.patch

Thereafter, execute the code making necessary modifications:

$ cd /usr/lib/vmware/modules/source
$ sudo tar -xf vmnet.tar
$ sudo tar -xf vmblock.tar
$ cd vmnet-only
$ sudo patch -p1 < <Patch path>/procfs.patch
$ cd ../vmblock-only
$ sudo patch -p1 < <Patch path>/vmblock.3.10.patch
$ sudo patch -p1 < <Patch path>/vmblock.3.11.patch
$ cd ..
$ sudo tar -cf vmblock.tar vmblock-only
$ sudo tar -cf vmnet.tar vmnet-only
$ sudo vmware-modconfig --console --install-all

Ref: the solution by Rainmaker52.


Drag and drop freezes when moving a file from desktop to a folder using Nautilus. (ubuntu 16.04)

Check out the output of this command:

echo $XDG_SESSION_TYPE

If it says Wayland then that is probably the issue. You can try XORG.

On the off chance that someone on Pop! OS is reading this, logout and use the gear icon to select Pop and not Pop on Wayland.


Unable to install OpenVPN on Ubuntu 18.04 due to initscripts dependency

Do this:

  $ apt-get remove openvpn
  $ rm /etc/apt/sources.list.d/openvpn-aptrepo.list
  $ apt-get update
  $ apt-get install openvpn

Taken from here https://bugs.launchpad.net/ubuntu/+source/openvpn/+bug/1778482


How to move output of find command to another directory?

You don't need any pipe-ing, and xargs to make the filenames as arguments for mv.

Just use mv within the -exec action of find:

find /home -type f -name '*.pdf' -exec mv -t /destination {} +

Replace /destination with the actual destination directory
find will handle all possible filenames
find will handle ARG_MAX by passing as many filenames in one go so that does not trigger ARG_MAX
If you are looking for only files (presumably in this case), limit the search vector by adding -type f
Quote the glob expansion, '*.pdf', so that shell does not expand them beforehand as find will handle them

If for some weird reason, or for learning purpose, you must use pipe-xargs:

find /home -type f -name '*.pdf' -print0 | xargs -0 mv -t /destination


Installer freezes randomly, mouse stops moving, ubuntu not installing

Okay, I managed to know the cause of the problem and fixed it too. This all was happening because of the Nvidia card that I have, and to fix it, I simply added nomodeset parameter before install. More info here: https://medium.com/@peterpang_84917/personal-experience-of-installing-ubuntu-18-04-lts-on-xps-15-9570-3e53b6cfeefe

Adding nomodeset parameter:
 1. Boot with your USB
 2. Now you will see 3-4 options with *Ubuntu option as the first option
 3. Now highlight *Ubuntu and click e, and add nomodeset after the words quiet splash
 4. Press F10 and install Ubuntu as you would do it.

You can install Nvidia drivers as you boot into the system and open the Software & Updates app.

Once this is done follow 2nd step again and now instead of nomodeset add nouveau.modeset=0
And finally when you boot into the system:
 1. Open the terminal and type sudo gedit /etc/default/grub
 2. Change the line GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" to GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nouveau.modeset=0".
 3. Press save and close the window
 4. Finally run sudo update-grub2
 5. Profit!


A couple of suggestions:

Specify your hardware. What CPU? What GPU? etc.
Do you already have some OS (Windoze) running on your system? If yes, why don't you try installing Ubuntu in a VirtualBox VM, play with it, get comfortable and then move onto installing it on real hardware. NOTE: this is not meant to imply that installing Ubuntu directly onto some hardware is tough.

HTH!


Using Ubuntu 12.04 with Chrome Stable/Beta and watching youtube gives be a black bar at the top

I have found out a solution, to people with this problem I think the chrome flash plugin is bugged and if you only have one flash to choose from in "chrome://plugins" you will need to install the external library of ubuntu. Install that and there should be an option in chrome. Disable the one with "/opt/google/chrome/PepperFlash/libpepflashplayer.so"


redis-server - What are the differences between rwky/redis and chris-lea/redis-server?

I know this is old, but considering it never received an answer:

https://launchpad.net/~chris-lea/+archive/ubuntu/redis-server is a (somewhat) currently maintained launchpad build of redis while https://launchpad.net/~rwky/+archive/ubuntu/redis seems to be non-existent these days meaning it was probably someones fork to either fix their own bugs, or possible to do work and submit the changes back upstream.

~chris-lea seems to maintain many PPAs for different web related packages, without actually being associated with the packages development, which points to someone who probably for work or the like needs to make sure there is simple access to build-able code, hence the first P of PPA (Personal).

TL;DR - Use the first one - it works.


Need help installing 11.10 on an Asus eee 1015PX

This was resolved by re-downloading the .iso so that the MD5SUM was correct and then reformatting my USB key and trying repeatedly to install. Looks like I have a faulty USB drive. Lesson learnt, don't install an OS with a faulty USB drive. I'll go buy a new one now I think. Thanks for all the help One Zero and C.S.Cameron, you guys are great.


Change Size of Shell Ubuntu Server 16.04

I see two options here. One is to simply run

stty cols 60

while assuming 60 is the number of characters you can see before they are obstructed by the broken screen. Change accordingly. Unfortunately that solution does not seem to work for all commands, but for most I tried.

Another options would be to run tmux. Then, give tmux the following command:

set-window-option force-width 60

Again, assuming 60 is the desired width. To enter a tmux command you have to type ctrl-b : first and then enter the command at the prompt that appears.


Need to install eclipse jee but have a previous version already installed

I met similar situation, I have downloaded the desired version from Eclipse download site, then untar it to ex /opt/EclipseTomcat as administrator while chmod of eclipse file as execute   "chmod +x"  then try to write ./eclipse while the terminal on the path of eclipse

Here you can have multi versions of Eclipse
You may also need to create .desktop file for your eclipse to make eclipse appears in the launch unity.

You may google about each task by yourself


It is not advisable to embed tmux as nested session in byobu. Your configuration is correct and works. But not as session in byobu.


Having trouble installing Mimio Studio smartboard software

As a suggestion of one of my students' parent who uses Linux professionally, I did

$ ./mimio-notebook
 and got
 Gtk-Message: Failed to load module "overlay-scrollbar"
 Gtk-Message: Failed to load module "gail"
 Gtk-Message: Failed to load module "atk-bridge"
 Gtk-Message: Failed to load module "unity-gtk-module"

 Which I am not sure if that tells me about the next step, but one of my coworkers found a site,  http://www.edugeek.net/forums/nix/132648-mimio-ubuntu-13-10-a.html , which outlines the details on how to fix, and it worked!

FIX:
 1) $ sudo apt-get install libc6:i386 libgcc1:i386 gcc-4.6-base:i386 libstdc++5:i386 libstdc++6:i386
 2) $ sudo apt-get install -f
 3) $ sudo chown -R youruser:youruser /home/youruser/.mimio

 I thought doing
 $ sudo apt-get install -f
 during the install would cover these dependncies, but I guess not.
 still can't figure out why I was able to install in VMs all day, but could not install on my host OS, but it works now, so great!


Usually it's a dpkg process, so sudo lsof | grep 'dpkg/lock'

The output will be something like this:

apt-get   23126                   root    4uW     REG               8,18            0    3277485 /var/lib/dpkg/lock

And in my case, the apt-get process is holding the lock.  pid 23126.

If nothing comes back as holding it open, then someone may have interrupted a package download or install and it wasn't able to clean up the lock.

If you want info on that process you could ps -f -p 23126

Or, putting it all together, ps -f -p $(sudo lsof | grep 'dpkg/lock' | awk '{print $1}')

Or use pstree and show the parents:

pstree -s $(sudo lsof | grep 'dpkg/lock' | awk '{print $1}')


Is it a low resolution? If so you're graphics card driver is probably not working or loaded into the kernel. If you have an nvidia card add the nvidia apt repository, install drivers, and reboot.
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt install nvidia-driver-430 # pick the version you want
sudo reboot now

If that doesn't work maybe reinstall your kernel.
uname -r # find out your current kernel
sudo apt install --reinstall linux-headers-<your kernel>


How to install H.265 / HEVC codec on Ubuntu Linux?

There is also a PPA for libde265 GStreamer integration. With that installed one can playback H.265 with all GStreamer applications (Browsers, Totem, etc.).

sudo apt-add-repository ppa:strukturag/libde265
sudo apt-get update

Now try playing back a .mkv containing HEVC/H.265 content using any GStreamer-aware player (e.g. "totem"). This should detect the missing codec and prompt to install the libde265 GS plugin (make sure to select the 64bit or 32bit version depending on your architecture).

You can also install the corresponding GStreamer plugin directly:

sudo apt-get install gstreamer0.10-libde265

Or for GStreamer 1.0 applications:

sudo apt-get install gstreamer1.0-libde265

There is also a VLC plugin available:

sudo apt-get install vlc-plugin-libde265

Details here: GStreamer plugin for 4K H.265/HEVC video streaming


How can I replace Ubuntu branding with my own?

If you just wanna change the look of Ubuntu then check Super Boot Manager

If want to customize your distribution use relinux

get the latest version from here
The archive file contains two folders and an installation guide; the two folders must be merged with the original etc and usr folders. Change into the directory you unpacked the two folders to, in my example it is the /home/MYUSER/Downloads folder:

cd /home/MYUSER/Downloads
Copy the downloaded folders to the original ones:

sudo cp -R usr /

sudo cp -R etc /

Relinux should now be properly installed. You can find further documentations in the /usr/share/doc/relinux/README file.
Install Software

To create yourself a unique distributable Ubuntu DVD you need to install the software you want on it on your current system. Do this by opening Synaptic Package Manager and use the search bar to find the packages you want to install.  Click the checkbox right next to the package and select  Mark for Installation.

Most packages will need to install more packages they're dependent on, you will need to Mark those too.

After you have selected all the packages you want, click the Apply button.

All software you have installed on your current system will later automatically be transferred to the iso-image of you DVD. Make sure that the content you want on your DVD does not exceed the size of 4GB! Otherwise Relinux will not produce an .iso file out of the filesystem
Use Relinux

Relinux uses a config file for every command which you better edit before you use the program for the first time. Leave the original config as backup and create a new one in a specified location (I'll do it in my personal folder):

cd /home/MYUSER
cp /etc/relinux/relinux.conf ./relinux.conf
Next direct Relinux to the new configuration file:

sed -i 's:EXCLUDES="\(.*\)":EXCLUDES="\1 'readlink -f ./relinux.conf'":g' ./relinux.conf

It is highly recommended to have a look at all the options in the config file and adjust them to your liking. If you do not exclude enough files to bring the squashed file system to a maximum of 4 GB, Relinux will not create an image out of it. Additionally there are other helpful options like the choice of a boot splash screen or the naming of the actual image.

Relinux' actual control is only possible through the command line. It generally has the same options as Remastersys at the moment except for the lack of an explicit backup command, which however can be accomplished by not excluding the home folder:

sudo relinux clean [configfile] - Cleans the working directory of unimportant process stuff
sudo relinux fullclean [configfile] - Cleans the working directory completely, including the .iso image, the checksum and all other files
sudo relinux squashfs [configfile] - Creates the squashed file system to build the iso-image out of. This is the necessary step to take before actually creating an iso-image. This can also be used to retroactively add files to the file system before creating the images
sudo relinux onlyiso [configfile] - Creates the actual iso-image which can be used in a virtual machine or burned on a CD to boot your custom system from (before choosing this option a file system must have been created using squashfs)
sudo relinux iso [configfile] - Creates the squashed file system and the .iso image in one command

Since you most likely want to use the image you create for burning it on a DVD you should pay attention to the summed size of software and files you add to it.

Every file created with Relinux will be placed in its temporary directory, which by default is /home/relinux. That counts for filesystems as well as for images (e.g. custom.iso by default). Be sure you move your image to some other place since this temporary folder will be emptied on the use of fullclean.
Add Files to a Non-Backup Filesystem Without home-folder

If you have a home folder that is to large to put it on a DVD but still have files that need to be on the image, there are two ways you can put them on it; one has to be dealt with before you create the file system and one that can also be done after it has been created.

a. /etc/Skel Folder

To add files to your non-backup image before you create the file system, just put them into the /etc/Skel folder to let the files appear in your home folder on the image afterwards. The /etc/Skel folder is responsible for populating the home folder on every installation and every adding of a new user.

b. Squashfs-tools

Squashfs-tools is package that allows you to build and uncompress but also to add files to squashed filesystems, which are also used to build the filesystem on Remastersys and Relinux. They can be used to append files to already created filesystems. Install them by entering the following into a terminal:

sudo apt-get install squashfs-tools

The squashfs-tools offer two commands to use, one to create filesystems or add files to existing and one to uncompress them. The first one is

mksquashfs

And its basic structure is the command followed by one or more source files or folders and the path to the squashed file (e.g. mksquashfs /home/MYUSER/Desktop/bla /home/MYUSER/Desktop/ultimate.squashfs).

The last folder in the path of the source file will be the root of the squash filesystem unless you specify otherwise with an option, meaning it will not be directly displayed itself.

The same command is also used to append files to existing squash filesystems, which is what we basically want.

To do so, just pick the existing filesystem as the filesystem to create and the files to append in the input files' path.

Unfortunately, it is not possible to merge the two filesystems, which is why we circumvent this problem by creating a folder called extrafiles (could be any name) in any folder and choose this upper folder as the one to add to the system (it will become the root folder and the folder inside, the one we want, will be displayed along the files in the filesystem's root folder).

Add the files you want on your DVD to the extrafiles folder. Following would be a possible way to add files to the filesystem:

mksquashfs /home/MYUSER/Desktop/bla /home/remastersys/remastersys/ISOTMP/casper/filesystem.squashfs

In this example the folder bla is the one containing the extrafiles folder.

See the man page for further switches and options.

To uncompress a squash filesystem, use following command:

unsquashfs

The most common way to use this command should be combined with the destination switch. Make sure to choose an unexisting directory as destination since it will give you an error otherwise.

unsquashfs -d /home/MYUSER/Desktop/unexistingdirectory /home/remastersys/remastersys/ISOTMP/casper/filesystem.squashfs


I got here because the OpenBoard website proposes that I download the Ubuntu 16 version, but I'm on Ubuntu 18, so when running
sudo gdebi openboard_ubuntu_16.04_1.5.4_amd64.deb

I was getting the message:
Dependency is not satisfiable: libavformat-ffmpeg56

You can see if that's your case with:
cat /etc/os-release

In my case, I'm on Ubuntu 18.
You can then check the appropriate version on the OpenBoard releases page.
I downloaded the .deb of Version 1.5.3 for Ubuntu 18 and successfully installed it with:
sudo gdebi openboard_ubuntu_18.04_1.5.3_amd64.deb

Oddly, when I open the application it tells me that there is a new version available and it sends me to the official download page where it re-proposes me to download the Ubuntu 16 version. Just ignore it.


I think that Midnight Commander will suite your needs as it needs terminal and provides FTP-client with dual/twin panels as FAR.

But it has one limitation which is serious nowadays. It does not support FTPS (FTP over SSL). There is a 3 year-old bug about that.

For plain FTP you can use Left (or Right) and FTP Link with the following syntax (from F1 help):

┌───────────────────────────── Help ─────────────────────────────┐
│FTP File System                                                 │
│                                                                │
│The FTP File System (ftpfs) allows you to manipulate files on   │
│remote machines. To actually use it, you can use the FTP link   │
│item in the menu or directly change your current directory      │
│using the cd command to a path name that looks like this:       │
│                                                                │
│ftp://[!][user[:pass]@]machine[:port][remote-dir]               │
│                                                                │
│The user, port and remote-dir elements are optional. If you     │
│specify the user element, the Midnight Commander will login to  │
│the remote machine as that user, otherwise it will use          │
│anonymous login or the login name from the ~/.netrc file. The   │
│optional pass element is the password used for the connection.  │
│Using the password in the VFS directory name is not             │
│recommended, because it can appear on the screen in clear text  │
│and can be saved to the directory history.                      │
│                                                                │
└────────────────────────────────────────────────────────────────┘

For SFTP (FTP over SSH) you should use SFTP link with syntax:

┌───────────────────────────── Help ─────────────────────────────┐
│SFTP (SSH File Transfer Protocol) filesystem                    │
│                                                                │
│The SFTP file system is a network based file system that allows │
│you to manipulate the files in a remote machine as if they were │
│local.                                                          │
│                                                                │
│To connect to a remote machine, you just need to chdir into a   │
│special directory which name is in the following format:        │
│                                                                │
│sftp://[user@]machine:[port]/[remote-dir]                       │
│                                                                │
│The user, port and remote-dir elements are optional. If you     │
│specify the user element, the Midnight Commander will try to    │
│login on the remote machine as that user, otherwise it will use │
│your login name. port - specify the port used by remote server  │
│(22 by default). If the remote-dir element is present, your     │
│current directory on the remote machine will be set to this     │
│one.                                                            │
└────────────────────────────────────────────────────────────────┘

On GUI session you can try Double Commander (clone of Total Commander), it is installable with sudo apt-get install doublecmd. It has FTP/FTPS and SFTP client, accessed from Network->FTP.


Switch from i3 to i3-gaps - cannot launch i3-gaps

You're using the wrong config location.

The correct location is :

  $HOME/.config/i3/config  or ~/.config/i3/config

not

  $HOME/.i3/config or ~/.i3/config

That is something that's mostly only used in the Manjaro i3 ISO.

Missing bar is due to missing dependencies such as i3-status. Check through your config and see which one is used there(might also be i3-blocks).

I'm writing this as an answer, so people that stumble upon this page can easily find the answer. Many tend to skip "unanswered" questions.


"xsp4 address already in use" and "access forbidden"

So after a few days of no luck I decided to have the server admin reboot the virtual server. I waited another day before giving things another try and luckily it looks like things are working now. Best of luck to you if you have a similar problem as mine.


Need help editing FSTAB and making my new HDD a system wide mount

This is getting too involved for comments.  But so far, there's not enough information to give a complete answer.  I have not had experience with permanently mounting USB drives, but I am assuming they are the same, if they do not get removed.  However, I also think that since there is a possibility that they might not be connected, that has to be considered, as you don't want your system to fail to boot due to this possibility.

Normally, a USB or other removable drive gets mounted automatically in the /media/username/x directory, where x is the label or UUID of the drive.  This appears to be what is happening with your drive, but it's hard to tell as you are not providing needed information.  You need to pay more attention, and be a little more resourceful.  For example, you still have not said whether any data is available anywhere in the /media/timemachine/server/TimeMachine directory.  And it would be nice to see the directory to see if the files are owned by root, which I am only guessing is the case.  If this is the case, then that is the problem that must be addressed.

But, if you don't see the files at all, then there is another problem.  But since there is a directory, I'm guessing the files are there, and are mounted.

There is a lot of information on Ubuntu.com and also here that you should look at.  It seems to say that, for NTFS drives, you should enter this in /etc/fstab:
UUID=1B9C57F11BBEC3DB /media/timemachine/server ntfs-3g defaults,locale=en_US.utf8 0 0
But I'm not sure how to handle a drive that's not available at boot time (I think you would have the option to continue, but I'm not sure).

Another option is to use mount or pmount, and possibly run it as a startup task.

Sorry I can't give absolute answers, but if you can provide concrete, useful information, I can probably help you work out the problems.  I just don't have any experience with external USB NTFS drives.

Edit - reply to first two comments from OP

OK, sorry about the USB assumption.  Is it more or less permanently connected?

I'm not sure if it's automatically mounted or not. The way I would tell would be to disable the line in /etc/fstab, and reboot to see if it shows up as mounted.  If it does, I don't know if it will need to be disabled or not; I'd probably not worry about it yet.

I believe I misled you about changing the permissions of the directory.  I did a little reading, and NTFS does not support file ownership/permissions like linux, so they are set by the mount options (at the time of mounting).  So, the entry in /etc/fstab is important.

If you want to make sure that your entry is the one being used, you could change the mountpoint to /mnt/timemachine (or anything else you prefer).  The name is not important.  What will happen is that the specified directory will become the root directory of your mounted drive, so in this case, I believe it may become /mnt/timemachine/TM.  Once mounted, it is like any other directory.

If you do this, you must create the mountpoint before trying to mount it.
sudo mkdir /mnt/timemachine; then change /etc/fstab from the previous line:

UUID=1B9C57F11BBEC3DB   /media/timemachine/server   ntfs-3g     defaults,nosuid,nodev,locale=en_US.UTF-8    0   0

to this:

UUID=1B9C57F11BBEC3DB /mnt/timemachine ntfs-3g defaults,locale=en_US.utf8 0 0

Now what?
Next, you can check the permissions.  Issue the command ls -l /mnt/timemachine.

The first set of 10 characters of the output is the permissions; the first column is type, like 'd' for directory, or 'l' for link.  Then there are 3 sets of 3 columns, for permissions:
User Group Everyone
 RWX  RWX   RWX for Read/Write/Execute.  So, if you see drwxrwxrwx, that means everyone can read or write to it. drwxr-xr-x means only the owner can write, but everyone else can read.  The execute bit for a directory allows you to see the directory.

Next, is the number of entries in the directories, then the owner and group.  If it says root  root, then unless it also has drwxrwxrwx permissions, you can't write to it.  I think you probably don't care about the owner so much as the permissions, unless you want to do some extra configuration which I can't help with.


How do I remotely patch openSSH to allow handshake obfuscation?

You can use Obfsproxy to to beat DPI, here's a screenshot explaining what it does:

Screenshot shamelessly taken from the TorProject site


To temporarily add a boot parameter to a kernel:

Start your system and wait for the GRUB menu to show (if you don't see a GRUB menu, press and hold the left Shift key right after starting the system).
Now highlight the kernel you want to use, and press the e key. You should be able to see and edit the commands associated with the highlighted kernel.
Go down to the line starting with linux and add your parameter foo=bar to its end.
Now press Ctrl + x to boot.

To make this change permanent:

From a terminal (or after pressing Alt + F2) run:

gksudo gedit /etc/default/grub

(or use sudo nano if gksudo or gedit are not available) and enter your password.
Find the line starting with GRUB_CMDLINE_LINUX_DEFAULT and append foo=bar to its end. For example:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash foo=bar"

Save the file and close the editor.
Finally, start a terminal and run:

sudo update-grub

to update GRUB's configuration file (you probably need to enter your password).

On the next reboot, the kernel should be started with the boot parameter. To permanently remove it, simply remove the parameter from GRUB_CMDLINE_LINUX_DEFAULT and run sudo update-grub again.

To verify your changes, you can see exactly what parameters your kernel booted with by executing cat /proc/cmdline.

Wiki Page:

https://help.ubuntu.com/community/BootOptions


For my case I resolved this by adding psmouse.proto=imps into /etc/default/grub in line where "GRUB_CMDLINE_LINUX":

GRUB_CMDLINE_LINUX="psmouse.proto=imps"

and then:

sudo update-grub

unfortunately adding configuration into /etc/modprobe.d/ folder did not work so I had to add this into grub config itself.

It also works now if I simply reload the psmouse module without any options, however did not work before (even if I remove changes described here). I do not know whether newest kernel made the difference.

If your touchpad not working, you must first try reloading module to see if that helps, try one of the command combinations below:

sudo modprobe -r psmouse
sudo modprobe psmouse proto=imps

sudo modprobe -r psmouse
sudo modprobe psmouse proto=bare

sudo modprobe -r psmouse
sudo modprobe psmouse resync_time=10

Reference: https://bbs.archlinux.org/viewtopic.php?id=184067


Dia cannot be found in the application centre. You have to launch by typing the command dia from the terminal or from Alt+F2.

I think this is a bug in 13.04.

Hope this helps.


How to run htop or any other console based applications from 'alt+F2' command interface?

The mechanism behind alt+F2 assumes a graphical application program. I tested with

xterm -e htop

and it works for me. You can use another terminal window too. I think Ubuntu Gnome comes with gnome-terminal, so it should work for you with

gnome-terminal -e htop

in the alt+F2 window.


change this:

#!/usr/bin/env xdg-open

[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Exec=java -jar ~/.minecraft/launcher.jar
Name=Minecraft
Comment=Minecraft
Icon=~/.minecraft/icons/icon.jpg

to this: (using the proper username)

[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Exec=java -jar "/home/jamesestes/.minecraft/launcher.jar"
Name=Minecraft
Comment=Minecraft
Icon=/home/jamesestes/.minecraft/icons/icon.jpg

And the .desktop file should go into ~/.local/share/applications.


Is a supported version of avast for 64 bit laptops?

Ubuntu 11.04 introduced the support of Multiarch which means that you can install i386 (32 bit) packages on an installation of a 64 bit system.
So if you have Ubuntu 11.04 and up you will be able to install the 32bit package of Avast.


You have specified a gateway that you don't have a route to.   149.56.24.254 is not in the network 158.69.105.80/30, therefore it is unreachable and you have not told your system where to send Internet traffic.
You have also specified a redundant route entry for the network which is already defined as local due to your addresses.
From the tutorial you linked, it looks like what you are meant to be doing is defining a local route to your gateway:
routes:
  - to: 149.56.24.254/32
    via: 0.0.0.0
    scope: link


unable to stat `./mnt' (which I was about to install): Transport endpoint is not connected

This error message indicates that you have a non-default filesystem on /mnt that's in a problematic state. The base-files package provides the /mnt directory on the filesystem, so dpkg assumes it should be able to unpack that directory if necessary. You need to unmount /mnt on your system to upgrade base-files.

See https://bugs.launchpad.net/ubuntu/+source/base-files/+bug/1352012 for more info.


easy_install3 needed upgraded. This can be done by running the following in the terminal:

sudo easy_install3 -U pip


.deb Installed Minitube 3.0 does not launch on ubuntu 16.04 and on Ubuntu 18.04

As of 23 Apr 2019 Minitube 2.9 stopped working on Linux Mint 18.2. I think youtube changed their addressing structures so Minitube 2.9 can no longer find the address. The subscription updates continue and the titles are still there, but nothing will play. The player will skip to the next vid, and then the next, etc. I installed Linux Mint 19.1 and got VLC and mPlayer working with Nouveau since the nVidia 304 driver is no longer available. But minitube 3.0 won't work because it is expecting qt5 version 5.11 and this distribution only has qt5 version 5.9.5. So I am stuck without minitube until the Mint update gives me a later qt5 version.

update: 25 Apr 2019 - minitube 2.9 on Mint 18.2 has started working again. I can only guess that youtube has changed back something that they messed with in the first place. I will have to wait for Mint 19.1 to update their repositories to qt5 ver. 5.11 for the minitube 3.0 to start working. Until that time I will stay with using Mint 18.2 and the 2.9 version of minitube.


Some files in /usr/sbin/ are never being replaced?

You need to be root to run make install. From your question it is not clear whether you have the correct permissions when running it.

You should compile as a normal user, and install as root (also, you should use /usr/local as a prefix for everything that doesn't come from your distribution's package manager, but that's another debate):

make
sudo make install


Convert pdf to monochrome black-and-white via command line

Adapting this answer over on SuperUser, this can be achieved by converting the PDF to PostScript and back using a redefined setrgbcolor command:

gs -o <output-file.pdf> -sDEVICE=pdfwrite \
-c "/osetrgbcolor {/setrgbcolor} bind def /setrgbcolor {pop [0 0 0] osetrgbcolor} def" \
-f <input-file.ps>


Problem with all fn Keys for Thinkpad W520

This was solved by the OP:

  The keys just started working out of the blue. I don't really know
  what my system did or what maybe I did. However all keys work fine
  now.


ATI / grlrx / Catalyst + gnome-shell = problems

I can't be too technical about why this appens in gnome-shell, but I can propose a solution that in my case dramatically improved performance. I am using Gnome-Shell 3.2.1 and AMD Catalyst 11.12.

Open /etc/environment as root user by typing on a terminal:

sudo gedit /etc/environment

Add this line at the bottom of the file:

CLUTTER_PAINT=disable-clipped-redraws:disable-culling

Save, and restart session.

Note, this worked for me also on a Nvidia ION platform, and is known to improve graphics on Intel as well.


I always accidentally log out of my session via shortcut

You have pressed the Ctrl + Alt + L.
You can remap keyboard shortcuts by using the System Settings -> Keyboard -> Shortcuts, then you will find it in System tab.


First, fdisk won't show your USB without root privileges. Type:

sudo fdisk -l

Assuming you have only a hardrive, you should see sda and sdb, where your usb would be sdb.

Relabelling your USB shouldn't have caused gparted to alter the file system table. Try to mount it manually trough commandline:

Assuming your usb partition is sdb1 (change the letter or the number according with the output of the previous command) try to mount the device in a local folder (create it first):

sudo mount -t vfat /dev/sdb1 /home/yourusernameher/usbtest/

As a last resort, try to check the integrity of the filesystem in the usb:

fsck /dev/sdb1


Your password is ok. Check the keyboard layout on login before you type your password.

Alternatively change your password:

Start the grub menu by holding the LeftShift key during the boot process.
Open the advanced options and start the recovery mode
Start the network via menu entry to remount the / writable (without an additionally command)
Start the root shell via the menu entry
Change your password via

passwd <your_username>

Type exit and resume the boot process via menu entry


As far as server versions where unity isn't a factor, what are the differences between 12.04 and 13.04?

The biggest difference you'll find is the version of packages available for each version.  For example, in Ubuntu 12.04, which is an LTS, installing PHP from the official repositories will give you PHP version 5.3.x.  However, if you move to 13.04 for example, you'll get version 5.4.x.

You'll encounter situations like that quite often.  Even things like MySQL, etckeeper, and quite a few other major packages will have older versions in LTS releases.  This is because the LTS release is made and maintained for the type of people that don't want to deal with updates that much, and want to 'set it and (almost) forget it' for a long time.  So you want find the latest versions of packages like that.

Other than that, as a developer, you'll find newer versions of various libraries.  However, for the common user, this will be a non-factor.

That's really about it though.  Ubuntu have not made any recent changes major enough to distinguish 12.04, 12.10, and 13.04 with the operation itself.


Install driver rtl8814au on ubuntu 18.04

I personally use (and recommend) the drivers from aircrack-ng.
See aircrack-ng/rtl8812au (@ GitHub)
I recommend to use the version 5.2.20 which introduces a very useful feature: A unique module (88XX) to "rules them all" (chipsets 8821AU, 8812au and 8814au).
edit: The master (default) branch is now v5.6.4.2 and it is the best option (unique module for all chipsets from realtek 88XX.au family)
  In order to install the drivers you need first to install the dependencies:

sudo apt install build-essential
sudo apt install bc
sudo apt install linux-headers-`uname -r`
sudo apt install git

Then download the repository

git clone https://github.com/aircrack-ng/rtl8812au.git

Locate your shell in the downloaded repository

cd rtl8812au

Switch to the branch 5.2.20

edit: No need to switch branch now, default branch is the best option

Finally, compile and install:

make
sudo make install

Notice that a even more recent version: Branch 5.3.4,
But I had some problems to get it works with 8814au. Hopefully it will be fixed in the future (if it is not already done).


How do I get vim to keep its undo history?

The newest version of vim (7.3) has persistent undo, so that you can make a change, close vim completely (even shutdown and restart), restart vim, and undo. In your .vimrc:

" tell it to use an undo file
set undofile
" set a directory to store the undo history
set undodir=/home/yourname/.vimundo/


AMD64 is just another name for the x86_64 CPU architecture. Points relevant to you:

Your CPU supports it. There a no 32bit-only Intel i3s.
It's faster than i386, often demonstrably.
Less relevant these days is that 64bit applications do use slightly more RAM. But you can have more directly addressable RAM. And RAM is cheap.

On balance, 64bit is the clear winner these days.
Get that, ignore that it says AMD in the arch name. It's just a name.


Which players are known to be able or not to be able to play DVD saved as a directory on a Toshiba AC100 (ARM)

The default player (totem) can't do it: after showing the beginning a little bit, it is stuck. Or perhaps it just showed nothing. I couldn't test whther navigating between the chapters worked.
vlc shows nothing at all, has to be killed afterwards (killall vlc).
gnome-mplayer couldn't open it as a DVD stored in a directory, hence chapter navigation didn't work.
smplayer has a speical menu option to open a DVD stored in a directory. It played it well (although I didn't do the playback for a long time, so I can't tell for sure whether the video delay problem happens for this format), chapter navigation worked.

(As for the comparison between the two interfaces to MPlayer--gnome-mplayer and smplayer on other videos, gnome-mplayer sometimes stopped the playback unexpectedly and hung, weheras smplayer did never have this problem. So smplayer is anyway preferred by me.)

gxine (an interface to Xine): I didn't test it.

Conclusion: smplayer can open a DVD stored in a directory and play it well. (A similar conclusion in the general, not ARM/AC100-specific case; but it says that besides smplayer, vlc also works, which is not the case in for my system on a Toshiba AC100.)


Why Lubuntu runs fine from USB flash drive as LiveCD, but is extremely slow when installed on the same USB disk?

Live distro is running from RAM memory, which means booting is slow but after that, running (in RAM) is super fast.
When you install it on USB flash it is running from flash. Flash is much slower than hard disk and hard disk is much much slower than RAM, so it is normal that in RAM Live version is faster.


Problem installing Nvidia Geforce 310m drivers

This looks like the same problem I had with 10.04. Check out my blog on how to solve this:

http://www.sanafapech.net/2011/04/geforce-310m-330m-400m-etc-con-linux.html

(or translated by Google)

http://translate.google.com/translate?js=n&prev=_t&hl=es&ie=UTF-8&layout=2&eotf=1&sl=es&tl=en&u=http%3A%2F%2Fwww.sanafapech.net%2F2011%2F04%2Fgeforce-310m-330m-400m-etc-con-linux.html

Cheers.


Try running sudo swapon -a
If it your swap partition doesn't start, then you'll have to add it to your fstab. There will probably be an old entry for a SWAP partition, you can go ahead and comment that out and use it as a template for your new entry.


Double-clicking on .md or .mkd or .markdown files doesn't open them in ReText but in the default text editor

You can probably try with mimeopen, which is a tool used to pair a specific mimetype with a particular application.

Use a file with .mkd extension as a parameter of mimeopen.

As an example:

$ mimeopen file.mkd
Please choose a default application for files of type text/x-retext-markdown

    1) ReText  (retext)
    2) GNU Emacs 23  (emacs23)
    3) gedit  (gedit)
    4) LibreOffice Writer  (libreoffice-writer)
    5) Other...

use application #

Now, enter the number of the application (in this case, 1) and all .mkd files should now open in Retext.


How to restore all default theme settings

This problem got even worse with Nautilus crashing every time I tried to move a file, enter an address or open a file through another application. But I found the solution to this problem.

libgdk-pixbuf2.0-0

At some point I had installed a GNOME Testing PPA, I think a while back to try and resolve a problem I was having with Evolution, then forgot about it.

That PPA had updated my version of that file from Utopics stable version libgdk-pixbuf2.0-0:2.30.8-1 to the development version libgdk-pixbuf2.0-0:2.31.1-1

I wasn’t able to downgrade that package but using the following command I was able to locate the troublesome PPA that had upgraded this package:

apt-cache policy libgdk-pixbuf2.0-0

This showed me the PPA that package belonged to. I then used PPA Purge to revert all the changes made by that particular PPA

sudo apt-get install ppa-purge

sudo ppa-purge [ppa to be purged]

This reverted all the changes and restored everything back to normal, everything from checkboxes to nautilus working.

I hope this helps someone else as this is a deeply frustrating problem, with no obvious answer or cause. I have said it before and I'll say it again, Ubuntu handles one of its best assets very poorly, PPAs. Not being able to quickly see your PPAs in a meaningful way (rather than a list of URLs) or see what packages they install, or indeed what PPA packages belong to is a serious flaw and leads to many hours of frustration. But with the Ubuntu Software Center being abandoned, PPAs are the only way to get up to date software.


Ubuntu 16.04 boots without asking to log in

Open System parameter

Go to Security and confidentiality -> Password option

And you just have to switch off the button Automatic password (don't forget to unlock the option with the button on the top)


DBus "Operation already in progress" error on return from suspend

The issue was caused by a double suspend command being sent to the system, after disabling suspend on lid close in xfce4-power-manager and the laptop still suspending, it was easier to troubleshoot.

in /etc/systemd/logind.conf, changing:

#HandleLidSwitch=suspend

to:

HandleLidSwitch=ignore

seems to have fixed this issue...


Ubuntu (Wubi) won't boot; stuck at grub command line

It should be a bug in thw Wubi installer.
try to defrag. your hdd and see what happends after that.
it should proberly help :)


Change JVM running on Tomcat7 Ubuntu 14.04 permission denied

CATALINA_HOME is path where tomcat is installed.
JAVA_HOME is path to your jdk.
For changing the jdk to be used by tomcat you must add the below 2 lines to the bashrc file using editor like 'nano'

$nano ~/.bashrc

In the bashrc file append the below 2 statements:

export JAVA_HOME=/path/to/your/jdk

export CATALINA_HOME=/path/to/your/tomcat

Save and exit out of .bashrc.Changes are effective after restarting the bashrc file.

$source ~/.bashrc

Once we are done with path it’s time to run tomcat
And check by typing http://localhost:8080
You must see a tomcat default welcome page.


Soundcard Tascam us-122 not working on 18.04

Currently the most updated documentation is Tascam US-122 on Opensrc Org. It contains valid URL for alsa-firmware v.1.0.29. Latest version (currently v.1.2.1) can be downloaded from Alsa Project or GitHub.

On Ubuntu 19.10, all mentioned installation steps was done.

When USB plug is disconnected and is immediately connected, PulseAudio inputs appear, but no outputs.

Both arecord -l and aplay -l give:

card 2: USX2Y [TASCAM US-X2Y], device 0: US-X2Y Audio [US-X2Y Audio #0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

When firmware is loaded, is not possible to stand-by computer, operating system is frozen.


Where can I find Xubuntu 20.04 LTS public key?

Use the previous command listed in the tutorial:
gpg --keyserver keyserver.ubuntu.com --recv-keys D94AA3F0EFE21092

When I did, there was a delay of maybe 30 seconds, and the output was different from that in the tutorial because I had a previous version of that key already. But I could understand that there is a valid signature from the output.


How can I recursively delete all files of a specific extension in the current directory?

You don't even need to use rm in this case if you are afraid. Use find:

find . -name "*.bak" -type f -delete

But use it with precaution. Run first:

find . -name "*.bak" -type f

to see exactly which files you will remove.

Also, make sure that -delete is the last argument in your command. If you put it before the -name *.bak argument, it will delete everything.

See man find and man rm for more info and see also this related question on SE:

How do I remove all .pyc files from a project?


Upgrading from Ubuntu 18.04 to 20.04 / PHP7.4 has broken composer & curl

Ubuntu 20.04 comes with php 7.4 (7.4.3) out of the box but it seems that you're also using a PPA repository by Ondrej Sury which has a different PHP version (7.4.5). Therefore you could either remove the PPA or install everything from that PPA.


Instead of using add-apt-repository, you can add the repository's address and key manually by performing the following commands in a root shell. b.t.w. when opening a root shell in Ubuntu or any other Debian based distribution, use the following command

sudo -s

and insert your root password at the prompt.

To add the repository manually, try the following

wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
sudo apt-get update
sudo apt-get install sublime-text


How do I replace the release in sources.list?

Just enter these commands on the console:

source /etc/lsb-release
NEW_RELEASE=trusty
sudo cp /etc/apt/sources.list /etc/apt/sources.list.$DISTRIB_CODENAME
sudo sed -i s/$DISTRIB_CODENAME/$NEW_RELEASE/g /etc/apt/sources.list

(It will also backup the current sources.list)


What is the new "Management service" in the System settings?

When I click onto it a message appears:

Landscape client

Landscape is an easy-to-use commercial systems management and monitoring service offered by Canonical that helps administrators manage multiple machines efficiently.

Find out more...


Understand Mozilla Thunderbird folders in Ubuntu

It is located at

/home/user/.thunderbird/Profiles/user.default/ImapMail/Server_Name/

Note: Deleting these folders will delete all messages in them

I would recommend that you get a backup of the folders in question, before you delete anything.  You can use the add-on ImortExportTools.


Replace Teamviewer default icon to a monochrome one

You may use Hardcode-Tray to fix the issue with colourful tray icons. Currently it supports only the Numix and Papirus icon themes (actually, you can manage any icon icon theme to work with Hardcode-Tray, see below1).

You can install it from a PPA by running

sudo add-apt-repository ppa:andreas-angerer89/sni-qt-patched
sudo apt update
sudo apt install sni-qt hardcode-tray

Then run hardcode-tray by

sudo -E hardcode-tray

and it will give you an option to "fix" the tray icons.

A note from the developer of Hardcode-Tray:

  You can use whatever theme you like as soon as the theme supports the app you want to fix. We detect which icons the theme has and get the ones we need for each app. so if you create a new theme called for example "Test" with the icons you need, you can use that by passing --theme argument. You don't need to use that theme in order to use it to fix your hardcoded icons, you can use whatever theme you like, if the colors doesn't match your color, we have already an argument to change the colors during the process too.


Yes, you can remove it via the Ubuntu Software Centre, or if you prefer, via the command line:

sudo apt-get remove banshee

In Ubuntu, you can remove almost any software you don't like without encountering issues.


You can use xdotool to log the 'Grab' information:

KEY=XF86AudioPlay
xdotool keydown ${KEY}; xdotool key XF86LogGrabInfo; xdotool keyup ${KEY}

X11 'Grabs' will be logged.  Newer systems can see these details in the journal $ sudo journalctl -f, while older systems may find the logs in /var/log/Xorg.0.log.  This shows you which X11 application is capturing or intercepting the key.

If this doesn't work, can you provide details of the behavior before X loads?


Try to click the small rythmbox icon in the top of the panel and click Stop & Quit.

If you want another music player then this link may help:
https://www.tecmint.com/best-music-players-for-ubuntu-linux-mint/
UPDATE:
Here are some answers that may help you
Rhythmbox still plays songs after exit
Is there a plugin for Rhythmbox to exit on close?


Runtime environment of the Snap programs

As stated here:

Strict confinement uses security features of the Linux kernel, including AppArmor, seccomp and namespaces, to prevent applications and services accessing the wider system.

If a snap with Strict confinement wants to access other system resources such as network and camera , it should use Interfaces.
As stated here :

When a snap needs to access a resource outside of its own confinement, it uses an interface. Interfaces enable resources from one snap to be shared with another.
Interfaces are commonly used to enable a snap to access OpenGL acceleration, sound playback or recording, your network and your $HOME directory. But which interfaces a snap requires, and provides, is very much dependent on the type of snap and its own requirements.
To see which interfaces a snap is using, type snap connections "snapname"

If you (in fact I) want to install and use a package in non-strict (classical) confinement , you should add the option --classic to the snap install command and if the classical version of the package is present , it should be installed.


sudo apt-get update - armhf 404 not found

In /etc/apt/sources.list, edit the lines which look like

deb http://archive.ubuntu.com/ubuntu/ trusty-security universe
deb http://archive.ubuntu.com/ubuntu/ trusty-security multiverse

so they look like this

deb [ arch=amd64,i386 ] http://archive.ubuntu.com/ubuntu/ trusty-security universe
deb [ arch=amd64,i386 ] http://archive.ubuntu.com/ubuntu/ trusty-security multiverse

then run sudo apt-get update again. The reason for your issue is that the repository you are trying to update from does not support the armhf architecture. You can test this yourself by navigating to http://archive.ubuntu.com/ubuntu/dists/trusty-security/universe in your web browser. You will see binary-amd64 and binary-i386 directories, but no binary-armhf directory.


Is there any way to integrate Dropbox in the messaging menu like ubuntu one?

Dropbox 1.0 has support for the App Indicators

http://blog.dropbox.com/?p=581


How to upgrade OpenSSL 1.0.1f on Ubuntu Server 14.04?

The package in Ubuntu 14.04 is not vulnerable. It includes the patch to fix the issue, rather than a newer version. See from the changelog:

openssl (1.0.1f-1ubuntu2) trusty; urgency=medium

  * SECURITY UPDATE: side-channel attack on Montgomery ladder implementation
    - debian/patches/CVE-2014-0076.patch: add and use constant time swap in
      crypto/bn/bn.h, crypto/bn/bn_lib.c, crypto/ec/ec2_mult.c,
      util/libeay.num.
    - CVE-2014-0076
  * SECURITY UPDATE: memory disclosure in TLS heartbeat extension
    - debian/patches/CVE-2014-0160.patch: use correct lengths in
      ssl/d1_both.c, ssl/t1_lib.c.
    - CVE-2014-0160


apt-get error: "Temporary failure resolving 'archive.ubuntu.com' "

First comment:

While Ubuntu 10.04.4 LTS (Lucid Lynx) Server is still under support, until April 2015, you need to be planning when you transition to 12.04 LTS.

Your current problem:

This appears to be a 'temporary' issue. You should retry the next day.

Do you have the server configured to automatically receive security updates?

When did you last 'manually' (and successfully) get updates?

Possible causes:

You may be experiencing issues with the GPG key for Lucid 'backports' and/or other outdated content. A less 'aggressive' configuration, less extra packages and other add-on elements, may be more stable and generally succeed.


Administrative password doesn't work when I try to install applications

you need to set your password to something within the ubuntu requirements. Enter recovery mode through the grub boot entry and go down to "drop to root shell" then type " mount -o rw,remount /" then "passwd (username)" and enter your new password


What is the most quiet way I can keep my laptop running?

Turn the screen brightness down as far as possible and put a cloth over the screen to mask the light. Put a quiet USB cooling pad under the laptop so the noisy built in fan doesn't have to work as hard.  In the power management settings, set the "Spin down hard disks when possible" to true. And of course, mute the volume!  xset dpms force off turns the screen off. Moing the mouse or pressing a key turns it back on.


How can I install Marlin file manager in Ubuntu 16.04?

As explained by karel, Marlin has been renamed to Pantheon file manager.

This is how I solved the problem:

sudo add-apt-repository ppa:elementary-os/daily
sudo apt-get update
sudo apt install pantheon-files

To launch Pantheon Files, type Files in the Ubuntu Launcher.


Brother Printer Driver Prints Nonsense Upon Driver Installation?

Try this:

Download the tool:

http://download.brother.com/welcome/dlf006893/linux-brprinter-installer-2.2.0-1.gz

The tool will be downloaded into the default "Download" directory.
e.g. /home/(LoginName)/Download

Open a terminal window.

Go to the directory you downloaded the file to in the last step. By using the cd command.

Enter this command to extract the downloaded file:

gunzip linux-brprinter-installer-2.2.0-1.gz

Get superuser authorization with the "sudo su" command.

Run the tool:

bash linux-brprinter-installer-2.2.0-1 MFC-7860DW

The driver installation will start. Follow the installation screen directions.

When you see the message "Will you specify the DeviceURI ?",

Choose Y(Yes) and DeviceURI number.

The install process may take some time. Please wait until it is complete.


deja-dup does not back up your programs if you back up only your home folder.
How much space you need depends on how big your home folder is.
You can save the backup on any media that is big enough and properly
formatted


GUI program to create partition backup image no larger than its files?

The following answer uses a TUI, not a GUI solution:

Depending on your use-case (I use it to make system back-ups) you can use CloneZilla Live.  It can create:

sparse images,
compressed images of:

entire systems,
entire drives
simply individual partitions.

The main advantages are:

that it boots from:

external media
internal media

comes with its own OS (based on Ubuntu)
it can make exact cold system back-ups that are easily restored.

On top of all these goodies, it can copy MBRs as well.

If a cold system back-up is not what you're looking for, you can still use the technology that CloneZilla is based upon and that is partclone.


Unsafe NTFS mount even with no fast restart

I'm not familiar with "fast start", a windows thing that scrambles the hard disk apparently? But the general solution to NTFS problems is "Run chkdsk in windows", or maybe run chkdsk from a windows boot disk (should have some repair/recovery tools, maybe a windows/dos terminal somewhere) and probably like it suggests:

Please resume and shutdown
Windows fully (no hibernation or fast restarting), or mount the volume
read-only with the 'ro' mount option.

But I don't know how to do that, maybe ask Mr.Google how to work windows?


How to install the perfect dual-boot between Windows-Ubuntu

Everything just became much clearer!  :-) You have an UEFI system, so read the following articles before continuing:

Official Ubuntu Documentation - UEFI

Official Ubuntu Documentation - UEFI and BIOS

Still there?  OK, now on to the real answer:

Forget about the 1MB gaps: Just think of them as "rounding errors" to align the separate logical partitions to hardware cylinders on your disk.  Not worth the hassle: combined they're only 0.43% of your 465GB disk (/dev/sda).
A Windows "drive" can be a partition or an entire hard disk.  You never know until you go to gparted or the Windows disk manager.
/dev/sda1 is a hidden recovery partition on your disk.  You should have some tools inside Windows to burn this data to DVD (which manufacturers are too stingy to give away any more). After burning your 'recovery CDs/DVDs' this partition can be deleted. (refer to the manufacturer's documentation how to do this) This should free up 615MB of disk space.
/dev/sda2 is your UEFI BOOT partition (you should know by now what that means!) :P  ;-)
/dev/sda3 is a Microsoft (msft) Reserved (res) Partition: The day you finally decide to completely move over to Ubuntu, this partition can be safely deleted, but for dual-boot purposes do not touch!  ;-)
/dev/sda4 is your Windows C:\  drive!  (and that is why you got all these fuzzy "well, it depends" Ubuntu answers until now: we just don't know how your manufacturer has installed your disks, nor what you did to your disks afterwards.)
/dev/sda5 is your Windows E:\ drive, (very probably) containing your data, excluding media
/dev/sda6 is your Windows F:\ drive, (very probably) containing your videos and music and pictures.

Final answer:
If I would have your machine, I would:

Take a full system backup before starting just in case I made a mistake.
In Windows:

Use the correct Windows procedure to move c:\users to E:\ data drive (if not already done so) and incorporate E:*.* directories into E:\Users\Documents, Favorites, ...

Ensure [Everyone] has write access to E:\ (the default)
Shut down Windows: This is the most important step: Do not hibernate, hybrid hibernate, whatever, but fully shut down the entire machine!
Boot the Ubuntu CD, Choose "try" and then In gparted:

Shrink /dev/sda4 to 128GB by clicking on the right side of sda4 and sliding it to the left. (128G is plenty of space for Windows and all of its applications)

In the free space, create a swap partition equal to the size calculated here

Allocate the rest of the free space to an EXT4 partition.
Still in the "try" mode, now choose "Install Ubuntu" from the desktop, and during the install, follow the correct UEFI procedure, then during the install procedure at "Step 4: Allocating drive space",

take "something else" and allocate "swap" to the swap partition created above and allocate / to the EXT4 partition created above.

And now personal preference, (feel free to differ) use /dev/sda5 for my /home directory.  Ubuntu can read and write to NTFS partitions so when you boot into Ubuntu /users will also contain all of the directories and files from your E:\users and your Windows will also contain all of your Ubuntu files in a directory called E:\home.

As long as you're a disciplined admin of both your Windows and your Ubuntu the above should pose no problem!

So if you don't go deleting stuff or changing permissions in E:\home\ from Windows or deleting and modifying /users/ from Ubuntu, both OSes data files can co-exist peacefully on one drive (It's a bit like allowing muslims to pray in a catholic church or vice versa.  I ran like this for 6 months before deleting Windows and converting all my disks to EXT4)


link windows xampp htdocs dir with linux www dir

Using the default configuration for Apache is only going to get you so far. If you ever want to host more than one site you're going to need to get involved with the virtual hosts settings.

In my opinion, rather than shovelling files all over the place or even linking them, I would opt to just change the configuration so Apache on Ubuntu looks at the Windows versions.

And that's simple. Edit /etc/apache2/sites-available/default as root and change DocumentRoot to your new path. You'll need to edit the default <Directory /var/www/> opening tag too. Then do a graceful restart and it should load the new config.

sudo /etc/init.d/apache2 graceful

Permissions are still important so you'll still need to make sure you've mounted things in the right way, per Jaroslav's comment:

How do I use 'chmod' on an NTFS (or FAT32) partition?


How to set XFCE indicator plugin clock format? the plugin not work properly

First of all, I've seen posts with other people having issues with the XFCE Panel Time plugin. I can't get the setting to stick.

Make sure you are actually right-clicking on the applet in the panel.  Properties should be there.
You can remove it and add it back again.

I had it go into a "half-sized" position on the
panel and had to click on one side of the plugin
area that I didn't have to with any other plugin.
It also was black on black so that was another guess where to click. I eventually got the right spot.
Bring up a terminal. There are many ways to do
this:
Use one from your menus.
Type Alt+F2 to bring up a Run dialog.
Type xfce4-terminal
Click launch.
Type man strftime
The format code I think you want is: %T
HH:MM:SS
After you get properties in the "Clock Options"
section choose "custom" in the "Format section".
In the box below that type %T


apt-cache unmet shows non-existent packages

On my system, it's about 4MB output (>87.000 lines).
Found out using apt-cache unmet | wc -c for number of bytes and apt-cache unmet | wc -l for number of lines.

I did not learn much from having a quick glance at the source code, but I strongly guess this command is designed to print all unmet dependencies of all installable packages, instead of only those packages which are actually installed.

The manpage man apt-cache is in my opinion not unambiguously worded, but here are the important snippets:

   unmet
       unmet displays a summary of all unmet dependencies in the package cache.

   -i, --important
       Print only important dependencies; for use with unmet and depends. Causes only Depends and Pre-Depends relations to
       be printed. Configuration Item: APT::Cache::Important.

So you can also narrow down the output somehow if you add the -i argument. I am not sure what exactly this filters out, but it results in less than about 10%, roughly 7.000 lines in my case.

$ apt-cache unmet -i | wc -l
7096


Ubuntu booting very slowly after playing counter strike

A program exists that will help you determine what is dragging down your boot times.  It is bootchart - http://www.bootchart.org/

To install

sudo apt-get install bootchart

After you install and then reboot you can find the graph here

/var/log/bootchart

After you do that you can probably fix your issue, or you can post further information so we can help.

You can also use another program to get a look at the graph here

pybootchartgui


UEFI/GPT Windows 7 load failure in dual boot and no grub2

I reverted the Windows SSD to MBR and everything went back to normal.
I don't miss the UEFI with GPT partitioning anyway, since while using MBR the boot time is faster for Windows 7 while using MBR (20 seconds). Ubuntu boots in 15 seconds and there's no longer any conflict between the Windows 7 and Ubuntu drives.


Ubuntu 18.04 thinkpad resumes from suspend immediately

I noticed that there were two PXSX devices when running cat /proc/acpi/wakeup
PXSX      S4    *disabled
PXSX      S4    *enabled   pci:0000:05:00.0

When I tried to disable PXSX via command echo PXSX > /proc/acpi/wakeup then nothing happened (one PXSX stayed enabled and one stayed disabled, I assume this is because this command could not reach the second PXSX.
I also tried running acpitool -w then acpitool -W <deviceNumberHere> to disable the second PXSX, which was unsuccessful. I'm not sure why wake cannot be disabled on this second PXSX device.
This device only appears when the laptop is docked so it is safe to assume this device is part of the dock.
Next step was to somehow disable this device to stop it from waking the laptop. I found the command echo 1 > /sys/bus/pci/devices/0000:05:00.0/remove would disable this PCI device. After running this command, suspend worked correctly! The only problem is that if I tried to perform suspend again the laptop would exhibit the previous behavior (immediate wake). This was confirmed by running cat /proc/acpi/wakeup to see that PXSX had re-enabled itself: somehow during wake the device was re-enabling itself.
My next idea was to disable this device during pre-suspend. I created this file: /lib/systemd/system-sleep/pre-suspend.sh, made it executable and wrote these contents:
#!/bin/sh

case $1 in
  pre)
    echo 1 > /sys/bus/pci/devices/0000:05:00.0/remove
    ;;
esac

This code ensures that the problem device will be disabled immediately prior to suspending. Currently, my laptop successfully sleeps without waking itself 100% of the time.


To debug such issues

Disable any custom theme and switch to a default one. You can do so using Tweaks, on the "Appearance" tab. Tweaks is not installed by default, but can be installed with the command sudo apt install gnome-tweaks.

If the issue persists, then you may need to log out and back in to resolve it. Do that first before going on.

If that does not resolve the issue, then disable all custom extensions, and reenable them one by one. Also there, you can use Tweaks ("Extensions" tab). On more recent Ubuntu versions, you can use the tools "Tweaks", not installed by default (sudo apt install gnome-shell-extension-prefs.

This will allow you to see what causes the display issues, your custom theme or one (or a combination of) custom extensions. You then can work around (use a different theme or discontinue using an extension, etc.)


Downloads stopping halfway in the Ubuntu Software Center

In a terminal, run

sudo apt-get autoremove
sudo apt-get clean

Then,

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


Problem with Media Device(MTP) when connect to Ubuntu 14.04

MTP needs unlocked phone.

Unlock the lockscreen, and If mtpfs and gvfs installed It will work well.

sudo apt-get install mtpfs gvfs


Unable to switch Desktop Environment/GUI's at login page

Don't use the little arrow to click back to the username.  Select the "OK" button at the bottom of the session list (Ubuntu, Gnome, etc.).


The man page for install is pretty instructive:

-t, --target-directory=DIRECTORY

copy all SOURCE arguments into DIRECTORY

Take a look: man install


Inserted SD card isn't shown in nautilus

check the partition:

cat /proc/partitions

If you see partition of your sd card, you have to mount it.

sudo mkdir /media/your_sd
sudo mount /dev/your_sd /media/your_sd


Ok I ran:

sudo apt-get install php7.1 php7.1-common

It is now updated to the latest version.


How to disable built-in driver "AHCI" when installing 12.04?

Try adding modprobe.blacklist=module_name to the kernel parameters to blacklist the loading of the module at boot time. You can still insert it later if you need.

So, in the case of the AHCI driver, pass modprobe.blacklist=ahci to the kernel.


Configure keyboard shortcuts to CapsLock and Shift + CapsLock in 18.04 Bionic Beaver

Install Gnome Tweaks:

sudo apt install gnome-tweaks

Run Gnome Tweaks: Press the Super (aka Windows) key, type Tweaks, press Enter.
Go to Keyboard & Mouse section in the left list.
Click the Additional Layout Options button in the main area on the right.
Expand the Caps Lock Behavior section.
Select Make Caps Lock an additional Menu key. This seems to be the only option available to expose Caps Lock as a regular, non-modifier, unused key.
Close both windows.

You can now use Caps Lock in hot keys – both standalone and with modifiers.

As for switching to a specific keyboard layout, the gsettings set org.gnome.desktop.input-sources current 0 option is deprecated and ignored.

This command works:

gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell --method org.gnome.Shell.Eval "imports.ui.status.keyboard.getInputSourceManager().inputSources[0].activate()"


easy_install pygame not working due to "linux/videodev.h: No such file or directory" error

This SO answer provides the correct symlink. You need to remove the /usr/include/linux/videodev.h that you created -- it is linking to the wrong version of the header file.

sudo apt-get install libv4l-dev
cd /usr/include/linux
sudo ln -s ../libv4l1-videodev.h videodev.h


Is it possible to change ownership of a file without root access?

If the User A owns file.txt, he cannot change the ownership of the file.txt without root access/sudo permission. This is a feature and not a bug. And one of the many reasons why the elders chose to put this feature in, has been explained in a comment to your question by roadmr

Bottom-line: You can change the permissions of the file using chmod if you are the owner of that file without root/sudo permissions but you cannot change the ownership, either user or group (using either chown or chgrp ), of a file even though you are the owner of the file without root/sudo permissions. This is a feature and not a bug.


If I recall (I reckon it can be found in the Pitivi changelogs since 11.04) I had this AND other problems related to Pitivi. Reason why I went to Openshot and handbreak but anyhow, after some months Pitivi fixed this issue and a lot of memory leaks, crashes and others. So the solution would be to update Pitivi or Ubuntu with Pitivi. On the latest test I did 3 weeks ago, Pitivi is nowhere as it was on 11.04. It is very stable, is not resource hungry and in general I haven't had any crashes.


Ubuntu 18.04.03 with xvnc or xrdp connection problem

seems to be the same issue as 18.04.3 LTS XRDP "login failed for display: 0"

there is a known issue with Ubuntu 18.04.2 and 18.04.3 and xrdp package found in the repository...When you install xrdp from repository on ubuntu 18.04.2 and later, the package needs xorg-xserver-core packages while these point releases have the xorg-xserver-core-hw* packages installed

You have to either

Best option -  Install the new xorgxrdp-hwe-18.04 package

Install the new xorgxrdp package by issuing the following command

  sudo apt-get install xorgxrdp-hwe-18.04

This should fix your issue

Downgrade xserver-xorg-core packages

  downgrade xorg-xserver-core-hw* packages to xorg-xserver-core packages and then install the xorgxrdp package

More info on http://c-nergy.be/blog/?p=13390

Unofficial xrdp packages compatible with Ubuntu 18.04.3

  use unofficial xrdp pacakge that can be used against Ubuntu 18.04.3

more info at http://c-nergy.be/blog/?p=13455

perform a scripted installation

  use one of the xrdp installer script to automate the installation

To install from ubuntu repository,read instructions and download script at http://c-nergy.be/blog/?p=13933
To compile from source (easy way), read instructions and download the script at http://c-nergy.be/blog/?p=13663

hope this help
Till next time


Password information like this (and WiFi passwords, browser passwords, etc.) are stored encrypted in a login keyring. The login keyring is encypted using your login password, and is decrypted when you log in.

If someone steals your hard drive, they would need your login password to decrypt the keyring. Additionally, the keyring is stored in your home folder, so if you have your home folder encrypted, then the keyring and its data are stored double encrypted.


Welcome to the Ubuntu world, this will be a pretty pleasant journey of discovery but somehow steep learning curve but with time and patience you'll get a grasp on things.

I'd recommend the perfect desktop from HowtoForge.


The original command should not be,

apt-get install -y --force-yes grub-pc linux

It should be,

apt-get install -y --force-yes grub-pc

If you run apt-get install -y --force-yes grub-pc linux command, apt-get tries to find and install the packages grub-pc and linux. But there is no such linux package available.

E: Unable to locate package linux

The above part from the error report is your clue.

The presence of "linux" in the install line is a bug in boot-repair, and should be reported there.


High fan speed after suspend only on AC [16.04]

I solved it, but I would like to know why this issue was there in the first place. I tried toggling all options tuned by powertop until I noticed that the issue is gone. The option that was causing the problem was this one:

Runtime PM for PCI Device Intel Corporation Ethernet Connection (4) I219-LM

When the state is Good the following option is set (this causes the problem)

echo 'auto' > '/sys/bus/pci/devices/0000:00:1f.6/power/control';

and when it is Bad it is

echo 'on' > '/sys/bus/pci/devices/0000:00:1f.6/power/control';

Anyone knows why this causes the problem?

UPDATE: As per the comment posted by Daniel Nyga, the official BIOS update 1.20 addresses the fan issue. After following this guide, the issue seems to be resolved.


It could be an intermittent hardware issue on your new server.  Faulty cable? NIC? Was this machine previously OK running 14.04 ?

Since you are able to connect fine to other machines, if the problem is not hardware, perhaps you should have a look at the configuration of the ssh daemon on the the new 16.04 box,  vim /etc/ssh/sshd_config

What have you tried already to troubleshoot this ?
You can run sshd with debugging options on the 16.04 box:
     " ...debug mode provides a lot of information about the connection and a smaller amount about the server configuration. The server's debugging level (-d) can be raised once, twice (-dd) or thrice (-ddd). "

On your terminal, you can run the ssh client with -vvv option as well.

ssh -p 22 -vvv <user>@<server>


Update manager works but shows I'm not updating

It's complaining because you haven't installed the Hardware Enablement Stack.  That's the line that says "New important security and hardware support update" and has its own button  More Info.

The importance of this is described at the link, but briefly:

  Starting Aug 8, 2014 systems running 12.04.2 HWE, 12.04.3 HWE, or
  12.04.4 HWE will no longer receive software updates for the kernel and, if you're running it, the graphics stack.


I'm trying to install Oracle Java sdk at the final i'm getting Error

You have installed the wrong binaries.

Install Oracle Java with a PPA:

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

And configure alternatives for Java

sudo update-alternatives --config java


How to install elementary os loki in ubuntu 16.10 without using iso file

Kindly refer to the steps on this website.
Here is the extract of this website:

Download Ubuntu 16.04 Beta 2 and install it on your system.
Once installed, add elementary daily PPA by typing the following in Terminal:

sudo apt-add-repository ppa:elementary-os/daily
Update the system and install elementary-desktop package:

sudo apt-get update && sudo apt-get install elementary-desktop


Can I use fglrx if I disable my integrated graphics?

On the TimelineX 3820 there is an option to switch from dual graphics to single graphics.

In your case you want to use the ATI card, so at your laptop's BIOS search for Switchable setting on graphics and change it to Discrete. That will make your laptop use only you ATI card. You will then be able to install the fglrx driver, your system will ignore totally your Intel HD graphics.

That option is available for BIOS since v1.19 and up.


Transferring files between two remote servers that use different protocols

If I understand what you're asking correctly, I think you can do it with

sudo apt-get install sshfs

followed by

mkdir serverAFiles
sshfs serverA:/path/to/the/directory serverAfiles

Now you will see the files on serverA in the 'serverAfiles' directory just as if they were on the local machine, and can ftp them onto serverB just as if they were local.

When you're done,

fusermount -u serverAfiles

will break the ssh connection and you'll no longer see the remote files as being local.


What are the difference between the options in the drop down menu beside sign in option?

Usually the options are for choosing between types of desktop environment and display servers.

If you have more than one desktop environment installed on your system, you would be able to choose one of them. Some examples for desktop environments are: Gnome, Cinnamon, Unity,Xfce, KDE and MATE.Main difference between desktop environments are the look of them and the amount of resources(RAM) they use.

if you have more than one display server installed on your system, you would be able to choose one of them. Some examples for display servers are Wayland and Xorg. Some programs may have problem running on some display servers.
And also Ubuntu is the name of GNU/Linux distribution you are using.

To know more about display servers you can visit here.
To know more about desktop environments you can visit here.


Custom Resolution not Persisting Across Reboots

(Posting this as an answer from the comments)

The lines in ~/.profile should not be prepended with sudo. Thus, the lines to be appended should be as such:

xrandr --newmode "1600x900_60.00" 118.25 1600 1696 1856 2112 900 903 908 934 -hsync +vsync and
xrandr --addmode eDP-1 "1600x900_60.00"


I think wrong Jack version Jack1 instead of Jack2 (Ubuntu14. Studio)

The package you are looking for is libjack-jackd2-dev. Somehow you are trying to install (or have already installed) libjack-dev, which is based on code released two and a half years ago.

The following should get you going:

sudo apt-get purge libjack-dev
sudo apt-get install libjack-jackd2-dev


Ubuntu 16.04 | Failing to create swap space error on installation

I had this problem with 15.10. The solution for me was below:

Partitioning Layout

Ubuntu requires, at minimum, a 5 GB partition mounted as /.
For my 16.04 installation, I created a 100 GB / partition, and a 5 GB swap partition.

So, my partitions will look like this (numbers made up):

/dev/sda3: ext4: 100 GB
/dev/sda4: swap: 5 GB

Installation

When installing, select the Something else option.
Then, click on the partition you created for /, and click "Change".
-  Check "use this partition", and for the mount point, type /

For swap, Ubuntu should auto detect it. All you need to do is select the swap partition, click "Change", and ensure it is used by Ubuntu.

That's all!

The new partitioning layout fixed the problems for me.
I don't know if it was the simplicity, or the pre-made partitions, but 15.10 installed smoothly.
Hopefully it'll work for you, too. :)


Try this: Press Super-Key (Windows Key) and type: gksu nautilus-actions-config-tool

The Nautilus-Actions-Extra package provides quite a large list of actions, but you can remove (or reorganize) some of them if you want. To do this, launch Nautilus Actions Configuration Tool as root. See for more detailed infos Nautilus Actions Extra


Can you open a Console? (CTRL+ALT+F1).

If yes, login and enter the following command to upgrade to Ubuntu 14.04 LTS.

sudo apt-get upgrade

If not, try to recover to 12.04 and try to upgrade by using a Terminal (CTRL+ALT+T) where you enter the following line:

sudo apt-get upgrade

Try the following:

sudo apt-get update
sudo apt-get autoclean
sudo apt-get clean
sudo apt-get autoremove
sudo dpkg --remove -force --force-remove-reinstreq xorg


after trying for the whole day, I found out there is no way to provision the Ubuntu VM in KVM with CLI virsh command even if you have perfect qcow2 image.

because the ubuntu wants GUI input to otherwise it will be blocked

and you cannot access the root ssh and virsh console without explicitly configuring for this

the only solution is to take ubuntu server iso and use GUI to install
and configure the Ubuntu with the above capability and copy the generated .qcow2 and form the basic virsh XML template and then use the copied .qcow2 image to provision the VM with the virsh command and get the console access.


Ubuntu 12.04.3 -32bit Failed to install grub-efi to /target/

UEFI is based on executing code in native mode. So no distributions have 32 bit versions for 64 bit systems.

http://mjg59.dreamwidth.org/26734.html

You probably can install in BIOS mode if you want.


How to install Adobe Reader X in Ubuntu?

I'm not sure if you can accept this as a valid answer, but since what you want is a feature-rich PDF viewer program with "lots of commenting and writing tools of Adobe Reader x" I think you would be very happy with PDF-XChange Viewer.

It actually offers more features than Acrobat Reader using a much smaller disk space and memory!

You can either install it under Wine or - if you encounter any installation problems -simply download the Portable version and then create your own Launcher manually.

I've been using it with various versions of Ubuntu and Wine for a long-time, including the current Ubuntu 12.10 64-bit and the latest Wine version.

UPDATE

The new PDF-XChange Editor (which supersedes the PDF-XChange Viewer) works better under Wine with more or less the same features in the Free version.


Installing Windows 7 on pre-existing Ubuntu 12.04 for Dual-Boot FAQ?

1. Windows7 is a little smarted than XP, as it should not modify the Linux partitions. However, by security, you should always backup your Ubuntu documents before installing Windows.

2. Your procedure seems ok. Don't forget to format the free partition in NTFS via gParted, so that WIndows can easily detect it.


You can use pavucontrol (pulseaudio volume control, install if necessary). Launch it from multimedia menu, go to the "output devices" tab, and click the green "define as alternative" button that is near HDMI soundcard.

If it still doesn't work, look also "configuration" tab and change profile.


How can I change the Xfce window manager to awesome?

(Tested on Xubuntu 12.04, but with the ppas for Xfce 4.10 and 4.12 installed; however this will work from Xfce 4.8 onwards (default 12.04 version))

You can either run awesome as the window manager in an Xubuntu or Xfce session (which I think is what you want), or run it from its own awesome session (once installed that becomes an option in lightdm).

First install awesome from the repositories with

sudo apt-get install awesome

Now, if you want to run awesome as window manager in an Xfce or Xubuntu session, you can edit the relevant xfconf setting with:

xfconf-query -c xfce4-session -p /sessions/Failsafe/Client0_Command -t string -s "awesome" -a

This command changes the default window manager in the Xfce session to the awesome window manager. With other window managers such as metacity, you would instead use -t string -s "metacity" -t string -s "--replace" -a as the second part of the command. The --replace option is not available or needed anyway with awesome.

Now logout and login again by choosing the normal Xubuntu or Xfce session if you want to run awesome within an Xfce session.

To return to xfwm4 as default window manager, run

xfconf-query -c xfce4-session -p /sessions/Failsafe/Client0_Command -t string -s "xfwm4" -t string -s "--replace" -a

You may need to configure the various options in awesome by creating a personal rc file in $HOME/.config/awesome and tweaking the various options:

mkdir $HOME/.config/awesome
cp /etc/xdg/awesome/rc.lua $HOME/.config/awesome/

You will need to set up your themes and manually tweak how windows will appear, as the normal Xfwm4 window manager settings and tweaks will obviously not work when using awesome.

The screenshot below is of awesome running in a Xubuntu session, with the rest of Xfce still installed. If you have an Xfce panel at the top of the screen it will obscure the awesome panel, so you will have to move it elsewhere.

For more information on awesome and its keybindings, see man awesome and the Ubuntu manpages online.

Note: This does not work at least as of Ubuntu 13.10. Bug report against XFCE4 opened.


How to Install network drivers on Dell Iinspiron 5420 with Ubuntu 10.04?

You know, network connections are something the linux community has actively moved to give more support. You may want to go ahead and upgrade if possible, and any network issue might solve themselves.

I have on several experiences had laptops that would not connect to wifi on 9.10, but once upgraded to 10.04 or to 10.10 the wireless worked.

Doesn't help your exact issue, but it could make your question unnecessary.


Juju add-subnet command fails to move existing subnet into a space

This seems to be a bug in the current Juju release. I have created a bug report and posted both the description and workarounds I have found there. Here is a link

https://bugs.launchpad.net/juju-core/+bug/1749272


Help with tool recommendation, to build a parse tree for C source code

I think "best" is really subjective, but eclipse and eclipse CDT have loads of plugins.

This thread is probably relevant.

If you want a thing of absolute beauty shell out the money for Klockwork.

EDIT:Thought I would add this since the user complained about requiring an IDE.  I would really rather do it from an IDE myself, but there are other options.


If you would like to know whether a command has succeeded or failed, you usually have to check its exit code. Zero indicates success, non-zero shows failure.

Example in shell:

gcc foo.c
rc=$?  # Store exit code for later use
if [ $rc -ne 0 ]; then  # $rc not equal to zero
    echo "gcc exited with $rc"
fi

You could also use && or || to execute a command on success or failure, respectively:

gcc foo.c && echo gcc succeeded
gcc foo.c || echo gcc failed

As mentioned in the comments, gcc foo.c | grep error did not catch everything because a pipe normally catches the standard output (stdout) only. Programs will often output exceptional messages to standard error (stderr). To catch that stream, you have to redirect stderr to stdout before piping to grep:

gcc foo.c 2>&1 | grep error

Or, if you use the bash shell, you can use this shorthand:

gcc foo.c |& grep error

Now, this gcc generates an a.out binary. If you just want to check for syntax errors, you can use gcc -fsyntax-only foo.c. You can then examine at the output or check its exit code for errors.


Can't install Dual Boot from USB live - crash and nouvea problem

Same problem here on a XMG P303 with NVIDIA GTX 765M. KUbuntu 13.04 does run well. KUbuntu 13.10 does not boot (nor from Live USB nor after upgrading to 13.10).

A daily snapshot of KUbuntu 14.04 does boot (though no setup yet)!


There is no one answer to this question, as each permission has it's own effects. Most of that "privileges" means that you are a member of some group. This will usually let you access to files owner by that group. Remember that in most unix-like systems everything is a file.

Now, one answer:

"Use VirtualBox virtualization solution" likely means that you are member of the vboxusers group. You will need to be member of this group to be able to use usb devices on VirtualBox. If you are not member of this groups, all the devices on the USB menu on VirtualBox should be greyed.


I have installed ubuntu along side Windows .Will updating Ubuntu erase data on Windows?

Updating Ubuntu will only write to the partition(s) its already installed in.


Mobile app development issues with qmlviewer not being found?

You must install QML toolkit. run:

sudo add-apt-repository ppa:canonical-qt5-edgers/qt5-proper
sudo add-apt-repository ppa:ubuntu-sdk-team/ppa
sudo apt-get update
sudo apt-get install ubuntu-sdk notepad-qml


The kernel probably doesn't know about the change. A good tool which helps in this case is partprobe. Just call it with sudo partprobe. The software will test all drives and if it finds new partitions it informs the kernel. After a successful run you'll see your image instead of free space.


Firefox cannot determine location in Ubuntu 20.04

Is GPS installed on your PC? If it is installed, then you might have not given the location permission to firefox and in case, you are getting a precise location in google-chrome without any GPS installed,that means you are using the same google account for any of your android phones as well as in google chrome.
Here, your google account is determining your location as per the location of your android phone.