dell xps 15 9550 hibernate/suspend problem ubuntu 16.04

At time or writing, the workaround was to downgrade your BIOS to 1.2.0

An alternative is to log in (although you don't see your login screen), and then pump up your brightness to max.

For your configuration, keep an eye on this wiki.

UPDATE (Alternative Solution for 16.04):

This also solved the problem for me on a newer version of the BIOS:

Create a script:

sudo nano /lib/systemd/system-sleep/97fixbacklight

Contents:

#!/bin/sh
# From patchwork.freedesktop.org/.../
# and en.community.dell.com/.../19985320
# Suspend Resume fails to restore PWM_GRANUALITY
# Based on script by Tony.Jewell@Cregganna.Com

INTEL_REG=/usr/bin/intel_reg
ADDR="0x000c2000"
SAVE_FILE=/var/lib/systemd/save_intel_reg_pwm_granuality

[ -x "$INTEL_REG" ] || exit 0

case "$1" in
        pre)
        echo "$0: Saving Intel Register PWM_GRANUALITY"
        "$INTEL_REG" read "$ADDR" \
            | (read addr value && echo "$value") \
            >"$SAVE_FILE"
    sync
    ;;
    post)
        value=`cat "$SAVE_FILE" 2>/dev/null`
        if [ -n "$value" ]
        then
            echo "$0: Restoring Intel Register PWM_GRANUALITY $value"
            "$INTEL_REG" write "$ADDR" "$value"
            rm "$SAVE_FILE"
        fi
    ;;
esac

Give it the right permissions:

sudo chmod +755 /lib/systemd/system-sleep/97fixbacklight

Restart


Why does using double quotes to enclose awk's action statements produce different results than when using single quotes to enclose them?

If you use double quotes the $2 gets replaced by the shell before awk is called. As $2 is usually empty running

awk {"print $2"}

is the same as running

awk {"print "}

Use

awk {"print \$2"}

if you want to use double quotes.


What does it take for a desktop environment of my choice to have its own official Ubuntu derivative?

For starters there are a few things.

Your system needs to fill a hole in the current accepted derivatives.
If you create a system and base it on KDE it will not be accepted since that would be a second kUbuntu. The same goes for systems based on XFCE, LXDE, Gnome or Unity.

You need to have a solid user base.
There are so so so so many derivatives of all of the official versions supported your system needs to show it has interest. 10000+ users would attract attention.

You need to show you are serious player.
Linux based operating systems come and go. Your system needs to be up to date. Needs to show it takes care of security problems. And you probably need your own repositories at some point (letting your users leech of the Ubuntu servers is not really nice) so all your users pick their software from your repository.

And now for the kicker: there is absolutely no information on the Ubuntu sites on how to get an official status. So to get official status Canonical probably needs to ask you and not the other way around and they will only ask you if it is something special.
Look at the biggest not supported spin-off of Ubuntu: Mint.
It got a lot of traction. On distrowatch it is even above Ubuntu but it seems it is not unique enough to get official support. Ubuntu + MATE desktop is not already an official version, they have a lot of users apparently (or a lot that visit distrowatch ;) ). I do not know how many people are working on Mint but if they have an amount roughly equal to kUbuntu I myself would not mind an official "mUbuntu" version.


I used xrandr to workaround this issue as follows:

  xrandr --listmonitors

Shows two monitors:

  0: +VGA-1
   1: *+LVDS-1

Then I used xrandr to turn one of them off.

  xrandr --output LVDS-1 --off

Icons appear!

Once installed you can make these changes permanent (after login) by putting the xrandr command into your .profile.


Cannot access shared folder in ubuntu from windows 10

The way to share folders for other operating systems is a bit different and it needs a little bit of work.  Let's go.

sudo apt-get install samba system-config-samba
Create the folder to be shared somewhere outside the /home folder as root.
For example: sudo mkdir /Public
sudo chmod -R 0777 /Public to make it fully accessible by everyone.
sudo adduser --no-create-home <network_user_name> to create a new user whose name will be used to access the shared folder from the network.  Since this user is going to be a network user only, no home folder is needed for them.
sudo usermod -u 998 <network_user_name> to change the new user ID to anything below 1000 so that the name is not included in the lightdm logon list.
sudo smbpasswd -a <network_user_name> to add the new user to the samba user list so that access can be granted when this user attempts to connect from another system.
Note:  This password has nothing to do with the user password you created when you created the user with the adduser command and it doesn't have to be the same. The other password will never be used.  This is the password you will be using to access the system from the network.
Run samba from its icon and enter your admin password.
On the first tab, browse to the /Public folder and select it in order to share it.  Make it Visible and Writable if you wish to have write access to it from the network.
On the second tab make sure to check the network_user_name you'll see so that only that user is granted access to that share and not everyone.
As root, use a text editor and edit /etc/samba/smb.conf.  At the end of that file you will see the details about the folder you just shared.  Press Enter and Tab and add the parameter inherit permissions = yes at the very end of that shared folder section.  This will make sure that every new file or folder created by the network user in that share will inherit the /Public folder's permissions and it'll be fully accessible by all other users.
Finally execute sudo service smbd restart && sudo service nmbd restart to restart both services with the new parameter and you should be ready to use that share from any operating system including Windows.


What editor is as good as TextPad for compiling and running Java programs?

Geany

From the official site:

  Geany is a text editor using the GTK2 toolkit with basic features of
  an integrated development environment. It was developed to provide a
  small and fast IDE, which has only a few dependencies from other
  packages. It supports many filetypes and has some nice features.

jEdit

Additionally, jEdit (man page) seems to be another excellent option for your tasks.

From the man site:

  jEdit   is  a  cross-platform  text  editor  written in Java. It has
  an extensive feature set that includes syntax highlighting,  auto
  indent, folding,   word  wrap,  abbreviation  expansion,  multiple
  clipboards, powerful search and replace and much more.

  Furthermore, jEdit is extremely  customizable,  and  extensible,
  using either  macros  written in the BeanShell scripting language, or
  plugins written  in  Java.  With  plugins,  you  can  create  a  very
  powerful development environment for HTML, XML, C/C++, Python, Perl,
  Ruby, Lisp, Scheme, and many others.

  jEdit Requires Sun Java 2 version 1.5.

  jEdit is released under the GNU General Public License,  which  can
  be found in the online help.


Have you tried using AltGr+ü.
With Ctrl+Alt+ü it doesn't work for me neither.
I don't think this can be edited.

Btw.: Which swiss keyboard shows Strg instead of Ctrl?


You can also easily send a command to all splits, using Shift-F9.

Full disclosure: I'm the author and maintainer of Byobu.


I over-wrote my xorg.conf with Nvidia-settings and lost my XFCE settings

Nvidia tool normally makes a copy of your xorg.conf. I would check if it doesn't exist in /etc/X11/xorg.conf.backup or /etc/X11/xorg.conf.old


How do I downgrade Rhythmbox in Ubuntu 13.04

To downgrade any package, you must do two things:

Install the old deb file.
Forbid updating the package to newest versions from repositories.

If you have used the old version, maybe you can find the installed deb file in your /var/cache/apt/archives. If not, try searching the required version on packages.ubuntu.com or other sites. For example, you can try this package: 2.97-1ubuntu6.1.

