program program.exe has encountered wine

I downloaded the scnow.zip from splitcam.biz/download, extracted it, opened it with wine, which holds version number 1.7.44, install like so:

sudo add-apt-repository -y ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get -y install wine1.7

and got it to open op:

As you can see, I am not really amused by the application. Therefore I must bring to your attention that there already are webcam applications,that run on (Linux)Ubuntu natively. Cheese being my favorite. See here:

Image from cheese/Wikipedia

Doesn't that look better then some dodgy application you used from your Windows days???  ;-)


How to run 32-bit programs on a 64-bit system

If you install the 32-bit compatibility libraries, you should be able to run 32 bit programs normally:

sudo apt-get install ia32-libs

Note: if you use Ubuntu 13.10 or higher, you'll need install these packages instead:

sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0


Ubuntu One Music store plugin not working in Rhythmbox

From https://launchpad.net/ubuntu/+source/rhythmbox-ubuntuone-music-store/+changelog:
Deleted in oneiric-release (Reason: not ported to GTK 3, FTBFS)


Free/Open Source alternative to Teamviewer

If you're able to log in to your friend's machine over ssh, you can create a shared VNC session.

First, when you're ssh-ing, forward the VNC port too:

ssh -L 5900:localhost:5900 username@your-friends-machine

Then, on your friend's machine (ie, in the ssh session) run x11vnc to serve a shared-desktop VNC session:

x11vnc -safer -localhost -nopw -once -display :0

Then, on your local machine, connect to this VNC session over the forwarded port:

vncviewer -encodings 'tight copyrect' localhost:5900

[the -encodings 'tight copyrect' argument isn't strictly required, but it prevents vncviewer from disabling compression, which it will do when connecting to localhost]


Try resetting Unity using the instructions here.

Basically, just run

sudo apt-get install dconf-tools

to install dconf editor if you didn't have it already, then run

dconf reset -f /org/compiz/

to actually reset Unity.


You have to install Proton Bridge...

https://protonmail.com/bridge/

Then you have to configure the mail client...

https://protonmail.com/bridge/thunderbird#1


You can blacklist its kernel module. You can do that by editing blacklist.conf

sudo vi /etc/modprobe.d/blacklist.conf

You should probably add something like this:

blacklist fglrx
blacklist radeon
alias radeon off
alias lbm-radeon off

That will blacklist ATIs proprietary driver (fglrx) as well as its opensource counterpart.

Edit:

Ok, how about using vgaswitcheroo then? Add those lines to your /etc/rc.local file before exit 0:

modprobe radeon
echo OFF > /sys/kernel/debug/vgaswitcheroo/switch

That should work.


Delete pendrive partition table and make new with gparted or parted. If there will be any troubles with it you can destroy actual pendrive partition table with dd command. Before this make sure with lsblk command which of your drives is your pendrive. Assuming that your pendrive is /dev/sdc (can contain partitions  sdc1, sdc2, etc...):

sudo dd if=/dev/zero of=/dev/sdc bs=1M count=1

Be very careful, if you type wrong of device you can erase your actual hdd/ssd partition table.
After making new partition table it will be necessary to format your usb to desired filesystem.


You need to register your file type in the mime database.

This tutorial on freedesktop.org covers the details.


search for it using

apt-cache search name

like

apt-cache search transmission

gives:

conkytransmission - Transmission torrent info, for use in Conky
transgui - Remote GUI for Transmission daemon
transmission - lightweight BitTorrent client
transmission-cli - lightweight BitTorrent client (command line interface)
transmission-common - lightweight BitTorrent client (common files)
transmission-daemon - lightweight BitTorrent client (daemon)
transmission-gtk - lightweight BitTorrent client (GTK interface)
transmission-qt - lightweight BitTorrent client (Qt interface)

at the last (the most relevant results will be at the last since it is the terminal)


Error email from ZFS: "ZFS has detected an io error"

This could possibly be due to hard drive spin down.

See this answer for details on how to check and adjust your hdd spindown settings. How can I control HDD spin down time?


This SVN dump incremental using revision number may help you


I had a similar problem before. The problem turns out to be the color of the words in this embedded terminal is white, so you can't see them. Follow this linkMake gedit embedded terminal colours the same as the default terminal, you could change the color to be normal black.


Steam was working just fine until: You are missing the following 32-bit libraries, and Steam may not run:

Okay, before when I said in my question when I uninstalled Steam, apparently I didn't do THAT part right. Removing it with the Ubuntu Software app doesn't get rid of everything. I looked up a way to uninstall Steam in its entirety and found this:

sudo apt-get remove steam
sudo apt-get purge steam
rm -rf ~/.local/share/Steam && rm -rf ~/.steam

After applying all that, I reinstalled Steam and it works just fine.


Temperature and other statistics from Radeon Open Source Drivers?

Try the usual approach:

install the package lm-sensors
run sudo sensors-detect, answer all the questions
run sensors to see readings

For a GUI, you can use sensors-unity from Snapcraft.


Packages in a repository can be cryptographically signed. That's to ensure that the packages have not been tampered with. If they had been tampered with, the signature wouldn't be correct anymore.
To check the signature, your system needs the public key of the repository in question. Those keys have kind of a "shelf life", meaning they expire after a certain date. That's what happened in your case, as you can see from the error message:

The following signatures were invalid: EXPKEYSIG FE76CD923B7B38C4

EXPKEYSIG hints to "the signature key has expired" ;) And FE76CD923B7B38C4  is the id of the key in question.
So you need to get the renewed, current public key. The exact method how to get that depends on how the repository in question offers its keys. Some offer specific packages that install the public key. Others put the key in the repository as special file that you download and install with the apt-key command. Others still put the key on special key servers, where you can access them with the apt-key command. You'll want to refer to the description of the repository in question, it is probably explained there.


When the wizarad asks you what you want to do, choose "Something else" option.

Then you can manually allocate space for your partitions manually.

The "core" is called ROOT in linux. It is indicated as /.
Mount it on your SSD.
Then define / home partition for your HDD.


remove links from gnome pannel - ubuntu 16.04

Found this after a query on Google.

You need to press: super (windows key)+ alt + right-click over the
launcher you want to remove and the option to remove it will appear.


ImportError: No module named 'debconf' dpkg: error processing package update-notifier-common

Try to reinstall corresponding packages with

sudo apt-get install -f
sudo dpkg --configure -a
sudo apt-get install debconf python3-debian python3-apt update-manager-core update-notifier-common --reinstall


How to install openjfx along with openjdk-11?

I figured it out:

You have to download the latest build from the openjfx web site an run as described here:
http://mail.openjdk.java.net/pipermail/openjfx-dev/2018-May/021819.html

It seems to have gtk3 enabled by default wich did not seem as stable as gtk2. So for now I have decided to stick with oracle 10 jdk and wait for openjfx to mature and have maven packages.


I need a help with apt(annoying message)

/usr/bin/test is an important system utility, provided by the coreutils package. When you moved your script test to /usr/bin you overwrote it.

You should be able to reinstall it using

sudo apt install --reinstall coreutils

If the missing test binary is preventing apt from running at all, then you can probably replace it temporarily with a link to /bin/busybox just so that apt install --reinstall can complete

In the future, resist the urge to use /usr/bin for non-system scripts or programs - put personal scripts in ~/bin and site-wide ones in /usr/local/bin


Probably a good idea to eliminate the BIOS as a problem source especially if you are doing any overclocking.  Specifically memory overclocking.  You might also want to run memtest since issues there can cause intermittent, difficult to repeat freezes and crashes.

If you like logs, you are going to love Linux.

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

The most likely place to find something interesting is /var/log/syslog

If the system is freezing, have a terminal open running the command

tail -f /var/log/syslog

Whatever is in the last log entry would be a pretty good clue on where to start looking, especially if every time the machine freezes, the same messages show up.

You'd also probably want to disable any apps that are not part of the stable distribution set until you get it all sorted out..

There are also a few bugs in 17.04.  Here's one that may effect you

Ubuntu 17.04 Randomly Freezes

If stability is important to you, 16.04 LTS is a really stable release.


How can I remove python 3.6 installed from deadsnakes PPA after upgrade to Ubuntu 18.04?

After reading the comments below the question I successfully reinstalled python3.6 and want to share with you how I did it.

I made a backup of all my data which I would recommend to everyone trying this. Although it worked for me it may fail for some reason on your machine and you don't want to lose your data.
I made sure that the deadsnakes PPA is deactivated.
I ran the following commands to remove the old version of python3.6 without removing all the dependencies and to directly install the default version.

sudo dpkg --remove --force-depends python3.6 python3.6-minimal libpython3.6-minimal libpython3.6-stdlib
sudo apt-get install python3.6 python3.6-minimal libpython3.6-minimal libpython3.6-stdlib

I ran sudo apt-get update and sudo apt-get upgrade before rebooting my machine.

Maybe this is overcomplicated but it worked for me. Thank you very much for your comments @wjandrea, @Ray, @Zanna.


How can I revert a config file back to the originally installed version after I have edited it?

The answer provided by Ryan Thomson was heading to the right way. Still it would not be able to do the job (The details reason is given below).
The correct (and easiest) way of doing so is using -o with apt to pass dpkg option and force dpkg to ask you whether you want to retain the modified config files or the original ones. The command will be like this -
sudo apt-get --reinstall -o Dpkg::Options::="--force-confask" install foo

This would ask you a question like
Configuration file '/etc/foo/foo.conf'
 ==> Modified (by you or by a script) since installation.
     Version in package is the same as at last installation.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** foo.conf (Y/I/N/O/D/Z) [default=N] ?

You have to press either Y or I to install package maintainer's original config file. You can even press D to see what the changes or start a root shell with Z option to fix yourself.
Note: After the replacement, you'll find your modified file as at /etc/foo/foo.conf.dpkg-old

Why other options would not work?
Because the other options in dpkg doesn't work well. The options which deals with a package's config files are

--force-confmiss
--force-confnew
--force-confold
--force-confdef

--force-confmiss would not work when package version doesn't change. From man-page

If a conffile has been modified and the version in  the package  did  change,  always  install  the  new version without prompting, unless the  --force-confdef is  also  specified,  in which case the default action is preferred.

--force-confmiss works with missing conffiles. It too will fail when version didn't change. Quoting man-page

confmiss: If  a  conffile  is  missing  and  the version in the package did change, always install the missing conffile  without prompting.  This  is  dangerous, since it means not preserving a change (removing) made to the file

--force-confold will retain modified version only if the version is changed. For same package, it too will fail. Quoting man-page

confold: If a conffile has been modified and the version in the package  did  change, always  keep  the  old  version   without prompting,  unless  the  --force-confdef  is  also specified, in which case the default action is preferred.

