CTRL-Alt-t opens term executes a command and exits

If it’s a file that runs a command, you can simply destroy the file.

You also can edit the XML file which contains Terminal profiles settings manually. It’s under ~/.gconf/apps/gnome-terminal/profiles. Open it with a text editor, search for the line with the name exit_action and change close to hold:

<entry name="exit_action" mtime="1379127373" type="string">
    <stringvalue>hold</stringvalue>

Alternatively, you can find the line with the name use_custom_command and change its value to false:

<entry name="use_custom_command" mtime="1379127167" type="bool" value="false"/>

To prevent future problems, keep the Profile settings to always hold the terminal open:


Is there a GUI in xorg for changing the video driver?

If you're looking to switch between the proprietary and Free driver for your video card (e.g. if you have an ATI or NVidia card), try jockey.

On the default Ubuntu desktop this is in:
System - Administration - Hardware Drivers

You can enable and disable hardware drivers there.


What is an "AppImage"? How do I install it?

Basic Information

Regarding installation

I am quoting the appImage project page here:

  AppImages can be downloaded and run without installation or the need
  for root rights.

Making it executable

You can make the appImage executable as follows:

chmod a+x exampleName.AppImage

Executing it

You can execute an appImage as follows:

./exampleName.AppImage

Additional Information

About appImage

You can find some general informations about appImage here.

I am quoting the appImage project page here:

  The key idea of the AppImage format is one app = one file. Every
  AppImage contains an app and all the files the app needs to run. In
  other words, each AppImage has no dependencies other than what is
  included in the targeted base operating system(s).

Wikipedia adds

  AppImage (and the predecessors klik and portablelinuxapps) do not
  install software in the traditional sense (i.e., it do not put files
  all over the place in the system).

  It use one file per application.
  Each one is self-contained: it includes all libraries the application
  depends on and that are not part of the base system. In this regard,
  it is similar to "application virtualization". One can use a AppImage
  file even if they are not a superuser, or they are using a live CD.
  AppImage files are often simpler than compiling and installing an
  application, as no installation actually took place. The AppImage file
  is a compressed image which is temporarily mounted to allow access to
  the program, but not having to extract the program or modify the
  underlying system.

The README.md of the AppImageKit-project offers a lot additional informations like Use cases, the problem space and objectives.

Use Cases

As a user, I want to go to an upstream download page, download an application from the original author, and run it on my Linux desktop system just like I would do with a Windows or Mac application.
As a tester, I want to be able to get the latest bleeding-edge version of an application from a continuous build server and test it on my system, without needing to compile and without having to worry that I might mess up my system.
As an application author or ISV, I want to provide packages for Linux desktop systems just as I do for Windows and OS X, without the need to get it 'into' a distribution and without having to build for gazillions of different distributions.

Objectives

Be Simple.

  AppImage is intended to be a very simple format that is easy to
  understand, create, and manage.

Maintain binary compatibility.

  AppImage is a format for binary software distribution. Software
  packaged as AppImage is intended to be as binary-compatible as
  possible with as many systems as possible. The need for
  (re-)compilation of software should be greatly reduced.

Be distribution-agnostic.

  An AppImage should run on all base operating systems (distributions)
  that it was created for (and later versions). For example, you could
  target Ubuntu 9.10, openSUSE 11.2, and Fedora 13 (and later versions)
  at the same time, without having to create and maintain separate
  packages for each target system.

Remove the need for installation.

  AppImages contain the app in a format that allows it to run directly
  from the archive, without having to be installed first. This is
  comparable to a Live CD. Before Live CDs, operating systems had to be
  installed first before they could be used.

Keep apps compressed all the time.

  Since the application remains packaged all the time, it is never
  uncompressed on the hard disk. The computer uncompresses the
  application on-the-fly while accessing it. Since decompression is
  faster than reading from hard disk on most systems, this has a speed
  advantage in addition to saving space. Also, the time needed for
  installation is entirely removed.

Allow to put apps anywhere.

  AppImages are "relocatable", thus allowing the user to store and
  execute them from any location (including CD-ROMs, DVDs, removable
  disks, USB sticks).

Make applications read-only.

  Since AppImages are read-only by design, the user can be reasonably
  sure that an app does not modify itself during operation.

Do not require recompilation.

  AppImages must be possible to create from already-existing binaries,
  without the need for recompilation. This greatly speeds up the
  AppImage creation process, since no compiler has to be involved. This
  also allows third parties to package closed-source applications as
  AppImages. (Nevertheless, it can be beneficial for upstream
  application developers to build from source specifically for the
  purpose of generating an AppImage.)

Keep base operating system untouched.

  Since AppImages are intended to run on plain systems that have not
  been specially prepared by an administrator, AppImages may not require
  any unusual preparation of the base operating system. Hence, they
  cannot rely on special kernel patches, kernel modules, or any
  applications that do not come with the targeted distributions by
  default.

Do not require root.

  Since AppImages are intended to be run by end users, they should not
  reqiure an administrative account (root) to be installed or used. They
  may, however, be installed by an administrator (e.g., in multi-user
  scenarios) if so desired.


How to disable Wifi auto-connect on boot

Did you try to uninstall the usual WiFi packages?

apt --purge wireless-tools wpasupplicant

Check if they are installed, that should "purge" the problem.


Step Six — Set Up Local Hosts File (Optional)

  If you haven't been using actual domain names that you own to test
  this procedure and have been using some example domains instead, you
  can at least test the functionality of this process by temporarily
  modifying the hosts file on your local computer.

  This will intercept any requests for the domains that you configured
  and point them to your VPS server, just as the DNS system would do if
  you were using registered domains. This will only work from your
  computer though, and is simply useful for testing purposes.

  Make sure you are operating on your local computer for these steps and
  not your VPS server. You will need to know the computer's
  administrative password or otherwise be a member of the administrative
  group.

  If you are on a Mac or Linux computer, edit your local file with
  administrative privileges by typing:

sudo nano /etc/hosts

He is clearly talking about a second machine not the VPS server. Because if those domains are not yours, you can't have a public DNS to point them to your VPS server. So you can go the other way and trick your second machine using hosts files.

In your VPS server, run ifconfig to get its public IP.
In you second machine, edit /etc/hosts file and add the below line with that IP:

vps-server-ip example.com
vps-server-ip test.com


You could experience a problem related to input method modules.
(https://bugs.launchpad.net/ubuntu/+source/gtk+3.0/+bug/1760818)

Try starting e.g. gedit by disabling GTK_IM_MODULE

GTK_IM_MODULE=none gedit

and check whether the issue is gone.

If it is gone, you could try to set GTK_IM_MODULE to none by invoking

im-config

and selecting choice "none" in the dialogs.

A reboot is necessary, afterwards.


Is it possible to update Windows from Ubuntu?

No that's Impossible you need to be In Windows to update Windows, the same way you need to be in Ubuntu to update Ubuntu. Unless of course you're in a Virtualmachine where the 2 systems are running at the same time.


Install Ubuntu on SSD and Keep Personal files on NTFS drive

Yes, that should be easily doable.  You can create new partition in the HDD for your home directory, and put the rest of the system files on the SSD.  You won't have to format the HDD, but you'll probably have to shrink the partition storing your Windows documents to make room for your Ubuntu /home partition.  Also, keep in mind you won't be able to access your Ubuntu documents from Windows (though you'll be able to access your Windows documents from Ubuntu) because Windows cannot read ext3/ext4 partitions.

To shrink the HDD partition storing your Windows documents, I'd recommend using the Disk Management tool in Windows.  Right click on the partition and select "Shrink Volume," to create space for your Ubuntu documents.

After this you should be able to start installing.  I don't have the Ubuntu installer in front of me right now but I'll try to describe the process as best I can.

Boot the Ubuntu install CD and follow the installation prompts.
When it gets to the disk partitioning section and asks how you want to install, select "Something Else" to go to the manual partitioning options
Right click on the unallocated space in your new SSD where you want to install Ubuntu's system files.  Click "Configure," and a dialogue box should pop up.
Use the following settings:

Use as: Ext4 Journaling File System
Mount point: /
Right click on the unallocated space in your HDD, where you want your Ubuntu /home partition to be. Click "Configure" again, and use the following settings:

Use as: Ext4 Journaling File System
Mount point: /home

That should be it!  You can then proceed with the rest of the installation.


Windows 8 boot info lost after ubuntu installation

if you're using grub but it's not detecting windows try:

sudo update-grub

result will be like:

Found linux image: /boot/vmlinuz-3.19.0-21-generic
Found initrd image: /boot/initrd.img-3.19.0-21-generic
Found linux image: /boot/vmlinuz-3.19.0-18-generic
Found initrd image: /boot/initrd.img-3.19.0-18-generic
Found linux image: /boot/vmlinuz-3.19.0-16-generic
Found initrd image: /boot/initrd.img-3.19.0-16-generic
Found linux image: /boot/vmlinuz-3.16.0-38-generic
Found initrd image: /boot/initrd.img-3.16.0-38-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
Found Windows 8 (loader) on /dev/sda1
done

if you spot your loader in there then it's working


For cutting/inserting, a simple linear video tool like avidemux will do.

You may also use one of the several non-linear video editors available on Ubuntu. Openshot is very accessible for beginners, KDEnlive is very powerfull and still quite easy to master, and there are others.

That does not mean these editors support the webm format. Webm, hopwever, is just a container format that contains conventional audio and video streams. If necessary, you may need to transmux the video and audio to a container format supported by these formats. The Matroska format (.mkv) will certainly do. You can convert webm video to mkv video without any loss in quality using the command

ffmpeg -i file.webm -c:v copy -c:a copy fileout.mkv

This literally copies the video and audio streams, so it goes vast fast and there is no loss in quality. Simply providing the file extension .mkv is sufficient to tell ffmpeg to write out in Matroska format.


How to view and manage large data in terminal?

this might help
How do I save terminal output to a file?
it won't make it structured but a good text editor clould make it nicer to read.
also the extra functionality of appending etc can be useful


Normally (if everything goes well) even lay persons can install most lx distros right out of the box without breaking a sweat. You may incur into some problems, even with the most recent distro, if your hardware is either brand new or its configuration very unusual. Barring that and assuming you are a newby to this world, your few next basic steps are:

1) get hold of the ISO image, "someone" used to do the install. Boot your machine from it (i.e. use it as a live OS)

2) To find out exactly what partitions were installed, run 'Gparted' form the live OS (it will allow you to do that if your ISO is for the Ubuntu distro). If you cannot find Gparted, I would recommend getting an ISO for a trusted and stable Linux version e.g. Ubuntu, Mint, CentOS, etc.) that includes Gparted and make a live CD from it by burning i and almost certainly for other flavors.) to  and report here in the form:

/dev/-d--    [so many kB]   [label or mount point]  [file system format]

(I assume you are familiar with the partition scheme and naming for different type of volume; if not read about that, before you continue)

In doing so you will use Gparted to VISUALIZE only, not to re-partition or reformat anything, because that would probably wipe your win config clean. You don't want that.

