network connection failure after resume from standby 16.04

I had problems with Suspend/Resume on my laptop that involved many head scratching moments. But I didn't have your problem with systemd not shutting down network manager on sleep and restarting it on wake. I did some digging and I think this is the file you should have on your system.

At the terminal look at the contents of this file by typing: cat /lib/systemd/system-sleep/wpasupplicant

#!/bin/sh
set -e

if [ "$2" = "suspend" ] || [ "$2" = "hybrid-sleep" ]; then
    case "$1" in
        pre) /sbin/wpa_cli suspend ;;
        post) /sbin/wpa_cli resume ;;
    esac
fi

If for some reason your file is different or doesn't exist then make it so (Sorry Captain Picarde).

If the file correctly exists on your system then after resuming try typing:

sudo wpa_cli resume

and see if that establishes the connection. If it does then there are various bug reports to read such as: WiFi fails to resume after
suspend; Race with wpasupplicant / wpa_cli resume? This link has links to other bug reports which should keep you busy for awhile.


network-manager do not start automatically

In my case, I had a left over entry for eth0 in /etc/network/interfaces which was configured to use DHCP, but since there was no ethernet plugged into eth0 DHCP could never succeed.

Check /etc/network/interfaces, comment out everything other than:

auto lo
iface lo inet loopback

Then reboot and hopefully network-manager will start as expected.


How to show avatar and username (not only full name) on the login screen?

Try this.

    Get your image or avatar, make sure its a sensible size e.g. 96×96 pixels. If not, edit with your preferred image manipulator program, such as GIMP.
    Copy it to your home directory
    Rename it .face
    Logout and then see your new avatar on the login in screen.
    The same icon also shows up when you go into Users and Groups.


Weird inconsistent reads from large files with Samsung NVME drives

Ok, the problem seems to be related to the ASRock X99 Taichi board that does not seem to correctly handle quad channel mode. Disabling quad channel mode in BIOS (or plugging in the RAM in the first 4 slots) resolved the problem. I cannot recommend this mainboard to anyone. It caused us some really weird, really hard to debug problems.


Latest opened program window overrides current software window

Well I think at last I got a solution. Here is the solution:

get compizconfig-settings-manager
open compizconfig-settings-manager
select the category "General"
click on "General Options"
select the "Focus and Raise Behaviour" tab
set "Focus Prevention" level to 'Very High'

That fixed things up for me. Hope it does for you as well.


XServer Error could not create lock file

If you dropped to a root shell from the Ubuntu recovery mode, then the filesystem is mounted in read-only mode by default. You will probably need to re-mount with read-write permissions in order to allow X -configure to write the xorg.conf file:

mount -o remount,rw /

(note: there is no space between the remount and rw options - just a comma). Then try the X -configure command again.


How to set app icon in the .desktop file of an Ubuntu Touch application?

There are two things wrong with how you're doing things.

Fist of all, .desktop files are intended for installed apps, not for running via Ctrl+R. To install your app, you need to package it and install the package. You can find more details about packaging your app and publishing it in the Click App Store here.

Second of all, the paths you have in the .desktop should be local files, not absolute paths. Here is an example of a .desktop file:

[Desktop Entry]
Name=Tasks
Comment=Your tasks, every device, everywhere.
Exec=qmlscene $@ ubuntu-tasks.qml
Icon=ubuntu-tasks.png
Terminal=false
Type=Application
X-Ubuntu-Touch=true

A couple of things to note:

The Exec line should be in the format of qmlscene $@ <file.qml>, with just the name of your main QML file, no directory information.
The Icon line should be in the form of Icon=<icon.png>, with just the file name (including the extension), no directory information.

Now the information I've provided above is for running your app on an Ubuntu Touch device by packaging it in a Click package. Click packages are intended for Ubuntu Touch and currently don't integrate with the Unity desktop. So, if you want to be able to run your app from the Dash/Launcher and also see its icon, you will need to do two things:

Copy your .desktop file to ~/.local/share/applications and use an absolute path to your icon instead of just the file name, as you would when packaging the app.
Copy your icon to ~/.icons


Issue installing Tellico with Ubuntu 14.10

To resolve unmet dependecies run the following command from your terminal

  sudo apt-get -f install

If the problem still persists , go through the solution mentioned here


How to configure shortcuts for workspaces on MATE 1.6

These settings are normally found in Keyboard Shortcuts:

System > Preferences > Hardware > Keyboard Shortcuts

Click where it shows the key combo or says 'disabled' and press the key combination you want.

If you cannot use this feature for some reason or you prefer a CLI method, use Gsettings.

Here are all the possible keybindings for workspace manipulation and their likely default values:

org.mate.Marco.global-keybindings switch-to-workspace-left '<Control><Alt>Left'
org.mate.Marco.global-keybindings switch-to-workspace-11 'disabled'
org.mate.Marco.global-keybindings switch-to-workspace-10 'disabled'
org.mate.Marco.global-keybindings switch-to-workspace-1 'disabled'
org.mate.Marco.global-keybindings switch-to-workspace-12 'disabled'
org.mate.Marco.global-keybindings switch-to-workspace-4 'disabled'
org.mate.Marco.global-keybindings switch-to-workspace-2 'disabled'
org.mate.Marco.global-keybindings switch-to-workspace-3 'disabled'
org.mate.Marco.global-keybindings switch-to-workspace-7 'disabled'
org.mate.Marco.global-keybindings switch-to-workspace-5 'disabled'
org.mate.Marco.global-keybindings switch-to-workspace-6 'disabled'
org.mate.Marco.global-keybindings switch-to-workspace-8 'disabled'
org.mate.Marco.global-keybindings switch-to-workspace-prev 'disabled'
org.mate.Marco.global-keybindings switch-to-workspace-right '<Control><Alt>Right'
org.mate.Marco.global-keybindings switch-to-workspace-9 'disabled'
org.mate.Marco.global-keybindings switch-to-workspace-down '<Control><Alt>Down'
org.mate.Marco.global-keybindings switch-to-workspace-up '<Control><Alt>Up'
org.mate.Marco.window-keybindings move-to-workspace-8 'disabled'
org.mate.Marco.window-keybindings move-to-workspace-10 'disabled'
org.mate.Marco.window-keybindings move-to-workspace-12 'disabled'
org.mate.Marco.window-keybindings move-to-workspace-11 'disabled'
org.mate.Marco.window-keybindings move-to-workspace-left '<Control><Shift><Alt>Left'
org.mate.Marco.window-keybindings move-to-workspace-down '<Control><Shift><Alt>Down'
org.mate.Marco.window-keybindings move-to-workspace-1 'disabled'
org.mate.Marco.window-keybindings move-to-workspace-2 'disabled'
org.mate.Marco.window-keybindings move-to-workspace-3 'disabled'
org.mate.Marco.window-keybindings move-to-workspace-4 'disabled'
org.mate.Marco.window-keybindings move-to-workspace-5 'disabled'
org.mate.Marco.window-keybindings move-to-workspace-6 'disabled'
org.mate.Marco.window-keybindings move-to-workspace-7 'disabled'
org.mate.Marco.window-keybindings move-to-workspace-9 'disabled'
org.mate.Marco.window-keybindings move-to-workspace-up '<Control><Shift><Alt>Up'
org.mate.Marco.window-keybindings move-to-workspace-right '<Control><Shift><Alt>Right'
org.mate.Marco.window-keybindings toggle-on-all-workspaces 'disabled'

To change one use the gsettings set command, for example

gsettings set org.mate.Marco.window-keybindings move-to-workspace-3 '<Mod4>3'

This command sets super+3 as a shortcut to move the current window to workspace 3.

To remove a keybinding, set it to 'disabled'. See man gsettings for more detail. You may have to experiment to achieve exactly what you want.


Chromium flags are added options to the command line used to start an app. You can use them when starting Chromium from the Terminal, in a script, or make a shortcut on the desktop or menu.

Your command would look something like chromium-browser --event-listeners-default=true but as per the list of available flags, there is no event-listeners-default so you will need to go back to where you read about that and get the correct phrase to use.


You can mostly get around this using a startup script.  Eg I'm using:

#!/bin/bash
#
# AfterShot Pro startup script
# make symlinks to this script anywhere in your $PATH
#

FindPath()
{
    if [ "`readlink "$0"`" = "" ]; then
        pushd $(dirname "$0") >/dev/null
        FP="$(pwd)"
        popd >/dev/null
        echo "${FP}"
    else
        FP=$(readlink "$0"|sed -e "s/ /\\\ /g")
        echo `dirname "${FP}"`
    fi
}

INSTALL_PATH="/opt/AfterShotPro"

LD_LIBRARY_PATH=${INSTALL_PATH}/lib:${LD_LIBRARY_PATH}
XLIB_SKIP_ARGB_VISUALS=1
export LD_LIBRARY_PATH
export XLIB_SKIP_ARGB_VISUALS
echo "Install Path:          " ${INSTALL_PATH}
echo "LD_PATH:               " $LD_LIBRARY_PATH
echo "XLIB_SKIP_ARGB_VISUALS:" $XLIB_SKIP_ARGB_VISUALS

if [ -x "${INSTALL_PATH}/bin/AfterShotPro" ]
then
    cd "${INSTALL_PATH}/bin"
    #ldd  "./AfterShotPro"
    exec "./AfterShotPro"  "$@"
    #echo "all is well in the world"
else
    echo "didn't run it (obviously)"
fi
exit 1

HOWEVER

I came across your post while looking for an answer to a problem with this approach.  As a side effect it leads the LD_LIBRARY_PATH variable set when running sub-programs, causing them to fail.  I'm sure this is the problem when trying to run something as a post processing option on an export.  I haven't yet verified it, but I suspect it's also why nothing happens when I try to pass an image to an external editor, or view web links (eg help).


The /etc/nologin file is normally deleted on reboot, so nothing you are really doing wrong.
To test, just create the /etc/nologin and try to login via SSH or similar to see the message.


If a snap is called mysnap, then by default (with strict confinement) it has a private /tmp, which is /tmp/snap.mysnap/. Having a private /tmp is good for security.

If you are creating a snap package, you can apply either the classic or devmode confinement, and it will be able to see the system-wide /tmp.


You can set up your vhosts in

/etc/apache2/sites-available

For every vhost you like to have make a conf file in this directory.
In the vhost configuration you can set your document root.
The name of the file must end with .conf

So for example: /etc/apache2/sites-available/projectname.conf:

<VirtualHost *:80>
  ServerName projectname.pl

  DocumentRoot "/home/Sites/projectname/public"

</VirtualHost>

Now enable your site with:

sudo a2ensite projectname

And restart apache:

sudo /etc/init.d/apache2 restart

Then edit your /etc/hosts file.

Just paste the line:

127.0.0.1 projectname.pl

on the end.

Now you can access your site with http://projectname.pl


Does dconf remove/rewrite the configuration files placed in ~/.config/[program] when using 'reset' command?

The best method to determine what was changed is to place parts of your home folder under source code version control system such as Git.

