Why image files don't appear in loginscreen but appear in the Unlockscreen?

Workaround by trail n error

OS: Ubuntu 18.04

In default Ubuntu 18.04 Installation, If you observe the file /usr/share/gnome-shell/theme/ubuntu.css which is configured for GDM and lockscreen...

some part of the file ubuntu.css is

/* switch colors */
.toggle-switch-us:checked {
  background-image: url("ubuntu-toggle-on-us.svg");
}
.toggle-switch-intl:checked {
  background-image: url("ubuntu-toggle-on-intl.svg");
}

the url part indicates.. the .svg file paths are relative to /usr/share/gnome-shell/theme/

so, when you have /usr/share/gnome-shell/theme/mytheme/mytheme.css and the image path is url("assets/1.jpg") simple copy the folder assets into /usr/share/gnome-shell/theme/

This means, lockscreen will consider url("assets/1.jpg") as /usr/share/gnome-shell/theme/mytheme/assets/1.jpg

and the GDM will consider url("assets/1.jpg") as /usr/share/gnome-shell/theme/assets/1.jpg

pratap@i7-4770:~$ sudo update-alternatives --config gdm3.css
[sudo] password for pratap:
There are 2 choices for the alternative gdm3.css (providing /usr/share/gnome-shell/theme/gdm3.css).

  Selection    Path                                              Priority   Status
------------------------------------------------------------
* 0            /usr/share/gnome-shell/theme/MyTheme/MyTheme.css   100       auto mode
  1            /usr/share/gnome-shell/theme/MyTheme/MyTheme.css   100       manual mode
  2            /usr/share/gnome-shell/theme/ubuntu.css            10        manual mode

Press <enter> to keep the current choice[*], or type selection number:
pratap@i7-4770:~$

GDM Screen

Lock Screen

Alternatively instead of copy pasting the assets folder you can make a symbolic link of /usr/share/gnome-shell/theme/mytheme/assets like below command.

sudo ln -s /usr/share/gnome-shell/theme/mytheme/assets /usr/share/gnome-shell/theme/

Alternatively, the best way would be first creating a symbolic link to mytheme directory like below command

sudo ln -s /usr/share/gnome-shell/theme/mytheme /usr/share/gnome-shell/

and then installing the update-alternatives like below command

sudo update-alternatives --install /usr/share/gnome-shell/theme/gdm3.css gdm3.css /usr/share/gnome-shell/mytheme/mytheme.css 100

Example:

pratap@i7-4770:~$ sudo update-alternatives --config gdm3.css
[sudo] password for pratap:
There are 3 choices for the alternative gdm3.css (providing /usr/share/gnome-shell/theme/gdm3.css).

  Selection    Path                                              Priority   Status
------------------------------------------------------------
* 0            /usr/share/gnome-shell/MyTheme/MyTheme.css         100       auto mode
  1            /usr/share/gnome-shell/MyTheme/MyTheme.css         100       manual mode
  2            /usr/share/gnome-shell/theme/MyTheme/MyTheme.css   100       manual mode
  3            /usr/share/gnome-shell/theme/ubuntu.css            10        manual mode

Press <enter> to keep the current choice[*], or type selection number:


As mentioned above, Qt3 is still supported in 12.04 LTS. However both Qt4 and Qt3 are capable of coexisting together on the same machine, therefore I suggest reloading the Qt3 libraries from the archive instead of trying to convert pdfedit to use qt4 libraries.

I've tested the following commands on 12.10, and they work as of this post. If not, you might need to check the archive as see if the version name/link has changed...

On 32 bit systems use this:

Install Qt3 library (libqt3-mt) from 12.04 LTS:

FILE=`mktemp`; wget http://us.archive.ubuntu.com/ubuntu/pool/main/q/qt-x11-free/libqt3-mt_3.3.8-b-8ubuntu3_i386.deb -qO $FILE && sudo dpkg -i $FILE; rm $FILE

Install pdfedit:

FILE=`mktemp`; wget http://us.archive.ubuntu.com/ubuntu/pool/universe/p/pdfedit/pdfedit_0.4.5-2_i386.deb -qO $FILE && sudo dpkg -i $FILE; rm $FILE

For 64 bit versions use the following commands:

Install Qt3 library (libqt3-mt) from 12.04 LTS:

FILE=`mktemp`; wget http://us.archive.ubuntu.com/ubuntu/pool/main/q/qt-x11-free/libqt3-mt_3.3.8-b-8ubuntu3_amd64.deb -qO $FILE && sudo dpkg -i $FILE; rm $FILE

Install pdfedit:

FILE=`mktemp`; wget http://us.archive.ubuntu.com/ubuntu/pool/universe/p/pdfedit/pdfedit_0.4.5-2_amd64.deb -qO $FILE && sudo dpkg -i $FILE; rm $FILE


Can I use Keyboard Shortcuts to implement text macros?

I know of 2 others:
xmacro! Package Can not find a screenshot of this one :+)
xnee Package

But as with autokey... both have their quirks too.

edit: On rereading your q: these to are to create macros but autokey seems to use python scripts. So my answer might not be correct.


Install php imap on ubuntu 16.04 with php5.6

This post seems to have the answer:
E: Unable to locate package php5-imap

Looks like you need to follow the naming convention with 5.6 in it:

sudo apt-get install -y php5.6-imap

Then don't forget to restart apache:

sudo systemctl restart apache2

Hope that helps.


apt does not want to clear updated packages

It's possible that you have this packages from different maintainers. Try to do apt list -a -- thunderbird and you will see all available versions of this package. Then you maybe will have to get rid of some repositories which contain this package.

Or you could just try upgrade your OS: sudo apt-get dist-upgrade or sudo apt full-upgrade.


Welcome to AskUbuntu
Short answer:  You can't.  Install the flatpack or deb version to do your final export, or do the same in a VM.
tl;dr
Snaps are interesting to developers as a method of creating an application that can run across a wide variety of platforms, which is great (for them) but new-ish to old fossils like me - so tricks and tips about using snaps are few...
Snaps run in a sandboxed environment, and are not given permissions to access much on your computer by default.  Instead the developers must build into the snap packaging the request or capability for a given snap to interact with other snaps, or the computer system.  Unless they incorporate the requested capability within the body of the snap.
In the case of ImageMagick, the developers of that application have not ported their code to snaps (yet?)
Our interaction with snaps is based on the interface that is exposed to us.  In the case of inkscape, they have not made available a plug (snap parlance) to connect to an ImageMagick slot, as can be seen in the list of connections available for inkscape:

So unless they included ImageMagick in the snap, you are out of luck AFAIK.
I would suggest sending a note to the nice people at Inkscape asking them to include the ImageMagick libraries in their snap.


Linux uses RAM a little differently to some other operating systems by keeping as much in RAM as it can at all times, my 4GB server often reports 3.5GB of RAM used, but no SWAP in use and runs fast. What I would watch for is when the system starts to use swap, this is normally mounted to your physical disk so is much slower than RAM.


13.10's Text Entry Settings are missing some input methods in GNOME Flashback

The basic issue comes from the different ways that Unity and Gnome Flashback integrate input methods with Unity using Text Entry settings and ignoring ibus-setup, while Gnome Flashback still uses ibus-setup.

First let me say that I'm using 14.04. In Unity, I can add pinyin through Text Entry. When I login with Gnome Flashback, pinyin is indeed not available from Text Entry as you say. But input method switching from the menubar indicator still shows pinyin and pinyin entry works fine.

If this is not the case for you in 13.10, you can add pinyin entry from Gnome Flashback, but it works a little differently.

Don't use Text Entry. Rather, use ibus-setup in a terminal (the gui looks a little different that it used to, by the way).

Go to the Input Method tab, click Select an Input Method, and scroll down to Show All Input Methods. You may need to click Select an Input Method again, but this time when you scroll down, you will see Chinese. When you highlight Chinese, pinyin and other input methods (depending on what you have installed) will popup on the right; but pinyin should be there by default. Choose the one you want.

In 13.10, integration of input switching into Text Entry and the use of the new version of ibus-setup was still something of a work in progress; so it's possible that you are experiencing a bug. But either following the above method with ibus-setup in Gnome Flashback or upgrading to 14.04 should provide a workaround for you.


Press Alt + F2 and paste gnome-mouse-properties.

Then go to touchpad and select "Edge scrolling".


Getting nano nanorc settings to work with "sudo nano" command

When using an interactive shell, and then using sudo to execute a command, such as nano, the current user's settings in application specific configuration files are not sourced. So, in this case, ~/.nanorc is not sourced, and the settings are not read.

The same condition occurs when the user uses su to switch to another user, including root. In both cases the new, or effective, user's settings are loaded instead. So using sudo nano, or using su to become root and then executing nano, will source the /root/.nanorc for user settings. The settings in the global configuration file, such as /etc/nanorc, affect all users on the system and should only be used to set global settings, which the user's file may override anyway.

To cause the effect you are looking for you need to apply the specialized setting to /root/.nanorc. Then when you sudo nano the settings for root will be applied rather than the settings found in ~/.nanorc.


If you are stuck after downgrading, it probably still reads from protonvpn config file.
I had to change the api_domain in ~/.pvpn-cli/pvpn-cli.cfg to api_domain = https://api.protonmail.ch and now it's working.


Is CPU instruction set version accounted for when I install pre-compiled distro?

The difference is instruction sets these two CPUs implement.

No, the difference is in the extensions to the instruction set that they implement. Both implement the x86-64/amd64 IS, and the former has the AVX v2.0 extensions, whereas the latter has just AVX.

  Will Ubuntu server installer detect this difference and choose correct target arch?

It can detect the version. However, irrespective of the version, the architecture is still amd64. And it's up to you to download the amd64 images. As far as I can tell, there are no multiarch images. In practice, most pre-compiled distros don't bother about the version differences between CPUs - they all target the amd64 IS.

  [Do] I need [to] compile the kernel myself?

You can, if you need to, but I don't see the point of it unless you're looking to extract every last bit of performance from the CPU or something. Then it's up to you to ensure your kernel stays updated.


Sound is broken in 1.3.25. Downgrade to 1.3.24 to fix that.

Thanks to @Kevin for the solution.


Thanks to Marco, I have figured out a way using wmctrl.

Because compiz workspaces are actually viewport of a single desktop, so the solution is to move the current viewport to cover the center region of the desktop.

First, call wmctrl -d to get the information of current desktop:

read desktop_id _ast \
    DG_ geometry \
    VP_ viewport \
    WA_ wa_off wa_size \
    title \
    < <(LANG=C wmctrl -d | grep '*')