3) All of the above is to determine whether you have a chance of recovering from what seems to be a failed install. If you see your partitions nice and clean, then we 'll look at your MBR and your GRUB and if they are corrupt, how to fix them.

NOTE: this is left to the appreciation of the moderators, but askubuntu.com may not be the best place for this. Other fora such as http://ubuntuforums.org will offer plenty of help at any needed level, be it for Ubuntu or when it comes to boot problem for a handful of other distros, that are either close or identical in terms of boot environment.

-ced


Ubuntu 14.04 and Alienware 14 -> bad sound quality

I found this Launchpad bug report, which is related to the same problem, except about a different driver.

The solution written in this comment corrected the problem.  Of course, you need to choose your own Realtek Driver; mine was a different version.

  Thank you so much to everybody for pointing to node 0x1a, work like a
  charm installing hdajackretask, chosing Realtek ALC668, marking show
  unconnected pins and, find Pin ID 0x1a mark override, choose line out
  (center/LFE) and apply now and that's it enjoy the great sound of
  Alienware 14


Why can't I import keys into the gnome keyring?

Later I discovered that in spite of the "Gck-CRITICAL" assertion error, this command line commands did successfully import the keys.

Why seahorse won't let me import the keys is however still unknown to me.


You can go to Synaptic Package Manager and manually remove then re-install the lm-sensors package (and any dependencies).Also check the result of sudo dpkg --configure -a


unable upload 3GB file using web interface

Did you ever have this working - e.g. with small files?  A 3GB file isn't that big these days (unless you use really old operating systems or file systems that don't support files larger than 2GB), but it's always wise (and saves a lot of time) if you test things with small datasets/files first.  Also, right after attempting the copy, open a console and type dmesg.  A lot will scroll by, but the end of the file will show you system messages about anything that might have upset the operating system (Linux) when you ran the copy.


You can try avconv.

According to manpage for the avconv command

  avconv is a very fast video and audio converter that can also grab from
         a live audio/video source.

There are many options in avconv, but for recording the screen, the command would be like

avconv -f x11grab -s 1024x768 -r 50 -t 500 -i :0.0 ~/Videos/name.mp4

Here,

-f: format for input file, x11grab for recording screen
-s: resolution, can be axb(eg. 1024x768) or some predefined words like hd1080
-r: rate(or bitrate).
-t: time, as seconds(500) or HH:MM:SS.[XXX](eg 01:04:59 or 01:56:43.111)
-i: input, here :0.0 generally
Finally the output file name


Desura is a software that allows to play games on Ubuntu, but most games are not free. You can find here installation instructions:


According to the Mark ShuttleWorth inaugural blog post about Unity, at the beginning Unity was designed to create an interface that would be usable on variety of machines (standard computers, netbooks, light versions)

A user could start his Ubuntu's experience on a tablet/netbook, then switch to his desktop and keep the same interface, Unity of the interfaces ;) .

Another reason may be the way that the applications are docked together. The runnable (launchers) and the running applications are merged in the same icons in the panel, that can be another way of Unity as well as the open Windows' toolbars being merged into the panel.

And last reason, as said on the unity website,

  Unity is designed for mouse, touchpad, and keyboard use

again, no matter the way you can control your machine, you'll find Unity in the way it is managed.


The solution to this problem was given by oldfred in his comment, also in step 8 in the question Acer Aspire E15 will not dual boot. The issue was in the BIOS the SATA Mode setting was set to RST with Optane. Once I set the SATA mode to AHCI Ubuntu was able to recognize the SSD.


Exclude package installation to resolve conflict

Step 1

Create a package-list with

apt-cache search abc*>package-list

source: How do I search for available packages from the command-line?

Step 2

Install the packages with

cat package-list | xargs sudo apt-get install

source: http://ubuntuforums.org/showthread.php?t=1548121


Can't see Wi-Fi settings in Ubuntu 20.04 LTS

I got the same issue today when I turned on my PC. My WiFi driver was unavailable in the ‘Additional drivers’ section of ‘Software & Updates’.  I tried and checked if this would fix with restarting the PC. But it didn’t.
So, I connected my PC through wired connection and updated Ubuntu through ‘Software Updater’. After that I restarted my PC and now it is working fine.


correct Installation and configuration of openJDK and R

