Command for deleting temporary files ending with ~

Your bash alias is not well written (the single quotes are not well used). Instead it should be:

alias rm~='find . -name "*~" -print0 | xargs -0 /bin/rm -f'

Now, I personally don't like useless uses of pipes and xargs, so your alias would be better written as:

alias rm~='find . -name "*~" -type f -exec /bin/rm -fv -- {} +'

The -type f option so as to find only files (not directories, links, etc.), the -v option to rm so as to be verbose (prints out what it's deleting). The + at the end so that find runs rm with all the found files (spawns only one instance of rm, instead of one per file).

Now from man bash:

  For almost every purpose, aliases are superseded by shell functions.

Instead of an alias, it's better to use a function: comment your alias in the .bash_aliases file (i.e., put a # in front of that line), and in the file .bashrc, put this function (anywhere in the file, at the end is fine):

rm~() {
    find . -name "*~" -type f -exec /bin/rm -fv -- {} +
}

Also, as the other answer mentions, you can use the -delete command to find. In this case, your rm~ function will be:

rm~() {
    find . -name "*~" -type f -printf "Removing file %p\n" -delete
}

In fact, you can make a cool function that will take an argument, say --dry-run, that will only output what it will delete:

rm~() {
    case "$1" in
    "--dry-run")
        find . -name "*~" -type f -printf "[dry-run] Removing file %p\n"
        ;;
    "")
        find . -name "*~" -type f -printf "Removing file %p\n" -delete
        ;;
    *)
        echo "Unsupported option \`$1'. Did you mean --dry-run?"
        ;;
    esac
}

Then use as:

rm~ --dry-run

to only show the files that will be deleted (but not delete them) and then

rm~

when you're happy with this.

Adapt and extend to your needs!

Note. You'll have to open a new terminal for the changes to take effect.


shutdown from gnome menu doesn't ask password

You can do this in dconf editor. You can install this with sudo apt-get install dconf-editor See below for the adjustments to make. You can also choose to suppress the restart menu item (among others)

Suppressing the menu item will remove the option from the menu in the upper right corner of the screen. (After a reboot). Of course the option won't exist for you either but you can always shutdown by opening a terminal with CTRL+ALT+T and issuing the command sudo shutdown -h now or restart with sudo shutdown -r now


How to improve the quality of music playing in Ubuntu?

I've upgraded Ubuntu to 13.04. XBMC also upgraded and now it sounds as bad as Clementine. Problem solved :-(

But, wait! After delving more in the problem, it looks like the guilty is on Pulse Audio, the newest Linux sound architecture that promised to solve all of your audio problems.

After reading a lot and understanding a little, it looks like that PulseAudio decodes and re-encodes the audio signal degrading it. This long thread taught me a lot: Bit Perfect Audio in Linux.

I've managed to get my high quality sound again configuring Clementine to directly access the Alsa S/PDIF channel. No resampling involved and the sound is a lot better. To do it, go to Tools -> Preferences -> Playback and change Output plugin to "Audio Sink (ALSA)" and the output device to the E958 direct hardware device.

Discover your own direct device with the command aplay -L. Here is a the relevant part of the command output in my computer:

dsnoop:CARD=Intel,DEV=1
    HDA Intel, ALC888 Digital
    Direct sample snooping device
hw:CARD=Intel,DEV=0
    HDA Intel, ALC888 Analog
    Direct hardware device without any conversions
hw:CARD=Intel,DEV=1
    HDA Intel, ALC888 Digital
    Direct hardware device without any conversions
plughw:CARD=Intel,DEV=0

So my outupt device is the "direct hardware" and digital. The key info is the "Direct hardware device without any conversions". You may have more than one, like one for your hdmi video port and another for your sound device.  I should fill it with hw:0,1(hw is the device, 1 is the DEV and I have no idea where the first zero comes from).

Since nothing is easy, you should first turn off pulse audio and run Clementine this way:

pasuspender -- clementine

Voilá! Now I've got high music quality.

The problem is that the spdif output was busy with Pulse audio. It looks like you can't share an alsa output. I've changed my setup.

In pulse audio I've changed my default sound output to Analog Stereo, and reconnected my old 2.1 speakers. Now every application will play to this channel. The SPDIF output is connected to my stereo and Clementine is hardcoded to use it exclusively. Don't forget to uncheck the "Cross-fade" preferences in Clementine so it doesn't have to share the channel with itself.

Now my I can hear high quality music in my stereo and all other applications use the low fidelity computer speakers.


Problem when downloading a package using Ubuntu Software Center

You need to have MATLAB installed first. The package in Ubuntu software center is just the Matlab support tool. Follow this guide.


I need help with Grub and restoring Windows?

The problem is, as others have noted, the MBR holds the bootloader that is used to load the OS or list of OS, and it is usually overwritten ( unless you choose otherwise ) by the last OS you install. In this case that is Windows 8, and from experience, wiping out the partition does not remove the bootloader.

To fix this problem, before you go the nuke everything and rebuild phase maybe you can try EasyBCD and create a custom bootloader. It should work fine and should be able to read all the OSes you have currently. I have no personal experience with it however.

Now to your second problem.. it looks like you might have wiped out your XP partition by mistake when you tried to wipe the Win8 one. You can try a software like TestDisk or any other similar data recovery softwares to try and Undelete the files you need from your XP partition


HDMI output not working after Suspend in Ubuntu 18.04 on MSI GS65 Stealth Thin

xset -dpms

then restart fixed the issue for me --  MSI GS65 + ubuntu 18.04


By default, ping doesn't stop sending packets until you hit Ctrl+C to send the KeyboardInterrupt signal (which tells the program to stop pinging and generate statistics).  As such, you get hundreds of those lines, indicating the round-trip time, which ping packet you're getting echoed back to you (as you get them sent in sequence of 1, 2, 3, ...), and what the time it took to echo back to you was.

If you only want to send, say, 5 packets with each ping, you would use the -c flag and put 5 there, which instructs the system to send 5 packets and wait for 5 responses (or for the responses to time out).  The command would then be ping -c 5 8.8.8.8, using the default timeout settings embedded into the program.


Via GUI

Open dash and search for Remmina Remote Desktop Client or Open terminal( Ctrl+Alt+T )and type remmina

Click on New to connect to server. Supported protocols: RDP,SFTP,SSH & VNC

Via Command line:

To connect to a remote machine via command line. You can use rdesktop. To install rdesktop or xrdp use the following command.

sudo apt-get install rdesktop
sudo apt-get install xrdp

Usage:

rdesktop <machine_name/IP_address>


The dropbox integration you describe is dependent on the package nemo-python which is, as far as I know, not part of the ubuntu repositories.
Same goes for integration with the ownCloud desktop client, for example.

Compared to Linux Mint, the Ubuntu repos still miss some packages (like nemo-preview and aforementioned nemo-python). Even on 15.10 this does not work out-of-the box.

If you can find a version of nemo-python (e.g. in a PPA somewhere) your chances are much higher of getting it to work.


Open terminal and write (I suppose you have anaconda for pyhton3):

export PATH=~/anaconda3/bin:$PATH

If it works, then use the file .bashrc (hidden file), located in the home directory, runs codes every time a new terminal is opened.

Then add a line on it:

export PATH=~/anaconda3/bin:$PATH


Okay finally got solution..

 sudo apt-get install php5.6-imagick
 sudo service apache2 graceful


How do I properly configure compiz cube for gnome 3?

Gnome Shell 3 doesn't use Compiz.  It uses Wayland/Mutter instead.

But the good news is there are efforts to bring some of the eye-candy that Compiz offered.

Wayfire and the Wayfire Config Manager (WCM) are an effort to bring the extremely useful functionality of the Compiz Configuration Settings Manager (CCSM) to Wayland.  It looks very promising.

Here is a YouTube playlist of all the Gnome Shell 3 Compiz like Eye-Candy using the Wayfire Config Manager.  This video playlist was last updated Oct 2019 as of writing this.

The former chief developer of Compiz, Sam Spilsbury, is also working on a library to help bring about Compiz-like features to the Wayland desktop.  That project is the libanimation project.

Compiz brought some really good windows desktop management features that made working with the desktop much more efficient.  We don't need to get into those here....  and we're not talking about Wobbly windows or Desktop Cube.  Wobbly Windows and Cube are fun and all, but they are a little inefficient when you're trying to get things done quickly.  Nonetheless, Compiz brought features that made the desktop a snap, if you knew how to set it up.  Like binding your mouse "thumb" button to the thumbnail windows picker.  That is by far the fastest way to switch between windows.


Bind your webserver to 127.0.0.1, then you will only be able to access the site locally.


How to install 32-bit libcurl on 64-bit Ubuntu 16?

I was able to install 32 bit libcurl using the following:

# enable i386 packages to be installed (may already be enabled)
dpkg --add-architecture i386
# update apt to fetch metadata for the new architecture
apt update
# install! (note: you may need a different version)
apt install libcurl4-openssl-dev:i386

This brings in ~35 or so other i386 packages as well.


configure a network interface into promiscuous mode

Your interface is not in promiscous mode. Use:

ip link set eth1 promisc on

The flag will be updated to BMPRU. Flag details are as follows:

B flag is for broadcast
M flag is for multicast
P flag is for promisc mode
R is for running
U is for up


How can I install Unity in Kubuntu 12.04?

Use sudo apt-get install ubuntu-desktop.


Ubuntu 17.10 adding multiple static routes for NIC with Netplan

So it turns out the second option IS actually correct. I just had to restart a couple of times before it started working. Strange. Use this syntax:

network:
  version: 2
  renderer: networkd
  ethernets:
    ens3:
      dhcp4: yes
    eno2:
        dhcp4: no
        dhcp6: no
        addresses: [10.10.0.11/24]
        gateway4: 10.10.0.4
        routes:
        - to: 192.168.1.0/24
          via: 10.10.0.4
        - to: 192.168.10.0/24
          via: 10.10.0.4


Cursor jumps to the top right corner when using Touchpad in combination with the mouse buttons

Sometimes it helps to look at the configuration of the synaptics driver by using synclient -l. You can change the settings by synclient <variableName>=<value>.

Maybe your desktop environment setting does something special by issuing a 'right' or 'middle' click. You can try the evtest program (installable by sudo apt-get install evtest). It lists all received user input events from a /dev/input/event* device on the console until you do a <ctrl>+c.


Disable hibernation and fast startup in Windows.

Open command prompt as administrator and execute:
powercfg /h off

Open Windows Control Panel.

Go to Power Settings.

Uncheck Fast startup.

Shutdown the machine completely - do NOT reboot.

Reinstall GRUB boot loader for Ubuntu in EFI mode.

Boot from the Ubuntu installation medium.

Select Try Ubuntu without installing.

Open a terminal and execute:
sudo mount /dev/sda7 /mnt
sudo mount /dev/sda2 /mnt/boot/efi
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
sudo chroot /mnt
grub-install /dev/sda
update-grub

Note:
sda = disk | sda2 = EFI partition | sda7 = system partition

Boot into BIOS and select Ubuntu as default system.


Ubuntu 16.04 External display detection doesn't work properly