While using such method you can determine that one binary file was changed - it is named ~/.config/dconf/user. So the short answer is yes - the file was changed.

Personally I'm using the following method to determine what was changed after editing settings of some application (from GUI, with dconf/dconf-editor or by gsettings):

I save current settings to the files

dconf dump / > /tmp/dconf_before
gsettings list-recursively | sort --unique > /tmp/gsettings_before

Then I change some settings.
Afterwards I save new settings to the files

dconf dump / > /tmp/dconf_after
gsettings list-recursively | sort --unique > /tmp/gsettings_after

Compare obtained files with meld (visual diff tool):

meld /tmp/dconf_before /tmp/dconf_after
meld /tmp/gsettings_before /tmp/gsettings_after

Free bonus: you can create small dconf- or gsettings-based dumps to apply the settings from terminal and get settings that you like with one long command:

* using dconf:

dconf load / << EOF
[org/gnome/gedit/preferences/editor]
display-right-margin=true
highlight-current-line=true
display-overview-map=true
bracket-matching=true
auto-save=true
create-backup-copy=true
display-line-numbers=true
insert-spaces=true
background-pattern='grid'
wrap-last-split-mode='word'
auto-indent=true

[org/gnome/gedit/preferences/ui]
show-tabs-mode='auto'

[org/gnome/gedit/plugins]
active-plugins=['time', 'quickopen', 'filebrowser', 'spell', 'pythonconsole', 'sort', 'externaltools', 'modelines', 'snippets', 'docinfo']

EOF

* using gsettings:

org.gnome.gedit.preferences.editor auto-indent true
org.gnome.gedit.preferences.editor auto-save true
org.gnome.gedit.preferences.editor background-pattern 'grid'
org.gnome.gedit.preferences.editor bracket-matching true
org.gnome.gedit.preferences.editor create-backup-copy true
org.gnome.gedit.preferences.editor display-line-numbers true
org.gnome.gedit.preferences.editor display-overview-map true
org.gnome.gedit.preferences.editor display-right-margin true
org.gnome.gedit.preferences.editor highlight-current-line true
org.gnome.gedit.preferences.editor insert-spaces true
org.gnome.gedit.preferences.ui show-tabs-mode 'auto'
org.gnome.gedit.plugins active-plugins ['time', 'quickopen', 'filebrowser', 'spell', 'pythonconsole', 'sort', 'externaltools', 'modelines', 'snippets', 'docinfo']


Sound Problems with LXDE (trusty) running through Crouton on ASUS flip (ARMv7 chip)

Updated Lubuntu to release 16.04. Audacity is now functioning correctly.


I cannot watch streaming video with firefox 47.0 on 14.04

Your best bet is to just use the Firefox (NPAPI) version.  To install the version for Firefox, run:

sudo apt install flashplugin-installer


Installation of Ubuntu without formatting C drive

No, Ubuntu is not a new version of Windows, so you can't simply upgrade from an existing version of Windows to it. It is a different operating system. You will have to have both systems installed by resizing the existing Windows partition and creating a new one for Ubuntu, or you can replace Windows completely by dedicating the entire disk to Ubuntu.

If there is important data you wish to keep, you should create a backup of that data on an external drive first, and then proceed to install Ubuntu and get rid of Windows, if you only want one OS on the computer.


Building on @guiverc's suggestion to move one or more large directories to your HDD, starting with /home:

cp or rsync the current contents. I would use sudo rsync -alz --progress /home /myHDD/ but whether you use cp or rsync is mainly a matter of taste. This will create a new directory /myHDD/home. Owners and permissions of the files under /home should be preserved as well (because of the -a flag).
To be absolutely sure, repeat the command. The second time nothing should be actually copied, except perhaps some cache or history files from an active user, but nothing really significant.
compare du -s /home to du -s /myHDD/home. The output should be virtually the same.
When you are satisfied that the files have all been transferred, do sudo ln -s /myHDD/home /home. This will basically delete the directory /home on your root partition, and refer all traffic to and from the /home folder to the myHDD partition.
At this point, every access to /home will actually be to the HDD and the space on your SDD will be freed up.

Make sure that the myHDD partition is mounted correctly at every boot. Otherwise you will not be able to login.


How to prevent Juniper Network Connect breaking DNS resolutions

First: clicking the Sign Out button in the Network Connect window (the window that shows the VPN IP while connected) and

Then clicking on the Sign Out button in the logged-in web page avoids this problem.

Please indicate in comment if this works or not.

Thanks


My laptop won’t boot . Error : hci0 failed to send intel_write_ddc (-22)

I also had this, and wasted hours until I realized it wasn't a boot problem at all.
What happened what that the GUI was just gone, and for some reason that intel_write_ddc error ended up sitting there on the screen, insteead of any indication of what was really happening. The bluetooth error was probably there all along.
But switching to tty1 (ctrl+alt+F1) revealed that boot was successful and everything was there, so I've just ran sudo apt-get install ubuntu-desktop and got my GUI back.


There's no reason for the webserver to able to write to that directory by default. The administrator should decide which directories and files the webserver should be able to modify, and grant permissions on those accordingly. Having /var/www be owned by root is a safe and secure default.


You can use KDE Partition Manager 3.0 (available on 17.04) which supports LVM. Moving partitions is not really possible from command line.

Tools like GParted or KDE Partition Manager have some own code to copy data to another place in disk, they don't use libparted for that.


Yes, there is a faster way to write in UDF filesystem in CD/DVD. It called packet writing, introduced with UDF version 1.50.

In short, packet writing it is a way to write to CD/DVD or other media in a manner similar to reading, writing, deleting from a normal folder. This method supports both CD/DVD write-once media as well as Rewritable media. Obviously, you won't get back the free space if you delete something from write-once media like CD-R, DVD+R, DVD-R etc.

The packet writing with UDF filesystem should be supported in kernel level and the support is default since kernel 2.6.10. For more information about kernel support in debian systems, look at this page.

The detailed procedure was described in this page under the section Formatting and using a UDF DVD-RW or CD-RW for packet writing. Don't be confused with the step 3 (which creates an empty session) with the creation of a large file with UDF filesystem. That process was listed just after this one, which is not packet writing.

Update: For convenience of the viewer, I'm quoting the procedure section here.

Formatting and using a UDF DVD-RW or CD-RW for packet writing
-------------------------------------------------------------

The commands differ depending on whether you are using DVD or CD
media.

1) Edit /etc/default/udftools and add your drive for packet writing.
For example, if your CD/DVD writer is /dev/hdc and you want it
available as the default /dev/pktcdvd/0, then use the setting
"DEVICES=/dev/hdc". Execute "/etc/init.d/udftools start" afterwards to
register the device.

If the device name /dev/hdc differs on your system, adjust the
following commands as appropriate.

2) Prepare the medium in restricted overwrite mode:

DVD-RW: dvd+rw-format -force /dev/hdc
 CD-RW: Do nothing, skip this step!

3) Write an empty session spanning the whole medium. It seems that
without this step, any attempt to create the UDF filesystem will fail.

DVD-RW: growisofs -Z /dev/hdc=/dev/zero
 CD-RW: cdrwtool -d /dev/hdc -q

4) Format the packet device in UDF format.

DVD-RW: mkudffs --udfrev=0x0150 --spartable=2 --media-type=dvdrw /dev/pktcdvd/0
 CD-RW: mkudffs --udfrev=0x0150 --spartable=2 --media-type=cdrw /dev/pktcdvd/0

The parameters require some more explanation: For --udfrev, use either
0x0150 for UDF version 1.50, or 0x0201 for UDF version 2.01. The
version decision has mostly to do with compatibility:
  - Windows 98/ME can read up to v1.02
  - Windows 2000, Mac OS 9, Linux 2.4 can read up to v1.50
  - Windows 2003/XP can read up to v2.01
  - Linux 2.6 can read up to v2.60
For normal data, UDF 1.50 is OK. UDF 2.00 and 2.01 introduce
additional functionality for streaming audio/video.

Possible values for --media-type are: hd dvdram dvdrw worm mo cdrw cdr.
Use the one appropriate for your medium/device.

5) Mount the disc. The "noatime" option is important: It will reduce
the amount of writes to the device and thus increase its lifetime. You
may first have to create the mount directory using "mkdir
/media/dvd0":

  mount -t udf -o rw,noatime /dev/pktcdvd/0 /media/dvd0

The "sync" mount option might also be useful, but will typically cause
an increased number of write accesses to the medium. From now on, the
root user can access the filesystem under /media/dvd0 using read and
write operations.

6) If regular users should also have write access, modify the
permissions as follows _while the filesystem is mounted_:

  chgrp plugdev /media/dvd0       # Set group ownership to "plugdev"
  chmod g+rwx /media/dvd0         # Give full read/write access to group

Now all users who should have access to the disc need to be added to
the "plugdev" group using "adduser <username> plugdev".

To also allow these users to mount and unmount/eject the medium, you
can use either of these two routes:

 - Install the "pmount" package and add the device to the list of
   allowed devices using "echo /dev/pktcdvd/0 >>/etc/pmount.allow".
   All members of the group "plugdev" will then be able to mount the
   disc using "pmount /dev/pktcdvd/0 dvd0" and unmount it using
   "pumount /media/dvd0".

 - Add a line like the following to /etc/fstab:
   /dev/pktcdvd/0 /media/dvd0 udf rw,noatime,users,noauto 0 0
   This will enable _all_ users to mount the disc using
   "mount /media/dvd0" and unmount it with
   "umount /media/dvd0". However, with the permissions from step 5)
   above, only the members of group "plugdev" ought to be able to
   write to it.


How to insert N+1 new lines after each line of a file with sed

Here's one way:

prime the hold space with your desired InsertedLine; I'm not sure the best way to do this but one option is to swap the 1st line pattern space into the hold buffer, replace the (now empty) pattern space with InsertedLine, then swap back:
 1{x;s/^/InsertedLine/;x}

now proceed by appending the hold space to the pattern space, printing the result, then stripping everything up to the last InstertedLine and appending that back to the hold space:
 G;p;s/.*\n//;H

so that the hold space gets a new InsertedLine appended to it each time.
So given
$ cat file
This is line1
This is line2
This is line3

then
$ sed -n -e '1{x;s/^/InsertedLine/;x}' -e 'G;p;s/.*\n//;H' file
This is line1
InsertedLine
This is line2
InsertedLine
InsertedLine
This is line3
InsertedLine
InsertedLine
InsertedLine

Of course, non-sed options may be simpler ex.
awk '{for(i=0;i<FNR;i++) $0 = $0 ORS "InstertedLine"}1' file

or
perl -pe 's/$/"\nInstertedLine" x $./e' file


why cant I change my launcher icon size?

Yeah
press cntrl + alt + t to open the terminal ,and type

unity --reset

ccsm is very dangerous in unity,so dont play with it if it is not necessory :)


This is quite common with new i2c touchpads. They announce themselves as a touchpad and a mouse for compatibility mode.
In most cases this dosn't cause any trouble. if it does, you can disable the "mouse" in Settings -> Mouse and Touchpad.
If your Desktop Environment doesn't have the option, you can add
xinput disable 10