--force-confdef will also fail because the default action is to retain older file (Indicated from the message shown with --force-confask. It has line (Y/I/N/O/D/Z) [default=N] which means retaining is default. See above). And if --force-confnew is specified but version do not change, that too will not work. Quoting man-page

confdef:  If a conffile has been modified and the version in the package did  change, always choose the default action without prompting. If there is no default action it will stop to ask the user  unless  --force-confnew  or  --force-confold  is also been given, in which case it  will  use  that  to  decide  the  final action.

Only --force-confask will work, because it will explicitly ask you the question even when the version is same. Quoting man-page

confask: If a conffile has been modified always offer to replace it with the version in the package, even if the version in the package did  not  change  (since  dpkg  1.15.8). If  any  of --force-confmiss, --force-confnew, --force-confold, or --force-confdef  is also given, it will be used to decide the final action.

Hope that will help.


Where is ControlPanel or jcontrol for openjdk 1.8_222?

You have openjdk-8-jdk installed in Ubuntu 18.04. You can use exactly the same command line utilities with OpenJDK as with Oracle JDK, but ControlPanel and jcontrol do not exist in openjdk-8-jdk in Ubuntu 18.04.

The GUI in openjdk-8-jdk in Ubuntu 18.04 is named JConsole. The JConsole graphical user interface is a monitoring tool that uses the extensive instrumentation of the Java Virtual Machine (Java VM) to provide information about the performance and resource consumption of applications running on the Java platform. Once you have connected JConsole to an application, JConsole is composed of six tabs: Overview, Memory, Threads, Classes, VM Summary and MBeans.

$ java -version
openjdk version "1.8.0_222"
OpenJDK Runtime Environment (build 1.8.0_222-8u222-b10-1ubuntu1~18.04.1-b10)
OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode)
$ which java
/usr/bin/java
$ cd /usr/bin # path to jconsole
$ jconsole

The command jconsole will open the JConsole window.


How do I update shadow file password hashes after changing the encryption method?

The new hashing algorithm will be used only when creating new hashes. The old hashes in /etc/shadow will be still supported. All users would have to change the password to apply the new algorithm to their hashed password.

Being able to rehash existing passwords would really beat the purpose.


You have to install an X server and than ssh to your machine using the -X flag in order to enable te X11 forwarding


How to define two variable x=20, y=5 and then to print division of x and y (i.e. x/y) bash script

You need to add $ in front of a variable name to refer to its contents.

pilot6@Pilot6:~$ x=20
pilot6@Pilot6:~$ y=5
pilot6@Pilot6:~$ expr $x / $y
4


Text editor with multi-pattern search and replace at once?

...why not use a script? Check xclip (sudo apt-get install xclip)

 xclip -o -selection clipboard

will send the clipboard to standard output, and with -i you can replace the clipboard.
So

 xclip -o -selection clipboard | sed "s/change this/to this/" | xclip -i -selection clipboard

will apply the change to the selection, and now you can paste it.

If you want a graphical thing, you can embed the script with yad:

#! /bin/bash
#
yad --title Choose --button One:1 --button Two:2 --button Three:3
choice=$?
case $choice in
        1)
        xclip -o -selection clipboard |
                sed "s/one/uno/" |
                xclip -i -selection clipboard
        xclip -o selection clipboard
        ;;
        2)
        xclip -o -selection clipboard |
                sed "s/two/dos/" |
                xclip -i -selection clipboard
        xclip -o selection clipboard
        ;;
        3)
        echo "executing 3 --- well, you got the idea"
        ;;
esac

That will show you a dialog like this:

Notice that the script will both modify the clipboard (paste) buffer and print it.
To embed this in an editor, for example vim, you can do the following:

Add to your .vimrc:

nmap <F4> :r ! /path/to/the/script <CR>

run for example gvim.
Now you copy the text, go the the editor, press F4. Choose the change you want to apply.
The text will appear in the editor. If it's ok as is, you can paste it. Otherwise
Edit the text and copy it again. (In gvim, you can select the text with the mouse and simply choose paste --- or learn the vim commands, whatever).

It could be optimized for sure (you probably can easily define another key to select and paste the modified text so that you have even less keypress to use)


I've had a similar problem, except I was accessing a website from my university on port 8080 and was redirected to canonical.com.

It seems that canonical.com is set to port 8080 on Ubuntu computers at least as I can't access any other website on that port whether or not I'm port tunnelling. I don't know how to stop this but try tunnelling on any other port ( ex. port: 9000 ) and it should work perfectly while you're logged in and then stop when you log out.


Is there anything analoguos to Task Manager?(kill specific programs)

You can use htop. One of the features is killing processes using F9.


How can I get and install Intel GMA HD Driver on Acer Aspire One D255

Try 'software sources' and go to 'additional drivers' tab.

You may find your Driver there :)

If you don't find it there then try looking here :

Search here for Intel Drivers : http://downloadcenter.intel.com/


Adding a launcher item for a terminal program that has no UI

You can use "Main Menu" app (install with sudo apt install alacarte).
Run it from Dash or from Terminal (alacarte).
Then you can add launcher item:

Choose category from list on left
Click "New item" button
Insert needed information into fields
Click "OK" and close.

Now you should have your icon on launcher.


touchpad pointer moves randomly upon release

In dash , search for touchpad, a window opens. Go to touchpad section and try changing acceleration and sensitivity in Pointer speed section - In my case which are default they are zero


I want to move both .h and .c files from src to dst

You can do it in the following format:

mv *.[ch] ~/

More info can be found in glob wiki

  Globs

  "Glob" is the common name for a set of Bash features that match or
  expand specific types of patterns. Some synonyms for globbing
  (depending on the context in which it appears) are pattern matching,
  pattern expansion, filename expansion, and so on. A glob may look like
  *.txt and, when used to match filenames, is sometimes called a "wildcard".

  *.[ch] Matches any string ending with .c or .h
  [abcd] Matches a or b or c or d


Create separate text file to list the contents in each directory and subdirectory

The script below will add a list to all sub- dirs from a directory recursively:

#!/usr/bin/env python3
import os
import sys

for root, dirs, files in os.walk(sys.argv[1]):
    for dr in dirs:
        dr = os.path.join(root, dr)
        open(os.path.join(dr, "list.txt"), "wt").write(
            ",".join(f for f in os.listdir(dr) if f != "list.txt")
            )

To use

Copy the script into an empty file, save it as dirlists.py
Run it with the main directory as argument:

python3 /path/to/dirlists.py /path/to/maindirectory

Note

As mentioned, the script adds a list.txt to all subdirs. If you also need or want to have a list in the main (root) -dir of your directory, please mention.

Explanation

List (walk through) all directories recursively inside a directory:

for root, dirs, files in os.walk(sys.argv[1]):
    for dr in dirs:
        dr = os.path.join(root, dr)

Create a list of content for each of them:

os.listdir(dr)

Open (create if necessary) the text file and write the listed content, excluding possible earlier files named list.txt:

open(os.path.join(dr, "list.txt"), "wt").write(
    ",".join(f for f in os.listdir(dr) if f != "list.txt")
    )

EDIT

As requested in a comment:

In case you need the line in list.txt to end with a comma, simply replace:

",".join(f for f in os.listdir(dr) if f != "list.txt")

by:

",".join(f for f in os.listdir(dr) if f != "list.txt")+","

mind the indentation, place the replacement at the exact same position


Kubuntu text trails on window move/scroll

Ok, the problem was with monitor internal settings (overdrive). That explains why I saw same artifacts on recorded video too. I turn off overdrive and everything is perfect now.


How to resize a Windows partition after Ubuntu installed?

Boot from Ubuntu installation media - select Try Ubuntu without installing.

Open GParted (partition editor) - press the Windows key and type GParted.

Shrink partition 3 (Windows).

Move partition 4 to the left.
Move partition 5 to the left.
Move partition 6 to the left.

Grow partition 6 (free space)


If there is a Cyanogenmod 10.1 build for the GT-i9100, you (in theory) can run ubuntu touch. I believe what you have to do is first flash CM 10.1 (ubuntu is a chroot in CM) in recovery mode and then flash "raring-preinstalled-phablet-armhf.zip." Be sure to do a factory reset before wiping and you must a compatible recover such as TWRP or CWM.

**Hint: use the i777 build of CyanogenMod


HD 6770M low graphics mode after update (AGAIN)

What happens reinstalling only the ati driver again? Sometimes I have the same problem (Black Screen/Wrong resolution) So I go to shell and reinstall the display drivers. After reboot all works fine for me.
I have to do this on every kernel update.
Maybe it can help you.


How to install 32-bit Ubuntu server alongside 32-bit Ubuntu 12.04

Yes, Via along side installation you can boot into Ubuntu server or Desktop using grub2 boot menu!


Follow these steps:

sudo chown root:root yourscript.conf
sudo chmod 644 yourscript.conf
sudo mv yourscript.conf /etc/init
cd /etc/init.d
sudo ln -s /lib/init/upstart-job yourscript


VMware Workstation 10 at startup vmmon error

Run this from the command line:

 sudo vmware-modconfig --console --install-all

Then start the vmplayer.


How to switch from libinput to synaptics in Ubuntu 20.04LTS?

The situation hasn't changed since from libinput to synaptics in 18-04: some users have problems, some have none.  I don't know why.

I installed and for some reason it did not work so I renamed the files in /usr/share/X11/xorg.conf.d as shown above but this did not work either.

Anyway, after removing, installing again, restarting, synaptics drives the touchpad and the standard configuration is already good.


A developer of relinux can produce absolute answer for your question. You can contact them here and you can ask your question.

https://launchpad.net/relinux and click at ask Question.


What file is sourced/executed when logging in?

You can add them to ~/.xinitrc for instance.


Delete 4K Video Downloader and install youtube-dl (sudo snap install youtube-dl) instead. youtube-dl is a small command-line program to download videos from YouTube.com and other sites that don't provide direct links to the videos served.

youtube-dl allows the user, among other things, to choose a specific video quality to download (if available) or let the program automatically determine the best (or worst) quality video to grab. It supports downloading entire playlists and all videos from a given user.

Example:

sudo snap install youtube-dl # installs the latest version
cd ~/Desktop
snap run youtube-dl -F https://www.youtube.com/watch?v=W6NZfCO5SIk
snap run youtube-dl -f 18 https://www.youtube.com/watch?v=W6NZfCO5SIk

Note: youtube-dl is also able to recognize URLs of the form https://youtu.be/W6NZfCO5SIk


It appears that this is because of a recent kernel change, see here:
https://ubuntuforums.org/showthread.php?t=2333398

See if you have kernel 4.4.0-34 (you can do so with the command 'uname -a'). I was unable to find if a bug has been filed for this, so you may want to do so.