I'm not familiar with R but based on your console it seems like R is requiring a JDK while you have a JRE as you default JAVA home variable.
I would suggest you to make sure you have the JDK installed or install it (sudo apt-get install openjdk-6-jdk).
Also make sure that your JAVA_HOME environment variable is pointing to the JDK and not to the JRE (you can see in your output that currently the java home path is set to /usr/lib/jvm/java-6-openjdk/jre.


What does "paths must precede expression" mean when using find?

Try putting it in quotes:

find . -name '*.bak'

When you simply use find . -name *.bak in that directory shell expands it to find . -name tem.bak met.bak (i.e. interprets * as the wildcard)


How do I automate sending a file to an FTP server with a script?

Log files in /var/log are usually world-readable and require no password to access.
If you already have an FTP server -- could be a back-end to a web-server too -- the simplest option IMO is to use the wput utility.

Install it with sudo apt-get install wput if necessary.
The syntax is:
wput [options] [file]... [url]...
where the URL is of the form:
ftp://[username[:password]@]hostname[:port][/[path/][file]]

Example:

wput /var/log/syslog ftp://jack:salty@ftp.website.com/www/mylogs/

Use the -u option to force an upload when the destination file already exists.
See wput --help or man wput for many more options.

  Note: Putting the password in plaintext as in the examples above is extremely insecure in general; I strongly recommend creating a restricted FTP account on the server which only allows uploads to a special directory you create for downloading/viewing the logs.


I've some (highly) experimental bits for Jetson TK1 in https://github.com/noxo/CudaMiner. Error here (unrecognized command line option ‘-msse2’) is because code compilation is done using SSE instructions, which is not available ARM architecture (NEON should be used instead).


A more efficient way to sort the result of netstat command

Make awk do all the work:

$ netstat -antp | awk '/:80/ && !/\/firefox/{print $5}'
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
151.101.129.69:80
67.132.183.24:80
91.189.89.144:80
151.101.129.69:80
:::*

Explanation

Typical awk program is structured this way:

/pattern/ {code to run if pattern matched}

In this particular case we use two patterns: we look for :80 string and lines that don't have /firefox in them. The && is logical AND, which means match both patterns on left and on right. If we have a match for such line - execute the codeblock, which prints only 5th field.


Shortcut to open a browser with a switch, such as -ssb or -kiosk

You can write a simple line script for that purpose.

Create a file (name it whatever you want to and where ever you want)
#!/bin/bash

 # You can add "-kiosk" flag after firefox to open the window in kiosk mode
 firefox "https://www.askubuntu.com"  #(add any URL you want)

Give execute permissions with chmod +x filename
Then right click on file then --> properties --> permissions --> and tick on Allow executing file as a program
Then go to Open With tab and select Run Software as the default application to open the file with.

Now, you can click twice on the file to directly open link you desire in firefox


Lower graphic gaming performance than on Windows

Install some packages.

sudo apt install cpufrequtils sysfsutils

Run the command cpufreq-info to show the available cpufreq governors. Change the CPU scaling governor from powersave to performance1. Edit /etc/default/cpufrequtils (you might need to create it if it doesn't exist). Specify the governor with the GOVERNOR variable:

# valid values: userspace conservative powersave ondemand performance
# get them from cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
GOVERNOR="performance"

The sysfs values will be configured in /etc/sysfs.conf to  keep the governor settings between boots.


Remove Ubuntu 12.04.4 from secondary drive

In Ubuntu 13.10 (on the drive you want to keep), open up GParted.
Check to see which drive is listed as which. My guess is that the Western Digital drive will be listed as /dev/sda, and the Samsung drive will be listed as /dev/sdb. If it's the other way around (or if you have more drives listed), change the next step appropriately.
Switch to the /dev/sdb drive (the Samsung drive) using the drop-down in the top-right corner.
You should see your Ubuntu 12.04 partition. Right-click on the partition and remove the partition.
Apply the changes. GParted might see that the boot configuration might be affected, and so might automatically do the next step, but just in case (there's no harm in doing it twice)...
Open up Terminal and run sudo update-grub.
When you reboot, you should see that only Ubuntu 13.10 has the menu entries present. At this point, you can remove/repurpose the Samsung hard drive.


I just had exactly the same error but with my ASUS Zenfone 2 on Xubuntu 15.10.

I tried a different USB port (3.0) and it just worked,  I suspect the MTP setting wants a better port.  Either that or there is something wrong with my USB 2.0 port (and the OPs port)

You could try a different port - on a different PC if you have to.


Where are these Unity close, minimize and maximize icons located?

Those icons get painted by Unity as fallback if the chosen theme isn't Ambiance or Radiance, so you won't find them in any directory.


How to translate ListElement property with Ubuntu SDK

The only workaround for the "ListElement: cannot use script for property value" error that I know is to rely on the dynamicRoles property:

import QtQuick 2.0
import Ubuntu.Components 0.1

Rectangle {
    width: 200 // this is a property
    height: 200

    Item{
        ListModel {
            id: myListModel;
            dynamicRoles: true
        }
        Component.onCompleted: {
            myListModel.append({ "name": i18n.tr("Hello") } )
            foo.text = myListModel.get(0).name;
        }
    }

    Item {
        Text {
            id: foo
            }
    }

     Button {
         anchors.centerIn: parent
         text: i18n.tr("Press me")
     }

}

Creating the ListElement that way allow you to call i18n.tr() and xgettext correctly adds it to the pot file:

# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-06-03 18:19+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"

#: foo.qml:15
msgid "Hello"
msgstr ""

#: foo.qml:28
msgid "Press me"
msgstr ""


How to permanently change order in which '$vt_handoff' occurs in kernel commands?

The source code
The file which handles the aspect of generating the GRUB configuration you're interested in modifying is /etc/grub.d/10_linux and the $vt_handoff element of the kernel command line is processed twice within its code (as of the version I currently have installed, v2.04).

First (and more relevant to your desired outcome, since this is where the placement of the $vt_handoff variable is handled) in the nested if block on lines 154-160:
...
if [ "$vt_handoff" = 1 ]; then
  for word in $GRUB_CMDLINE_LINUX_DEFAULT; do
    if [ "$word" = splash ]; then
      GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT \$vt_handoff"
    fi
  done
fi
...

Then again in the nested if block on lines 348-358, where the decision of what value to set for the $vt_handoff variable is made:
...
 set gfxpayload="${1}"
EOF
if [ "$vt_handoff" = 1 ]; then
  cat << 'EOF'
 if [ "${1}" = "keep" ]; then
         set vt_handoff=vt.handoff=7
 else
         set vt_handoff=
 fi
EOF
fi
...

Analysis
In the first instance shown above, we see the Dash shell interpreter concatenating the value of the $GRUB_CMDLINE_LINUX_DEFAULT sourced from the /etc/default/grub file with the $vt_handoff variable name¹. The code as written chooses to append the latter to the former, but you could make it prepend instead as easily as reversing the position of the elements in the reassigned $GRUB_CMDLINE_LINUX_DEFAULT variable on line 157. It would then look like this:
...
    if [ "$word" = splash ]; then
      GRUB_CMDLINE_LINUX_DEFAULT="\$vt_handoff $GRUB_CMDLINE_LINUX_DEFAULT"
    fi
...

That is certainly the most direct way to effect the outcome you seek, though it falls short of my own definition of a "permanent" solution, because that file will be overwritten every time your system installs an update to GRUB. In light of that, I'd consider this more accurately a "persistent" solution as it will indeed survive from one power cycle to another for the lifetime of any given GRUB package release but no further.
Potential permanent solutions
Using the value of GRUB_GFXPAYLOAD_LINUX
As it's most often advisable to "work with" systems as they are (when possible), rather than "working against" them, I see one potential means of doing so residing in the second code snippet from the /etc/grub.d/10_linux file shown above. Specifically, we see the script logic evaluating a positional parameter and only activating the $vt_handoff variable if its value is 'keep'. The parameter in question (through several levels of shell logic obfuscation) is, in fact, the value for GRUB_GFXPAYLOAD_LINUX that is supplied in /etc/default/grub, a file which is intended to be modified by end users and thus survives package updates unscathed.
Only if GRUB_GFXPAYLOAD_LINUX is set to keep does the $vt_handoff variable have a value set. According to the GNU GRUB Manual, while the most common choices for GRUB_GFXPAYLOAD_LINUX are keep (your current setting) and text (obviously not suited to your use case), it may also be set to any valid value for gfxmode. This means that you could change it to auto or, even better, to the precise width✕height default screen resolution selected by your system's BIOS/EFI (which is what keep is meant to be the equivalent of) which can be discovered with the videoinfo command within the bootloader itself (and also, in most instances, with the sudo fbset -s command in the terminal after your system has booted).
This offers the advantage of leaving your current boot process unchanged EXCEPT for removing the value assignment for $vt_handoff, and even though you'll still see it at the end of the kernel command line when pressing e at the bootloader menu entry, since it now has no value it won't in fact be passed to the kernel. You can verify this to be the case by entering cat /proc/cmdline in the terminal after changing GRUB_GFXPAYLOAD_LINUX and restarting your computer.
The final step is to restore the value that GRUB ultimately replaces $vt_handoff with to your kernel command line, this time in the location YOU want. In the second code snippet above we see that when GRUB_GFXPAYLOAD_LINUX is set to keep that $vt_handoff is given the value vt.handoff=7, and that part in bold is what you need to add in front of your other kernel command line settings assigned to GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub. Once again, you can verify that all is as expected with cat /proc/cmdline after making the change and rebooting. This is how I would approach your issue myself if confronted with it.
GRUB Customizer
An alternative to editing the /etc/default/grub file directly is to install and use GRUB Customizer, which exposes these same variables in a thoughtful GUI layout. Installing it is simple if you're using a recent release (19.10 "Eoan Ermine" or later) of Ubuntu or one of its flavors like Kubuntu with sudo apt install grub-customizer in the terminal. It has an Advanced Settings dialog (shown below) that exposes the same values you need to modify in /etc/default/grub and keeps backups of modified files in case you need to revert the changes at some later time.

¹ It should be noted that throughout the GRUB configuration process herein examined, all references to $vt_handoff are instances of the variable name itself and not the more commonly seen parameter expansion/substitution behavior performed by *NIX shells of various and sundry flavors. The expected behavior of the Ubuntu variant of the GRUB framework is that the references to it will remain as the variable name in all instances of the kernel command line leading up to and including within the grub.cfg file which is the end result of the initial grub mkconfig process and each subsequent update-grub invocation. The value for the variable is defined within the GRUB configuration file as well and the bootloader itself performs the substitution during each boot cycle. That is why it is often seen escaped as \$vt_handoff in the code snippets above as that prevents any premature substitution of the variable name for its value.


12.04 monitor brightness commands ignored

Did you enable additional drivers?
If so, disable it, and it works!

You don't need the additional drivers to enable desktop effects and stuff, by installing ccsm you can do all that.


How to insert line break + taboolation in a Nano text editor?

You need to use something like vim instead of nano.

Open the file using vim and press esc and then type:

:s/
/\r\t/g

and then press enter

To save the file and exit, run the following sequence of keys which will write the file (save) and quit vim:

press esc and then type:

:wq

and then press enter

Click here to view a related question which explains why this cannot be done using nano.

Alternatively, you could use sed to edit the file.

Here is an example:

I will use the example filename "HELLO":

sed -i 's/
/\n\t/g' HELLO

Furthermore, if you want to create a file instead, you can run the following command to create the file by piping the output of sed to a file using tee:

echo 'Hello
Hello
Hello' | sed 's/
/\n\t/g' | tee HELLO


How to fix black screen after installing "Video Driver for the AMD Graphics"

You need to first remove the driver that you just installed. Many folks forgot to mention fhat you need to create a config file after installing fglrx driver.

First remove the driver by applying

sudo apt-get remove fglrx*

Then reboot the machine. It will be installed xorg driver by default so you may login.

After login you install the driver using AMD's support file that they published for 14.04.

After installing the driver again type this command to set the config file:

sudo amdconfig --initial

If you have dual graphics apply this command

sudo amdconfig --adapter=all --initial

After this reboot the machine and the driver will be installed succesfully.


This is what the ubuntu-minimal images are for. ~15MB of lean, mean Ubuntu. But if you're anything like me, you'll likely just end up installing it all back. Quite a few things require ubuntu-standard which layers on most of what the server disk installs.

You can read more about ubuntu-minimal and download it from the official help page.

Edit: Okay I've just done a minimal install. It does download extra packages as part of the installation and it's more that it really needs to run a base system.

The output of du -sh / is 632MB. It's a bit heftier than the previously advertised 15MB but it does install ubuntu-standard which I'm sure there is some way of avoiding. I've experienced it first hand because one of my server companies offers bare-minimal Ubuntu installs without ubuntu-standard.

I'll keep looking.


RealSQLDatabase file: accessing in Linux

There's quite a lot of binary in there; I ran it through a filter:

cat stations-2014-11-28.rsd | strings >new-stations.txt

which leaves you a tab-separated file; this should import easily into database / spreadsheet or your choice.


Desktop background not displaying ubuntu 19.4

A possible workaround could be to restart Gnome:

Just press alt + F2, then input r, then enter.
The background will come back.


Even when this question is related to software issues you may wish to give a try to HardInfo, System profiler and benchmark, which will allow you to perform several benchmarks in order to gather information of your system and allows you to perform comparisons with other systems.

Linux should run with a considerable ease, the applications that you refer, unless the hardware is reaching its limits.

Most of the times a big memory size isn't enough if the memory speed doesn't fit your need for speed. Hard disk drives should be fast enough and facing no issues and generally: The system should be in good condition.

You don't lose anything giving this a try and may find something that would give you an idea of how is your system handling the physical resources.

Reach HardInfo at: http://hardinfo.berlios.de/HomePage

Here is a screenshot of my CPU Blowfish benchmark with two comparisons.

Additionally you can use a system monitor tool, like Conky or GkrellM in order to see your system's performance when attempting to run one of these applications. This won't fix your issues but will give you a clue on where to start.

I prefer to use GKrellM, so here is a screenshot of my system being monitored by this tool:

Here is a screenshot of Conky (from their site) featuring processes monitoring:

And when writing all this stuff I got a bulb turned on over my head, and I think that you should check what running processes are giving you problems when attempting to do what you wish. I mean: there can be a running process which can be requesting lots of processor or memory and this can cause your other applications to have problems.

Check this out in System Monitor: System/Administration/System Monitor. In the next screenshot you can see my google chrome demanding 122 MiB of the physical memory.

Who knows? you try it and let's see what happen. The more information you gather, the easier to find the solution.

Good luck!


Why i can't install from Ubuntu Software Center

Do you have by any chance have you removed Network-Manager from your Ubuntu distribution?
If the network-manager is removed from your Ubuntu 12.04 LTS machine then it is more than likely the install button will be 'greyed out'.

You will still be able to install applications through the terminal. But overall the network-manager will have to be re-installed if you un-installed it.

Open a terminal with Ctrl+Alt+t and submit the command sudo apt-get install network-manager network-manager-gnome.


Partition tool with console UI (as in server installation)?

Aha. Re-reading your post I see you mention what you think is the name of the utility, *parted_server*. A little googling for terms like 'parted_server, ubuntu server, ubuntu install partition program' and eventually I turn up this ancient page. It says the Ubuntu 6.10 installer uses partman. One google later I find partman is still the de facto Ubuntu installer partitioner, and is inextricably bundled with the ubiquity package. A reluctant apt-get install ubiquity later and partman is ready to run. It takes several seconds for partman to start, and I don't know how stable it is running outside of the install environment.

I downloaded the source for ubiquity thinking maybe I could yoink partman out. Haven't gotten very far, but I haven't tried too hard either. (Not a programmer, just a former slacker.)

Sounds like you know what you're doing, but thought I'd link to the Maverick manual partitioning guide for less experienced eyes.


According this post clean-up cache, you need to clean up cache stored by apt. also you need to upgrade your installed software to latest version.

Removing APT cache

sudo apt clean && sudo apt autoclean

Updating APT

sudo apt update

If there's available software to upgrade then run

sudo apt upgrade

then you can continue installing nmap

sudo apt install nmap

Hope this work for you.


I found that these instructions to be very helpful

For the love of command line tools, instead of the visual/heavy Thunderbird/KMail or Evolution.

sudo apt-get install mpack

Then to extract the eml contents

munpack 1.eml

In my case I need to use -t to get past the following error messages

munpack ./ServerPerformance.eml
tempdesc.txt: File exists
image001.jpg.2 (image/jpeg)

I then get every thing out like this.

munpack -t ./ServerPerformance.eml
part1 (text/plain)
part2 (text/html)
image001.jpg.3 (image/jpeg)


How do I change the text color of items displayed in the Unity Dash?

The text-color "white" for the "Results in the Unity Dash below the icons" is hardcoded in the Unity source. You can try to edit the source code to change that color.

NOTE: I recommend you to do this in a Virtual Machine or in a Test Machine to see is everything is OK.In this example I'm running Ubuntu 13.04 with unity 7.0.0 and I only will change the text-color (Below the icons) from White to Black.

1) Make sure you have enable the Source code repository.

Open the Ubuntu Software Center.
In the Menu Bar choose Edit -> Software Sources. Click to enable "Source code repository".
Just in case I use the "Main Server" to Download.

Open a Terminal window Ctrl+Alt+T and type:

sudo apt-get update

2) In the Terminal type the following to install the necessary packages.

sudo apt-get install build-essential python-windowmocker quilt

3) Install build dependencies.

sudo apt-get build-dep unity

4) Create a folder to download the source code.

mkdir ~/Downloads/src

cd ~/Downloads/src