command to Startup Applications.


Could somebody give a link to genymotion archive for downloading tool ecpecially for ubuntu 14.04? I couldn't find it


WoeUSB error while creating windows 7 bootable usb

Ignore the error, USB should still boot fine.
https://github.com/slacka/WoeUSB/issues/275

It turns out the USB drive was successfully written. Only some cleanup process crashed causing further writes on the same session to crash as well.

However I would say WoeUSB is now obsolete. I would recommend Ubuntu's mkusb tool:
https://help.ubuntu.com/community/mkusb
This will author Windows & Linux USB drives. (However if you have a PC that'll only boot a Windows authored drive, that drive has to be 8GB or larger. You may need to author a Linux image the Windows way for instance, eg: Clonezilla is not 8GB, the pen drive still needs to be 8GB or larger or script will not execute.)


The block size reported by fdisk doesn't seem to be the NTFS cluster size. I'd check the cluster size using ntfsinfo instead:

sudo ntfsinfo -m /dev/sdb1


To solve my problem I had to check the acpi kernel boot parameters.
When I tried to install ubuntu, before getting to the install menu my computer crush.So I tried to access the GRUB boot menu by pressing the shift button when my system boot, in the menu at the bottom I pressed f6 and checked the nomodeset kernel boot parameter and I was able to install ubuntu but my computer was very slow after the installation. So I tried to reinstall it but this time with checking the acpi=off kernel boot paramater and now everything works fine. (see image below)


I am guessing that you want to display filenames along side their hexadecimal value.  In that case, here is a simple line of code to demonstrate that that is possible:

$ touch abc 'd e f'
$ find . -maxdepth 1 -type f -exec sh -c 'printf "%-10s %s\n" "$1" "$(printf "$1" | xxd -pu )"' None {} \;
./abc      2e2f616263
./d e f    2e2f6420652066

The idea is that for each file we find we run printf with a format string and two arguments.  The first argument is the file's name and the second is the file's name converted to hex with the utility xxd.

Further customization of the output is left as an exercise for the reader.


The file 'Universidad - Acceso directo.lnk' is a windows shortcut file. It therefore will work only as expected from within the Windows operating system.
Linux symbolic links provide similar functionality. Since the windows file system ntfs appears to support them to some extent, you could create a symbolic link and use that for navigation.
A somewhat more complicated approach is to create a folder in the folder where the windows shortcut resides, and then mount --bind your target folder to that folder. Next to being more complicated, it will work in Linux only.


How to run a script when I connect a device?

Check the udev attributes for target device (if you know it). Example:

udevadm info -a -n /dev/ttyACM0

Or monitor udev events (then plug your device):

udevadm monitor --environment --udev

Use specific attributes to match target device and Create new udev rules file in /etc/udev/rules.d/. Use ACTION=="add" to match device added event and RUN+="..." to run needed script. Example

ACTION=="add", SUBSYSTEM=="net", KERNEL=="eth0", RUN+="/usr/bin/ethtool -s eth0 wol d"

References:

Udev rule cheatsheet
Writing udev rules
man udev


A black screen with EVERY keystroke? Both shell and X? Are you sure you are not seeing bash history (How to clear bash history completely?)? Wish you had made a photo, you could be referring to smth else than logged keystrokes.

Ubuntu doesn't log keystrokes, at least if you have a stock distribution which hadn't been tampered with. It may be possible that you had a keylogger accidentally installed on your machine. You can check here for reference: How can I detect a keylogger on my system?, but in your place I'd first try to establish what exactly you are seeing on the screen.


How do I make Ubuntu recognize my WiFi network card?

first uninstall bcmwl-kernel-source and then make sure firmware-b43-installer and b43-fwcutter are installed

  sudo apt-get remove bcmwl-kernel-source
  sudo apt-get install firmware-b43-installer b43-fwcutter


Left Alt button toggles between open windows and consumes  key combinations

Following on a comment by @Fuseteam, I went back and logged in Unity desktop to check out some things. I also went to the All Settings>Keyboard>Shortcuts and started to verify each and every shortcut combination (something I'd already done numerous times but... in Gnome/Ubuntu desktop).

I noticed that in the "Launchers" group, next to "Key to show the HUD" there was this: Left AltL, without the plus sign "+" between the 2 keys (as is the norm in any other key combination)! So, I cleared/disabled the shortcut, exited, logged back in my normal Ubuntu desktop (Gnome) and the issue was no more!

So this combination (which I don't remember ever setting up myself and how could I ever enter it without the plus sign?!) was holding back the Left Alt from functioning properly. Maybe it was the upgrade from 16.04 to 18.04 to blame which was not a clean install? Anyway, I hope this can help others having a similar issue/strange behaviour.

UPDATE: This worked only temporarily till my laptop resumed from suspend. Since then, the issue is back exactly as before.


Try this.

Open a terminal and enter:

~$ cd /usr/src
/usr/src$ ls

You will see something like this:

total 16K
drwxr-xr-x 24 root root 4,0K Σεπ  29 22:35 linux-headers-3.2.0-54/
drwxr-xr-x  7 root root 4,0K Σεπ  29 22:35 linux-headers-3.2.0-54-generic/
drwxr-xr-x  3 root root 4,0K Σεπ  29 22:56 nvidia-319-319.32/

The output may (and will) differ according to your set up.

Take a close look at the folders named linux-headers-*. These are the headers from all your linux images that you have installed. If you have too many of them, they will take up A LOT of space and inodes. You only need to keep the latest one you boot from.

Let's say you have an older kernel, eg. 3.2.0-53. To remove it, type:

sudo apt-get remove --purge linux-image-3.2.0-53-generic linux-headers-3.2.0-53 linux-headers-3.2.0-53-generic

for each one of them.

If all of the above fail, then try to delete the OLDER KERNEL headers' folders manually:

sudo rm -rf /usr/src/linux-headers-3.2.0-53{,-generic}


Can I make a syslinux install to USB flash drive persistent using a persistent partition on the same drive?

Persistent partitions work with YUMI.

YUMI does syslinux a bit differently, (with a dash of grub4dos), substituting a casper-rw partition for a casper-rw file works, but is a little redundant as multiple persistent casper-rw files greater than 4GB are possible, while only one persistent partition is possible.

Do not use the persistence option when making the USB.
After install shrink the OS partition and make a new ext4 partition labeled casper-rw.
Add the word persistent to /MULTIBOOT/multiboot/[OS ISO name]/grub.cfg just after "noprompt".

Windows data can be stored in a folder on the OS partition. It can be accessed by root in the isodevice folder when booted from the USB.


Why won't ubuntuone service start automatically at boot?

It does not start automatically on boot because it needs to know for witch user to connect, in case there are more users set for computer login.

There is a Startup section in the System drop down menu, where you can add it to start automatically at login.


How do I setup Audacity and PulseAudio to Record from a line in?

Open gnome-volume control, and choose line-in from the input tab.

NB: While the screenshot is outdated, in the latest versions of Ubuntu this has been tested and works. However, results may vary depending on the sound card. If you encounter issues, please ask a new question, linking to this question for context.

Then in audacity ensure that it is set to record from Pulse. This will ensure that it records whatever pulseaudio is recording.


Lubuntu 17.10 won't shutdown, but can reboot. end Kernel panic - not syncig: Attempted to kill init! exitcode=0x00000000

Do not know why, but after the Lubuntu 18.04 update the problem has solved itself.


sudo uses its own PATH definition. Read man sudoers, which says, in part

By default, the env_reset option is enabled.  This causes commands to be executed with a
     new, minimal environment.  On AIX (and Linux systems without PAM), the environment is
     initialized with the contents of the /etc/environment file.  The new environment contains
     the TERM, PATH, HOME, MAIL, SHELL, LOGNAME, USER, USERNAME and SUDO_* variables in addition
     to variables from the invoking process permitted by the env_check and env_keep options.
     This is effectively a whitelist for environment variables.  Environment variables with a
     value beginning with () are removed unless both the name and value parts are matched by
     env_keep or env_check, as they may be interpreted as functions by the bash shell.  Prior to
     version 1.8.11, such variables were always removed.

You could replace each command with its absolute path. Find them like this:

for i in efetch seqret samtools fastq-dump bwa bowtie2-build bowtie2 ; do
    type -p $i
done


You can delete a file like this sample:

$myFile = "testFolder/sampleDeleteFile.txt";
unlink($myFile) or die("Couldn't delete file");

With the function sleep() you can wait 2h (7200000ms) after deleting the files and restart each time if the user visits the site again within these 2 hours.

I hope this will helps you. Otherwise you must post your code for specific changes...


How do i figure out which process is causing a beeping sound?

Open the Sound Preferences, and go to the last tab: Applications.

If an application is making any noise, it will probably be listed here. Take a look and see if the application is there (it may be there only when the sound is heard, so keep looking for a while).


How to copy many files to clipboard from the command line?

In fact, the command I posted in the original question was applicable to a wide range of situations:

find ${PWD} -name "*.pdf"| xclip -i -selection clipboard -t text/uri-list

the only requirement is for the first command (find in this case) to generate a list of absolute filenames to files which need to be copied. If you check man find, you'll see that you can modify the command to find files created later than particular date, larger than particular size, having particular permissions, matching a particular regexp etc.

If you want to have a short-cut command for a particular use case - e.q. copying files from the current directory and below matching a particular mask, you can write a short script:

#!/bin/sh
find "$PWD" -name "$1" | xclip -i -selection clipboard -t text/uri-list

and call it with

cb "*.txt"

(where cb is the name of the script)


Control opening screen position and size with MPlayer?

Two different sets of options that can be combined for ultimate output control:
1. Window Size:
The easiest way to set a size for the MPlayer window is to use the -xy option. If the value of this option is greater than 8 the width of the video window is set to that value. The height is then calculated from this width to maintain the correct aspect ratio.
To have a window 800 wide you would use the following:
mplayer -xy 800 test.mp4

2. Screen Position:
This can be set using the MPlayer -geometry option utilising either:

x and y coordinates:
50:40 Places the window at x=50, y=40

Percentage values:
50%:50% Places the window in the middle of the screen

To run a video in the middle of the screen try the following:
mplayer -geometry 50%:50% test.mp4

3. All together now...
Finally, to run the movie in the center of the screen, using a window width of 800, use the following:
mplayer -xy 800 -geometry 50%:50% test.mp4

How cool is the command line :)


How to uninstall/reinstall Raderon 7500 driver?

There are multiple drivers for ATI/AMD Radeon graphics cards, a proprietary one and a free, open-source one.

The free open-source driver is contained in the xserver-xorg-video-radeon package.

The proprietary driver is provided by the fglrx package.


Laggy Windows, and cant install Post Release update driver

I can't comment on the failed post-release update in the restricted drivers tool, but I have experienced the laggy windows and I read that you can un-tick "Sync to VBlank" in the OpenGL module in the General section of ccsm (if you don't have ccsm, sudo apt-get install compizconfig-settings-manager, then just run "ccsm").  I also read this affects mostly ATI cards.


Try this changes:

ANT_HOME=/home/computeruser/apache-ant-1.9.4
JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
SDK_HOME=$HOME/adt/sdk

PATH=$PATH:$SDK_HOME/tools:$SDK_HOME/platform-tools:$HOME/bin:$ANT_HOME/bin:$JAVA_HOME/bin
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting

I removed some redundant path and I defined variable to improve readability

When you change your .profile you should run:

   source ~/.profile

or logout from terminal session and login again.


Well, I was able to put a pretty good band-aid on the problem.

For anyone who might have the same problem in the future:

What happened was for some reason the keycodes of my arrow keys and delete keys were changed. Either due to foreign influences or bug influences.

Xev wasn't recognizing my up key because it's keycode was above 255, it is now 425. So I couldn't use xmodmap to remap the up key.

I used instead showkey to view it.

And went through this wiki to change it: https://wiki.archlinux.org/index.php/Map_scancodes_to_keycodes

Hope it helps souls in need ;)