geom_w=${geometry%x*}
geom_h=${geometry#*x}

# The workarea size isn't accurate, because the top/bottom panel is excluded.
viewport_w=${wa_size%x*}
viewport_h=${wa_size#*x}

rows=$((geom_w / viewport_w))
cols=$((geom_h / viewport_h))

# Fix the viewport size
viewport_w=$((geom_w / rows))
viewport_h=$((geom_h / cols))

Then, calculate the origin of the center viewport:

center_row=$((rows / 2))
center_col=$((cols / 2))

center_x=$((center_col * viewport_w))
center_y=$((center_row * viewport_h))

center_viewport=$center_x,$center_y

And move the viewport there:

wmctrl -o $center_viewport


Is it possible to check how much power is used by each USB port/device?

The same information that you can get in Windows Device Manger you can get by

usb-devices

It will show maximum power allocated to devices, but won't show real power consumption.

If you want to see the real figures, install and use powertop on Ubuntu.


How to resolve "unknown op" error with Powertop on Ubuntu 16.04?

This is a known bug which has no effect on the program.

PowerTop 2.7 details

  Known Bugs
  (we plan to fix these bugs in future releases):

  Problem with traceevent lib it prints string: unknown op '{'.  This bug doesn’t impact the correct functionality of PowerTOP.
  PowerTOP shows all CPUs Idle 99% and 600 MHz is always around 1% even when executing a workload.  This happens when setting the Frequency stats to powersave governor.
  PowerTOP Summary CPU usage over 100%


Broadcom BCM43142 WiFi drivers with AP mode to create hotspot for android devices

There are no linux drivers for this adapter that support AP mode.


Displays don't sleep when the computer is idle under gnome3

Seems I was misinformed, and thought Ubuntu was running on Gnome3 by default now, however, this is incorrect. Ubuntu seems to run lightdm, which the screensaver and screen sleep do not work through it. I was able to solve the issue by running:
sudo dpkg-reconfigure gdm3

and selecting the gdm3 option from the list. A couple warnings/errors wrote to the console but after rebooting I logged in and was able to test and confirm that my displays slept according to the settings in Settings > Privacy > Screen Lock.


well, I just did something similar but not identical, so I will write a checklist of things  for you to verify. I followed the instructions at ubuntu help page

I had the following setting in the acl block (different IP).

acl home src 50.50.50.50

Additionally, according to step 3, I also added the following in

http_access allow home

Considering that you entered 127.0.0.1, there are a few things to verify. Here 127.0.0.1 means, squid only allows from the EC2 server itself, so you most likely have to use lync or other such tool to send requests from ec2. I guess you are testing from your home computer and it is not 127.0.0.1. You should find out your public IP address and enter it in your config.

Additionally, you specified /32 in your IP. Verify, that it is needed. For public IP addresses it is not. It would be required in a network setup, but probably not needed in your scenario.

I was able to get it working, hopefully you will too.


Ubuntu GNOME - Tried KDE. Deleted it and now autoremove shows alot of used files

If you update kernel Ubuntu will suggest to remove older package by apt autoremove, that's why total freed space is bigger than KDE's size, you can remove all of those and safely call sudo apt autoremove.


I am considering changing to Ubuntu from Windows 8.

Yes. Google offers Chrome as a .deb package for Ubuntu and other Debian-based distros. And then there's Chromium by the community. Yahoo mail doesn't depend on the OS.


If your local folder is not synchronized when you delete some files, and after you activate the synchronization again, the cloud can't guess if these files are actually to be deleted or not, and they are downloaded again to your local folder.
If you want to delete these files, you need firstg to activate the synchronization of the folder. So, when you delete a file, it will be deleted also from the cloud.

Anyway you can also delete these files with the web interface. You click on the right of the file name where "more" is displayed, and a menu of options will open. One of these options is "Delete file".


Low FPS after using `nomodeset` option to install xubuntu 16.04

Thanks for @MichaelBay's suggestions, it helped me a lot.
Finally, I found it is indeed caused by the nomodeset option in /etc/defaults/grub. Which I have to add it to grub command when I install the system, otherwise all I get is a black screen. It seems that this option suppresses the performance of my integrated card, so it displayed low FPS and flickered.

I removed the nomodeset option according to @MichaelBay's comment. At first, I can't enter the system without this option when I just installed the system. But after I updated some drivers and softwares with sudo apt update and sudo apt upgrade, I could enter the system on logged in without nomodeset option in /etc/defaults/grub.

However, it's not a perfect solution for my computer. Every time when I start the system, I get a fancy strange display as you can see from the picture. If I press Ctrl + Alt + F1 to switch to command line interface, then press Ctrl + Alt + F7 to switch back to Xfce desktop, the display becomes normal, but there is still a little latency.


You will have to install version 4.8.2 of libqtcore. You can get this from the Kubuntu Backports PPA.

Add the PPA

sudo add-apt-repository ppa:kubuntu-ppa/backports

Update the package list

sudo apt-get update

Install the new version of libqtcore

sudo apt-get install libqtcore


Copying Linux partition from an HDD to a SSD

When changing hardware, it's a good idea to worry about how the OS will react. For most things, you can just change the piece of hardware in the innards of your computer, then let Linux do it's magic.

Hard drives are a little different. You may copy all files, but still need to have boot instructions (grub) installed on your new drive. You also need to make sure that the identifier of your new drive matches the old one (or some drivers will be lost at sea).

Once the UUID is changed, you boot through a live-cd, copy all your precious files on your SSD, and chroot on you new drive to create the bootloader (grub).

I was going to go in details on how to do such things, but while doing a little research on the topic, I found this: http://blog.oaktreepeak.com/2012/03/move_your_linux_installation_t.html

That being said, is it a good idea? Ideally, you should reinstall from scratch. It would give the opportunity to clean all the broken files that on your drive. If you really don't want to lose your settings for all different applications, make sure you copy all hidden files in your home folder, and transfer them to your new install. If you migrate from one distro to another with the same packages, it will be no issue.

However, if time is a constraint, copying from one hard drive to another is fine, as long as you set all references from your old hard drive "pointed at" the new one. As with anything, it does have a chance to fail, but if you make backups, there is no problem with copying a drive onto another.


From the GNU sed manual:

  An address range matches lines starting from where the first address
  matches, and continues until the second address matches (inclusively).

It's the first address that really matters. The second address need not match, in which case the range will cover till the end of file.

If we invert your command (printing only matching lines instead of deleting them), you can see that's what happens:

$ sed -n '/^[a-z]/,/[a-z]$/p' bar
abc
123
abcd
abcde
12345


How can I enable colour on my custom GNOME icons?

Install "User Themes" gnome-shell extension from Ubuntu Software. (this is required to select the edited shell theme file)

Create a .themes folder in home directory, if you have previously created it, then ignore this step.
Copy the required files from the default shell theme direcotry /usr/share/gnome-shell/theme/ubuntu.css with the below command in terminal

Command:

mkdir ~/.themes/myshell && mkdir ~/.themes/myshell/gnome-shell && cp -r /usr/share/gnome-shell/theme/* ~/.themes/myshell/gnome-shell/

Delete the file gnome-shell.css and rename the file ubuntu.css as gnome-shell.css

Close all, Open gnome-tweaks and choose MyShell from the drop down under User Themes

Open the file gnome-shell.css from the ~/.themes/myshell/gnome-shell/ directory and go to line number around 1301 and find below content.

Content:

.search-provider-icon,
.list-search-result, .app-well-app .overview-icon,
.app-well-app.app-folder .overview-icon,
.show-apps .overview-icon,
.grid-search-result .overview-icon {
  color: #eeeeec;
  border-radius: 4px;
  padding: 6px;
  border: 1px solid transparent;
  transition-duration: 100ms;
  text-align: center; }

Edit the Content like below, save & close:

.search-provider-icon,
.list-search-result, .app-well-app .overview-icon,
.app-well-app.app-folder .overview-icon,
.show-apps .overview-icon,
.grid-search-result .overview-icon {
 color: #eeeeec;
 border-radius: 4px;
 padding: 6px;
 border: 1px solid transparent;
 transition-duration: 100ms;
 text-align: center; }

.show-apps .show-apps-icon { border: none; background-image: url(005-book.svg); background-size: contain; color: transparent; transition-duration: 0s; -st-background-image-shadow: 0 1px 2px rgba(0, 0, 0, 0.22); }

.show-apps:hover .show-apps-icon, .show-apps:active .show-apps-icon, .show-apps:checked .show-apps-icon, .show-apps:focus .show-apps-icon { color: transparent; background-image: url(005-book.svg); -st-background-image-shadow: 0 3px 4px rgba(0, 0, 0, 0.28); transition-duration: 0.15s; }

Take a backup of the file view-app-grid-symbolic.svg and delete it.
Copy the file 005-book.svg to ~/.themes/myshell/gnome-shell

Restart the shell with Alt+F2, type r and press Enter.


First, please don't use mediafire to post simple text output. It's an obnoxious service and I couldn't figure out how to get to the GParted details file you posted there through all the ads it plastered on my screen. Something like the Ubuntu pastebin works better and is free.

As to your problem, the usual cause is that GParted is trying to round a partition start or end point to the nearest 1MiB boundary (or possibly to some other value, depending on the alignment settings you've chosen), but your disk was originally partitioned with some other alignment scheme. This can cause GParted to mistakenly adjust the partition start or end point so that it overlaps with another partition, which of course is not legal.

The best solution is to adjust the start and/or end point of the partition so that there's a gap between it and the surrounding partitions. A 1MiB gap should be sufficient, but if that doesn't work, try 2MiB or even more.


Ubuntu 14.04 mounts a 3G modem as USB storage!

What you have is called a "multi-mode USB device": It's a modem and also a USB stick: and it usually has Windows and Mac drivers on-board! When plugged in on Windows or the Mac, it acts like a flash storage and starts installing the drivers from there. After installation (and on every consecutive plugging) the driver switches the mode internally...

However, when you're Using Linux, this is just a minor nuisance as you can install  USB_ModeSwitch which will allow you to use some Alcatel products as a modem.  So just remove the modem from your PC and type:

apt-get install usb-modeswitch

In 90% of cases you then just have to insert the modem and it'll work like a modem!

If you're in the 10% where the Ubuntu repository doesn't work, download the latest usb-modeswitch-data package (dated 2015-01-15 at the time of this writing) and extract it (as root) over the existing data package. (use locate usb_modeswitch.d to find the correct directory)

If that doesn't help you either, download the latest binary package from Debian and install it over the existing package.  (it will now be quite impossible to automatically uninstall and you will have to use the same manual method to upgrade USB_ModeSwitch from this point forward until you reinstall your OS)

To convert Debian code names to Ubuntu code names, use the following table:

15.04        jessie / sid
14.10        jessie / sid
14.04        jessie / sid
13.10        Wheezy / sid
13.04        Wheezy / sid
12.10        Wheezy / sid
12.04        Wheezy / sid

If all that still doesn't work, follow the trouble-shooting guide and if that doesn't work, contribute...


This happens from time to time if the system detects devices like a touchscreen input but doesnt overlay ot to the given display but interprets it as an extra Display.

If this is your problem - you should see a second Display in thr screen settings that could be turned off or be setup as a mirror to get rid of the "wide screen"


Gparted is installed by default in Ubuntu's LiveCD version. You should resize partitions from Live CD session.
This link might help you: How to Partition


Hard resets also commonly leave the ~/.Xauthority file behind, which will prevent the graphical desktop from starting.

It's safe to delete and will be automatically recreated when you restart.

From a tty: rm .Xauthority


Error installing Ubuntu 16.04 LTS on VMWare Workstation

Updating VMWare to the latest version has solved the problem.


Unity environment way too slow in Ubuntu 13.10

Had this problem too. Re-installed 13.10, same result. Then I remembered to install Ubuntu Restricted Extras which solved the very slow desktop.Run the below command on terminal to install ubuntu-restricted-extras,

sudo apt-get install ubuntu-restricted-extras


There is a SUSE linux KB on the topic - https://www.suse.com/support/kb/doc/?id=000016951. The problem is that VMWare by default doesn't provide information needed by udev to generate /dev/disk/by-id entries. Apart from ESX, VMWare Workstation (my case) is also affected. The resolution is to put
disk.EnableUUID = "TRUE"

to the virtual machine definition, i.e. into the *.vmx file or via Edit Settings -> Options tab -> General -> Configuration Parameters in ESX UI.
After rebooting VM with this parameter set, the disk are visible in /dev/disk/by-id and multipathd doesn't complain anymore.


Some syntax errors

The base for the 'if' constructions in bash is this:

if [ expression ];
then
    # code if 'expression' is true.
fi

here is the corrected version

if [ "$(ipcs|grep test|wc -l)" -eq 630 ]; then
    echo "Shared Memory check passed"
fi

or with [[…]] to prevents word splitting of variable values without douple quotes

if [[ $(ipcs|grep test|wc -l) -eq 630 ]]; then
    echo "Shared Memory check passed"
fi

or better

if [[ $(ipcs|grep -c test) -eq 630 ]]; then
    echo "Shared Memory check passed"
fi


PC turned off durring upgrade to 15.10. Now only have terminal page. What can I do

not sure what you mean by just a terminal .. if its the full terminal you can try "startx" to try to start xwindows. This is all I can think of with the information given. I may be wrong ... that might not be the command ... its been a while since I have had to start it manually. You could also try Ctrl+Alt+F7 to see if you may be in TTY1 instead of TTY7 which is usually the GUI


There's a service name field in the settings on the main page for DSL connections. You should file in the service name there, as well as the usual username and password information.

If you find you're having issues with the service name entered, try to set the connection without a service name. This seems to work better in some cases.


Ubuntu 20.04 won't load, boot into initramfs

Fixed: while updating the software and bios a error acurred and it changed my boot into rsd something and changing it to htki something in bios it fixed it for me


Can't hear sound from my speakers - any ideas?

I had problems with my audio recently on an HP laptop.
After reading a few articles, I installed pulseaudio and kmix, updated everything, rebooted and then everything was fine.
I am pretty new to this so this may be a long way round but it worked for me.

sudo apt-get install pulseaudio
sudo apt-get install kmix
sudo apt-get update

Reboot and everything worked for me.
Hopefully this may have helped.


Found the solution to this. MAAS had picked up the wrong IP as default at configuration time. To change it, do

  sudo dpkg-reconfigure maas-region-controller


How can I edit the CNAME and TXT records on Ubuntu?

It's not in Ubuntu or in any OS on a web server. It's in your nameserver.

https://webmasters.stackexchange.com/questions/6882/what-are-cname-and-a-dns-records shows the CNAME record lives in your nameserver. and https://webmasters.stackexchange.com/questions/35662/where-do-i-set-my-spf-record-for-domain-managed-by-yahoo states the TX record is also there.


In a dual-boot configuration with Windows, some users find that their Ubuntu file system continually has errors.

In Windows, if you installed a driver that allows you to read/write to Ubuntu Ext2/3/4 partitions, you should uninstall it asap, because it's what's corrupting the Ubuntu file system.


Please excuse us as this is our first post (my wife and I).

We have two of these devices and can get them working with USB, sound and internet but not VGA. We are both running Ubuntu 14.04.

I have Googled loads and found a suggestion to edit the xorg.conf file but I didn't have any joy with that. I made the changes but the video still doesn't work on the device. The link I found that I tried is here http://ubuntuforums.org/showthread.php?t=1398488.

The first page of answers on Google are either links to this question or relate to the usb2vga box which is a different item. It sees that these are not very popular.

Any pointers about where to look would be helpful as I am not expecting an answer on a plate but just some idea of where to go.

Many thanks
Mike (and Sue)


I used this modified version of your code (small changes to tabs) to test what was missing:

import QtQuick 2.0
import Ubuntu.Components 0.1
import QtAudioEngine 1.0
import "ui"

MainView {
    // objectName for functional testing purposes (autopilot-qt5)
    objectName: "mainView"

    // Note! applicationName needs to match the "name" field of the click manifest
    applicationName: "com.ubuntu.developer.AudioEngineTest"

    /*
     This property enables the application to change orientation
     when the device is rotated. The default is false.
    */
    //automaticOrientation: true

    width: units.gu(100)
    height: units.gu(75)

    AudioEngine {

    }

    Tabs {
        id: tabs

        Tab {
            title: "helloTab"
        }

        Tab {
            title: "worldTab"
        }
    }
}

You basically need to install the following package for a Desktop target:

sudo apt-get install qtdeclarative5-qtaudioengine-plugin

For Ubuntu Touch:

sudo apt-get install qtdeclarative5-qtaudioengine-touch-plugin

Finally you can test it with qmlscene:

$ qmlscene ./audio.qml
Module 'QtAudioEngine' does not contain a module identifier directive - it cannot be protected from external registrations.
unity::action::ActionManager::ActionManager(QObject*):
    Could not determine application identifier. HUD will not work properly.
    Provide your application identifier in $APP_ID environment variable.
default openal device =  OpenAL Soft
device list:
     OpenAL Soft
AudioEngine begin initialization
creating default category
init samples 0
init sounds 0
AudioEngine ready.


MoinMoin on help.ubuntu.com broken? JS console shows 404 for common.js

The contact us page on ubuntu.com has this:

Web feedback
If you have suggestions or corrections for ubuntu.com or canonical.com, email us at webmaster@ubuntu.com or webmaster@canonical.com.

A mail to webmaster@ubuntu.com is most likely to be the quickest method to get this fixed.


Rekordbox is proprietary software and the way data is stored is not published as far as I know, so alternative software would have to reverse engineer it.
As you mentioned USB export does not seem to be supported in wine:

https://appdb.winehq.org/objectManager.php?sClass=version&iId=26945

A way forward could be to think about a way to workaround it.
So either do a HDD export and see if the data is transferable to USB.
The winehq link has someone asking for help, you can see how far you get.
Another way to walk would be to get wine usb support to the level that the program needs.

Maybe not a direct solution, but the answer to your question about which other tool can be used, I think is "none at the moment".


Not sure if this is relevant, but I believe ubuntu generally ignores xorg.conf. It does, however, create a virtual xorg.conf from various autodetected info and the xorg.conf pieces under /usr/share/X11/xorg.conf.d. You might try adding the stuff you want in there somehow.


Remote printer stopped working or unable to add. Error 0x00002fe3

Lucky for me today I decided to follow this guide and by activating Samba via CLI everything works smoothly.

  Ubuntu print server compatible with Windows (Samba)

  If your Ubuntu print server shall be able to work also with Windows
  clients, you must first make sure that the SAMBA package is installed
  (e.g. using Synaptic package manager). Then, do a little configuration
  change to SAMBA. In brief, you must uncomment the following lines in
  /etc/samba/smb.conf - open terminal and run:

  gksudo gedit /etc/samba/smb.conf

  In the [printers] section:

  browseable = yes
  guest ok = yes

  When done, restart Samba:

  sudo service smbd restart
  sudo service nmbd restart

  There is a dedicated page in the official documentation which gives
  more details.

  Also, one would want to allow the following ports through a firewall
  (ufw for example) via:

  sudo ufw allow 139/tcp
  sudo ufw allow 445/tcp
  sudo ufw allow 137/udp
  sudo ufw allow 138/udp


I have a similar 2600/cedarview netbook which is currently running mint 16 with the MATE desktop.  I've had xubuntu 12.04 and kubuntu 12.04 to 13.10 running on it but MATE has become my favorite GUI for a low powered machine.  It's faster than KDE (though you can set up KDE to run pretty well in 1Gb) and I just don't like XFCE.  And I won't run a non ubuntu desktop in ubuntu.  Mixing &  matching desktops is just silly.

First off, I have to point out that you should not be using a gnome 3 or unity based desktop on cedarview based hardware.  Sorry, but that's all there is to it.  You don't get decent 3D acceleration and I seriously doubt you ever will.  I don't know where you read that such drivers exist in repos but ... all I can say is that there's a lot of very good info on ubuntu on the web and a lot of very bad too.

For example, there is a right way and a wrong way to get this gpu working in 12.04 and there are many, many things that point you to the wrong way and far fewer that tell you the right way.

Which is ... install 12.04 and keep updating until there's nothing left.

There's a reason that cedarview-graphics-drivers don't appear in the repos anymore.  Those drivers were moved upstream into the linux kernel and they're not appropriate anymore.

Mint 16 is based upon ubuntu 13.10 and it's still using the gma500_gfx driver.  That's not going to change.

According to glxinfo | grep direct I have direct rendering, but according to glxgears I'm getting less than 150fps, which isn't good.

This doesn't actually bother me because it's a netbook.  I don't use it to play video, just for knocking around out of the home.  I can certainly understand how it'd be more of a problem for others.  But such a machine wouldn't play HD very well anyway even if the gma were well supported.  It's unfortunate that there are people who buy netbooks fully expecting to play 1080p video properly (not that you did) but they're out there.

Anyway, there is absolutely no point trying to downgrade your 12.04 version.


how do automatically distinguish between FAT-x types for a partclone backup?

You can ignore this question.  I looked a little further and found all those apparent variants of partclone link to the same executable.  So it does not matter which variant I'm working with because partclone will figure it out.


Will the Ubuntu Edge work in countries without LTE?

Yes.

From the Ubuntu Edge project page...

  The Ubuntu Edge is an open device, not locked to any particular network. It works in all countries that provide GSM/3G/LTE-based network services. It will also support the two LTE standards to provide 4G mobile broadband connectivity around the world


Try to install mysql using apt, but first of all, stop mariadb process:

sudo systemctl stop mariadb

Then continue installing mysql via apt

sudo apt update

sudo apt install mysql-server

and then you run this, and you follow the steps

sudo mysql_secure_installation

Then you should be able to log into mysql shell

mysql -uroot -p

EDIT:

You can delete mariadb completely too, and then run your command sudo dpkg -i mysql-{common,community-client,client,community-server,server}_*.deb.
Command for delete mariadb

apt remove --purge mariadb mariadb-*

ALERT: By running this, your databases may be deleted.


Only displaying background/cursor after login after Natty upgrade (using NVIDIA drivers)

This seems to be an open bug: bug description


No wireless with Intel Centrino Advanced-N 7260

Further research, primarily here, suggests that simply loading the firmware will be ineffective. http://forum.notebookreview.com/networking-wireless/716325-intel-7260-a-6.html

I suggest you download this to your desktop: http://www.kernel.org/pub/linux/kernel/projects/backports/stable/v3.11-rc3/backports-3.11-rc3-1.tar.bz2 Right-click it and select 'Extract Here.' Now open a terminal and do:

cd Desktop/backports-3.11-rc3-1/
make defconfig-iwlwifi
make
sudo make install

Now reboot and tell us if your wireless is working.

I tested in Ubuntu 13.04 and it compiles perfectly and correctly drives my Intel 6200, but I don't have a 7260 so I can't test further. Fingers crossed! You definitely need the firmware.


You're on Linux. AoE is not available on Linux natively. Use Wine if you wish to play it.

How to install and configure Wine?


Why do I get an error saying I must be privileged to use `crontab -u`?

You don't have the necessary permissions to read other users' crontabs, either run as root or use sudo to invoke crontab -u, e.g.

for user in $(cut -f1 -d: /etc/passwd); do sudo crontab -u $user -l; done

or

awk -F: '{print $1}' /etc/passwd | xargs -n1 sudo crontab -lu


How to create Eclipse 2019-20 launcher on Ubuntu 18.04 LTS

You seem to have an extra 2 in jee-2019-122 for both Exec and Icon file paths. Maybe it should be jee-2019-12, unless the extra 2 is intentional.

Otherwise your desktop entry file seems correct and similar to mine. I just solved this similar issue on Pop!_OS 19.10.

Place the eclipse.desktop file you created into ~/.local/share/applications. I also right clicked eclipse.desktop and went into Properties, then the Permissions tab, and checked the box for Allow executing file as program.

This old answer helped me How to pin Eclipse to the Unity launcher?


You install wrong Nvidia drivers.

nvidia-current installs legacy drivers that do not support your adapter.

Run this:

sudo apt-get purge nvidia*
sudo apt-get install nvidia-346 nvidia-prime

and reboot.


Integrated Projects of openstack on the last release of The Canonical Distribution of Ubuntu Openstack

Our experimental ppa contains support for 'contributed' plugins to the installer. So far we have Heat, Ceilometer, Mongo, and a few others. Once we release 1.0 the plugins will be available in our stable repo.

You can install the experimental packages to mess around with them:

https://launchpad.net/~cloud-installer/+archive/ubuntu/experimental

We'd love to have more external contributions related to OpenStack services. You can see a current list of charm 'plugins' that are available here:

https://github.com/Ubuntu-Solutions-Engineering/openstack-installer/tree/master/cloudinstall/charms

I should also note that this doesn't speak for Landscape OpenStack Autopilot just for the Single and Multi installation methods.


How can I change the default Alt+F2 search?

If you just press the Super key (Windows/Meta key) you'll get a similar one that does all that.
It also has options in the bottom to change the mode to search video (youtube included), apps (included ones not installed yet), and others.

See also:

What are Unity's keyboard and mouse shortcuts?


Is it still bad to use swap on a modern SSD?

I have the exact same SSD w/512 GB and Ubuntu 16.04 setup an GB SWAP partition on it. I see no problem because:

with 8 GB RAM the swap is never used so no worry of shortening 10 year life span.
I typically shelf laptops after two years and buy a new one.
If I do get into Virtual Machines (VM's) some day I'll upgrade to 16 or 32 GB RAM as soon as I see SWAP being used.
The only other option would be 1 TB HDD and I'd like to keep that as destructible storage space and not worry about it.
The only downside is expensive real estate parking SWAP on most expensive SSD but Ubuntu only uses 16 GB and Windows 10 is only using 110 GB of 385 GB allocated.
An advantage is if SWAP is ever used for massive memory leak then OOM-Killer (out of memory killer) will tell me 20 times faster I have a problem. This is because I believe our SSD's are about 20 times faster than the average hard drive.

Monitoring Samsung Pro 960 M.2 NVMe Gen 3.0 x 4 SSD
First step is to install nvme-cli because it provides the most information:
sudo apt install nvme-cli

Next gather information available from SSD:
$ sudo nvme smart-log /dev/nvme0
Smart Log for NVME device:nvme0 namespace-id:ffffffff
critical_warning                    : 0
temperature                         : 36 C
available_spare                     : 100%
available_spare_threshold           : 10%
percentage_used                     : 0%
data_units_read                     : 8,743,226
data_units_written                  : 4,763,574
host_read_commands                  : 147,308,749
host_write_commands                 : 47,032,599
controller_busy_time                : 343
power_cycles                        : 519
power_on_hours                      : 376
unsafe_shutdowns                    : 66
media_errors                        : 0
num_err_log_entries                 : 198
Warning Temperature Time            : 0
Critical Composite Temperature Time : 0
Temperature Sensor 1                : 36 C
Temperature Sensor 2                : 43 C
Temperature Sensor 3                : 0 C
Temperature Sensor 4                : 0 C
Temperature Sensor 5                : 0 C
Temperature Sensor 6                : 0 C
Temperature Sensor 7                : 0 C
Temperature Sensor 8                : 0 C

The most important field is Percentage used which shows as 0%. This isn't disk usage percent but life used percent. I've had this drive since October 2017 and now it's May 2018. As soon as Percentage used hits 1% I can multiply the number of months I've owned it by 100 to find out when it will die. But they say the drive typically lives longer than that.
Source


Which should I recommend, 10.04 vs 11.04?

I was on 10.04 for a year not transitioning to 10.10 even to try it out. Stability in 10.04 is rock solid as you say. But if a guy was coming from Win7 he'd probably like the Unity Shell in 11.04. It's awesome! I just moved to 11.04 three days back and I find it pretty much stable. If your friend does run into trouble with the Unity Interface, he can always fall back to the regular Gnome DE


WIFI regulatory domain not set

Set the  WIFI country code for the Kernels current regulatory domain if it isn't set.

iw reg get

To set it

sudo nano /etc/default/crda
REGDOMAIN=<ISOCODE>

Reboot.

Upstream kernel

Try the latest upstream kernel. I saw WIFI bug-reports that were fixed with a new kernel, so it's worth a try. It also fixed mine. Read more about upstream kernels here.

Download and install the packages that corresponds to your architecture (e.g. AMD64, kernel 4.6-rc7-wily)

linux-headers-4.6.0-040600rc7-generic_4.6.0-040600rc7.201605081830_amd64.deb
linux-headers-4.6.0-040600rc7_4.6.0-040600rc7.201605081830_all.deb
linux-image-4.6.0-040600rc7-generic_4.6.0-040600rc7.201605081830_amd64.deb

sudo dpkg -i *.deb
sudo reboot


Ubuntu 16.04 Network Manager DHCP and PXE setup. Can't find `dnsmasq.conf`

@JackyChan After the cp /usr/share/doc/dnsmasq-base/examples/dnsmasq.conf.example /etc/dnsmasq.conf, I did

inotifywatch -t 180 -v --event access /etc/dnsmasq.conf /etc/dnsmasq.d/ /etc/dnsmasq.d-available/

while, in another window, did

sudo service NetworkManager restart

inotifywatch detected no accesses.

After further research, I put the file (all #comments and blank lines, for now) in /etc/NetworkManager/dnsmasq.d/dnsmasq.conf, and ran

inotifywatch -t 180 -v --event access /etc/NetworkManager/dnsmasq.d/dnsmasq.conf

while, in another window, did I

sudo service NetworkManager restart

inotifywatch saw 7 accesses to /etc/NetworkManager/dnsmasq.d/dnsmasq.conf

The directory /etc/NetworkManager/dnsmasq.d is where dnsmasq.conf is sought, for a NetworkManager controlled dnsmasq


Lost user login on upgrade to Ubuntu 13.10

I had to edit /etc/lightdm/lightdm.conf as root and add:

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

When I go to the startup screen, I am now able to type in my username and log in.


From the Ubuntu Forums:

snippit

Apple Intel Mac (Mactel) FAQ

Welcome to the Apple Users Forum at ubuntuforums.org.
This forum is focused on providing community support on the installation and setup of Ubuntu running on Apple hardware.

This FAQ is targeted at Users with a Intel-based Macintosh computers (mactel) with Core and Core 2 CPUs or Xeon. If you have a PowerPC-based Mac (G3, G4, G5) Please see the PowerPC FAQ. Please be sure to always check this FAQ and the Mactel-Support Community Support Documentation before asking a question in the forum, and when asking a question in the forum, post your Mac's version string.

Can I run Ubuntu on my Mac?
YES! You will have to reduce the size of your OSX partition in order to make room for Ubuntu.

Read more from the link above. It is very detailed and descriptive.


Mathematical operations on arrays from logged lines

I took the liberty to edit your function a little bit and put all into a simple script. The core of the issue is that you had to echo after the while loop is done. Also, bash functions don't "return" arrays, you have to somehow echo them to stdout or use a main function and have a local array in main, which then can be accessible to child functions ( that's something I do quite often in my own scripts ).

Here's a test result. For 9 iterations with column 1 being always 110, we appropriately get 990.

$ ./generate_lines.sh
990 1008 1035 1008 1017 1080

And here's the script:

#!/usr/bin/env bash

sum_line_tokens() {
while read line
do
    #echo "$line"
    logLine=$line # saves currently logged line in variable logLine
    # redirect variable logLine as input for read command.
    # read -a saves word of input string as array. InternalFieldSeparator set as ';'
    # detects elements in input string which are separated by '; ' as words.
    IFS=';' read -a arrayLog <<< $logLine

    for n in 1 3 5 7 9 11
    do
        # define element in arraySum at position n as sum of previous element
        # and element in arrayLog at this position
        arraySum[n]=$(( ${arraySum[n]} + ${arrayLog[n]} ))
        #echo "${arraySum[n]}"
    done
done

# Functions in bash can only use return to indicate exit status
# This is more like int datatype for C or Java functions. If you want
# to return a string or array, you need to echo it to stdout
echo "${arraySum[@]}"
}

generate_lines(){
    while [[ $i < 9 ]]
    do
        i=$(($i + 1))
        echo "dateTime;110;2930;112;2931;115;2932;112;2933;113;2934;120;2935"
    done
}

generate_lines |  sum_line_tokens

Simplifying the task with awk

While the script works, it's lengthy. We can shorten the solution with awk:

# again, same thing - the script now generates lines only, no summing.
# We'll pipe it to awk
$ ./generate_lines.sh
dateTime;110;2930;112;2931;115;2932;112;2933;113;2934;120;2935
dateTime;110;2930;112;2931;115;2932;112;2933;113;2934;120;2935
dateTime;110;2930;112;2931;115;2932;112;2933;113;2934;120;2935
dateTime;110;2930;112;2931;115;2932;112;2933;113;2934;120;2935
dateTime;110;2930;112;2931;115;2932;112;2933;113;2934;120;2935
dateTime;110;2930;112;2931;115;2932;112;2933;113;2934;120;2935
dateTime;110;2930;112;2931;115;2932;112;2933;113;2934;120;2935
dateTime;110;2930;112;2931;115;2932;112;2933;113;2934;120;2935
dateTime;110;2930;112;2931;115;2932;112;2933;113;2934;120;2935

$ ./generate_lines.sh  | awk -F ';' '{for(i=1;i<=11;i++) if(i%2 != 0) sum[i+1]+=$(i+1) }END{for(j in sum) printf "%d\t",sum[j];print ""}'
990 1008    1035    1008    1017    1080

Using main function and local array

I am a big advocate for using main functions in scripts because it keeps everything organized, and as an extra advantage you can declare a local variable which every function that you call from main will know, and will be able to overwrite.

Well, there's a bit of a problem in your case. We have two functions, one produces lines and the other - does something with those lines, and using  pipes has a problem -  whatever runs on the right side of the pipe runs in subshell and that means that all information from subshell is gone when subshell exits. See my older question for reference.

Therefore, we need some neutral ground - either we use temporary file or something known as "named pipe". In this example I simply used temp file.  If the thing that you need to parse isn't too large, you can always store everything in a local variable and let two functions deal with that same variable - one write to variable, one - parse the variable. In case of long text that gets into thousands of lines it is better to use some temporary file.

So in this version of the script, I've covered several things, including main function and how main function gets command-line arguments, as well as what you requested in the comments. Basically, the script now gets 1 command line argument - which is number of lines you want, and give that to sum_line_tokens function. Without command-line arguments it sums all lines.

Test run:

$ ./generate_lines.sh 3
330 336 345 336 339 360

$ ./generate_lines.sh 4
440 448 460 448 452 480

And the script itself:

#!/usr/bin/env bash

sum_line_tokens() {
    # To perform counting for n number of lines, use a counter variable
    # In this case I am using argument passed from command-line
    linecount=0

    # IFS= and -r for better line reading to ensure that spaces won't mess you up
    while IFS='' read -r line
    do
        # Check if we have arg 1 to function and quit after n lines
        if [ -n $1  ] && [ $linecount -eq $1 ]
        then
            break
        fi

        logLine=$line
        IFS=';' read -a arrayLog <<< $logLine

        for n in 1 3 5 7 9 11
        do
            arraySum[n]=$(( ${arraySum[n]} + ${arrayLog[n]} ))
        done
        # increment line counter
        ((linecount++))
    done
}

generate_lines(){
    while [[ $i < 9 ]]
    do
        i=$(($i + 1))
        echo "dateTime;110;2930;112;2931;115;2932;112;2933;113;2934;120;2935"
    done
}

main(){
    # create local array. Any function called from main will know about it
    local -a arraySum

    # We can't just pipe lines to summing function. Whatever runs on the right-hand side
    # of the pipe runs in subshell, which means when that subshell exits, your variables are gone
    # See https://askubuntu.com/q/704154/295286
    tempfile=$(mktemp)
    generate_lines > "$tempfile"
    sum_line_tokens "$1" < "$tempfile"
    echo "${arraySum[@]}"
    rm "$tempfile"
}

# Call main function with the command-line arguments. This works sort of like int main(String[] args) in Java
main "$@"

Note about portability

Of course, because we're using whole lot of bash-specific things, if you run this on a system where bash is unavailable it won't work.  Is this a good script ? Yes, it does the job. Is this portable script ? No. The awk solution above is probably more portable.


The safest way is to rename this probably harmless file:

mv -v ~/Documents/mwf_config ~/Documents/mwf_config_bak

Then 3 possible things could happen:

The file will be recreated: It is a necessary file...
An application will complain about a missing file: Then run:

mv -v ~/Documents/mwf_config_bak ~/Documents/mwf_config

Nothing at all :)

If No. 3 is the case your file can safely be deleted...


Network Adapter & System Time Problems on my ROG GL552VX Laptop

Albert,

This happens because Windows doesn't do GMT offset timing by default.  To fix this, open Registry editor.

Navigate to

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation

Right click anywhere in the right pane and hit New > DWORD (32-bit) Value. Name it RealTimeIsUniversal, then double click on it and give it a value of 1.

As for the networking.  I'm not sure off the top of my head, can you send a dump of ifconfig?

Thanks,
PC


need help errors and lots of missing packages ubuntu 13.10

I would recommend that you backup all your data from /home and reinstall or better yet install a fresh copy of 14.04 LTS.

13.10 will be EOL (out of support) July 2014. Considering the age of this question, we could still not have a working system under 13.10 for you by then. 14.04 is a Long Term Support release and will be supported until April 2019.

By installing 14.04 fresh you'll have a working system + the data you backed up + the knowledge that you can come here for help before things get out of hand.


Same problem watching downloaded video files but not online videos

At this point I am not sure where to say and start if the issue is with playback on all of the media player.  But maybe you can narrow it down if you have an other computer you can use by putting a video on a usb or cd from your computer that is not working and play it on a different computer or dvd player.  If they are playing just fine there, then you will be sure that downloading is not the issue, but if they are playing with the same issue, then you will be sure it is something corrupting the downloads.  At the same time, if you have a dvd slot in your machine you can try putting in a dvd and see if it plays okay on your computer using vlc.  Just a way to help narrow down the problem. Hope this helps a little.


How to force LXDE for XRDP connections on 18.04

Well, nevermind. After hours of no results I now randomly stumbled upon the solution.

update-alternatives --config x-session-manager

and then select the LXDE option...


looks like you want something like this.  I say this because it looks like you want binary extensions or eggs without global effect.

Then setup.py should be enough to build a user local egg.


18.04 - cannot extract vmtools - not enough free space to extract tar

Move the contents of the mounted drive to the desktop. I had the same issue, copied it over to the desktop and chose "Extract here" worked after that.


Ubuntu 17.10 custom top bar and dual monitor?

Check the gnome-extensions. Move Clock is one which works fine, and moves the clock to the left of status bar.


Update to remap Caps to Super+Alt+Ctrl:

Open a terminal on type the following commands:

sudo apt-get install xautomation
dconf write /org/gnome/desktop/input-sources/xkb-options "['caps:none']"

Now create a small bash script that will use xte to create the keypress events. I added a sleep 2 so that you can combine the tree keys with other ones (such as a or more).

$ cat << EOF > /tmp/caps.sh
#!/bin/bash

xte 'keydown Control_L' 'keydown Super_L' 'keydown Alt_L'
sleep 2
xte 'keyup Control_L' 'keyup Super_L' 'keyup Alt_L'
EOF

Make it executable and move it to /usr/local/bin:

chmod +x /tmp/caps.sh
sudo mv /tmp/caps.sh /usr/local/bin

Finally create a custom shortcut from the System Settings menu as usual.

Since the Caps key has been disabled by the previous dconf command, you can just type it to define the shortcut accelerator. You'll see 0xff as the key name but it will work.

Previous answer:

You don't need to define Super+Alt+Ctrl as your internal shortcut since after all the key you want to use is Caps.

The first thing to do is to disable the default behaviour of this key, it can be done with the following command. Open a terminal an type:

dconf write /org/gnome/desktop/input-sources/xkb-options "['caps:none']"

Now define a custom keyboard shortcut using the System Settings Menu:

The command here can be as you suggested xdg-open http://askubuntu.com
The next step requires to go back to the command line as you can't type Caps to define a new combination accelerator. So list all the defined custom shorcuts with:

$ dconf list /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/
custom0/
custom1/

The one you've just created should be the last one, here custom1.
Type the following command to assign Caps+a to open Askubuntu:

dconf write /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/binding '<Caps>a'

Adjust the custom<id> to match yours and the shortcut keys for your needs.

Your new Caps+a is ready to use, needless to log out or restart your system.


I just use 'Simple Scan' - I think it is installed by default, and works very nicely (and Simply). With some LIDE scanners, you have to set the DPI to circa 300 in the preferences, otherwise it will just won't scan - other than that, press the button, and it will just scan, and then you can save it.

If you leave the scanned image as it is, and don't crop it, then you can crop a copy of it in future if you need to.


Sometimes, I can't drag and drop windows into other workspaces

This is a super late response so I'm not sure if it'll help you, but maybe someone else will stumble across this like I did.

I was experiencing the same bug on a new install of Ubuntu 19.04, what fixed it for me was disabling "Mouse Click Emulation" using the GNOME Tweaks application (which is just a nice front-end for fiddling with GNOME options and extensions, amongst other things). I didn't have to restart my system for the "fix" to work, but you might.

Here's a screenshot of where to find the setting in the Tweaks menu:

You can definitely do this without having to install the Tweaks app, but I don't know what the exact steps would be.


Already solved here and here.
From the terminal:

sudo apt-get install indicator-datetime
sudo dpkg-reconfigure --frontend noninteractive tzdata
sudo killall unity-panel-service

Then logout & login from the graphic session.
If the clock is still hidden/grayed out:

If it still doesn't work report a bug on Launchpad.
*edited to solve a bigger slice of problems.


I can confirm that it works in 12.04. Tested with PE4H + EC2C on a Thinkpad X220, using an Nvidia GTX 560 Ti. The tricky part was getting a working xorg.conf.
I needed the Nvidia drivers:
sudo apt-get install nvidia-current

You need to find the correct PCI bus for the graphic card.
lspci gave me:
05:00.0 VGA compatible controller: NVIDIA Corporation GF110 [GeForce GTX 560 Ti] (rev a1)

So in the "Device" section of xorg.conf, I set:
Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    BusId          "PCI:5:0:0"
    VendorName     "NVIDIA Corporation"
EndSection

Then use nvidia-settings after a reboot or an Xorg restart to configure the monitor(s) resolution(s).
It should be noted that it works much better in Windows than Linux and I had to disable Compiz because it lagged so much. I will update if I can get both cards (HD3000 + Nvidia) at the same time.


How do you update an old Integrated Intel GPU's drivers to work with Steam?

What is going wrong exactly:

Your video card is unsupported or your OpenGL driver needs to be updated.

How to fix it:

A) Obtain a high end supported video card - This is the solution I recommend