Convert chm to pdf or MS word or open office word processor?

I don't know of a way to do it completely on the graphical user interface, but this isn't too bad:

First, you'll need to install libchm-bin
(click to install).
Then, open a Terminal and type

extract_chmLib your_file.chm .

(Mind the full stop at the end, it
represents the current directory)
This will output a HTML file from
the chm file.
You can now open up the HTML file
with Firefox and select Print,
which will allow you to print it to
a file, outputting a PDF. Go to
"Options" to get rid the margin
notes that firefox will put into the
output.


Lost password, recovery mode doesn't help

You can boot the laptop with a live CD and chroot into the system and then change the password of any user. I have made this with the minimal installation CD from Gentoo.

Download this ISO image (or Ubuntu Live CD) and burn it or make boot-able USB with:

http://distfiles.gentoo.org/releases/amd64/autobuilds/current-iso/install-amd64-minimal-20140313.iso
You need to find out the partitions on the old laptop. Assuming that you have an IDE hard drive with only root, boot and swap partitions you do this

mount /dev/hda3 /mnt/gentoo/
mount /dev/hda1 /mng/gentoo/boot
swapon /dev/hda2

Then you need to mount proc,dev and sys

mount -t proc proc /mnt/gentoo/proc
mount --rbind /dev /mnt/gentoo/dev
mount --rbind /sys /mnt/gentoo/sys

Then you chroot

chroot /mnt/gentoo /bin/bash

After this you can change your password with passwd

I hope this help


How to check what is breaking automatic updates kernel when use apt upgrade or dist-upgrade？

Something you did on your system removed the metapackage that makes those upgrades "just work".

The linux-image-generic and linux-headers-generic packages track the latest released kernel version for your system - 4.15.0 - and you need to have them installed to get prompted for upgrades.

sudo apt install linux-image-generic linux-headers-generic should be sufficient to do this.  This should also pull in the version of the kernel package you are after, though it seems whatever mirror you're on doesn't have -52.56 but -52.54.


I was looking for this shortcut myself, and came across your question. Just figured it out (on a norwegian keyboard). alt + @ = '


I have no experience with the proxies, but you can use UFW (Uncomplicated Firewall) to redirect the outbound traffic. You can start here: https://help.ubuntu.com/community/UFW and here's how you can redirect inbound traffic: https://serverfault.com/questions/238563/can-i-use-ufw-to-setup-a-port-forward.


The short answer is : the DRM required by 40D to prevent you skipping their adverts is not compatible with linux because it has not be implemented.

I haven't managed to get 40D to work on linux for several years, there are hackish workarounds involving running windows plugins in your browser but the performance hit is huge and using wine is cumbersome and tricky.
https://community.linuxmint.com/tutorial/view/2028

You can get a free windows vm images here for testing browsers : https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/linux/
if you run them in virtualbox or vmware you can get reasonable performance but you still can't skip the adverts.

There are plenty of torrents of 40D programs available that have no adverts and will play with far less load on your system and a lot less bother on your part. It's a shame 40D is pushing people to piracy with its DRM when they could offer people who want to pay a subscription model instead of advertising. If you are in the uk you have already paid for channel 4 content via your taxes.
https://en.wikipedia.org/wiki/Channel_4#Funding


Strange characters when booting ubuntu 14.04.2 with TEXT mode

Unfortunately, I don't think that this is related to software problem or OS problem at all, I think that your graphic card is at the end of life. Three days ago card on my laptop died and it was showing same characters on display, they appeared in BIOS and when starting system, and GUI can't even start any more. I hope that I'm wrong but...


Why won't "MyApp.Desktop" launcher appear in "Show Applications"?

First of all, the file needs to end with .desktop with no capital letters. Linux is case-sensitive.

Secondly, you need to have a Name= field before you can declare region-specific ones. Removing [en_US] from your file is the simplest fix. You can also have both a Name= and Name[en_US]= field.

For more information, you can view an example file here: https://standards.freedesktop.org/desktop-entry-spec/latest/apa.html


How to determine which WiFi technology is currently used in connection?

Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command below:

sudo lshw -class network

If you get no response, you may need to install lshw on your system.  You can install it by typing:

sudo apt-get install lshw


What is the difference between 1st and 2nd command?

The first command will install the package samba and all its dependencies.

The second command will install samba and bunch of other packages and also their dependencies.

The second command is useful when you are extending the functionality of samba and need extra packages to be present to do so.

Note that, most of these packages comes as recommended or suggested while installing samba:

$ apt-cache depends samba | grep -E 'Recommends|Suggests'
  Suggests: bind9
  Suggests: bind9utils
  Suggests: ldb-tools
  Suggests: ntp
  Suggests: smbldap-tools
  Suggests: winbind
  Suggests: ufw
  Recommends: attr
  Recommends: logrotate
  Recommends: samba-dsdb-modules
  Recommends: samba-vfs-modules

As the recommended packages are install by default, you can tell apt-get to install suggested packages:

sudo apt-get install --install-suggests samba

this will save you from typing long command line. Then you just need to install any packages explicitly from that list of yours, if missing.


How to give a software or app a specific icon?

Find the .desktop file(usually inside /usr/share/applications/ for the application you want, then open it with your favorite text editor.

You will see a line starts with Icon=. Change the path to the location of the icon(image) you want ;) Good luck!


Can a window manager force full-screen window for a program that lacks this option by itself?

If the application itself does not have "native" full screen state, the most you can do is maximize and undecorate, which will maximize and remove any window title and window border (the latter usually is already removed in maximized state).

User control on the size of how programs are launched in Linux unfortunately is limited in most common stacking window managers. In many cases, an application itself determines the size of its windows. If you are lucky, the application provides a command line option to start maximized or full screen.
A way to control how windows are resized, is to use an old utility devilspie or its equally capable successor devilspie2. Both are available in the standard Ubuntu PPA's. These utilities run as a daemon. On startup, they read configuration files in which the user defines actions that should be performed on newly created windows that meet specific criteria. As such, it can be defined that a "Foxit Reader" that has been created should be maximized.
Once properly set up, you essentially forget that devilspie (or devilspie2) is running. However, setting up takes editing configuration files to create rules in a specific syntax. You then need to make the rules sufficiently fine such that for example dialogs of the application also are not being maximized. Moreover, documentation of both tools is sparse. Finally, these tools will run only on Xorg, and not on the Wayland display server. At this stage, Ubuntu still defaults to using Xorg.
Information on each of the tools can be found on the following websites:

Devilspie: https://wiki.gnome.org/Projects/DevilsPie
Devilspie2: http://www.nongnu.org/devilspie2/

Both utilities work equally well. They have a different syntax - Devilspie2 uses Lua. Which you want to use is a matter of preference.


(Ubuntu 18.04) Music vanished from Nautilus 'Places' left sidebar, config file edit no help

You have most likely moved or deleted your Music folder hence the "Unable to find the requested file. Please try again." error message.

On every reboot ~/.config/user-dirs.conf is updated by xdg-user-dirs-update. Quoting man xdg-user-dirs-update:

  Additionally, any configured directories that point to non-existing locations are reset by pointing them to the users home directory.

Run xdg-user-dirs-update --force to both reset ~/.config/user-dirs.conf using /etc/xdg/user-dirs.defaults and to recreate any missing directories to stop this happening again.

It won't fix broken symlinks though, nor help if the symlink is into a partition which isn't mounted at boot.


How to kill libreoffice from command line

First search for open libreoffice files:

ps aux | grep libre

For example the output of mine is:

hadi  21426  0.1  0.0 205328  3468 ?        Sl   14:17   0:00 /usr/lib/libreoffice/program/oosplash --writer
hadi  21445  9.8  0.7 1269272 179872 ?      Sl   14:17   0:01 /usr/lib/libreoffice/program/soffice.bin --writer --splash-pipe=6

then

sudo kill -9 ID

the ID is the second number for (soffice.bin) not for oosplash

so in my example:

sudo kill -9 21445

You need professional Ok:

ps aux | grep -i office | awk {'print $2'} | xargs kill -9

hope this is professional in your evaluation!!

or more minified command

kill -9 `pgrep -lf soffice.bin | awk {'print $1'}`

or more minified minified minified command

pkill soffice.bin

EDIT:

All libreoffice open files take the same PID, for that you can't just kill writer and keep impess for example.

And to prove my point of view the recovery tool in office is unique for all files. What i mean if you close a writer in imporper way and then open an impress for example then impress will request you to recovery the writer file and it did so and this proves my answer


You can create a .desktop file on your desktop using your favourite text editor  and save the following code in a it.

[Desktop Entry]
Encoding=UTF-8
Name=myjavafile
Type=Application
Exec=java -jar /home/myusername/filename.jar
Icon=/path/to/java.jpg

You need to change Name and jar file name in Exec field. If you want to set an icon for it put a 128x128 .jpg or .png image for java and specify it accordingly on Icon field. Otherwise remove the last line.

Give it execution permission,

chmod +x /home/myusername/Desktop/<filename>.desktop

Now you can click on it to open your jar file using java directly.


How do I put my laptop as main screen with arandr?

just drag and drop the monitor you want to make it as the default monitor to the first position then drag the other to be beside and not down, then press save


Could not load support for `gnome': libgnome.so

This message is just a warning:

$ xscreensaver-demo
(xscreensaver-demo:2690): libglade-WARNING **: 09:55:45.071: Could not load support for >`gnome': libgnome.so: cannot open shared object file: No such file or directory

It is some kind of leftover from the past. You can simply ignore it.


modprobe of nvidia driver for GPU not loading at boot

Can you try using this cmd line in grub?

GRUB_CMDLINE_LINUX_DEFAULT="pci=nocrs pci=realloc"


Disable screen on lid close but don’t sleep

Years later, I have an answer for this.
Firstly, you want to do what I mention in the original post to make closing the lid not make the laptop sleep:
HandleLidSwitch=ignore

Secondly, you want to turn your screen off by putting something like this in your crontab (sudo crontab -e):
@reboot echo 0 | tee /sys/class/backlight/intel_backlight/brightness

This command turns the screen brightness to zero. @reboot means it'll run on system startup.
If this command doesn't work for you, try another of the commands in this stackoverflow answer.


That screen means you are having a kernel panic and it is likely during your system last update something went wrong with the kernel. it probably didn't generated initram-disk correctly and therefore the kernel goes into panic mode during boot.

If you were just typing a few words from your screenshot you will find plenty post where people had similar issues as yourself.

Here is one of the posts for example on this same forum:

  http://askubuntu.com/questions/509514/ubuntu-14-04-doesnt-boot

you can follow the instruction and restore back your system.

If you encounter any troubles you can post your queries here again then we can help.