5) Download the source code & Export variables.

apt-get source unity

export QUILT_PATCHES=debian/patches

export EDITOR=gedit

6) Create the patch and Edit the source code.

cd unity-7.0.0daily13.06.19~13.04/

quilt new 99-custon-color-dash.patch

quilt edit dash/ResultRendererTile.cpp

Edit the Line 438.

I changed it from:
  cairo_set_source_rgba(cr, 1.0f, 1.0f, 1.0f, 1.0f);

To:
  cairo_set_source_rgba(cr, 0.0f, 0.0f, 0.0f, 1.0f);

Save the changes in gedit.

Brief explanation
The code uses cairo with Arithmetic notation to set the color.
Arithmetic notation:
From 0 to 1, with any fractional value in between. This representation is used in theoretical analyses, and in systems that use floating point representations.
Digital 8-bit per channel notation:
(Red,Green,Blue) (0 to 255, 0 to 255, 0 to 255)
You can choose your color with the typical RGB color selector in graphic software, like Red:

(Red,Green,Blue) (255, 0, 0)

In Arithmetic notation would be:
255/255 = 1.0f
  0/255 = 0.0f
  0/255 = 0.0f

So, if you want the text-color Red:
  cairo_set_source_rgba(cr, 1.0f, 0.0f, 0.0f, 1.0f)

The last one is the Alpha channel (RGBA).
Info:
RGB
RGBA
Cairo

7) Compile and build the deb packages.

quilt refresh
fakeroot dpkg-buildpackage

8) Install the deb packages.

cd ..

sudo dpkg -i *deb

9) Finally you can Restart your machine to see the changes.
Before:

After:

Hope this helps.


CIFS mount is not recoverable after sleep or hibernate

If you have an issue with this share, you can unmount it on hibernate/suspend and remount it on resume.
In order to do that you should create a script in /etc/pm/sleep.d/, call it 50-share_handling (for example), and put the next lines in it:

#!/bin/sh
# Unmount CIFS share on hibernate/suspend and remount it on resume

case "$1" in
        hibernate|suspend)
                umount /mnt/L
                umount /mnt/M
                ;;
        thaw|resume)
                mount /mnt/L
                mount /mnt/M
                ;;
        *) exit $NA
                ;;
esac

Make sure that it is executable.
More script examples can be found here: /usr/lib/pm-utils/sleep.d.

Source for Debian Lenny, should be valid for Ubuntu.


Set mount options for removable devices on Kubuntu

The best option I've found is udiskie. Udiskie is in Debian, and thefore also in Ubuntu.

  I share my computer in a multiseat configuration and would like
  everyone to mount removable devices with a umask of 0 (ie. readable
  and writeable by all and sundry).

This is what it does by default.

udiskie-mount devicename

Sample session:

udiskie-mount /dev/disk/by-uuid/4E1AEA7B1AEA6007
mounted /org/freedesktop/UDisks2/block_devices/sde1 on /media/faheem/My Passport
cd /media/faheem/My\ Passport
ls -lah
total 302G
drwxrwxrwx  1 faheem faheem 8.0K Apr 19 04:18 .
drwxr-x---+ 3 root   root   4.0K Apr 19 21:08 ..
drwxrwxrwx  1 faheem faheem 4.0K Apr 19 04:19 backup-home

If you want to mount with a specific set of permissions, you can do, for example:

udiskie-mount -o umask=0022 devicename

Sample session:

cd ..
udiskie-umount /dev/disk/by-uuid/4E1AEA7B1AEA6007
unmounted /org/freedesktop/UDisks2/block_devices/sde1

cd /media/faheem/My\ Passport
ls -lah
total 302G
drwxr-xr-x  1 faheem faheem 8.0K Apr 19 04:18 .
drwxr-x---+ 3 root   root   4.0K Apr 19 21:10 ..
drwxr-xr-x  1 faheem faheem 4.0K Apr 19 04:19 backup-home


Can no longer lock my screen on Ubuntu 20.04 with vanilla GNOME, how to debug?

I am not sure this is going to help anyone or if anyone else will ever encounter the same issue - I've come to the conclusion that perhaps the upgrade from 18.04 to 20.04 was causal in all this - but here is how I managed to resolve it.
There were a number of indicators in the syslog that this is an issue with extensions:
gnome-shell[31361]: Usage of object.actor is deprecated for dtpSecondaryAggregateMenu#012get@resource:///org/gnome/shell/ui/environment.js:287:29#012_init@/usr/share/gnome-shell/extensions/$ash-to-panel@jderose9.github.com/panel.js:1183:9#012_setPanelMenu@/usr/share/gnome-shell/extensions/dash-to-panel@jderose9.github.com/panel.js:571:41#012_init@/usr/share/gnome-shell/extensions/dash-to-panel@jderose9.github.com/panel.js:163:18#012_createPanel@/usr/share/gnome-shell/extensions/dash-to-panel@jderose9.github.com/panelManager.js:331:17#012enable/<@/usr/share/gnome-shell/extensions/dash-to-panel@jderose9.github.com/panelManager.js:87:42#012enable@/usr/share/gnome-shell/extensions/dash-to-panel@jderose9.github.com/panelManager.js:86:77#012_enable@/usr/share/gnome-shell/extensions/dash-to-panel@jderose9.github.com/extension.js:94:18#012enable@/usr/share/gnome-shell/extensions/dash-to-panel@jderose9.github.com/extension.js:62:5#012_callExtensionEnable@resource:///org/gnome/shell/ui/extensionSystem.js:166:32#012_onEnabledExtensionsChanged/<@resource:///org/gnome/shell/ui/extensionSystem.js:475:18#012_onEnabledExtensionsChanged@resource:///org/gnome/shell/ui/extensionSystem.js:474:11
gnome-shell[31361]: Error looking up permission: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for geolocation

The first line contains (abbreviated below):
@resource:///.../gnome-shell/extensions/$ash-to-panel@jderose9.github.com/panel.js:1183:9

... which corresponds to the Dash to Panel GNOME shell extension. And indeed when I tried deactivating it, I was able to lock my screen again.
I then looked in my home folder as to whether I could find any cache items corresponding to this extension to purge them. However, I came up empty-handed.
I then noticed that the extension seems to live a sort of double-life. Initially it was shown as "normal" extension. When I checked whether there was a package of the name, the package gnome-shell-extension-dash-to-panel came up and it turned out that it was installed.
I first attempted apt install --reinstall gnome-shell-extension-dash-to-panel and deactivating plus reactivating the extension, but that alone did not help.
After that I ended up purging the package (apt purge gnome-shell-extension-dash-to-panel) and noticed it was still shown in GNOME as installed system extension. So I deactivated it, but there was no option to remove it (as is normally the case for non-system extensions). So I deactivated it.
After all that I reinstalled the package gnome-shell-extension-dash-to-panel and activated the extension and lo and behold I am now able again to lock my screen.
So perhaps I wasn't too far off with my guess regarding remnants from before my upgrade.


I agree with @xenoid. It's not the OS that is concerning, it would be the syntax changes of all the other programs. Essentially copy pasta of what @xenoid said.

  If you have two servers you can replicate one domain to the new and
  see how it behaves before switching the DNS to the new address. Rinse
  and repeat for the other domains. When you'll have done 4-5 domains
  migrating the rest should he a snap.

Essentially you would want to mirror your two servers, this will give you the "live environment" and then the server you are moving to.

I would also add, you can just move the actual content to your other server without any issue I.E Photos, music videos web files ETC, since these are going to be unchanged from the distro upgrade. I would also just install a fresh Plesk environment and not worry about copying over the old server.

Once your data is moved over, I would then start building your Apache, Nginx and Bind configuration files, and this is where the fun begins. If you haven't upgraded these servers in a while, the configuration Syntax would have massively changed. I would apply one configuration file, then on my laptop modify my host file to point to the new server, get that one all set, then use that as a template for your other domains.

I typically would script this out. I.E create a list of your domains, then do a for loop

for dom in dom_list.txt; do

cp $COMPLETED_DOM.Config $dom.config