Minimum Required:   A DirectX 8.1 compatible video card

Recommended: A DirectX 9 compatible video card

Numerous sources found googling "Team Fortress 2 system requirements"

B) Try 2014Q2 Intel Graphics Stack Release available here:

https://01.org/linuxgraphics/downloads/2014/2014q2-intel-graphics-stack-release

Be aware that I don't believe that you will be happy with the performance provided by
the 82945G graphics for gaming which is why I personally don't recommend option B, but I'm including it here for the sake of completeness.

You may also need to reinstall the GCC support library (libgcc1) as you appear to have deleted some of it's components


Migrating server configuration to new machine

Out of my several years experiences with real hardware or cloud instances I would recommend you to not try to copy configuration from old installation unless it is something really specific.

Also now on 2016/12 I would not recommend you to stay on Ubuntu 14.04 unless you have something really hardly depending on this version.

I have "basic scripts" for different types of instances including all basic packages and settings I need - something like "Dockerfile" with all installation steps. It includes "must have" packages and it ensures you have stable environment when you create new machine.

Only case when I really clone existing instance is new mysql replica on GCE because it saves a lot of time and all replicas are supposed to be the same.

So as stupid as it sounds I would recommend you to "create machine from scratches". Because if you cannot solve problems on old machine it is very likely you could at the end duplicate at least some problems together with old configuration.