ok I did not see it in the first wizard, but its just called "security keys" in github account security https://github.com/settings/security


sed replace string with some kind of placeholder

You can do:

sed -Ei.bak 's/^([[:blank:]]*maxretry[[:blank:]]*=).*/\1 3/' /etc/fail2ban/config.local

^([[:blank:]]*maxretry[[:blank:]]*=) matches any whitespaces (if any) at the start, then the string maxretry and then again any whitespace if present followed by = and put all of these in captured group 1 (we will refer it in the replacement pattern)
The rest is simply matched by .*
The replacement pattern, \1 3, sets the key from captured group, \1 and the we have used the value as 3.

This will set the maxretry value to 3.

Also the original file will be backup up as /etc/fail2ban/config.local.bak and the modified file will be /etc/fail2ban/config.local.

If you do not want the backup:

sed -Ei 's/^([[:blank:]]*maxretry[[:blank:]]*=).*/\1 3/' /etc/fail2ban/config.local


Fan Maxes Out and Battery Status Indicator Flashes

I have the same laptop and the same issue.

I successfully avoid the issue by not shutting it down, ever. I just suspend it and occasionally reboot it, and it works like a charm.

Here is a link with some other suggestions.

I reported this issue to the asus support and I got a really helpful "contact your nearest supplier and replace it".


Adding the following to your ~/.bashrc should complete packagenames for your apt-install alias

_apt_install_complete() {
    mapfile -t COMPREPLY < <(apt-cache --no-generate pkgnames "$2");
}
complete -F _apt_install_complete apt-install

As for a2avail, an alias will only work as the first word of a command, but you can use a variable.

a2avail=/etc/apache2/sites-available   # in ~/.bashrc

# then...
sudo cp "$a2avail"/{default,new}


AMD Ryzen 2500U blank screen on boot after update

Solution is to boot into root terminal and delete this file.

sudo rm /lib/firmware/amdgpu_raven_dmcu.bin

Worth bumping anyway as the last update restored that file which is causing the problem somehow.


You have a new revision of RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c).

The generic kernel module r8169 does not support this revision.

You can install a driver specific to this r8168 adapter released by Realtek.

Download these files to your Ubuntu Home directory

http://mirrors.kernel.org/ubuntu/pool/universe/r/r8168/r8168-dkms_8.041.00-1_all.deb
http://mirrors.kernel.org/ubuntu/pool/main/d/dkms/dkms_2.2.0.3-1.1ubuntu5.14.04.5_all.deb

then run in terminal

sudo dpkg -i dkms*.deb r8168-dkms*.deb

Reboot and test the Ethernet.


Ubuntu UEFI entry deleted. I need to restore or push another

The EFI partition just contains a FAT filesystem, so you can mount it, create a directory /EFI/ubuntu and copy /usr/lib/grub/x86_64-efi-signed/grubx64.efi.signed into /EFI/ubuntu/grubx64.efi and /usr/lib/shim/shim.efi.signed into /EFI/ubuntu/shimx64.efi.  Now if your nvram boot entry was deleted,m you will need to use efibootmgr to create another.  One real benefit of UEFI is that the bootloaders are just files which may be copied around.  The other file you will need is a copy of grub.cfg, either the "real" one from /boot/grub/grub.cfg, or a 3 line stub which pulls in the real one, looks like the below, adjust devices as needed:

search.fs_uuid 4e9797fa-2b51-4c8f-9a5c-37ee2cbf88ad root hd0,gpt7
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg


It makes absolutely no difference from the user's perspective. Whether the two OS's partitions are on the same disk or not is irrelevant. The jargon is exactly what you used, two different disks means two separate physical disks and different partitions could be either on the same disk or on separate ones.

The only difference from a practical perspective is that if you have two separate disks and one of them dies, the other will not be affected. However, it is perfectly possible that (depending on the type of failure) a particular partition gets corrupted and another on the same disc is unaffected. In fact, short of catastrophic hardware failure, problems in a single partition should not affect the others.

In any case, you will only ever be able to run a single operating system at a time. Again, this has nothing to do with whether the OSs are installed on different disks or not. You can, however, have your data spread across multiple drives and access it at the same time with no problem. For example, this is the setup of my home server:

$ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0   1.4T  0 disk
├─sda1   8:1    0   9.8G  0 part /media/Data
├─sda2   8:2    0     1K  0 part
├─sda3   8:3    0   1.2T  0 part /mnt/sda3
├─sda5   8:5    0  46.6G  0 part
├─sda6   8:6    0    14G  0 part
├─sda7   8:7    0 117.4G  0 part
└─sda8   8:8    0   2.3G  0 part
sdc      8:32   0 465.8G  0 disk
├─sdc1   8:33   0  29.3G  0 part /
├─sdc2   8:34   0 428.4G  0 part /home
└─sdc3   8:35   0     8G  0 part [SWAP]
sdb      8:16   0   1.8T  0 disk
└─sdb1   8:17   0   1.8T  0 part /mnt/sdb1

In the output above, I have 3 disks with 12 different partitions. As long as they're mounted, I can write/read data to and from any of them without any problems.

In short, just use whichever you want. The differences are not very important.


How to completely reset/format usb drive like a new drive?

It was probably FAT32. The question of "naming" the device depends on how many devices you have connected. You can see the current filesystem by executing mount.


How to open several Terminal Tabs and open files in Vim and change directory?

The closest I can find that would do this involves creating multiple scripts. gnome-terminal has changed over the years and the -x and --command options have been heavily deprecated. Your best bet is to create profiles for each of the tabs you want to run and use:

gnome-terminal --tab-with-profile=Something1 --tab-with-profile=Something2

If you're using stuff like ~ or * inside your commands it's likely those won't be evaluated since that's actually the job of the shell (bash) whereas gnome-terminal, so it might help to create an actual script somewhere and tell gnome-terminal to use that.


The image you have in your question is for creating Keyboard shortcuts.  Not just shortcuts.

The fields you see in your image are for a description and the actual command for calling your application.

The actual Keyboard shortcut comes from the key you specify for your command.

As wjandrea has said, you put a name (which is a friendly name for calling your Keyboard Shortcut) in the first field.  The second field is the actual command to run your application.

The part that you are missing is the Keyboard Shortcut.  This is the Key stroke that you will be hitting to activate the command.  This is set after you create the command... after you have filled the information in the fields of your image.

Fill in the information such as:

Name:    Terminator
Command: /usr/bin/terminator

Then click Apply

Now add the actual keyboard shortcut

Now the step that you are missing is called Activate your new shortcut by applying a key.  If you want your Keyboard Shortcut to be Ctrl+T you will assign this keyboard shortcut scroke by clicking the mouse on the word disabled  that is associated by default with your new entry.  Then hit the keystroke you want to activate your command.  In the case of the example I'm explaning, hit Ctrl+T.  The keyboard stroke you hit will from then on (unless you disable it) will launch your application.

You can disable it by clicking on the entry and hitting the backspace for the entry.

Note:

The GUI program refers to this assignment as a New accelerator.


Command works on terminal but doesn't work in cron

I had to set the path to grunt -

*/1 * * * * cd /root/dev/myapp && /usr/bin/local/grunt serve


Prior to reboot, path to new HD was correct, post reboot, name has changed

/media is for removable storage, but you can mount it there.

In your fstab the mount point is set to where you do not want it mounting. At boot, drives will be set according to what is in fstab

/dev/disk/by-uuid/c2375920-53d5-4d43-b391-7de83d698417 >>> /mnt/c2375920-53d5-4d43-b391-7de83d698417

The first part is the drive <file system> , the second part is the mount location <mount point> . You can change that to any folder that exists on your system.

If the folder doesn't exist mkdir /media/Storage then  sudo umount /mnt/c2375920-53d5-4d43-b391-7de83d698417, then edit  fstab then do sudo mount /media/Storage


Why does my hostname contain odd characters?

You can "test" a new hostname with the command :

sudo hostname new_hostname

(this will not last after reboot)

SOLUTION 1 : Edit /etc/hostname, and replace the current name imageek-DP700A3D-DM700A3D-DB701A3D-DP700A7D with the new one.

gksu gedit /etc/hostname

SOLUTION 2 : You can also use :

sysctl kernel.hostname

to read the current hostname, and

sudo sysctl kernel.hostname=NEW_HOSTNAME

to change it.

/!\ ATTENTION : When using any of those methods, you will also want to change your hostname in /etc/hosts to avoid the error message when using sudo : "sudo : unable to resolve hostname new_hostname" :

gksu gedit /etc/hosts

SOLUTION 3 : You can also do this with a graphical interface. You have to install gnome-network-admin :

sudo apt-get install gnome-network-admin


How to configure glidepoint driver for touchpad?

I had the same problem on my Latitude 6430u (pre-installed with Ubuntu 12.04) : although the touchpad completely worked (I could even "pinch to zoom") I couldn't configure it.

somewhat solved it by installing a fixed ALPS driver  :

donwloaded the driver from http://www.dahetral.com/public-download
extracted the tarball with tar xvjf psmouse-alps-1.3-alt.tbz and copied all sources to /usr/src with sudo cp -Rvup usr /
/usr/src/psmouse-alps-1.3/alps.sh dkms_build_alps
I also had to uninstall the debian package "glidepoint"

After rebooting the "touchpad" tab is back in system settings and allows me to configure a perfect two-fingers scrolling. Looks like I lost the pinch-to-zoom but I don't need it...


This problem is a known issue with the PowerPC build of Empathy. There isn't a fix available yet but if you report a bug to the powerpc publishers/developers then they can have a look at the problem.

I suspect the schema has been compiled for x86 and somehow sneaked into the ppc distribution. But I haven't dug much into it.

https://bugs.launchpad.net/empathy/


Command-line to get this system information

The actual messages displayed are stored in /etc/update-motd.d, where motd means message-of-the-day.

If we're looking at getting that information separately, there's several commands you can employ. The rest - just parsing those commands into pretty output with awk or even tr

lsb_release -a will tell you the type and version of system you have
df -h /dev/sda1 will tell you usage for your disk. /dev/sda1 can be changed to whatever partition your Ubuntu is on.
ip addr show eth0 or ifconfig eth0 will show you the IP address
uptime will tell you number of users logged in and load average
free will tell you swap and overall memory usage


I just deleted the .xmodmap file from my home directory, and everything is fixed.


“Unable to locate package” errors for all software

Well, this is normal as long as language-support-fonts-fa is not in your current repositories.

To check if a package is in the repositories, use the following command:

apt-cache search <package_name>

In this case, you can download and install manually language-support-fonts-fa package from here: http://packages.ubuntu.com/lucid/all/language-support-fonts-fa/download


Only one monitor usable with dual monitor setup (Displayport MST setup)