Then, open file /etc/apt/preferences as root (create the file if it doesn't exist yet) and add the following lines:

Package: rhythmbox
Pin: version 2.97-1ubuntu6.1
Pin-Priority: 1001

(Replace 2.97-1ubuntu6.1 with the exact version you've installed.)

This will force apt-get, aptitude and all such utilities to keep Rhythmbox at this version even when repository has a newer one. If you need to install older versions of some other packages (e.g. rhythmbox-data or maybe some libraries), add similar three lines to the same file, with one line between «paragraphs». You can find some more information about /etc/apt/preferences syntax here.

UPDATE:

I would suggest you to install rhythmbox with all required packages at once with a single console command. I've just tried to do it now, so this is what you need:

Remove your currently installed Rhythmbox (if this is not possible due to other dependencies, you may try to skip this step and ignore some warnings later).
Download packages from quantal: rhythmbox_2.97-1ubuntu5, libmusicbrainz5-0, librhythmbox-core6, rhythmbox-data, gir1.2-rb-3.0. Put them all in a single directory.
Open terminal, cd to the directory and run sudo dpkg -i *.deb. This should install the old Rhythmbox.

After that, just look which updates do you have in Synaptic or elsewhere, and add those packages to /etc/apt/preferences as I've wrote above.


What's the proper way of connecting a signal to a JavaScript method?

I believe the immediate problem is that the context changes inside the function definitions inside Action.  The this object inside Action.handleClick() is Action.handleClick, not Action.

But let's back up a little bit: why are you using the function-inside-a-function paradigm here?  This is common in browser Javascript, since there is no namespacing in that environment.  To avoid trampling other functions, you fake a namespace by creating an object to hold all of your functions.

However, QML does do namespacing.  Note that you had to reference Action as ActionJS.Action from the QML file.  Therefore, there's no need implement another namespace for your functions; just put them in the top level of the JS file:

function handleClick() {
    console.log("handleClick");
    process();
}

function process() {
    console.log("processing...");
}

Then in your QML file, do

Component.onCompleted: {
    clickMeButton.clicked.connect(ActionJS.handleClick)
}

Or, just

onClicked: ActionJS.handleClick()

I'm assuming here that you don't actually need an Action object for anything other than namespacing.  If you do, you should learn about prototype.  You may also want to know about .pragma library, if you intend to use this JS file in multiple QML files.


Apache is not even starting after updating

The error states that apache2 is already running.
If it's not working try restarting it with : [sudo] apache2ctl restart


Ubuntu 20.04 not booting after label change

I guess the MiniTool Partition wizard corrupted my /dev/sda2 which results in not able to boot
I booted from live usb of ubuntu or you can use live usb of gparted and saw a warning sign on /dev/sd2. On its information it was saying packages required for ext4 file system support e2fsprogs v1.41+
So I did this The installer needs to remove operating system files from the install target, but was unable to do so. The install cannot continue and the warning sign was gone
Now I am able boot from /dev/sda2


Install Ubuntu 14.04LTS on my new toshiba laptop and remove windows 8

If it's a windows 8 laptop, it might be a problem with secure boot, a technology that keeps non-windows OSes from loading. I don't know if Ubuntu is able to boot with secure boot turned on or not, but turning it off is worth a try. I'm not familiar with Toshiba's UEFI BIOS, but there should be lots of guides online. Just google "disable Toshiba secure boot" and you should find something.

Best of luck!


Where can I find a better version of markdown?

There are some clues that the newer package is named discount.

But fenced code blocks are an Markdown extension.

Also I can recommend to check at least:

ReText editor, which is build on top of python3-markdown:

sudo apt install retext
Pandoc to convert between many formats and Markdown variants:

sudo apt install pandoc
RStudio for creation of comprehensive dynamic RMarkdown documents


Creating casper-rw partition causing Lubuntu Live USB not to boot

Maybe the easiest solution for you is to install mkusb and let it start from the beginning. It creates a casper-rw partition for persistence automatically.

You can decide how much of the available drive space to use for persistence. The rest (of the available drive space) will be used for a usbdata partition, available also from Windows.

See these links

help.ubuntu.com/community/mkusb

mkusb/persistent


BIOS setting disappeared after installing Ubuntu 18.04

Upon looking up the Laptop Model on Google, several issues with your specific model of laptop losing BIOS usability(Albeit on windows installs) popped up

The solution seems to be unplugging the hard drive, which will allow the bios to work, going to "Advanced Settings" and disabling FastBoot

Source


Where my linux password is stored on my system and how i can retrieve it?

In short: you can't find out what your password is.

Although it's stored in the file /etc/shadow, it's stored in a "protected" format called a hash. It's like a baked cake is to a set of ingredients, there's no way to get the flour back out of the cake.


Error: ‘strlen’ was not declared in this scope

This seems to be the result of a bug in the source code for the program (at least in the specific case you provided details on). But fortunately it is one that you can work around without too much trouble!

Since this is a recurring issue and often happens when source code for a program tested on another platform (most often Windows) is brought to Ubuntu, we should probably consider this question on-topic even though it involves bugs and programming. With that said, reporting the bug to the program's developer is an appropriate action to take as well.

It appears that one of the following situations applies:

On the platform(s) where the program was developed and tested, the header file(s) providing identifiers like strlen were indirectly included by being pulled in by the implementation of some other header file. This is unintentionally implementation-specific behavior.
Some weird C++ standard library implementations allow a lot of things that are technically prohibited and a few things that are conceptually impossible. (This does not make them bad overall, necessarily.) I believe some versions of Microsoft's C++ library give you functions like strlen as global identifiers even from C++-style #includes like #include <cstring>. This will not work with GCC/g++ on Ubuntu.

In either case, you will probably have to edit the source code slightly, as Null pointer suggested. Since this is quite simple, we can walk you through this if you tell us exactly what files you downloaded and what steps, if any, you took before running make. You can edit your question to include this information as well.

Null pointer's advice to add something like #include <string.h> at the top of the files where the errors are happening will likely work. It may or may not be the best way to fix this. If situation 2 is what is happening, a using statement for the needed keywords (or the whole std namespace if necessary) would suffice.


Xubuntu 20.04 no internet connection and no sound

Turns out, I didn't have linux-headers and linux-image-extra stuff from kernel. They didn't downloaded somehow.
Luckily I've been able to use 'recovery mode', boot from old old kernel, and download missing elements with Synaptic.


My Ubuntu 14.04 window controls don't changes after setting in dconf-editor

In Ubuntu 14.04,Unity uses new unity-window-decorator where this feature is not implemented. This is a design decision. Ubuntu uses window-control on left on panel. There is no reason to have it on right on normal window. However developers are open to accept any patches.

You can file a bug for Unity on launchpad.


Crappy DNS resolution would be my guess. get.docker.com uses Amazon Cloudfront.

$ curl -I https://get.docker.com/ubuntu/
HTTP/1.1 200 OK
Content-Type: binary/octet-stream
Content-Length: 110
Connection: keep-alive
Date: Tue, 18 Jun 2019 11:24:03 GMT
Last-Modified: Tue, 16 Oct 2018 23:00:23 GMT
x-amz-version-id: HeHCl3LN6plpzhibKU1V5uZfpGiawVdA
ETag: "b619bbda54539f24a971070244d36e37"
Server: AmazonS3
X-Cache: Miss from cloudfront
Via: 1.1 0ea2ca4542be08b5610e21d1ffd6aa5b.cloudfront.net (CloudFront)
X-Amz-Cf-Pop: MAN50-C1
X-Amz-Cf-Id: 6BPw0Cj6kObi8MPSpTteMhm3pxrlhSPCl3OkABfCuC7SsjR7mCL0iw==

$ ping get.docker.com
PING d3cxuo8f8w64ms.cloudfront.net (52.85.140.74) 56(84) bytes of data
...

$ dig get.docker.com
...
get.docker.com.     300 IN  CNAME   d3cxuo8f8w64ms.cloudfront.net.
d3cxuo8f8w64ms.cloudfront.net. 59 IN    A   52.85.140.2
d3cxuo8f8w64ms.cloudfront.net. 59 IN    A   52.85.140.94
d3cxuo8f8w64ms.cloudfront.net. 59 IN    A   52.85.140.74
d3cxuo8f8w64ms.cloudfront.net. 59 IN    A   52.85.140.25

We're seeing different IPs but that's the nature of global CDNs. They return different IPs based on where you are, and also depending on what servers they're tasking for that job. The DNS can change all the time, frequently.

The most likely cause of something like this is a DNS cache at your end holding onto an old resolution, pointing at an Amazon server which now no longer holds data for get.docker.com. As I say, these things the migrate around so any caching over the set TTL is risky.


In general there are no "drivers" for Ubuntu in the same sense as for Windows. So going to SONY's web site would not help.

In Ubuntu most of the "drivers" are embedded in the Linux kernel itself. The rest are either left out as optional loadable "modules" or are proprietary drivers that cannot be embedded into the Linux kernel. One such example is the NVIDIA graphics driver. It is provided by NVIDIA in binary form only and therefore it cannot be embedded in the Linux kernel.

That said most of these proprietary drivers can be installed using the "Additional Drivers" a.k.a. "jockey" utility found in your default installation. It will scan your system for potential candidate devices for which there is a proprietary driver available and offer you to activate them.

To use the utility:

Open the dash by hitting the Super key or clicking on the "Ubuntu" button usually located in the top slot of the launcher.
Search for "Additional".
Launch the "Additional Drivers" application.

Once in the utility, wait for it to scan your system and install any drivers that you like if it found any.

If the utility does not find anything and/or installing any proprietary driver does not help your issues, you will have to ask for a solution of a specific issue you are having with Ubuntu on your laptop in a separate question.


Can't install Ubuntu on SSD due to partitioning issue

EaseUS has botched your partition table and Ubuntu is not even able to read it as per your output of parted --list. That Windows is still able to boot is a small miracle but luckily for you, you saw this early on and I'm expecting huge problems if you continue to use the machine in this state.

As you've just reinstalled Windows 10 anyway, do the following in the following order:

Boot Ubuntu Live
Open gparted

Device
Create Partition Table
Choose GPT

Reboot and install Windows (yeah, again)
Boot Ubuntu Live again.
Use gparted to make space for Ubuntu (no need for third-party tools, you're the second one today that botched his system with EaseUS)
Reboot and install Ubuntu


Where to find default Ubuntu purple wallpaper without animals?

The name of the official Ubuntu purple wallpaper without animals is warty-final-ubuntu.png. warty-final-ubuntu.png wallpaper is provided by the ubuntu-wallpapers-xenial package in Ubuntu 16.04. Download the ubuntu-wallpapers_16.04.1-0ubuntu1_all.deb file from its official Ubuntu webpage and extract the warty-final-ubuntu.png file from it using the Archive Manager application.

The below wallpaper image is compressed to 75% of the scale of the original 4096 x 2034 pixels warty-final-ubuntu.png wallpaper.

Change  the wallpaper from Settings → Background → Picture tab → select a picture → press Select button (in 18.04) or Settings → Background → Add Picture (in 20.04).


how to debug upstart if it hangs while root is read-only?

For reference, the (unsuccessful) debug steps i tried, which my however be useful to others:

get another debian-like system that does boot (e.g. a live ubuntu on a bootable usb pen drive) and make configuration or software changes to the examined system using chroot. use qemu-static to be able to do this on a system with differing architecture.
install a standalone shell like sash, then change your kernel command line (use the e key in grub or edit grub.cfg/cmdline.txt) and add init=/bin/sash, reboot, examine the situation on that shell and only then use exec init to continue booting
use init with the -v switch to increase logging
mount the root filesystem writable early (e.g. add 'rw' to the kernel command line, mount -o remount,rw / before executing init) - this allows for more logging
examine /var/log/upstart
start an extra terminal on tty2 before executing init, e.g. getty -n -l /bin/bash 38400 tty2 & - this helps examining the status the system is in (e.g. ps -Af, iotop)
use initctl list to figure out which services are in which state


Is there a startup shell script for Jenkins?

Services are not designed to be launched trough .bashrc like files, but you have to configure them to be ran under the needed UID or username. It could be done in service configuration files, or sometimes in /etc/default/[service] config file, or /etc/init.d/[service] init script.


How to update to a specific version of Ubuntu (NOT latest version)

You probably already have the hardware stacks:  it is basically picking the corresponding kernel when GRUB pops up. So the closest to what you want is by picking the 16/18.10 kernel and have the hardware support from 16/18.10. Mind that this only works for the hardware; the software will still be the same versions.

Some extra info:

16.04.1 = 16.04 + Hardware stack for 16.10
16.04.2 = 16.04 + Hardware stack for 17.04
...
18.04.1 = 18.04 + Hardware stack for  18.10
etc

and

sudo apt install --install-recommends linux-generic-hwe-18.04

will install the 18.04 hardware stack but there is no separate 18.10, 19.04 stacks as soon as the new release arrives. This will always upgrade as far as it can go so there is no method to do exactly what you want. You can check with

hwe-support-status --verbose

(only works on LTS versions).

Related:

What is hardware enablement (HWE)?

https://wiki.ubuntu.com/Kernel/LTSEnablementStack


"Safely remove drive" option missing from Nautilus in 12.10

There are a couple of bug reports and some reasons as to why Eject has substituted "Safely Remove Drive":

https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1067876

https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1073597

https://bugzilla.gnome.org/show_bug.cgi?id=598690#c5

https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/706436

Also just to clarify, as mentioned in What is the difference between "Unmount", "Eject", "Safely Remove Drive" and the eject icon? or in What is the difference between Eject and Safely Remove Device Eject will also do the powering down but this does not work correctly on all devices. If the device has multiple partitions for example it might have problems when doing Eject.


How can I host DayZ Standalone on a remote Linux server? I'm getting "Wine Mono is not installed"

Forwarding X

This answer assumes you are using--or can use--ssh to access the server. To avoid ambiguity, I've referred to the server on which you wish to install DayZ Standalone Server as the "SSH server." In contrast, an "X server" is a program that runs on the SSH client. The SSH client is the machine you are using to connect to the server. I presume the SSH client itself has a graphical interface.

So long as the SSH client machine has a display and an X server (such as X.org) installed on it, it shouldn't be a problem that the SSH server doesn't have one. If an X server is installed on the SSH client, you can run

ssh -X ssh-server

with ssh-server replaced by the actual hostname or IP address of the SSH server. Then you can run graphical programs on the SSH server, and their graphical interfaces will be created on the SSH client. That is, you run a command in your SSH session that runs a graphical program, and the program window comes up on your desktop, even though the program itself is running on the SSH server.

If the SSH client is Ubuntu or another GNU/Linux system and a GUI is installed on it, then you probably don't have to install anything else on it. Otherwise, an X server may or may not be available. In particular, Windows does not come with one. Various X servers for Windows are available, such as VcXsrv.

As you've rightly said, the difficulties you've had so far are entirely due to the inability to run graphical programs. ssh -X from an SSH client that is running an X server is typically sufficient to solve that.

From this point forward, all installation instructions are intended to be run on the SSH server.

Testing X Forwarding

I suggest testing this with something simple, first:

xclock runs a simple graphical clock application. It's a good choice for testing X forwarding. xclock is provided in the x11-apps package.
To test if Wine works in this situation, you can use wine notepad or wine explorer.

Although some libraries are required on the SSH server for this to work, the wine package has the x11-common package as a dependency, which is sufficient to provide them.

64-bit and 32-bit Wine

I presume you have installed the wine package already, but for readers who have not:

sudo apt update
sudo apt install wine

If the SSH server is running a 64-bit Ubuntu system (highly likely) and you need to run 32-bit Windows programs, then you can enable the installation of 32-bit packages and install the wine32 package:

sudo dpkg --add-architecture i386
sudo apt update
sudo apt install wine32

Winetricks

winetricks, and the installers it automatically downloads and runs, are likely to work. But if you want to use winetricks's own graphical interface--which I do recommend--then you'll need the zenity package. But I don't recommend installing zenity in the usual way, because that would pull in a huge amount of software as dependencies--basically, an entire graphical interface on the server that will be of no help to you. Instead, install zenity with:

sudo apt install --no-install-recommends zenity

That may still install plenty of libraries as dependencies, but far less, and no useless X server. (An X server does no good on the SSH server, which as you say has no display.)

Wineprefixes

You may want to create an use a wineprefix, especially if you need to run 32-bit Windows programs with Wine. See How do I create a 32-bit WINE prefix?

Winetricks can help with this. When you run it and don't pass any arguments, its graphical interface comes up, and one of the options is:

  Create new wineprefix

If you select that and click OK, you are prompted to select your architecture (the options are named "32" and "64" and to specify a name for the prefix).

For more information, including how to choose a wineprefix to run programs, see How to install 32 Bit Wine on 64 Bit Ubuntu?, including Relish's answer.

Wine Mono, or the .NET Framework

If Wine Mono is not installed, you can download the .msi file for it from the Wine website. As of this writing, the latest version of 4.9.4.

As PSN's answer to Mono Package for Wine is not installed says, the unusual command wine uninstaller may be used to install it. Without specifying a Wine prefix, this, this install it for 64-bit Wine, assuming the server is 64-bit. (Even though there is a wine32 package, there is no longer a separate wine32 command; instead, use a 32-bit wineprefix.)

Another way to run uninstaller, which may be easier if you have made a wineprefix that you want to use, is to run winetricks and, after selecting your prefix, select:

  Run uninstaller

As an alternative to Wine Mono, you can install the Microsoft .NET Framework in Wine. Which version you will want depends on the application you need it for. You can install them with Winetricks, under:

  Install a Windows DLL or component

Your mileage may vary...

I don't know how well this will work to run the DayZ Standalone Server. But if the DayZ Standalone Server need only a basic graphical interface (unlike, for example, the game itself) and if it works in Wine (which has been reported, though I'm not sure how current that procedure is), then I would expect this to work.

I've found that Windows applications that work locally on Wine will also work on Wine on a remote SSH server via ssh -X. However, you should expect their interfaces to be less responsive than those of a local program. Depending on the latency, reliability, and (probably to a lesser extent) speed of your network connection to the server, the responsiveness might be enormously worse.

Furthermore, because I don't know what procedure you're using to install it, I've only given generic advice about how to run graphical Windows applications with Wine on an SSH server (and to forward X, with ssh -X, to do so).


how to register zotero:// protocol on ubuntu 16.04

Running into the same issue on Ubuntu 18.04, I just wanted to post the solution that worked for me.

The zotero.desktop file that is installed with the current version of Zotero is correct. The only thing that is missing is the entry in the mimeapps.list. Thus, all you have to do is follow the final bit of @pim's answer:

  Then edit the file ~/.config/mimeapps.list, section [Default Applications], adding this line :

x-scheme-handler/zotero=zotero.desktop

  Now you can test it (even without re-login) using xdg-open zotero://abcdef.

(I corrected the file name)


How do I install an old version of a package?

I was able to install the package by installing some lucid packages (this and this) after removing the 0.8.1 version.


Windows can't boot after partition shrink

From the comments, I gather the problem is fixed; however, I want to offer some explanations and clarifications, so....

  I had UEFI turned off I think.

The vast majority of EFI-capable computers use EFI firmware. It cannot be turned off. Some such computers do enable you to force a BIOS/CSM/legacy-mode boot, but the EFI is still running underneath it all. Most EFIs don't even let you truly force a BIOS-mode boot; enabling the Compatibility Support Module (CSM) just makes a BIOS-mode boot an option, not a requirement. To understand this, consider an analogy: The CSM (which enables BIOS/legacy-mode booting) is to EFI what dosemu is to Linux -- both enable a more sophisticated environment (EFI or Linux) to run programs written for a less sophisticated environment (BIOS or DOS). When you run a DOS program via dosemu under Linux, though, the computer is still running Linux; and when you boot a BIOS-mode OS via the CSM, the firmware is still EFI.

Ultimately, the CSM creates more problems than it solves, at least on modern computers. Occasionally it's necessary, but as a general rule, my recommendation is to leave the CSM disabled. Enabling it (aka "disabling UEFI mode") may be what caused your problem in the first place -- or at least, it may have been a critical part of what caused the problem.

Both your GParted screen shot and the Boot Info Script output indicate that /dev/sda uses GPT. As such, Windows must be installed to the disk in EFI mode, and in fact the Boot Info Script output shows EFI-mode Windows boot loader files (or at least, files with appropriate filenames). The Boot Info Script output also, however, shows a BIOS-mode Windows boot loader on the disk. This boot loader would be useless on a GPT disk, though. My hunch is that EaseUS wrote that code to the MBR, but it might have been left over from a previous installation. In any event, it's possible that by activating the CSM, it ended up executing this useless boot code, which resulted in your failure to boot.


Downloaded file keeps respawning after I delete it, Ubuntu 16.04

Quick solution for stopping the respawning of the folders
Uninstall deluge.
The problem you are having is with the application that you have installed.  From the comments, the application is Deluge.
You can stop the behavior by uninstalling the application that is creating the folders (uninstall deluge).  Or go into the menu of the specific application and manually cancel all the items in your active queue.
From question first time on here. Novice user.  The easiest resolution would be to remove Deluge and use the default bt torrent client that is already installed in Ubuntu and configured for ease of use.
From the Ubuntu Documents page:

Transmission is designed for easy, powerful use. We've set the
defaults to Just Work and it only takes a few clicks to configure
advanced features like watch directories, bad peer blocklists, and the
web interface. When Ubuntu chose Transmission as its default
BitTorrent client, one of the most-cited reasons was its easy learning
curve.

The Torrent downloads will autmatically start just by clicking on the torrent filename.  You can also bring up the torrent interface by typing torrent in the Ubuntu search button.
The default screen will show all queues.  You can cancel any unwanted transfer or activity by clicking to select the transfer, then clicking the minus sign in the menu bar.
I performed research on Deluge but didn't find definitive answers for cancelling a download.  Out side of actually installing it myself, the resolution may be the same as with Transmission in Ubuntu.  Select the tranfer and use the menu option to remove the item.
Support for Deluge specific can be found at Deluge Support Forum.


Broadcasting webinars to and from Ubuntu

I'm a long time Ubuntu user and also work for Citrix Online who make GoToWebinar.  I just wanted to let you know that we are working on support for Linux currently, it's something I'm pretty excited about and will definitely be announcing on my blog once it's ready :)


Can virtual terminals (ctrl+alt+f*) use external monitors?

Yes it is possible, depending on the laptop. Anything that uses the standard VGA text mod shouldn't have a problem with an external monitor, although you may need to switch on the external monitor using the keyboard switch.
I had an HP laptop with a broken screen & was working with both the command line & X with an external monitor, without having the enable the screen when using a VT.


XModMap Key Remapping Not Totally Working

Take a look at xbindkeys.

Create at $HOME/.xbindkeysrc and make sure to launch xbindkeys on startup.

"COMMAND IN HERE"
  F5

If you need to emulate another key press with the F5 key, look into xdotool.  I unfortunately don't have much experience with that one.


@S_n Can you please check the logs, and see whether it gives an indication about the problem?

I've had the same problem and that caused an infinite loop, and the CPU was constantly higher than 30%.

So if you run in the terminal journalctl you can check it the log in the terminal.

I fixed it by adding a pci=nomsi parameter to the GRUB_CMDLINE_LINUX_DEFAULT property(you can find and edit it in: sudo vim /etc/default/grub)

After adding the parameter update the grub: sudo update-grub and then reboot.
Then run top in the terminal, and see whether that fixed it.

  Note: By doing that you'll add the parameter permanently, however you can  do it temporarily

If you want to add it temporarily, as following:

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


How can I get gcc to find certain libraries?

What the error you see is saying is that the program ld cannot find those files.  The /usr/bin/ld: part identifies what is throwing the error, not where the checks for the files are occurring.


How do I change terminator title bar default text

Most terminal emulators have an option to set the title bar default text, and it should work for terminator too.

Maybe this what you want?

PROMPT_COMMAND='echo -en "\033]0; $("pwd") \a"'

It should change the title automatically even when you add new tab. See this link

askubuntu.com/questions/636944/how-to-change-the-title-of-the-current-terminal-tab-using-only-the-command-line

and if it works you can modify the Exec line in the corresponding desktop file.


Cannot type backquote or backtick in xterm

On foreign keyboards, there are dead keys - of which the backtick is one in languages like French. The standard response - as you mentioned - is to do nothing and present the accented è when an "e" is pressed (other letters would be similar).

I thought that following the backtick by a space would make a backtick appear alone.

I would check your locale (all LC_* settings) in xterm. I would also check the setting of TERM. You can do these by doing this:

locale
set | grep LC_
echo $TERM

The first two commands should present the same information.

I would also expect that gnome-terminal is much more compatible with foreign languages than xterm.


how to find the routers address in an open wifi network

route -n | grep 'UG[ \t]' | awk '{print $2}'
or
cat /etc/network/interfaces | grep gateway


How do I remove TeamViewers notification that it is still running in the background?

According to this forum thread on Linux Mint Forums, there is a value called ShowTaskbarInfoOnMinimize that TeamViewer stores in the Windows registry. However, the TeamViewer implementation in Linux does not use Wine's registry, so the modification needs to be done to the following file (as per the comment below, shut down TeamViewer before editing this file):

~/.config/teamviewer9/config/client.conf

Add the following line to the end of the file:

[int32] ShowTaskbarInfoOnMinimize = 0

...and start TeamViewer back up.

The notification should no longer appear.

edit: If this solution does not work for you, please open up the file again and verify that the value is actually set to zero. For me, it actually reset back to 1 and had to be corrected and saved, and the next time TeamViewer started up it worked. Might have been me that did something wrong, but I thought I'd point it out.


Lubuntu 16.10: How to make login through greeter without typing password work

Here is one more to try.  This is from a 16.04 system, not 16.10 but is proven to work there. This is the complete contents of my lightdm.conf file.

[Seat:*]
autologin-guest = false
autologin-user = user2
autologin-user-timeout = 0

[SeatDefaults]
allow-guest = false

Here is a complete lightdm.conf from a different 16.04 system, which also works.

[SeatDefaults]
autologin-user = user2
autologin-user-timeout = 0
user-session = Lubuntu
greeter-session = lightdm-gtk-greeter
allow-guest = false


Why is Chinese text displaying strangely?

it is indeed a different font. the fonts you are using do not include that character, so Ubuntu switched to one that contain that font. to fix this ~ switch to font that include all the character you need.


From http://manpages.ubuntu.com/manpages/oneiric/en/man8/updatedb.8.html

  updatedb  is  usually  run  daily  by  cron(8)  to  update  the default database.

Check /etc/cron.daily. It should be there.

/etc/cron.daily$ ls *loc*
mlocate


How to activate flash player for a Quickly created webview/webkit app

I just found these commands for terminal.

  sudo apt-get install flashplugin-installer
  sudo apt-get install nspluginwrapper
  sudo nspluginwrapper -i /usr/lib/flashplugin-installer/libflashplayer.so
  nspluginwrapper -v -a -n -i

flash works now.


Update Ubuntu 12.04.3 Lts Updated version

Go to System settings -> Network -> Network proxy and fill in the proxy settings and hit Apply system wide.


Ethernet stopped working after running some commands

169.254.82.80 is a non routable IP windows assigns when it can't get any other IP. It's pretty much useless.
And you assigned that useless IP 169.254.82.80 to your enp2s0f1 interface. This assignment is not persistent so things would go back as before after a reboot. Or (assuming you connect to internet via your wireless) just shut down and bring up the interface sudo ifdown enp2s0f1 && sudo ifup enp2s0f1


Troubleshooting Ubuntu 20.04 LTS Wifi Problems

Disable Windows Fast Start feature and drivers should work.


How do I install modern packages in Ubuntu "the right way" ?

You will need all packages follow these steps.

First you need add  repository. , What ever Git, launchpad, Debian. etc

grap mean by what application you need ?.
Grap mean below ddrescue is grap
What you want from launchpad.
ex. sudo apt-get install dd rescue-gui.
and
Just grape the name and add into

sudo apt-get install --download-app-name/name


You have a Focaltech touchpad. You can fix it this way. Run in terminal:

sudo apt-get install linux-generic-lts-vivid

reboot.

Then run

sudo add-apt-repository ppa:hanipouspilot/focaltech-dkms
sudo apt-get update
sudo apt-get install focaltech-dkms

But it looks like you tried to install a wrong driver. That's why your touchpad is not detected at all.

UPDATE: These touchpads are now supported by the 4.2 kernels.
The kernel can be installed by

sudo apt-get install linux-generic-lts-wily

The Focaltech driver from the PPA should be removed.


Are there any good antivirus for Kubuntu/Ubuntu as of 2015?

None whatsoever. Yes there are virusses but not a single virus has left the laboratory. Let alone that there is one that can copy itself to thousands of other machines like a virus does on Windows.

99% (I'll leave me 1% wiggle room :) ) of their claims of finding virusses in a Linux operating system are false positives. Only virus software sellers will tell you you need one for Linux/Ubuntu. The only reason for a virus scanner on Linux is to protect Windows machines in your network. It is better to scan for Windows virusses from a none-Windows machine than from a Windows machine. Linux virus scanners can scan mails or downloads and prevent them from even reaching a Windows desktop.

There are currently only virusses to target ONE operating system at a time and the person that wants to infect his own system needs to go out of his way to get it installed. Like actually downloading the virus, execute the installer and run the virus.

The main Ubuntu repositories are virus free. The Personal Archives on Launchpad (or PPA's) are virus free. The main other software you could download like apache, mysql are all virus free.

And all other software you can install is your own stupid problem if they have a virus and you did not check the integrity of the download, the person who created it or the website. Besides that: If someone was to create such software it the 1st person infected would post it on-line, twitter would explode on it. Same for all those Linux blogs.

If you stick to the regular repositories, launchpad PPA's and the websites we can trust, if you stick to the official Ubuntu operating system (look at the disaster Mint brought upon us), if you stick to downloading from websites you can trust (apache, mysql etc) you are fine without a virusscanner. By the way: this last bit also applies to other operating systems. It is the randomly downloading software and the opening of mails on a Windows system that get you into trouble. Don't do the 1st, use on-line mail for the 2nd and you don't need a virusscanner ever.


Install Nvidia Drivers on Ubuntu Server 18.04

sudo add-apt-repository ppa:graphics-drivers
Adds the Personal Package Archive (more) where packages for such drivers may be obtained for Ubuntu installs.

sudo apt-get update
Looks at all packages not on your system and updates them if out of date or adds them if absent.

sudo apt-get install nvidia-graphics-drivers-396
Install the driver package for NVIDIA #396, so it can be added to the kernel next.

sudo ubuntu-drivers autoinstall
Tells the installed driver package to add itself to your kernel.

You may also find https://linuxconfig.org/how-to-install-the-nvidia-drivers-on-ubuntu-18-04-bionic-beaver-linux and https://tecadmin.net/install-latest-nvidia-drivers-ubuntu/ useful in understanding proprietary (i.e., not Open Source) installation better.


Device: /dev/sdf [SAT], 1 Currently unreadable (pending) sectors

I ended up upgrading to a Samsung 1TB and the issue went away.  I assume it was hardware related.


sony handicam can`t download to shotwell

Tape handycams should be captured in a capture software like kdenlive, openshot or any other non linear editing system (NLES). For that purpose you should either use the proper USB or Firewire (iEEE1394) cable.

You can't simply plug the camcorder and "download" the video files. Try kdenlive but there are a few other good alternatives as you can see in the answers to this question: Video editing software options?.

Good luck!


Why does apt-get marks packages I dont want directly?

Quick search through apt sources gave me (1). As far as I understand, packages which are in section listed in APT::Never-MarkAuto-Sections, when installed mark their immediate dependencies as manual. So that installing a metapackage which required, for example, browser, then removing the metapackage leaves the browser installed. This seems to be intended behavior. Should be possible to change by clearing the default APT::Never-MarkAuto-Sections value.

(1) http://sources.debian.net/src/apt/1.1.9/apt-pkg/depcache.cc/?hl=849#L843


Advanced partition plan for triple boot Windows, Ubuntu, Arch

You want the swap partition to be as close to the beginning of the drive as possible for performance, on hard disks.
EXT4 is fine. It can sometimes make it easier with finnicky GRUB configurations if /boot is primary and the partition table isn't changed anywhere before it.
You shouldn't share /root and /etc as if you will be experimenting with Arch, you may be messing up configuration. Also, during the Arch installation, the installer may write to said partitions with its own config in a way that could restrain or confuse Ubuntu.


How to change password of user to very simple like 'w'?

run sudo passwd $USER in a terminal, replace $USER with the username you want to set the password for.

$USER is the same as the current user if you don't want to type your own name.

Be warned , if you use sudo to change your password you will break encryption of your home directory if you are using encryption.


How to limit FTP access to one directory outside the user home? VSFTPD

FTP usually limits the users to their respective home folders.

You said that the user2 user is only used for FTP. It should be enough to search for the user2 entry in the /etc/passwd file and replace /home/user2 with /media/user1/SecondaryHDD/Camera. (Open the file with root rights)

Make sure though that user2 has read and write permissions to /media/user1/SecondaryHDD/Camera


missing libgobject-2.0.so.0 error on Kubuntu 16.10

As suggested by CelticWarrior in his (deleted) comment,

open a terminal and run the following command:
sudo apt-get install libgtk2.0-0:i386 libsm6:i386

this will then install all libraries needed to run craftware.

Thanks CelticWarrior


Always try another mouse.  If the alternate mice don't work, then it's a driver issue.  If the alternate mice do work then it's a hardware issue.

For several years now I've been promoting Ubuntu to Windows users as a DIAGNOSTIC TOOL.  I suggest they boot their computer to an Ubuntu Live CD and that if it works right then their issues are with Windows, but if it doesn't work right then there are probably hardware issues.  Better than 9 out of 10 times, this litmus test works.


Weird scaling issues in Unity after installing Cinnamon

Get unity-tweak-tool, and edit the fonts/fontsize fields, and the button size should be nearby(maybe you mean the window decorations?).


1.Install openvpn:

$ sudo apt install openvpn network-manager-openvpn-gnome

2.From Network indicator, click on Edit coonnections…

3.Click Add.

4.Choose OpenVPN and click Create…

5.Name it, choose gateway and give it the 3 certificate files.

6.Save it

7.Connect to it via VPN Connections submenu of the Network indicator


I guess windows arp -a doesn't do name lookup. Just use arp -n on linux and it will be instant.


Cleaning up swap issues on Ubuntu Server 20.10

You currently have a 8G swap partition, and a 4G /swap.img file.
To reduce your two swaps down to one...
First unmount both swaps...
sudo swapoff -a
Then remove (or comment out) EITHER one of these lines from /etc/fstab using...
sudo -H gedit /etc/fstab or sudo pico /etc/fstab

For 8G swap partition (see next choice)...
/dev/disk/by-id/md-uuid-05f3f447:6002213f:2bb97c81:6416f121 none swap sw 0 0

Then delete this swap partition (/dev/md1 or UUID), sudo swapon -a, then reboot.

For 4G /swap.img (probably easier/safer to do)...
/swap.img   none    swap    sw  0   0

Then sudo rm -i /swap.img, sudo swapon -a, then reboot.

Verify operation with...
swapon -s
free -h


Intel AC7260 wifi card disconnects and have to restart

Did you read in the bug report you linked?

  Performance is related to the access point. With some access point the
  laptop would not even connect, with other it will connect but not in a
  stable way, while with others it will work with no problems.

First, check the settings in the router. WPA2-AES is preferred; not any WPA and WPA2 mixed mode and certainly not TKIP. Second, if your router is capable of N speeds, you may have better connectivity with a channel width of 20 MHz in the 2.4 GHz band instead of automatic 20/40 MHz, although it is likely to affect N speeds. I also have better luck with a fixed channel, either 1, 6 or 11, rather than automatic channel selection. Also, be certain the router is not set to use N speeds only; auto B, G and N is preferred. After making these changes, reboot the router.

Next, I recommend that your regulatory domain be set explicitly. Check yours:[CODE]sudo iw reg get[/CODE]If you get 00, that is a one-size-maybe-fits-all setting. Find yours here: http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 Then set it temporarily:

sudo iw reg set IS

Of course, substitute your country code if not Iceland. Set it permanently:

gksudo gedit /etc/default/crda

Use nano or kate or leafpad if you don't have the text editor gedit.

Change the last line to read:

REGDOMAIN=IS

Proofread carefully, save and close the text editor.

Next, I'd set IPv6 to Ignore in Network Manager: http://docs.fedoraproject.org/en-US/Fedora/18/html/Installation_Guide/images/netconfig/network-connections-ipv6-ignore.png  This example is for ethernet, but you want wireless.

Reboot and let us know the result.


Retrieve Launchpad Answers programatically

The default 1.0 API version is stable but quite old, and doesn't include many methods that have been exported more recently.  For this you need to use the "devel" version of the API:

lp = Launchpad.login_anonymously('name of your script', version='devel')

Then you can use methods documented in the devel API docs, specifically project.searchQuestions:

project = lp.projects['foo']
questions = project.searchQuestions()

You can limit this in various ways as the API docs indicate, or just ask for everything as above; either way, you'll get back a batched collection of question objects that you can iterate over and operate on.


Chrombook with Ubuntu Mate 16.04 Lts have keyboard problem.

Edit: I was curious and spent more time trying to bring up support for this layout in Ubuntu 18.04. There is a repository which mostly consists of one patch against the Ubuntu packages. I decided to download the latest package of xkeyboard-config from here which worked as expected for XFCE/Xubuntu. The Chromebook layouts can be selected from the layout list. It gets more difficult getting it to work with Gnome. I tried adding 'chromebook_m:overlay' to /org/gnome/desktop/input-sources/xkb-options in dconf after reading this and this but it did not work. Setting XKBMODEL="chromebook_m" in /etc/default/keyboard worked, but not in Gnome Wayland on 18.04. That's as far as I got. Gnome Wayland should work with XKB maps but I don't have much time to investigate further at the moment.

You need to configure a matching keyboard layout, the Ubuntu based Gallium OS comes with additional configuration files to make such keyboards work. I have not yet dug deeper into this problem and how they solved it but I think /usr/share/X11/xkb/symbols/chromebook is where the configuration is stored, but you'd better try Gallium OS itself first.

// This mapping assumes that inet(evdev) will also be sourced
partial
xkb_symbols "overlay" {
    key <LWIN> { [ Overlay1_Enable ], overlay1=<LWIN> };
    key <I225> { [ Overlay1_Enable ], overlay1=<I225> };

    key <AB09> { overlay1=<INS> };

    key <LEFT> { overlay1=<HOME> };
    key <RGHT> { overlay1=<END> };
    key <UP>   { overlay1=<PGUP> };
    key <DOWN> { overlay1=<PGDN> };

    key <FK01> { overlay1=<I166> };
    key <FK02> { overlay1=<I167> };
    key <FK03> { overlay1=<I181> };
    key <FK04> { overlay1=<I160> };
    key <FK05> { overlay1=<I235> };
    key <FK06> { overlay1=<I232> }; // XF86MonBrightnessDown
    key <FK07> { overlay1=<I233> }; // XF86MonBrightnessUp
    key <FK08> { overlay1=<MUTE> };
    key <FK09> { overlay1=<VOL-> };
    key <FK10> { overlay1=<VOL+> };

    key <AE01> { overlay1=<FK01> };
    key <AE02> { overlay1=<FK02> };
    key <AE03> { overlay1=<FK03> };
    key <AE04> { overlay1=<FK04> };
    key <AE05> { overlay1=<FK05> };
    key <AE06> { overlay1=<FK06> };
    key <AE07> { overlay1=<FK07> };
    key <AE08> { overlay1=<FK08> };
    key <AE09> { overlay1=<FK09> };
    key <AE10> { overlay1=<I236> }; // KEY_KBDILLUMTOGGLE
    key <AE11> { overlay1=<I237> }; // KEY_KBDILLUMDOWN
    key <AE12> { overlay1=<I238> }; // KEY_KBDILLUMUP
    key <BKSP> { overlay1=<DELE> };

    key <LALT> { overlay1=<CAPS> };
    key <RALT> { overlay1=<CAPS> };

    // For some strange reason, some Super_R events are triggered when
    // the Search key is released (i.e. with overlay on).
    // This maps RWIN to a dummy key (<I253>), to make sure we catch it.
    key <RWIN> { [ NoSymbol ], overlay1=<I253> };

    // Map dummy key to no symbol
    key <I253> { [ NoSymbol ] };
};


It is saying that it doesn't have sun-java6-bin, which is a dependency, so install that too. Modify your original command to:

sudo apt-get install sun-java6-jdk sun-java6-jre sun-java6-source sun-java6-bin


OK I've found the "solution". I launch musescore, then as I said, it will close automatically after a few seconds. OK now launch it again, it will prompt me that the program was terminated unexpectedly last time and ask me whether I want to restore the last session. Choose "no" then the same problem will persist. But choose "yes" to restore the last session, then everything works fine. So the problem is SORT OF solved, only that I need to launch it every time in such a strange way!!


Copying selected files in multiple folders to different destination in Ubuntu

Read, and re-read man find.
Read, and re-read man xargs find and xargs are the answer:

find /data/nldas/raw/hourly/ -type f -name 'NLDAS_VIC0125_H.*.grb' -print0 | xargs -0 cp --target-directory=/datag/name/soil

Note if there are two NLDAS_VIC0125_H.*.grb files with the SAME name (the '*' is the same in both cases), one will be overwritten in the target directory, unless you use the --backup=numbered option to cp.


i clicked on don't save option and all the data got lost

That is what "don't save" implies. Regardless what you are using closing with the "don't  save" option will not save anything to disk, and will remove any temporary file that was used to keep this cached.

  Is there a way to retrieve the lost data

No, nothing was saved to disk so there is nothing to restore from disk.


There is actually a better driver suite for your device. I suggest that you do, in a terminal and with a solid connection:
Code:

sudo apt-get update
sudo apt-get install git dkms
git clone https://github.com/lwfinger/rtl8192cu.git
sudo dkms add ./rtl8192cu
sudo dkms install rtl8192cu/0.1

Reboot.


Chrome/ium rendering problems with Intel Graphics

UPDATE As of Jan 30, 2014, the bug seems to be fixed. With the latest drivers from oibaf's PPA, there are no graphic glitches in Chrome.

Are you using oibaf's ppa with latest graphics drivers?
Looks like there's a bug introduced in recent Mesa builds:

Bug 73978 - Intel driver breaks hardware accelerated flash on Chrome (supposedly related to Flash plugin but it's unconfirmed yet).

The current workarounds are:

EITHER: disable accelerated compositing for now in Chrome by launching it with the following flag:

google-chrome --disable-accelerated-compositing

Notices:

For some reason disabling Accelerated compositing on all pages in chrome://flags didn't do the trick for me
Make sure you stop all chrome's processes by issuing killall chrome before launching it with the command line flag

OR: revert to older graphics drivers by purging oibaf's PPA: sudo ppa-purge ppa:oibaf/graphics-drivers (install ppa-purge if you don' have it)

Also keep an eye on this forum thread on Phoronix:
Updated and Optimized Ubuntu Free Graphics Drivers


After a fresh install the root password could be blank. It is recommended to run mysql_secure_installation to secure your mysql server and set a root password.


what's the current best way to connect 2 Ubuntus together on wifi?

wondering if it's some firewall at play (which I haven't found traces
off)

The issue ended up being firewall related indeed. Yes I didn't see any obvious firewall settings on the 19.04 and 20.04 (having read about 'ufw' but that was not installed)... however it turns out that this - to me -  new service was running on both boxes: firewalld (https://computingforgeeks.com/install-and-use-firewalld-on-ubuntu-18-04-ubuntu-16-04/ )
So the solution was to move the wifi interface from the 'drop' zone on to the 'home' zone:
sudo firewall-cmd --zone=home --change-interface=wlp61s0


Constructing an address book with Bash - editing the fields with sed produces the wrong result

There are a few ways to fix this by changing your sed line:

Option 1 (recommended):
Match on $name$delimiter instead of just $name. Your delimiter is ';' so add it to the match and replace strings:

sed -e "s/${nom};/${1};/g"

Option 2 (not recommended on it's own):
/g says match all instances of ${nom} on a line - when you only want to match the first - remove the g:

sed -e "s/${nom}/${1}/"

Option 3 (use both to be more accurate):

sed -e "s/${nom};/${1};/"

Lastly, you are creating temporary files and moving them because you are using sed -e. You can use sed to edit the file directly, using sed -i then you don't have to worry about creating temp files and moving them over the originals


SSH authentication via GnuPG: The agent has no identities

The following instructions eventually worked for me. Apparently, GNOME keyring has to be explicitly disabled for SSH with:

mkdir ~/.config/autostart
cp /etc/xdg/autostart/gnome-keyring-ssh.desktop ~/.config/autostart
echo 'Hidden=true' >> ~/.config/autostart/gnome-keyring-ssh.desktop

And then logging out and in again.


Ubuntu 18.04 dual-boot Installation Problem with Windows 10 Dynamic Drives

Conversion of Dynamic disk to Basic disk is the first step, as recommended by Microsoft (who no longer recommend Dynamic Disks): https://docs.microsoft.com/en-us/windows/win32/fileio/basic-and-dynamic-disks

However, first make a backup of your data, then verify it matches the source files. Then, make a second backup to a different destination (drive or cloud), and verify it matches the source files.

While in Windows, download and extract TestDisk, an open source app, then we will follow instructions courtesy of http://surenseven.blogspot.com/2012/11/converting-dynamic-to-basic-disk.html

Launch the testdisk_win.exe app.
A window should open up. Create a log file if you want to or just go ahead without creating one.
Now it must show your physical disk followed by the partitions and of any other devices connected to your PC. TestDisk does a great job of this. It can even detect drives that Windows can't due to various reasons.
Select your physical drive and proceed. TestDisk will automatically figure out your partition table type.
Proceed to the next step and click analyse. It will provide you with the findings. Now hit quicksearch.
Now the trick is to use your arrow keys to toggle between the options. Once you see a ' P' stop and proceed (P for primary) ,select '*' for your system drive which is the active boot partition.
Once you've made your change press enter and toggle with your arrow key to choose 'WRITE".
Restart your PC into Windows.
After it restarts, click Start, type Run, type cmd, and then click OK.  On the command line, type chkdsk to scan for errors.  If any errors are found, type chkdsk /f on the command line to fix these errors.

-

Once conversion to Basic is complete, you can install Ubuntu, starting by booting from a LiveUSB.

In Step 6, Allocate Disk Space, look for the top option, named Install Alongside Windows Boot Manager.

Choose that top option, which will prompt you for your choice as to how much space Ubuntu should take. Since Ubuntu can mount, read from, and write to the Windows NTFS partitions, you will be able to easily access files in the Windows portion of your drive.


Quite often BIOS has two sets of options. Ordinary and Advanced. To see advanced set You have to use some key combination (in my case it is Ctrl+F1) and then appear much more options. To find out if You have such possibility You have to read Your mainboar manual.
Regards


Error while playing a song playlist in Audacious after pc is restarted in Ubuntu 12.04 LTS

This happens to me all the time with Rhythmbox and Banshee. It seems the problem is caused because music is stored in windows partitions. Installing ubuntu on a separate partition and storing all your music there would be the solution.
Hope this helps :)


Enable the Universe Repository
Install gdebi: sudo apt-get install gdebi
Download Steam here
When prompted select "Other" and then select "GDebi" as the installer as shown below:

Click "Install Package", and when you see the image below click "Start Steam" to complete the installation.

Enjoy!

Edit: For some reason I had to run ~/.local/share/Steam/ubuntu12_32/steam to get it to launch and update the first time. Since then it launches normally.


Ubuntu will not boot into busybox for remote LUKS decryption using dropbear

After what feels like an eternity of deep diving into Google and trial and error, I finally got this figured out.

Here are the steps I took relative to the steps I outlined in the question:

Removed the script in the blogpost referenced in the question
In the crossfire of trial and error, ended up removing ifconfig eth0 0.0.0.0 down from usr/share/initramfs-tools/scripts/init-bottom/dropbear that step 6 in the blogpost outlined; I never added it back but never needed it
Modified and added the following scripts from this post:

# Comment lines in /usr/share/initramfs-tools/scripts/local-top/cryptroot as follows:
#
if [ -z "$cryptkeyscript" ]; then
cryptkey="Unlocking the disk $cryptsource ($crypttarget)\nEnter passphrase: "
#if [ -x /bin/plymouth ] && plymouth --ping; then
# cryptkeyscript="plymouth ask-for-password --prompt"
# cryptkey=$(echo -e "$cryptkey")
#else
cryptkeyscript="/lib/cryptsetup/askpass"
#fi
fi

# Add /usr/share/initramfs-tools/hooks/cryptroot_unlock and make executable
#
# Prompt to unlock LUKS encrypted root partition remotely
#
# See linked post for sources and acknowledgements
#
#!/bin/sh
PREREQ=""
prereqs()
{
echo "$PREREQ"
}
case $1 in
prereqs)
prereqs
exit 0
;;
esac
. /usr/share/initramfs-tools/hook-functions
#
# Begin real processing
#
SCRIPTNAME=unlock
# 1) Create script to unlock luks partitions
cat > ${DESTDIR}/bin/${SCRIPTNAME} << '__EOF'
#!/bin/sh
/lib/cryptsetup/askpass "Enter volume password: " > /lib/cryptsetup/passfifo
__EOF
chmod 700 ${DESTDIR}/bin/${SCRIPTNAME}
# 2) Enhance Message Of The Day (MOTD) with info how to unlock luks partition
cat >> ${DESTDIR}/etc/motd << '__EOF'
To unlock root-partition run "${SCRIPTNAME}"
__EOF

# Add /usr/share/initramfs-tools/scripts/local-bottom/dropbear_kill_clients and make executable
#
#
# Kills all DropBear client sessions if InitRAMFS is left
#
# See linked post for sources and acknowledgements
#
#!/bin/sh
PREREQ=""
prereqs()
{
echo "$PREREQ"
}
case $1 in
prereqs)
prereqs
exit 0
;;
esac
#
# Begin real processing
#
NAME=dropbear
PROG=/sbin/dropbear
# get all server pids that should be ignored
ignore=""
for server in `cat /var/run/${NAME}*.pid`
do
ignore="${ignore} ${server}"
done
# get all running pids and kill client connections
for pid in `pidof "${NAME}"`
do
# check if correct program, otherwise process next pid
grep -F -q -e "${PROG}" "/proc/${pid}/cmdline" || {
continue
}
# check if pid should be ignored (servers)
skip=0
for server in ${ignore}
do
if [ "${pid}" == "${server}" ]
then
skip=1
break
fi
done
[ "${skip}" -ne 0 ] && continue
# kill process
echo "$0: Killing ${pid}..."
kill -KILL ${pid}
done

After modifying and adding those scripts, dropbear was able to start, but my network device was failing to connect to the network, so I was still unable to connect to the server.

I finally discovered by using ls /sys/class/net that my network adapter was not called eth0; apparently that is an old notation no longer used by recent versions of Ubuntu, and since all the posts I have found are old if not ancient, eth0 is all I found references to.

So, armed with that information and a few more snippets I found from other sources, I modified initramfs.conf as follows:

Modified the DEVICE= portion of /etc/initramfs-tools/initramfs.conf to read:

DEVICE=<name of network adapter discovered using ls /sys/class/net>
IP=<Static IP Address>::<Default Gateway>:<Subnet Mask>::<name of network adapter>:off

Updated initramfs (sudo update-initramfs -u)

Now dropbear connects to the network and I can connect to the server and unlock remotely.


Problems with Dual Boot om Packard Bell TE69BM

Enable Secure Boot mode

Hit Enter on "Select an UEFI file as trusted for executing"

Browse to EFI/BOOT on your USB stick and select the corresponding file

(you might have too put a 32-bit EFI file on there if your BIOS doesn't support 64-bit
UEFI)

Reboot


Ubuntu 16.04, Firefox: YouTube works, EarthCam.com doesn't

If Flash doesn't work, simply run this command in Terminal.

sudo -s

Password:

Type in your password (if prompted).

Then, type in the following command:

apt-get install flashplugin-installer

Hopefully you should be able to take it from there!
Enjoy flash!

By the way, this is Flash Player 11.2 - Further versions will not work with Linux.


Can I boot a Live USB *with persistence* fully to RAM, allowing me to remove the disk?

No, that's not possible. The persistent file system (overlay) is supposed to be writeable which would fail once you remove the underlying storage medium.

If you only want to use it in read-only mode, it's theoretically possible but I doubt that anybody considered this a relevant enough use case to warrant a simple setting switch. Some assembly required.


Doing some further research, I have discovered that your graphics card no longer has drivers supported by ATI. Legacy downloads are also no longer available. And as such, X11 and the Linux Kernel do not support the legacy drivers, even if you were to get a copy elsewhere. In short, it will not work at all. nomodeset is, unfortunately, your best option.

There is another way however.

As linked in a comment, this answer might be able to help you. It will add a PPA where you can get the legacy driver. However, this is very risky and I do not recommend it at all. You will be downgrading you X11 and your kernel, which may break your entire system. Do not try it unless you really, really, really, really need the full ATI card power. Other posts in that thread might be able to help you, but back up your PC and be okay with re-installing from scratch.

If you do follow that answer, I am not responsible for any harm done to your computer. I have given you plenty of fair warning. Backup before even trying that. And do not blame me. I did not force you to try that.Reason for Linkage: I do not condone following those steps. Consider it like a safeguard. Only view those instructions if you are okay with having to reinstall Ubuntu from scratch.

Finally, the open source driver appears not to work due to a bug. I suggest you try to seek help in that forum and maybe even comment that it isn't working for you.

  Bug #597070 -- Updated 10/18/2014

  Status: Fix-Released 8/15/2013
  Importance: Medium
  Assigned: No


When I start a shell the terminal fills with tilde (~) symbols without my pressing the key

You said that some windows get automatically scrolled down. Your "Page Down" key (which scrolls down windows) might be stuck in, because pressing Page Down creates tildes on the terminal windows for some reason. Try unplugging the bad keyboard from your computer and using a different one.


Restoring Grub after Kubuntu installation

Just follow this instructions:
Open terminal (ctrl+alt+t)

If you want to restore Ubuntu "booting" logo, run:

1.sudo update-alternatives --config default.plymouth
 2. sudo update-initramfs -u

If you want to restore default login screen run:
 1.sudo dpkg-reconfigure lightdm
 2. click OK and choose Lightdm.


How to Switch to Wifi if LAN internet is not working

I do not know of a way to do this automatically but if you disconnect the lan cable, WIFI will take over.


Enabling keyboard backlight on Sony VAIO on Ubuntu 20.04

This commands solved the problem
sudo modprobe -v sony-laptop

sudo modprobe -v sony-laptop kbd_backlight=1

echo "options sony-laptop kbd_backlight=1" | sudo tee /etc/modprobe.d/sony-laptop.conf

sudo reboot


How can I use my usb hdd as a live installer without formatting it all?

Try using the Disk Utility or GParted to format the unpartioned space then use unetbootin to install live ubuntu to that partition.  Make sure you select the right one!


Unfortunately, this probably can't be done, as 10.10's / partition has been overwritten by 12.04's /. It is recommended to take a backup of all important files before upgrading your system.


Is it necessary to use Antivirus software?

If you keep your Ubuntu system up to date (software updates), you need no antivirus. I am running Linux since 1992 and never got any virus in near 25 years.

See: Do I need to have 'antivirus software' installed?


Ubuntu won't boot after I used the command Killall -u

Just by the name, "kill all," you would know that it would kill all processes. When you entered the command, you must have killed some of the system process which might have caused an error. If you plan on "killing all" in the future, think. 'I should search how to kill one command and one only.' You might have to reinstall Ubuntu, or boot Ubuntu into Recovery Mode (by holding the shift key) and resetting the settings to default (if you can).


Why does man -P behave differently when the output is redirected or piped?

man doesn't use a pager if the output is not a terminal but a file or a pipe. So the -P option is ignored in that case.


How do I modify the terminal title set by byobu?

UPDATE: April 10, 2015

My current solution that does not depend on the use of shell or terminal is to use wmctrl from a script, and place full path to the script in .byoburc . Works with gnome-terminal, terminator, sakura - just about any termimal
Here's the script:

#!/bin/bash
# Description: byobu always has string ") - byobu" in it's window title
# like user@hostname (192.168.0.2) - byobu
# So why not find windows with exact same string, and tell wmctrl to
# set the title for us ? That's all we do here

BYOBU_WINDOW=$( wmctrl -lx | awk '/) - byobu/ {print $1}' )
sleep 0.5
wmctrl -ir $BYOBU_WINDOW -N "MYTITLEHERE"

Original post

As far as gnome-terminal goes, you can set profile preferences to keep the initial title specified in the profile settings. Bellow is the screenshot of my byuobu with keep the initial title option, and with replace initial title option

As for Terminator, I'll download and see if same applies to it.


My repos became corrupted: Unable to parse package file

Try a sudo rm -r /var/lib/apt/lists/* and then run sudo apt-get update again.


NO_PUBKEY error when attempting to re-install Ubuntu Software Center

I want to suggest an alternative. Its call appgrid

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

You can check synaptic package manager out as well..


fingerprint not working in Acer Swift 3 SF314-51-73XF

There is no driver support for it yet and nobody seems have started writing one at the present time from what I know. Same issue on Fedora.


How to make zenity "transient parent" warning disappear permanently

Automatically add 2>/dev/null every time zenity is called
Edit the file ~/.bashrc and search for these lines:
# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'

Add the following lines after:
# Add zenity alias to make the annoying terminal error message disappear forever:
# "Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged."
alias zenity="zenity 2>/dev/null"

Save the file and open a new terminal window to test:
zenity --info --text "Hello Zenity-Silly-Error-Free World"

Voila! All your old code is fixed and future code doesn't need to have 2>/dev/null appended to it like all the other answers instruct.


apt-cache can be used to query the packages list. To get a full list of all known packages, run apt-cache dump.

Generally, you want to get a list of all available packages, and get more information about a certain package.

apt-cache pkgnames - shows all available package names
apt-cache show [package] - shows all known information about package [package] (multiple outputs are possible if a package exists in multiple repositorues, like a PPA and the main repos)
apt-cache depends [package] - shows the dependencies for package [package]


Why won't my Android SDK Manager show up when invoked from Eclipse?

Welp, just found a solution. Or maybe it's just another workaround. Whatever.

>> cd /usr/bin/
>> sudo ln -s /opt/android-sdk-linux/tools/android android
>> which android
/usr/bin/android

The fact that this works suggests that, even if the tools directory is properly within my path, Eclipse can't find it unless it's also in /usr/bin/. Strange. Oh, well.


Is there any way to use Android Studio in Ubuntu? If so, then how?

There's nothing to install.  Just unzip the file and go to the ./bin directory of the package and run studio.sh.

A common place for custom programs is the /opt directory.

So you can create a folder under /opt calling it android-studio or anything of your choice.  Then run the studio.sh from there.

If you unzip it into /opt/android-studio you'll have a folder in that directory called android-studio.  You could actually create a system-wide link to it so that you can run studio.sh from the commandline to start it.

To create a symbolic link perform this command:

$ sudo ln -s /opt/android-studio/android-studio/bin/studio.sh /us/local/bin/studio.sh

Then to run it just type studio.sh from the the terminal.

Details are also included on the sdk download site:
http://developer.android.com/sdk/installing/index.html


Running headless, without display or graphical desktop environment, please edit /etc/network/interfaces to something like:

auto lo
iface lo inet loopback

auto eno1
iface eno1 inet static
address 192.168.10.251
netmask 255.255.255.0
gateway 192.168.10.1
dns-nameservers 192.168.10.1 8.8.8.8

Be sure to select a static address outside the range used by the DHCP server in the router, switch or other access point. Of course, substitute your details here.

Get the system to read and use the changes:

sudo ifdown eno1 && sudo ifup -v eno1

Did you connect?

ping -c3 192.168.10.1
ping -c3 www.ubuntu.com


The normal boot cd has an option for this. Just download the  normal iso from here and boot from it and then press any key and select OEM install .


apt-get does not install any programs or update after upgrade from 11.04 to 14.04 (LTS)

Is it going good to uninstall and install initscripts package? It means,

apt-get uninstall initscripts
apt-get install initscripts

Or, you can rebuild file database shown in

http://ubuntuforums.org/showthread.php?t=1776763

I hope this answer helps.


How can i get the MacOS green + button function in Ubuntu?

The application would have to hint as to what the optimum size is. This is a historic difference between X-Windows and MacOS. Applications under X will probably expect to be maximized, minimized and manually resized, but few will expect to choose an optimum size and there isn't a standard mechanism for telling them to do so.


What causes the 'Failed to start session' error on Ubuntu 14.04?

Are you sure you didn't have any relevant package upgrades? - Because I just had two count 'em TWO kernel upgrades since friday. Maybe Lowlatency is on a different schedule but version 3.13.0-33 knocked out my wireless for a day or so (lucky for backup) and 3.13.0-34 was released, or at least was installed, on my box like the next day (Sunday) and things seem to be more stable now.

You can avoid kernel upgrades and packages that make serious changes to your system by using the commands:

sudo apt-get update
sudo apt-get upgrade

apt-get upgrade allows people who may be using Ubuntu for school or work (for production) to apply security updates and bug fixes without inadvertently screwing up some important project or deadline you may be facing.

You may sometimes notice packages listed as "held back" when you run these kinds of updates. This allows you to review these packages so you can make your own call on weather or not you want to take the chance of upgrading to a new kernel other package.

On the other hand, to blindly run all updates with no regard for the consequences this may have on the stability of your system, or if you're just feeling dangerous, you can run:

sudo apt-get update
sudo apt-get dist-upgrade

instead. This will install kernel upgrades and other packages that may possibly make changes to the system that could temporarily effect stability or otherwise change the way things work.

If you've used 14.04 this long and are only now experiencing a problem, I wouldn't expect too many problems in the future as most of the problems that exist are bugs that get dealt with as time goes on. Just stick to apt-get upgrade when you need to be safe and stable and maybe only do the apt-get dist-upgrade when you know it's not going to interfere with work if there happens to be a problem.


How to remove a package whose correct name you don't know?

You should be able to use dpkg -I or dpkg-deb -I to show information about a package by reading the deb file. From man dpkg

   dpkg-deb actions
          See  dpkg-deb(1)  for  more  information  about  the   following
          actions.
          .
          .
          .
          -I, --info archive [control-file...]
              Show information about a package.

e.g.

$ dpkg -I arc-theme-solid_1450051815.946cbf5_all.deb
 new debian package, version 2.0.
 size 286706 bytes: control archive=42665 bytes.
     421 bytes,    12 lines      control
  147142 bytes,  1477 lines      md5sums
 Package: arc-theme-solid
 Version: 1450051815.946cbf5
 Architecture: all
 Maintainer: Horst3180 <horst3180@gmx.net>
 Installed-Size: 4307
 Depends: gnome-themes-standard, gtk2-engines-murrine
 Conflicts: arc-theme
 Replaces: arc-theme
 Section: misc
 Priority: optional
 Description: Arc is a theme for GTK 3, GTK 2 and Gnome-Shell.
  It supports GTK 3 and GTK 2 based desktop environments like Gnome, Unity, Budgie, Pantheon, etc.

So in this case, the package name is arc-theme-solid


How can I stop `gnome-screensaver` from resetting my keyboard to its default layout?

Searching with gconf-tool, I found the setting /desktop/gnome/peripherals/keyboard/general/update_handlers, which apparently is a list of Xmodmap files to be (re)loaded each time the keyboard status is reset.

Settiing this to .Xmodmap made the thing work for me (after logging out and back in).


Document Viewer (Evince) history navigation

Under Evince 3.4 you can activate a "back" button by editing the toolbar (Edit → Toolbar; drag and drop functions to toolbar):

I don't think there's any hotkey by default but you might be able to add a custom one.

If you're looking for customization you might be better off with a PDF viewer like Okular or qpdfview anyway. Both should offer the function you're searching for.


I am having trouble booting 12.04 keyboard and little man in circle appears and then nothing

I had the exact same problem, I installed a new motherboard which has USB 3. I know it sounds weird but when i took it out of the usb 3 and put into usb 2 slot it worked perfectly fine.

Check if you are using USB 3 slot, I'm not sure why that affects it.


There's no built-in equivalent, but you can reproduce this behavior by setting up a message handler in a user script that triggers an event in the DOM that you handle in the HTML document.  For each of these steps, the code to be executed is passed along.  For a simple example:

oxide-test.qml

import QtQuick 2.0
import Ubuntu.Components 0.1
import com.canonical.Oxide 1.0

Rectangle {
    width: units.gu(50)
    height: units.gu(75)
    // Both the UserScript and the call to sendMessage need to share the same
    // context, which should be in the form of a URL.  It doesn't seem to matter
    // what it is, though.
    property string usContext: "messaging://"

    WebView {
        id: webview
        anchors {
            top: parent.top
            left: parent.left
            right: parent.right
            bottom: button.top
        }
        context: webcontext
        url: Qt.resolvedUrl("oxide-test.html")

        function executeJavascript(code) {
            var req = rootFrame.sendMessage(usContext, "EXECUTE", {code: code});
        }
    }

    WebContext {
        id: webcontext
        userScripts: [
            UserScript {
                context: usContext
                url: Qt.resolvedUrl("oxide-user.js")
            }
        ]
    }

    Button {
        id: button
        anchors {
            bottom: parent.bottom
            left: parent.left
            right: parent.right
        }
        text: "Press Me"
        onClicked: webview.executeJavascript("exampleFunc('Hello');")
    }
}

oxide-user.js

oxide.addMessageHandler("EXECUTE", function (msg) {
    var event = new CustomEvent("ExecuteJavascript", {detail: msg.args.code});
    document.dispatchEvent(event);
});

oxide-test.html

<html>
<head>
<script>
    document.addEventListener("ExecuteJavascript", function (event) { eval(event.detail); });

    function exampleFunc(message) {
        document.body.innerHTML += "<p>" + message + "</p>";
    }
</script>
</head>

<body>
</body>
</html>

(Note that if all you're trying to do is manipulate the DOM, you can do so from within the user script.)

This code doesn't allow you to get the result of the execution.  You may be able to pass a callback in, but I suspect this won't actually work.  Instead, you'll need to set up a parallel messaging chain to get the result back to the QML context.


nmap shows open ports if the server is listening on that port on the interface scanned. As you can see from the netstat output, no process is listening on port 80.


Staying focussed - Any applications to monitor what windows are open, record the titles and then tell you what you spend you day doing?

How about hamster-applet?
From the package description:
 Project Hamster helps you to keep track of how much time you spend on various
 activities during the day.  Whenever you move from one task to another, you
 change your current activity in the GNOME applet.
 .
 It can present graphical statistics of how long you have spent on each task,
 and may be useful for project management or keeping employee timesheets.


It may only be a feature in Fedora. I just installed Fedora 24 from a PXE and sure enough I have an 'anaconda-ks.cfg' and an 'original-ks.cfg'. The original one is the one I wrote, the other I assume was generated by anaconda using the original, and the one eventually used during installation.

They're located in the root home (/root) of the client. I guess that's not how it works on Ubuntu.

Also, none of those names is the one I used for my ks stored on the PXE server.


Can’t logging after "sudo reboot" my ubuntu 16.04

It keeps showing the error in the picture e

That is not an error.

and restarted the login screen, and when I type my usual password I couldn’t log in to my user account

1 of the things that can lock you out of your session is permissions of 2 files in your /home/. Use control-alt-f1 (control-alt-f7 to go back) to log into a terminal session and do
$ ls -ltr .Xauthority .xsession-errors
-rw------- 1 rinzwind rinzwind   54 feb  2 16:55 .Xauthority
-rw------- 1 rinzwind rinzwind 3514 feb  2 16:55 .xsession-errors

These 2 lines need to be the same with your name as owner and group. If not that will be your problem. Do a ...
chown $USER:$USER .Xauthority
chown $USER:$USER .xsession-errors
chmod 600 .Xauthority
chmod 600 .xsession-errors

The 1st 2 set your owner and group, the 2nd sets the permissions to read, write for the 2 files.

Can I make some backup if I couldn’t log in, and how?

You already should have up to date backups...
And yes you can do this from using terminal session (control-alt-f1) and copying your files. Same works from a live session, and you can do it from a desktop from there.


11.10 won't boot cleanly on ASUS P8Z68-V/gen3

Go to BIOS (F2 or F4 or DEL) then Go to Boot (or similar) section. Select first boot disk[HDD]. Save and exit.

Press the BIOS key or keys(F2 or F4 or DEL) [couple of times] at start-up your system to enter into BIOS.


Is there a way to toggle the touch display in Kubuntu?

The xinput utility provides a utility to configure and test X input devices. Do a man xinput for details. You can use xinput list to get a list of the devices on your system. xinput --disable 'ELAN Touchscreen' will disable an ELAN Touchscreen and xinput --enable 'ELAN Touchscreen' will re-enable the same device.

To actually create a toggle button you can adjust the answer to this question and put the resulting script in a .desktop file.


"System is running in low-graphics mode" error

The low graphics mode error can occur for a lot of reasons.

Please run these commands and post the output:

$ cat /etc/fstab
$ df -h

If you cannot access a terminal, open a root prompt via GRUB, or press or press Ctrl+Alt+F1 on your keyboard.

Also, you may try this and see if it relates to your issue.


Pointers / advice on Ubuntu Server install on HP Gen 8 G1610T microserver

I can't tel you what is best for you but i will tel you what i did on our internal servers.

I always installed Ubuntu or Debian servers on Linux software raid.
I already had to recover a broken drive and that was realy easy to do. also the system would just boot with only one drive active. Just hotswap and add it to the lvm volume againe.

What i would not do is running your os of the SSD but of the 2 disks. If your SSD fails you lost your entire os if one of the disk fails you just order a new one and your still ok.

to set this up i have used this guide in the past with succes.
https://help.ubuntu.com/community/Installation/SoftwareRAID

You can even do some exotic stuff and use raid 1 for data and os and use raid 0 for swap


How to create a word document in docx form with terminal

According to this thread over at Unix & Linux, you can use Pandoc.

From skimming the documentation, I think you could use it like:

echo "Hello" | pandoc -o out.docx

Then out.docx will be a docx file with "Hello" in it.

As well, I found this Python module: python-docx


How can I require users to also enter their usernames upon login?

You need three settings in /etc/lightdm/lightdm.conf to get exactly what you want:

[SeatDefaults]
greeter-show-manual-login = true
greeter-hide-users = true
allow-guest = false


sudo apt-get clean clears out the local repository of retrieved package files.It removes everything but the lock file from /var/cache/apt/archives/ and /var/cache/apt/archives/partial/.

Source : man apt-get

Another possibility to see what happens when we use the command sudo apt-get clean is to simulate the execution with the -s-option.

mook@MookPC:~$ apt-get -s clean
NOTE: This is only a simulation!
      apt-get needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Del /var/cache/apt/archives/* /var/cache/apt/archives/partial/*
Del /var/lib/apt/lists/partial/*
Del /var/cache/apt/pkgcache.bin /var/cache/apt/srcpkgcache.bin

mook@MookPC:~$ sudo apt-get -s clean
[sudo] password for mook:
Del /var/cache/apt/archives/* /var/cache/apt/archives/partial/*
Del /var/lib/apt/lists/partial/*
Del /var/cache/apt/pkgcache.bin /var/cache/apt/srcpkgcache.bin

Thanks to @jarno for the suggestion.


On Ubuntu 16.04, cannot enter CMD mode by CTRL+ALT+F1

The most simple way: install Ubuntu again, open the 'software updater' (update-manager) and wait till it is finished loading, then ignore the outcome it shows, and click on 'settings' and go to the tab 'additional drivers'. There you will see the Nvidia driver appear. That's what i do to install them. After that you can choose to install Nvidia Settings to set your desktop colors and gamma setting to your liking. I hope it helps.


The problem is that Ubuntu will not boot properly with an older graphics card, flash drive, RAM , and what version of intel or AMD you have. If it still does not boot some computers like some newer laptops or even older ones to might not be compatable with OS due to slave drives.


iwlwifi 0000:01:00.0: Unsupported splx structure

There are multiple problems that need to be answered for this question.
The first and foremost problem is with /etc/fstab. It's been radically changed from standard, and a Windows partition was trying to be mounted at two different mount points at the same time. This caused the computer not to boot, and to halt in emergency mode. Here we comment out BOTH Windows disk mounts, and that got the computer to boot.
In /etc/fstab:

Change this:

# /windows was on /dev/sda3 during installation
UUID=5CCE72F7CE72C8B2 /windows        ntfs    defaults,umask=007,gid=46 0       0
# swap was on /dev/sda7 during installation
UUID=c35ada9f-7d1a-4220-8c12-5f69cad3236e none            swap    sw              0       0
UUID=5CCE72F7CE72C8B2 /media/Data  ntfs-3g  defaults,windows_names,locale=it_IT.UTF-8  0 0
UUID=2605-3DC2  /boot/efi   vfat    defaults    0   1

To this (just comment out 2 lines):

# /windows was on /dev/sda3 during installation
# UUID=5CCE72F7CE72C8B2 /windows        ntfs    defaults,umask=007,gid=46 0       0
# swap was on /dev/sda7 during installation
UUID=c35ada9f-7d1a-4220-8c12-5f69cad3236e none            swap    sw              0       0
# UUID=5CCE72F7CE72C8B2 /media/Data  ntfs-3g  defaults,windows_names,locale=it_IT.UTF-8  0 0
UUID=2605-3DC2  /boot/efi   vfat    defaults    0   1

Then reboot.
Success!

Then, to clean up the rest of the messy fstab, we do the following edits.
Change this:

# /boot/efi was on /dev/sda1 during installation
#UUID=2605-3DC2  /boot/efi       vfat    umask=0077      0       1

To this:

# /boot/efi was on /dev/sda1 during installation
UUID=2605-3DC2  /boot/efi       vfat    defaults      0       1

Then delete the last line of fstab that looks like:
UUID=2605-3DC2  /boot/efi       vfat    defaults      0       1

Lastly, change this:

# /windows was on /dev/sda3 during installation
# UUID=5CCE72F7CE72C8B2 /windows        ntfs    defaults,umask=007,gid=46 0       0
# swap was on /dev/sda7 during installation
UUID=c35ada9f-7d1a-4220-8c12-5f69cad3236e none            swap    sw              0       0
# UUID=5CCE72F7CE72C8B2 /media/Data  ntfs-3g  defaults,windows_names,locale=it_IT.UTF-8  0 0

To this:

# /windows was on /dev/sda3 during installation
# Can't have two mounts, to two different mount points, at the same time.
# Both of these mounts are wrong.
# UUID=5CCE72F7CE72C8B2 /windows        ntfs    defaults,umask=007,gid=46 0       0
# UUID=5CCE72F7CE72C8B2 /media/Data  ntfs-3g  defaults,windows_names,locale=it_IT.UTF-8  0 0
# If you MUST mount this Windows partition, I'd recommend this...
# UUID=5CCE72F7CE72C8B2 /media/Data  ntfs-3g  defaults  0 0

# swap was on /dev/sda7 during installation
UUID=c35ada9f-7d1a-4220-8c12-5f69cad3236e none            swap    sw              0       0

Then, in Windows, do these:
If you dual-boot Windows and Ubuntu, you must turn off fast start and hibernation in Windows.

Turn off fast start in the Power control panel

In power control panel, click on Change what power button does
Then choose Change options that are unavailable
Uncheck Fast Start

In an administrative command prompt window, type powercfg /h off


Weird Grub Screen pops up after power outage

Step 1: Boot in a live session

Plug in the live USB and boot into a live session.

Step 2: Install Boot Repair

Once you are in the live session, Press Ctrl Alt t to open  terminal. use the following commands to install Boot Repair:

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

Step 3: Once you installed Boot Repair, run it from the terminal using the following command:

boot-repair &

Step 4: Click on Recommended repair option in the Boot Repair

Step 5: Afterwards, you will be provided with some commands to use in the command line. Copy the commands one by one in terminal. If you are getting any prompts, select yes

Step 6: Once the process finishes, shut down your computer, remove the USB and boot again.


Upgrade to ubuntu 16.04 from Dell Inspiron 15-3552

Dell Inspiron 15 3552 has not got an ubuntu certificate for 16.04 and 18.04. However, for 14.04 it works well. A clean install with 14.04 solves your problems.


There's no master control for echo-cancellation or noise suppression in Ubuntu, but if you use empathy as your chat client, it has an option to enable echo cancellation. You can find it by navigating to Empathy>>preferences>>calls>>

Skype has an automatic noise cancellation/echo cancellation function, so those calls should also not be a problem.  If you could post specific outcomes you wish to achieve with this, more people might be able to contribute. What kind of applications do you hope to use? What is the likely source of echo or noise? etc


restrict ability to delete files using sticky bit (restricted deletion flag)

In this case, it is the owner of the directory, not the owner of the file, who has permission to delete the files within the directory.

So, because you are the owner of the directory, you can delete files within the directory, even if the files are owned by someone else.

There is a nice discussion here - Why use sticky bit?

The stick bit would work as you envision if the directory were owned by say root. In that event you would make the directory world rw (sudo chown root:root /home/your_user/sticky-test && sudo chmod a+rwx /home/your_user/sticky-test)

In that event you can create files but not delete files not owned by you.


How do I use Ubuntu One to keep backup files online?

Ubuntu One is a synchronizing tool, not a backup tool. The principle of synchronizing is that all computers have the same files. The principle of backing up data is to keep data stored in case of emergency.

In Ubuntu One every file you delete on your local computer will instantly be deleted on the cloud version of your data as well.

Backup solutions based on Ubuntu One are not flawless. Here are two options you might consider, though I advise against them:

You could add a folder to Ubuntu One. Once that folder is synchronized to the cloud, you could decide to stop syncing it on your local machine (unmark it in the Ubuntu One interface). This is prone to errors.
You could also make backups locally and store those in the Ubuntu One cloud. Again, though, if you delete the backup locally, the cloud will follow because that is what clouds do.


How to hide certain icons from unity app lens

No, there isn't really a way to keep them in the System Settings, but hidden in the dash. But why bother with the System Settings app at all, when you can open the one you want, right from the dash? :)


Why would an external keyboard suddenly use different settings/layouts from a built-in one?

I'm having a similar problem on Ubuntu 20.04. It seems that recently a bug was introduced in GNOME that causes this, it's being investigated in https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3299.
If you're using GNOME, I'm positive that your issues are caused by this bug as well.
A quick workaround is to restart the shell after plugging in the external keyboard by pressing Alt-F2, r, return.


Many device access problems can be resolved through group membership changes.
Specifically, if ls -l  shows that the group permissions (the second "rwx" triplet) is "rw" (e.g."-rw-rw----"), then, adding oneself to the group that owns the device will grant rw access.
Here's how:
device="/dev/whatever"
sudo adduser $USER $(stat -c "%G" $device)

This allows you membership in the group that can rw the device, but there is one more step.
To make all your processes members of the new group, logout and login. Group memberships are set up at login time.
To create a single process in the new group (for testing, prior to logout/login):
newgrp $(stat -c "%G" $device)

or, just type the group name. See man newgrp.


How to achieve media streaming from my local machine to the internet?

You can even search for a p2p-tv application which runs on linux. Remember to broadcast 1000 users at normal rates which are 400kbps poorly, there is no home connection that can deal with it...
Web applications like ustream are available also.