And one more thing - it is generally not exactly good idea to run mysql and postgresql on one machine or instance unless those are very small and not heavily used databases. Both databases have quite a different strategies for work with memory and disks and to get good performance from both databases you would need to fiddle a bit with their settings.


Ubuntu 12.04.1 and 12.10 USB mouse and touchpad lag

In 10.04.4, it helped to modify the touchpad's properties by synclient SingleTapTimeout=0 and synclient FastTaps=1 in the Terminal.

You can see all settings with synclient -l.

Furthermore, I was annoyed that long-distance-drag&drop was not working with more than 2 clicks by default, so I had to set LockedDrags=1 and LockedDragTimeout=360.

Still, my touchpad does not work flawlessly like in Windows, for example double clicking and sliding the finger on the touchpad after the 2nd click before releasing to mark text or scroll bars only works like in 1 out of 5 tries...

Similar problem with long-distance-drag&drop without solution, so any further help would be appreciated.


How to create a s3ql file system and mount it automatically on boot?

Modern Ubuntu installations use the event driven upstart system for much of the boot up process, so you're best to move the start up to that. You'd have a script in /etc/init that would look something like this:

description     "S3FS"

start on (filesystem
        and net-device-up IFACE!=lo)
stop on runlevel[!2345]

console output
expect fork
respawn