The kernel parameter is "radeon.mst=1" according to other sources. Not sure if both are supported in the end.


Define additional shortcut keys without overwriting existing shortcuts

To simulate keyboard events I suggest you the great tool xdotool .

1. Install xdotool via terminal (CTRL+ALT+T):

sudo apt-get install xdotool

or use  the Software Center .

2. Create a script that uses xdotool to emulate the "audio next" event from multimedia keyboards. In the terminal:

mkdir -p ~/bin
gedit ~/bin/audionext

Copy the following content into the editor window that opened up. After copying the code save, then close it:

#!/bin/sh
sleep 0.3
exec /usr/bin/xdotool key XF86AudioNext
EOF

Now make the script executable:

chmod +x ~/bin/audionext

3. Log out and log in to reload your PATH.

4. Create the custom shortcut

Go to System Settings, then go to Keyboard, then Shortcuts.

Press the + button at the bottom of the dialog. Provide a name for the shortcut you're about to create and for the command fill in: audionext. Press OK.

Next to your new shortcut you will see disabled. Click on that text and then press the keyboard combination you want to be assigned to your media keyboard emulation.

You should now be able to "audio next" with your keyboard shortcut!


how to save mysql queries automatically when a query is executed using command line terminal?

When mysql's output isn't a terminal, it assumes non-interactive usage, and waits for input to end before executing it. You can use the --tee option (or the related tee command within mysql itself). From man mysql:

--tee=file_name

Append a copy of output to the given file. This option works only in interactive mode.
the section called “MYSQL COMMANDS”, discusses tee files further.

...

tee [file_name], \T [file_name]

By using the --tee option when you invoke mysql, you can log statements and their
output. All the data displayed on the screen is appended into a given file. This can
be very useful for debugging purposes also.  mysql flushes results to the file after
each statement, just before it prints its next prompt. Tee functionality works only in
interactive mode.

You can enable this feature interactively with the tee command. Without a parameter,
the previous file is used. The tee file can be disabled with the notee command.
Executing tee again re-enables logging.

So:

mysql -u user -pmysql --tee=day1.sql


Gimp or GNU Image Manipulation Program is the best alternative for photoshop in linux.

http://www.gimp.org

Krita (no longer a part of koffice) is also good:

You can also use CinePaint


Why my X Server won't start as a regular user and it starts as Guest?

