Click on the clock, and then select time and date settings

And then select "Manually"

You can also ensure the ntp package is not installed (clicking on the button will show if you if you have it installed or not:


Create Raid1 on running ubuntu 20.04 system

Finally, I figured it out, by doing Raid1 while I install Ubuntu server then I copied my data from a backup disk.


Nautilus hangs up on mounted shares after suspend

There are hook-scripts in the folder /usr/lib/pm-utils/sleep.d/. Just add another script called for example 99custom with the following content:

#!/bin/sh
#My custom script

case "$1" in
        hibernate|suspend)
                #umount shares
                ;;
        thaw|resume)
                #mount shares
                ;;
        *) exit
                ;;
esac

I would split up in two script because you have to cleanly umount the share before networking is away, and after that resuming it after networking is back.

Edit:
If you just want that all cifs shares where unmounted before suspending make a script called 00custom in the directory /usr/lib/pm-utils/sleep.d/ with content:

#!/bin/sh

case "$1" in
        hibernate|suspend)
                /bin/umount -t cifs -a
                ;;
        *) exit
                ;;
esac

Make sure that the script is executable:

chmod 755 00custom

After resuming from suspend, your cifs shares should be unmounted.


When you fresh install Ubuntu you have to manually manage partitions. You can decide where to mount / (root) and format that partition, then you select where to mount your home and choose to not format that partition (you don't check the format option). In this way you don't lose anything even if some configuration folder (.mozilla for example) may change. I suggest to backup Home folder before, in case of errors you can remedy.

Here there's a good tutorial.


a11y-profile-manager messed up the appearance of my desktop

Try with

a11y-profile-manager -d

(source).

In any case, a good way to know what things do without breaking your system is reading the documentation before doing it.


If you don't have terminal on your right screen, too, you can simply alt+tab to terminal and focus will move accordingly.

That said, you might want to check out this related post on Ubuntu shortcuts.


Add this line to the ~/.bashrc file:

export PROMPT_COMMAND="echo -n \[\$(date +%H:%M:%S)\]\ "

So the output will be something like:

[07:00:31] user@name:~$


Booting to a black screen with a blinking cursor

Seems that the problem was the secure boot that was activated in the bios and it was the first time I was dealing with it, so I didn't know how to handle it. I would say that it isn't really intuitive the thing.

I finally disabled it on the BIOS and everything is correct now.


If you are unskilled in terms of using wine, try play on linux. (https://www.playonlinux.com/en/app-1592-World_Of_Tanks.html) it will install winetricks and set your prefix, also it can install wine version of your choice on the run.... they even include wine-staging version, where many fixes are included (which official release doesnt have)

Download here: https://www.playonlinux.com/en/download.html

See here which packages you will have to install: https://appdb.winehq.org/objectManager.php?sClass=application&iId=11544

Your error is 99% caused by missed additional package installed with winetricks

It should have World of Tanks on Games tab, so it will install everything for you! Just installer will be needed I guess...


You don't need to define the directory, Python's gettext module can find it by itself on at least Linux. Just follow the instructions in the documentation and it should work.


Why does ubuntu's "move to trash" option not exist?

Is there any .Trash or .Trash-1000 or similar folder on the root of that drive? If so try to delete that folder first and then reboot.
sudo rm -rf /media/XXXXXXXXX/.Trash-1000

Where XXXXXXXXX is the mount point of your secondary hard drive.
Note: Folders and files starting with a . are hidden in the Files app. To toggle visibility of such files and folders press CTRL+H.
(This is assuming you already have the appropriate permissions to write to that disk.)


'Do Nothing' on Lid Close doesn't work on 16.10

Strange, the problem can be easily solve for me to press any key on external keyboard after screen goes off. Thanks Jacob Vlijm to direct me this solution.


Try to reconfigure X server:

sudo dpkg-reconfigure xserver-xorg

If it doesn't work  Try deleting ~/.config/monitors.xml

rm  ~/.config/monitors.xml


How to resolve the dependency issue in Ubuntu 16.04 while installing VLC?

Open up a new terminal session and try updating your system first:

sudo apt-get update

sudo apt-get upgrade

Then install VLC from the Ubuntu Repository:

sudo apt-get install vlc


MPEG-1 Layer 2 (MP2) decoder-plugin install

You can install all codecs, Microsoft fonts and flash in one command

sudo apt-get install ubuntu-restricted-extras

If you want to install just that codec, run

sudo apt-get install libmpeg2-4


You need to put your computer into developer mode and enable USB debugging.

Steps to take:

Goto:
  Settings > About phone > Build number

Tap it 7 times.
You'll enter developer mode.

The go back to Settings > 'Developer settings' and turn on 'USB debugging'.   Your device should then show up when you run 'adb  devices'.


Why did Ubuntu switch to GDM over lightDM

Because lightdm does not yet support wayland.

See https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/1632772

They are working on a solution and my consider switching back to lightdm in future releases.


can i use windows boot manager to boot into ubuntu 11.10

Changing from grub to Windows boot manager is a bit complicated. You should stick to Grub to avoid complications.If you really, really want to change then look below.

There is  a programm for windows called easy bcd. Install it when running windows and the proceed a described in the following link:

how to use easy bcd

Or

see this link for an another way to do it.


Once you booted normally to the login screen, hit ctrl + alt + F1 to access terminal. Login there and use command

sudo chown -R <user>:<usergroup> /home/randy

For example

sudo chown -R randy:randy /home/randy

If you have set a custom group for yourself, you can see it with groups <username>. Your group is the first one after :.

-R makes sure all the subfolders and files inside the /home/randy will get the same permissions.

ctrl + alt + F7 to get back to graphical and login normally.

If you can't boot to login screen, use A.B's guide for recovery mode.


Ubuntu 12.04 64 bit doesn't work on a win7 with check point full disk encryption

In this case, your boot options are encrypted, as well as the Ubuntu installation image and hard disk images.  Even if you managed to make the boot options visible it would not be possible to boot/install Ubuntu because you are using an unsupported full-disk encryption scheme.  If this were even supported in userspace, it would still not work because the initramfs image used to boot Ubuntu uses ntfs-3g, which cannot decrypt your files.

The only way to install Ubuntu on your computer is to use a virtual machine or repartition your hard drive.


X handles the clipboard and you can read about it here.
https://specifications.freedesktop.org/clipboards-spec/clipboards-latest.txt

X11 the clipboard which is known as selections are defined in the ICCCM.
https://www.x.org/releases/X11R7.6/doc/xorg-docs/specs/ICCCM/icccm.html

Quoting the above link.

  There can be an arbitrary number of selections, each named by an atom.
  To conform with the inter-client conventions, however, clients need
  deal with only these three selections:

  PRIMARY

  SECONDARY

  CLIPBOARD

These selections are all stored in memory and are not written to the disk.

Worth reading is X Selections, Cut Buffers, and Kill Rings.
https://www.jwz.org/doc/x-cut-and-paste.html

Another worthwhile read is Writing a cross-platform clipboard library https://jtanx.github.io/2016/08/19/a-cross-platform-clipboard-library/

If you're interested in how to interact with the X11 selections grammatically then definitely check out the xclip source code on GitHub. https://github.com/astrand/xclip


How do I fix 404 error when updating package lists?

The apt-get update in your question states that gnome-shell-extensions/ppa does not have packages for Ubuntu 18.04 LTS Bionic Beaver.

You should simply disable this repository with

sudo add-apt-repository -r ppa:gnome-shell-extensions/ppa

And then continue to use apt as usual.


Huawei EC156 modem no longer detected after disconnected

Probably you could have tried what i'm about to say.

lsusb

usb-devices

The above commands will list the usb-devices plugged in to your machine.

However the following method works charm for me every time. Plug the usb device before you turn on your laptop.

After login, please enter the following commands in your terminal:

dmesg -c

Please note down the prints that your modem is detected.

lsusb

And get your device's vendor & product id.

modprobe option

service network-manager restart

echo 12D1 140C > /sys/bus/usb-serial/drivers/option1/new_id

dmesg

Now you must see some changes in dmesg detecting your usb device as a modem. If not, after dmesg -c, try modprobe -r usb_storage which will remove the support for usb storage devices. Sometimes your modem gets detected as usb storage.
After your modem is detected, you can re-enable usb storage by modprobe option.

Hope this will help.


Samba server not reading config file or config file incorrect

Change this:
[share]
    comment = Ubuntu File Server Share
    path = /media/david/Elements
    read only = No
    create mask = 0755
    guest ok = Yes

To this:
[share]
    comment = Ubuntu File Server Share
    path = /media/david/Elements
    read only = No
    create mask = 0755
    guest ok = Yes
    force user = david

Then restart smbd:
sudo service smbd restart

/media/david by design allows only david to get to the Elements folder. force user makes the "guest" network user appear to be "david" - at least for this share.
You have another problem with the host name of your machine which we can fix but see how far this gets you.


I also struggled with this and finally came up with a solution:

https://gist.github.com/ps1dr3x/b15c62eafb388ddf8bb7d3896d1a1cee

Basically you can turn on/off the keyboard backlight by changing the brightness value in /sys/class/leds/input/brightness

e.g.

sudo sh -c 'echo 1 > /sys/class/leds/input0::scrolllock/brightness'

P.s. input might be different


Keyboard shortcuts not working in gnome-shell 3.2?

ok so by default Alt+F2 doesn't work in gnome shell [source: http://www.webupd8.org/2011/10/things-to-tweak-after-installing-ubuntu.html]
 Here is solution they have provided:

  To fix it, open "System Settings" and under Keyboard > Shortcuts > System, click "Disabled" next to "Show the run command prompt" and press Alt + F2 - this should set Alt + F2 for running the command prompt.


How to login using Ubuntu single sign on?

That API is intended for creating desktop applications using the native widget set, rather than in-browser applications or integrating with a different site. For the latter you can do standard oauth; the user authorization url is https://one.ubuntu.com/oauth/authorize/ (you can add a description via the query), the request URL is .../request/, and access token is .../access/.


Need Help Installing SuperMongo on Ubuntu 18.04

I've got a very similar issue on ubuntu 20.04 when installing supermongo. First, it seems that it is very important to use the latest distribution of SM which you can get from www.astro.princeton.edu/~rhl/sm/distribution/sm-latest.tar.gz (this is not a free program, so you will need a username and password for this step).
Next, you need to have 32-bit libraries enabled in ubuntu 20.04. Do something like
sudo dpkg --add-architecture i386

sudo apt-get update

sudo apt-get dist-upgrade

sudo apt install libx11-dev

Then you install the sm. Just follow the instructions, in option I use macro size = 999999, float = double, char-length vector size = 156, and integers = LONG format.
Now the SM runs nicely in xgterm (usually as xgterm -sb which gives you also the scroll bar). Possibly you are an astronomer, so you will need iraf anyway, and xgterm is part of it. So obtain iraf from
github.com/iraf-community/iraf/blob/main/INSTALL.md
(be sure to move tar.gz to a suitable directory, e.g. /home/tomaz/iraf, before unpacking) then follow the instructions on the page above.
From the page https://github.com/iraf-community/ you can download also the X11iraf tools, which include xgterm.


If your showmount -e shows you the correct shares, you may have mapped UID/GID incorrectly.

From this how to page:

Note regarding UID/GID permissions on NFSv4 without Kerberos
    To make UID/GUD work as with NFSv3, set sec=sys both in the server's /etc/export and in the client's /etc/fstab. This will make

  NFSv4 work with the old host-based security scheme.

    They do not work. Can someone please help investigating? Following this guide will result in UID/GID on the export being

  generic despite having same UID on client and server. (According to my
  experience it works at least with "precise", if uid/gid are equal on
  both sides. hwehner) Mounting same share on NFSv3 works correctly with
  regards to UID/GID. Does this need Kerberos to work fully? According
  to http://arstechnica.com/civis/viewtopic.php?f=16&t=1128994 and
  http://opensolaris.org/jive/thread.jspa?threadID=68381 you need to use
  Kerberos for the mapping to have any effect.

    This is a possibly related bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=500778

  Not clear what is meant by UID/GID on the export being generic. This
  guide does not explicitly state that idmapd must also run on the
  client side, i.e. /etc/default/nfs-common needs the same settings as
  described in the server section. If idmapd is running the UID/GID are
  mapped correctly. Check with ps ax|grep rpc that rpc.idmapd is
  running.

I know that it's not clear but it's the only possible answer that I can give (as I'm also seeking the answer).

EDIT: As stated here, Kerberos isn't needed.


Which package of MySQL should I choose from the software center?

You may need to install both client and server

Server:  Which manages your database and stores data.

Client:  Provides an interface to run the SQL


Have you tried installing the proprietary drivers for Nvidia? I did and my system has had fewer kinks since then, including the ability to shutdown.

To check to see if this works:

Go to System Settings > Additional Drivers
Look for the Nvidia driver that is inactive and click Activate and it will be downloaded and installed
Force shutdown and reboot

and it should be fixed!


How to get Xorg to ignore certain input devices?

Input devices are now managed in /usr/share/X11/xorg.conf.d/ (in 10.04 Lucid, the directory is /usr/lib/X11/xorg.conf.d/).

This directory contains configuration rules for all your input devices:

root@3000-G530:/usr/share/X11/xorg.conf.d# ls
10-evdev.conf      50-vmmouse.conf  51-synaptics-quirks.conf
50-synaptics.conf  50-wacom.conf    60-magictrackpad.conf

You fist need to find your input device there, note that those files are "rules" matching a number of possible devices. 50-wacom.conf for example will handle every wacom device. Look throgh them to find which one is responsible for your device, or create your own.

To disable a device:

Add the option Option "Ignore" "true" to the relevant configuration file.

Open the file with root privileges (i.e. press Alt+F2 and type gksu gedit) and add this option to the others.

Log out and back in for the changes to take effect.


How to install Ubuntu Server 12.10 on Proliant Microserver?

Have you tried changing the boot order on the bios? It's probably trying to boot from the first hard-drive instead of the fifth.


Unable to use Phpmyadmin, settings prompt gives an error while installing

Good that you mentioned about the error you got while installing phpmyadmin. While installing, the settings window was not able to save required configs for some reason(probably permission issues) run the below code to invoke the phphmyadmin from the terminal settings page and follow the instructions.

sudo dpkg-reconfigure phpmyadmin


How to set "outline" as the default option in the Evince dropdown menu?

Evince 3.28.4

Select "Save Current Settings as Default" option in File options as shown in the picture and viola! The outline view will be set as default.


Ubuntu fails to boot after upgrade from 18.04 to 19.1

This isn't much of an answer to my original question, but I'm including it in case it is useful to someone. After a number additional reboots and other troubleshooting steps, Ubuntu 19.10 completed its boot sequence successfully. That behavior has continued following numerous additional reboots. I have no idea of what changed the boot behavior, but whatever the problem was it prevented me from entering the BIOS setup (using the Delete key) and precluded booting from the DVD drive. Now that the unknown error has disappeared, both options work again. Not very satisfying, but at least Ubuntu is operational again.


I don't know if it helps you, but in my case there were some system (systemd) startup scripts that wouldn't finish until their timeout (Usually 90 seconds).
Find more at https://unix.stackexchange.com/questions/186162/how-to-change-timeout-in-systemctl and the link there.
I also experienced the same with shutdown.
Often, the things those scripts wanted to do were already done after some seconds, but the script wasn't informed about it, so it sits there and waits for its timeout...


I think when you restart the computer at startup Teamviewer loading faster then the daemon itself, so thats why the error message: "please start daemon" bla bla bla.

My solution was that add a sleep 5 value in the /opt/teamviewer/tv_bin/script/teamviewer file. So to clarify my file looks like:

#!/bin/bash

# If you see this message, you probably attempted to start TeamViewer.
# Please open a terminal (Konsole, gnome-terminal, xterm),
# navigate to this folder (type 'cd /path/to/teamviewer' [Enter])
# then execute TeamViewer (type './teamviewer' [Enter])

sleep 5 #added line#
TV_SCRIPT_DIR="$(dirname "$(readlink -e "$0")")"
source "$TV_SCRIPT_DIR/tvw_main"

Main "$@"

Worked for me on Manjaro x64 0.8.13


At the top of the page on the link you gave there is the option to download the patch. Do this then follow the steps found here:  http://www.linuxheadquarters.com/howto/tuning/kernelpatch.shtml (basically extract into the /usr/src/linux [where the kernel source lives if you have it - the link explains how to get it if you haven't then use the patch command patch -p1 < patchname] then configure and replace existing kernel)  Back Up BEFORE you try to do have a new (patched) kernel  edit:  this is the address.    https://patchwork.kernel.org/patch/2326461/raw/


How to backup the XBMC database (Actor information, cover art...)

The XBMC database is fully stored within ~/.xbmc/userdata and it should be sufficient to just archive ~/.xbmc and restore it.
However, for peace of mind, you may also want to consider using the XBMC:backup plugin and exporting/importing the database.

Source: XBMC Forums thread


How to Change the Default Button Locations in KDE Plasma 5.8?

KDE Plasma 5 button places

By KDE Window Decoration Handbook:
(KDE System Settings > Application Style > Window Decorations > Help - lower left corner help !)

  Buttons

  This tab allows you to customize the button location on the titlebar.
  You can drag buttons into the titlebar, remove them or drag around the
  buttons until you have the order that makes you comfortable.


Ubuntu 18.04 Libre Office changing default format settings not possible

Works in my Ubuntu 18.04. That is to be saved as Template.

To save the Template.

Create a document and the content and formatting styles that you want.
Choose File - Templates - Save As Template.
In the New Template box, type a name for the new template.
In the dialog that appears, double-click the "My Templates" folder, and then click Save. You will then be prompted for a name; write it and click OK.

To open the template.

Choose File - New - Templates.
Click on Templates.
Choose your template in My Templates.

To make it a default Template.

Choose File - New - Templates.
Double-click the "My Templates" folder.
Click on the template that you created, and click Set as Default.
Close the dialog.


Overwrote files on NTFS partition as blank -- how to prevent in the future?

two ways to do it:

From the CLI

first, run lsblk and make a note of which partition you want to make read only. If you only have one drive, it will likely be /dev/sda# where # is the number of your NTFS partition.

open up a terminal and run sudo nano /etc/fstab. This will give you a file that looks something like this:

To make a drive read only here (let's assume your NTFS partiton is /dev/sda1) add a line to the bottom that says /dev/sda1 /mount/point/path auto ro 0 0

Once that's done, run sudo umount /dev/sda1, then sudo mount /dev/sda1, which will respectively unmount from your old options and remount with your new, read-only option.

From the GUI

Run the disks utility from the search menu, or run gnome-disks from the CLI.

Select the device with the partition you want to make read-only, then click the gears beneath the "Volumes" section, and click "Edit mount options"

From here, simply add 'ro' to the end of the string beneath the "Symbolic Icon Name" field. You can also choose a mount point here other than the one the system designates.

Once that's done, simply unmount and remount your drive/partition from the previous screen, and you're done; no more accidental overwrites (unless you use dd)

To remove the read only condition, you can either edit your /etc/fstab file or pull up gnome-disks again and remove the ro; basically the same thing you just did, but in reverse.


the root filesystem requires a manual fsck

You need space between command and argument. The command is fsck, and the argument is the device /dev/sda1. Try fsck /dev/sda1. Note that there is a space between fsck and /dev/sda1.

Additionally you may want to use fsck -y /dev/sda1 to answer yes automatically to any questions fsck asks.


Stuck in System is running on low-graphic mode

Try to boot in recovery mode from GRUB - press Shift on boot and select corresponding line in GRUB.

Login to the system and do the following actions:

find all packages, which have files in xrod.conf.d

dpkg -S usr/share/X11/xorg.conf.d

then reinstall the packages manually (see your output from command above)

sudo apt-get install --reinstall xserver-xorg-core


It looks like you installed Grunt globally via NPM, but did not install Grunt CLI, which puts the 'grunt' command in your system path. Try this:

npm install -g grunt-cli

See the documentation here: https://gruntjs.com/getting-started#installing-the-cli


Can I Convert KDE Neon To Ubuntu In Place?

No, you cannot convert KDE Neon to Ubuntu.
KDE Neon is an entirely different Linux distribution with different repositories.
FYI: The default flavor of Ubuntu uses the GNOME3 desktop.  If you want to use Ubuntu with KDE, you can install Kubuntu, which is an official flavor of Ubuntu.


Compiling 4.7 RC1
  The complete source code for 4.7 RC1 may be freely downloaded. Instructions on compiling and installing 4.7 RC1 are available from the 4.7 RC1 Info Page.

KDE SC 4.6.90 is the RC for KDE 4.7.

You need to compile the source files by yourself.

The final release is planned for July 27, 2011.


Ubuntu 14.04 hangs after logging in, not a video problem

Dropped down to command line and found SDA5 was full. Removed 30GB of files and could log in again.


Wireless driver installation on LG-X130 8.04

For some people the following Kernel Module works.

https://launchpad.net/~markus-tisoft/+archive/rt3090/+files/rt3090-dkms_2.3.1.3-0ubuntu0~ppa1_all.deb

Otherwise you can have a look at this thread

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


Run another command when previous command completes

&& means to run it if the previous command was successful. In Unix that generally means exit status 0.

$ ls barfoofba && echo "This will not be echo'd"
ls: cannot access 'barfoofba': No such file or directory
$ ls bar && echo "This will be echo'd"
This will be echo'd

In the first instance, ls did not succeed, so it exited with a non-zero exit status, and bash did not run the second command.

In the second example, I ls'd a existing file, so ls exited with 0 as exit status, and the command was executed.

If you want to run commands unconditionally, e.g. not dependent on the result of the first, you may separate them with ; like this

 command1; command2; command3

and so forth.

Thus you may do

ls -lR ; sleep 4 ; gnome-terminal

In addition to && and ; you have || which is the opposite of &&: Only run the command if the previous command failed with a non-zero exit status. If the first command succeeds, the next will not be executed. If it fails, the next will be executed.

So in short:

&&: Run if preceding command exited with 0
;: Run unconditionally
||: Run if preceding command exited with a non-zero exit status.
&: Run both commands in paralell, the first in background and second in foreground.


Was my computer hacked by Minecraft/Craftbukkit Initscript?

It appears you pasted some text into the terminal by accident. Since the text you copied contained carriage returns, commands were executed. I see no reason to think anything bad is happening here.
It looks like the text you pasted was, or was very similar to:
> > >For list information, ...
[ADMIN] CraftBukkit Initscript for CentOS/Fedora/Ubuntu | Bukkit ...
forums.bukkit.org › Home › Forums › Bukkit › Bukkit Tools
30 posts - 6 authors - Feb 19, 2012 30
This is an initscript to run a Minecraft or CraftBukkit server on ... CraftBukkit (pid 9037) is running. .... ERROR: Process ID list syntax error.

The output error messages you got are mostly consistent with this input. To the extent to which they are not, I suspect some characters just didn't copy and paste correctly, or that there is a discrepancy between what appeared in your Terminal window and what you were able to put into your post. I also improved the formatting in your post but perhaps I made a mistake; that could also account for the discrepancy.
I am not worried. Unless you have additional information to suggest a problem, I wouldn't recommend you be concerned either.
Here's what all your error messages mean:
bash: syntax error near unexpected token `>'

The > operator redirects the output of the command on the left to the file specified on the right. But you have more than one of these, separated from each other with spaces (so you're not making the >> operator, for instance.) That is a syntax error. > can only be followed by a valid filename.
[ADMIN]: command not found

You ran a string as a command that contained the | operator. This runs the command to the left of it, and sends (pipes) its output to be the input of the command on the right. The first word of the command on the left was [ADMIN], so it was interpreted as the name of the command and everything following it was interpreted as command-line arguments to that command.
But there is no [ADMIN] command--no shell builtin, shell alias, shell function, or program by that name. Therefore, that command was not found and could not be run.
Bukkit: command not found

This is the same situation, just on the right-hand side of the | operator.
forums.bukkit.org: command not found

You ran a command where the first word (i.e., before the first space) was forums.bukkit.org, like [ADMIN] and Bukkit, there is no command called forums.bukkit.org.
ucd@ucd-uc:~$ 30 posts - 6 authors - Feb 19, 2012 30: command not found

I'm not entirely sure what's going on here. The error message appears on a line where a command was entered, which is unusual, though it sometimes happens when a program runs and produces strange output (output without the expected carriage returns, or output produced after the program has already returned control of the terminal to the shell that invoked it.
But it's not unexpected to see another command not found error, from text that isn't commands randomly being pasted into the terminal.
bash: syntax error near unexpected token `('

The line you ran contained a leading parenthesis (and a closing one, too, but the shell never got far enough to parse that) under circumstances that didn't make sense to the shell. Parentheses are used to group commands, and the syntax you gave is inconsistent with that use.
ucd@ucd-uc:~$ Getting the process ID in a shell script

This is not output at all. This is just the last line you pasted. Since it's the last line, no carriage return was pasted. So this is just the text you pasted, on a prompt. You can press Ctrl+C to get rid of it.


When you type out an application name, do you need to click on one of the suggestions using your mouse?

You can press enter if it's a single suggestion or use tab and/or the arrow keys to navigate through the suggestions and then press enter. No need to use the mouse.

You can also double-tap enter and it will automatically just launch the first result even if it hasn't yet displayed the result in the dash.

What are Unity's keyboard and mouse shortcuts?


Let me answer my question.

Download the gnome-terminal source package

apt-get source gnome-terminal

Install the build dependencies required for gnome-terminal

sudo apt-get build-dep gnome-terminal

Rollback the change below

  https://github.com/GNOME/gnome-terminal/commit/468a18f5e21b42ee0efedf3d86203fbc4e02807e

Repackage the source code

tar zcf gnome-terminal_3.14.2.orig.tar.gz gnome-terminal-3.14.2

Build new gnome-terminal package

debuild -b

Install the new gnome-terminal package

sudo dpkg -i gnome-terminal_xxx.deb


/dev/nvme0n1p1space is full how to clean it?

If the system is consistently running out of space, check that it’s not your log files in /var/log that are causing the shortage. If you’re using Apache or nginx, check that those logs are also being properly cleaned up.


no desktop after upgrade from ubuntu 12.10 to ubuntu 13.4

Upgrading is a pathway that rarely runs smooth. It really is best to bite the bullet, back up /home then reformat & install afresh. By using an LTS you will hopefully have a stable five years of security updates, therefore wiping/installing less often. It all about the gameplan!

EDIT: Always clone your disk before commencing dist-upgrade, that way you have a fall back plan.

I hope you are able to recover a working install.


unable to boot Ubuntu from a dual boot with windows 8.1

Your problem is with your bios. After installing Ubuntu you need to select Ubuntu in your bios boot menu. The location varies with different bois.

It is in the section that covers uefi and secure boot you will see a menu listing both OS


What does the count on the Chromium Launcher Icon tell?

The counter for Chromium relates to file downloads in progress or pending.

Selecting "Tools --> Download" or pressing Ctrl+J opens chrome://downloads in a new tab and this allows you to view your download history (and also to clear it).

There are rare instances when a download waits for user approval but the message asking for confirmation was not displayed (e.g. when a script was called on a website to open a new window but closes this window again before we had a chance to see or approve a message).

The counter then helps us to see that downloads are pending. These can then  also be managed from the download history:


No; Unity does not support customizing the layout of the buttons in the panel.


Is a for loop using arrays better than using field splitting on a simple variable?

In your script $list is the same as ${list[@]}.

The latter is array syntax, but in your script it is a normal variable.

As you have no whitespace in your wmctl output items, you don't need an array, and using $list is perfectly fine.

If it was an array, $list would only be the first item of the array (=> item1) and
${list[@]} would extend to all items (=> item1 item2 item3).

But what you really wanted if it actually was an array is "${list[@]}" (with quotes) that extends to "item1" "item2" "item3", so it would not choke on whitespace.

(Read)


Getting stuck in some type of mode (super key?)

Just found out that I've been pressing the super+fn and alt all at the same time. Press super+alt to exit this mode.


Bash script with execute permissions won't run with double click

Open Nautilus.
Go to File → Preferences (in Ubuntu 14.04, you might find it under Edit → Preferences).

Go to the Behavior tab and click on Run executable text files when they are opened.

Or, choose Ask each time to be prompted every time you double click.


Is there a reason the Kernels from the Kernel PPA don't have various features turned on?

The kernels Ubuntu provides in the mainline PPA are unmodified versions of the Linux kernels found on kernel.org. They do not add any extra/additional patches when building them when compared to the officially supported Ubuntu kernel builds.

AuFS and OverlayFS are not part of the upstream kernel and thus are omitted when Ubuntu builds these mainline kernels.


Failed to initialize NVIDIA kernel module

I've fixed it.
It was the wrong gcc Version after all. My first attempt at solving it that way used the oldest gcc I had on the System, 4.9, which was the "Auto" Option. Somehow that did not add the retpotline flag to the Driver however. I tried again with gcc 5.4 and that worked.

So if you find the retpotline Thing in your log, make sure you install the Driver only while you have switched to the "Right" gcc Version, which for me was gcc (Ubuntu 5.4.0-ubuntu1-16.04.10) 5.4.0 20160609

Now the open Question remains why the crash caused my Drivers to be recompiled. I have no idea how that happened, but fact is that the Timing in the log entries Looks very much that is what happened. Or something earlier somehow recompiled the Driver and the crash was caused by that. The System had been up for 6 days straight before, Maybe somewhere some automatic update of some Kind kicked in when I wasn't Looking.


Ubuntu 20.04 to Windows 10 WIFI via crossover ethernet

I solved this problem.  The ip settings on both windows and ubuntu should be set to automatic and the ethernet cards should be connected with a regular ethernet (not crossover)  One just needs to select Both your wifi and ethernet in windows 10 adapter settings, and bridge the connections.


How to Install NDIS Driver for Huawei mobile broadband devices?

Solution for NDIS Driver failed to install problem on HUAWEI Broadband devices:

Run the below command after installing the Huawei Modem Driver with NDIS driver install failed.
  sudo gedit /usr/local/Mobile_Partner/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c

Locate to the line Ln 2718,change dbg ("cant't kmalloc dev"); to //dbg ("cant't kmalloc dev");(adding double // infront of dbg),save the file and close the terminal.

Open new terminal and Change the directory path to /usr/local/Mobile_Partner/driver by running the below command
  cd /usr/local/Mobile_Partner/driver

Reinstall the driver by running the below command
  sudo ./install

Now,it shows NDIS driver installed successfully.


TL;DR: In short, some sound devices seem to have multiple profiles and each of these profiles might expose different outputs to the Ubuntu sound settings dialog; but they can be switched by the PulseAudio Volume Control GUI.

Install pavucontrol, run it via the GUI or a CLI, and switch to the configuration tab where you'll see dropdowns for every output containing their respective sound card profiles.

In our case, one of them was HDMI; and now on the sound settings configuration dialog, the option for HDMI output appears.

  Source: My girlfriend had come across this issue on her first day of using Ubuntu on her HP laptop. The solution for her was to follow Charlie Schams's suggestion at https://askubuntu.com/a/234784/69183.


cuda-samples error when building with Nvidia-Docker?

Yes, the nvidia tutorial is not the best. You have to change the Dockerfile like this (see man diff):
2c2
< FROM nvidia/cuda
---
> FROM nvidia/cuda:11.1-devel-ubuntu20.04
9,11c9,11
< RUN apt-get update && apt-get install -y --no-install-recommends \\
<         cuda-samples-$CUDA_PKG_VERSION && \
<     rm -rf /var/lib/apt/lists/*
---
> RUN apt-get update && \
>         apt-get install -y --no-install-recommends cuda-samples-11.1 && \
>         rm -rf /var/lib/apt/lists/*
14c14
< WORKDIR /usr/local/cuda-11.1/samples/1_Utilities/deviceQuery
---
> WORKDIR /usr/local/cuda/samples/1_Utilities/deviceQuery

And then start it with
nvidia-docker container run --rm -ti --gpus all device-query


How do I properly install and configure MediaTomb?

Please note that the mediatomb runs as a service.
You can enable/disable the service by using the following steps:

A)
1. Install BootUp Manager:
    sudo apt-get install bum
2. Execute BootUp Manager:
    sudo bum
3. Disable/enable mediatomb service

B) Start/stop mediatomb service manually
    sudo service mediatomb start
    sudo service mediatomb stop
    sudo service mediatomb restart

C) Enable UI
    See following Ubuntu guide: https://help.ubuntu.com/community/MediaTomb

D) More documentation
    Of course, there is also official MediaTomb site: http://mediatomb.cc/pages/documentation_overview

E) External drive
- If you're using Ubuntu 12.10 and external drive, the drive is mapped in /media/$USER/
- MediaTomb service runs under "mediatomb" user by default
- However, external drive (when connected and mounted) has access rights to your current $USER

E.1)
=> mediatomb service (UI) is not allowed seeing the folders/files
- there are several ways how to bypass this situation. I managed to startup the mediatomb as "Startup application" when I log in to my account. So yes, I'm not using the mediatomb service and the "mediatomb process" is running also under my account.
- From my point of view, this is safer at least from the access rights point of view.

E.2) Another possible approach is running the mediatomb service under different user (you).

Maybe there are also other ways...


For anyone who encounters the same problem, this is not a satisfactory answer but at least I can now use my computer:

I reinstalled with an older version of Ubuntu (18.04) and everything works now.


Lenovo Z50-70 not resuming after hibernation

[WORKAROUND]

It's possible disable Nvidia graphics under BIOS in Lenovo laptops like Z40-70.

To do procede:

Press FN + F2 to in BIOS Configuration
Under Configuration in Graphic Device change

Discrete

to

UMA Only

This will disable NVIDIA graphics and Suspend will works on Debian, Ubuntu and derived Linux flavors. Not's the best, but is a option.


Blank screen after choosing GRUB option -- can boot from LiveCD no problem

This method can use only with remote (ssh) connection.

sudo vi /etc/default/grub

Add this:

GRUB_CMDLINE_LINUX_DEFAULT="vga=792"

GRUB VGA Modes you can see here.
Turn this on or add if you dont have it:

GRUB_TERMINAL=console


How can I access shared folders on an Ubuntu host and a Windows XP guest?

At least for Ubuntu 15.04 host system and Windows Server 2012 R2 and VirtualBox 4.3.32_Ubuntu r104062, the following works. I assume, it works the same way with other versions of Windows as guest:

Boot the Guest operating system in VirtualBox.
Select Devices > Shared Folders in the VirtualBox menu
Choose the Add button. Select the host folder you want to share
Select Auto Mount
Reboot your guest system
Now you will find your shared folder mapped as network drive on Windows. No need to fiddle around with manually booting something on Linux or Windows command line as described in this guide.


How do I recover a home directory after an upgrade?

I was under the impression that the encryption option was always stored as private or .private ( which I knew I could not be trusted with!) was accessed using a live cd using this command.

sudo find / -type d -iname '.Private' 2>/dev/null

It should then illustrate a location for your private folder like this

/media/<disk>/.ecryptfs/<user>/.Private
/media/<disk>/<user>/.Private

There is then a guide on how to remount this folder here: Encrypted Private Directory: Scroll down to the section marked 'Live CD method of opening a encrypted home directory'

Hope that helps


I ran into the same issue just now when tryna install Ubuntu 20.04 LTS on my desktop, followed instructions exactly as outlined here {https://ubuntu.com/tutorials/create-a-usb-stick-on-windows} using rufus/unetbootin - both failed. I even tried changing the text.cfg file as outlined here {https://askubuntu.com/a/51350} - nothing worked. In the end using a USB2.0 usb stick instead of 3.0 did the trick for me. Extremely frustrating experience - hope this helps someone else.


Why am I stuck at a version of a package?

If you look at the PPA's published packages for Xenial there is no 232+upstream20161120-0.master package there. For Xenial the PPA has only the indicator-session package.

It looks like232+upstream20161120-0.master is only available for Yakkety.


Definitive and immediate way to export a path

it should be either ~/.profile or .bashrc. Not both since /.bashrc is loaded -from- ~/.profile.
A non-login shell will only load ~/.bashrc and not /etc/profile, ~/.bash_profile, ~/.bash_login or ~/.profile so if that is a concern ~/.profile is not going to be used.
a non-login with no shell will load the configuration set at $BASH_ENV. Have not found what is loads but ~/.bashrc should be one of them.

Regarding your 1st bullet point:

That is probably not a good idea. And probably not how it works. When you reload environment variables they will start from empty (assuming you meant it should not empty on reloading them ;-) ).

Regarding your 2nd bullet point:

if you want it for all users use /etc/profile or /etc/environment. /etc/environment is the correct place for system wide environment variables. And also: this rules out ~/.profile.

Regarding your 3rd bullet point:

/etc/environment does not require a reboot. It requires a re-login. And it should be done with a re-login; you can source it again but that only applies to your session and what is started after you sourced it. Not for already running processes.

Nevertheless

. /etc/environment

is a method to reload all variables. But again: this does not reset them for currently running processes. Only for the current shell and newly started processes.

Regarding 4th, 5th, 6th bullet point:

Only problem I can see is it could run wild. If you add it to ~/.bashrc and source that 10, 20 times your variable is going to get flooded with the same parts.

And no and no. No security risks.


Unity is to blame.

Unit test: start a program from scratch. Move it with Alt+Left Click or just by the window title bar. Now, try moving it with a triple touch Unity gesture. Good? Now try moving it with Alt+Left Click or by the window title bar.

Unity, you are so much more evil than I took you for. I tried, I really tried to cope with you and accept you for what you are... but you are evil, twisted to the core, there is no hope for you...

Disable the Unity Grab Handles in CCSM and you'll still have multitouch movement, but without the cost of slowing everything down.


Is the Intel Thunderbolt interface supported in Ubuntu Linux?

As of May 2012, support in the Linux kernel was still buggy and being worked on. For example, hot-plugging did not work, while cold-plugging did, etc.

Considering that the new Linux kernel will only appear in Ubuntu 12.10 (October 2012), I think that's the earliest you can hope to expect partial Thunderbolt support in Ubuntu.


VirtualBox 6.0.14: shared folder doesn't appear in "/media"

Well, I answered my own question with a little searching here in StackExchange:  the virtualbox guest additions kernel modules were not installed.  And the VB documentation really didn't point that out.  So, here's what solved the problem:

On the Devices menu of the running virtual machine, click "Insert Guest Additions CD Image."
If necessary, sudo mkdir /mnt/cdrom to make a mount-point.  (You can of course use any directory as a mount-point ...)
sudo mount /dev/cdrom /mnt/cdrom to mount the CD there.
cd /mnt/cdrom to go inside.
sudo ./VBoxLinuxAdditions.run
... wait for it to do its thing ... it will compile and install the modules, but they won't be loaded yet.
sudo reboot

Now, mount | grep vboxsf will show that there now is a mounted filesystem. (This is because I specified "auto-mount" as you see in the original post.  If you don't do that, you'll have to fiddle with /etc/fstab, which I won't go into here ...)

You might find, however, that you get Permission Denied when you try to look inside!  Now's a good time to remember that you must be a member of the vboxsf group.  (ls -l /mnt/* will show the group-name and permissions mask.)  Here's what to do:

sudo usermod -a -G vboxsf yourusername (Note: with a capital -G!)  Then, log off and log back on again so that the changes take effect.  Confirm this with the groups command, which will now list this group as one that you belong to.  (Of course, you can use fuzzy GUI tools to manage the user's group memberships if you prefer.)


virtualbox-ext-pack E: Sub-process /usr/bin/dpkg returned an error code (1)

may be you have to first uninstall or remove the post-installation script ofvirtualbox-ext-pack which conflict with this new one and after that u try to install it.

try may be your problem solve:

sudo apt-get purge virtualbox

sudo apt-get update

sudo apt-get install virtualbox


Wacom Bamboo Capture CTH-470 Pen and Touch not working

The build instructions in the linked forum post are working, but not if you combine it with the PPA method. The PPA of doctormo contains outdated sources which won't work for your CTH-470 Pen & Touch.

When following the instructions from Appendix 1, you will have to run it each time your kernel updates against the new kernel. Using DKMS is recommended which will automatically create the kernel modules each time your kernel is updated. I've made the updated packages available on ppa:lekensteyn/wacom-tablet (see also What are PPAs and how do I use them?)

sudo add-apt-repository ppa:lekensteyn/wacom-tablet
sudo apt-get update
sudo apt-get install wacom-dkms

On 15 April 2012 I've added an upstream patch for supporting the Cintiq 24HD, published for Oneiric and Precise (version 0.12.1-0ubuntu1~ppa4).


How to direct Back in Time snapshots to a Samba share?

Check this link and this one.

The first one tells you about how to connect and the second one about possible problems regarding hard-links when backing up.


How to get my files back from cryptkeeper after reinstalling Ubuntu?

Just found out the solution, so decided to post it here.

Select "Import EncFS folder" and then go to the location where you had your files. Obviously there will be nothing there.

Hit Ctrl+H to show hidden files and there you go, that file will be there. Import that folder and you are good to go.


Super+W can do it but if you want to add Mouse Gestures to it, Like Gnome 3 you can do the following:

(as pointed out in comments)

Install Compiz Settings Manager
Run it, Go to Commands under General
Set Command 0 in Edge Bindings and come back to "Command" tab
Enter "xdotool key Super_L+w" in Command Line 0
Install package xdotool


Write in a terminal gnome-mplayer to launch it, if it is correctly installed.


No, you will possibly leave Ubuntu for quite a while if you do that.
Not too long ago I had a Pentium 4 2.4Ghz PC with 1Gb RAM and integrated graphics.  I was running Ubuntu 12.04 I think; it was too slow, too, too slow and laggy (for my liking anyway!).  I now have a dual core PC with 4Gb RAM and when I tried Ubuntu 13.10 it was slick and fast.

My advice is: don't ruin your Ubuntu experience by using a 10 year old PC, but get a better one, you will then be able to enjoy using Ubuntu, I bought mine for £100, so it won't cost you too much.


Where can I file a bug for having a "primary" display checkbox in gnome-display-properties?

The easiest way to file this bug in launchpad is to type the following into a terminal session

  ubuntu-bug gnome-control-center

gnome-display-properties is part of the gnome-control-center package.  I usually prefix the headline "Natty" just to make sure its recognised by the Natty developers.


You can't resize a partition while it is mounted. To get around this you can boot from a Live usb, then open a tool like gparted to resize the partition


Where can I find comprehensive documentation on the various aspects of Linux?

https://help.ubuntu.com/12.04/  is the "Official Documentation" page for Ubuntu 12.04. This breaks into further subcategoies. Additional documentation, including the various releases can also be found at http://help.ubuntu.com .


Unable to lock firefox.desktop file to dock

Here's what's worked for me, I went into the /usr/share/applications/ directory where the original firefox-esr.desktop file is kept (which was indeed locked to the dash.), Replace the Exec value in the original file with the path of your firefox executable.

vim firefox-esr
Exec=/opt/firefox/./firefox

and now you have a dash icon for your upgraded firefox (nightly) entry.


Does upstart really handle all startup scripts?

Yes on version 14; no on version 15.

On Ubuntu Linux version 14: yes, upstart truly is handling all of this.  You need to read the part of the Cookbook that discusses how it handles programs that come only with old System 5 rc scripts, and the manual page for upstart "runlevel" events.  There's a whole mechanism for invoking the old System 5 rc program.  It's just another job as far as upstart proper is concerned.

On Ubuntu Linux version 15; no, upstart is not involved any more.  systemd is handling all of this.  systemd has mechanisms for old System 5 rc scripts.  However, the /etc/init.d/postgresql file that you are looking at is irrelevant on version 15.  PostgreSQL comes with two systemd service unit files in version 15, /lib/systemd/system/postgresql@.service and /lib/systemd/system/postgresql.service.  System 5 rc stuff is thus completely ignored.

Further reading

James Hunt and Clint Byrum (2014).  "The rcjob".  Upstart Cookbook.
runlevel.  §7.  Ubuntu version 14.04 manual pages.  Canonical.
https://unix.stackexchange.com/a/200281/5132
https://superuser.com/a/912648/38062
https://askubuntu.com/a/617869/43344
https://askubuntu.com/a/613814/43344


Compare two columns from two different files and display output in new file

So, lets take a look at what you tried:
awk -F, 'NR==FNR{ arr[$2]=$2 $1; next }
{ print $0, (arr[$2]==$2 $3?"ok":"nok") }' OFS=, file2.txt file1.txt

-F, sets the field delimiter to comma, which if you look at your files is wrong.
arr[$2]=$2 $1 Your key field in file2.txt is $1, not $2.
The order of fields you assign to your arr is switched. In first part you assign $2 $1, the second part is $2 $3, but should be $3 $2 then. Or vice versa, the first part $1 $2 --
But why not assign only the run/stop value, that should be enough!

So the closest working version to your solution would be:
awk 'NR==FNR{ arr[$1]=$2 $1; next }
{ print $0, (arr[$2]==$3 $2?"ok":"nok") }' OFS=, file2.txt file1.txt

But I'd go with this:
awk '
    NR==FNR{ arr[$1]=$2;next;}
    FNR>2{ print $2,$3,(arr[$2]==$3?"ok":"nok") }
 ' file2.txt file1.txt


Just installed 15.04 I am receiving the following messages at the end of my terminal command: sudo apt-get update

The reason for this is that those repositories haven't yet been created, for whatever reason. Once they are created, they will only contain extras, but if you want these extras now, you can add the 14.10 extra repos. Comment on this answer if you want to know how. I'll add it in.


How to force gcc & ld (make wholly) use less memory?

How about adding more swap to your machine as a solution? This will add more virtual memory and may allow you to build your code without the OOM killer killing the compiler.  If you don't want to fiddle around with making your swap partition larger your could add a temporary swap file. For example, adding a file based 4GB swap:

dd if=/dev/zero of=swap.img bs=1M count=4096
mkswap swap.img
chmod 0600 swap.img
sudo chown root:root swap.img
swapon swap.img


ssh-agent is a background utility for, optionally, keeping your ssh key, so that you can start ssh without needing to type in the key each time. It's not a security risk and harmless to leave, and harmless to kill as well if you're not using ssh. Though, ordinarily it gets started around starting the X server, so that it can export a useful shell environment to let you use it without fuss, so killing it might kill the X server (which is harmless only from a narrow security point of view).

If you do want to use it, and ssh, you would first tell it your key via the ssh-add command.


You will need to type that out on the terminal.

Go to the folder where you extracted the the bedrock-server.
Right click and click on Open terminal.
It will open a terminal window for you.
Type in the command there, and there you go you have successfully started the server.

[Warning: Do not close the terminal to close the server, type "stop"
   to stop it.]

OPTIONAL

Create a file with the following contents:-

#/bin/sh
LD_LIBRARY_PATH=. ./bedrock_server

and save it as start.sh, then you can double click every time to run the server.


New computer, same RAID. MDADM won't assemble

Solution: I followed the instructions found here: Move RAID1 to new machine

In effect, I had to disconnect the drives during the installation process, then the system detected them properly once it was up and running.


Show always one specific hidden file inside a specific folder

The direct feature to selectively show hidden files is not available. The user case is also not quite clear. In principle, it is easy enough to hit Ctrl+h to quickly see a file you know is normally hidden.

There are workarounds you can use to achieve what you want, but unless you indicate why you would want to achieve this, it is a bit guessing.

If the reason is that you want quick access to a hidden file, i.e., for quick opening and editing, then you could create a link to the file, e.g. a link bashrc to the file .bashrc in the same directory. That is not more overhead than editing a .hidden configuration file.

That way, you see a file anytime that gives quick access to the hidden file.

Hard link or symbolic link?

In the old days, I would have recommended to make a hard link. However, graphical editors, upon saving, may make a copy and then rename the copy when the changed file is saved. This breaks the hard link. Therefore, I would recommend a symbolic link, that always links to the same file name, even if its inode has changed.


My application quicklist goes missing when using "quickly submitubuntu"

The App Review Board Guidelines say in the section "Packaging":

  The .desktop file is installed in the standard location /usr/share/applications, but  must have the prefix 'extras-' added to its name. Example: extras-foobar.desktop for a package named foobar.

So Quickly is doing The Right Thing here and you should rename your .desktop file.


Which apps read/write an SQLite 3 database in Ubuntu?

Try DB Browser for SQLite. From the site:

  DB Browser for SQLite is a high quality, visual, open source tool to create, design, and edit database files compatible with SQLite.

  It is for users and developers wanting to create databases, search, and edit data. It uses a familiar spreadsheet-like interface, and you don't need to learn complicated SQL commands.

  Controls and wizards are available for users to:

  Create and compact database files
  Create, define, modify and delete tables
  Create, define and delete indexes
  Browse, edit, add and delete records
  Search records
  Import and export records as text
  Import and export tables from/to CSV files
  Import and export databases from/to SQL dump files
  Issue SQL queries and inspect the results
  Examine a log of all SQL commands issued by the application

Install with sudo apt install sqlitebrowser


While installing Rhytmbox, I get the following error

Try this command :

sudo apt-get build-dep rhythmbox


I would recommend sudo gnome-disks to reconfigure the old disk. See https://wiki.gnome.org/Apps/Disks


Is there a web image gallery generator that will run on Ubuntu?

I use gThumb. It's in the default Ubuntu installation.

Just select the folder of photos you want to use and go to File --> Export To --> Web Album


Right click on the AutoRun and click "Properties", click "Permissions" then check "Execute: Allow executing file as a program", then double click the autorun file again.


Here are your options.

Use VirtualBox or something similar to actually create a virtual computer that you run Windows in.
Use Wine to run CreativeSuite. Wine is a way to run Windows software on Linux, but it's hit-or-miss.
Use CrossOvier to run CreativeSuite. CrossOver is based on Wine, but commercially supported. Unfortunately, it doesn't look like they have much in the way of CS6, though earlier versions might be better supported.

Bottom line is, you can't directly run CS6 on Linux. VirtualBox will probably be the most reliable method, but that isn't really using Linux; it's using Windows, inside Linux.

Using wine, you get all the details / problems over here


You can use any of the following constraints to pick the hardware required for particular machines or services. If you're using maas, you can set up tags on your nodes and then specify them with the tags constraint in juju; otherwise the cpu-cores, mem, and root-disk constraints may be enough for the situation you've described.

Note that the relevant part of jitsu's functionality has been consumed by juju: if you used, say, juju add-machine --constraints tags=bigserver to create a new machine, and that machine got given id 3, you could then use --to 3 with juju deploy or juju add-unit to place service units on that particular instance.


initramfs - Unable to find a medium containing a live file system

Your situation may be different, but I was trying to install using a DVD in an IDE DVD-ROM drive onto an IDE HD.  The unlikely solution for me was to change the jumpers on the back of both drives to where the DVD-ROM drive was the master and the HD was the slave (both were previously set to be assigned by BIOS).  Again, worked for me, hope it works for you.  Took me a week of pulling my hair out to figure it out.


For resolving the login issue you should be able to go into recovery mode and use "adduser " then "sudo adduser  sudo" to create another account.


How to prevent installation from ejecting cd-rom?

This is actually documented in the 10.04 Installation Guide.

It's under "Ubuntu Installer Parameters." The relevant paragraphs:

cdrom-detect/eject

By default, before rebooting, debian-installer automatically ejects the optical media used during the installation. This can be unnecessary if the system does not automatically boot off the CD. In some cases it may even be undesirable, for example if the optical drive cannot reinsert the media itself and the user is not there to do it manually. Many slot loading, slim-line, and caddy style drives cannot reload media automatically.

Set to false to disable automatic ejection, and be aware that you may need to ensure that the system does not automatically boot from the optical drive after the initial installation.


Trusty IPV6 is disabled, but applications are still binding to IPV6 address ports

You are disabling IPv6 on network interfaces, but that doesn't mean that the system doesn't have IPv6. If you want a system without IPv6 then you have to disable the ipv6 kernel module.

The usual disclaimer applies: disabling IPv6 usually is a bad idea. Better to learn to work with it.


How to have the "Restore Missing Files" function from Nautilus without installing Nautilus?

The codesearch says that it is Deja Dup Nautilus extension.

It has its code on LaunchPad and deja-dup is called from NautilusExtension.c file:

cmd = g_strdup_printf("deja-dup --restore-missing \"%s\"",
                   nautilus_file_info_get_uri(info));

g_spawn_command_line_async(cmd, NULL);

It is also known that Caja has integration with Deja Dup too via deja-dup-caja package.
So you can use Caja with this extension.

Theoretically we can try to write our extension with FileManager Actions or something similar to have this in context menu.

The complete method is the following - we need to create user-action file and place it in special folder (the method is based on this answer) :

mkdir -p ~/.local/share/file-manager/actions
cat > ~/.local/share/file-manager/actions/deja.desktop << EOF

[Desktop Entry]
Type=Action
Tooltip=Restore Missing Files
Name=Restore Missing Files
Profiles=profile-zero;
Icon=deja-dup

[X-Action-Profile profile-zero]
MimeTypes=inode/directory;
Exec=deja-dup --restore-missing %u
Name=Default profile
EOF

and use it:


How to install Sublime Text 2 instead of 3 from webupd8team PPA?

There are 2 Sublime Text PPAs and both install the correct version. You've probably used the Sublime Text 3 PPA but posted the instructions for Sublime Text 2 in your question. I just tried the Sublime Text 2 PPA and it correctly installs Sublime Text 2:

So the instructions for installing Sublime Text 2 you posted in your question are correct as long as you didn't add other PPAs:

sudo add-apt-repository ppa:webupd8team/sublime-text-2
sudo apt-get update
sudo apt-get install sublime-text

More information on the Sublime Text 2 PPA.

Or, if you want to install Sublime Text 3:

sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo apt-get update
sudo apt-get install sublime-text-installer

More information on the Sublime Text 3 PPA.

Note that you can't install both Sublime Text 2 and 3 using these PPAs - when you install one Sublime Text version, the other one is automatically removed.


IMHO it's a 99.99% likelihood that your hard drive is not long for this world.  From your post it sounds like the HDD has had a lot of bad sectors for a very long time.  At 6 years of age it is statistically well past end of life. Naturally there is a big difference between chronological age and powered up age. Time to backup everything you want to save and replace it.

A HDD should have ZERO bad sectors.  I will immediately make plans to replace any drive that has even a single bad sector.  This is simply a good best practice.

I'd recommend installing:

GSmartControl

Click on the drive you want to test and run:

Perform Tests

The above test is non-destructive.  You can also click on a drive and look at:

Device->View Details

The displayed tabs offer a LOT of information on the condition of any smart-enabled drive.

As a general practice, you should run these tests on any new drive before putting it into service and you should look at the smart info periodically to see if the drive is starting to exhibit problems.

I would be cautious about imaging a drive with so many bad sectors.  The chances that there may be corrupt data are significant.

I don't have a lot of experience with the Ubuntu distro but I'm rather surprised that with so many bad sectors the boot process doesn't force an fsck to be run.


If you are not afraid of OS reinstalling and if you use your 18.04 at home, but not on prod, than you could experiment with not supported methods. But prepare your Ubuntu installation usb flash drive before. You could encounter drivers related issues, dependency related issues which will lead you to OS reinstallation.

To update to 19.10, you could try the next:

remove old, unsupported by 19.10 packages that could be the cause of broken dependencies if you know what are these packages
move everything from /etc/apt/sources.list.d/ to some safe place and remove all packages installed from these sources with following sudo apt autoremove
leave at least one desktop manager, one desktop environment, get rid of any additional or big applications that have a lot of dependencies by purging them
sudo apt autoremove && sudo apt update && sudo apt upgrade
backup your current /etc/apt/sources.list and create the new one:

deb http://ru.archive.ubuntu.com/ubuntu/ eoan main restricted
deb http://ru.archive.ubuntu.com/ubuntu/ eoan-updates main restricted
deb http://ru.archive.ubuntu.com/ubuntu/ eoan universe
deb http://ru.archive.ubuntu.com/ubuntu/ eoan-updates universe
deb http://ru.archive.ubuntu.com/ubuntu/ eoan multiverse
deb http://ru.archive.ubuntu.com/ubuntu/ eoan-updates multiverse
deb http://security.ubuntu.com/ubuntu eoan-security main restricted
deb http://security.ubuntu.com/ubuntu eoan-security universe
deb http://security.ubuntu.com/ubuntu eoan-security multiverse

try do-release-upgrade

I've successfully upgraded 18.10 in the past, but on the VM and using fresh installed 18.10.


For those who faced with similar problem.
I switched to Wayland by clicking on the gear on desktop. Then did a login. It logins fine and displays the desktop. Then, I removed many files on home directory (not sure if they really had any impact). Then restarted. Then logged in via gnome and it worked fine.


How to automount hard disks without the need for password at login?

Check out PySDM.

  PySDM is a Storage Device Manager that
  allows full customization of hard disk
  mountpoints without manually access to
  fstab. It also allows the creation of
  udev rules for dynamic configuration
  of storage devices.


How to delete Ubuntu's hidden or trash files and folders (like .trash-1000) on Windows volumes, from Windows?

If a trash folder is created in Ubuntu on a volume that Windows can read from and write to, then you can delete it in Windows like any other folder.

That is, in Windows Explorer (the Windows file browser, not to be confused with the related Internet Explorer, a web browser):

Select the file(s) and/or folder(s) you want to permanently delete. In this case, that's the .trash-1000 folder. (This is almost certainly a folder rather than a file. But if it were a file, this would still work.)
Make sure no other files or folders are selected, to avoid accidentally deleting something you don't want to delete.
Press Shift+Delete.

This will delete the selected items. It does not send them to the Recycle Bin first. So be careful! It's still sometimes possible to recover data deleted in this way--that is, this is not a secure delete. But it's often not possible to recover data deleted in this way.

That procedure also works in Ubuntu. In almost any file browser (such as Nautilus, the default file browser; or Thunar, Xubuntu's file browser; or PCManFM, Lubuntu's file browser), you can select items and use Shift+Delete to delete them without first sending them to the trash. (But if you're in Ubuntu and wish to clear out the contents of a trash folder, you can typically just empty the trash.)

In Ubuntu, files and folders whose names start with a . are hidden by default. In just about any file browser in Ubuntu, you can press Ctrl+H to show hidden files. Pressing it again hides them again. As an alternative to the Ctrl+H shortcut key combination, you may instead check (and uncheck) View > Show Hidden Files in the menu bar.

You can see .trash-1000 in Windows, suggesting either that Windows is not treating it as a hidden file (Windows doesn't automatically do this for "dotfiles") or that you have Windows Explorer configured to show hidden files by default.

However, if you know (or believe) a hidden file is present but you can't see it in Windows, you can tell Windows Explorer to show hidden files. One way to do this, which will apply inside all folders, is to open Folder Options in the Control Panel, click the View tab, and under Advanced settings, select the "Show hidden files, folders, and drives" option button under "Hidden files and folders." (Then click Apply and OK.)

Note that you do not generally have to uncheck the separate "Hide protected operating system files (Recommended)" box, and you shouldn't uncheck that unless you know what you're doing.


Have you tried looking inside you computer, or at the plugs. plugs may not be connected correctly, and if they are Try reconnecting your video card


What's the difference between LTS and Normal releases?

There is a some nice documentation on Ubuntu releases here:

I think LTS releases are supported for around 5 years, while normal ones are supported for around 2.

When the release has reached EOL (End Of Life), there are various methods of Upgrade available - see here for one.

There are also some ridiculously long answers on Ubuntu releases, complete with a flowchart, here


You could use your crontab

Create a little script

mkdir -p ~/bin
nano ~/bin/say_hour

add the code below

#!/usr/bin/env bash
my_date=$(date +'%H:%M:%S')
padsp espeak "$my_date"

and set executable rights

chmod +x ~/bin/say_hour

Edit your crontab via

crontab -e

and add the configuration below

0 * * * * bin/say_hour

You can replace the espeak line with one of the possibilities below

sudo apt-get install espeak
espeak $(date +"%H:%M:%S")
espeak $(date +%T)

# Adjust speed with `-s`, in words per minute, default is 160
espeak -s 10 $(date +"%H:%M:%S")

or

sudo apt-get install festival
date +"%H:%M:%S" | festival --tts
date +%T | festival --tts

or

sudo apt-get install speech-dispatcher
spd-say $(date +"%H:%M:%S")
spd-say $(date +%T)

# Adjust speed with  (-100 .. 0 .. 100)
spd-say -r -50 $(date +%T)

%I – hour (01..12) format
%H – hour in (00..23) format
%M – minute (00..59)
%S – second (00..60)
%T – HH:MM:SS in 24 Format

More options via man date, man espeak, man festival and man spd-say


I'm just going to take a stab in the dark here and say that Syslinux probably isn't able to locate ldlinux.sys. ldlinux.sys is added by Syslinux when it the bootloader is installed. It is the second stage of the Syslinux bootloader (the whole bootloader doesn't fit in 412(?) bytes). The deal is, though, that it has to be at a specific point on the disk. If it's been moved from that specific location (perhaps via copy/paste) then Syslinux will not be able to find it.

The key to fixing this is to find syslinux.exe (I'm assuming you're using Windows for this process) on your drive. If you don't know where it is, look in unetbooting/pendrivelinux Program Files folders.

Take note of the above location
Open a command prompt (as Administrator)
cd "C:\path\to\syslinux.exe"
BE VERY CAREFUL HERE THAT YOU SPECIFY THE CORRECT DRIVE LETTER! syslinux -m -a F: (where F: is the drive letter of your USB drive.)
syslinux will then re-add the ldlinux.sys file, but in the correct location so that it can be read at boot.

Hopefully that should rectify your booting situation.


How to create a shortcut to start a Windows application with Wine?

WLCreator is a Python program (script) that creates Linux desktop launchers for Windows programs (using Wine).

Usage

WLCreator will try to extract icons from exe file, and to search for all ico files in exe's directory and its subdirectories, and to convert them to png files. Additionally, it will search for png files in application's main directory. After that, the user is presented with a graphical interface where he/she can choose the icon and launcher's name.

The program can also be integrated in Nautilus (as nautilus-script). This makes easy creation of launchers even easier!

You’ll need to ensure you have python-qt4, icoutils, and imagemagick installed to get full use of the application.

Download .deb package from here and once you have deb package you need to double click on it to install.

Source and further information


Ubuntu 16.04: Software updater and pip stopped working

I found, what looked like an answer that solved my problem, but it is rather a sledgehammer method that doesn't help in the long run. Deleting a whole directory is probably not the most elegant way:

sudo rm -rf /usr/local/lib/python3.5/dist-packages

Afterwards pip was not installed, so I reinstalled it with

sudo apt-get update
sudo apt-get install python3-pip

pip was back and working and the problem with the Software Updater was as expected resolved as well. This "solution" works, though it removes many libraries like matplotlib, which have to be reinstalled afterwards. But when I reinstalled matplotlib 2.1.2, the same pip error was induced. I really can't recommend this approach.

tl; dr: Don't do this.

So back to square one. What resolved the problem was to reinstall pip and every following library with sudo -H, e.g.

sudo -H apt install --reinstall python3-pip

Without the -H flag, an installation of matplotlib evoked the same pip problem. But still I got the error message. The solution seems to be this modification originating here:

  I edited line #2121~2122 of this file:
  /usr/local/lib/python3.5/dist-packages/pip/_vendor/pkg_resources/__init__.py

#orig_path.sort(key=position_in_sys_path)
#module.__path__[:] = [_normalize_cached(p) for p in orig_path]
orig_path_t = list(orig_path)
orig_path_t.sort(key=position_in_sys_path)
module.__path__[:] = [_normalize_cached(p) for p in orig_path_t]

This revived pip/pip3 and I was able to install modules. So far, everything is working. Let's hope, this will be the last of it.

Edit: One week later, the problem hasn't resurfaced, so I mark this as the accepted answer.

Edit 2: A pip update revived the problem. Seemingly, the update had overwritten the modification. It was no problem to reintroduce it again and get rid of the aberrant behaviour.


Remove MacOS partition from macbook pro retina dualboot with ubuntu mate 16.04

It looks like rEFInd is installed on your EFI System Partition (ESP), so deleting the OS X partition should not affect its operation. That said, it also looks as if the system is configured to boot through GRUB, not through rEFInd. Maybe that's deceptive (Macs can be weird in how they boot), though.

To add to your safety before deleting the OS X partition, you can download a CD-R or USB flash drive version of rEFInd from its downloads page, prepare a boot medium, and test it before you proceed. That way, if booting goes wonky, you should still be able to use rEFInd on the external medium to boot into Ubuntu on a temporary basis, and with any luck correct the problem.


Is there any Jabber client that supports popups?

I'm using pidgin on Ubuntu 14.04, which nicely pops up a message in the top right corner of the screen (as did Empathy, which I used before). I can't remember having set any specific preference to enable this.
Moreover, when a new conversation starts, the conversation window pops up (or when the conversation is still open on a different virtual desktop the pidgin icon pops up in the sidebar on the left). Do you receive notifications in the top right corner for other events, like new e-mail messages?


I assume this is all on 1 hard drive.

Yes you will need to update GRUB.

Boot into 10.10
Format the 15GB partition
Update GRUB

update-grub2

Next time you boot the 11.10 GRUB option should be gone and you'll be left with 10.10 and windows.


Installing Ubuntu as a main operating system

Me too faced this issue. I tried using the following to get through

Plex Media server

Plex has an Android app as well

Share a folder on Ubuntu PC ( you will need to install Samba )

Ubuntu and Windows networking somehow works together. I have Windows 7, Windows 10 and 16.04. And shared folder were visible on all PCs

All you have to do is use the Network icon in Ubuntu to see / fetch files from Windows PCs.


How to install all SDL libraries in Ubuntu 14.04?

For installing it:

sudo apt-get install libsdl2-2.0

and for installing everything necessary to build programs that use SDL:

sudo apt-get install libsdl2-dev


Logitech Trackman Marble cannot middle-click

Old problem, still current in Ubuntu 18.10.

libinput and evdev are the main keywords to look for in duckduckgo if you want to resolve the middle mouse button issue. Some suggestions for a solution in the following.

You phrase the question quite specific ... I guess this is about Unix style copy paste in the terminal, right ?!?

Please have a look here:

https://askubuntu.com/a/390308/354678

and very proper:

https://unix.stackexchange.com/questions/9973/configuring-mouse-for-rightleft-button-simulating-middle-click-for-copy-paste

and

https://wiki.ubuntu.com/X/Quirks#A2-button_Mice

and

How do I enable Middle mouse button emulation in 12.04 LTS?

It depends a lot on the Window manager. In XFCE different things work (because things work different) than in Gnome or Unity.

Or Wayland?!?

The confusion in config methods  makes life hard to predict.
It may help to invoke the man evdev for modern systems.

I could post example configs (my Logitech Marble Mouse trackball actually does work perfect in XFCE4: Active middle mouse button  emulation copy-paste and scrolling with the right little button). Tell me which one you'd like to see.

Just try all config advice to be found in the askubuntu etc., at least one solution will work.

Same idea, strange phrasing as well:

Chrome/Chromium middle mouse button for scroll Linux, Mac

You know this one?

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

Credits to whom it deserves: It looks to me like developers listened and enabled the middle mouse button emulation in Ubuntu 18.10 by default.
Thank you smart guys, this significantly reduces the stupid pain points in modern distros.


The side http://opart.org isn't longer available.

  This web site is for sale

Therefore

grep -rl 'opart.org' /etc/apt/ | xargs sudo sed -i '/opart\.org/d'
sudo apt-get update


Messy dual boot with Windows Server 2012 R2

Eventually, I decided Ubuntu installation was wrong although I followed the same instruction used for other machines. Maybe Ubuntu is not for server hardware? I am not sure. Anyway in the end, I removed Ubuntu partitions after deleting Grub residue in bootloader by following:

boot from DVD of Windows Server 2012 R2 -> Repair System -> Command Prompt
At command prompt: diskpart -> list vol -> (find a bootloader volume with FAT partition) -> sel vol X (X: the volume number) -> assign letter=Z: -> exit
At command prompt: Z: -> bootrec.exe /fixmbr -> bootrec.exe /fixboot -> bootrec.exe /rebuildbcd -> It will ask which OS to include among detected OS -> I selected All -> close command prompt window -> Reboot the machine
You should be able to see OS boot selection menu.

Hope it helps others with similar problems.


Ubuntu 16.04 Desktop on Gigabyte GA-C847N board - no Ethernet detected

There is a problem installing Ubuntu 64 bit on Gigabyte motherboards. Usb 2.0 and ethernet won't work.
Try to install from USB 3.0 port. It worked for me. If not, go to BIOS and change UIMMO configuraton.

This problem is fixed on this thread. It works for (all?) Gigabyte motherboards:

https://ubuntuforums.org/showthread.php?t=2111223&page=4


I cannot adjust the brightness of my Acer Travelmate 4740 laptop

I also have an Acer laptop that would not adjust brightness properly.

The following worked for me.

Open up a terminal (Applications>Accessories>Terminal) and type the following in:

gksu gedit /etc/default/grub

This will as for your password and then bring up a text editor. Find the line with "GRUB_CMDLINE_LINUX" on it and make it so that it reads the following:

GRUB_CMDLINE_LINUX="acpi_osi=Linux"

Save the file, quit, then run the following in the terminal:

sudo update-grub

This will ask for your password again. Know that it is registering your keystrokes even though nothing looks like it's happening. Just put your password in and hit enter like normal.

Once the process is completed, restart your computer. It should allow you to change your brightness now.

Best of luck, and please come back if this doesn't work.


You can configure your openvpn connection in Network Manager. Then you don't need sudo privileges to launch it once properly configured.


Checking acpi key bindings and remapping keyboard keypress events to acpi events

First, check if you have acpi service running on the other machine, with sudo systemctl status acpid or sudo service acpid status

If you do, test systemctl suspend on the other machine that does not respond to the sleep/suspend button press and see if any errors or warnings get printed.

As far as setting a custom keybinding to Pause/Break key, I would try to bind it to a script that executes systemctl suspend command , as trying to remap sleep/suspend button will require clearing the previous binding for the built-in sleep/suspend key if there is one, if I recall correctly. In other words, make a script suspendme.sh.

touch suspendme.sh
nano suspendme.sh

inside the suspendme.sh script:

#!/bin/bash
systemctl suspend

chmod u+x suspendme.sh
mv suspendme.sh /usr/local/bin/

And then you can just use "System Settings" > "Keyboard" > "Shortcuts" > "Custom Shortcuts" in both Gnome and Unity to set the shortcut. Just click on + and for the command to execute with the Pause key use suspendme.sh as it is in /usr/local/bin and will be part of the path.


warning: the following packages cannot be authenticated!

Try to add --force-yes option when you do the apt-get install. It worked for me.


How to find all dependencies not installed

Try either apt-cache showpkg <package-name> or dpkg -I <package.deb>


You can go to Nvidia's drivers page and download your video card's specific driver.

Just download the installer and run it under root permissions

Please note that you might have to run it while your X desktop is not running -  to do so just type

service lightdm stop

and run the installer.


Krita outdated version in ubuntu-disco-universe

I think it's likely that you had the snap installed rather than the debian package, or that you added the ppa.

The Ubuntu online package listing shows that the version in cosmic was 4.1.5, see the Krita package listing for cosmic.  So it's not possible that this would have gone backwards, since all package numbers must go forwards (or stay the same) during an upgrade.

The snap, however, is at 4.2 as listed by snapcraft (see top-right).

.

Even then, the package was released less than a month ago, so I'm leaning towards you having added the ppa, since upstream ppas are always ahead of every other distribution method.


As Rod said, a 64-bit installation is optimal nowadays, especially on systems with Windows 8, where there is an extra layer of protection with the UEFI.

Just download the 64-bit ISO and re-install Ubuntu. Quickest solution IMO.


A fresh install would be a clean solution to this problem.

If that is a lot of work, another idea is to use VirtualBox or Qemu/kvm to do a fresh install in a Virtual Machine, and then install the same applications that have been used on your current install. After you have that, you could make a copy of /bin from the VM, and copy that across.


No Logical Name for Wireless Adapter Ubuntu Server 12.04

Just found the solution on the Ubuntu Forums:

Had to run the following command:

sudo apt-get install firmware-b43-installer


Which motherboard manufacture(s) are the most Linux-friendly?

I think any manufacturer that supplies Linux drivers are OK.  Personally, I would use Intel or Gigabyte.  If you want complete hardware compatibility with Ubuntu, then you may want to check out the Ubuntu Hardware Support page.


What type of partition table and file system is required to make a live usb?

As other people have already said, if you use the Ubuntu's "Startup Disk Creator" and then check the filesystem type it turns out to be FAT32. But what was not said is that there is no need to format a USB disk before creating the installation/boot disk. The reason is that you are probably using the ISO image of the installation disk. The ISO image contains a complete filesystem inside (an ISO9660 file system) and is copied byte-by-byte to the USB stick.

So it does not matter what type of filesystem you create before copying ISO image, since it will be replaced by the filesystem of ISO image.

P.S. and of course there is no need to use the Ubuntu's "Startup Disk Creator" since good old dd command will do the same job much faster

$ sudo dd if=/path/to/ubuntu-16.04.4-desktop-amd64.iso of=/dev/sdX bs=2048

Note that you have to give the dd command the path to the drive /dev/sbX (i.e. USB stick), not the path to a particular partition /dev/sdX1, /dev/sdX2 or whatever.

Also note that setting blocksize bs=2048 will make the copying process much faster.


How do I install Geforce GTX 660 in 13.10

Executing sudo apt-get install nvidia-current should make it.

Please note that the nvidia-current package is located in the restricted repository.
If the package is not found. Edit the /etc/apt/sources.list file, and remove the leading # character, of the following line

#deb http://de.archive.ubuntu.com/ubuntu/ saucy main restricted

Save the file and execute sudo apt-get update && sudo apt-get install nvidia-current.

It should work


How do I start a Skype call from terminal?

yes.
Once you have logged into skype and skype is running in background open a terminal window.

skype --help   gives you a list of options

$ skype --help
Skype 4.2.0.11

Usage: skype [options]
Options:
  --dbpath=<path>       Specify an alternative path to store Skype data files.
                        Default: ~/.Skype
  --resources=<path>    Specify a path where Skype can find its resource files.
                        Default: /usr/share/skype
  --secondary           Start a secondary instance of Skype.
  --disable-api         Disable Skype Public API.
  --callto <nick>
  skype:<nick>?<action>
                        These commands allow Skype links handling.
  --pipelogin           Command line login. "echo username password | skype --pipelogin"
  --version             Display version information and exit.

so skype --callto <nickname> allows to call some one who is currently on line
There is no obvious command line indication of whether there is a successful connection or not


How to copy files while keeping directory structure?

You'll need to write a shell script for this task. I'll give it a try and comment the lines.

The first line here is just a variable where you put the absolute directory of your src tree.

SRCDIR=/dir/where/src/lives

The next line executes find. The command will put every directory path with the name test into the variable TESTDIRS.

TESTDIRS=$(find $SRCDIR -type d -name test)

Now you iterate over all found test directories

for dir in $TESTDIRS; do

This takes the actual path and removes everything including src. So you get the structure for creating the new path.

  NEWDIR=${dir##*/src}

Now create the new directories.

  mkdir -p tests/$NEWDIR

Move the old test directory to the newly created place.

  mv $dir tests/$NEWDIR

end the iteration

done

As far as I understand you this should what you want. But please test it first. There might be some caveats and running the script as is might lead to data loss.


Grub rescue help. Other answers not working

For some reason Grub is not finding the boot partition where it is supposed to be, without more information I could not tell you why.  Possible causes are: An error when updating, a corrupted Grub bootloader, or a hardware error such as a failing hard drive.  I'm sure there are others but these come to mind.

Most of the time fixing grub will solve these problems.

The easiest way to fix your grub is to use Boot-Repair

The detailed instructions and more info is HERE but the quick instructions are:

Boot into your LiveCD/USB and type the following into a terminal:

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

sudo apt-get install -y boot-repair && boot-repair

This will install and then run boot-repair in your live environment(nothing will be installed to your hard drive)

When the window pops up click Recommended Repair  this will scan your system for any OS's and then install grub with the correct information on the location of your Ubuntu partition and when you exit the live environment and reboot you should be able to load Ubuntu.

When boot-repair runs it will create a file that will be uploaded to paste.ubuntu.com note the url that it gives you and you will be able to link to it to get more help.  More information on this can be found on the link I gave above and well as more detailed instructions and information on advanced options(advanced options are usually not needed in a normal install)

If you want to check the hard drive the easiest way is with Disk Utility  which you can find in the dash by starting to type the name.  When the first window pops up click on the icon that represents your harddisk on the left and you will be presented with the following screenshot.  Click on the if the light is green where I have my mouse pointer yo should be good but if you want to test the surface of the disk you can do so by clicking that button and running the test on the next screen.  These test will be long, an hour for a large disk would not be a surprise.


Why so many files in /usr/share/app-install/desktop?

The .desktop files under /usr/share/app-install/desktop are installed by the app-install-data  package. This package provides metadata about applications that is used by the Ubuntu Software Center and (in your case) the Lubuntu Software Center. The package also contains a copy of each application's icon that is referenced from the .desktop files.

Basically, these .desktop files are very similar to the .desktop files that are used by your desktop environment's menu for launching applications. However, as you noticed, they have additional metadata added for things like popularity counts and search keywords.

And, as is probably obvious, the app-install-data package installs a full set of .desktop files and icons on all Ubuntu systems regardless of which flavor is installed, which applications are installed by default, or which applications have been installed or removed on a particular system.

The purpose of all of this is to give users a polished Software Center experience that provides information about all applications that can be installed in Ubuntu without having to query and cache all of it from a web service. The app-install-data package is built for each Ubuntu release from all known applications that are in the Ubuntu repositories. And that allows the user to open the Software Center, search for applications by name or keyword, and be able to see the same name, description, and icon that will show up in their desktop menu or launcher when they install the application.

These metadata files and icons can be removed if you want by simply uninstalling the package that contains them:

sudo apt-get remove app-install-data

Note that removing app-install-data will in turn force removal of lubuntu-software-center, lubuntu-desktop, software-center, and ubuntu-desktop. However, removal of these packages will not affect Synaptic, aptitude, apt-get, or any other front-ends for the apt package manager. Only the Ubuntu Software Center application requires these files.


Launch cvlc from the CLI on the secondary screen

I finally found some trick to do it. It is not properly with cvlc, but with vlc:

vlc --qt-fullscreen-screennumber=1 -f video.mp4

But I am not 100% satisfied, because if I interrupt the video, the GUI of VLC stays on the secondary screen, which I would prefer to avoid.


Why my wireless mouse doesn't work in Ubuntu

If you are still facing this issue, check the modules or drivers and uninstall/replug the device and see. I had the same issue where the wireless mouse was getting identified as Mosart semi 2.4G wireless but it just would NOT work!!!

And then tried the windows way of troubleshooting - uninstall/re-install drivers (pun intended) all I did was modprobe -r usbhid and plugged the nano receiver with skepticism.....but to my surprise it started to work again. I had spent close to 1-1.5 months trying to get this work and in the end all that was needed was to uninstall the driver :)

Summary

Unplug dongle.
Run modprobe -r usbhid on the command line.
Plug dongle again.


Problem opening terminal in Ubuntu 20.04

I have solved the issue by installing KDE and choosing it as my display manager.
Here is how:

Use tasksel command to install KDE plasma desktop.
In case the tasksel command is not available on your system you can install it by running sudo apt install tasksel

Run sudo tasksel install kubuntu-desktop or sudo tasksel install kubuntu-full to begin the KDE Plasma desktop installation.

When finished installation choose sddm as your display manager right after the installation finished or run sudo dpkg-reconfigure sddm

Choose the sddm and reboot the system.

Hope it will help others.


Ralink PCI Wifi adaptor intermittently drops connection

I resolved this problem by turning off power management on my card by editing the wifi power management configuration with  the command sudo gedit /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf

The file contained 2 lines:

[connection]
wifi.powersave = 3

I thought this was surprising as I knew I had disabled power management back in the 12.04 days until I realized I had done a fresh install of 16.04 rather than an upgrade on this particular system when I went from 14.04 to 16.04

I changed it to:

[connection]
wifi.powersave = 0

After a reboot I had no further problems. Wifi stayed connected reliably.


How to get only one item of the a permutation from a list of strings

Perl to the rescue!

perl -lne '$h{ join "", sort split // }++ }{ print "$h{$_} $_" for keys %h' < input_file

-n reads the input line by line
-l removes newlines from input, adds newlines to output
split // splits the string into characters
sort sorts them (hence uniqueness)
join "" creates back a single string from the list of characters
%h is a hash table, keys are the strings of sorted characters, values are numbers of occurrences: increased (++) on each encounter
}{ "Eskimo greeting" - separates the code to run after the input is exhausted


external drive is disconnecting, GParted warning "input/output error during read on /dev/sdb"

Input/output errors are most often caused by hardware issues.  These can be as simple as a loose cable, all the way up to and including a failing disk device.

Since you indicated that the disk device is sometimes not detected, the problem does seem to be hardware related.  If a new USB cable does not work, then you might also try a different USB port, or a different computer.

When an error occurs, you can also run the dmesg command to learn more about the disk device error.


I do not want to be asked for a password after being inactive

Under Settings→Security & Privacy there is an option to disable requiring the password when the screen is awakened.


Current status/known issues for DELL XPS 15z?

As to my experience (received the pc two days ago, struggled, won).

Informations here are nearly correct

https://wiki.ubuntu.com/HardwareSupport/Machines/Laptops/Dell/XPS/15z

I have to add

It boots to direct installing from USB flawless, just remember to hit any button when you get the purple screen with human = keyboard and set the acpi=off. (If the screen turns off during install hit fn+f5)
Touchpad could work out of the box with minimum capabilities (once I had to do the manual changes in the wiki page, on a latter install I hadn't to). Forget multi touch by now.
I prefer Bumbleebee on Ironhide. Install it through ppa address you can find in the GitHub. My process was:

Add bumblebee ppa
install nvida-current from restricted drivers
install bumblebee (remember to "sudo usermod -a -G bumblebee YOURUSERNAME" as said by the bumblebee readme)
install mesa-utils
reboot
try intel card with terminal command "glxspheres"
try nvidia card with terminal command "optirun glxspheres"

I'm still figuring out how to let nvidia-settings know I have nvidia-current drivers, because it doesn't detect them.
Wireless issues depend on Power Save Polling, you may find a solution on the wiki page above.


Bluetooth cannot be turned on in Ubuntu 14.04

You need the 4.4 kernel version to use this device. It can be installed to Ubuntu 14.04 by

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

Reboot after you install the kernel.

This is the commit that adds support of new Apple devices.


My presumption, Can I install through Wine with Driver downloaded for XP version.. Will this work...?

No, you can not install a driver through Wine.


Ubuntu 13.10 goes completely black after signing in after i cleaned my system with bleachbit

This could be coincidental .. I've had many many black screens of death with Ubuntu 13.10 on my HP Envy 17" ... by any chance

a) Did you before the Bleachbit do a System Update?
b) Did this update the graphics drivers? Could this be the problem?
c) Can you escape to the comman line with ?

This might help https://askubuntu.com/a/406426/234481


Check the system logs for HDD related errors. Use smartctl -a output to check for reallocated sectors count. Most probably your HDD is about to fail badly.