script
    # Redirect stdout and stderr into the system log
    DIR=$(mktemp -d)
    mkfifo "$DIR/LOG_FIFO"
    logger -t s3ql -p local0.info < "$DIR/LOG_FIFO" &
    exec > "$DIR/LOG_FIFO"
    exec 2>&1
    rm -rf "$DIR"

    modprobe fuse
    fsck.s3ql --batch s3://mybucket
    exec mount.s3ql --allow-other s3://mybucket /mnt/s3fs
end script

You'll have to do some testing work — I don't know how the output redirection for logging will behave, and you may need to set up a post-stop script to properly unmount
the file system.

The upstart documentation is here. I haven't found a FUSE based package that uses it, yet, but I didn't do an exhaustive search.

An alternative may be to construct an fstab entry for the file system, so as to leave the mountall entries to take care of mounting it for you, but I don't know if there is a way to specify that a given FUSE file system is network dependent.


Figured it out.  Had to add these two lines to grub boot loader during install...

i915.preliminary_hw_support=1

pci=nomsi

Also had to make sure all secure boot keys were deleted in the bios and none of the boot drives were set to uefi.


Unable to boot into Windows after installing Ubuntu, how to fix?

GRUB menu does not appear
If the computer boots into Ubuntu automatically without showing the GRUB menu at all, sometimes you can press the manufacturer's BIOS/UEFI key at boot time and while in UEFI or BIOS mode from the firmware menus select the operating system you need. Common keys used are Esc, Delete, F1, F2, F10, F11, or F12. On tablets, common buttons are Volume up or Volume down. During startup, there's often a screen that mentions the key. If there's not one, or if the screen goes by too fast to see it, check your manufacturer's website.*
If this doesn't work when the GRUB menu does not appear at boot time, immediately after the BIOS/UEFI splash screen during boot, with BIOS, quickly press and hold the Shift key, which will bring up a GNU GRUB menu screen. With UEFI press (perhaps several times) the Esc key to get to the GNU GRUB menu screen. Sometimes the manufacturer's splash screen is a part of the Windows bootloader, so when you power up the machine it goes straight to the GNU GRUB menu screen, and then pressing Shift is unnecessary.
If this doesn't work when the GRUB menu does not appear at boot time, then try the answers to:

How to get to the GRUB menu at boot-time?
Dual-boot boot menu does not show up after installing Ubuntu 15.10 alongside Windows 10

Boot Repair
From  Ubuntu open the terminal and type:
sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt update
sudo apt install -y boot-repair
sudo boot-repair

Open the Boot Repair application and select Advanced Options -> Other Options tab -> Repair Windows boot files. The boot flag should be placed on the same partition on which Ubuntu is installed. The partition on which Ubuntu is installed can be identified from the Disks application which is built-in in Ubuntu.

If you're unable to select the Repair Windows boot files option because it's grayed out, refer to this answer.

Rescatux
Rescatux is a free bootable live CD/USB that can repair GRUB and the Windows bootloader. Rescatux has a graphical interface with a menu of operating system rescue tasks. If your hard disk has the MBR partitioning format, you can select the Restore Windows MBR (BETA) option to repair the Windows bootloader. If your computer has UEFI firmware, you can select among the UEFI boot options.
Boot options:

(>=0.41 beta 1) Update UEFI order
(>=0.41 beta 1) Create a new UEFI Boot entry
(>=0.41 beta 1) UEFI Partition Status
(>=0.41 beta 1) Fake Microsoft Windows UEFI
(>=0.41 beta 1) Hide Microsoft Windows UEFI
(>=0.41 beta 1) Reinstall Microsoft Windows EFI
(>=0.41 beta 1) Check UEFI Boot

GRUB options:

(>=0.40 beta 11) Easy GNU/Linux Boot Fix
Restore GRUB and GRUB2
(>=0.31 beta 4) Update any GRUB2 menu
Update Debian/Ubuntu GRUB menus

Windows options:

Restore Windows MBR (BETA)
Clear Windows passwords
(>=0.31 beta 4) Promote a Windows user to Administrator role
(>=0.41 beta 1) Reinstall Microsoft Windows EFI
(>=0.31 beta 4) Unlock Windows user

Password options:

Change GNU/Linux Password
Regenerate sudoers file
Clear Windows passwords

Expert tools:

Boot-Repair
GParted
OS-Uninstaller
Clean-Ubiquity
PhotoRec
TestDisk

Rescapp is a nice wizard that will guide you through your rescue tasks.

How to make a Rescatux live USB from Ubuntu

Insert a USB flash drive and check if the boot flag has been enabled on the flash drive using the GParted application. Unmount the USB flash drive. Open GParted and select the USB flash drive from the menu list of drives. From the GParted menu select: Partition -> Manage Flags -> check boot.

It is very important to verify that the device that you are installing the Rescatux live USB to is indeed your flash drive, so that you don't overwrite any of your system or personal files which may make your operating system unbootable. In Ubuntu you can find the device name of the flash drive using the Disks application.

Unmount the USB partition device. Let's say the USB partition device is /dev/sdc1
 sudo umount /dev/sdc1 # replace sdc1 with the partition name of your USB drive

Change directories using cd to the path of the directory where the Rescatux iso file that you downloaded is located.

Write the Rescatux iso file to the USB flash drive. In the following command replace rescatux_0.xxxx.iso with the name of the Rescatux iso file you downloaded.
 sudo dd if=rescatux_0.xxxx.iso of=/dev/sdc # this command also works in Windows Subsystem for Linux 2
 sudo sync

I have also been able to make a Rescatux live USB using the built-in Startup Disk Creator app.
Windows 10 factory reset repair of Windows bootloader
source
Open Settings
Click the Start Menu and select the gear icon in the lower left to open up the Settings window. You can also select the Settings app from the app list. Under Settings, click Update & Security to continue.
Choose Recovery Options
Click the Recovery tab and select Get started under Reset this PC.
Save or Remove Files
At this point, you have two options. You can either choose to keep your personal files and only remove downloaded apps and settings, or you can wipe everything and start from scratch. Each choice will also give you an additional setting to change.
If you choose Keep my files, apps and settings will default to what they were when the PC was brand new. This setting can be turned off by clicking the Change settings link and switching it off. If you choose Remove everything, there's also a way to remove your personal files while saving apps and settings. Click the Change settings link and toggle the Data erasure option to on.
Reset Your Computer
Once you decide what should be removed from the computer, hit Next and Windows will tell you what will be deleted before you make a final decision. If you selected Keep my files, you can look at a list of apps that will be removed with the reset.
Finally, click Reset to actually commit. Your computer will restart, and after several minutes, it will boot back up again. When you return to Windows 10, you'll see that whatever you selected to be removed has been wiped from the machine. If you backed up your files, they can now be restored to the machine.


How to reset and detect plug-in HDD/SSD via IDE or SATA without rebooting?

Finally, I found out how to reset/detect plug-in HDD/SSD via IDE or SATA without rebooting.
1. What command can I type to detect HDD/SSD via IDE and SATA?
First install scsi tools:
sudo apt-get install scsitools

Then, you can type to detect plug-in via IDE and SATA:
sudo rescan-scsi-bus

2. What command can I type to remove plug-in with HDD/SSD via IDE or SATA?
BE CAREFUL! DO NOT REMOVE THE DISK THAT THERE IS AN UBUNTU OS RUNNING ON YOUR COMPUTER
To unmount and delete disks from Ubuntu's software, to type to get permission:
sudo -i

Then, you can type to unmount and delete disk:
echo 1 > /sys/class/scsi_device/h:c:t:l/device/delete

The code h:c:t:l is the bus' number via IDE or SATA to remove disk, to check the bus' number, you can type:
lsscsi -s

To be sure if the Hard Disk can be safely unplugged physically, you can type this same code to check that the disk does not display on the screen.
3. What the best way can I change HDD/SSD physically via IDE or SATA without any problem?
First, you have to type the command to remove the disk. Then, you have to type the command to check to be sure that the disk does not display on the system's software and you can change the disks physically being safely to unplug and plug. Finally, you can type the command to detect plug-in via IDE and SATA and to check the disks detected.


How to move N lines from one file to another

#!/bin/sh

lines=3
head -n $lines file1.txt >> file2.txt
sed -i -e "1,$lines d" file1.txt

This will append the first three lines from file1.txt to file2.txt
and then delete the lines 1…3 from file1.txt effectively
moving the first 3 lines from file1.txt to the end of file2.txt.


do-release-upgrade from 18.04 to 20.04 - no development version

According to the Focal Fossa (20.04.1 LTS) Point-Release Status Tracking page, upgrades are not enabled yet due to "a few upgrade blockers".
This issue was reported as bug #1890936.


How can I quickly recompile the kernel after changing the configuration?

Yes, you can remove the special stamp files debian/stamps/stamp-build-* before starting the next build (instead of the using the "clean" target). With certain changes, you may need to remove the debian/stamps/stamp-prepare-* files, too.

When these stamp files do not exist, the build will attempt to reprocess those portions of the build for that stamp that is defined in the debian/rules file.

If you have multiple processors on your system, you can also parallelize your build by starting your command line with DEB_BUILD_OPTIONS=parallel=N where N is the number of CPUs you have. (Some people suggest using the number of cpus plus 1.) Quick way to find number of CPUs (without counting them in /proc/cpufino) is to run the command getconf _NPROCESSORS_ONLN.

For example:

DEB_BUILD_OPTIONS=parallel=$(getconf _NPROCESSORS_ONLN) skipabi=true skipmodule=true fakeroot debian/rules binary-core2