Ctrl+Alt+F1 --> sudo passwd changed my password -->

  sudo apt-get install --reinstall xorg to reinstall xorg
  -->

  cd /home/{name}to enter home folder(where .Xauthority is
  located -->

  sudo mv .Xauthority .XauthorityBak

From OP in comment.


Can't boot into Ubuntu after installation of nVidia driver

I solved this problem as follows:

Menu GRUB2 - Advanced options for Ubuntu
Ubuntu with Linux 4.4.0-21-generic (recovery mode) //kernel version is important!
When OS is booted, input the commands in terminal

sudo apt-get purge nvidia*
sudo apt-get purge nvidia-settings
sudo apt-get purge nvidia-prime

Reboot
Boot with new kernel version (4.4.0-23-generic)


How can I stop Nautilus from dereferencing symlinks?

This one is a workaround, but may not constitute the actual answer you're trying to find:

On nautilus, Ctrl+L, type in the symlink name (e.g. link or ./link), Enter. It will not dereference the symlink this time.


Increase Unity dash opacity in Ubuntu 13.10

Not sure how useful this is, since you might not like your Dash to be black...

Setting the Dash to no blur with the CompizConfig Settings Manager used to do this, but no longer. Using Unity Tweak you can make it opaque, but with the caveat that the Dash must be black. Selecting any other color will mean it's still transparent.

To install Unity Tweak, copy this into a terminal: sudo apt-get install unity-tweak-tool

Open the program, and in the Unity section click on Launcher. Then move the transparency slider to the left, and select a custom color. While any color will make the launcher opaque, only black will allow the Dash itself to be opaque.


Ubuntu 18.04 network stops working and requires restart

Try this

turn on the connectivity checking option in privacy

restart the network-manager

sudo systemctl restart network-manager.service


The server and desktop are basically the same thing but server does not have GUI stuff (xorg, desktop manager and ...) installed. On the same time server might have packages installed that would not be there if use Ubuntu on a desktop.

Before you start, it is always good to update packages list before you install something:

sudo apt-get update

The easiest solution would be to use a program called Tasksel that you can install by typing:

sudo apt-get install tasksel

Run it by typing:

sudo tasksel

It gives you a simple gui to manage larger software bundles ("LAMP server", "Ubuntu desktop", "Lubuntu desktop") that have been installed in your system. Mark the stuff you need with asterisks by selecting them with up/down arrows and pressing space. After that press enter install what you have selected. To install regular Ubuntu desktop choose "Ubuntu desktop".

If the Tasksel does not work for some reason. You can install packages that come with the regular Desktop installation (Unity) with this:

sudo apt-get install ubuntu-desktop

If you prefer Lubuntu flavour use the lubuntu-desktop package or if you prefer KDE use the kubuntu-desktop package or if you want Xfce use the xubuntu-desktop package instead of ubuntu-desktop.


I would usually suggest starting from the top:

whois the domain and make sure it's pointing at your nameserver. I don't seem to be able to do this for yours. Check with your registrar.
Check the nameserver. You've done this.
Check your local DNS. By extension check from somebody else's. I'll make that slightly easier and do it for you.

$ nslookup pcc.edu.ph
Server:     127.0.0.1
Address:    127.0.0.1#53

** server can't find pcc.edu.ph: SERVFAIL

$ ping pcc.edu.ph
ping: unknown host pcc.edu.ph

Given I couldn't get a whois response (even from their website, said it was an invalid domain) and I'm not get any resolution, I'd have to guess that the registration for the domain has lapsed in some way and is now deleted from the registry.


How do I add and call a helper script in a Juju charm?

The entire directory of the charm (the root being the dir with metadata.yaml) is bundled and unpacked on the service unit including permission bits (ownership is always transferred to root:root). Hooks are always run with the charm root as current working directory, and saved in $CHARM_DIR.

So, you can put the scripts wherever you want. There's no agreement yet on the best practice for this. Some people feel that only hooks should be in the hooks dir, and external scripts should be in a different dir off the root. Others just put everything in hooks.


Can't boot into Win7 since Update to 12.04

How to use boot-repair to provide a "Bootinfo Summary"

If you can boot Ubuntu, you can install and run the Boot-Repair tool and use it to create a BootInfo summary.

First, install the tool using apt-get. The terminal commands to do this are

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

After that completes, enter the command boot-repair to start the tool.
After a slight delay, boot-repair will prompt you to download the newest version. Since you just installed the latest version, answer No.
If boot-repair asks to install the pastebinit package, respond with Yes.
The tool will now scan your system and (eventually) display the window shown in the image below. Click on the Create a Bootinfo summary box/button. This will collect information about your system's boot configuration, but will not make any changes.

When the bootinfo summary has been created, boot-repair will display a message containing a URL which should look like this: http://paste.ubuntu.com/123456/.

Please update/edit your question and add this URL. The information in the pastebin this link points to will help us diagnose the problem.


How to get the name of the music currently playing in spotify?

Inspired by the sp-metadata function in sp, which is "a command-line client for Spotify's dbus interface" at https://gist.github.com/wandernauta/6800547, you can use the following command to get the track title:

dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:org.mpris.MediaPlayer2.Player string:Metadata | sed -n '/title/{n;p}' | cut -d '"' -f 2


Ubuntu 16.04 LTS Terminal text looking glitched

By default in gnome-terminal should be used a monospace font. Apparently for some reason your default monospace font is changed within the settings. To change the default value (system wide) you can use the tool dconf-editor. Install it by the command:

sudo apt install dconf-editor

Then open the application and press Ctrl+F and find the setting monospace-font-name. The first result should be in org>gnome>interface as it shown on the following picture. If the option line is bold that means this is not the default value. Select it and use the button Set to Default in the down right corner.

Currently I do not have Gnome Shell installed, but probably these settings are the same as in Unity.

If the above does'n help you can check your current gnome-terminal profile options. Open gnome-terminal and in the Edit menu choice Profile Preferences. In the bottom of the General tab have an Custom font option. Untick it if it is ticked (as it is shown on the picture below), or choice your desired monospace font. Within Unity this is "Ubuntu Mono Regular" with size 13.


Ubuntu 16.04 Laptop GTX 1070 Cannot Install from USB

I found out that the problem was that my laptop had the MSHYBRID option enabled by default in the BIOS. It seems that this is enables NVIDIA Optimus, which allows for the use of both GPUs (the Intel integrated and the GTX 1070), but causes a whole lot of problems with the current version of Ubuntu 16.04.

Luckily, my BIOS had the option to change MSHYBRID to DISCREET within the advanced chipset options, which means that now it will only be using the NVIDIA card.

After that everything worked perfectly. I reinstalled Ubuntu (if the USB didn't boot I would just add the "nomodeset" option to the GRUB Ubuntu option, but do not remember if it was necessary). When booting, I no longer have to change any GRUB options (so maybe the "nomodeset" was only necessary to allow for USB booting)

Still not the best option tho, as it doesn't allow me to change back to the integrated GPU when I am not working on intensive applications. There's a few solutions online, but I am happy with what I have. Fighting with a few wifi problems now...

Cheers!


Why does Ubuntu boot into a text prompt?

As you are new with Ubuntu, then I think Wubi is the best option for you. Just run your Ubuntu CD inside windows. If you auto play that CD, you'll find a option 'Install Inside Windows'. Just click on that option. Just fill the required fields, it will do the rest for you hopefully.


How do i install ubuntu on an already created partition

In the installer, when you get to the point of choosing your install location choose "other" this will give you a detailed menu allowing you to choose the partition you want to use.


How to change the prompt of a user, so that it shows the current directory?

You've tagged your question adduser but you seem to actually be using useradd: AFAIK useradd (unlike adduser) doesn't copy the skeleton files from the /etc/skel directory - in particular, it doesn't create a default ~/.bashrc for the new user.

To answer your questions point-by-point:

it is the default bash shell prompt, used in the absence of a more customized one that is usually provided by the user's ~/.bashrc file
because you didn't create the home directory for user11 (and neither useradd nor usermod -d do that for you)
either copy the default .profile and .bashrc files from /etc/skel into the users' home directories, or delete the user(s) and start over using adduser instead

See What is the difference between adduser and useradd?


How do you equally space out elements in a Row?

The simplest solution would be to set width: parent.width/4 for each of the checkboxes.  If you want to keep the checkbox width set at some known value, you could instead set spacing: (parent.width - 4 * checkboxwidth)/3 on the Row.  Note that this will cause the elements to overlap when the parent is narrow.

If you're targeting Qt 5.1 or higher, you may want a RowLayout.  I'm still on 5.0, though, so I can't help you there.

Yet another way to do this would to be to put each CheckBox in an Item.  Each Item would have width: parent.width/4, and each CheckBox would have anchors.centerIn: parent.  This would give a half-width margin on the far left and far right, which may or may not be desired.


snapd package manager problem in ubuntu 16.04 , how to resolve?

Add exit 0 after shebang to /var/lib/dpkg/info/snapd.prerm.

Next remove a package dpkg --purge --force-all snapd.

Check you pkg sources for trusty rgrep 'xenial' /etc/apt, and remove all sources that my be correspond to inproper version of snapd.

Run apt-get update, and upgrade a system to be in consistent state.


How do you partition when installing ubuntu 14.04 as sole OS?

The best is just to install clean Ubuntu by choosing "Erase everything and install Ubuntu" in the installation process. It will create all the required partitions and do everything for you.

But anyway, if you want to create the partitions manually just check this out (Fully explained with photos): How to use manual partitioning during installation?
Or check this out: https://help.ubuntu.com/community/DiskSpace

According to your hdd size:

/home 180gb
/usr 10gb
/var 2gb
/lib 5gb
/swap ~amount of RAM (2gb in your case),
/tmp equal to swap or less
etc......


One person got this to work by removing the rt2800usb module and waiting a minute or so:

sudo modprobe -r rt2800usb


Stop Ubuntu from using original swap partition

Try using gparted.

sudo apt-get install gparted

Right click your swap partition and select swapoff.


You could save the history file after every command. This trick is usually used to synchronize the history for multiple windows, but would work in your case.  See for example, this answer


Install Webcam driver (Genius facecam 300)

If you want to apply that patch, you will need to recompile the kernel.  Instructions for doing so can be found here:

https://help.ubuntu.com/community/Kernel/Compile/

With that in mind, the patch in question appears to be adding an additional USB ID to an existing driver.  It is possible to patch additional IDs into a driver at runtime, so you might be able to get get away without going through a recompile.  You may want to try this even if you plan to recompile the kernel, since it should be enough to verify that the hardware works.

First of all, load the driver in question:

sudo modprobe gspca_pac7302

Now you need to tell the driver about the new device ID:

echo 093a 2627 | sudo tee /sys/bus/usb/drivers/gspca_pac7302/new_id

At this point, the driver should bind to the new device.  If it doesn't, try unplugging and replugging it.  You should see a new /dev/videoN device file, and maybe some extra log messages in the output of dmesg when this happens.

The patch also sets a flag saying that images from this particular device are vertically flipped, so you might notice that in video applications.  I am not sure how you could fix that without the kernel recompile assuming the video application you're using doesn't have some way to correct for this.


The problem of visual artifact was wrong drivers installed on Ubuntu 16.04 to Intel HD Graphics. I -purge these drivers: xserver-xorg-video-intel and after this chrome start work perfectly. The removal of the drivers did not affect in any way the performance of the equipment or displaying graphics.


Fixing .yaml file seems to have fixed the problem (18.04 Server, Ethernet Interface seen w/ lspci, but missing from lshw -C network).
I changed enp0s7 to enp0s10 and edited the file as in the answer


How to connect WIFI printer to Ubuntu 12.04?

This should help you - https://help.ubuntu.com/community/NetworkPrintingWithUbuntu. I hope this helps you.


most probably your installation corrupt somehow. Try to uninstall skype by this, should be enough:

sudo apt-get purge skype*

or follow this question: (Uninstalling Skype 4.1 from 12.10) and  then install it again via software center or by

sudo apt-get update
sudo apt-get install skype

if update does not help probably skype is missing in your repo, then you can try to add it. Skype is in partner repository, so please check if you have canonical partners repository enabled.

If this does not help, there is a ugly way to install skype from .deb package by downloading it from the web. here are some steps that could help you: (Can't install Skype through Software Center 12.04)


When you run ps ... | grep ..., both ps and grep are started together, and the output of ps is fed to grep asynchronously. So, by the time ps scans the list of processes and prints the output, the grep process is also active, and the output of ps includes that grep process as well.

Now, if you do a simple grep foo, the output of ps will contain grep foo, and grep will match that foo:

$ ps aux | grep non-existent
muru  19042  0.0  0.0  10760  2224 pts/8    S+   23:56   0:00 grep non-existent

Obviously, there's no process named non-existent.

Instead of ps | grep, use pgrep for cleaner matching:

pgrep foo

Or ps itself, if you know the name of the command:

ps -C foo

Why grep --color...? Because Ubuntu defines an alias for grep by default:

$ alias grep
alias grep='grep --color=auto'

This is also why you see silly tricks like:

ps ... | grep foo | grep -v grep
ps ... | grep '[f]oo'


Making certain apps open everytime at certain places?

There's devilspie (or the GUI version, gdevilspie). Both versions are installable from the Software Center and allow you to define rules altering (amongst other things) the size and position of  matching windows. The community wiki can get you started on using them.

If you are using Unity (and thus Compiz), there's the Window Matching plugin, which essentially does the same thing. In order to access it, install the package compizconfig-settings-manager and start the CCSM. If you can't find the Window Matching plugin, make sure that compiz-plugins is installed.


2nd graphic board to work with XEN virtualisation?

Question 1

As long as your computer hardware can support running multiple GPUs simultaneously (motherboard has enough PCIe slots, power supply can provide the correct power to the card, etc.), then having multiple GPUs in your system will be required to accomplish your goal.

Question 2

Not necessarily, but you will need to ensure that your motherboard's BIOS has IOMMU enabled and supports GPU passthrough. You will have to check your motherboard manufacturer website to confirm where that setting is located within the BIOS. It's also a good idea to update your BIOS to the latest version if there's one available.

Have a look here as well to confirm if your GPU is supported for passthrough in XEN.

In addition to enabling IOMMU, you will need to modify some system files in order for the XEN pciback module to seize the secondary GPU for use with the Win7 VM. Generally this can be accomplished by modifying your /etc/initramfs-tools/modules file to look like the following:

 xen-pciback passthrough=1 hide=(04:00.0)(04:00.1)

I got the (04:00.0)(04:00.1) information using the lspci | grep VGA command, which provided me with:

 04:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cape Verde XT [Radeon HD 7770/8760 / R7 250X]

The 04:00.0 device represents the GPU itself, and the 04:00.1 device is the HDMI audio on your graphics card, which may or may not be listed within lspci depending on the model card you're using.

After you update your /etc/initramfs-tools/modules file, be sure to update your initramfs with update-initramfs -u otherwise your changes will not persist through a reboot.

Question 3

No. Your USB devices are connected to your main system, and booting your Win7 VM with your secondary GPU (even if successful) will not inherently connect your USB devices to the Win7 VM. I personally have not looked into options for sharing USB devices between a host and VM in a XEN system, but this should help point you in the right direction.

Hope this helps :)


How can I play video in an always-on-top window?

Download and install youtube-dl,enable the 'Always on top' plugin in totem, also hide the controls using 'Show Controls' under the 'View' menu, then run:

youtube-dl http://www.youtube.com/watch?v=gGG_GHYzSLs
totem 'Town Hall Hangout-gGG_GHYzSLs.mp4'

Or, with VLC

youtube-dl http://www.youtube.com/watch?v=gGG_GHYzSLs
vlc --video-on-top --qt-minimal-view 'Town Hall Hangout-gGG_GHYzSLs.mp4

You can also do the transparency in compizconfig-settings-manager:

There is also apparently a Ghost plugin that used to be available to enable click-through, but I think on recent versions of Ubuntu some things like that have been removed - see here.


I have ubuntu, I installed windows 10 on vmware and it has no internet, how do I solve this?

You should use bridged NAT
Here a manual about bridged networking https://www.vmware.com/support/ws4/doc/network_bridged_ws.html

It looks like your laptop has multiple network adapters. You should bridge your VM with the network adapter that is connected to the network (either the ethernet or the wireless adapter)


The script is fine. I guess that your Apache logs don't contain the text matching the pattern.


If it's just for simple usage on your own system, OpenMPI is very nice, as it doesn't require any setup after installation, just running your application with mpirun is sufficient.

sudo aptitude install libopenmpi-dev openmpi-bin


This was because I installed Windows 7 without UEFI, so I reinstalled it under UEFI and installed Ubuntu under UEFI as well. All is good now!


How to install ubuntu on already existing partitions

I am sure these partition are OK. It will be better to create an additional partition (that has the size of your RAM) by shrinking one of these partition so as to use that as the swap partition. You can use the remaining two partitions for / and /home. If you wish you can create another partition (which is 500MB-1GB) for /boot. Refer the documentation to know more.

At the time of installation (from live USB/CD), select something else as the installation type and specify the mounts points for each of /, /home (and if you indeed create the other two partition- forswap and /boot). Refer this thread.


How can I see what files Ubuntu One has synced?

Possibly the most user friendly place where this is (somewhat) exposed is gnome-activity-journal . You'll have to dig around quite a bit, but at least at the file level they are there (folders, however, seem to be missing). For example, yesterday I created a new synchronized folder with a bunch of images in it, and the images appear in gnome-activity-journal like so:

One rather developer friendly way of figuring out what has been synced is using the REST API to query the server. Using u1oauthrequest (which you can find in the ubuntuone-couch package—don't worry, it does not depend on couchdb), and the API documentation that you can read on our developers website, you can quickly drill in to the synced content.

The syncdaemon log does contain the information of what has synced (depending on your logging level, which is configurable), but as you found you'd have to write something to extract the information you're looking for. However, syncdaemon does send events to zeitgeist, so you could query it with something like the following:

from zeitgeist import client, datamodel
import gobject

def on_ev_recv(evs):
    for ev in evs:
        print ev.get_interpretation().encode('utf-8'),
        print ev.get_subjects()[0].get_origin().encode('utf-8')

mainloop = gobject.MainLoop()
client = client.ZeitgeistClient()

client.find_events_for_template(
    datamodel.Event.new_for_values(actor='dbus://com.ubuntuone.SyncDaemon.service'),
    on_ev_recv,
    result_type=datamodel.ResultType.MostRecentEvents,
    num_events=1000)

mainloop.run()


Apps simply hide upon switching apps with Alt+Tab

They might be on one of the other workspaces. In the unity bar on the left, near the bottom, you'll find workspace switcher.

You can also use the shortcut Ctrl+Alt+ to move between the workspaces.

Hope you can find it there!


That kind of trigger is not what cron is designed for. Cron is a clock-based trigger. @reboot is a convenience added to cron.
For suspend/remove jobs, one solution is to use power management.

See man pm-suspend
Put your job in the /etc/pm/sleep.d/ directory.
It's not a cron job. You place complete scripts in the directory.

Use case to determine what occurs on sleep, and what occurs on resume:
case "${1}" in
   suspend)
      suspend_actions
      ;;
   resume)
      resume_actions
      ;;
esac

Another similar solution is to use systemd.

The main difference is to use /lib/systemd/system-sleep/ instead of /etc/pm/sleep.d/

Both of these methods can arguably be considered a bit hacky: Don't use them for real applications, nor for long delays to suspending. Use inhibit instead.


You should add it to /etc/fstab. I don't have a SMB server available at the moment but I think the fstab entry should look something like:

//server/share  /mountpoint smbfs

man fstab and man mount are your friends here.


Can portable apps be damaging to the system?

By not using sudo, you protect most files outside your home folder from being written/removed, and sometimes, read. But remember that anything that's executable may cause harm to you. For instance, I could create a script that removes everything in your home directory without needing root permissions. Or I could create a script that reads your browser's configuration directory and sends me the contents.

As on Windows' BSOD issues, poorly written applications may crash on Ubuntu too, but I yet have to hear the first story where such an app without root permissions caused damage to the system.

The bottom line is: be careful with everything you download from outside the Ubuntu repositories.


How do I enable sticky keys In Ubuntu 12.04?

To enable Sticky Keys go to System Settings --> Universal Access --> Typing --> And click the Sticky Keys switch.


Problem with specific WiFi connection after suspend or poweroff from button

You can try to login Windows an turn off Fast Startup then restart login to Windows again. Afterward, shutdown windows and login Ubuntu to see if it is solved.

Here is how you can turn off fast startup on windows :http://www.eightforums.com/tutorials/6320-fast-startup-turn-off-windows-8-a.html

I'm not sure if it might help, but give it a try. Good luck!


The best way to partition for Ubuntu AFAIK:

basically 3 partitions.

/root for operating System(Ubuntu)

/home for your files

Twice the amount of ram for swap


Since whichever of apt, apt-get or other you used successfully Ignored the file, one can infer that it did not Use the file.

Therefore, you can move it elsewhere for examination:

sudo mv --target-directory=/tmp /etc/apt/apt.conf.d/50unattended-upgrades.ucf-old

Or, simply delete it:

sudo rm /etc/apt/apt.conf.d/50unattended-upgrades.ucf-old


Upgrade to 14.04 crashed cannot login using the GUI

There may be ownership problem with your ~/.Xauthority

Open TTY using CtrlAltF1 and login.

After login type following command, replace username with your user name.

sudo chown username:username ~/.Xauthority

Now login using GUI.


How can I access the history of Alt-F2 commands?

Alt+F2 can open a file for you with the default application associated to the file-type if you put the path to the file. So simply typing .bash_history in the prompt and pressing Enter should open your Terminal commands history with the default text editor.

If you just want to run a command from the Alt+F2 prompt which you ran before using the same prompt, you can just use ↑ (up arrow) to navigate through older commands.


You have conflicting packages. The fp-compiler package with is also installed, has a file that fpc is trying to modify/touch. So either, remove fp-compiler or do not install fpc.

About how to install lazarus:

You can install lazarus directly from apt-get without fiddling around downloading packages manually:

sudo apt-get install lazarus-ide

But remember, you must remove all your previous attempts to install lazarus:

sudo apt-get purge fp-compiler fpc


How to locally add my charms to the juju-gui?

To add your charms to the left column, the Charm Browser, you need to create the appropriate repository in Launchpad (step-by-step guide).

To deploy a local charm via the gui you need to zip up the contents of your charm in the correct directory structure for a charm and drag and drop that zip onto the canvas. It will then guide you through the process of deploying that charm to your environment.


Linksys wusb6300 not starting after reboot

Based on the OP's output of lsmod and lsusb before unplugging and plugging back in the adapter after a reboot, the ID of the device/driver was 8112au.

To manually initiate the device driver, use the commands

modprobe -r 8812au
modprobe 8812au

Finally, automate this by adding these three lines to /etc/rc.local after the line that reads exit 0:

modprobe -r 8812au
sleep 1
modprobe 8812au

The driver should now automatically be started on boot.


windows xp not working from dual-boot menu

If you have your Windows installation CD, insert it into your CD/DVD drive and reboot your computer. When the installation appears, select repair. When this has finished, everything should be back as it should be.

You may then need to repair the Grub menu ((the one that offers you the different Operating Systems, if so, take a look at this link


I fixed the issue. It has something to do the config file, squid.conf

Please make sure when you enable the

http_access allow localnet

There is a network set on your acl

# Example rule allowing access from your local networks.
# Adapt to list your (internal) IP networks from where browsing
# should be allowed

acl localnet src 10.0.0.0/8
acl localnet src 136.198.0.0/16
acl localnet src 172.16.0.0/12

If this is empty, squid3 service wont start.


Bluetooth problem on Lubuntu 12.04.2 LTS?

I have the same problem with this nice piece of hardware. Pairing fails after entering the PIN. The keyboard reacts on the Enter key. The message: pairing fails - with the following entries in the sys log:

Apr 30 13:19:16 wetab bluetoothd[889]: Discovery session 0xb9639b68 with :1.48 activated
Apr 30 13:19:32 wetab bluetoothd[889]: Stopping discovery
Apr 30 13:19:33 wetab bluetoothd[889]: Unknown Management opcode 23 (index 0)
Apr 30 13:19:43 bluetoothd[889]: last message repeated 6 times
Apr 30 13:19:43 wetab bluetoothd[889]: hci0: Cancel Pair Device (0x001a) failed: Invalid Parameters (0x0d)

I managed to use the keyboard anyway - with some drawbacks.

Just: hidd --search and one need to install:

sudo apt-get install bluez-compat

OK, every restart I have to press the pairing button and start the command again. I do not trust the encryption either. But at least I can work.

I use a fresh Raring Ringtail installation which works just fine with my very cheap rubber bluetooth keyboard...

Hope it gets better later as it seems to be an implementation flaw in Linux as the K810 works fine with my Android.


Apache2 doesn't read .htaccess on Ubuntu 16.04

I suppose you should edit /etc/apache2/sites-available/000-default.conf in this way:

<VirtualHost *:80>
    ...

    DocumentRoot /var/www/html

    <Directory /var/www/html>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>

</VirtualHost>

Where AllowOverride All is the directive that will allow the override by .htaccess file.

Then enable it, if it isn't and restart Apache (or reload its configuration):

sudo a2ensite 000-default.conf
sudo systemctl restart apache2.service


Kubuntu trackpad multifinger gesture support

Sorry, there is not multi finger gesture support in Kubuntu 12.10. At least in the way you describe.

But just in case some people comes here looking for help configuring their desktop environment, there are several options to change from desktops or minimize apps using the keyboard.

In the system preferences app "K-> Applications -> system preferences":
Go to Shortcuts and Gestures.
On the left go to Global Keyboard Shortcuts.
On the Top menu called "KDE component" select KWin.
you could now edit all shortcuts of the desktop environment.

NICE TIP: you can save and load configuration files with all your favorites shortcuts for each component of KDE.

In newer KDE versions there is a new tool called Mouse Gestures that provides some functionality similar to the one described in your question.

There are more information related in:
System Settings/Shortcuts and Gestures


can I delete virbr0 and virbr0-nic created by MAAS?

It's actually not MAAS that installs virbr0 and virbr0-nic.  Those are installed by libvirt.  Installing MAAS without libvirt (e.g. without apt install libvirt-bin) shows that MAAS doesn't install these elements...


acer v3-572g sceen blank on login after nvidia driver

Same here, with a HP-Envy15, Nvidia 840M as well, Ubuntu 14.10.

Updating packages including xorg-edgers PPA gives a black screen on boot,
then the only way I found was to CTRL + ALT + F2, login, completely uninstall Nvidia packages, reinstall ubuntu-desktop, reinstall ccsm, launch ccsm, CTRL + ALT + F1 and re-enabling Ubuntu-desktop-plugin from CompizManager.


Move files to parent directory, prefixing file name with former subdirectory name

In parentdir you could use
for f in ./*/important*; do rename -n 's#\./([^/]+)/(.*)#$1-$2#' "$f" ; done

Remove -n after testing to actually move and rename
Explanation

s#old#new# replace old with new
\./([^/]+)/(.*) match literal ./ then save some characters other than /, then match /, then save the rest
$1-$2 the two saved patterns separated by -

Ditching the path separator moves the files to parentdir by force
Afterthought: more simply in this case you could just use s#/#-# to replace / with -, omitting ./ from the start
for f in */important*; do rename -n 's#/#-#' "$f" ; done


Can I disable Chrome browser's Guest Mode?

I worked out a solution that is now possible since May 2019 using policies and the same method as disabling Incognito mode.

If you're using chrome, create the folder /etc/opt/chrome/policies/managed. (I'm guessing if you're using chromium, create the folder /etc/chromium/policies/managed.)

Then create a file in that directory named test_policy.json. It can have any name you want, but it needs the extension to be .json.

Open it in your favorite editor and put:

{
    "BrowserGuestModeEnabled": false
}

Source: https://www.chromium.org/administrators/policy-list-3


After forcing Bleach Bit to stop, now Lubuntu cannot boot v14.04

Using safe mode or a boot CD, make sure the hard disk is not full.

Then, make sure you are using the BleachBit version 1.2 (which has a bug fix related to this) or later.  The latest right now is 1.5.2.


How do I integrate gpg with the GNOME keyring?

The default keyring manager for GNOME is seahorse:

  Seahorse  is  a front end for GnuPG — the Gnu Privacy Guard program —
  that integrates to the GNOME desktop. It is a tool for  secure
  communications  and  data storage.  Data encryption and digital
  signature creation can easily be performed through a GUI and Key
  Management operations can easily be carried  out  through an intuitive
  interface.

(man 1 seahorse)

It should be enabled/running by default in Ubuntu and you should have this variable in your environment:

$ echo $GPG_AGENT_INFO
/tmp/keyring-XXXXXX/gpg:0:1

/tmp/keyring-XXXXXX/gpg is a socket bound by the program gnome-keyring-daemon, which is found in the gnome-keyring package.

Unfortunately, I don't have enough information about your system and I cannot tell you how to proceed exactly. However I should have given you enough information to start investigating the problem. If you need more help, please tell me whether you have the package installed, whether the process is running, whether the socket exists and whether the environment variable is set.


GRUB with two drives and two Ubuntu distros

You can have two bootable drives and use your BIOS to select which drive to boot from but it is easier just to let Grub handle everything.

If you want grub to select the distro for you:

Leave your 160 GB as the first drive
Install you 80 GB as the second drive
Boot from Live DVD / Live USB and install Ubuntu to the second drive

Although you can remove the 160 GB drive, swap in the 80 GB, install Ubuntu, swap out the 80 GB, swap in the 160 GB and put the 80 GB into second drive bay that would be the last resort if Ubuntu had problems installing to the second drive.

Things to keep in mind when updating grub:

When you are operating on the first drive use sudo update-grub
When you are operating on the second drive use sudo grub-install
/dev/sda

The first option on grub menu will be first drive (Mint) or second drive (Mate) depending on which drive grub update/install was last run on. The other distribution will be in the advanced options menu.

Understand this answer is typed from memory as it is impractical to take my laptop apart to swap drives around and repeat my installations. If you encounter any difficulties, no matter how small, don't hesitate to post a comment below.


It looks like you destroyed some of zhe boot informations as you changed out your mainboard.

But to help futher as this state we need a bit mor info about your system. I ask this as camment and ajust this answer as we pass through the questions.

all other feel free to help or suggest your own answer.


Automatically enable emacs whitespace mode

Put this in your init file (~/.emacs):

 (global-whitespace-mode)


How to prevent screen locking when lid is closed?

I managed to figure out a workaround, though I imagine there's a better solution out there. I looked at what was happening when my lid was closed and opened in /etc/acpi/lid.sh and found that xscreensaver was being called upon automatically. Not sure if different laptops have different settings and whatnot - I really don't know too much about this stuff.

In any case, I tried to make it simply obey its config file and not lock, but couldn't figure it out, so I ended up simply deleting the lines that involved xscreensaver. Now everything works great: no locking, and if the lid is closed passed the amount of time which you have set for xscreensaver to start, it'll start normally (and not lock).

I'm still not sure why xscreensaver is set up to be called automatically when the lid is closed or why it ignores its settings and locks when the lid is opened. I also don't get why with my older laptop this only happens sporadically (sometimes it locks every time, sometimes not at all), despite having the same lid.sh file.

I should also note that I'm using Ubuntu 12.04 with Unity, though I don't think that'll make any difference.


Is there any music studio programme on ubuntu?

There are plenty of "pro audio" applications in Ubuntu. You can look through the Software Center to find some. Some of the ones I use are ardour, audacity, lmms, hydrogen, and zynaddsubfx.


Yes, you should install it with apt-get, that is the easiest and cleanest way of doing it.

The full TexLive opus, with the extra packages requires over 1 Gb of space. If you have the space my advice is to install it. Otherwise you always end up bumping into some missing LaTeX package.


In my case (Debian Stretch, clipman 1.4.1) actions only work reliably when "Activate on manual copy" is ticked. Without it the actions menu only appears from time to time.

It seems that this bug isn't completely solved: https://bugzilla.xfce.org/show_bug.cgi?id=12249


How do I disable the Workspace Switcher in the Cinnamon environment I use with 12.04LTS?

The answer is simple:  Go to Cinnamon Settings  select "Hot Corner  then un-check the "Hot Corner enabled" checkbox

See screen shots below

then


Scroll speed slows down after a long period

Looks like the answer is to power off the mouse and turn it back on instead of the computer.

You are my hero for the day and I can't believe that actually worked. I guess the old "have you tried turning it off and back on" still applies.


can't login to Unity always login to Unity 2D

I solved my problem by reinstalling my Nvidia driver.

If manually installed

telinit 3

then you need to switch to a tty prompt and login and type

sudo service lightdm stop

then use your driver file and uninstall.

sudo sh ./driver_file.run --uninstall

If installed with package manager then just

sudo apt-get remove nvidia-current

reboot and sudo apt-get install nvidia-current or just use the additional drivers icon inside your settings control panel.


How can I implement Tilda functionality in byobu?

set byobu as custom command in tilda prefs . then just use tilda .


Well, This is a very Interesting question, and the answer is yes. You can run a Windows Machine under Linux/KVM and use IOMMU GPU Pass-through to do a PCI Passthrough on your Graphics Card. This will however require an IOMMU compatible motherboard. This process also requires you to make some changes to your bios. You must use Virtio Drivers for your Windows Virtual Machine and then you need to do a GPU passthrough. Technically you are running your game under Windows, However the KVM GPU passthrough will help you to directly pass through the Graphics Card Calls into the Operating System. You would be able to see your graphics card inside the virtual Machine.

Here is a few uselful links which give you more information on this

https://www.pugetsystems.com/labs/articles/Multiheaded-NVIDIA-Gaming-using-Ubuntu-14-04-KVM-585/

Some performance comparisons here..
http://grids.ucs.indiana.edu/ptliupages/publications/Cloud_2014.pdf

This blog post has some more useful information Just search through the archives on this.
http://vfio.blogspot.in/

All these links are reference materials, I am not trying to promote any blog here, However the scope of the question is so wide that it really does need reference material to understand the answer.

Please go through this and let  us know if you need any more information.

Answer to second question if you find this intimidating or difficult.

Yes you can do a dual boot configuration. However you would need to first install Windows and then shrink the windows partition. Give it whatever disk space you want to give it.

Once done reboot into the Ubuntu Live environment. Fire up Ubiquity installer and while partitioning select custom partitioning and select the un-partitioned space and install Ubuntu there.

Always Backup your data before you do anything to the operating system. If you still have confusions there is a lot of questions around Dual Booting on Ask Ubuntu which you can refer to.

Let me know if you need any more information.


CompizConfig Manager->Grid->tab "Corners/Edges": change "Top Edge" to none.


Ubuntu 20.04 - iptables don't reload on startup

It appears that the file you are looking for is now called
/etc/iptables/rules.v4
e.g.
sudo cat /etc/iptables/rules.v4
# position 1
*filter
# [snip] -- I checked the rules, they are there

So you should be able to
# must be root
sudo -i
iptables-save > /etc/iptables/rules.v4
ip6tables-save > /etc/iptables/rules.v6

and to restore:
# must be root
sudo -i
sudo iptables-restore < /etc/iptables/rules.v4
sudo ip6tables-restore < /etc/iptables/rules.v6


You could probably remove the indicator-messages service, but that won't save much.
Another option would be to run unity 2d or gnome-classic from the login screen. The 3d desktops use more computer to do "compositing" and newer software tends to consume more resources than older software. Unity uses compiz to do its compositing and it does seem to accumulate notable cpu time on my laptop.
The next time you want to install Ubuntu you could install the Xubuntu flavor of Ubuntu. It is built to be lighter weight.


How to execute a command after a few minutes?

You can use the at command.

The following command will execute a shell-script in 5 minutes from now

at -f path_to_shell_script now + 5 min

How to disable UFW rules?

The following command will turn off UFW completely and delete all the rules:

ufw reset

You can create a script called ufw-reset.sh which will include ufw reset as its content and to execute it using at to be executed in 5 minutes from now:

at -f ufw-reset.sh now + 5 min

Info about ufw
Info about at command


What type of integrated graphics care you using? You can likely get it to work no problem but will be very slow. Anyways, here's a quick guide (Skip the Nvidia card stuff if you don't have one, other steps still apply)

http://www.howtoforge.com/enabling-compiz-fusion-on-ubuntu-11.10-oneiric-ocelot


In that case your script could work by killing all zathura instances before open it again:

killall zathura #Kill all previous zathura instances
zathura file.pdf & #Open zathura

Hope it helps.


Apparently the behaviour changes if User= is specified before ExecStart=.

Don't know whether that's a feature or an accident, but as a feature it's pretty dumb and moreover it seems undocumented which is actively annoying.


Maybe these variable assignments might help you out:

$ phonedash=123-123-1234

$ phonenodash="${phonedash//-}"

$ phone=$phonenodash

$ echo $phone
1231231234

$ echo "(${phone:0:3}) ${phone:3:3}-${phone:6:4}"
(123) 123-1234

$ new_phone=$(echo "(${phone:0:3}) ${phone:3:3}-${phone:6:4}")

$ echo $new_phone
(123) 123-1234


Hide or remove GNOME pop-up for sound volume level indicator

It's a built-in "feature" of GNOME shell, so it's probably not easily removable by default. You may use a GNOME extension called "Better OSD" as a workaround. This allows you to reposition and resize OSD pop-ups like the volume pop-up you have mentioned.

It also has a "Hide Delay" option, setting it to "0" should make the pop-up invisible.


As suggested by NerdOfLinux I ran new aliases but it couldn't resolve "mail" so I looked in my hosts file and added "mail" next to "localhost" and that fixed it. I previously ran newaliases but then made some changes to the main.cf file and my hostname/domainname which I believe made my aliases become problematic


How to install a program ending in ".run" using terminal

Press the super key and search for terminal...

and activate it ...

Now type or copy/paste these lines one by one (so pressing enter after each line):

cd ~/Downloads
chmod +x amd-catalyst-13.4-linux-x86.x86_64.run
sudo sh amd-catalyst-13.4-linux-x86.x86_64.run

the 1st 2 commands will show nothing when executed. The last one will ask for your admin password and then show a lot of lines. Watch out for errors :)


Realtek 0bda:a811 WiFi Driver rtl8812AU on Ubuntu 18.04

kernel >= 4.15.0-34

Run these commands to install a working driver:

git clone https://github.com/abperiasamy/rtl8812AU_8821AU_linux.git
cd rtl8812AU_8821AU_linux
sudo make -f Makefile.dkms install
sudo dkms status

The output of the last line should now include:

rtl8812au, 4.3.14, 4.15.0-34-generic, x86_64: installed

reboot


Same issue here originally.
I did get it in by some awkward procedure - then after 3 months it just suddenly refused to open.
So I just removed it and installed Chromium (the open source version of Chrome) browser instead. Working now - though I prefer Firefox for privacy.
Try on your admin CLI
$ sudo apt search chromium

to get the name of the package, then use
$ sudo apt install <chromium-package-name>


Set up eth0 network interface using DHCP in initramfs

The simplest solution is to use ipconfig via the kernel's ip= command-line option in grub.cfg (or pxelinux.cfg or however you boot your kernel).  I'm not aware of a man page for it, but there is a README.ipconfig file in the klibc Git repository and installed at /usr/share/doc/klibc-utils/README.ipconfig.gz.  So your /etc/default/grub might have a line such as the following:

GRUB_CMDLINE_LINUX="ip=:::::eth0:dhcp"

You may need to make a simple script in /etc/initramfs-tools/scripts/local-top that sources the functions file and then calls the configure_networking function, like so:

#!/bin/sh
. /scripts/functions
configure_networking

(I had mistakenly thought configure_networking was called by default, but something has to explicitly call it—either your own script or one from a package.  In my case, it was called from open-iscsi.)