According to reports you cannot use TearFree and xua acceleration method at the same time. You need to use the acceleration method sna which is the default so you can simply delete that line in /etc/X11/xorg.conf.d/20-intel.

More details can be found in Arch Linux documentation intel_graphics

Although I had some screen tearing a few months ago it went away on it's own after some Ubuntu kernel updates and it could be that option isn't required anymore on your system. The reason you would want to remove the option (if it's no longer required) is there are other conflicts that can occur as described in the link.


How recover encrypted home when lost because user password was changed with root?

If you did not change the password because you forgot it, you can change it back, make a backup without encryption, delete everything, change password again and restore everything. That's what I can guess while not knowing how the encryption works. Hopefully it will encrypt on import, if you want to feel safe, backup and just copy it somewhere and try to copy back first.


Ubuntu 12.04 installation take too much time

its because its downloading some updates...try disconnecting you internet and continue your installation or why don't you try installing via USB making a boo-table Ubuntu USB drive...


Battery life becames shorter after upgrading

It seems that the blame is not on Ubuntu. If your notebook goes down your battery health has dropped, which is pretty normal.

Measure the time your computer run in BIOS. Should not be so different with an idle Session of Ubuntu.

Also, check powertop.


How to integrate Java Web Start to browser?

In firefox go,

Edit -> Prefferences -> Applications -> JNLP File
Choose SunJDK Java 6 Web Start


when inside the os you push:

alt + crtl + fx

where x is any number between 1 and 7

it'll ask for a username and keyword

the username is ubuntu-mate
there is no password

then you write

sudo startx

this will clear up some of the screen, but not all, to clear all you push

alt + crtl + fx

where x is a number between 1 and 7 (not including the number you used before)

you log in and use startx as before (the process needed to be repeated 3 times for me every time i start and every time i log in)

Then you install XD


The `snapd` package fails to upgrade inside of Ubuntu 20.04 LXD container

Use instead the Ubuntu minimal LXD images.
To do so, add the appropriate remote for the Ubuntu minimal LXD images:
lxc remote add --protocol simplestreams ubuntu-minimal https://cloud-images.ubuntu.com/minimal/releases/

To view the available images, run
$ lxc image list ubuntu-minimal:            # all container images, from 16.04 to 20.10.
$ lxc image list ubuntu-minimal:20.04   # view just the Ubuntu 20.04 container images.
$ lxc image list ubuntu-minimal:focal    # ditto.
$ lxc image info ubuntu-minimal:20.04   # get full info about the container image.

Read more at https://discuss.linuxcontainers.org/t/ubuntu-20-04-images-are-available/7556 and https://blog.simos.info/a-closer-look-at-minimal-ubuntu-for-lxd/


SOLVED - Ubuntu Studio 20.04 install EFI boot issue

Googled solution was to update Grub. Can close now.
Incidentally, I noticed some helpful editing, of my original post - just my sense of humour but I deliberately refer to a well known OS as "Windoze" with the last 4 letters, doze, emphasising slowness to the extent that I could fall asleep!


Found a better (native, not Google) solution - eventually.  This is a pain, but perhaps it will help some poor soul in the future.  Unfortunately I can't easily go back and do it again on a virgin system to verify it, so there could be mistakes below - sorry.  Better than nothing, though, I hope.

Start at http://support.brother.com/g/b/downloadtop.aspx?c=us&lang=en&prod=hll2340dw_us_eu_as
(The instructions on this page are terrible, confusing, incomplete, wrong.  You need to get the files from there, but here's what I really had to do:)
Select OS Family = Linux, OS Version = deb.  Click Search.
Download both Generic LPR printer driver (deb package) and Generic CUPSwrapper printer driver (deb package)
sudo mkdir /var/spool/lpd
sudo mkdir /usr/share/cups/model
Open the LPR package with Ubuntu Software Centre.  Install it.  Overlook the badly-made-package warning.
Open the CUPSwrapper package with Ubuntu Software Centre.  Install it.  Overlook the badly-made-package warning.
Add a CUPS printer as normal.  These are the settings I ended up with, which work for me:

Device URI: lpd://Brother/BINARY_P1 ("brother" is set up on my DNS, you could use printer's IP addr, 192.168.x.x)
Make and Model Brother BrGenML1 for CUPS (selected from Makes -> Brother, Models -> BrGenML1 for CUPS)


How to downgrade to a MUCH older version of a package

I have found that if I go to http://packages.ubuntu.com/ and add to that url <old-release-name>/<old-package-name> I can download and install versions of old-package from the repo for old-release.

For example, if I am running Wily, but want to get the version of the python-tz package that is available in the Precise repository, I can go to http://packages.ubuntu.com/precise/python-tz and find it there.

This is the kind of solution I was looking for. However, I am not going to mark this as correct for a while in case there is a better way to do it. Preferably, I would be doing it all from the command line, but this solution will work for me for now. Other suggestions are very welcome!!


How to run more then one program through a service (/etc/init/*.conf) file

What you do relatively easily is split the config into 2 configs of one executable with a
dependency between them.  Then when you start mcp, it automatically starts mcp2 as well, and when you stop mcp, it stops mcp2 as well.  Here's the files:

#----/etc/init/mcp.conf
description "Run MCP"
start on runlevel [2345]
stop on runlevel [016]
# Start the RPE application
exec /opt/mcp/rpe -d f -c /opt/mcp

and

#----/etc/init/mcp2.conf
description "Run MCP 2"
start on starting mcp
stop on stopped mcp
# Start the McpVp application
exec /opt/mcp/McpVp &> /var/tmp/mcp.log


Sorry, that didn't post right.

Edit /usr/share/mime/packages/freedesktop.org.xml file and change

<mime-type type="application/vnd.adobe.flash.movie">

to

<mime-type type="application/x-shockwave-flash">

and then run

sudo update-mime-database /usr/share/mime

and then reinstall flash player.


I modified GTK3 source code and recompiled: No effect

You should consider using the debian/ubuntu way of building from source as this ensures that all files goes to the intended directories. Running './configure' without any options usually sets PREFIX to '/usr/local'. Thus all the previous gtk files are still in place as they most likely reside in '/usr' and therefor gets loaded instead of the new ones you have compiled.

Try apt-get source <package> then modify the source to your liking.

Then to build the package do dpkg-build -rfakeroot -uc -b to build a .deb.
Then install the .deb with dpkg -i .

This will replace the current install of the package rebuilt.

However the apt tools will try to replace this package at every system update. But it's a good way to try out changes.


Mail client independent address and calendar program?

No such plans exist.  If you would like a recommendation on an address book that'll work with the panel applet and a calendar that'll work with the clock applet without forcing you to setup Evolution mail, look at contacts  and dates


Maybe because it is not there anymore in 10.10:

Package "dkim-filter"

WARNING: the "dkim-filter" package was deleted from this repository

Name:   dkim-filter

Description:
DomainKeys Identified Mail (DKIM) Milter implementation
Implements a Sendmail Mail Filter (Milter) for the DomainKeys
Identified Mail (DKIM) standard. DKIM provides a way for senders to
confirm their identity when sending email by adding a cryptographic
signature to the headers of the message.

The dkim-milter implements both signing and verification.

Latest version: *DELETED*
Release:    maverick (10.10)
Level:  base
Repository: universe
Head package:   dkim-milter

However I've found this googling a little bit. Just download the .deb file an install it.


Solutions for risks when using external repository

You are forgetting 1 important thing: what is your system used for?

  Do you have any solutions for these risks?

If the system has private data that needs to be kept safe never ever consider to add 3rd party packages on that system unless you audit every bit of software you install and every update you plan to do for these packages. Simply not really do-able. And even then you can face backdoors like what happened with the Open SSL problem a few years back. Or with the meltdown problem.

If the system you are using is just a regular desktop system I would trust anything coming from Launchpad (where most PPAs are hosted) as long as there is no evidence that they can not be trusted. A regular backup procedure should allow for a fix to any problems you face when using 3rd party software.


How do I diagnose an onboard wired network interface that quit working?

If I read your question correctly, then you are not asking how to fix this problem but how to diagnose networking problems like this.

My advice is read through the documentation.

Official Ubuntu documentation on Internet connections
Community documentation for trouble shooting wireless problems

Browse the links for networking problems on this site and the Ubuntu forums Networking and Wireless section. Notice the problems that people have and the advice given.
Run the commands on a working system (your own) and compare that output from the commands as a means of identifying the differences and working what these indicate the problem is.
From the advice given on the forums note which advice works and use it to develop diagnostic skills.

This is my method. Sometimes I get things right. You may find that you can notice things about the problem that others miss.


LibreOffice: Open in current program by default?

I finally got the functionality I need by removing LibreOffice Writer all together.  Now when I open a text file, it pops up a "what kind of file" is this dialog.


Ubuntu 13.10 can't drag a window up to another screen

I found your post when searching for a solution to the same problem, as I prefer my second monitor "stacked" over my laptop monitor. After fiddling around with it, I discovered that if you drag the window very quickly, it will work. If you drag it more casually, it will get stuck trying to snap/enlarge.

I've decided I like this behavior because it allows me to snap/enlarge on my lower monitor quite effortlessly, but I can still drag to the other when needed.


Ubuntu 13.04 Multi Monitor Dell precision m4600 nvidia optimus

what package of nvidia did you try ?

there is acutally a newer package of nvidia-driver
for optimus Cuda cards : NVIDIA_CUDA_SDK_1.1_Beta_Linux.run


How to save multiple image attachments from Gmail using specific name

I can't provide a procedure to download your files with a specific name each, but you can -as you mentioned- use the "Download all attachments" both in GMail or another mail client, such as Thunderbird, Evolution, etc.

Once you finish downloading your attachments, you can use Dolphin or Thunar file managers, and if you need more control on your files and the new names you can use pyrenamer.

Dolphin

After extracting/moving your files, you can select all your files and press F2 in order to show the rename dialog, where you can setup a new name with a numbers sequence and tell which number you may wish to start the sequence.

Thunar

You can do exactly the same as in the process described above for Dolphin file manager, the dialog is a bit different and allow you to choose what information you want to use for renaming the files, as shown in this screenshot.

Pyrenamer

Pyrenamer is such a Swiss Army Knife, with all the tools you may need to rename any amount of files with ease.

No need to say more. You need to try it.

I hope this may help you as it does for me.


MySQL Job cannot start - Can't find error, need database

You can also try mysqld_safe.

This is the preferred way to start The MySQL server on Linux.

Here is a reference to the docs: https://dev.mysql.com/doc/refman/5.6/en/mysqld-safe.html


How to prevent Live CD from changing hardware clock

Is there a boot option or similar to make it not do that?

No.

  set it to never write to the HW clock (after all a live CD should not make changes to the system, at least not automatically)

This should be the case. A live session never ever ever should make permanent changes to a system. It defeats the purpose of a live session.
But this has been the case for a long time now so I expect Linux maintainers to have another idea about this. Using localtime is too limited anyway.

The live session is likely to run the following command

hwclock --systohc

and it will do this every time you start from the live session. If not that /etc/default/rcS will likely have UTC=yes as a parameter.

To prevent this from happening you would need to create your own live session ISO without adding either of these 2 settings.

The easier fix would be to tell Windows to use UTC instead of localtime. See for instance howtogeek's method on how to do that. It is stupid to use localtime anyways as this does not support other operating systems than the one you are using.


You cannot change this in the theme, nor can you set it as an icon.


I wrote some Python application stuff a year ago - as I remember,  the program reads the device as HIDRAW (Human Interface Device Raw-input). I ran the program from the command line

Here's a code fragment for you :

"""
A class to represent an RFID tag.
Reads an RFID tag from the serial port but checks that the port is available.
"""
import sys

class Rfidtag:
    def __init__(self, timeout):
        '''
        initialise the Serial port
        N.B. use ttyAMA0 for GPIO serial port
        \param timeout: (optional)
        '''
        try:
            import serial
        except ImportError:
            print 'No serial port found'
            sys.exit()
        else:
            self.ser = serial.Serial('/dev/ttyUSB0', 9600, timeout=timeout)

    def read(self):
        '''
        Read a tag from the serial port.
        '''
        string = self.ser.read(16) # read the full tag id from the reader
        if len(string) != 0:
            string = string[1:11]  # exclude start x0A and stop x0D bytes
        return string


Change working location and print number of files in a shellscript

Your command doesn't work merely because you quoted it, actually the action of bash Command Substitution does take place in the current working directory. However, as you should avoid parsing the output of ls I recommend a different approach.

I like using find for things like that:

find . -maxdepth 1 -type f -printf . | wc -c

This prints a . (-printf .) for every file (-type f) in the current directory (. and -maxdepth 1), wc then just counts the bytes in the output.


Ubuntu 13.10 AMD/ATI proprietary driver slow boot time, lengthy login/logout delays

If you don't use hibernation try to edit /etc/initramfs-tools/conf.d/resume and put # in front of

RESUME=XXXX


Any editor that does autocompletion in Ubuntu?

Vim has a couple different forms of completion built-in for many programming languages.  Good places to start might be ":help 'complete'" and looking up omni-completion.


Unable to open Ubuntu software center, Synaptic manager or install updates

Try sudo apt-get purge packagename --> Where packagename is the application you've installed. This should remove the application.

Then, try sudo apt-get autoremove --> This should remove all the unused dependencies.

Finally, try sudo apt-get install packagename --> Installs the required package.

Hope that helps. :)


You don't give much information, but depending on the program, you should give wine a try, or virtual box.

With Wine you can run Windows programs under Ubuntu. That is not always possible and sometimes extremely buggy. Install Wine from the softwarecenter. Then right click on .exe-file - open with wine.

Virtual box installs Windows in Ubuntu and then you can install the program inside. That is very comfortable, because it runs as a normal program window on your Ubuntu Desktop. Install virtualbox from the softwarecenter. Install Windows inside (you will need your installation CD). Install program as usual in Windows.


You can use vgcfgrestore. Since the change was made outside of LVM, you should restore the very latest volume configuration. From man vgcfgrestore:

sudo vgdisplay --partial --verbose
# Look for the uuid of a PV without a device path
sudo pvcreate --restorefile /etc/lvm/backup/<vgname> --uuid <uuid>
sudo vgcfgrestore --file /etc/lvm/backup/<vgname>


Ubuntu server 12.04 upgrade php version to 5.3.19

You don't want to upgrade to the latest release versions upstream. There's a reason for sticking with the ones in the stable, -updates and -security software channels of the repositories.

The version 5.3.10 in Precise is updated for security fixes and bugs. See the package changelog:

php5 (5.3.10-1ubuntu3.4) precise-security; urgency=low

  * SECURITY UPDATE: [...]

 -- Marc Deslauriers <marc.deslauriers@ubuntu.com>  Tue, 11 Sep 2012 11:28:52 -0400

See als this question: "Why don't the Ubuntu repositories have the latest versions of software?"


Machine only boots if I go through recovery mode

Replacing the motherboard (CPU also got replaced, but I doubt that was the culprit) ended up fixing this issue for me. Posting for posterity.


Redirect Sound output to a specific port...Realtek?

If I understand your question correctly, you would like to remap the channels on your soundcard?

You can write your own pulseaudio profile-set for your sound card. See my post about this on ubuntuforums.org:

http://ubuntuforums.org/showpost.php?p=12151686&postcount=13

This was for my sound card

Save the code as /usr/share/pulseaudio/alsa-mixer/profile-sets/native-instruments-komplete-audio6.conf

[General]
auto-profiles = no

[Mapping main-stereo-out]
description = Main stereo output
device-strings = hw:%f,0
channel-map = front-left,front-right,aux0,aux1,aux2,aux3
direction = output

[Profile output:stereo]
description = Main Stereo Output
output-mappings = main-stereo-out
input-mappings =
priority = 80
skip-probe = false

and create a new file for udev rules, for example

/etc/udev/rules.d/89-pulse-komplete-audio.rules

and paste the following (but replace the xxxx and yyyy with correct hardware ids, you can list them with lsusb):

SUBSYSTEMS=="usb", ATTRS{idVendor}=="xxxx", ATTRS{idProduct}=="yyyy", ENV{PULSE_PROFILE_SET}="native-instruments-komplete-audio6.conf"

From what I see the idVendor for Native Instruments is 17cc. You can see the existing configurations for other NI cards in /lib/udev/rules/90-pulseaudio.rules file.

After you have created these two files, disconnect your card, run

sudo service udev restart


My Weather Indicator Crash at Auto Start

https://github.com/atareao/my-weather-indicator/issues/21

"It seems setting "Auto Location" is causing crash during startup. If location is set manually, the program runs fine."


Can't open nautilus-actions in Ubuntu 20.04

You have to use FileManager Actions instead. This package is a replacement for  nautilus-actions package.
Their configuration executable is named fma-config-tool.

Useful stuff to read is this answer.


Sockets are a special file type, similar to TCP/IP sockets, providing inter-process networking protected by the file system's access control.

For example, when you open a listening socket in one terminal with netcat:

nc -lU socket.sock

then send data from another terminal by:

echo mytext | nc -U socket.sock

mytext appears on the first terminal.

By default nc stops listening after an End-of-File character.


How to install redis-server with version 5.0.7 on ubuntu 18.04?

It is not available in that distribution you need 20.04 to get that version 5 of it.
https://packages.ubuntu.com/search?keywords=redis-server&searchon=names&suite=all&section=all


Why is there less sound volume in Ubuntu / Linux Mint when compared to Windows?

In terminal type:

alsamixer

and set master volume louder


https://help.ubuntu.com/community/RootSudo#Re-disabling_your_root_account

  If for some reason you have enabled your root account and wish to
  disable it again, use the following command in terminal...

sudo passwd -dl root

It was the first result when I googled "ubuntu root login". Google is your friend :)


Which Ubuntu version to use on a MAXDATA laptop Eco 3100X ? with this system info

If Ubuntu is slow then you probably need to change your settings.  Right click somewhere on the desktop and select "Background."  Next click the "Visual Setting Tab" and check "None."  If you need games and applications which run on a slower machine then I would recommend dotdeb.com, those games work great on my laptop and are some of the least resource intensive I've seen.


Ubuntu Software gets into a transparent background

Same issue here on 20.04. Fixed it! Go into settings -> appearance  -> and select  something to your preference in "Window colors"


How to write a script which automatically presses `Fn + F3` button on my keyboard

Alternative way
Writing a script to press a key combination to set your screen's brightness seems a bit of a detour to me. You can directly set your screen brightness on log in by adding the command:
xrandr --output <your_screenname> --brightness 0.7

to your startup applications. Of course, instead of 0.7 (=70%), you can use any value you prefer.
Replace <your_screenname> by the actual name of your screen. Find out your screen's name by looking into the output of the command:
xrandr

Look for the word connected; the name before that is your screen's name
Add the command to your startup applications
Open Startup Applications (Dash > Startup Applications) and choose "Add". Add the command above and next time you log in, your screen's brightness will be set automaically to the value you defined in the command.


Ctrl + Alt + T opening terminator as 'X-terminal-emulator', not strictly 'terminator' on Ubuntu 18.04

I was having the same problem and found a work-around.
Open your keyboard shortcuts in settings and remove the binding for CtrlAltT near the top.
Then scroll to the bottom and hit the button to create a new shortcut. Name it whatever you want, and make sure the command is terminator

Set the shortcut to CtrlAltT and you're all set!


You just can't link an image from your computer directly in Blogger or any website. Why? Easy: because NOBODY would be able to see the data. Let me explain.

~ represent the user's folder. If Blogger would let you add it, the path would change between every device, including the server where the website is hosted! (yep, websites are stored in computers like yours)
Even if that worked, you wouldn't be able to see the image from another device. That happends because you're not sharing your computer's content to the entire Internet (if your computer does, then it's a server). You would need to set up complicated things like Apache, DNS or port forwarding.

So then, how do you add your photo to the Blogger widget? That's simple: use a service such imgur or postimage, then get the direct link or URL of your image.

P.S.: OK, I answered some months late and you may solved the problem... but hey, I'm trying to help!


Missing bootmgr after removing the Windows parttion

I can only assume you used the old Windows boot manager to boot Ubuntu with, that Ubuntu is at least version 10.04 or later and that you actually installed Ubuntu and NOT along side of Windows like what Wubi does.

So if you really "deleted" Windows and now exclusively use Ubuntu then you don't need that old Microsoft boot manager anyway. You don't need it even if you dual boot with Ubuntu either. Problem is, that tiny little 100-Meg NTFS partition is probably still the one and only "boot" partition on the hard drive and still being used - or at least, it was. But the fix is pretty simple. Just change the boot flag on the hard drive from that 100-Meg partition to wherever GRUB was installed which is likely on the one and only ext4 partition (not an NTFS one).

You might also note that this 100-Meg NTFS Windows boot partition is typically hidden from Windows but that it can easily be exposed if you simply assign it a drive letter in Windows. That's not exactly an Ubuntu thing. I only mention it since this hidden 100-Meg Windows "System" partition is where the Windows boot manager lives - it's not on the actual C: drive, which, again I assume you deleted. But who cares? You don't even use Windows any more. Right?

So to change the boot flag to wherever GRUB lives, just boot from a live Ubuntu disk/key/(whatever - you Pixie booter you) and fire up GParted. If you like command lines you could instead use FDISK or even CFDISK but it's nowhere near as pretty. Note that GParted is on the live Ubuntu disk (as well as countless other distros) but is never actually installed when you install Ubuntu. So using GParted, find the partition that has GRUB on it which is typically on the one and only ext4 partition and in a folder called /boot. Use GParted to assign that ext4 partition the boot "flag" and you're done. (Alternatively, as with any partition editor, you can do much destructive things like adjust partitions, create partitions, or even delete them. So be careful!)

In GParted specifically, highlight whatever partition that contains Ubuntu's /boot folder (which is where GRUB lives and is likely identified as /dev/hda1 with an ext4 file type), then select "Partition" from GParted's menu, go to "Manage Flags" and be sure the "boot" box is checked. Exit GParted (or whatever) and reboot from the hard drive that you just fixed.

If you were using the old Windows boot manager (XP to present day) then the boot flag on that old 100-Meg NTFS partition will be set. Again, this 100-Meg partition is unnecessary for GRUB and Ubuntu. That is, unless you did something during the Ubuntu installation that we still don't know about. And assuming there aren't any other problems with GRUB or anything else, which could very well exist, you should now be using GRUB to boot with instead of the old Windows boot manager. (You might also note that the GRUB menu doesn't even show up during the boot process unless it has detected another OS like Windows - or even another Linux OS.)

Don't worry about the boot flag thing either. You can always change it back or even to any other partition on that one physical hard drive without fear of any real damage. However you do need to check your BIOS setting to know what physical hard drive is actually booting! Because if you have more than one physical hard drive attached then THIS may be all you need to check!

Hope it helps.


The profile of gnome-terminal isnt correctly loaded by command line start

What exactly are you trying to do?

AFAIK the --tab-with-profile is for choosing a predefined terminal profile (i.e. one of the sets of application configuration settings from ls ~/.gconf/apps/gnome-terminal/profiles/). This is used for setting things like terminal font and color preferences etc. - nothing to do with the shell profile or resource file.

If you want to execute a bash script why are you calling it with sh? Either just make /home/vm/tmp/tmp.sh executable with a #!/bin/bash shebang at the top, or execute it via bash not sh - that way, it should source your .bashrc file by default.

If you need to use a non-default bashrc file, you can set that with a --rcfile argument to the bash command itself e.g.

gnome-terminal -e "bash --rcfile alternatercfile /home/vm/tmp/tmp.sh"


Where's the "flash tray icon on new message" feature in pidgin?

Solved it!

Right click on the tray icon, check the "Blink on new message" box.


Long waiting List for Internet: What are these IP addresses?

Try looking at: http://whois.net/reverse-dns-ip-lookup/

Most things are just update checks, etc. It is most likely a normal process.

But do check that link.

Ciao!


How configure the upstart in ubuntu in my ec2 [node.js]

It could be problem with the working directory. Try using chdir:

description "Photogrid"

...

chdir /home/ubuntu/photogrid

exec node /home/ubuntu/photogrid/bin/www

On a side note: The redirection isn't needed. The log is saved to files in /var/log/upstart/.


unable to click disconnect wifi on my ubuntu 12.04

Try sudo ifconfig wifi0 down and sudo ifconfig wifi0 up

The name wifi0 could be different use just ifconfig to see what it is called.

Check your logs for more info. /var/log/sys.log


Issues while upgrading from Ubuntu 14.04 LTS to 16.04

This might be frowned upon, but you could try deleting the lock file... then re-attempting the upgrade:

sudo rm /var/lib/dpkg/lock


Thunderbird keeps popping up the "Add a new address book" window

Per the brilliant hint of @vanadium, simply clicking 'Next' and creating the address book stopped the popups from appearing. Probably this was some kind of update/config/setting mishap, guess we'll never know.


After updating to Xubuntu 13.04, Brasero will not work, can this be remedied?

If the Problem is Brasero stucking in the normalize process: This is a known bug reintroduced in 13.04: https://bugs.launchpad.net/ubuntu/+source/brasero/+bug/374101.

To workaround, start Brasero and go to 'Edit' → 'Plugins' and deactivate the normalize plugin.


Shared clipboard is not working and can't use sudo commands on host-machine

I have just got the same problem with Ubuntu MATE 18.10 guest.

The solution is to install two packages linux-headers and build tools:

sudo apt-get install linux-headers-generic build-essential

then reinstall VirtualBox Guest Additions from ISO and then reboot. The clipboard works after reboot.

The complete list of VirtualBox services will look like below:

$ ps ax | grep VBox
  514 ?        I<     0:00 [iprt-VBoxWQueue]
  803 ?        Sl     0:00 /usr/sbin/VBoxService --pidfile /var/run/vboxadd-service.sh
 1320 ?        S      0:00 /usr/bin/VBoxClient --clipboard
 1321 ?        Sl     0:00 /usr/bin/VBoxClient --clipboard
 1330 ?        S      0:00 /usr/bin/VBoxClient --display
 1331 ?        S      0:00 /usr/bin/VBoxClient --display
 1340 ?        S      0:00 /usr/bin/VBoxClient --seamless
 1341 ?        Sl     0:00 /usr/bin/VBoxClient --seamless
 1349 ?        S      0:00 /usr/bin/VBoxClient --draganddrop
 1350 ?        Sl     0:00 /usr/bin/VBoxClient --draganddrop
 1938 pts/0    S+     0:00 grep --color=auto VBox


AUDACIOUS PLAYER- Direct DSD reproduction?

Audacious supports only PCM, not DSD. The supported formats are:

enum {
 FMT_FLOAT,
 FMT_S8, FMT_U8,
 FMT_S16_LE, FMT_S16_BE, FMT_U16_LE, FMT_U16_BE,
 FMT_S24_LE, FMT_S24_BE, FMT_U24_LE, FMT_U24_BE, /* padded to 4 bytes */
 FMT_S32_LE, FMT_S32_BE, FMT_U32_LE, FMT_U32_BE,
 FMT_S24_3LE, FMT_S24_3BE, FMT_U24_3LE, FMT_U24_3BE }; /* packed in 3 bytes */

Source: https://github.com/audacious-media-player/audacious/blob/master/src/libaudcore/audio.h.in#L25


Ubuntu 18 cannot connect to the Internet using eth network

systemctl stop $(fogserver)

-- any and all things installed with this server

  ip addr flush eth0

  sudo systemctl restart systemd-networkd

verify you picked up a IP assuming u had another dhcp server serving them

  ip a

but if its a new install yea probably make a base img for ubuntu and start over and if it happens again keep cloning using that base image/clone vm


Question Solved by Original Poster:

Ubuntu 14.04 Gnome shell display changed. How to restore default

Just forgot to restore the original skin for the Shell.


I'm currently running a Radeon VII on ubuntu 18.04.
Using kernel 4.15.0-47-generic and amdgpu-pro-18.50-725072.
Try this:
Install kernel 4.15.0-47-generic

sudo apt-get install \
linux-image-4.15.0-47-generic \
linux-modules-4.15.0-47-generic\
linux-modules-extra-4.15.0-47-generic \
linux-headers-4.15.0-47-generic
sudo update-grub

Then download amdgpu-pro 18.50 from http://amd.com

wget --referer support.amd.com \
https://drivers.amd.com/drivers/linux/amdgpu-pro-18.50-725072-ubuntu-18.04.tar.xz
tar xf amdgpu-pro-18.50-725072-ubuntu-18.04.tar.xz
cd amdgpu-pro-18.50-725072-ubuntu-18.04
./amdgpu-pro-install

Add amdgpu.dc=1 to GRUB_CMDLINE_LINUX in /etc/default/grub
run sudo update-grub and reboot into kernel 4.15.0-47-generic.

And Voilà
Cheers


probably the directory is owned by another user
try sudo chown -R dark:dark /home/dark/.config/ and run spotify again


multiple instances of conky running, but no startup entry

When users start a new session, they can decide which applications should load automatically. The graphical interface for that is accessed via System settings > Startup & shutdown > Desktop session. The lowermost section titled "On login" allows the user various options:

Image showing part of the Desktop Sessions interface

For whatever reason, the default option is the first one, Restore previous session. Retaining this option, in some cases, could have unintended consequences.

Consider having an application in one's autostart. If this application is

not specifically closed by the user (before logging out, shutting down or rebooting) or
entered in the Applications to be excluded from sessions box,

the user could see additional instances of the application open or running after each login.

The combination I prefer is to have whatever I want in Autostart¹ together with Start with an empty session.

¹ In my autostart, I use a time delay to avoid potential "race" conditions. When a session starts, it's quite a busy time for the system. So I use a delay of 1 min for my conky and 2 min for Dropbox.


-gt: unary operator expected shell script

The variable used is empty, leading to the error message regarding unary operator. Possible reason could be there is no rootfs in df -H output i.e. in your system.

$ foo=
$ [ $foo -gt 10 ] && echo OK
bash: [: -gt: unary operator expected

You have also some other issues in your script, the OR logic should be put as:

[ "$foo" -gt "$bar" ] || [ "$foo" -ge 90 ]

Also better use the shell keywod [[ instead of test ([) command to avoid many pitfalls:

[[ "$foo" -gt "$bar" ]] || [[ "$foo" -ge 90 ]]

For arithmetic comparisons, you can also use (( and regular arithmetic operators:

(( "$foo" > "$bar" )) || (( "$foo" >= 90 ))

You don't even need to put $ in-front of the variable name:

(( foo > bar )) || (( foo >= 90 ))


virtualbox extensions pack installation failed

The extension pack that you downloaded is for a different, later version of VirtualBox (v5.2) than the one currently installed on the system in question (v5.1). You need to either

upgrade the VirtualBox installation to v5.2 or
download and install the extension pack for v5.1.


I have sound on settings test but nowhere else (browser, VideoPlayer)

Fixed, Ubuntu have bug, If you leave sound source as only TV and then turn it off. next time you turn on integrated speaker will be muted for apps.


Ubuntu Software Center additional software plug-ins, official or third-party?

If I were to make a guess, the "Optional Add-ons" are what would be called Recommends or Suggests dependencies. They are listed by the package maintainer of whichever package you're trying to install, but may or may not be developed by them or be approved by/known to the upstream developers.

And indeed it is so:

$ apt-cache depends rkhunter | grep -Ei 'recommends|suggests'
 |Suggests: bsd-mailx
 |Suggests: mailutils
 |Suggests: heirloom-mailx
  Suggests: <mailx>
  Suggests: tripwire
  Suggests: libdigest-whirlpool-perl
  Suggests: liburi-perl
  Suggests: libwww-perl
  Suggests: powermgmt-base
 |Recommends: <default-mta>
  Recommends: <mail-transport-agent>
 |Recommends: wget
 |Recommends: curl
 |Recommends: links
 |Recommends: elinks
  Recommends: lynx
  Recommends: iproute
 |Recommends: unhide.rb
  Recommends: unhide
  Recommends: lsof


You need to have the right permission (read+execute) on the directory containing the executable  too.

If you have a script named script.sh in /home/foo/ and it has the octal permission of 775.

Now if you want to run the script as a different user e.g. bar, then bar needs to have read and execute permission on /, /home and /home/foo directories otherwise bar will get a permission denied message regardless of the permission of /home/foo/script.sh.


Unable to share /mnt/share-name/www folder in Ubuntu 14.04

I have no Idea of this purpose but this is the common permission method

sudo chmod 777 /mnt/share-name/www

Edited just for you

NOTE: THIS ALLOWS READ, WRITE AND EDIT


How to fix laggy mouse and keyboard on Ubuntu 10.04 LTS 64bit?

I found this problem solved on my computer when I upgraded to 12.04LTS, I would recommend giving this a try. Is there any specific reason that you are still using 10.04LTS on such a powerful system?


I got it working, after days of testing, it proved to be a faulty pci-e slot on my motherboard. Getting it fixed now. Sorry for the confusion.


The wifi hardware adapter is not shown in your output. I only see LAN adapters.

It is difficult to provide a solution with this information.

Open the network connection manager and ensure "Enable Wi-fi" is ticked"
https://imgur.com/a/B9zIk
Open a Terminal Window and run this command to see if it is recognized by NetworkManager. You should see, amongst others, a device of type "wifi" in that list, if not then your wifi-card/device is not enabled on your computer.

  $ nmcli device status

DEVICE      TYPE      STATE        CONNECTION
...
wlp2s0      wifi
...

What is the output on your computer?

Are you also connected to the Internet via the LAN? Try ping -c3 www.google.com
Is it in this list?

  $ ip address show

Perhaps it is disabled in the BIOS UEFI?


Unable to find expected entry 'restricted/binary-amd64/Packages' in Release file

Open your Terminal and execute the below command line (to reset the repositories):

sudo echo "deb http://archive.ubuntu.com/ubuntu trusty main universe restricted multiverse" > /etc/apt/sources.list

Then execute:
 sudo apt-get update

Now it should be fixed.


Create install USB with specific packages and configuration or have 1 server to define all packages and config

I know how to use aptik and i use it often when one of my customers need to clone a desktop to a laptop etc... What exactly is not working or needed? You have the right idea to clone that many Ubuntu PCs, All you need to do is setup the host PC exactly you want and then use aptik http://www.howtogeek.com/206454/how-to-backup-and-restore-your-apps-and-ppas-in-ubuntu-using-aptik/
And use the resulting usb on all of them  or you can copy the backup files aptik makes it to as many USB's as you want. OR try systemback https://launchpad.net/systemback  to take a snapshot of your current setup or host all set up and create a bootable usb backup of it which can also be put on unlimited usb's too. I've had luck with both. Its very helpful to us if you let us know your Ubuntu version etc too since programs sometimes work on one release and does not on another.  Good luck.


how to solve syntax error near unexpected token `('

!(hd) is an extended glob - you likely have extended globbing enabled by default in your interactive shell, but will need to enable it explicitly using shopt -s extglob inside a script. You might also want to consider using the -t TARGET form of the mv command:

#!/bin/bash

shopt -s extglob

mv -t "/mediafolder/sd/${PWD##*/}" -- !(hd)


hv-kvp-daemon fails in Ubuntu 16.04 on Hyper-V

Are you sure that the machine has been configured with "Data Exchange" enabled?

The option can be found in Hyper-V Manager. Right-click the machine, select "Settings..." -> "Management / Integration Services". Ensure that there is a checkmark next to at least "Data Exchange".


How can I open pdf files by default with foxit?

A solution is to look for the *.desktop file FoxitReader.desktop and add % F at the end of the line starting with Exec

More in details: in my Ubuntu 16.04 machine I found the file in the following folder

cd /$HOME/FoxitSoftware/FoxitReader/
vim FoxitReader.desktop

The file initially was like this:

  1 [Desktop Entry]
  2 Name=Foxit Reader
  3 Comment=View pdf documents
  4 Keywords=pdf;octet-stream;
  5 StartupNotify=true
  6 Terminal=false
  7 Type=Application
  8 #Icon=FoxitReader
  9 X-GNOME-DocPath=
 10 X-GNOME-Bugzilla-Bugzilla=GNOME
 11 X-GNOME-Bugzilla-Product=FoxitReader
 12 X-GNOME-Bugzilla-Component=BugBuddyBugs
 13 X-GNOME-Bugzilla-Version=3.14.1
 14 Categories=GNOME;Viewer;Graphics;2DGraphics;VectorGraphics;
 15 MimeType=application/pdf;application/octet-stream;
 16 Exec=/home/pbirol/FoxitSoftware/FoxitReader/FoxitReader.sh
 17 Icon=/home/pbirol/FoxitSoftware/FoxitReader/images/FoxitReader.png

I modified only the 16th line and added %F at the end:

 16 Exec=/home/pbirol/FoxitSoftware/FoxitReader/FoxitReader.sh %F

Since most of my *.desktop files are in the folder /usr/share/applications/ I also copied it there, just to be sure (however, I am not sure this part is necessary)

sudo cp FoxitReader.desktop /usr/share/applications/

Now FoxitReader is part of the list of programs recognized by ubuntu in the "open with" list, so I just went to a pdf file, right-clicked > Open with > View all applications and chose FoxitReader


Grub messed up on dual boot machine - can't boot live usb

On one occasion I had Ubuntu installer to mistakingly install GRUB on the flash drive instead of the HDD - the machine only booted while the flash drive was plugged in.

I would try booting to Windows and re-creating the LiveUSB to make sure you don't have GRUB installed on it by the previous install.


What does "Sorry, Ubuntu 12.04 has experienced an internal error" mean?

apport is a debugging tool that is used to generate crash reports. This was not enabled by default in previous versions but in Ubuntu 12.04 it is. To avoid this, the Apport can be disabled by force. One drawback of doing it will be that you wont see the crash report.

To disable apport, you need to modify the /etc/default/apport file. Use the command below to open the file in GEdit text editor:

gksu gedit /etc/default/apport

The content of the file is:

# set this to 0 to disable apport, or to 1 to enable it
# you can temporarily override this with
# sudo service apport start force_start=1
enabled=1

Change the enabled=1 to enabled=0. Save and close the file and the pop-up should stay away.


Assigning a static IP to Ubuntu Server 14.04 LTS

I'm not sure if this will solve your problem, but this answers your question and I think it's worth a shot.

To assign a static IP, you need to edit /etc/network/interfaces.

The interface will probably be called eth0.

The current entry will look something like:

auto eth0
iface eth0 inet dhcp

You will need to change this to:

auto eth0
iface eth0 inet static
   address 10.253.0.50
   netmask 255.255.255.0
   network 10.253.0.0
   gateway 10.253.0.1
   dns-nameservers 8.8.8.8

You will have to change the numbers around depending on your network, but you can find out the information by checking out ipconfig from Windows.

Make sure you choose an address outside the address space of the DHCP server.

Then restart networking sudo service networking restart. If that gives you trouble, reboot the machine.


How to make Windows installation files UEFI bootable from hard disk using Ubuntu 20.10?

UEFI boot uses FAT32 filesystem to boot from.
You will need to create a FAT32 formatted partition.
About 512MB for just a boot partition is plenty.
Create these directories in the newly formatted FAT32 partition.
:\EFI\Microsoft\Boot
Copy the contents of C:\Windows\boot\EFI to \EFI\Microsoft\boot
You however will need to set up the BCD store with the correct partitions and paths to winload.efi... this cannot be done easily from linux. It can be done, but requires more work than is partical.
Much easier to boot to WinPE and use bootrec.exe or bcdedit.exe tools to complete the configurations.


Second monitor detected but doesn't turn on

Fixed it by plugging the monitor to another port. Was using a DVI-D (with an adaptor to VGA) and I bought a Display Port to VGA adaptor and now it's working. I'm gonna light a candle to everyone that has this problem and doesn't have a extra port.


Where is input source in ubuntu gnome 15.04

Install the Gnome Tweak Tool:

sudo apt-get install gnome-tweak-tool

Select Keyboard and Mouse and switch Show all input sources on.


On the receiver end:

nc -l 5678 | sudo dd if=/dev/stdin of=/dev/sda

Then on the sender end:

sudo dd if=/dev/sda of=/dev/stdout | nc 1.2.3.4 5678

This copies sda from one PC to another over the network to IP 1.2.3.4 and port 5678. Be sure to install one of the nc packages (just run nc in the terminal and you will get the suggestion if not installed yet.)

Also make sure not any volume on either of the sda drives has a filesystem mounted, so run off a live CD on both ends if you're unsure.


How can I disable the auto-play feature when MTP device is connected?

This is probably a better solution (and more likely to work):

Open up the file manager (nautilus)
Click Edit -> Preferences
Click the 'Media' Tab
Next to 'Music Player', select 'Do Nothing' from the drop down list.

The media player should still automount and be available from the 'Places' menu. You will still be able to use Rhythmbox to play/manage the device but you will have to open it up manually.


Out of the box? No. However, you can get the Nvidia Optimus to work through a project called 'Bumblebee'.

Here are installation instructions on the ubuntu wiki: https://wiki.ubuntu.com/Bumblebee


There's no guarantee that GRUB will be able to use exactly the same resolution your Xserver is running at with your video hardware. The only way to find out what settings will be acceptable here is to use GRUB to tell you.
To find out, boot your computer and press your C key from your GRUB Menu to switch into command-line mode.

To prevent text from scrolling up the screen uncontrollably, first use the command set pager=1.
Then you can run the vbeinfo command for a list of resolutions your hardware can support.
Write the numbers down on a piece of scrap paper if you need to.

Now, let see how you can change change GRUB menu resolution:

Open your /etc/default/grub file with a text editor and change your settings there: gksudo gedit /etc/default/grub.
Alter the numbers after where it says"GRUB_GFXMODE=" with a suitable resolution for your hardware.
Save the file before closing it.
Run sudo grub-mkconfig -o /boot/grub/grub.cfg to write the changes to your grub.cfg.
Reboot and see if it worked.


How to Ubuntu upgrade from 10.10 to 12.10 32-bit

You could only upgrade from 10.10 to 12.10 by first upgrading to 11.04, 11.10, then 12.04 LTS, and finally to 12.10 ..

Maverick: end-of-life reached on April 10, 2012

However, Ubuntu 10.10 (Maverick) is no longer supported, and so upgrading from 10.10 to 11.04 is also not supported.

Any upgrade should only be attempted if your are fully updated for the current release. Put more simply, the start and end points are both moving targets.
Any upgrade problems may directly relate to behavior of the unsupported release you are updating from. The upgrade can be attempted, but lacks 'support'.

Once you have your data and settings backed-up, you should do a fresh install of Ubuntu 12.04 LTS on your PC. There may be initial issues with drivers, but this should mostly be resolved by doing an update.

Once you have 12.04 LTS working, then try out (but do not immediately install) Ubuntu 12.10. This should also work on your PC, but will in turn be replaced by 13.04, etc.

I have successfully run 12.04.1 LTS on an HP Mini netbook (Atom processor, 1GB RAM) or ex-corporate desktops (P4 2.8GHz, 1GB RAM).

UPDATE:

Actually 11.04 is also no longer supported.

Natty: reaches end-of-life on October 28, 2012

The problem is that for releases that are no longer being maintained, upgrading from these releases may have issues which are not likely to be resolved. The release being upgraded to also needs to be supported, otherwise the user is on their own.

Ubuntu / Canonical do support longer usage (without upgrading), but only for the Long Term Support (LTS) iterations. These are usually released only every two years.


Created a new OpenSSL key and I don't know where my CSR file is?

Search for the file in your system with:

sudo find / -name "[server name].csr"


Will ubuntu support subversion1.7 and when will it be?

$ rmadison -u ubuntu -s quantal subversion
subversion | 1.7.5-1ubuntu2 |       quantal | source, amd64, armel, armhf, i386, powerpc

Looks like 12.10 has version 1.7.5 of Subversion in the repository already.

Now, if you are asking whether 12.04 and the older versions would have the latest version, I would say no.

See also:

Why don't the Ubuntu repositories have the latest versions of software?
Why can't I update applications without upgrading the whole OS?
Where can I find a Subversion 1.7 binary?


Turn off "Auto hibernation(fast-startup)" in windows 10....
Goto control panel->power settings ->choose what the power button does-> Turn off fast startup


Apache shows empty Index of even though there are files in /var/www/

In 14.04 the default DocumentRoot is not /var/www/ but /var/www/html/.

You can change that in /etc/apache2/sites-enabled/000-default.conf (or whatever site config you re using).


Can I reset everything to its factory default settings?

You can restore gnome-specific settings with the following commands in terminal:

rm -rf .gnome .gnome2 .gconf .gconfd .metacity

For details you can see How to Reset Ubuntu/Gnome Settings to Defaults without Re-installing | Linux FUD

Additionally you can verify that there are no broken dependencies using:

sudo apt-get check

And then you can troubleshoot your remaining problems one-by-one.


After upgrading to Ubuntu 14.04, home folder remains encrypted, and the password doesn't work

You may be able to recover it by decrypting the file  /home/username/.ecryptfs/wrapped-passphrase  using your login passphrase.

ecryptfs-unwrap-passphrase /home/username/.ecryptfs/wrapped-passphrase Type your login passphrase to reveal the mount passphrase.

If your login passphrase matches the passphrase used to encrypt the wrapped-passphrase file, your mount passphrase will be written to screen. Record and protect this data accordingly.

If you have lost your wrapped-passphrase file, and you did not record your mount passphrase, it is impossible to access your encrypted data.

References (UbuntuHelp)


Is it possible to control minimum finger distance to trigger touchpad events?

Look at the HorizHysteresis and VertHysteresis of synclient. Here's what they do according to man synaptics.

Option "HorizHysteresis" "integer"
              The  minimum  horizontal  HW distance required to generate motion events. Can be specified as a
              percentage. Increase if noise motion is a problem for you. Zero is disabled.  Default: 0.5 per‐
              cent of the diagonal or (in case of evdev) the appropriate "fuzz" as advertised by the device.

       Option "VertHysteresis" "integer"
              The minimum vertical HW distance required to generate motion events. See HorizHysteresis.


After a few afternoons of trying and scouring the internet, the answer I found was simply entering the commands

sudo apt-get install openssh-server

on the host machine, which I was sure I selected in the initial OS installation, and

sudo ufw allow 22

on both machines to make sure the necessary port was open.  I then rebooted the host machine, and was able to connect.

Now on to the next brick wall!


Cannot lock '/etc/group' in recovery mode

Check that you are root

whoami

Check that the root partition is mounted read-write

cat /proc/mounts

If you see that your partition is mounted as ro (read-only), try remounting it as rw

mount -o remount,rw /


Where do I submit a .desktop file updated with the Unity Launcher API?

You should file a bug report with the feature request, you can file a bug report for chrome by opening a terminal and executing:

ubuntu-bug chromium-browser


How do I verify duplication of files in a new RAID 1 Group?

I believe I've figured out what's going on here.  I can't say how to look at the individual files on each system, but after running cat /proc/mdstat I noticed that although the drive says it's not functioning properly, there's a progress meter labeled "Recovery" that has moved up with time.  I'm new to RAID on Linux and so at first, I didn't understand what I was looking at.  However, after re-running the command a few times and noticing the progress bar moving, and verifying the the HDD LED on the server is blinking, it has become apparent that the duplication is still in progress, and since it isn't finished yet, that is probably the reason the drive is showing up as not functioning properly.


Struggling with creating a ssh + password launcher

Rather than put paswords in your alias, use ssh-copy-id to copy your PUBLIC ssh key to the target, and use ~/.ssh/config to specify details. For an example, here's my ~/.ssh/config:

$ cat .ssh/config
# alias aardvark='ssh -l w3 aardvark '
# alias cookie='ssh -l walt cookie '
# alias fw='ssh -l root -p 8022 spark2y '
# alias squid='ssh -l walt squid '
# alias wombat='ssh -l walt wombat '
#
Host aa
     Hostname aardvark
     User w3
     ForwardX11 yes
     Protocol 2

Host ck
     Hostname cookie
     User walt
     ForwardX11 yes
     Protocol 2

Host fw
     Hostname spark2y
     User root
     Port 8022
     ForwardX11 yes
     Protocol 2

Host sq
     Hostname squid
     User walt
     ForwardX11 yes
     Protocol 2

Host wm
     Hostname wombat
     User walt
     ForwardX11 yes
     Protocol 2

Read man ssh-copy-id;man ssh;man ssh_config.


Make your .yaml look EXACTLY like this...
network:
  version: 2
  renderer: networkd
  ethernets:
    enp10s4:
      dhcp4: false
      addresses: [10.0.1.245/24]
      gateway4: 10.0.1.1
      nameservers:
        addresses: [10.0.1.1, 208.67.222.222, 208.67.220.220]
      optional: true
    enp2s0:
      dhcp4: false
      addresses: [192.168.100.1/24]
      optional: true

sudo netplan generate
sudo netplan apply
reboot


You can solve startup issues using a Windows 7 DVD and selecting the proper option.
Yes you can see (read: mount) your Windows partition and check your
files, and then make a back up. Boot the Ubuntu live CD get to the Try Ubuntu screen and then open the file manager (Nautilus) in it look out for the Windows partition click and it will mount it.


It's a known bug. Apparently it's fixed in version 0.48.1.


Ubuntu 16.04.2 LTS on ZFS root - unable to boot

I ran into this same issue. The fix for me involved adding to the linux line of my grub boot entry. In my case, it was missing the boot=zfs entry.

(note: this is for debian, so adjust to your kernel etc)

linux    /ROOT/debian@/boot/vmlinuz-4.9.0.3-amd64 root=ZFS=rpool/ROOT/debian ro boot=zfs $bootfs quiet

which once you get where you can get into your system, you can edit /etc/default/grub and add to GRUB_CMDLINE_LINUX_DEFAULT="quiet" to make it

GRUB_CMDLINE_LINUX_DEFAULT="boot=zfs $bootfs quiet"

That should get you booted, and you may want to write it down, as future upgrades may break it again :)

Happy ZFSing!


My seagate drive is one of them with no supply. Since the computer is not very new, I considered the case that maybe this could be the problem (the usb drive did not have enough power to supply the seagate). Thus, I tried an USB adapter with supply and it worked.


The error message is pretty straight forward. The banner is not matching the Reverse DNS record. You either have to update your reverse record with your hosting provider, or update your banner to match the reverse record in place.

The banner is the first line sent by the mail server when a client connects:

[~]$ nc localhost 25
220 example.com ESMTP Postfix (Debian/GNU)

It's given by the configuration line

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)

$myhostname is replaced by the hostname configured for the host, and $mail_name is replaced by the MTA in use. However you don't have to use the variables:

smtpd_banner = example.com ESMTP Postfix (Ubuntu)

will work.

To actually change the reverse DNS you have to check with your providers help desk. In the case of DO, this help article may be helpful.


Device for boot loader installation via USB

/dev/sdc is your usb drive. If you want to install ubuntu in usb drive then select "/dev/sdc1" for your ubuntu operating system installation and for bootloader installation select "/dev/sdc". Keep in mind /dev/sdc1 for os installation and /dev/sdc is for bootloader installation. In this way your pc hard disk will be untouched and ubuntu will be totally installed to usb.


failed to update - internet connection error

Go to Software Sources > Other Software and Uncheck the checkbox against http://dl.google.com/linux/chrome/deb/dists/stable/Release and Click on Close.

Now go and check for updates.


Is it OK to delete the /boot/initrd.img file on a running system

It is ok to remove it and the kernel too while a running system.
But you should plan for the worst, what are you going to do if system crash or shutdown at the time of replacing, or it could be a bad kernel update.

It's recommended to keep always an old kernel that works.

So keep a ready USB boot disk with backup of that kernel & ramdisk. (5~10min to recover)


Cannot Install a software from software center in ubuntu 14.04 LTS

First, go into software sources and check what is enabled and basically enable everything that is there so long as you made no modifications, then go to a terminal and run sudo apt-get update to make sure you have the latest software list


How can I delete a Volume Group in Terminal?

vgremove vgsystem2

vgextend vgsystem /dev/sdb1

I am assuming that /dev/sba1 on the last line actually means /dev/sdb1

Edit 1

You don't need to run partprobe after the reboot. But it wouldn't hurt.

pvscan tells you that you have 2 lvm2 devices (/dev/sda1 and /dev/sdb1). In addition to that sda1 is fully used for volume group vgsystem.

Not surprisingly pvcreate fails because /dev/sda1 is already a physical volume.

Not surprisingly vgcreate fails because vgsystem already exists.

/dev/sda1 looks a bit small. Do you have /dev/sda2 or perhaps unpartitioned space on /dev/sda?

I am not sure what you are trying to achieve

If you want to remove VG vgsystem from /dev/sda1 use pvremove vgsystem

If you want your 2 devices to be treated as a single logical volume you need to expand volume group vgsystem to sdb1 and then create a logical volume:

vgextend vgsystem /dev/sdb1
lvcreate -l 100%VG -n lvsystem vgsystem

then you should be able to make a filesystem on /dev/lvsystem, mount it and use it.

Edit 2

Umm, I haven't forsaken you. Please re-read what I wrote between Edit 1 and Edit 2. Did you try running any of the commands? What was the output? What is your answer for "Do you have /dev/sda2 or perhaps unpartitioned space on /dev/sda?"?

It would be nice to know what exactly are you trying to achieve. This will help me help you.


Mount an external drive at boot time only if it is plugged in

You're all on the right trail. I've found a way that is a little more  clean and better form.

The correct option to add in fstab is nofail, however, it needs to come after auto. If you change it to noauto, it will never mount during boot. If you add nobootwait to the bootloader, you could potentially miss something serious, such as mounting the partition before fsck finishes checking it, or not mounting a partition that is used in the boot process.

After making the above change, The system will start normally (and mount the volume) if the device is plugged in while the system is shutdown.
It will also boot normally if the device is not present at boot time.

The only inconvenience is that if you connect the device while the system is running, depending on configuration (too many variables to test), the device may not mount immediately. This can be remedied with a simple mount -a or mount /specific_device or a reboot.


How to send an email attachment from terminal?

mutt command may not be installed by default. You can install it using sudo apt-get install mutt


Is there a way to run "planner" in kubuntu?

You could mix the GTK (Gnome) and the Qt (KDE) based applications. With the KDE/Kubuntu desktop the Gnome applications will install the needed GTK libraries.

Here with the Kubuntu 11.10 (simulation):

:~$ sudo apt-get -s install planner

  Reading package lists... Done

  Building dependency tree

  Reading state information... Done

  The following extra packages will be installed:

    gconf2 gconf2-common libart-2.0-2 libgconf2-4 libglade2-0
    libgnomecanvas2-0 libgnomecanvas2-common libgtk-3-0 libgtk-3-bin
    libgtk-3-common librarian0 rarian-compat scrollkeeper

  Suggested packages:

    gconf-defaults-service librsvg2-common gvfs

  The following NEW packages will be installed:

    gconf2 gconf2-common libart-2.0-2
    libgconf2-4 libglade2-0 libgnomecanvas2-0 libgnomecanvas2-common
    libgtk-3-0 libgtk-3-bin   libgtk-3-common librarian0 planner
    rarian-compat scrollkeeper

--- EDIT ----

Well - that was a simulation ; )

man apt-get

s, --simulate, --just-print, --dry-run, --recon, --no-act
     No action; perform a simulation of events that would occur but do not actually
     change the system.

Example

Installing with the command

sudo apt-get install planner

Trying to start the Planner

K > Applications > Office > Project Management

There seems to be problems. Starting from the konsole the planner is giving an error message:

The program 'planner' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAccess (attempt to access private resource denied)'.
  (Details: serial 764 error_code 10 request_code 152 minor_code 1)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

Try#1

Turning the Desktop effects off (Alt+Shift+F12). System Settings > Desktop Effects.

A bit better. The Planner is starting but the planner window is blank.

Try#2

Turning the Desktop effects on and turning the GTK widget style to the Raleigh. System Settings > Application Appearance > GTK+ Appearance.

Now the Planner is starting and the planner window is readable.

--- EDIT #2----

The KDE project planner app is the KPlato: http://www.kde.org/applications/office/kplato/. I can't say what it's status is (good/bad). Package is kplato.


Starting in Ubuntu 11.10 multi-arch is used for applications that formerly used ia32-libs.

gtalk & Google plus are the same plugin. They are are comprised of a 64-bit plugin plus a 32-bit daemon - and use the deprecated ia32-libs, it will be up to Google to update their package at some point.

Under Ubuntu 11.10 amd64 users should continue to use the 64-bit .deb available from http://www.google.com/chat/video on amd64 systems, as the 32-bit .deb cannot be used without additional modifications to the system at this time.

Once downloaded the plugin can be installed by either:

Clicking open in the browser;
Open the file manger, navigate to ~/Downloads and double click on the google plugin deb file;

Either method will open the Software Center to complete the installation.  If you receive a dependency error, make sure you have selected Universe in your software sources.


ubuntu 14.04. libiberty not found after install

You should look for it in platform directories.
For me all it took was adding following configure option:

--with-libiberty=/usr/lib/i386-linux-gnu/

How I figured it out was simple find from command line:

find /usr/ -iname '*iberty*'

Which returned some header files and /usr/lib/i386-linux-gnu/libiberty.a.


Unable to insert the virtual optical disk (VBoxguestaddition) in virtual machine for ubuntu server in win 10

Fooling around with this problem, I clicked on Devices>Optical Drives and unchecked VBoxGuestAdditions.iso.

I then got a question asking: Would you like to try to force ejection of this disk? I clicked the [Force Unmount] box.

Next, go back to Devices>Optical Drives and add a check tp the VBoxGuestAdditions.iso

At least I'm no longer getting an error. Hope this works for you


13.04; frequent freezes under gnome-shell, gnome, unity

To report a bug to Psensor, please read: http://wpitchoune.net/psensor/doc/faq.html#S_BugReport

I doubt Psensor itself can be the cause of a computer freeze. There might a bug that I am not aware causing a DE freeze but certainly not a kernel crash.

In the past, there was an access violation between the lmsensors library used by Psensor and the ACPI but AFAIK it is fixed in recent releases. See: http://www.lm-sensors.org/wiki/FAQ/Chapter3#Mysensorshavestoppedworkinginkernel2.6.31 .

BTW, I guess it is not related to Psensor as you seem to say that after psensor removal the issue still exist.

You should first look at the log files in /var/log, mainly the syslog.* and dmesg.* ones after the crash occurs.


Couldn't generate PGP key, general error

The reason that error was occurred are following:

~/.gnupg/*.gpg files had read-only permissions.

Before I use this operation, I created a gpg key by using following commands.

sudo -s
gpg --gen-key

After that, I logged in regular user.

Thus, I hadn't the permissions to write ~/.gnupg/*.gpg (it's owner is root) files.

The solution: I modified it's permission by using following commands so that I created gpg key successfully.

sudo -s
chown xxx ~/.gnupg/*.gpg


How to install Inkscape 0.48 release on older releases?

I found this semi-official looking PPA with backports of Inkscape .48.

Unfortunately the latest version I have in Maverick as of today is .47, the merge for .48 has been approved and it .48 should be in Maverick soonish.


I got rid of that entry by adding a fstab entry with a /mnt mountpoint, that would be:

/dev/sdc1       /mnt/nonexistent               btrfs   noauto        0       0
/dev/sdb1       /mnt/nonexistent               btrfs   noauto        0       0

for you.

(With some help from Stackoverflow )


Create a shortcut key to toggle Airplane Mode On/Off

You can use the following simple bash script:

#!/bin/bash

wifi="$(nmcli nm wifi | awk 'FNR == 2 {print $1}')"

if [ "$wifi" = "enabled" ]; then
    nmcli nm wifi off
else
    nmcli nm wifi on
fi

Don't forget to make it executable:

chmod +x /path/to/script

Then add your custom shortcut to this script (it's up to you what shortcut want to choose - it should be something simple for you, like Alt+F5):


How to temporarily turn off NetworkManager from the command-line?

If you don't want to have your inteface make a DHCP request, simply edit it (right on network manager applet, choose "Edit Connections", click on the interface in question, then choose the IPv4 tab and change "Automatic (DHCP)" to "Manual" and specify your settings manually.

If you need to turn off network manager regardless, use

sudo service network-manager stop

You can specify stop, start or restart for most services.

Htorque notes that service is being deprecated in Ubuntu in favour of the stop, start and restart commands.  So :

sudo stop network-manager

would also work.  I still prefer using service because, as of Maverick, there's no auto-complete when you use the newer commands.  A bug has been filed about this, and from that, a fix has been released, so hopefully this will be rectified in Natty this coming April.


How to change the login screen resolution in Ubuntu 18.04

You don't mention which version of Ubuntu you're using. If you're using 18.04, there are a couple of things you can try.

The first thing to do is to make sure the resolution of 1920 x 1080 is supported in grub. To do that reboot your computer and hit Esc repeatedly until you get the purple screen with the recovery and grub options. Hit "c" to get a grub prompt. At the grub prompt, type:

videoinfo

and hit Enter.

Look at the list of "supported" resolutions, and make sure 1920 x 1080 is there. If so, type:

exit

to exit grub and boot.

The boot screen resolution is changed by changing your default grub settings. Open a terminal and enter:

sudo nano /etc/default/grub

Use the down arrow or Page Down until you see the line that looks like this:

#GRUB_GFXMODE=640x480

Below that line, enter the following, substituting the 1920x1080 for a supported resolution:

GRUB_GFXMODE=1920x1080
GRUB_GFXPAYLOAD_LINUX=keep

To save your changes, hit Ctrl+o, with "o" as in Ohio, not zero. To exit nano, hit Ctrl+x. Now, update grub:

sudo update-grub

That should solve the problem in grub, and won't be overwritten by an update. For the login screen, you may be able to fix it with the 4K settings in Ubuntu 18.04. Go Settings -> Devices -> Displays and set "Scale" to 200%. I'm not sure if that will affect the desktop manager or not, but it's the first thing I'd try.


Program of Choice for Making Mac OS X bootable USB?

If you're on a PC, you need to use a program called iBoot (google for it, since I can't give you a link. Look for TonyMacx86's blog). You can put that on a USB, possibly, with Unetbootin alongside of an ISO of OSX...I'm really not entirely sure about USB booting since I used to try this with a DVD.

In a nutshell, if on a PC you'll need iBoot in order to even boot into OSX from the disk. I'm not sure if you can put both on the same USB, but it's worth a try.


Open Nautilus, Top menu, Edit -> Preferences -> Behaviour

Change View executable text files when they are opened to either Run executable text files when they are opened (warning:  Potentially dangerous!) or Ask each time


Unity does not show the Application Menu

This situation could be solved by restart unity

First step, Alt + F2
Type unity

The Unity will be restarted and the problem is solved.


How can I use my external display on my laptop with intel and nvidia video cards?

I have the same laptop, your Nvidia card is called "Optimus" and won't run with the normal Nvidia drivers as Nvidia have "no plans to support it in Linux"

However:

There is a guide on this site:

Installing Bumblebee for Nvidia Optimus

Don't be alarmed by the name, it tells you how to set up the Optimus card and how to increase battery life by appx. 60% in my experience.

You will need to remove the Nvidia drivers you have first - Google is your friend for that.

After that you need to splash the cash on a mini DP to VGA adaptor (8-15 British Pounds on Ebay) for your external monitor as there is currently no support for HDMI and Optimus on the Dell L502x at least (others maybe?).

I work using projectors all the time and find this to be a robust and usually stable solution.

This gives me 1366x768 on the laptop and 1080x1920 on my external monitor.

Hope this helps.

Richard.


Xorg 11.10 kernel 3.0.0-16-generic running Extremely High CPU memory. Was a bug Introduced in recent update?

Updating the kernel to the next revision fixed the problem.

A couple days after this post there was a new release to the kernel and I believe that was 3.0.0-16.28 in the update log I saw there was a fix for Intel processors so I believe this fixed the issue.

On a side note I would recommend to all to add the Xorg.conf modifications I added in an attempt to fix the CPU load problem:

Option "UseEvents" "On"
Option "RenderAccel" "O"

This has made my setup run even snappier if you can believe it. :D


Is "running" Ubuntu Live a reliable way to predict how my computer will act on actual install?

Using the LiveUSB/CD will not install / make any changes to your system

This should give some indication of what will work out of the box - however, there are updates / workarounds (ndiswrapper and other list of workarounds) in place should you need it.

You may wish to consider looking at the support for your wireless card and perhaps looking at the manufacturers website you may be able to find out more about your netbook and if there is any compatibility issues

You can insert your model here to give you an idea

Also, this has been a popular choice to view device setup

Once you have a clear list of peripherals, such as wifi etc, you can have a look at existing lists, such as this one

I hope this helps.


Probably not ideal, but I solved the issue by reinstalling ubuntu 18.04, installing the nvidia drivers for my card following the second method on this article and installing Steam from the repositories through the command line (first method from this article).


Configure gnome-screenshot to run a script

You can simply override the standard gnome-screenshot with your own script that calls the original binary and then performs your own commands after it finished.

To do that, just paste the script below as /usr/local/bin/gnome-screenshot (open your editor with root privileges or you won't be able to save it):

#!/bin/bash

# Call the original 'gnome-screenshot' and pass it all command-line arguments:
/usr/bin/gnome-screenshot "$@"

# Insert your own script here:
LATEST=~/Screenshots/$(ls ~/Screenshots -rt | tail -n 1)
set -f
echo "$LATEST"
xdg-open "$LATEST"

Don't forget to make the script executable:

sudo chmod +x /usr/local/bin/gnome-screenshot

After that, your script will be launched whenever someone runs gnome-screenshot (without absolute path) instead of the original executable, because the /usr/local/bin location has a higher priority in PATH than /usr/bin.

The keyboard shortcuts should also use the new script now by default.


Cannot successfully create a bootable Ubuntu USB drive

Try re-formatting the flash drive to Ext2/3/4, and then when you install, have it format to FAT. That has worked for me in the past.


What flavour of ubuntu desktop should I use?

You can try Lubuntu, designed to be lightweight and not resource heavy.

You might need to work a little to install it on a PPC architecture though. Here's a thread with some of the details on that.


Copy/Paste from Firefox to Terminal (Urxvt)

To paste in the terminal, use ctrl+shift+v as a key based shortcut, or right click in the terminal and choose paste - This works for me for pasting text from a webpage on firefox into the terminal


I couldn't find any apps on linux to solve it . I just used permissions time machine lite program on windows and that fixed all errors .

http://www.amydprojects.com/2013/10/permissions-time-machine-v14.html


It works if you add the crunchbang line at the head end of the script to force the shell interpreter to use the bash syntax, and not default to the old sh syntax. (It works for me also without the crunchbang line, but for many reasons it is a good idea to use a crunchbang line.)

I created the file arraytest.

#!/bin/bash

declare -a arr=("element1" "element2" "element3")

for i in "${arr[@]}"
do
   echo "$i"
done

Then I made it executable and executed it.

chmod ugo+x arraytest

$ ./arraytest
element1
element2
element3


Is it there a full movie editing software that I can get that has a chroma keyer?

Cinelerra

Cinelerra is a Sophisticated Movie Editor. It is having all most all the features found in Commercially available popular video editors

It is Having Chroma Key.

You can Install Cinelerra with ppa:cinelerra-ppa/ppa repository

sudo add-apt-repository ppa:cinelerra-ppa/ppa && sudo apt-get update && sudo apt-get install cinelerra-cv

In its Resource Window > Video Effects > Chroma Key you can get chroma key.

You need to Drag and Drop this Icon to the Compositor Window.

Then, Chroma key Track will appear in Timeline

There is a small Button in this track. By click in it, You can get the Settings window for Chroma Key.


Not able to access office resources - need to install openswan xl2tpd and l2tp-ipsec-vpn in Ubuntu 18.04

I know this isn't the answer you want, but as of this moment there are no versions of the openswan package available beyond 14.04 and no source package for bionic either. The same is true for the l2tp-ipsec-vpn package which also doesn't have a current source package for bionic at this moment.

For the above packages you could attempt to compile them from the latest sources available or test the debian packages. Either or neither of which may be successful in your environment.

The xl2tpd package is available for bionic in the universe repository.

Since you require these resources an alternative would be to stick with 14.04 until such time as the required/desired packages are available (hopefully before April of 2019 when Trusty support expires).


Is it possible to "upgrade" from a 32bit to a 64bit installation?

You will find a  clean install a lot less hassle than any other unusual, obscure, unsupported method.

Your suggest of partitioning the config files, home directories, etc is probably the best idea, and it is possible to install the same packages on a clean install as on another install.

On the other hand, what you requested is possible, there is a little guide for Debian based systems but remember "this really is for professional-level sysadmins" and "this procedure is, in every possible respect, a bad idea. If it eats your firstborn, please don't come crying to me"... (so good luck)


Realtek RTL8723be Wifi and Bluetooth 14.04

I made a ppa with bluetooth driver for this chip.

It is tested and works. It can be installed by

sudo add-apt-repository ppa:hanipouspilot/rtlwifi
sudo apt-get update
sudo apt-get install rtl8723au-bt-dkms linux-firmware

It will stay after kernel updates.


Define keyboard shortcut to a series of keyboard shotcuts

Answer under construction

Basic idea - bind shortcut to this command

  bash -c 'nautilus && sleep 2.5 && xdotool key Ctrl+f'

xdotool is a keypress simulator basically, so you will need that installed with sudo apt-get install xdotool.

You may want to play with sleep time (seconds) before window shows up.


Where does Alacarte store the file with the edited menus?

I don't think there's a dedicated file managing menu associations centrally. Alacarte operates by modifying applications' .desktop files, so you might want to back up these folders:

~/.local/share/applications
/usr/local/share/applications
/usr/share/applications


How do I use wmctrl to detect if a window is present?

After a little experimenting I was able to manage it using the following script:

if test $(wmctrl -l | grep "Confirm New Extension" 2>&1 | wc -l) -eq 1; then
    wmctrl -vxa "Confirm New Extension"
    xdotool key Left space
fi

Hope it helps someone.


If you are trying to re-size a mounted hard disk then that's the problem; you can't make changes while the drive is mounted.

I mean that maybe you are trying to re-size your system's hard disk drive, try to re-size it with a Live CD so the HDD is not mounted.


Yes, it is possible: sudo apt-get install ubuntu-desktop


Decrypt LUKS partition without losing data

You can either unlock the drive, copy all data to an external drive, reformat the encrypted drive and copy all your data back (I think this is what you mean by backup) or have your system enter your password at boot for you per this answer.

Add this at the end of the relevant line in /etc/crypttab:

,keyscript=/root/lukspw

Create the file /root/lukspw

# nano /root/luspw

with the content (replacing "password" with your actual password):

#!/bin/sh
printf "password"

And make it executable:

# chmod +x /root/lukspw

And update the initrd:

# update-initramfs -u -k`uname -r`

Drive is still encrypted but now no password is needed


Inkscape stopped working after mate replaced Ubuntu

The un in output of dpkg -l means that it have the following queued actio

  u = Unknown

and state

  n = Not-installed

(see man dpkg-query for details).

So I would recommend to remove snapped Inkscape and install APT-based instead:

snap remove inkscape

sudo apt-get install inkscape


Lenovo Yoga s940 + Ubuntu 19.10 power off not working

UPDATE:

It appeared that this problem was caused by the fact that I've switched off the intel graphic driver with nomodset boot parameter while I was trying to fix laggish/screen redraw problem. I was able to fix the original problem with i915.enable_psr=0 boot parameter so no need for nomodset anymore and this problem went away. I'll leave it here anyways in case it might help someone.

ORIGINAL ANSWER:

This boot command finally fixed the problem for me:

pci=nommconf

Here is how one can add it:

in terminal type sudo -i (enter root shell)
then gedit /etc/default/grub
Find the line: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
Change to: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pci=nommconf"
Save and close the file.
again, in terminal update-grub
and finally exit (to end the root shell)

Hope that helps someone


Cant stop FortiClient vpn from starting on startup

You can do it using these commands with sudo privilege:
To shutdown FortiClient:
systemctl stop forticlient-scheduler

To disable the auto start at the next boot:
systemctl disable forticlient-scheduler


Trying to install postgresql:i386 on 12.04 amd64

To install 32-bit packages on 64-bit you need to run the following: sudo apt-get install ia32-libs -y. In Ubuntu 13.10, there is no longer a need to do this.


How to configure compose key in Ubuntu 14.04

In keyboard settings -> Shortcuts -> Typing -> Compose Key

Click the 'Disabled' across from Compose Key and select the key you want.


How to run a script when there is a change in your local IP?

According to the man page for NetmorkManager, one of the events is

dhcp4-change
          The DHCPv4 lease has changed (renewed, rebound, etc).

I think you can simply change

up)

to

dhcp4-change|up)


You will avoid a lot of problems if you let your Ubuntu system's built-in tools keep your Ubuntu system up to date.
For cases like yours, where that simply isn't possible, best practice is to keep your custom/project environment in a Virtual Machine or a Container. That way, your customizations don't cause conflicts and other problems on your base system.
To stop normal upgrades:

Disable Unattended Upgrades in /etc/apt/apt.conf.d/20auto-upgrades. Warning: Your system will no longer receive security patches.
To keep a few packages unchanged for a limited time, you can apt-mark hold <packagename>. Over time, your system may diverge from standard Ubuntu, so try to keep that delta small.
[Optional] Disable Software Updater by uninstalling update-manager. Warning: This will also remove several desktop metapackages. Under some conditions, this may make your entire desktop stack eligible for accidental autoremoval.

Downgrades are sometimes possible using apt (specify the version that you want), but not recommended. A Debian-based system can have only one version of a package installed at any time, so if you try to downgrade a package that other parts of your system also depend upon, you may get unexpected or painful results. Also, Debian archives usually have only one version (the latest), so you will need to locate the older version yourself.


How can I mount devices as a normal user?

Yes you can do it using pmount.

man pmount

NAME
       pmount - mount arbitrary hotpluggable devices as normal user

pmount <device> [ label ]

Example:

 pmount /dev/sdb1 flash_drive

This will mount the device /dev/sdb1 at /media/flash_drive.

Policy:

The mount will succeed if all of the following conditions are met:

   · device is a block device in /dev/

   · device is not in /etc/fstab (if it is, pmount executes  mount  device
     as the calling user to handle this transparently). See below for more
     details.

   · device is not already mounted according to /etc/mtab and /proc/mounts

   · if the mount point already exists, there is no device already mounted
     at it and the directory is empty

   · device   is   removable   (USB,   FireWire,   or   MMC   device,   or
     /sys/block/drive/removable is 1) or whitelisted in /etc/pmount.allow.

   · device is not locked

To unmount the device, use pumount, like so:

pumount <device>

Example:

 pumount /dev/sdb1


Unable to find a suitable output format for 'libvorbis' libvorbis: Invalid argument

You have the -vf (video filter) option in each command, but you didn't provide any filter names for it. Either add a filter or remove the errant -vf from each command.


Does ubuntu reduce CPU usage due to overheating?

No, Linux does not do this.  Theoretically your hardware is supposed to, but I have not heard of any that does.  You may be able to run sensors to check the temperature and see if it is getting too high ( near 100 C ).


Remove OpenJDK,
sudo apt remove openjdk*

Remove OpenJDK along with dependencies,
sudo apt remove --auto-remove openjdk*

Remove OpenJDK and the configuration files
sudo apt purge openjdk*


Try pressing CTRL+ALT+F1, then logging in, and running

sudo apt-get dist-uprade


Can't get my Belkin N150 wireless adapter to work, stuck on "setting network address"

Open or search for the application Software Sources.
Click the rightmost tab: "proprietary drivers" or so.
Check all the boxes listed. (pass if none are)
When a window appears asking to update, click Ok or so.
When that finishes, click the leftmost tab and ensure that both universe and multiverse are checked (or whatever).
Close Software Sources, then open a terminal and run:

sudo apt-get update; sudo apt-get upgrade

Reboot.
Try to connect to WiFi.
If this does not work, search online for how to install proprietary drivers for your device.


Here's what you can do, to start open a terminal window, you can do this through the Dash, or by keystroking "Ctrl + T". Afterwards, what you may want to do is copy and paste the following commands into terminal. You can also, if more comfortable, type them manually. You can copy one by one, or all at once, it doesn't matter. Remember, when in terminal the past command is  "Ctrl + Shift + V" instead of "Ctrl + V".

sudo add-apt-repository ppa:n-muench/vlc
sudo apt-get update
sudo apt-get install libaacs0 libbluray-bdj libbluray1
sudo apt-get dist-upgrade

That will only get blu-ray to work in VLC. We now need aacs folders, and to download the keys. We just enter a couple more commands into terminal.

cd ~/
mkdir -p ~/.config/aacs/
cd ~/.config/aacs/ && wget http://vlc-bluray.whoknowsmy.name/files/KEYDB.cfg

You should be all set now, enjoy your blu-ray movies!

All information and alternative methods can be found here.