I am going to start my answer by clarifying some facts/assumptions I pulled from your question:

Your domain name is helloworld.dyndns.org
helloworld.dyndns.org points to public IP 2.220.217.108 (this I tested and know)
2.220.217.108 is your home IP.
The computer you are running a minecraft server on, has a private IP of 192.168.0.9 inside your home network.

Congrats, the good news is that you only have one more step and it does not require setting up a new DHCP server, rather just setting up port-forwarding on your router/hub, and optionally tweaking its DHCP settings.

All that remains is to set up port forwarding on your "home hub" (router). Unfortunately, every router I have seen has a different interface and feature set, but 99% of the time there is an "advanced" are you may need to log into, and then there should be a tab/menu called "port forwarding" where you just need to specify the IP/MAC/Hostname of your computer (192,168.0.9) and the port you want to forward (TCP 25565)

DHCP Settings

You can optionally tweak the DHCP settings on the router to prevent your private internal IP of your minecraft server (192.168.0.9) from changing (assuming its set to DHCP and not statically set). However minecraft should still work in the meantime. This is just to prevent you having to re-set up port forwarding every time your internal IP changes. It is best not to manually set your private IP to an address in the same range as the DHCP pool of your router as this can (low risk) lead to an IP clash (two devices using the same IP)

Thus the easiest solution is to check the IP range of the DHCP pool (shown below) and set your server's IP to something that is in the same subnet but not the same address pool. 192.168.1.1 - 192.168.1.63 in the picture below:

Either that, or some routers allow you to manually set a static/reserved IP from within the DHCP pool to a device based on its MAC/hostname.

Reference Material - Minecraft Wiki - Setting Up A Server


This is most likely because the default networking for LXC does not bridge to the host. So, all those instances can see each other, but you can't directly see them from the host.
To test this you could try and

juju ssh wordpress/0

and see if you get connectivity locally.
We will be documenting an LXC network setup specifically for Juju, but for now there are general Ubuntu docs which cover this: Ubuntu Server guide


Which is best to use on a HEADLESS Server that is going to be use as virtualization host? KVM / XEN / QEMU?

You mention "in industry" a couple of times. Fact is these different virtualisation technologies, along with others like OpenVZ, all get used in industry. Most of them have certain merits like:

being able to maximise density through burstable RAM (for cheap OpenVZ VPS hosting)
offering fair shares of the hardware (for more expensive, lower density Xen VPS hosting)
ramming a server full of applications with the least overhead (eg LXC, OpenVZ)

You can get a fairly raw comparison of features on the Kernel Newbies' Virtualisation site but they don't really delve into industry application.
So what should you use?
Well... I think if you're doing this for educational purposes you should probably try at least two to compare their features, performance and how easy they are to set up and maintain for yourself.
I would personally suggest Xen. I use it as a customer (I have no set up of it) but I can speak for its guest performance and I know it can host Windows machines too (as long as your CPU supports vmx and the copy of Windows you're planning on installing is that for HyperVisor).
Xen should also have dom0 in the default Ubuntu kernel (that needs checking). This essentially means any install of Ubuntu can be a Xen host without having to fanny around with patching the Kernel.
But Xen reserves RAM for a machine indefinitely. If you're planning on something a whole lot more burstable (where VMs get the guts they need, when they need them) perhaps you want to look at a looser container like OpenVZ. The only problem with these is you'll need another solution for Windows.
KVM is very popular in the developer world. Simple to get going. Similar performance to Xen but I just have no experience with it but plenty of developers do (I follow several FOSS blog "planets" and there's usually at least one mention about KVM per week).
Also, you can run VirtualBox in headless mode if you're looking for something more familiar.


Convert PostScript to PDF using user interface?

Try CUPS-PDF.

  CUPS-PDF is designed to produce PDF files in a heterogeneous network
  by providing a PDF printer on the central fileserver. It is available
  under the GPL and is packaged for many different distributions or can
  be built directly out of the source files.

To install cups-pdf, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt-get install cups-pdf

Add a new printer.  Follow the screens below:

Now you should be able to print to pdf by selecting the newly setup printer.

Also take a look at AbiWord

Source:CUPS-PDF


Tab completion won't work on some PDF viewers

You can add to your ~/.bashrc file the following:

complete -f -X '!*.[pP][dD][fF]' evince okular foo

And now it will autocomplete with pdf files evince, okular and foo.

The other way (the correct and formal one), would be to find the autocompletion files and modify them to make them work, they use to live in:

/etc/bash_completion.d/
/usr/share/bash-completion/completions/

Have fun


Then you created a file named /home/ubuntu/disks/root.diskconv=notrunc instead of appending to /home/ubuntu/disks/root.disk. Just delete that file.


Ubuntu 18.04 how to add a static route to a single host?

Your static IP is on 192.168.0.0/24 network. Target host is on the same network. You don't need to specify static route. There will be a route by default to this network using your enp0s8 interface.

You will need via if you want to specify an IP from a different network.


Basically, you can achieve what you want by issuing the following commands on a terminal:

Enable smart autohide:

gsettings set org.gnome.shell.extensions.dash-to-dock dock-fixed false
gsettings set org.gnome.shell.extensions.dash-to-dock autohide true
gsettings set org.gnome.shell.extensions.dash-to-dock intellihide true

Disable smart autohide:

gsettings set org.gnome.shell.extensions.dash-to-dock dock-fixed true
gsettings set org.gnome.shell.extensions.dash-to-dock autohide false
gsettings set org.gnome.shell.extensions.dash-to-dock intellihide false

For more info check this answer.


Lubuntu 18.04 LTS freezes on shutdown and reboot

I'm running similar hardware (ASUS J1800I-A SoC), and my solution was to completely disable CSM in EFI settings and switch "Secure boot" value from "Windows" to "Other OS".


xxdiff is available in the default repositories for Ubuntu 16.04 and later.

xxdiff isn't available in the default Ubuntu 13.04 repositories, but there are other packages available in the default Ubuntu repositories that are similar to xxdiff, among them docdiff and dwdiff. docdiff and dwdiff are also available for all currently supported versions of Ubuntu.


This works for me on 13.04, both mute and unmute:

amixer -D pulse set Master 1+ toggle

It specifies pulse audio to ensure unmute, unmutes everything.


It seems, the best solution for now would be to install the google chrome app.

First install google chrome and then, in chrome follow this link:

https://chrome.google.com/webstore/detail/line/ophjlpahpchlmihnnnihgmmeilfjmjjc?utm_source=chrome-ntp-icon


how i can know my graphics card memory size?

Install i-nex:
I-nex can tell you in-depth statistics of your system hardware, taking in everything from your CPU to your sound card along the way.

The first repository is for Gambas. Gambas is the name of an object-oriented dialect of the BASIC programming language and is required to run i-nex.
To add the Gambas repository add:
  sudo add-apt-repository ppa:gambas-team/gambas3

The next repository is for the i-nex application:
  sudo add-apt-repository ppa:kranich/cubuntu

Now update and install:
sudo apt-get update
sudo apt-get install i-nex


Although PlayOnLinux is already available in official repositories of Ubuntu which can be installed using:

sudo apt install playonlinux

But if you still want to install from PlayOnLinux's repository, here is what I observed.

After looking at the repository information for bionic availabe on official site, it looks like you added wrong repository (with extra "ubuntu"). Modify the repository you've added using "Edit" button after clicking on repository in Software and Updates→Other Software.

After that remove "ubuntu" from "URI" so that it looks like:

Now open a terminal and run:

sudo apt update

If you get an error like:

Err:1 http://deb.playonlinux.com bionic InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY <some key value>

Add that key using:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys <key value>

Then try sudo apt update again.

Update April 13, 2019:

It seems you've issues with multiple repositories. We'll correct them one by one.

For https://dl.winehq.org/wine-builds/ubuntu ubuntu Release:

It seems this repository information is wrong. Look at the entry number 6 and 7 in your first screenshot. Repositories don't include version number, i.e. "18.04 LTS" but rather their respective codenames, i.e. "bionic". So, it's better to delete those entries. Also, according to your question you are using bionic but in your first screenshot it seems you've added repository information of cosmic. So, it's better to edit them and replace "cosmic" with "bionic". Otherwise, dependency issues might take place.
For GPG error: http://dl.google.com/linux/chrome/deb stable Release:

This was a temporary issue which occurred in all Linux systems as reported on Ask Ubuntu here. This issue was from Google's side and is now fixed.
For http://ppa.launchpad.net/sssup/sssup-ppa/ubuntu bionic Release:

This repository was last updated for Natty (11.04) way back in February 2011. So, it's better to delete it. It's 11th entry in first screenshot.
For http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu bionic Release:

This repository was last updated for Xenial (11.04) way back in 2017. So, it's better to delete it. Precisely it's on 10th place in Screenshot 2.

Tips:

I see there are many repositories unchecked. So I assume you don't use them. Try to delete all useless repositories so that less error happens and your other software tab become less cluttered.
If you ever encounter errors like release file not found, try to investigate on your own. After all learning is fun :). Just copy the URL before any whitespace and paste it in browser, for example, http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu and try to find your distribution under dists folder (if present). If your distro is not present, there is some error in repository information.


Ubuntu Server 14.03 lts not showing in Windows 10 Pro Networking

When I came across this same situation the other day I found if I open network in Windows explorer then typed in the address or the nameserver it was able to locate it. I then mapped the ubuntu drives. This however does not solve the problem of the server not showing in the network. Everything works fine otherwise.

Hope this helps.


libglib2.0 errors on 11.10 upgrade and installing ia32-libs

I never solved this, as I re-installed the OS, but I'm pretty sure it was the McAfee install.


etc/hosts setting for standalone MySql server

Old question, but I'm going to answer it since I had the same problem today and found a solution.

Short answer is you need to complete the static IP guide from here:  http://library.linode.com/networking/configuring-static-ip-interfaces

Since it looks like you are using Linode and private IP addresses, my answer is going to be tailored to that environment.

I'm actually using CentOS, so haven't tried these instructions on Ubuntu, but the CentOS instructions were accurate, so here they are for Ubuntu/Debian

First, change /etc/network/interfaces to be

 # The loopback interface auto lo iface lo inet loopback

 # Configuration for eth0 and aliases

 # This line ensures that the interface will be brought up during boot.
 auto eth0 eth0:0 eth0:1

 # eth0 - This is the main IP address that will be used for most outbound connections.
 # The address, netmask and gateway are all necessary.
 iface eth0 inet static
  address 12.34.56.78
  netmask 255.255.255.0
  gateway 12.34.56.1

 # eth0:0
 # This is a second public IP address.
 iface eth0:0 inet static
  address 34.56.78.90
  netmask 255.255.255.0

 # eth0:1 - Private IPs have no gateway (they are not publicly routable)
 # so all you need to specify is the address and netmask.
iface eth0:1 inet static
  address 192.168.133.234
  netmask 255.255.128.0

Note - these addresses are straight off the Linode example config - change the eth0:1 IP to be your private IP address as given by your Linode configuration page. Also change the eth0 IP to be your main IP address as assigned by Linode.

As root at the command prompt, enter /etc/init.d/networking restart

And that's it - it should work now as you expected.

The page linked above also provides instructions for Fedora/CentOS, Arch, Gentoo, and OpenSuse.

EDIT:  I found that I had to update my DNS resolver settings as well.

Edit /etc/resolv.conf

# Generated by NetworkManager
domain linode.com
search linode.com
nameserver <your-nameserver-here>
nameserver <your-other-nameserver-here>
options rotate

Note that the domain and search values are optional and are different in my file than what Linode suggests in their examples.  This is how my file was by default and I left it that way - just needed to delete an inaccurate nameserver and add the 2 nameservers from my Linode server Remote Access page.  Also added was the options rotate line.

Linode also recommends uninstalling DHCP, which seems unnecessary to me.  If you'd like to, the command is apt-get remove isc-dhcp-client dhcp3-client dhcpcd


If python2 and python3 are both installed, and pip for both has been installed,  then there should be a separate pip2 and pip3 command that you can use, for the corresponding version of python.

Note: you have to explicitly install both pip versions:  apt-get install python-pip for python2, and apt-get install python3-pip for python3.

Alternatively (but still requiring apt-get install of pip), you can use the pip module from your python executable directly, if you have Python 2.7.9 and later (on the python2 series), or Python 3.4+.

For example, on Ubuntu 16.04, after installing/upgrading python2 and python3 and both pip versions:

$ pip --version
pip 8.1.1 from /usr/lib/python2.7/dist-packages (python 2.7)

$ pip3 --version
pip 8.1.1 from /usr/lib/python3/dist-packages (python 3.5)

$ python2 -m pip --version
pip 8.1.1 from /usr/lib/python2.7/dist-packages (python 2.7)

$ python3 -m pip --version
pip 8.1.1 from /usr/lib/python3/dist-packages (python 3.5)


Yes. we have TWO chains.

every 6 months. This is jumping from every OS to the next. This is for the desktop user that likes to keep up to date (well... we do at some point lag behind 6 months ;) )
every 2 years. This is jumping LTS to LTS. This is to cater companies that use Ubuntu as a server but also users that want a stable system that is kept up with security but do not need newer software.