Edit

I found another solution to the problem, rebooting the computer and pressing F12 during boot - It will load bootable devices. Just pick the default, it should start working again.


Trying to enable .htacccess in apache2 but my default.conf is relatively empty

My problem was that I was trying to use /var/www/ in my 000-default.conf file which actually utilizes /var/www/html, and I essentially replicated that error to each subdomain I tried this on (would just tell it to use /var/www/ not the actual subdomain's folder).


How do I install and use Times New Roman Font with LibreOffice Writer?

The easy way to add fonts...

open the terminal application
cd
ls .fonts
if .fonts folder doesn't exist, create it...
mkdir .fonts
move a folder of Times New Roman fonts into .fonts folder


Enable color emojis in Chrome, Xubuntu 18.04.1

I was going to comment buuuut I don't have enough reputation  (hey look, here's an emoji to check if it is working or not!)

This solution worked for me "partially", it did fix the emojis in Discord and in the Terminal, but in Firefox it was still a mix of "some of them works, some of them doesn't", I also found this but that didn't fix the issue in Firefox...

So here's what I did to fix:

Install fonts-noto-color-emoji (sudo apt-get install fonts-noto-color-emoji)

This will make emojis work in the terminal & Mousepad & probably other apps too!

That's it, if you REALLY need emojis working on Firefox (emojis are wonky in Ubuntu too, you ain't losing anything by using Xubuntu), you can do this

Go to ~/.config/fontconfig/conf.d/99-emoji.conf (you will probably need to create the folders!) and add this:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
  <match>
    <test name="family"><string>sans-serif</string></test>
    <edit name="family" mode="append" binding="strong">
      <string>Bitstream Vera Serif</string>
      <string>Noto Color Emoji</string>
    </edit>
  </match>

  <!-- Add emoji generic family -->
  <alias binding="strong">
    <family>emoji</family>
    <default><family>Noto Color Emoji</family></default>
  </alias>

  <!-- Aliases for the other emoji fonts -->
  <alias binding="strong">
    <family>Apple Color Emoji</family>
    <prefer><family>Noto Color Emoji</family></prefer>
  </alias>
  <alias binding="strong">
    <family>Segoe UI Emoji</family>
    <prefer><family>Noto Color Emoji</family></prefer>
  </alias>
  <alias binding="strong">
    <family>Emoji One</family>
    <prefer><family>Noto Color Emoji</family></prefer>
  </alias>
</fontconfig>

fc-cache -fv

Now restart the apps and... that's it! Emojis will work in Chrome and Firefox! Have fun!

(If Firefox emojis are still borked, you can try changing the default Firefox font to Noto Color Emoji)

Keep in mind: Numbers in Firefox will have serifs

Keep in mind²: Apps installed via the Ubuntu store (or snap) won't have emojis working! I'm not sure why this happens... if someone knows how to fix this, let me know!

Firefox @ getemoji.com:
ff in getemoji

Chromium @ getemoji.com:
chromium in getemoji

Firefox @ Google Search:
ff in google search

Discord Canary (Electron):
discord canary with emojis

Terminal (Xfce):
emojis in xfce terminal


Should I use a volume group or a logical volume for /home on LVM?

The whole point of volume groups is to contain several logical volumes. The only reason I can think of to use separate volume groups is if they must be kept on different (sets of) physical volumes (for example, I have a desktop machine with two hard drives and three volume groups: one RAID1-ed between the two drives, and one on each drive).

If you only intend to run Linux on that machine, make a single partition on the hard disk, use that partition as a PV, make a VG containing just that PV, and create one LV per filesystem (root, home, swap).


Just use sed:

sed 's/}{/},{/g' orig.json > new.json

Or, to edit the file in place (this will copy the original to orig.json.bak):

sed -i.bak 's/}{/},{/g' orig.json


First try this:

sudo apt update
sudo apt-get install libnss3

If that doesn't work give this a shot:

sudo apt-get install libnspr4 libnss3 libnss3-nssdb libnss3-tools


What are the differences between "precise" and "precise-updates" and "precise-backports"?

The Ubuntu Help site has the answer:

  "Important Security Updates (raring-security)". Patches for security vulnerabilities in Ubuntu packages. They are managed by the Ubuntu Security Team and are designed to change the behavior of the package as little as possible -- in fact, the minimum required to resolve the security problem. As a result, they tend to be very low-risk to apply and all users are urged to apply security updates.
  "Recommended Updates (raring-updates)". Updates for serious bugs in Ubuntu packaging that do not affect the security of the system.
  "Pre-released Updates (raring-proposed)". The testing area for updates. This repository is recommended only to those interested in helping to test updates and provide feedback.
  "Unsupported Updates (raring-backports)". As the name states, these are unsupported new versions of packages which have been backported to an older release. Packages may contain new features, may introduce new interfaces, and bugs.

For example, the phpldapadmin package that was released for trusty has a serious packaging bug, where it expected a directory structure use in Apache 2.2, whereas trusty had Apache 2.4. It couldn't even be installed. The fix was released in trusty-updates.

For most users, enabling all four shouldn't be a problem most of the time. For a very stable environment, keep only security enabled. Keep updates enabled if some package you're using has a packaging issue. Updates packages have to conform to policies regarding stable updates, so they shouldn't cause breakage and keeping them enabled all the time is recommended. Keep proposed enabled if you don't mind testing out new things. This might cause things to break on occasion, so if you're not a fan of the " latest and greatest" philosophy, keep it disabled unless you have a problem and devs ask you to enable it. Keep backports enabled if you wish to have software that is typically only available for a newer release of Ubuntu.


Incremental upgrade of EOL version of Ubuntu Gnome via DVD