and then Sed change the domain inside the file. (I'm working off 2 hours of sleep)

Once the script runs through, modify your host file on your laptop to test all your domains and bada bing bada booom.


window title bars are not displaying correctly 13.10 when laptop plugged in

Turns out it must have been a bug with the opensource drivers in the oibaf ppa because it fixed itself today after updating.


Kubuntu shows black screen after upgrading to 16.04

I was stuck with a splash screen going straight to a black screen, with no graphical login.

To fix this, I purged nvidia-*, installed nouveau, and then realized that both lightdm and sddm were installed. I purged both of those and reinstalled sddm.


USB mobile broadband modem unusually slow

UPDATE:

Did some research. The modem is working on frequency that is not supported for 3G in my country.
I bought modem directly from my mobile provider and now it is working like a charm.


just install the package conntrack
sudo apt-get install conntrack , or by your favorite way to install packages.


How do I enable/disable graphics card at will without logging out?

Sounds like you want Nvidia optimus, I believe it was recently added in the 304 driver release, so I recommend you install the nvidia driver.


This means that there is no file named make.py within the revkit-2.2 directory.

These are the files and directories contained within revkit-2.2:

total 56
drwxr-xr-x 8 norman norman 4096 Dec 22 05:28 .
drwxr-xr-x 6 norman norman 4096 Feb 26 21:43 ..
drwxr-xr-x 5 norman norman 4096 Dec 22 05:28 addons
-rw-r--r-- 1 norman norman 2740 Dec 22 05:28 CMakeLists.txt
drwxr-xr-x 2 norman norman 4096 Dec 22 05:28 ext
drwxr-xr-x 4 norman norman 4096 Dec 22 05:28 gui
drwxr-xr-x 4 norman norman 4096 Dec 22 05:28 programs
-rw-r--r-- 1 norman norman  770 Dec 22 05:28 README.md
drwxr-xr-x 5 norman norman 4096 Dec 22 05:28 src
drwxr-xr-x 5 norman norman 4096 Dec 22 05:28 test

You should read the README.md file for instructions:

# RevKit

## Requirements

The following software is required in order to build RevKit

* git
* cmake (at least version 2.8.9)
* g++ or clang++ (with C++11 support)
* boost (at least version 1.48.0)
* GNU MP, and its C++ interface GMP++
* Qt5 (only for the GUI)

## Build RevKit

After cloning RevKit perform the following steps

    mkdir build
    cd build
    cmake ..
    make

To build the GUI perform the following steps from the base directory

    cd gui
    mkdir build
    cd build
    cmake ..
    make

## Build RevKit Addons

The easiest way to enable addons is by typing `ccmake ..' in the build directory

## Executing RevKit Programs

Executables can be found in the directory `build/programs'. Form the build
directory call e.g. `programs/circuit_info'

If you have any other issues, please do edit your question / comment! :)


Look in ~/.gvfs/ as that's where gnome tends to mount things.


20.10 do-release-upgrade not finding 21.04

There's a problem with the upgrade and newer systems (UEFI) which has halted the roll out of upgrades temporarily.
It will be resumed so just hang on in there for now until it's fixed.
This doesn't seem to affect vanilla installations from scratch though.
This from Ubuntu Weekly newsletter issue 681 link here

Joey Sneddon writes about the bug that impacts upgrades from Ubuntu
20.10 to Ubuntu 21.04 that has resulted in the decision of Ubuntu developers to not enable upgrades yet. Joey quotes Canonical's Brian
Murray's advice which is to wait until the issue has been fixed and
the upgrade path is turned on officially.

reference


How do I disable the ATI Radeon graphic card during Ubuntu 17.10 installation?

Disabling it in Windows won't affect your linux install.

You should be able to disable it from the BIOS/EFI, thus preventing it from activating during POST.

For instance, if you have a CPU-integrated graphics AND a dedicated graphic card, try disabling the CPU-integrated (it behaves pretty weird on some laptops).If that doesn't work, disable the PCI graphics and boot with only the CPU stuff (you'll reactivate your PCI card after installing the appropriate driver)

Good luck


How do I fix these package dependency issues?

I just ran

sudo apt-get -o APT::Immediate-Configure=no upgrade

using someone else's suggestion. After that I ran

sudo apt-get autoremove

and together they seem to have fixed the issue. I'm not sure how it happened though.


How to create my USB bootable GPT partition?

It looks like you cloned from the iso file to the USB pendrive. Please tell us which tool/method you used.

You can check with the following command, and you should get something similar to what I get (with Lubuntu)

$ lsblk -f /dev/sdd
NAME   FSTYPE  LABEL               UUID                                 MOUNTPOINT
sdd    iso9660 Lubuntu 19.04 amd64 2019-04-16-19-13-46-00
├─sdd1 iso9660 Lubuntu 19.04 amd64 2019-04-16-19-13-46-00
└─sdd2 vfat    Lubuntu 19.04 amd64 039E-EF17

In that case the USB pendrive should be bootable both in UEFI mode and BIOS mode.

It is a very special partition table (but classified as MSDOS, not GUID (GPT). And there is no reason to try to create a GPT partition.

You may have to modify some setting in a UEFI/BIOS menu of your computer, or easier, hit a hotkey early during boot to get a temporary boot menu, where you can select the USB drive.

If it still does not work, you should check with md5sum that the download was good. The next step would be to check if the USB pendrive is good. But the output in your question looks promising.


How to add scroll empty space in terminal?

Let's say you want three extra lines below your prompt.

In Bash, run this, and from then on, you will have the three extra lines:

PS1+="\[\eD\eD\eD\e[3A\]"

To make it permanent, put it in your ~/.bashrc.

The equivalent in Python uses sys.ps1:

import sys
sys.ps1 += '\x01\x1bD\x1bD\x1bD\x1b[3A\x02'

Or you could move the number of extra lines into a variable:

_ps1_extra_lines = 3
sys.ps1 += '\x01' + '\x1bD' * _ps1_extra_lines + '\x1b[A' * _ps1_extra_lines + '\x02'

To make it permanent, put it in a PYTHONSTARTUP file, which you may need to set up first.

Also note this is meant for the regular Python shell, and will not work in IPython, for example.

For explanation and more details, see How to add blank lines above the bottom in terminal - Super User.


Using command line for operating on files and folders mounted on windows partition

Yes, the Path would be the Mountpoint of your Windows-Partition.

You could also modify /etc/fstab to define the Mountpoint.
You might want to check this Wiki-Page for fstab:  http://en.wikipedia.org/wiki/Fstab

Example:

Create a Folder called "Win8Partition" in your Home-Directory
Open fstab with your preferred Text-Editor, e.g. nano.

sudo nano /etc/fstab
Add the Partition at the end of fstab, e.g.

/dev/sdxY/   /home/yourusername/Win8Partition   ntfs   rw 0 0

(Where "/dev/sdxY/" is the Partition, in my case it's "/dev/sda3")
After that save the Changes made to fstab and exit nano. Your Windows-Partition will be
mounted to the Folder "Win8Partition" after a Reboot and you should be able to browse and modify Files from there.

Sorry for my broken english. Feel free to edit :-)


12.04.1 CD not recognized as a boot disk

It sounds like the cd wasnt burnt as an  ISO

In windows 7 simply right-click on the downloaded ubuntu  ISO image icon and choose “Burn disc image”.

If in  ubuntu go to dash and type brasero and start the program.Then choose the option burn image

Place the burnt image cd into the drive

restart computer

Make sure the bios settings on your computer  are set to boot from cd first

If it was an incorrectly burnt cd this should resolve your problems


I solved this by using xfreerdp instead. I actually tried configuring the Kerberos authentification, but gave up after an hour.

So an example of an xfreerdp command would be:

xfreerdp /u:'DOMAIN\john' /p:'doe' host:port

Hope that helps even though it's a bit late :-)


I was able to fix this by following the steps mentioned here by installing kernel version 4.15.10-041510-generic.


Laptop with external HDMI monitor: screen off/on loop

The easiest way is to lock your screen after inactivity but not turn the screen off.

As per this answer: How do I prevent my display from turning off when screen is locked?, use this command:

gsettings set org.gnome.desktop.screensaver idle-activation-enabled false

Your screen will still lock after inactivity but the password prompt will stay up and the screen won't turn off.

Not the perfect solution but hopefully one that addresses your security concerns without the annoying loop.


There is no Wayland display server. Wayland is a protocol. The compositor is the closest thing you get to a display server. In Gnome, that's mutter. So in Ubuntu, you'd probably do something like apt-cache show mutter | grep Version.


Why do important system processes exhibit lower valued priorities?

In linux, processes with lower priorities are executed with a more favourable schedule. It can range from -20 (processes are given the best treatment) to 20 (they are less favoured by the kernel). You can check nice man page for more info.

So important process have low priority so that they will be favoured over normal processes.


alt tab doesnt work for citrix xenapp in full screen

Interestingly Ctrl+Alt+Tab seems to work!

But of course I would like to know how can we know about these shortcuts.


Cant hear from front Headphone, except in audacity

After searching a bit here it says that when dual-booting, you have to turn on the Realtek devices. It was off, because when it was on, the front panel didn't work, even for windows.

I had to go into the bios settings and change my front audio jack from HDAudio to AC97, go to windows, make sure that the audio works with the Realtek device on, then booting into Linux and finally running this command killall pulseaudio; rm -r ~/.config/pulse/* ;.
After that my audio works fine!


Yes it is reported to work.

Here is a video of it working on Ubuntu.

http://www.youtube.com/watch?v=1R9BrxNxINQ

There are lots of programs that help with the install of Windows based programs called PlayOnLinux and also Wine Tricks and Crossover.  Although I believe Steam will help manage this when it finally gets all ported over.

Here is the more technical wine details if you are into that sort of thing.
http://appdb.winehq.org/objectManager.php?sClass=version&iId=25413

Hope this helps.


This could be a problem with your audio. Try toggling with your audio options. You can find your options by clicking the sound icon at the top near where you see power button:

Then click on Sound Settings. In there, toggle  between the pictures of cards just below Play sound through. This should solve your problem

Hope this helps you!


Accidentally messed up my filesystem wtih mv - Grub Rescue>

Basically, since you moved all files required for boot (for instance... /boot), your current machine is in no state for boot. However, others are.

You may be able to restore your machine's previous state since you know what was done. Configure your VM to boot on a Ubuntu Live ISO, select Try Ubuntu and manually mount your "messed up" partitions :

# Create mount points (home only if necessary).
sudo mkdir /mount/old /mount/old/home

# Mount the former / partition on /mount/old.
sudo mount /mount/old /dev/sdaX # sdaX being your destroyed / partition.

# Mount the former /home partition (if you have one) on /mount/old/home.
sudo mount /mount/old/home /dev/sdaY # sdaY being your former /home partition, if necessary.

If you want to get more information about your partitions, type sudo fdisk -l. This will give you the virtual drive's partition scheme. Try to recognise your partitions according to their filesystems and sizes. In most usual cases, the / partition is a large ext4 partition. If your /home shares the same partition as /, then remove it from the commands below.

From there, try to revert your changes in /mount/old and /mount/old/home, then umount them, and reboot on the virtual drive. Before umount-ing, you can also go to /mount/old/var/www or /mount/old/home/user/Downloads/var/www to get your data back.

# Find all files owned by root in the former Downloads directory, and move them back to the root (mounted on /mount/old)
sudo find /mount/old/home/user/Downloads -type d -maxdepth 1 -user root -exec mv {} /mount/old \;

# Un-mount everything.
sudo umount /mount/old/home /mount/old

# Power off! Remove the ISO and power the machine back on.
sudo poweroff

This seems like the most obvious solution, yet I don't know if GRUB's configuration will be able to handle the recent changes. You can still give it a try!


Ubuntu 12.04 NVIDIA GeForce Go 7600 black screen during boot

Please open a terminal and run sudo gedit /etc/default/grub and give your password. Find the line that says:

#GRUB_TERMINAL=console

and change it to

GRUB_TERMINAL=console

(that is, remove the pound sign).

Then, run close Text Editor and run sudo update-grub. It may take a while ,but when it finishes, you will get the familiar user@computer ~$ prompt, which means the command is done. Reboot, and it should help.


Do Snap packages support private repositories?

Yes, you can register private snaps. When you are on the page for registering snaps there is a tick to mark a snap as private or not.

Check image.


Font showing up as squares during installation

This is probably the hardware configuration of your computer. You can try xubuntu. Which ubuntu version you are trying to install? If you are trying 14.04 LTS you ca try 12.02 as well. If you think it's still heavy you can try Elementary OS, a dist. based on ubuntu much lighter.

Hope it helps


After upgrade to 20.04: "Sorry, there is nothing that matches your search"

I solved my problem.  Somehow during the upgrade I got switched to Unity.  Switching back to gnome solved the problem.


Some systems are known to have issues with the windows installation if a 64bit ubuntu is installed alongside. Using a 32 bit version produces no problem. You can try the boot-repair iso to fix the dual boot screens.

https://help.ubuntu.com/community/Boot-Repair

Boot repair can fix most of the common problems with grub.


Top right icons messed up Ubuntu 13.04 64bit

You can change the order of Unity Application Indicators for all users in /usr/share/indicator-application/ordering-override.keyfile file:

sudo -H gedit /usr/share/indicator-application/ordering-override.keyfile

If you only want to change the order only for current user, (create and) edit this file:

gedit ~/.local/share/indicators/application/ordering-override.keyfile

Source: http://ubuntuguide.net/change-order-of-unity-application-indicators-in-ubuntu-12-04

To get the proper name to use in the keyfile, see https://askubuntu.com/a/259198/20835


Building UCB logo 6 - errors in mathcalls.h

I worked out how to compile this code:

In coms.c and in graphics.c move the line include <math.h> to before the line include "logo.h"
After running .configure open up the file makefile and change the call to the library -ltermcap with -lncurses.

Then you can run make and it should compile OK.

One thing I haven't worked out is how to compile with the wx toolkit.  I have the libraries on my system, but both .configure and make seem to ignore it.


To use WoL features you first need to make sure that it is enabled in your BIOS/Network Card.

If it is enabled you can use the ethtool to check the current settings of it.

If you are missing ethtool you can install it via sudo apt install ethtool.

Once you have it available you can check your settings via this command:

sudo ethtool [yourInterface] e.g. sudo ethtool enp0s3

Look for the line Wake-on: d

If the value is "d" you can enable it with this command:

sudo ethtool -s [yourInterface] wol g e.g. sudo ethtool -s enp0s3 wol g

If the value is "g" you can disable it via:

sudo ethtool -s [yourInterface] wol d e.g. sudo ethtool -s enp0s3 wol d


Cannot change permission inside pCloud drive folder

Galyfray!
Please note that this option to change the permissions is not possible at present, however, it is in our road map for future developments and we plan to implement that for sure!
The file system is exFAT and the GUI client makes all the files in pCloud Drive executable upon installation usually.
To get more information and guidance, you can always contact us at support@pcloud.com.
Best,
pCloud


Use e4defrag to defrag your files

If your ext4 file system is created with the extent option (it's default in recent distros), you can use the e4defrag utility to check and defragment it online i.e. without umounting.

Just check fragmentation level with something like this (you need to be root to see details):

sudo e4defrag -c /path/to/myfiles

Here's an example of the output you can get:

$ sudo e4defrag -c iso/
<Fragmented files>                             now/best       size/ext
1. /home/gerlos/iso/debian-live-7.5.0-i386-rescue.iso
                                                 7/1         111177 KB
2. /home/gerlos/iso/systemrescuecd-x86-4.4.1.iso
                                                 4/1         100897 KB
3. /home/gerlos/iso/debian-live-7.5.0-amd64-rescue.iso
                                                 6/1         116053 KB
4. /home/gerlos/iso/ubuntu-14.04.2-server-amd64.iso
                                                 8/1          76160 KB
5. /home/gerlos/iso/ubuntu-14.10-desktop-amd64.iso
                                                15/1          75712 KB

 Total/best extents             40/5
 Average size per extent            90577 KB
 Fragmentation score                0
 [0-30 no problem: 31-55 a little bit fragmented: 56- needs defrag]
 This directory (iso/) does not need defragmentation.
 Done.

As in this example, most of the time it will tell you that no defragmentation is needed, but if you want to do it anyway you can use (you don't need to use sudo to defrag your own files):

e4defrag /path/to/myfiles

Your users can even run it on their own files, there's no need to be root unless you want to work on other user's or system files.

e4defrag is in the  e2fsprogs package, and I guess it's already installed on your Ubuntu system.


Sleep mode consumes as much as battery as when laptop is in use

I could solve the issue. I will answer my own question hoping it helps anyone else facing the same problem.

The Lenovo X1 Carbon 6th gen uses a new sleeping state (Si03, Windows Modern Standby) instead of the traditional S3 sleep state. Linux does not support that new state.

The workaround presented here worked well: https://delta-xi.net/#056


Trying to install Ubuntu on Win 10 Machine, getting black screen after hitting "install"

On the boot menu, go to run live mode. Don't press enter, press C which lets you change boot commands. Where you see splash right after it type in "nomodeset" so it should look something like: ...quiet splash nomodeset --

try that and come back.


Here are the steps needed to setup fakeraid and get relevant partitions auto-mounted:

Install the dmraid package:

sudo apt-get install dmraid

Reboot (this is because dmraid adds itself into initramfs)
The fakeraid device should appear e.g.:

$ ls /dev/mapper/*
brw-rw---- 1 root disk 252,   0 Dec  6 16:21 /dev/mapper/isw_dhdhchcbaf_Dima
brw------- 1 root root 252,   1 Dec  6 16:21 /dev/mapper/isw_dhdhchcbaf_Dima1
crw------- 1 root root  10, 236 Dec  6 16:22 /dev/mapper/control

Above, *Dima is the fakeraid device, while *Dima1 is the partition. If you don't have *N, you need to create a partition table, create a partition, format ot with a filesystem and reboot again.
In Ubuntu, all partitions are mounted by UUID by default. Let's find out UUID:

$ sudo blkid
[sudo] password for xnox:
/dev/sda: TYPE="isw_raid_member"
/dev/sdb: TYPE="isw_raid_member"
/dev/mapper/isw_dhdhchcbaf_Dima1: UUID="92edd1fd-94c5-4617-b829-fa4a8378b7ae" TYPE="ext4"
/dev/sdc1: UUID="A904-D2E7" TYPE="vfat"
/dev/sdc2: UUID="6669d411-80c3-41cc-a629-ad84e1ee6854" TYPE="ext4"
/dev/sdc3: UUID="2bf263f1-753f-4b2e-92a6-b00381515e0c" TYPE="swap"
/dev/sdd1: UUID="C499-1A68" TYPE="vfat"

See that the wanted one is UUID="92edd1fd-94c5-4617-b829-fa4a8378b7ae"
Therefore the /etc/fstab entry would be:

UUID="92edd1fd-94c5-4617-b829-fa4a8378b7ae" /srv/dima ext4 defaults 0 0


Performance being really choppy with ATI drivers

Install CompizConfig SettingsManager

sudo apt-get install compizconfig-settings-manager

Warning: What are some of the issues with CCSM and why would I want to avoid it?

Click on the Composite tab, and
un-check Detect refresh rate.

Click on the OpenGL tab, and un-check Sync to Vblank.


Looks like your fps are fine, probably you just need to add vsync to fix stuttering/tearing (Lubuntu/Xubuntu are light-weight os, and they come without vsync). Luckily enabling it's quite easy:
Enable Sync to VBlank on LXDE with Intel Video Card
(
there's also the answer solution for Lubuntu 15.10, I can confirm it works fine over the new 17.10, =))

If you want to check the problem just open this "Vertical scrolling test", if vsync it's enabled you will just see a fluent solid text without any segmentation (don't mind the "UNSUPPORTED FOR LINUX"):
https://www.testufo.com/framerates-text#pps=480&count=2

Good Luck!


Why is Rsync copying the same subset of (unchanged) files every time?

In the default mode of operation rsync uses the modification time as key to determine whether a file should be transferred or not. From its manual page:

  Rsync  finds  files  that  need to be transferred using a "quick
  check" algorithm (by default) that looks for files that have changed
  in size or in last-modified time.

Using the --checksums option, it will look at the file contents instead:

-c, --checksum              skip based on checksum, not mod-time & size


Have access to server installed on ubuntu from windows 10

Try to start your server over interface 0.0.0.0

  php bin/console server:run 0.0.0.0:8000

have you tested your server on Ubuntu side?

  telnet 127.0.0.0 8000

Best Regards!


Colin,

I have exactly the same problem as you with an Aspire One 722 (BCM4313 14e4:4727). Connects ok with wifi then system crashes after a few web pages.

To cut out all the red herrings involving the various drivers, the following seems to work. I've tried it with a fresh install of Lubuntu 12.04 (absolutely no changes needed other than below) and it works well. Relief.  When Ubuntu starts up for the first time after installation it asks if you want to activate the proprietary driver; I left that alone and didn't activate it. It turns out that it does "just work" after all (other than below).  If you have attempted various other fixes, a reinstall would be easiest way to get it back to correct state, or make the BIOS change and then try a live CD to confirm before reinstalling.

Ubuntu Install on Acer Aspire One 722

In case that link stops working, here's a copy of the text :

  Under Ubuntu Natty, the Aspire One 722 wifi adapter is fully supported, but presents a very annoying bug, specific to the AO722
  hardware.

  In fact, every time you try to connect to a wireless network, your
  netbook may freeze, the only option being a hard reset !

  It seems that this bug comes from a conflict between the ethernet and
  the wireless adapter.

  But the good news is that there is a very simple tip to avoid this bug
  : you need to setup a specific boot order, where the network boot is
  used first. With this setup, the ethernet adapter will be configured
  in a way that there won't be any conflict with the wifi adpater at the
  time of wireless network connexion.

  To do so, reboot your netbook and enter the BIOS by typing F2 at boot
  time.

  First, set the Network Boot as the first one in the boot priority
  order :

  Next, be sure that Network Boot is enabled :

  Save and exit.

  After reboot, the freeze problem should be part of the past …


Primary Method:
You appear to have overwritten GRUB(the thing that gives you the boot menu) with the Windows MBR. You need to boot the Ubuntu installation CD, and then open file manager and open your linux root partition(the one with /boot, /var, /sys, /etc, etc)(this mounts it). Close that window, but don't click the "eject" button next to your hard disk, unless you opened the wrong one. Now, enter, in the terminal:
grub-install --root-directory=<grub directory> /dev/sda

where to get the <grub-directory> part, enter /media/and then use TAB to "auto-complete" the correct directory. If all goes well, when you reboot, you'll have a working GRUB system.
Alternative method:
Obtain the Super Grub Disc(not Super grub disc 2), boot to it, pick GNU/Linux, and pick Fix boot of GNU/Linux. If all goes well, you'll be able to boot Ubuntu, where you'll be able to run update-grub from a terminal to ensure that GRUB2 is installed, and has an option for Windows.


GNU GRUB Terminal - Instead of Ubuntu login screen

If you have installed without Wubi.exe:

At the grub prompt try these commands:

set pager=1
ls

Now, suppose the output of ls is: (hd0) (hd0,msdos2) (hd0,msdos1), in order to find the linux root filesystem run:

ls (hd0,1)/
 which should give you all the files/folders in / such as bin/ boot/ cdrom/ dev/ etc/ home/  lib/ etc.

Once this is done continue with:

set root=(hd0,1)
linux /boot/vmlinuz-3.13.0-29-generic root=/dev/sda1
initrd /boot/initrd.img-3.13.0-29-generic
boot

Of course replace vmlinuz-3.13.0-29-generic and initrd.img-3.13.0-29-generic with what you find in your /boot

/dev/sda1 is the location of the root system. You may have to change it if /dev/sda1 did not work.

If you have installed using Wubi.exe:

If you have installed Ubuntu using Wubi, perform following steps as given in the WubiGuide:

boot into Windows, run chkdsk /r from Windows on the same drive where you installed Ubuntu, shutdown cleanly and then try to boot into Ubuntu again.
if still not good, check that you have a C:\ubuntu\disks\root.disk file. If this file is missing, boot on Windows, open the Windows Explorer, set it to be able to see hidden folders, then look for a hidden folder called C:\found.000 or dir0000.chk . Move the files from found.000 to their original location inside the \ubuntu\disks directory. You may have to rename it into root.disk.


System very slow after upgrading to 12.04 using Unetbootin

For any operating system for any time upgrading from older version did not worked well for me. I always advice clean install. It is more easy to install your previous applications and restore your application specific files instead of cope with numerous errors after an upgrade. I have witnessed lots of unsuccessful Ubuntu upgrade attempts before and my advice is "Do not upgrade!".


What is the difference between the memory usage report in System Monitor and the one by free?

The difference is whether or not the "buffers" and "cached" memory is included in the "used" count.

Generally, Linux system memory is used by the kernel for two purposes: processes and file/network cache/buffers. If you look closely at the output of free, it is already shown:

             total       used       free     shared    buffers     cached
Mem:       3994908    3962396      32512          0     100852    1477032
-/+ buffers/cache:    2384512    1610396
Swap:      8000328      28468    7971860

If you add "buffers" and "cache", and then subtract that from the "used" column, you'll get the second line under "used" (the line that starts with -/+ buffers/cache), which shows about 2.3G (2384512) in use, which matches the reported memory in use that System Monitor is reporting (it is ignoring the buffers/cached because those will go away to make room for more processes).

Your grep against /proc/meminfo actually matches the first line's "free" column (32512 is close enough to 34536 -- it likely changed between the two command outputs).


How to configure a script to start automatically after server reboot

You should use Upstart, not cron. Upstart is what's used to run commands at startup (and shutdown).


Ubuntu 12.04 Freezes w/ Ethernet Unplugged + Wireless Drops (Acer Aspire 5516)

Only workaround I have found so far is to boot into recovery mode, then resume.  It seems to work, though I have no idea why.


How are log files persisted with the Logstash charm?

Currently, there isn't much safe guard if you're just using the logstash-indexer charm with no datastore. However, if you add the elasticsearch charm to your logstash-indexer instance, then the data will instead be stored there. So if the indexer does go away, the data is still kept in elasticsearch and should still be reachable by Kabana or other means. However, if elasticsearch went away you'd be in the same situation as before, where the data wouldn't be available anymore.


https://launchpad.net/~oibaf/+archive/ubuntu/graphics-drivers

I find Mesa drivers great with my R9 390, RX 480 and RX 580


Do you have all the codecs installed?

If not add the medibuntu repository. Open a terminal and paste the following

sudo -E wget --output-document=/etc/apt/sources.list.d/medibuntu.list http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list && sudo apt-get --quiet update && sudo apt-get --yes --quiet --allow-unauthenticated install medibuntu-keyring && sudo apt-get --quiet update

Then run

sudo apt-get update && sudo apt-get install libdvdcss2

Otherwise it might be a hardware problem. Hopefully someone else can step in and assist. Good luck.


gparted can't see partitions on an Acer Extensa 5420 laptop

Before you begin I recommend understanding what a partition is and the tools available under linux. http://www.ibiblio.org/ is a very good resource.. I expect the problem is related to a partition type being marked as type hidden.

You could use to gdisk(gpt-fdisk) get information on your paritions. I would get the latest version, I think that is 0.7. The creator of the tool has excellent documentation on how disk partion structures and information is set up and can be changed. I recently changed a disk structure I had created as gpt to mbr to fix a problem with windows not wanting to install on a disk. gdisk could probably fix your problem by recreating the mbr in a format that would make it accessible to your Linux system.

Testdisk should be installed as well. Testdisk is one of the best tools for fixing partition problems and I have used it numerous times.  This might be simpler to use, but it is not as informative as to what is going on with your actual disk structures. I would use gdisk to find out what is going on and then use testdisk to see if you can make the changes that allow you to resize your partitions.

You can change your disk partition labels with fdisk and parted as well. The first step is to get the actual structure of your disk and make a back up. So that you can fix problems, and later go back if you need to. Use dd or diskdump command explained here at the bottom of the page.

Microsoft has this documentation that might help

I have found this problem with windows 7 and vista pre-installed on certain computers. My solution was to format the drives under Linux and reinstall MSwin afterwards. In one case I removed the hard drive put it into an external casing because Linux could not even see the drive to format it. I believe the bios was protecting the hard drive. Some thing the manufactures set up to prevent people making changes.

I expect your are not afraid to read. There is no short answer to your problem with out more specific information. I hope this will get you up to a point where you understand the problem and what tools you have to solve it. If you need help with a specific problem / tool post back and update your question.


How do I best install Ubuntu in a certain language with a keyboard layout specific to another language?

Yes, you can install in English.

At step 6 out of 8 of the installation, you will have the opportunity to set up the desired layout. This is totally independent from the environment language you selected before.


Create Extended partition taking entire HDD for data storage

TL;DR:
You're using a gpt partition table which doesn't have the limitations the msdos partition table has: Just create a single large (Primary) partition if you need to and be done with it.
The long version:
It's all about history and back in the stone age when I was a kid and dinosaurs still roamed the Earth, an msdos partition table could just have 4 partitions and that was it.  As the maximum size of a partition was 32 MB (yes: Megabyte) this posed no problems as HDDs only came in 10 and 20 MB versions.
Fast forward nearly half a century and lots of things were done to circumvent these limitations: larger individual partition sizes, extended partitions, ...
Today, however, we don't need the msdos partition scheme any more as we have gpt which has none of the limitations msdos has, so just create one single large primary partition as you can create up to 255 partitions with a maximum size of 9.4 ZB
So stop worrying: You're good creating a primary partition for the rest of the duration of your life!  ;-)


Ubuntu 20.10 wifi disconnects 1min after boot

thanks for your replies. I'm just fed up with the ASUS Laptop. Switched to a Tuxedo computer with fully supported hardware. Greetings!


I've been looking for the same, but I'm thinking of just waiting for 17.04 and nuke & pave. I've been using Gnome on another test computer to get back to basics of Gnome prior to switching back. These other methods are OK except I'm concerned with leaving unnecessary crap laying about. Just my thoughts.


Running Ubuntu from External HDD. Boots very slowly

The external HDD is connected via USB, correct?

If so, than, you can't expect as good performance/speed from it as you would an internal HDD, as USB can only handle so much, so fast. USB provides very good performance, but under heavy use (such as boot-up), it may slow down a bit.


How can I set a custom icon for a folder?

Right click on the folder and click properties:

Click the button with a folder icon:

Now browse to find the icon you want to use and click 'Open':

The folder will now use the custom icon:


I just installed Ubuntu and it erased my entire hard-disk. Any chance to recover it?

Ugh. My friend, you're more or less out of luck. When you format and install you overwrite your old data with new data. There's an outside chance some kind of data forensics could restore part of your windows partition, but those services are very expensive.

Part of experimenting with Linux is breaking your computer! Welcome!


Main laptop screen frozen at login page (purple) after login. Other monitors work fine

For anyone that is experiencing the same problem, I just solved it.

Method:
1. Open Nvidia Settings with sudo nidia-settings
2. Select "PRIME Profiles" at the bottom of the list
3. Change to "Intel (Power Saving Mode)"
4. Log out
5. Log back in. Only one monitor will be active.
6. Repeat steps 1-3, except this time switching back to NVIDIA (Performance Mode)
7. Log out and back in and all your monitors should hopefully be running.


Ubuntu 12.04 on Amilo LA1703 after istalling graphics doesn't start?

I find a fix for this. It works for me I try it twice.
So after installing and the message shows all that you have to do is:

sudo apt-get install xserver-xorg

this works for 12.04 when you have VIA chip VT82xx

In 13.10 is necessity to put the following command when black screen appear:

sudo apt-get install xserver-xorg-video-openchrome

After this the graphic interface is loading.
UnfortunatelyI have another problem guess what? There is no sound on speakers.
I've try everything but didn't get to any success.Please somebody help to decide this problem.
In 12.04 and 13.10 the situation is the same. After installation there is nothing in field play sound through. I think that the system doesn't recognize the sound card at all. Please somebody help.

In 10.10 the sound was correct.


Here I'll summarize all actions which were taken to fix the problem:

Install packages as usual:

sudo apt-get install --reinstall python3-minimal
sudo apt-get install --reinstall python-minimal

Install packages on low-level:

sudo dpkg -i --force-all /var/cache/apt/archives/python-minimal_2.7.12-1~16.04_amd64.deb
sudo dpkg -i --force-all /var/cache/apt/archives/python3-minimal_3.5.1-3_amd64.deb

Extract packages directly to file-system and then continue as usual:

sudo dpkg -x /var/cache/apt/archives/python-minimal_2.7.12-1~16.04_amd64.deb /
sudo dpkg -x /var/cache/apt/archives/python3-minimal_3.5.1-3_amd64.deb /
sudo apt-get install -f
sudo dpkg --configure -a


I just saved a test document in LibreOffice to take a look at this. I tried to save it in phablet but via FileManager I found it in /home/phablet/.local/share/libertine-container/user-data/puritine

I guess I can see the logic of that for security but it isn't great for users in cases like this.

I can't see an easy way to break out of the libertine jail and save wherever you want- which I guess is a feature more than a bug.

The best thing might be to try mount --bind. It's a way to mount one folder as another. I am not so familiar with it, but it is described as a solution to a similiar problem here.

One thing to be careful of, the accepted answer to this question says that if you do mount chroot directories ". You will need to take extra care when doing so, if you wish to delete the chroot from your phone, or perform other destructive actions".

Hope that helps.


DLink dwa 131 H/W ver :E1 F/W ver : 5.1 how do i install it's wifi driver in UBUNTU 16.04

You can install a driver for Ubuntu 16.04 this way

sudo add-apt-repository ppa:hanipouspilot/rtlwifi
sudo apt update
sudo apt install rtl8192eu-dkms

You need to be connected by wire for that.

This is my PPA. I added the ID for this adapter to official Realtek drivers. They always forget to do it.

If UEFI is used in your computer, you need to disable SecureBoot to load the kernel module.


If you look into this directory

ls /etc/acpi/events/

then there should be somewhere a sleep-button-file. In this file you could disable the action when this event is sent.


Finally i solved the problem by running the following commands in the following order

sudo modprobe -r rtl8xxxu
sudo modprobe 8723bu
sudo modprobe -r 8723bu
sudo modprobe 8723bu
sudo /etc/init.d/network-manager restart
sudo /etc/init.d/network-manager restart

The first command removes the default module loaded for the Network Card by the kernel.
The second command loaded the right driver "8723bu" which we compiled earlier.

The rest of the command sequence is necessary to make the network manager detect the network card successfully, Once loaded it will work fine and never disconnect while working, however you have to repeat this process on every system boot.


will it dual boot in Lenovo ideapad z400 touch and will touchscreen functions work

I just did however it would seem that the touch screen does not work for me in 13.04


Create manual for program installed from source

man man says:

   -l, --local-file
          Activate `local' mode.  Format and display  local  manual  files

You can use man --local-file /path/to/file. For example, if you want to read a man page called example, you can use man --local-file ./example, assuming such file exists in the current directory.


By default, snapd performs a package refresh within 24 hours of the availability. The installation is spaced out within 24 hours in order to lessen the load of the servers.
In your case, you should use the snapd features to get lxd updated at specific times, https://snapcraft.io/docs/keeping-snaps-up-to-date#heading--controlling-updates
Considering the severity of this issue, I recommend to ask at https://discuss.linuxcontainers.org/ You may get help from the LXD maintainers.


Paulo,

I have just implemented a very similar scenario.

Firewall, router and local DNS server functions delivered by pfSense. This is free for personal use, thus easy to experiment. I then bought a Protectli FW4B - a Netgate appliance might be at east as sensible.

The pfSense Server¦DNS Resolver¦General Settings¦DHCP Registration allows DHCP registered names to be resolved/accessible from the browser bar.

I used Google Domains initially, and their Dynamic DNS service was easy to set up. Quickly switched to Cloudflare for its automated DNS-01 Let's Encrypt support which GD lacks. DDNS was even easier. Recommend anticipating the need for HTTPS.

See my Server Fault question for more.


Why do weird printers show up in the Ubuntu printing dialog?

As stopping the avahi-daemonor inserting enable-dbus=nointo the avahi-daemon.conf did not help (16.04), we disabled the daemon on the interface which points to the network where the printers reside by adding deny-interfaces=<interface>to the [server] section of the config-file.

We could only do it because we do not need any avahi functionality there.


Unable to print on a networked Canon printer using 64bit OS

It is quite satisfying to be able to answer your own question sometimes.

Found a post of someone who figured out how to connect a printer wirelessly (http://ubuntuforums.org/showthread.php?t=1518425). Using their example as a guide.....

Downloaded the 32bit Linux driver for the MX860 and extracted it. (cnijfilter-mx860series-3.10-1-i386.deb)
Opened a terminal window and typed the following:

cd Desktop/cnijfilter-mx860series-3.10-1-i386-deb/packages
sudo dpkg -i --force-all *.deb
entered password

Opened printing manager
Deleted previous attempt at installing the printer
Clicked ADD and behold the printer showed up in the network list with the URI detais and all! (Canon-MP970-cnijnet:/00-00-85-E7-54-36)
Followed the prompts and test page printed OK!!!!!!

Hope this helps all who are using 64bit systems and are having trouble finding 64bit drivers.


mkdir command not working inside shell script

By removing sudo while calling the script helped me resolving the issue. It is working without sudo


I've found that my Serial-to-USB converter (ch341-uart) doesn't works with USB 3.0 ports. Unfortunately, my HP Envy doesn't have a USB 2.0 hub, all ports are reported as USB 3.0 ports to OS. Seems like this device isn't supported under USB 3.0. However, I've got a USB 2.0 hub. If I connect this hub to any port, and then connect the Serial converter to this hub, it works OK, even using xhci_hcd:

Sep 13 10:36:36 envy4 kernel: [ 1852.477261] usb 3-3: new high-speed USB device number 53 using xhci_hcd
Sep 13 10:36:36 envy4 kernel: [ 1852.493499] usb 3-3: New USB device found, idVendor=1a40, idProduct=0101
Sep 13 10:36:36 envy4 kernel: [ 1852.493504] usb 3-3: New USB device strings: Mfr=0, Product=1, SerialNumber=0
Sep 13 10:36:36 envy4 kernel: [ 1852.493508] usb 3-3: Product: USB 2.0 Hub
Sep 13 10:36:36 envy4 kernel: [ 1852.493811] hub 3-3:1.0: USB hub found
Sep 13 10:36:36 envy4 kernel: [ 1852.493842] hub 3-3:1.0: 4 ports detected

Sep 13 10:36:37 envy4 kernel: [ 1852.781193] usb 3-3.1: new full-speed USB device number 54 using xhci_hcd
Sep 13 10:36:37 envy4 kernel: [ 1852.798586] usb 3-3.1: New USB device found, idVendor=4348, idProduct=5523
Sep 13 10:36:37 envy4 kernel: [ 1852.798592] usb 3-3.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
Sep 13 10:36:37 envy4 kernel: [ 1852.799069] ch341 3-3.1:1.0: ch341-uart converter detected
Sep 13 10:36:37 envy4 kernel: [ 1852.800220] usb 3-3.1: ch341-uart converter now attached to ttyUSB0


How to customize vim editor using someone else's customization?

open vim editor by typing vim in the terminal
Once in vim, type :so <name of file with customization> In my case, the file was named vimrc so, my input was
:so vimrc
and you get all the customization in the vim file you are in.

Note: Got this info from this video


Use deb http://inverse.ca/downloads/PacketFence/ubuntu precise precise in your packetfence.list.
That will install the right dependencies anyway.

If you need more help, use the PacketFence community mailing list.
https://lists.sourceforge.net/lists/listinfo/packetfence-users

We will be happy to help you.

Regards,
Loick
Network-Security Architect at Inverse
for PacketFence NAC.


I had the same issues. Ultimately, I created it on a Windows machine and was done much faster than trying to figure out what I had done wrong.


How can I select an open window in GNOME Shell's Activities view using the keyboard?

First install the Window Navigator Extension.

If you press ALT you will see a number for each open window. Use the number to select the window you want.


Failed container creation: LXD doesn't have a uid/gid allocation

With the help of dnegreira on freenode #lxcontainers, it was all a question of editing /etc/subuid and /etc/subgid and adding

root:1000000:65536

to those files.


What framework should I use in my manifest file

You can see the up-to-date list of supported frameworks here: https://docs.google.com/a/canonical.com/spreadsheets/d/1t_JGpg4r8BLluzfzmqa-gAbcKUjKUOufSCTSdPpFc5g/edit


How To Install Canon LBP2900B printer in 14.04 LTS ? I tried the method for LBP2900 but it didnt work

I've got the LBP2900 working in Ubuntu 14.04.

Download Linux capt driver version 2.60
Extract it into download folder and opened the folder for 32 bit, as my installation is 32 bit:

downloads → linux capt... → 32 bit driver → debian
After that double click on the files, the Ubuntu software center opens and asks to install it. Install both the files one by one, second one first.
Install the following additional packages from the Ubuntu software center: portreserve, gsfonts, gsfonts-other, gsfonts-X11.
Restart the printer

service cups restart

Add your printer and start the printer daemon:

sudo /usr/sbin/lpadmin -p LBP2900 -m CNCUPSLBP2900CAPTK.ppd -v ccp://localhost:59787 -E
sudo /usr/sbin/ccpdadmin -p LBP2900 -o /dev/usb/lp0
sudo service ccpd start
sudo service ccpd status

Check the function of the printer:

captstatusui -P LBP2900

this will popup a new window. If the message is "Ready to print", you are done. If the message is error of no printer connected etc., restart the operating system and repeat the steps five to seven, and it will start.

Sometimes it may stop working after restart, then run

sudo service ccpd restart

and try again.

It was a joyful experience for me to get my lbp2900b working in Ubuntu 14.04, otherwise i will have to make double boot to Windows for just printing.


Ubuntu 17.10 (Arty) can't open terminal and sidebar

You can open the terminal by pressing CTRL+ALT+T then the system settings by entering gnome-control-center.

You can then go in the dock option to display the dock at all time.

Hope it helps


Once a file is overwritten, it is lost.
What you can do is to adapt the logrotation settings to hold more occurence of the logs you are interested to.

For log files generated by the syslogd process (I'm not speaking here of rsyslog or syslog-ng that I'm not using), the logrotation is done by a specific script installed together with the sysklogd package); By default the script is /etc/cron.daily/sysklogd. It use the command savelog to rotate all the logs created by syslog.

If you need to keep more archived logs, update the line looking like :

savelog -g adm -m 640 -u ${USER} -c 7 $LOG >/dev/null

The number after the -c is the number of cycle, so the number of log archived in this case will be 7. (one per day as the script is run daily).


Can I use (only) the Super key as a shortcut?

Yes, you can. You can fill with Super_L to the shortcut you want, for example to use win key only for launching gnome menu :

open terminal, type :

  gconftool-2 –set
  /apps/metacity/global_keybindings/panel_main_menu
  –type string “Super_L”

The gnome menu will lauch with windows key only.


How do you fix "failed command: IDENTIFY DEVICE" showing up in dmesg?

Disabling s.m.a.r.t. helps, but it still occurs when the device isn't cleanly closed during shutdown.
Tested with kernel 2.6.37-rc8-git1 ..

Scenarios that trigger this event are:

fsck (not cleanly unmounted)
flush cash ext (during shutdown)
identify device(triggered by smart
or fsck during startup)


Skype is a 32-bit package. When trying to install it via the console, there are confusing messages about needed dependencies which are seemingly already met on a 64-bit system. The problem is that the 32-bit libraries need to be installed for Skype to work.

First, remove the broken Skype package:

sudo apt-get purge skype

Then, install the necessary 32-bit libraries

sudo apt-get install libqt4-dbus:i386 libqt4-network:i386 libqt4-gui:i386 libqtwebkit4:i386 libxss1:i386 libxv:i386

Finally, install Skype:

sudo dpkg -i /path/to/skype-ubuntu-precise_4.3.0.37-1_i386.deb

Alternate (much easier) method

Simply add the Partner repositories.

Open the Software Center
Edit -> Software Sources
"Other Software" tab
Check the box that says "Canonical Partners" in bold
Upon closing, the software sources will be refreshed
Then, search for Skype and install!


Is there a way to restrict user logins to be allowed from one server only?

It looks like the solution to this issue may be related to making changes to the sshd_config file.

There is a section in there for "Match" options that I was not aware of. We can force SSH to only accept traffic if the connection is from a specific IP address (or possibly a hostname), or if the username is in a list of authorized (matching) names. You can even make a combo of it... UserA can only connect if coming from 192.168.77.251, for example.

More information was found here:
Restrict Certain users or groups in SSH


How do I hide the GRUB menu showing up at the beginning of boot?

You can just change grub settings.
type in terminal
sudo -H gedit /etc/default/grub

Change GRUB_HIDDEN_TIMEOUT_QUIET=false to
GRUB_HIDDEN_TIMEOUT_QUIET=true

Save the file and exit
Type sudo update-grub
If you don't get the result you want, see this bug.


read reads a whole line from standard input, splits the line into fields and assigns this fields to the given variables. If there are more pieces than variables, the remaining pieces are assigned to the last variable.

In your case $a is assigned 1, $b is assigned 2 and $c the remaining 3 4 5 6.


xmodmap alternative for the text console (TTY)?

I haven't had to deal with a situation like yours nor am I sure about the 'Wake' button, but you may want to look into:

/etc/inputrc or .inputrc
loadkeys/dumpkeys


How can I get my All.in.one Canon MG2520 scanner to work?

Try installing the SANE scanner frontend: sudo apt-get install xsane. Some Canon scanners are supported.

Alternatively, you could use Canon's own suite called ScanGearMP, which you can find here. The U.S. support site of Canon doesn't offer this package, but I found it on the Swiss site.
Download and install the deb file. It doesn't come with an application launcher, so you could create one yourself. Mine looks like this:

[Desktop Entry]
Name=Canon ScanGearMP
Exec=/usr/bin/scangearmp
Icon=scanner
Terminal=false
Type=Application
StartupNotify=true
Categories=Graphics

Save it as scangearmp.desktop in /usr/share/applications/, if you want to enable all users of your computer to use it. If you don't have root access or are the only user, you can use ~/.local/share/applications/ instead.