There is one thing to note that you are probably not aware of: 20.04 inherits the hardware stack from 20.10 as soon as 20.04.1 is released (and it has).
You can also always re-install. That (with some setup from you) is far easier and quicker.


How do I modify GRUB to load my HDMI driver before stage 2 is loaded?

That would be the Xorg/kernel video drivers, which grub can not use.  It has to rely on the BIOS, so you are stuck.


Delete characters from cursor up to the beginning

Ctrl+u delete characters from the current cursor position until the beginning of the line. If the current cursor position is at the end of the line, of course that all the line will be deleted.

See also: How do I clear/delete the current line in terminal?


How to make my microphone unmuted on startup?

From this previous answer:

sudo nano /etc/modprobe.d/alsa-base.conf

and add or change the following:

options snd-hda-intel model=auto enable=yes

BTW, if you prefer to use the gnome editor rather than text editing in the terminal, you could also run gksudo gedit /etc/modprobe.d/alsa-base.conf. As far as I know, it is still better to run gksudo rather than sudo to start gnome/kde/unity applications with a GUI in super-user-mode.


Xubuntu - missing checkbox "connect VPN automatically"

It may help to somebody else:

I missed an option in Xubuntu Network Manager when editing some ethernet / WiFi connection - in general tab a VPN can be specified and it's gonna connect automatically on that network.

It's not in the VPN settings directly.


The  802.1 x EAP Wifi will work like charm in Ubuntu and no need to worry about it. In case if you face any issues in connecting the try out our own link to fix the same. Ask Ubuntu always there with a fix :-)

wireless network adapter supported on ubuntu?


I can't install Ubuntu on my Dell Latitude d510

Since it is an old computer probably your best bet is to use an alternate install CD instead of the live CD.

However, I hope you have at least 1 Gb of RAM (2Gb recommended), otherwise the system might be very slow.


Find files owned by a user with the following command:

find directory-location -user <username>

...where <username> is replaced by the name of the user that you are filtering the search results by. You can filter the search further as follows:

find directory-location -user <username> -name <file-name>

directory-location: Locate files or directories in this directory location.
-user <username>: Find the files or directories that belong to this user.
-name <file-name>: File name or pattern.

Source: Linux / Unix Find all the files owned by a particular user / group


Show available/installed version in the output of aptitude search

This might work for you. Put this in a script file named apt-version.sh and make it executable.

#!/bin/bash
TERMS=$@
for name in $(apt-cache search "$TERMS" | sed 's/ .*//'); do
    echo "$name "
    apt-cache show $name | grep -i -e "description-en" -e "version" | sed 's/^/    /'
done

A test. Put your search terms after the name when you run it.

$ ./apt-version.sh  mesa-util
mesa-utils
    Version: 8.0.1+git20110129+d8f7d6b-0ubuntu2
    Description-en: Miscellaneous Mesa GL utilities
mesa-utils-extra
    Version: 8.0.1+git20110129+d8f7d6b-0ubuntu2
    Description-en: Miscellaneous Mesa utilies (opengles, egl)


txt to pcap file conversion using sed and xxd

I  don't know sed, or xxd but I would try to follow the 4 commands individually:

sed 's/^[0-9:]*//' filename.txt > step1.txt
sed 's/^  //g' step1.txt > step2.txt
sed 's/    .*$//g' step2.txt > step3.txt
xxd -r -p step3.txt > filename.pcap

Following each step, I'd find a handy sed tutorial, and check to see if the output of the command matches what I think it should be, thus learning a little about sed and xxd in the process.

You may have noticed that I removed the "|" character from the command line you originally used.  "|" is a pipe, indicating that the output from the command is to be used as the input for the next command.  Instead of piping the data about, the command outputs are stuffed into intermediate files, which are then used as the input to the next command.


Re-order active applications in right navigation bar

Left click and hold on the icon you want to move.

Next drag the icon to the right, so it is pulled off the launcher bar.

Then move the icon up or down to the desired position.

Finally drag the icon left back on to the launcher and let go.


Speaking of boot, try to figure out which key is assigned by BIOS for getting you to the boot screen for your computer. It could be F12, or F9 or F10, just make sure you press the right key to be able to boot from CD/DVD.

As for deleting your old partitions, I suggest you use the  Ultimate Boot CD . It is a fine piece of work, and it is free. The iso image is around 600mb and it fits on a regular CD. Download it using the torrent link provided in there, burn it on a blank CD, and then reboot with your new Ultimate Boot CD in tray. At first boot screen you'll see a menu from which to choose (many, many useful tools in there for both Windows and Linux, including GParted).

What you need is to access the HDD - Partition Management section, and from there to select the "Cute Partition Manager" tool. Let it load al its modules, and when finished loading do not press BROWSE instead press OK. You should finally get to the partition table for your HDD device.

Delete all partitions in there, starting with that SWAP section, and moving to the other ones (if there are more than one left). To be able to delete partitions use the assigned keys listed at the bottom of the screen. Do not forget to save your empty partition table at the end (there is a key, I don't remember which one, for saving final partition table, press it and save your empty partition table). Exit Cute Partition Manager, take CD out of tray, and reboot, then power-off your PC. Your hard-disk should be fresh and cute like a baby now :) .

If you prefer GParted instead, then use that one, it is located in the same section: HDD - Partition Management.

You can install Win7, and make a dual boot with Ubuntu after that. Do not use Cute Partition Manager to repartition your hard-disk. I don't think Gparted is an option either if you want to install Windows and Linux in dual boot.

Better to use a bootable WIN-XP CD to partition your entire HDD (primary and extended partition). WIN7 DVD does not create extended partitions, only primary partitions, and I am sure you want to add extended partition (I suggest you create more than one logical drive inside the extended partition). Leave enough free space for a Linux installation, or even better create a raw logical drive inside the extended partition for your Linux system.

Please be aware that you will loose all your data from the hard-disk after deleting your old partitions. Use it at your own risk, don't blame me if you forget to back-up important data before using Ultimate Boot CD to wipe up your HDD.


You need to add your user to Docker group on the host machine:

sudo usermod -aG docker <username>

Logout, login again, it should work. Otherwise you need to insert sudo before all of your docker commands.


creating a homedirectoy in an other disk/folder

If you have freshly installed system, maybe the easiest way is to install it again and on partitioning you can choose to create /home partition on other disk and that is basically all you need.

It is not too much to modify working system too. In Linux definition of usage of disks is in config file /etc/fstab. Every non-comment line there defines how to mount particular filesystem. On your case I suppose you have there something like:

# / was on /dev/sda1 during installation
UUID=ae6abc58-956d-4a4f-9a07-6aa5ab02eb56 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda2 during installation
UUID=6fc82ee1-de18-447b-ac59-443a12c0eabd none            swap    sw              0       0

Now you need know what is UUID of the partition you want to use as home-part. For that you may use this command:

$ lsblk -f

This command lists all available filesystems and their UUID-s, also filesystem types. All following assumes your new home-partition uses ext4 filesytem and it is umounted.

Now you could add entry to /etc/fstab (to edit this file you need root-permissions, use your preferred editor, for example sudo nano /etc/fstab):

UUID=[uuid-you-found-in-previous-step] /home2           ext4    defaults        0       2

After creating mounting point with

$ sudo mkdir /home2

you can mount with

$ sudo mount -a

Next problem: you already have directories inside /home-directory. You can't use /home directory as mounting point, if this directory contains anything. That's why you can't move your home-directories with one step. For next steps is strongly suggested to log out from grahpical session and to use text console in. You need:

move all files from /home to /home2 (mv /home/* /home2/)
change mounting point in /etc/fstab: home2 -> home
reboot

EDIT. Using NTFS-filesystem as /home will not work. But you can link symbollically from NTFS-tree into your home directory. You may make just one robust link like :

$ ln -s /media/USER/DISK/folder /home/myuser/winfolder

But you may refine it like:

$ ln -s "/media/USER/DISK/folder/My music" /home/myuser/Music
$ ln -s "/media/USER/DISK/folder/My documents" /home/myuser/Documents
$ ln -s /media/USER/DISK/folder/Downloads /home/myuser/Downloads

etc

Last examples assume you remove those directories (Music etc) before linking.


Why does MS Windows File Explorer not see my external drives sometimes when I've been working with them in Linux

Solved - I went to Linux to check the drive again and found that the file system is ext4. Obviously not a lot can be done with this so I copied my ISO from the drive to gard drive on the Windows partition. Sorry for the foopah!!! It just shows that someone that has been using Linux for years can still trip over their own feet...


How to proceed further in Ubuntu Core after configuration?

To proceed further follow steps below:

1.The screenshot in question says that Ubuntu Core is running on the VM.
2. Then open a new terminal window and login to system by using command:    ssh <Ubuntu SSO account name>@localhost
3. After this you would have logged in successfully.