While `sudo do-release-upgrade' focuses on updating everything and removing broken packages, this method updates trying to keep as many programs as possible. Note: in some cases, it is impossible to keep old packages: For example, 'libav' being replaced with 'ffmpeg'. the only fix is to hope the broken package has a replacement that uses the new library.

First run: apt-mark showhold to be sure nothing is being held back.
If you find held packages then remove the hold and update them I find aptitude is the easiest way for marking and updating multiple packages at one time. Aptitude will also suggest removal of orphaned packages (packages that are no longer used by anything).
sudo apt-get autoremove will also remove packages that are no longer used.

After your system is fully up to date in the current version, change you sources to point to the version of Ubuntu that you want.
EX: change "trusty" to 'xenial"

Next run this series of commands:

sudo apt-get update This updates the package list
sudo apt-get upgrade This upgrades packages that can be upgraded without changing other packages. thus easing the dependency resolving in the next step.
sudo apt-get dist-upgrade This upgrades the remaining packages that can be upgraded with a minimal amount of removals.

You now have the new version of Ubuntu, and need to clean up obsoleted packages. Again I find aptitude to be the easiest way to do this.
Open aptitude and it will already have a list of suggested removals (orphaned packages), it is generally safe to remove them.
Now go through the remaining obsolete packages. In most cases, remaining packages have been replaced with another: ie gt4 with gt5 and gstreamer0.1-good with gstreamer1.0-good. The replacements will be under the heading of new packages.
This step is the most critical and why I like aptitude, replacing the obsoleted packages will often break other packages; however, the broken package usually also has a replacement package to correct dependencies.
Aptitude will list broken packages and recommend fixes. Check over actions to be performed before committing to them.

When you have finish, clean your package cache: sudo apt-get autoclean this will remove the package cache for packages that are no longer used.


How do I get my Juju Charm officially recognized?

Once you've pushed, published, and set the right permissions to the charm store your charm is immediately available for people to deploy.

Some charms live at the root space of the charm store, for example: http://jujucharms.com/ntp

We call these charms recommended and they are peer reviewed and production-quality. These have more rigorous requirements than personally namespaced charms, you can follow those instructions here:

https://jujucharms.com/docs/stable/authors-charm-policy


If you are using Wubi, it should be easy and not touch existing Windows installation. However, using Wubi is not recommended. It has cons in performance, has no ability to hibernate and it has unsupported releases. I suggest you to move to alongside install when you are ready.


Error while installing apache 2 in ubuntu 16.04-LTS

Apache2 depends on another package (linux-generic), which wasn't configured properly. Run the command

sudo dpkg --configure -a

and it should be able to correct itself.

What this command does:
Sudo (execute this command with root privileges, because regular users aren't allowed to use dpkg)
Dpkg (the program for interacting with software packages)
--configure (an argument passed to dpkg, e.g. "here's what i want you to do, dpkg: configure some package)
-a (automatic: instead of configuring a specific package, configure whichever packages need configuring)

If it doesn't work, try running sudo apt-get install -f(to fix broken packages) and then try running sudo dpkg --configure -a again.


You can check what consumes a lot of power with powertop (must be run as root/with sudo). The program has a tab called tunables (switch with Tab) where you can toggle several settings (Toggle with Space). Watch the power consumption before and after on the overview tab and check if everything still works as expected. These settings are reset after a reboot.

There is also a utility called laptop-mode-tools which automatically switches most tuneables to a powersaving mode when you run on battery.

Both are in the standard repositories, so you can add them with apt:

sudo apt-get install powertop laptop-mode-tools


Dual Boot Ubuntu and Windows 10 - Which On my way! First?

Windows. Windows bootloader doesn't play nice with other operating systems.
If you install Windows first, then Ubuntu, grub should pick up the Windows partition during install and when you've finished, you'll have the choice of which OS to boot into.

Just be sure to select manual partitioning during your Ubuntu install to keep the Windows install intact.

And as oldfred says above, make sure you install both in the same mode (UEFI or BIOS)


How to make a snap package from a python project without setup.py?

Please, create a setup.py because it is the regular workflow. Only if you have real issue that prevents you from doing so.

Most of the packagers are dealing with snapcraft as black-box, They are just its users. So please don't expect easy shortcuts.


You need to edit the make.inc
On Ubuntu:
wget https://www.netlib.org/lapack95/lapack95.tgz
tar xfvz lapack95.tgz
cd LAPACK95
nano make.inc
change the following lines and save make.inc
FC    = gfortran -ffree-form
FC1   = gfortran -ffixed-form
OPTS0 =
save the file
cd SRC/
make single_double_complex_dcomplex


Asterisk should be able to provide that functionality.

As a matter of fact take a look at this link: http://www.asterisk.org/applications/acd


Xubuntu 19.10 can't mount XFS partitions

ok so not sure what happened but I got it to work.
I cleared off the old partition by running sudo fdisk /dev/sdb and hitting d to delete the only partition. then I chose the option to create a new blank "dos" partition, hit w to write changes to disk.

I fired up gnome-disks and created a new XFS partition on the disk.  Was able to mount it, and then set it up in FSTAB using the gnome-disk tool.  Rebooted and the drive was mounted and am now able to copy files to it.


The openVswitch versions should be fairly recent with 2.5 in 16.04 and 2.6 in 16.10 now. But no matter what version, you won't find that code in OVS  anyway. The OVS package only adds the parm to call "--vhost-owner".

In fact this is a DPDK patch added to the Ubuntu packaging that is available here in git

FYI - This is only an interim solution until the Projects settle on who/how to solve it. There are plenty of old discussions linked in the patch I referred to, but there were way more in the meantime. The latest approach to that I know of is this


Do I need to call Python in a cron job script?

Famous mistake with cron : there is no env :: Edit the shebang #!/bin/env python3 with the full path of python 3 binary. Find it with whereis python3
The shebang could be something like #!/usr/bin/python3.7
OR you can also call the python binary in the crontab file
0 1 * * * /usr/bin/python3.7  /home/[user]/scripts/garbage.py


setxkbmap us command messed with language settings: can't use second language

setxkbmap -layout ru,us

Then check if the input language matches the one displayed in the gui. If not:

setxkbmap -layout us,ru


Cannot upgrade after installation of xsane

I reinstalled Ubuntu 14.4 from a USB and have taken a mental note only to use the Software Centre unless doing so is impractical.


I just fixed it.

I just realized that some other sites where also blocked. incidentally those sites were exactly the sites that a blocked when i tried the self control app. i went to the apps homepage and realized that it does create rules for iptables. so i just flushed the rules of the iptables and everything works just fine now.


Laptop won't suspend on 16.04 (Kernel 4.4.8)

I figured it out so I'm posting an answer for those who are stuck like me.

Since pm-suspend worked perfectly for me, I edited this file:

/etc/default/acpi-support

Looked for this line:

SUSPEND_METHODS="dbus-pm dbus-hal pm-utils"

Changed it to this:

SUSPEND_METHODS="pm-utils"

Now it works like it should!


I deleted disk partitions - installing Ubuntu 11.04 to WIN7 build - I need windows back but how?

If I'm discerning what you're saying correctly and you installed Ubuntu on the drive in which Windows 7 used to be installed, then you can't bring it back (if you still have it on one of your partitions, then this utility can help you repair your boot).

I'm not sure why you have trouble with installing Windows from a flash drive. Are you suggesting that it would work from a CD? In any case, if you can't install Windows that way, you can't install it at all. I believe at one point during the installation Windows gives you the option of loading additional drivers. If you have a driver disk for your laptop, perhaps you can try copying it on a flash drive and have the installer load the drivers.


combine the rows to file3 only if the date is present in both files in sorted order of dates and month

Here you are: script reads every line of file1.csv and if date found in file2.csv write both strings to file3.csv

#!/usr/bin/env bash

while IFS="" read -r string1 || [ -n "$string1" ]
do
  date=$(cut -d',' -f1 <<< "$string1")
  string2=$(grep "$date" file2.csv)
  if [[ "$string2" ]]; then
    echo "$string1" >> file3.csv
    echo "$string2" >> file3.csv
  fi
done < file1.csv


Printing from HP-UX v11.11 via LPD Protocol (Port 515) to CUPs queue on Ubuntu Server 12.04 i386 does not work

You need to use the cups-lpd daemon to support legacy LPD clients.  It is included in the cups package.  See 'man cups-lpd' for proper usage.


Does ubuntu 18.04 delete files without my consent?

No, Ubuntu does not "delete files without your  consent".


IPhone connect issue on VmWare (Ubuntu Host, MacOS Guest)

I finally worked out,
Here is a solution:
opem vmware edit vid: pid
usb.quirks.device0 = "0xvid:0xpid skip-reset, skip-refresh, skip-setconfig"

disable SIP
install mac ports
sudo launchctl unload
/Library/Apple/System/Library/LaunchDaemons/com.apple.usbmuxd.plist
sudo port install usbmuxd
sudo usbmuxd --foreground
then connect iPhone and let the guest to take control

Disabling SIP

Start vmware
select guest and "power to firmware"
in efi menu, enter setup > config boot options > add boot options > select recovery partition > select boot.efi
at input file description hit  and type in label e.g. "recovery" > commit changes and exit
boot from recovery and be patient
follow prompt until you see OS X Utilities menu
At the very top menu select Utilities > Terminal
In terminal enter "csrutil status"
then csrutil disable
then csrutil status
then reboot > hit enter once or twice
Double check in OSX Terminal app to ensure SIP is disabled

Finally, disable HiDPI:
$  sudo defaults write /Library/Preferences/com.apple.windowserver DisplayResolutionEnabled -bool NO
Referenced from:


Only Nginx home page appears after successful install of WordPress on Ubuntu 16

So after spending hours poring over the config files, I decided to try the one thing that someone suggested I not do, which is to change server_name from dancortes.press to www.dancortes.press. When I did that, the problem was solved. I can now view my the WordPress 4.8 core files I downloaded.

The issue was that in my DNS records I did not have it as a redirect but instead CNAME www dancortes.press, so in such a case I did have to change server_name to www.dancortes.press.


Open up a terminal in the GUI, and sudo nano /etc/default/grub.

Add either of the following to the GRUB_CMDLINE_LINUX_DEFAULT line:

nomodeset

or

vga=xxx

Where xxx is a VESA screen code that best matches your screen resolution. You can find a list of these here.

Once you are done, save the file, and run sudo update-grub. Reboot, and the TTYs should be working again.


Boot process hangs at systemd-networkd-wait-online

Your system is not freezing during the boot process, it's entered a waiting state for the network devices to be completely configured before continuing on. The ultimate fix will come from an examination of of the configuration files in /etc/systemd/network and the service logs as revealed by journalctl -xe | grep networkd, focusing your attention on any links whose status in the report from networkctl status -a is not listed as "configured". This has been known to happen when IPv6 is unavailable or misconfigured, but also for various other reasons.

You should reboot the system in recovery mode via your bootloader (GRUB, rEFInd, etc.) and select the root option from the menu that appears. From there you can examine the system with the above-mentioned commands and/or enable debugging logs for the service by creating a new directory with mkdir /etc/systemd/system/systemd-networkd.service.d and then creating a new file in it called override.conf (e.g. sudoedit /etc/systemd/system/systemd-networkd.service.d/override.conf) with the following contents:

[Service]
Environment=SYSTEMD_LOG_LEVEL=debug

You can test the success of your modifications to the files in /etc/systemd/network while still in recovery mode using the command /usr/lib/systemd/systemd-networkd-wait-online && echo $?. If you've fixed the problem the output will be 0. Failing all else, you can disable the service entirely with sudo systemctl disable systemd-netword-wait-online.service

Relevant man pages:

systemd-networkd-wait-online(8)
systemd-networkd(8)
systemd.network(5)


So , I didn't know it , but when I unmounted the iso2 file , i just pressed ok and it started without commads . I guess that's it...

Now I just need help to make an icon to start up the program without going to terminal everytime


after installing gunicorn3 how to fix Sub-process /usr/bin/dpkg returned an error code (1)

Before installing gunicorn, it might make sense to ensure Python3 is properly installed and configured:
$ sudo apt install -f --reinstall python3 python3.5 python3-minimal python3.5-minimal libpython3.5-minimal

If this completes without a problem, then you can try to install the gunicorn package.


Compiz setting to maximize application window without integrating in global menu

Perhaps alt+ctrl+numpad5 does what you want? It resizes a window to fit the screen, but without maximizing it.


how can I stop Back In Time from using up all my inodes?

You can't that's not how ext4/3/2 works. If you have an odd block size then you will  have fewer inodes and even really tiny files take 1 inode. So back in time, which makes copies of things will eat inodes till your out.

Now most of the time, you will run out of free space long before you run out of inodes. However that depends on block size. If you have a 1 gig block size (totally bogus but just go with it) your only going to be able to have 250 files/inodes on a 250 Gig hard drive. If you really want to correct the problem then reformat the file system and use a smaller block size. For back up dives I usually use mkfs -j -i 1024 -b 1024 -I 256 but that's just me.


Can't boot Linux Mint after Ubuntu 17.10 install, even though the Mint disk was removed during the install process

After a lot of investigation, finally I figured it out. This article describes that UEFI uses NVRAM to store some state, as I suspected. I also found that I can use the efibootmgr command to interact with this state.

Using the command efibootmgr -v I could see that the entry named ubuntu points to the Ubuntu 17.10 EFI disk and the one named linuxmint points to a non-existent disk. From this article I learned that "Linux Mint uses an EFI boot directory named ubuntu, which obviously conflicts with what Ubuntu itself uses". So the entry named linuxmint was a red herring, both Ubuntu and Linux Mint use the entry named ubuntu, and since this list is stored in the computer itself, Ubuntu overwrote the entry for Linux Mint, even though the Linux Mint boot drive was removed during install.

The solution was to add a new entry to the list using efibootmgr that references the correct EFI partitions.

This behaviour of UEFI is insane. An HDD should be able to fully encapsulate a bootable OS. This is no longer the case with UEFI, you also have to have do some tweaking in the UEFI NVRAM of the computer. You can no longer swap boot disks freely between computers.


One way to do this it to bring grep into the equation. First check whether the file contains the string with a quick grep and then append or substitute accordingly:

grep -q string file &&
    sed -i 's/string/newstring/' file || echo "newstring" >> file

The above is a shorthand way of writing:

if grep -q string file; then
    sed -i 's/string/newstring/' file
else
    echo "newstring" >> file
fi

Personally, however, I would use perl for this instead. Just read the file once and set a variable to 1 if the substitution was made. Then, at the end, add the string if the variable is not 1:

perl -lpe '$i=1 if s/oldstring/newstring/;
           END{print "newstring" if $i!=1;}' file > tmpfile && mv tmpfile file


I don't believe this is possible with current window managers.
Your best bet (if you use compiz) would be to write a compiz plugin, but I can't think of any other straight forward solutions.


Download the tarball from here
Extract it by going to the location where it is stored and right-click to open the context menu and click on "Extract here". For some unknown reason it is hidden(starts with a . in the filename), so you will have to press Ctrl+h to view its files.
Open a terminal using Ctrl+Alt+t and navigate to the directory where you extracted the tarball.
To start dropbox, type ./dropboxd.
To start this on system startup, see this question.


Xubuntu 14.04 System->Appearance->Fonts not effective

Can you change settings via the Settings Editor? Font and DPI settings are located under "xsettings." You could also try changing settings by xfconf-query with a command like the following and also see if it shows any kind of error:

xfconf-query -c xsettings -p /Gtk/FontName -s "DejaVu Sans 10"

You could see if this works to change the DPI:

xfconf-query -c xsettings -p /Xft/DPI -s "96"

You may also want to make sure you are the owner of these files by running the following. You should be owner, but perhaps something strange happened.

ls -l ~/.config/xfce4/xfconf/xfce-perchannel-xml

You could always try upgrading from Xfce 4.10 to 4.12. I have used 4.12 for a while now on Xubuntu 14.04 on two different computers and it works great. There is documentation online for this such as this article.

I hope this answer can be of benefit.


Problem in Installation of VLC media player

The file format which is used by Ubuntu for installation of packages(softwares) is dpkg (debian package).

So, the file you have downloaded isn't going to work as it is not supported.

So, to download vlc the easiest way is to use Ubuntu Software Centre.

Here is a screenshot


Error 15 after manually installing Ubuntu 12.04 dualboot windows 7

"I made /boot mountpoint and then chose it as the place for bootloading."

That is the problem. The "error 15" is coming from an old grub legacy installation, Ubuntu has used grub2 for years now. What's happening is that you incorrectly installed grub's boot sector to a partition, while grub's boot sector should always go in the MBR. Boot Ubuntu then run sudo grub-install /dev/sdX where "X" is replaced with the letter of the drive you want grub installed to , like "sda" not a partition like "sda1". If you can only boot a LiveCD/USB system then you'll need to follow these instructions: https://help.ubuntu.com/community/Grub2#ChRoot .


Change boot menu to a different partition

I actually fixed it in a stupid way. I cleared 50GB with Disk Genius and that made it work, using that free space.


'gsettings' throws error while setting scroll wheel to switch between windows on Ubuntu 18.04

If you're having trouble with gsettings try using dconf command instead. For example, in place of

gsettings set org.gnome.shell.extensions.dash-to-dock scroll-action 'cycle-windows'

run

dconf write /org/gnome/shell/extensions/dash-to-dock/scroll-action "'cycle-windows'"


Partial login loop after lock screen in 20.04

In your case, as you explained the situation..
The locking and extensions have the relation that when system is locked extensions got disabled and enabled once you unlock..
So when the system is locked, your extensions are disabled and due to errors in the extension or since it is disabled, some how the functionality of gnome-shell is disturbed, thus causing the issue.
If you have multiple extensions.. you should disable all the extensions and enable one by one to check which extension is causing the problem..
You can go deep with this link https://wiki.gnome.org/Projects/GnomeShell/Extensions/Writing#Recovering_from_Fatal_Errors


Windows does not load, installed in a separated HHD

Try to install grub 2 via a Ubuntu liveCD. Hope this will help. http://howtoubuntu.org/how-to-repair-restore-reinstall-grub-2-with-a-ubuntu-live-cd


DVB-T tuner works on openelec and windows but not on ubuntu

I managed to make it work by copy the following files from openelec firmware to /lib/firmware

https://github.com/OpenELEC/dvb-firmware/blob/master/firmware/dvb-tuner-si2158-a20-01.fw

https://github.com/OpenELEC/dvb-firmware/blob/master/firmware/dvb-demod-si2168-b40-01.fw


Easy to use and easy to install app needed as a replacement of Autocad LT

VariCAD - 3D / 2D CAD software for mechanical engineering

VariCAD is compact, fast, easy to use, and provides everything necessary for mechanical design. VariCAD is sold "fully loaded", including all features and functions, for one affordable price. The system contains:

3D Modeling
2D Drawing and Editing
Optional Support of Parameters
Optional Support of Geometrical Constraints
Shells Modeling, Pipelines, Wires
Crash Tests (Interferences)
3D Assemblies and Groups
Surface Development (Sheet Metal Unbending)
Mechanical Part Libraries and Symbol Libraries
Calculations of 3D Objects or 2D Sections
BOM and Title Blocks

Learn more about: https://www.varicad.com/en/home/products/description/


Double click on titlebar doesn't maximize/restore windows

Make sure it is set correctly in the GConf setting database (the Windows utility should do this, but it can happen):

Hit Alt + F2 and enter gconf-editor

Navigate to apps ➜ metacity ➜ general ➜ action_double_click_titlebar

The Value should be toggle_maximize, set it to that if it isn't already.


Touchpad suddenly stopped working (Ubuntu 18.04)

My touchpad issues were always related to the version of the kernel.
With 4.15 my touchpad is not responsive at all. with 4.19 works just fine. with 4.20 buggy.

Is there any chance that your update affected the kernel you use?

down or upgrading your kernel might solve the issue.


I wanted to use elementary-dark-mono icons on my panel

Change you elementary-dark-mono to inherit Faenza-Fresh and choose elementary-dark-mono as your icon theme. Here is my ubuntu-mono inheriting Faenza-Mint and Faenza-Cupertino. In order to use the icons system wise be sure to store it in /usr/share/icons. You may need to remove ubuntu-mono places icons as well with sudo rm -rf /usr/share/icons/ubuntu-mono-*/places/*


14.04: menus no longer visible in the Unity panel

Try to do

sudo apt-get install appmenu-gtk appmenu-gtk3 appmenu-qt --reinstall

and reboot. It could help, if one of the packages are broken for some reason.

It's also possible, that the menus are configured not to show up in the top panel, but in the title bar of the window, that has focus.
You can check the "show menus for a window"-option in System Settings -> Appearance -> Behaviour to be in the menu bar or in the windows title bar.


To add the MATE Menu you will remove the other stuff that is up on the bar.

Right-click anywhere on the panel in a blank spot and choose Add to Panel.

Choose MATE Menu from the list, then click Add.

Remove the existing menu from the panel by right-clicking it and choosing Remove from panel.

Right-click on the newly added menu and choose Move

Drag it to the left and left-click when in the place you want it.  Then right-click and choose Lock to panel.

Enjoy your new menu.

Hope this helps!


What is a swap partition and why is it important?

Simply said it is an additional space provided for the operating system to increase it's operating memory. It allows for running more software at once or to operate with larger data.

Something alike also exists in windows, only they implement it as file on a new file system, which is likely done for efficiency.


Ubuntu keeps asking me for Gmail passworld

Probably you just have to tell Google that you are using a "less secure app" (i.e. an app that they don't recognize).


Has anyone got ubuntu working on a PC tablet?

An Intel-based tablet (Core i5, 11.6", .95Kg, cooling fan).

This will probably be a great platform for Ubuntu desktop with touch interface someday.

However that is not where the market is focused ..

Have you tried out Ubuntu Touch 13.04 on an ASUS/Google Nexus 7 (or the larger Nexus 10)?

This is excellent work-in-progress, but its not about the full desktop experience on a smartphone or tablet.

Its about mobility ..

Google Nexus 7 tablet .. to be Ubuntu’s ‘reference’ device

Ubuntu Touch - Project page |
How to Install |
Release Notes


Permissions of an automount ntfs partition

You are using the wrong options for your ntfs partition in /etc/fstab Some of the options you use, such as "rw" and "exec" are invalid when mounting a ntfs partition.

If you read the man page for mount you will see the options.

I know it is a long page, scroll down to the ntfs section.

You want to mount the ntfs partition with ntfs-3g, not ntfs (see here).

The options for ntfs (ntfs-3g) are here. I suggest you use

UUID=32EA23CFEA238DE3 /media/Backup ntfs-3g auto,users,permissions,nls=utf8  0 0

you can then set ownership and permissions using chown and chmod

If that does not work, you can set ownership and permissions

UUID=32EA23CFEA238DE3 /media/Backup ntfs auto,users,nls=utf8,umask=003,gid=46,uid=1000 0 0


Headphone and built in speaker working together in Ubuntu 12.04

Double Sound Audio Microphone
http://ubuntuforums.org/showthread.php?t=831102


No, Grub can only load systems and control loading. Just load live session, for example there is gparted live or also create ubuntu live dvd or usb, and install gparted in live session.
In Gparted program delete ubuntu, mint ot other systems partitions, and then create new partition from free space. And don't touch partition of windows.


task scheduler in system settings does not appear

gnome-schedule is an alternative for task scheduler in KDE.Run the below command on terminal to install gnome-schedule,

sudo apt-get install gnome-schedule


Alias to change directory is not working on Ubuntu 15.04?

It looks like there is another alias set to now try setting it to another alias such as NOW or something else.


Configuring Postfix with multiple virtualhosts

The sender of an email is not set by Postfix. It is set by the mail agent, which specifies it in the From header. (There are some additional technicalities related to the Sender of the envelope, but these are probably not relevant.)

When you were testing your setup using the sendmail command, you weren't setting the From header, but left it to Postfix to complete the sender address. That's when it uses the mailhost value or some other mechanism to add a domain name to the unqualified system user name.

Virtual hosts won't normally send mail as an unqualified system user. In Drupal or Wordpress you configure a fully qualified sender address to be used when the system sends email.

(Obviously, if you are also hosting incoming mail for the hosted domains, then your Postfix will need a bunch of additional configuration, but your question suggests you're only concerned with outbound mail.)


Is amd r7 360 supported by the amdgpu drivers?

Proprietary
Here is a list specifically with the R7 360 proprietary drivers:
https://www.amd.com/en/support/previous-drivers/graphics/amd-radeon-r7-series/amd-radeon-r7-300-series/amd-radeon-r7-360
Seeing that the support is there only for 12.04.4 LTS and 14.04.2, I would guess that it's the fglrx Catalyst driver, which is not compatible with modern-day versions of the Xorg Server.
amdgpu-pro
AMD official info about the amdgpu-pro driver:
https://www.amd.com/en/support/kb/release-notes/rn-prorad-lin-amdgpupro
I see these in the table:
AMD Radeon™ R7 240/250/250X/260/260X/350

AMD Radeon™ R9 360 Graphics

But I don't see R7 360

Open source radeon
Relying on the open source radeon driver, in my personal experience, is like a box of chocolate; you never know how good support you are getting out of it.
All I can tell from personal experience, that with the AMD FirePro W5130M unfortunately it seems to be useless. Programs crash to an extent that needs reboot, or don't even start with the radeon driver.
But trying out is for free. Maybe it goes better for you.


Judging by that old word you've mentioned, I'm quite sure that this is the problem with your hardware, as in, it's not good enough to support Unity (the Ubuntu's default Desktop Environment).

Now I have to suggest you to look into Xubuntu or Lubuntu to install something a bit more lightweight.

Unfortunately, I can't be any more precise with my answer because I don't currently know your system specifications. If you edit your question and be a bit more precise, I will edit my answer appropriately.


WUBI installs Ubuntu within your Windows machine.

You'd have to back up your files, then delete Windows and install Ubuntu, copying your files back afterwards.


How can I change the date and time on Ubuntu?

From man date

-s, --set=STRING
          set time described by STRING

To change date, use the command in terminal,

sudo date --set=STRING

For example, to change date to 25 Sep 2013 15:00, the command would be,

sudo date --set "25 Sep 2013 15:00:00"


SED (self encrpyting disk) is crashing on system resume

According to,

http://www.pugetsystems.com/labs/articles/Introduction-to-Self-Encrypting-Drives-SED-557/

  In the case of SEDs, the main downside is that once the drive has been unlocked, it remains so until the power to the drive has been cut. In other words, if you simply reboot the computer or put it into sleep, the drive remains unlocked. It is not until you completely power off the computer that it will again require the Authentication Key to be entered.

And then goes on to talk about motherboards that support SED to go along with the drive.

Now when a system is normally put into suspend, the power to that bus is cut, which explains what's happening in your case as it's supposed to ask you for your password in that event. What the intent appears to be with SED drives is that a SED Motherboard has the smarts to keep the drive alive just enough to stop it from locking.

So given that information. I suspect that either your motherboard doesn't support SED or it's configured incorrectly.


Lubuntu 14.04LTS fails to boot after updates - GRUB issue

Well - looks like all I needed to do was rerun update-grub. The grub.cfg entry I posted in my question was already fixed by grub2 itself - something must have gone bad during one of the updates. Originally, the broken grub.cfg entry showed root=/dev/md127 instead of the root=UUID=... line. The above grub.cfg boots properly. Issue solved.


Where do I find the usb serial driver for cosmic?

It's located in /lib/modules/$(uname -r)/kernel/drivers/usb/serial/usbserial.ko

You have to use the uname -r command to get the release of the kernel you are running, as this may depend on when you last updated your OS, and frequently changes.

You can insert it into the running kernel with sudo modprobe usbserial.


Correct way of downloading the running ubuntu 12.04 source code

Confusingly, the version number reported by uname does not correspond to the mainline kernel version in newer Ubuntu releases.

See this FAQ entry:
https://wiki.ubuntu.com/Kernel/FAQ#Kernel.2BAC8-FAQ.2BAC8-GeneralVersionToMainline.Given_an_Ubuntu_kernel_package_version_how_do_we_find_the_exact_mainline_release_it_is_based_on.3F

And the linked mapping table:
http://people.canonical.com/~kernel/info/kernel-version-map.html

Elsewhere on the FAQ page, you see how to query exact versions.  On my 12.04.4 system, uname reports 3.2.0, but the upstream kernel used is 3.2.66:

user@host:~$ uname -r
3.2.0-77-generic
user@host:~$ cat /proc/version_signature
Ubuntu 3.2.0-77.112-generic 3.2.66

If you check out tags/Ubuntu-3.2.0-77.112 from the precise kernel repo, you will see a Makefile with a SUBLEVEL of 66.  The same is true for a tree installed via apt.


security risk of changing user in nginx server

is it ok if I set it up to run as a normal user as opposed to run it as www-data?

Sure.

  What are the potential security risks that comes with changing the user?

There are no risks to changing a user. If anything changing to another user (that is NOT your admin account since you never should use that except for admin tasks on a server) will make it more secure: anyone knows there can be a user www-data when there is a website active. Now they need to guess that user name too. Setting a good password is more important.

It is not the user but the permissions set to the directories and the files that can make it risky. If you set permissions to files and directory all open for all it is riskier than when you set them as strict as possible. For someone to execute arbitrary code that person needs to be able to execute code. So set files to 644 or even 640 if possible and directories to 755 or 750 if possible and have the users that need to be allowed to edit files all in the same group.


How to disable -Werror=date-time/macro "__DATE__" might prevent reproducible builds

The date-time warning is new in gcc 4.9 I think - it is possibly turned on implicitly by -Wall (and turned into an error implicitly by -Werror).

You could try turning it off explicitly using the -Wno- form i.e. by adding

-Wno-error=date-time

to the CFLAGS.


apachectl told you that he can't open apache configuration file.

With help of the following command:

whoami
ls -la /etc/apache2/apache2.conf

check if file exists and file permissions.

In addition you could list and cat apache2 logs file in /var/logs/apache2


How to get information out of netstat's results

Short answer: No

It doesn't really help much if you do know stuff about it, in the current position.

If you would've gotten DDOSed you might be worried about it.

Netstat is there to help you solve network issues that arise on local server services.

Most you could do is use nmap, scan for protocols and see different attributes, but good security practices might be in place and thus all the protocols be scrambled AND behind a firewall.


I still haven't found the reason behind this issue but at least I have found a workaround.

I just decoded the file using flac -d and encoded it again with flac -e and it plays as it should.

As I have said before I'm not sure if this affects mp3's, obviously if it does this workaround wont work since mp3 is a lossy format.


I seem to have solved it, although I don't understand why.

I have reinstalled grub, but telling it NOT to generate menu.lst

I have renamed /boot/grub/to /boot/grub_back/, which has broken the boot. From a live USB boot, I have renamed it back to original and, after this, GRUB doesn't start any more after rEFInd.

Problem solved, but in a strange way.


Which Ubuntu / Linux version have include plugins (Network,Audio / Video)

Restricted audio/video codecs, Microsoft fonts and Flash plugin are not included in Ubuntu installation media due to legal reasons.

These codecs can be installed by installing ubuntu-resricted-extra package from Software Center or by running in terminal

sudo apt-get install ubuntu-restricted-extras

Note: you will be asked to accept license for Microsoft fonts, it can be done by pressing

<Tab>, <Enter>.


I found the problematic line:

GRUB_CMDLINE_LINUX="ipv6.disable=1""

You have two closing quotes.

Edit the line by removing last qoute:

GRUB_CMDLINE_LINUX="ipv6.disable=1"

and then continue installation with sudo apt-get install -f.


Check the output of dmesg for more detailed errors, and check the drive's SMART status in the disk utilty.  Most likely it's a dead/dieing drive, though a cable or controller problem is another possibility.


I have made basic architectural drawings (for work) using CAD software such as Free CAD

You can certainly draw floor plans and so on in this type of software, but it takes a bit of practice to use fluently - I don't know if it's the simplest. But it is great for scaling and drawing with measurements.

You can get Free CAD from Ubuntu repositories:

sudo apt-get install freecad

It's open source and you can contribute to development - here's the GitHub page


How to uninstall VMware Workstation 8 Trial?

Long form:

sudo /usr/lib/vmware-installer --uninstall-product PRODUCT

Short form:

sudo /usr/lib/vmware-installer -u PRODUCT

For a list of which products are installed, you may run:

/usr/lib/vmware-installer --list-products

or:

/usr/lib/vmware-installer -l


Clockworkmod USB tethering with Ubuntu 18.04

I haven't used CWM Tether myself, but I've just read over the script to see where the error is coming from.

The problem seems to be that gcc version 7+ only prints the major version number when run with -dumpversion. So it seems like you just need to go to line 325 in the script:

  proc = subprocess.Popen(CC.split() + ['-dumpversion'], stdout=subprocess.PIPE)

and change ['-dumpversion'] to ['-dumpfullversion'].

For best compatibility, the devs may want to switch it to ['-dumpversion', '-dumpfullversion'].

And then hopefully there are no other incompatibilities.

Source: gcc 7.1.1 on Fedora 26 dumpversion now only includes major version by default

And FWIW, other people are having the same issue on 18.04 and 17.10.


Are all folders named "core" core dumps?

Folders named core usually don't contain core dumps but core components of some software package. Never delete them unless you are really sure what you are doing.


Ubuntu Server 14.04 and 12.04 installation problem

I actually ran into this issue and was VERY frustrated by it.  I noticed it happening when I ran 14.04 (only OS installed on 500GB HDD) on my server box, but did not have the issue if I ran the installation from my windows workstation.  What I found during my poking around was that it has something to do with a video driver check on boot--at least, in my case, that is what it was.  To get around it, when the Grub2 menu comes up, select the option to boot in recovery mode.  Once the menu comes up, select the option to continue booting into your Ubuntu install.  Once you have logged in, bring up the terminal and edit the /etc/defaults/grub file and find the line for kernel boot options.  Typically, it will have something like "quiet splash" or something along those lines in the quotes for this option.  Add "nomodeset" to just before the closing quote (without adding the quotes around it) and save the file.  Back at the terminal run "sudo update-grub".  This will apply this on boot.  That was the only way I found to get around it in both GUI and nonGUI setups.  Hope this helps.  If you have any questions, feel free to contact me through my website www.anklebiterwoodworks.com

P.S. Forgot to mention that I did not have this occur on 12.04, but did on 14.04.  Method of correcting is the same, though.

Scott


Thank you all for your commentary and advice.  It seems clear to me now that, while the file system seems healthy enough, the community indicates the boot service is FUBAR and I should reinstall.  I ask, would I rather repair a boot service for the first time, or reinstall 18.03 and modify to Yosemite MacUbuntu a second time?  I will go with the latter, creating an active swap partition to afford that memory as need be.


Syncing folders shared by others in Onedrive Business

What you re looking for this this information: https://github.com/abraunegg/onedrive/issues/459

The --get-O365-drive-id option is for use with SharePoint Office 365 Libraries - not Business Shared Folders


...and more:

Feedback

Every Kubuntu release has a feedback page - the latest:
http://www.kubuntu.org/ --> http://www.kubuntu.org/news/12.04-release

  Feedback

  We want to hear your opinions about Kubuntu 12.04 LTS  Do we [Ama]rok?
  Did a feature make or break your day?  What do you flat-out dislike?

  Take a look at the Ubuntu Code of Conduct, try Kubuntu 12.04 LTS and
  head on over to the Feedback Page. Your input is an invaluable
  resource, so do take the time to write down your thoughts and let us
  know what you think.

Ideas

The Kubuntu Forums has:
http://www.kubuntuforums.net/content.php --> http://www.kubuntuforums.net/forumdisplay.php?165-Round-Table-Discussions-Moderated

  Round Table Discussions - Moderated

  Ideas for Kubuntu improvements? Post and discuss them here with a
  Council member.


Ubuntu 17.10 - Poweroff operation is inhibited by myself

Similar messages can appear when you type reboot in the command line. The solution is to use sudo reboot instead. In your case it would be sudo poweroff or sudo shutdown which does the same thing. Always make sure you have saved all your work and closed down Libre Office, etc.

The other solution for me is to pick Reboot from the system menu. In this case the sudo isn't necessary. In you case you would pick Shutdown from the system menu.

Lastly, you can do as the message suggests and use:

systemctl poweroff -i


How to install older (downgrade) package from PPA?

When a new version of a package is uploaded to a repository, the previous one is deleted, so it is no longer possible to obtain it (from that repository). You can see the available packages on the MAAS repository here, and notice that there are no 1.9.3 packages.

If I were in your situation, I would probably contact the repository maintainers to ask them if they can give you the 1.9.3 package.


Can't get display and soundcard work correctly

I used UKUU to change kernel versions - I use 18.04


AFAIK it would make no difference.

RAID is an abstraction layer for physical disks, it makes multiple disks/partitions look like a single "block device" to the file system. Some RAID levels (including RAID1 and RAID5) can handle physical disk failures transparently: Remove a disk, and for the file system it looks like nothing has changed.

But the file system works on top of the "block device" abstraction layer. Using a RAID5 as the block device helps dealing with physical disk failures, but it does nothing for the file system itself, so the risk of file system corruption remains the same.

RAID blocks (mdadm 'chunks' with default size 64kB) differ from file system blocks (ext4 default size 4kB) and are designed to detect a different kind of corruption.

RAID5 works by splitting data from the file system and writing one chunk to each of N-1 disks and a checksum to the Nth disk. RAID5 is designed to detect "corrupt data" in the sense of bad sectors, in which case the original can be restored from the checksum and the N-2 remaining good chunks.

But if the FS updates the metadata and dies before it has time to write the files, the file system may be corrupt without the RAID being any wiser: What was written to disk is the same as what is read back from disk, as evidenced by the checksums matching. The RAID cannot know that important pieces are missing from the perspective of a higher level application.

See this paper (pdf) for examples of corruption that goes undetected by RAID. In the context of file system corruption, I guess "torn writes" (only some of the data that were supposed to be written actually are) is particularly relevant.


Are you using vbox to run remote windows? In that case the vbox guest additions package will allow you to create a shared folder (you can set this up in the same place as you set up your machine) or access a usb stick. Otherwise, there is the slightly less convenient way of emailing or dropboxing it.


From the Commercial Software FAQ:

What is the minimum price I can charge for software?
The minimum price for applications is 2.99 USD. The transaction fee we charge has to off-set the credit card charges, bank charges and fraud detection that takes place within the payment platform. By enforcing a minimum price we ensure that processing transactions doesn’t cost more than the transaction fee. We intend to lower the minimum price over time.


How to install cndrvcups-common v.2.3 in Quantal?

The 2.40 version package you have there is just depending on this:

Depends: [...] gs-esp | ghostscript (>= 9.00) [...]

meaning this is an OR relationship, so the ghostscript version 9.05~dfsg-0ubuntu4.2 (precise) or 9.06~dfsg-0ubuntu4 (quantal) in Ubuntu will satisfy it.

Whereas the 2.30 version of the package has these dependencies:

Depends: [...], gs-esp, [...]

The package ghostscript provides this in 12.04:

apt-cache show ghostscript | grep ^Provides
Provides: gs-esp, postscript-viewer

But not in 12.10.

Bottom line: Unless you want to modify this binary-only package, this 2.30 version is not installable on 12.10 and up. Use the 2.40 version.


Where to install non-root external software?

I think you are confusing ~/ with /. ~/ is your home directory not your root directory. Where as / will be your root directory where you'll find /home/USER/ which is longhand for ~/.


"mplayer -vo caca fma.avi" lags, how can i skip frames so it doesn't lag

The MPlayer docs will usually suggest some combination of the following:

Try some of the lavdopts,
    e.g. -vfm ffmpeg -lavdopts lowres=1:fast:skiploopfilter=all.
- Broken file
  - Try various combinations of -nobps -ni -forceidx -mc 0.
- Slow media (NFS/SMB mounts, DVD, VCD etc)
  - Try -cache 8192.
- Are you using -cache to play a non-interleaved AVI file?
  - Try -nocache.

And perhaps this will be enough for you? BTW for the ultimate coolness you shoud try -vo matrixview  :).


Ubuntu 20.04 File, list view, icon size too big

Icons can be sized by "zooming". Hit Ctrl+- to zoom out. Ctrl+Shift=/+ will zoom in. You can also zoom in or out from the button with the down pointing triangle (▼) or using the mouse scroll wheel while holding Ctrl.


Filenames of files in lost+found folder disappeared after using GParted

You can't find the original name and location of a file in /lost+found because that's what lost+found is about: it's where fsck puts fragments of files that it hasn't been able to attach anywhere in the directory tree. If the location was known, fsck would have left the file where it was meant to be.
It's theoretically possible that fsck could have only partial information, such as the file name but not the directory location, but that doesn't happen with typical filesystems.
You may be able to find clues in the file itself. The file command will at least tell you what kind of file it is (if it recognizes it). For more information about the file command, open the terminal and type man file Some files carry additional information inside; for example JPEG and TIFF images may contain exif data, MP3 files may contain id3 tags, etc.source

Even though you can see the files from lost+found, the filenames are lost and some of the files may be fragments of files or damaged files, interacting with the lost+found folder directly is not the best way to recover them. It's better to restore whatever missing files that you have backed up from their backups or else treat the files in lost+found as deleted files and try to recover them all together with their filenames using a recovery tool.
Try to recover the lost files with testdisk from the default Ubuntu repositories, and maybe you will be able get back the lost files and the original names of the files and folders too. First make a note of the partitions on your hard drive, so that you know which partition contains the missing files. Attach an external drive for storing the recovered data if you don't have another free partition to work with, and start testdisk from the terminal by typing testdisk . You will be presented with a series of menus that guide you step-by-step through the recovery process. Some of the menus have a Return to disk selection to return back to the first step if you think you may have made a mistake.
Credit goes to Gilles for the quoted text block.


Using the "ptmx" interface is probably the best bet. Here is an example program that will attach to /dev/ptmx and trigger the creation of a /dev/pts/N device node that you can attach to from your application.

For details, see "man pty".

#!/usr/bin/python
# Spawn pseudo-tty for input testing.
# Copyright 2010, Canonical, Ltd.
# Author: Kees Cook <kees@ubuntu.com>
# License: GPLv3
import os, sys, select

parent, child = os.openpty()
tty = os.ttyname(child)
os.system('stty cs8 -icanon -echo < %s' % (tty))

print tty

try:
    os.system('stty cs8 -icanon -echo < /dev/stdin')

    poller = select.poll()
    poller.register(parent, select.POLLIN)
    poller.register(sys.stdin, select.POLLIN)

    running = True
    while running:
        events = poller.poll(1000)
        for fd, event in events:
            if (select.POLLIN & event) > 0:
                chars = os.read(fd, 512)
                if fd == parent:
                    sys.stdout.write(chars)
                    sys.stdout.flush()
                else:
                    os.write(parent, chars)
finally:
    os.system('stty sane < /dev/stdin')

When you run this, it will tell you the name of the pts to attach to with your application, and you can simulate the hardware by just typing in the terminal.


OK, so you want to set up a service on the host machine to wait for a shutdown signal, and then shut down.

Run this in Terminal:

sudo echo "cat /dev/ttyS0
poweroff" > /etc/sbin/sshutdownd
sudo chmod 755 /etc/sbin/sshutdownd

And then just run this at boot (you can throw it in an init.d script if you want):

nohup /etc/sbin/sshutdownd &

On the arduino, just send a return carriage on the serial line, and the system will shut down.


Is x11-common service still needed in 14.04 or later?

x11-common does not start a daemon. What it does do is make some directories, with correct permissions, etc. service --status-all reports it as not running, because for it to be considered as running, the exit status of /etc/init.d/x11-commmon should be zero, which it is, and there should some output, which there isn't.

$ service x11-common status && echo yes
yes

Don't delete it.


14.04 "did not install correctly" when I upgraded in VMware player

You can reinstall it but first take a backup and then make live cd or usb flash drive for installation/re installation. In that you will get an option to replace or repair installation you install it as you want.

for more help on reinstallation see this

for more help on usb installation see this


I very much doubt that particular GPU can output video at 1920x1080, after all, it's about 9 years old.

http://en.wikipedia.org/wiki/List_of_Intel_chipsets

I'd be surprised if it could drive even one display with a resolution higher then 1024x768 without freezing, let alone an HD TV. If you are interested in what it can do, run xrandr in a terminal window.


New 20.04 install does not fill the whole monitor

A silly solution! My monitors autoadjust was rubbish, I loaded a full screen game, hit autoadjust on the monitor again and it filled the screen.


Install latest Gwibber (friends-app) in Ubuntu 12.04?

Short answer:
no. It is currently not possible to install the Friends app in 12.04.
Long answer:
Gwibber has been rewritten in QML/Qt5 and some of the required packages are not available for 12.04. So could I just manually download and install the required packages? you ask. Theoretically you could, and I tried it, but after upgrading a package for a dependency of a dependency of a dependency and breaking a few system wide dependencies in the process I gave up.
So, theoretically: yes, you could upgrade and install the needed packages.
In reality, no. By the time you figure out all the dependency issues you will get you will pretty much have manually upgraded your Precise system into a Raring one and most likely broken it in the process.


how to partition and install another distro side by side?

I have 3 different distros installed side by side. What i did i formatted my hard drive 40GB for each distro.
at the installation windows chose something else and create a EFI partition (if your bios is in EFI mode), assign 300 MB. Create a /boot partiotn and assign 500Mb and lastly create a partition for root director at / mount point and assign the remaining space on your disk. and finally click on Drop down menu at the bottom Device for boot loader installation: and chose the boot partition we have just created in my case it's /dev/sda8/. install now. you should have all your distros listed while boot up.


How do I have ubuntu download email then forward that to my mobile devices and other computers?

You will need a mail service for your mobile devices to connect to.

I would:
setup a second mail account (gmail or something) and forward the mail (on your pc) from the first mail service to the second. then configure your mobile devices to connect to the second mail service.
However, this kinda beats the purpose of using a very secure mail service.
You could solve this by more configuration, do not forward the mail but simply send a notification mail to the second mailbox that a mail has arrived in the first. you wont be able to read the mails on your mobile device but you will get notified that there is a mail.

Another solution would be to configure your local system to leave the mails on the server for 24 hours after download. and configure your mobile devices to check the secure mail service.


Let's reposition the redirections a bit and add some line breaks to see what you're actually running:

 >> /home/things/logs/backup.log \
   >> /home/things/logs/backup.log \
   find /home/things/backups -mtime +0 -exec echo "{}" \; \
     -exec echo "Hourly rotate successful: $(date). {} was deleted.";
   \;

You're redirecting find's output, not that of the commands run by -exec. This would affect the commands run using -exec since they are child processes and inherit open file descriptors, so the effect would be what you needed even if the way you went about it was weird.
Then the ; at the end of the second exec wasn't escaped. The find command got terminated there without a ; for exec, causing the error. find quit immediately because of this, so no output was produced.
The \; at the end is then processed by the shell. Usually, it would be a statement delimiter, but since it is escaped, it tries to run it as a command. This fails, naturally.

Consider simplifying the command:

find /home/things/backups -mtime +0 -exec \
  bash -c 'printf "%s\nHourly rotate successful: $(date). %s was deleted.\n" "$0" "$0"' {} \; \
  >> /home/things/logs/backup.log


Phpmyadmin not working after upgrading to PHP

This solves it:

sudo apt-get install php-mbstring php7.0-mbstring php-gettext
sudo service apache2 restart


Live OS doesn't see USB mouse or keyboard

I found the solution to this issue. The trick is to enable (at least on Gigabyte Motherboards like the 970a series) IOMMU in the peripherials tab. It is ab option with no description close to the bottom of the menu. Only 2 options, enable or disable. Enable the option save the setting and reboot. Surprise! All of you USB devices are now functional again. More about IOMMU here