I am also preparing for an event next month. Since I have made several videos using Ubuntu let me give you some tips:

Most of the work will involve sound, cleaning sound, clipping errors out, etc.. so make sure everyone is on a place that tends to be silent or does not have a lot of background noise and that they have some idea of what to talk about and in what order.
If everyone has a good microphone, you will most likely not need to use Audacity. If not then Audacity will be the solution for background noise and other artifacts.
For the video editor I recommend openshot over pitivi. Openshot is more stable, friendlier and can cope with clipping which is what you will be doing in this case a lot. I used to use Pitivi for about a year until Openshot came out. Have not changed my mind yet. Use the PPA for openshot. Additionally Openshot can quickly save the file as mp4 with h.264.
Hangout can record and/or take pictures (Specially hangout on air which gives options to edit the video afterwards and streams/saves it to youtube).
If you also want to record the desktop, over recordmydesktop, istanbul or any other gui recording app I highly recommend kazam. Again, you need to use the PPA from kazam, but this screencast is very good and very simple to use. It can record on the fly without taking much resources compared to others and save in mp4/h.264 format. It also asks if you wish to edit the file afterwards with a video editor like pitivi or openshot.
It is possible to make the stream go to your wordpress site by pointing your wordpress post to your youtube video while is streaming. This way, any user that arrives on your site can click on the video and start seeing the live stream from there.
Since you are going to be the one recording, it is recommended that you be the one that:

Creates the hangout
Names the hangout (Title of Hangout)
Starts the recording for hangout on air when everyone or most are connected (Need to click on the recording button at the bottom. Only visible to the hangout creator.
Prepares the wordpress site to receive the stream (If it applies)
Makes sure each topic that is talked about is done in the time frame agreed upon.
Serve as the one that asks the questions made by viewers (If it applies and there is no one else that can do it), says who will talk next or simply be a referee to any discussion.

Hangout now offers several plugins for it, I recommend specially the one called Toolbox since it offers the lower third option to make your podcast/streaming session more professional.


How to install VirtualBox Extension Pack?

If you installed virtualbox from Ubuntu repositories, just install the package named virtualbox-ext-pack.

sudo apt install virtualbox-ext-pack

This way you can be sure that the right version will be installed, and they will also upgrade together if needed. So the name of the game is to use same version for the packages, possibly use the same repository as well, preferably your distribution's repos. After installation you possibly need to

sudo modprobe vboxdrv

otherwise you may still get configuration errors in VirtualBox settings. Besides virtualbox-ext-pack I have virtualbox, virtualbox-dkms, and virtualbox-qt packages installed, a bunch of gvfs packages, and of course dkms.

(You'd want to go to a PPA and fiddle around yourself only if your distribution's offered packages are missing some features and the PPA would offer a later version with those fatures. But then I'd advise to use the PPA for all virtualbox packages and don't mix and match.)


Remove option from "open with..." menu item?

Nevermind... I installed XnView .61 as per these instructions
Install Latest XnView 0.61 in Ubuntu and Linux Mint, rebooted, and voila.


Go to software center. Search for control center. Select Sound and anyother parts you thing are missing.


Screen splits into 4 after installing Nvidia Driver for 310M

I am using ubuntu 12.04 and install bumble bee it was amazing it 's code ::

sudo add-apt-repository ppa:bumblebee/stable
press enter when asked.
sudo apt-get update && sudo apt-get install bumblebee bumblebee-nvidia

but if you want to download nvidia you can download it from the linux ::
http://www.nvidia.com/Download/index.aspx?lang=en-us

and don't use recommended drivers from additional driver application in ubuntu it some time be no compatible .

i hope i help you :)


how can i access files/folders from other partitions and devices(flash drive) using ubuntu terminal?

To access them, you need to know where they are located. It sounds like you have multiple partitions, you can see where they are mounted using lsblk.  Here's an example of the output from that command on one of my systems.

NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 931.5G  0 disk
├─sda1   8:1    0   800M  0 part
├─sda2   8:2    0   260M  0 part /boot/efi
├─sda3   8:3    0   128M  0 part
├─sda4   8:4    0 149.7G  0 part
├─sda5   8:5    0   350M  0 part
├─sda6   8:6    0 759.3G  0 part /media/Music
└─sda7   8:7    0    21G  0 part
sdb      8:16   0   1.8T  0 disk
├─sdb1   8:17   0   1.4T  0 part /home
├─sdb2   8:18   0   200M  0 part
├─sdb3   8:19   0   5.9G  0 part [SWAP]
└─sdb4   8:20   0 482.2G  0 part /
sdc      8:32   0   3.7T  0 disk
├─sdc1   8:33   0   1.7T  0 part /media/Movies
└─sdc2   8:34   0     2T  0 part /media/Pictures
sr0     11:0    1  1024M  0 rom

So if I wanted to play a music file located on partition sda6, I could either cd to /media/Music and look for it, or if I know it, I could use the full path in my music player /media/Music/Blondie/Rip_Her_To_Shreds.mp3


Remove annoying environment variable JAVA_TOOL_OPTIONS

This is because you have installed jayatana that enables global menu support for Java swing applications in Ubuntu. There are few ways of doing this:

Option 1: Remove jayatana package

sudo apt-get remove jayatana

If you do not need global menu support for Java swing applications, you can simply remove the package. Removing the package will not cause more harm than making menus of java swing based applications such as eclipse and intellij move back inside the window of the application.

Option 2: Remove only the annoying message

sudo rm /usr/share/upstart/sessions/jayatana.conf

This will remove the auto-start configuration of Jayatana and you won't see the annoying message ever. Again, this will disable the global menu support of Java Swing applications.

If you want to still get enable the global menu support without getting the message, you can refer to this page. In summary:

For IntelliJ IDEA & Android Studio:

#For 32-bit Ubuntu, assuming Android studio is installed in /opt/android-studio/
sudo gedit /opt/android-studio/bin/studio.vmoptions

# For 64-bit Ubuntu, assuming Android studio is installed in /opt/android-studio/
sudo gedit /opt/android-studio/bin/studio64.vmoptions

At the end of the opened file, add the following line and save the file.

-javaagent:/usr/share/java/jayatanaag.jar

For NetBeans:

Assuming NetBeans is installed in /usr/local/netbeans-8.0.2

sudo gedit /usr/local/netbeans-8.0.2/etc/netbeans.conf

Search for netbeans_default_options in the opened file, and add the following statement at the end of the existing value (Notice that the options are separated by space) and close it.

-J-javaagent:/usr/share/java/jayatanaag.jar


The ^ character is not a typo. If you remove it, apt-get will complain that the package cannot be found.

This article and its comments describe what the caret does:

  Well, the answer is that the caret symbol is a short form for performing a task that otherwise the program “tasksel” would have done with the given package name. tasksel is a program to ease the installation of commonly used things that go together for a particular use.


The answer you provided in the link wants you to open a file with root privileges, which can be achieved using these two commands

sudo nano /path/to/your/file.foo

in the command above you are opening file.foo in a command based text editing tool called nano, In your particular case this command should work.

sudo nano /etc/NetworkManager/NetworkManager.conf

or

gksu gedit /path/to/your/file.foo

In this command you're opening the same file with a GUI based text editor called Gedit (default on Ubuntu and Ubuntu GNOME), In your particular case, this command should work

gksu gedit /etc/NetworkManager/NetworkManager.conf

Note

Use sudo for command line programs (like nano), but use gksu or gksudo for GUI programs, which often use configuration files in the home directory. If you use plain sudo, the root user can take ownership or your user ID's configuration files and the program used that way will stop working (unless you continue using sudo). An alternative to gksu and gksudo is sudo -H

An explanation for commenting out is to add a hash # sign in front of the line, in the example you gave, the line

dns=dnsmasq

should become

#dns=dnsmasq


"Failed to start LSB: VirtualBox Linux kernel module"

Solution seems to be to not install the virtualbox package that comes with Ubuntu. Following the steps to add a 3rd party repository as shown here, then installing the virtualbox-5.1 package appears to get things working with no further actions required.


Java problem - java, Jar file Statmetrics is not running

I found the answer. My stupidity.

First step: You must set the corresponding Java: I had Java 11 but I set as Java lib path the 8th version!
- You can do set the Java version from here:

 sudo update-alternatives --config java

2nd step: Then run the following command, by changing path and file names to your corresponding path and files:

  java -classpath "/usr/lib/jvm/java-1.8.0-openjdk-amd64/jre/lib/*" -jar /home/elias/statmetrics/statmetrics.jar org.statmetrics.Statmetrics

It was run succesfully!


How can I prevent grub updates from resetting my EFI bootorder

sudo dpkg-reconfigure grub-efi-amd64

For the first couple of questions accept the existing values (just press Enter) but when it comes to this, select No:

 +----------------------| Configuring grub-efi-amd64 |-----------------------+
 |                                                                           |
 | GRUB can configure your platform's NVRAM variables so that it boots into  |
 | Debian automatically when powered on. However, you may prefer to disable  |
 | this behavior and avoid changes to your boot configuration. For example,  |
 | if your NVRAM variables have been set up such that your system contacts   |
 | a PXE server on every boot, this would preserve that behavior.            |
 |                                                                           |
 | Update NVRAM variables to automatically boot into Debian?                 |
 |                                                                           |
 |                    <Yes>                       <No>                       |
 |                                                ^^^^                       |
 +---------------------------------------------------------------------------+


The non-working touchpad is probably the result of a known bug. You can fix it by adding some flags to the /etc/default/grub file. Here’s how:

Open Terminal (if it’s not already open)
Edit the grub file as root:
sudo vi /etc/default/grub

Note: Feel free to use a different text editor if you prefer.
Add i8042.nopnp=1 pci=nocrs to the line containing GRUB_CMDLINE_LINUX_DEFAULT. This will give you a line that looks something like:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash i8042.nopnp=1 pci=nocrs"

Note: The order of the flags (options) in this line are irrelevant. If you have additional options required by your installation, be sure to keep them as well.
Save the file
Update Grub:
sudo update-grub

This is important! Do not skip this step.
Reboot

This should give you a properly functioning touchpad


Sound Converter can convert Videos to Audio, and allows multiple files. It is the best program I have found to convert anything audio wise. It is installable from the Ubuntu software center.

When you run the program make sure to change your preferences, under the edit drop down menu, to what format you want to convert as well as many other settings.

Here is an example of converting a video into audio (MP4 to MP3) as you have requested.


How to visually indicate whether a window is `Always On Top`?

Well I'm partially there. If you go into CompizConfig and enable commands, you can set one of the commands to something that will modify the window appearance. Then you can set the key binding for it to the same binding you use to toggle Always On Top. I just don't know how to make it change the appearance of the window. I was trying wmctrl -r :ACTIVE -b toggle,shaded which I thought would toggle a shadow, but it hides/unhides the window. Not really what I was going for. Keep in mind you have to install the wmctrl package for that to work.

I don't know of any readily supported ways to modify the appearance a single window. I looked into using gtk-window-decorator, but it only appears to let you reload the settings for all of the windows. Maybe somebody else can chime in and complete this answer, but I personally can't figure a way out!


Rewrite it as the following -

  C:\\Users\\ABC

You need to escape this backslashes (with another backslash), to make them appear. So, if you use double quotes, write \\ instead of just \, or use addslashes($url).


PHP 5.4 interactive mode on Ubuntu 12.04

My PPA (ppa:ondrej/php5) was created as an exact copy of Debian php5 source package.  There was a problem that Debian's libedit didn't include the required patch for interactive mode (at least I thought so, because the bug on libedit wasn't closed).  I have just found that this issue has been already solved in libedit (2.11-20080614-4), but the bug wasn't properly closed.

Anyway the good news is that since this bug in libedit has been already solved in Debian, I will be rebuilding php5 with libedit and it will be included from php5 >= 5.4.12-2(~dist+1).

[Edit]: Also there's now php5-readline module, thanks to Andreas Pour, who poked me that it can be built and packaged now.


When are nohup'd processes stopped during shutdown?

I just tried to access my nohup'd program in K99monitorix (right before S20sendsig): Works.

Then I tried to access it in S30urandom (right afterwards): Does not work.

So it seems that it is indeed S20sendsig which kills nohup'd processes.


Ubuntu 18.04 x11vnc users.

Here is a "hack answer" which allows you to get VNC access without being logged in.

I say hack as it involves having 2 x11vnc services running.

The first is to allow login via DISPLAY=:0 and the second is to use VNC to get access to desktop via DISPLAY=:1

To achieve this I used the following 2 daemon scripts:

The first is: x11vnc-login.service just for login greeting

[Unit]
Description=Start x11vnc-login at startup.
After=multi-user.target

[Service]
Type=simple
ExecStart=/usr/bin/x11vnc -auth /run/user/120/gdm/Xauthority -forever -loop -noxdamage -repeat -rfbauth /home/<ID>/.vnc/password -rfbport 5922 -shared -display :0
[Install]
WantedBy=multi-user.target

The second is: x11vnc.service for desktop:

[Unit]
Description=Start x11vnc at startup.
After=multi-user.target

[Service]
Type=simple
ExecStart=/usr/bin/x11vnc -auth /run/user/1000/gdm/Xauthority -forever -loop -noxdamage -repeat -rfbauth /home/<ID>/.vnc/password -rfbport 5920 -shared -display :0
[Install]
WantedBy=multi-user.target

The installation and enablement of scripts is as per documentation on community help site.

This is a horrible hack but gets me running for the time being until a proper solution is found.

In use I first open up VNC session to port 5922 and do login. Once logged in you end up with a black screen. So you then open up VNC session on port 5920 and voila, there is your desktop. Still easier for me than having to go to where the server machine is running...

Obviously what is needed to have some script which does a preliminary search of running processes to see if a user is logged in and if so then just use the XAUTHORITY/DISPLAY info from the existing user section (as extracted from /proc/PROCID/environ, otherwise connect socket up to greeter screen with greeter XAUTHORITY/DISPLAY and then somehow move socket connection over to another x11vnc session using users desktop XAUTHOURITY/DISPLAY values.

A bit of complex fork/socket/file descriptor programming I suspect.

Other possibility is to figure out whether there is some way to get 18.04 display manager to behave as per prior 16.04 one.


I just wiped out some Firefox preferences, how do I get them back?

Not sure if you can recover them, but whatever information you may have is under your home in a hidden folder so if you want to  make a backup:

cp -rvf $HOME/.mozilla $HOME/mozilla_backup

Then, you may have a look at that folder and see if there's something you can recover.


Normally, can enter a tty with Ctrl+Alt+(F1-F12), and in Ubuntu, and can exit it with Ctrl+Alt+F7. This problem is probably due to the login manager not starting. Try:

sudo service lightdm start

for the default lightdm login manager, and this for Gnome's login manager:

sudo /etc/init.d/gdm start

You can also try entering the user session directly:

startx

Pleases note that some of the above may be guesswork...


Touchpad heating up on dell inspiron n5010

It is highly unlikely that Ubuntu get your touchpad hotter in any way.For some reason i have heard a lot that some Dell models have an issue with overheating touch pads after a while.

Probably the touchpad in your Dell is over some hardware that produces a lot of heat (like wireless card,cpu,hard disk) or you laptop is faulty.I don't think Ubuntu have to do any with this.
60 degrees Celcius is too hot to touch,so even though that for a pc/laptop 60 degrees are safe,for your hand ain't.

I will suggest to communicate with Dell or a technician.
Before you do that you can try to see if the fan and the heat-sink are gunked up with dust and that is causing the overheating in the touchpad.


Ubuntu 13.04 opens disks and directories in the browser instead of in Nautilus

Enter in terminal this:

sudo gedit /usr/bin/xdg-open

In opened file find this lines (near 532 line)

if [ x"$BROWSER" = x"" ]; then
    BROWSER=links2:links:lynx:w3m
    if [ -n "$DISPLAY" ]; then
        BROWSER=x-www-browser:firefox:mozilla:epiphany:konqueror:chromium-browser:google-chrome:$BROWSER
    fi
fi

Add in second "BROWSER" line nautilus:

if [ x"$BROWSER" = x"" ]; then
    BROWSER=links2:links:lynx:w3m
    if [ -n "$DISPLAY" ]; then
        BROWSER=nautilus:x-www-browser:firefox:mozilla:epiphany:konqueror:chromium-browser:google-chrome:$BROWSER
    fi
fi

This should help... maybe.


Not dual booting with Ubuntu Linux 12.04 LTS

your problem happen to me when i install windows 8 to my laptop (i have ubuntu then i install windows8).
if you install ubuntu perfectly and do not get any problem,
maybe this link can help you
https://help.ubuntu.com/community/Boot-Repair


Unable to make bootable ubuntu flash drive

There are some good resources available for making a USB-LiveDisk - source

How to create a bootable USB stick on OS X

We would encourage Mac users to download Ubuntu Desktop Edition by burning a CD. But if you prefer to use a USB stick, please follow the instructions below.

Note: this procedure requires that you create an .img file from the .iso file you download. It will also change the filesystem that is on the USB stick to make it bootable, so backup all data before continuing.

Tip: Drag and drop a file from Finder to Terminal to 'paste' the full path without risking typing errors.

1) Download Ubuntu Desktop

2) Open the Terminal (in /Applications/Utilities/ or query Terminal in Spotlight).

3) Convert the .iso file to .img using the convert option of hdiutil (e.g. hdiutil convert -format UDRW -o ~/path/to/target.img ~/path/to/ubuntu.iso)

Note: OS X tends to put the .dmg ending on the output file automatically.
4) Run diskutil list to get the current list of devices.

5) Insert your flash media.

6)  Run diskutil list again and determine the device node assigned to your flash media (e.g. /dev/disk2).

7) Run diskutil unmountDisk /dev/diskN (replace N with the disk number from the last command; in the previous example, N would be 2).

8) Execute sudo dd if=/path/to/downloaded.img of=/dev/rdiskN bs=1m (replace /path/to/downloaded.img with the path where the image file is located; for example, ./ubuntu.img or ./ubuntu.dmg).

  Notes:

  Using /dev/rdisk instead of /dev/disk may be faster
  If you see the error dd: Invalid number '1m', you are using GNU dd. Use the same command but replace bs=1m with bs=1M
  If you see the error dd: /dev/diskN: Resource busy, make sure the disk is not in use. Start the 'Disk Utility.app' and unmount (don't eject) the drive

9)  Run diskutil eject /dev/diskN and remove your flash media when the command completes.

10) Restart your Mac and press alt/option key while the Mac is restarting to choose the USB stick.


Connection error with Evernote on 12.04?

Ok, i'll try to explain (sorry for my english, it's not native).

At first - install Evernote as usual.

When you finish - connection error will appear. It's ok. Close the application.

Go to Play on Linux main menu -> Utilities -> wine versions managment.
Install wine 1.4.1 (latest stable version with no ssl bug)
Select Evernote and in settings choose wine version 1.4.1

And now it's ok! Evernote will work fine.


You can install python 2.6 by running this command clicking this link: python2.6

Or by typing this command in a terminal.

sudo apt-get install python2.6


First, check the settings in the router. WPA2-AES is preferred; not any WPA and WPA2 mixed mode and certainly not TKIP. Second, I have better luck with a channel width of 20 MHz in the 2.4 GHz band instead of automatic 20/40 MHz. I also have better luck with a fixed channel, either 1, 6 or 11, rather than automatic channel selection. After making these changes, reboot the router.

Next, I recommend that your regulatory domain be set explicitly. Check yours:

sudo iw reg get

If you get 00, that is a one-size-maybe-fits-all setting. Find yours here: http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 Then set it temporarily:

sudo iw reg set IS

Of course, substitute your country code if not Iceland. Set it permanently:

gksudo gedit /etc/rc.local

Right above the line exit 0, add the line:

iw reg set IS

Proofread carefully, save and close gedit.


Importing Sylpheed accounts to new computer

With Sylpheed is everything easy.

Copy .sylpheed folder and all inbox folder of mail accounts from your /home/username to new pc and this is it.

Start Sylpheed and all aka accounts, structure and setting will be there.


Here's a very good recommendation from Red Hat: Recommended System Swap Space
An excerpt from the same link:

In years past, the recommended amount of swap space increased linearly with the amount of RAM in the system. However, modern systems often include hundreds of gigabytes of RAM. As a consequence, recommended swap space is considered a function of system memory workload, not system memory.

And another excerpt from an older version of the page:

However, given that swap space is usually designated at install time, and that it can be difficult to determine beforehand the memory workload of a system, we recommend determining system swap using the following table.

RHEL 8 table:
Amount of RAM    Recommended swap space       Recommended swap space
in the system                                 if allowing for hibernation
--------------   --------------------------   ---------------------------
⩽ 2 GB           2 times the amount of RAM    3 times the amount of RAM
> 2 GB – 8 GB    Equal to the amount of RAM   2 times the amount of RAM
> 8 GB – 64 GB   At least 4 GB                1.5 times the amount of RAM
> 64 GB          At least 4 GB                Hibernation not recommended

At the border between each range listed in the table above, for example a system with 2 GB, 8 GB, or 64 GB of system RAM, discretion can be exercised with regard to chosen swap space and hibernation support. If your system resources allow for it, increasing the swap space may lead to better performance. A swap space of at least 100 GB is recommended for systems with over 140 logical processors or over 3 TB of RAM.

Original RHEL 5 table:
Amount of RAM in the System     Recommended Amount of Swap Space
4GB of RAM or less              a minimum of 2GB of swap space
4GB to 16GB of RAM              a minimum of 4GB of swap space
16GB to 64GB of RAM             a minimum of 8GB of swap space
64GB to 256GB of RAM            a minimum of 16GB of swap space
256GB to 512GB of RAM           a minimum of 32GB of swap space


Set title for each terminal tab in gnome-terminal using a bash script

If you want to use a function stored in ~/.bashrc then source that file in your command:

gnome-terminal --tab -e "bash -c 'source ~/.bashrc;set-title 99;ping 192.168.7.99'"

You've mentioned in the comments that you plan to use this in a shell script and with multiple gnome-terminal tabs. As a proof of concept, you can use the following script as example:

#!/bin/bash
gnome-terminal --tab -e "bash -c 'printf \"\033]0;TEST1\007\"; sleep 7'" \
               --tab -e "bash -c 'printf \"\033]0;TEST2\007\"; ping -c 4 8.8.8.8'" \

Instead of bash function, this uses printf and escape sequences directly. Please be mindful of the backslashes.


Is it still possible to update Ubuntu Studio using a USB?

A live USB is generally used for reinstalling or fixing errors. If you just want to upgrade your system to the latest Ubuntu release, you can do so with the following command on the real system:

sudo do-release-upgrade

This command will check for a new Ubuntu version and allow you to upgrade to it if available.

However, you should be automatically prompted by the "Software Updater" to upgrade. If you are not, you should be able to launch it and see the message "New Ubuntu release 20.04 available" or something along those lines. do-release-upgrade should be used as a fallback if (for whatever reason) the Software Updater doesn't show the latest release.


how to log in to specific postgresql version

Assuming I have correctly installed two different servers, how do I launch command lines for each version of the servers i have?

The command to connect to a specific port for postgres is:

psql -h localhost -p 5433

I would assume you need to use ...

sudo -i -u postgres
psql -p 5433

as a bare minimum (5432 is the default). From the psql man:

-p port
--port=port

Specifies the TCP port or the local Unix-domain socket file extension
on which the server is listening for connections.
Defaults to the value of the PGPORT environment variable or,
if not set, to the port specified at compile time, usually 5432

  What's the "psql (9.4.1, server 9.3.5)" reference above ?

"psql 9.4.1" is the psql version. That script probably got updated when you installed the 9.4 server. psql --version shows the version of a command. You will need the 9.4.1 version of psql to support 9.4 server and it probably is backwards compatible with 9.3 but the 9.3 version of psql will not support the 9.4 server. So seems correct to me.
"server 9.3.5" is the server.


Dependeny error in installing postgreSQL 9.6

It's telling you that your libraries for your system don't allow you to install that version of postgres, since you asked for a specific version upon installing.

If you just want postgres and don't care about the specific version, try:

sudo apt-get install postgres

If you want that specific version and need it, you need to remove the libsystem0 package and whatever is keeping it installed.

It's also possible your system has downloaded and upgraded some of it's packages or was stopped while doing a package update. In that case you should run this command to install any missing packages waiting to be processed:

sudo apt-get install -f

It's also worth noting that you may want to remove any version of postgres you have before trying to install the new ones:

sudo apt-get remove postgres*


The solution that worked for Timofey did not work for me for some reason. However, a solution which did work was to put the line

echo 0 > /sys/module/hid_apple/parameters/iso_layout

into /etc/rc.local.

This suggestion comes from here:

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1245081

via

https://stdio.sangwhan.com/backtick-tilde-problem-macbook-air/


Boot problem after update - missing 'lowerdir'

I had the same issue. I booted in recovery mode and open the shell prompt. Then discovered that no free space left in my device (with df command). So I cleaned up space (menu in recovery mode has this item). And after that, the issue was resolved


How to replace Application Launcher icon in Kubuntu (replace the "K" one with anything else)?

What you have posted in the image is the Application Launcher  (aka Kickoff) widget (part of the desktop that can be removed or added) and comes as the default launcher: you just want to change its icon. (There are alternative launchers though; see "Alternatives" after right clicking the widget.)

The icon of that widget depends on the desktop theme: System Settings - Workspace theme - Desktop theme.

The one with K is that of the Kubuntu desktop theme, changing to Breeze presents you with a different icon:

(I think I have a bug: sometimes I need to restart the desktop (killall plasmashell; plasmashell &) to see that change.)

But you also can change the icon without changing the theme: Right click on the widget and select "Application Launcher Settings", then "Appearance", and click the icon button there.

Then select "choose".

The choice is large, you can select by category or from "All" or (from "Other icons") any icon file you have.

Note that changing manually the icon has the following consequences:

that change will affect all desktop themes (all desktop themes will use the same custom icon)
after that change you will not be able to easily restore the default icon.

In order to get back the default icon (specific to each desktop theme) you have to

find it manually - which is difficult (for the Breeze desktop theme I have found it - or an almost identical one - under System Icons: Places - start-here-...), and even then, the one selected will affect all desktop themes,

or

remove the Application Launcher widget from the panel (widgets have to be unlocked) and then add it again. (In this case the new Application Launcher may not start with the Super key anymore; to restore that, right click it, select "Application Launcher Settings - Keyboard Shortcuts", and there select Super-F1; after that, the launcher will be shown with Super key alone.)


The latest upgrade disables php7 for apache2

The problem could be that, Ubuntu 17.10 comes with PHP 7.1, but the Apache's php module wasn't updated. So the solution could be to disable and remove the old module and install and enable the new one:

sudo a2dismod php7.0
sudo apt remove libapache2-mod-php7.0

sudo apt install libapache2-mod-php7.1
sudo a2enmod php7.1
sudo systemctl restart apache2.service


Ubuntu Terminal: C program (or other solutions) to kill processes running on a specific port and start xampp

To kill a process on a port you can do:

$ fuser -n tcp -k 443 && /opt/lampp/xampp start

Change the && to ; if you want it to start xampp no matter if there was anything running on that port or not.


Wine uses its own directx libraries files. But not all are available there. Also if available you have to enable it. You can always add any available libraries to your list: Wine Configuration -> Libraries -> New Override for libraries -> Add -> Edit -> Builtin(wine)

But adding each and every libraries is somewhat a tedious task.

I am providing following link which will help you to use all available libraries and also install DirectX so that you can use missed libraries:

How to install DirectX in Wine and use all available libraries

Since it is a very long process, it is fairly not possible for me to describe each steps here. So should go to the above link and follow the steps.

Hope it works for you..


The Juju GUI doesn't allow you to place units on unsupported series and it looks like the munin charm only supports Trusty and Precise. If you want to force a unit of a different series onto the machine you have to do this via the CLI, although it's not recommended.


Is it possible to install the Unity 2D Panel in Kubuntu without pulling in all of Unity's dependencies?

Use the following to install a package with only the required dependencies, not the recommended ones (which are usually installed by default):

sudo apt-get -o APT::Install-Recommends=0 install package1 package2 package3

While Unity 2D may work without some of the required dependencies, it's a very dangerous zone to be meddling in. You can use dpkg with forced removal to remove the ones you think don't matter, after installation with the above.


transmission-daemon configuration not working

Either transmission-cli or transmission-common was causing an issue with a config. Previously purged transmission-daemon but this did not resolve the issue. Purging all 3 then reinstalling resolved.


How to revert back to default ubuntu interface?

Using the Unity Tweak Tool you can go to "Theme" and "Icons" under "Appearance".

Under Themes you can select "Ambiance" thats the theme thats installed by default.

Under Icons, select "Unity-icon-theme".


Keyboard periodically stops working in Ubuntu 20.04

Ok so it seems that the problem is not with Ubuntu, but actually with the keyboard firmware. This is my fault as I did not think to check if the AnnePro2 has a subreddit, which it apparently does. The solution can be found here.


How to clone Ubuntu 18.04 drive to drive?

Possible method:

Boot a live disk (e.g. ubuntu installation media - in "try" mode, the source disk is best kept unmounted, not in use) and run this from there:
Use dd to transfer the data. dd will not convert anything unless
you tell it to do so, see the output of dd --help. The copy (at destination) needs/occupies the same space as the source data, larger available space at destination is ok.
Use e.g. gparted (sudo apt-get install gparted) to move and resize partitions at will, so that available space gets used.

The exact commands to use will depend on your hardware.

Notes:
lsblk - will show available disks and devices.
dd - does what you tell it to do... it does not do mind-reading to correct your logical errors, so make sure you actually have typed exactly what you intend to do.
gparted - works best with simple jobs at a time (personal experience), e.g. move one partion, execute job, move another partition, execute job, resize second partition, execute job. Note the green tick - click it to execute the defined job.


SSH on but unable to connect (says only sftp)

This message from ssh:

This service allows sftp connections only.
Connection to  <host> closed.

is typical of this configuration in /etc/ssh/sshd_config on the server:

ForceCommand internal-sftp

Ordinarily, you use a ForceCommand only within a Match block, but without examining the actual configuration file, this is as far as I can predict.


Ubuntu boots to desktop that looks wrong

Seems ur desktop is not installed properly... press CTRL + ALT + F1.

sudo apt-get install --reinstall ubuntu-desktop unity
shutdown -r now

Reboot and see if it works !


How to prevent video lag while watching video (On VLC and Totem)?

If you have a large enough flash drive (2gb would be enough) you could turn it into a persistant install which would allow you to make changes to the installation on the USB such as installing the codecs you need or saving your preferences. UNetbootin has this feature when you create a new liveUSB.


Ubuntu 12.04 MTP support for Android 4.4

Not really the ideal solution but you can try Airdroid for transfer files or if you are able to, go back to the previos jellybean version.

This might be a better question for the android stack exchange since it doesn't really have much to do with Ubuntu support, luck.


Error: operating system not found after installing 13.10

Go to topic on Operating system not found: windows wont start


in command line write : winetricks
that will open a GUI , then choose "Select the default wineprefix"
after that choose "Change settings"
then choose "videomemortsize=defualt"

i hope it works as you want :)


Is your drive formatted with fat32?  If so, that might be the cause of the problem, as fat32 does not allow colons in filenames.  In general, windows filesystems do not allow filenames with colons.
Can you access the other files from your upgraded ubuntu 20.04 system?  Are the files with colons in their name listed at all?  What is the error that you are seeing?


How to install Openscad in Ubuntu 18.04/18.10?

It seems openscad is neither in 18.04 nor in 18.10, I just opened a bug here, feel free to subscribe to it.

In the meantime, here is a procedure to install openscad from the PPA:

sudo add-apt-repository ppa:openscad/releases
sudo apt-get update
sudo apt-get install openscad


YouTube movies are playing too fast with chrome

If you're using Chrome from the dev or unstable channels, you probably have a bad Flash plugin enabled (this affects HTML5 audio as well for some obscure reason).

To fix it, go to chrome://plugins and disable all the flash plugins. Then click +Details to show the individual versions of Flash, enable them one at a time until the problem goes away.

This is the configuration that worked for me:

If you none of the versions you have work, you may need to install the adobe-flashplugin package:

sudo apt-get install adobe-flashplugin


What causes most files to open in Wireshark from Firefox?

Open the file:

~/.local/share/applications/mimeapps.list

Delete the line starting with:

application/octet-stream

(that points to wireshark).

Save and quit.


WMI Windows Management Instrumentation on Ubuntu

There's a procedure, I'm testing right not if works:

http://techedemic.com/2012/11/05/installing-wmic-in-ubuntu-12-04-lts-64-bit-desktop/


Ceating a Nautilus action button for opening current directory in Terminology, Ubuntu 20.04

I cannot directly help with Nautilus actions. Fact is also that it is not anymore supported on later versions of nautilus, so it may not be a durable option.
However, you could try the nautilus python extension, nautilus-open-any-terminal. It can be found at https://github.com/Stunkymonkey/nautilus-open-any-terminal, where installation instructions are available. It does support Terminology, and as an added bonus, it can be triggered from within nautilus with a configurable shortcut key.


Even though userone is not a member of the myproject group, userone can checkout the whole repository.

The repositories are probably world-readable. You can change that by running

sudo chmod -R o-rws /svn/myproject

  (Is this because userone is member of the sudo group?)

No, membership of the sudo group just means that you can gain root privileges through sudo. SVN wouldn't take advantage of that. (But, more generally, if a user has root privileges on a machine, they can read anything on it, you can't stop them.)

  usertwo is a member of the myproject group, but cannot commit to the repository

What probably happened is that userone committed some new files to the repository and they end up owned by him and not writeable by the project group.

The usual solution to this is to make all the directories inside the project have the setgid bit set. That will force all files created inside them be owned by the project group.

sudo chmod -R g+s /svn/myproject

Then you also need to make sure that everyone's umask is set to 002, so that files will be group-writeable by default.

This all gets quite complicated, and fragile, so it may be easier to serve the SVN repository via https only.


You are trying to install lightpack 2 from http://www.lightpack.tv/downloads.php. Currently lightpack 2 is supported by Ubuntu 14.04 and not Ubuntu 16.04 so I do not know if it will work.

Right click on deb file and select "Open with sofware installer" and click "Install" in software installer.

But before you that check if you have 32-bit of 64-bit installation of ubuntu by opening "System settings > Details" and see "OS type". If it is 64-bit, download and install 64-bit deb file instead from here.


lubuntu 14.10: Coniguration for anthy/Japanese input

You enable it via IBus Preferences, which can be started from some menu item (I think) or via the command ibus-setup in a terminal window.


Read man systemd-analyze, and use systemd-analyze blame. From the man page:

   systemd-analyze blame prints a list of all running units, ordered by the time they took to initialize. This information may be used to optimize boot-up times. Note
   that the output might be misleading as the initialization of one service might be slow simply because it waits for the initialization of another service to complete.


connect to mobile broadband using dongle

Run command $sudo -u root ./install.sh from folder where install.sh is stored in terminal. It installs successfully with root privileges.


About Phonon and cli

There is a wish in the KDE Bug Tracking System: http://bugs.kde.org/show_bug.cgi?id=212091 (Bug 212091 - Configure phonon from command line)

but it seems that the Phonon is not available (not yet ? - last marking 2011-03-04) through the command line.

Phonon links

http://phonon.kde.org/
http://userbase.kde.org/Phonon
http://techbase.kde.org/Development/Tutorials/Phonon/Introduction
http://community.kde.org/Phonon


The imported Shared library is not referring to the plugin

Placed the camera libraries under /usr/bin/ where the python.exe exists and it worked.


Where is the information from 'apt show ' stored?

Here:

ls /var/lib/apt/lists

depend on the repository and section, for example to gather data about wget in main section for amd64 architecture you can use:

grep -A20 "Package: wget" /var/lib/apt/lists/*_ubuntu_dists_xenial-updates_main_binary-amd64_Packages

or as Muru suggested use awk for more flexible result:

awk -v RS='\n\n' -v pkg=wget '$2 == pkg' /var/lib/apt/lists/*_ubuntu_dists_xenial_main_binary-amd64*

Using RS (Record separator) we can easily get all data related to our package.

Note that apt also uses some binary caches made of above files to increase the speed of its queries, these caches are located here:

ls /var/cache/apt/


Installing/finding snap package over proxy

I've found the source of the problem.
There is also a file for environment variables:

/etc/environment

where https_proxy had =https://

Changing it to http:// and then restarting

sudo systemctl restart snapd.service

fixed the problem.


As a part of boot ?

You need a sound file, an mp3 or whatever.

You then edit /etc/rc.local and add a line to play the sound.

gksu gedit /etc/rc.local

Add in these lines at the bottom, exit 0 needs to be the last line

sleep 10
aplay /path/to/your/sound.mp3
exit 0

You may need a longer or shorter sleep.


how to disable lightdm(display manager) on Ubuntu 16.0.4 LTS

To boot to console:

sudo systemctl set-default multi-user.target

You must then edit /etc/default/grub by removing splash from the GRUB command line. (Remember to update GRUB afterward: sudo update-grub).

To get to the Unity desktop from the console, you must enter the command:

sudo systemctl start lightdm.service

(The usual startx command doesn't work with Unity.)

To restore boot to GUI:

sudo systemctl set-default graphical.target


The problem for me was that I called make install before checkinstall. Of course that installed all the stuff, and lead to checkinstall not correctly identifying which files need to be installed.


Virtual VMWARE Ubuntu - OpenVpn connects manually but AUTH-FAIL at boot

The problem seem to stem from the VirtualBox Guest Addition tools.

When I issued the command :

systemctl start openvpn@server.service

That repaired the openvpn, but then i realized i had the Vbox guest additions running and being i am now using VMware, I removed them to get rid of the SysLog errors.

/opt/[VboxAddonsFolder]/uninstall.sh

And that messed with the systemctl again, and I had the problem back.  I once again issued the command.

systemctl start openvpn@server.service

And i was back in business. This leads me to believe that the VirtualBox additions messed with the systemctl.  I have done a few reboots and everything comes up the way it should, so, i believe all is good.


How do I remove screen tearing in 16.04 with nvidia GTX 960 M?

Easy fix I found on /g/. Add this command to your startup commands

nvidia-settings --assign CurrentMetaMode="nvidia-auto-select +0+0 { ForceFullCompositionPipeline = On }"

Of course this works if you're using Nvidia drivers.

EDIT: So for multimonitor setups I would suggest using the Nvidia X server settings program, go to X Server Display Configuration and use Save to X configuration file. Now seek out /etc/X11/xorg.conf and add { ForceCompositionPipeline = On} after each monitor setting (the +0+0 and +something+someting)

Additionally you can do sudo apt install compton and add compton to your startup commands.

EDIT: I don't know how long this has been the case but the NVIDIA X Server Settings program nvidia-settings has an option to do ForceFullCompositionPipeline graphically. In the 'X Server Display Configuration' menu click on 'Advanced...', tick 'Force Full Composition Pipeline' and hit 'Save to X Configuration File'. If you have no predefined path to the configuration file, type /etc/X11/xorg.conf to the file path text box and save.


activation/configuration of ttys0 - ttys3

I've never tried to do anything like this before, but does this video help?

http://www.youtube.com/watch?feature=player_detailpage&v=kBRsWTdngRc

It's old, but seems to cover some configuration of "minicom" etc before loading cutecom. Maybe that is what you need to do?


Unable to connect to internet using mobile broadband through samsung mobile SGH-E720/SGH-E840

I never got my old Samsung to connect using the Mobile Broadband option in Ubuntu, but  i have had success using wvdial (downloadable from Software centre).

Install wvdial from Ubuntu Software Centre
run wvdialconf in shell; this will generate the file /etc/wvdial.conf
You have to edit /etc/wvdial.conf; try copying the contents posted here or here. (The second link is what i used, but the first one specifically refers to your phone) You have to substitute the part "airtelgprs.com" with the name of your net connection,which you can get from "Network settings" in your phone,as well as the fields Username and Password;
To connect type sudo wvdial; it might take several seconds for the phone to connect; Usually when wvdial prints the DNS server addresses, it indicates the connection has been established.

Note: This is how i connected via usb.


Linux kernel version and GCC version match

You should be able to build the Linux kernel with a pretty old version of GCC, probably back as far as GCC 3.2. The top-level README file in Linux 4.9.4 mentions:

 - Make sure you have at least gcc 3.2 available.
   For more information, refer to Documentation/Changes.

And Documentation/Changes gives a list of required versions of GCC (listed as "GNU C") and the other build dependencies for Linux, as well as how to check what version of each you currently have installed:

====================== ===============  ========================================
        Program        Minimal version       Command to check the version
====================== ===============  ========================================
GNU C                  3.2              gcc --version
GNU make               3.80             make --version
binutils               2.12             ld -v
util-linux             2.10o            fdformat --version
module-init-tools      0.9.10           depmod -V
e2fsprogs              1.41.4           e2fsck -V
jfsutils               1.1.3            fsck.jfs -V
reiserfsprogs          3.6.3            reiserfsck -V
xfsprogs               2.6.0            xfs_db -V
squashfs-tools         4.0              mksquashfs -version
btrfs-progs            0.18             btrfsck
pcmciautils            004              pccardctl -V
quota-tools            3.09             quota -V
PPP                    2.4.0            pppd --version
isdn4k-utils           3.1pre1          isdnctrl 2>&1|grep version
nfs-utils              1.0.5            showmount --version
procps                 3.2.0            ps --version
oprofile               0.9              oprofiled --version
udev                   081              udevd --version
grub                   0.93             grub --version || grub-install --version
mcelog                 0.6              mcelog --version
iptables               1.4.2            iptables -V
openssl & libcrypto    1.0.0            openssl version
bc                     1.06.95          bc --version
Sphinx\ [#f1]_         1.2              sphinx-build --version
====================== ===============  ========================================

.. [#f1] Sphinx is needed only to build the Kernel documentation

It's a good idea to check the Documentation/Changes file in the kernel source you're actually planning on compiling.

With all that said, it's probably a good idea to use a relatively recent version of GCC, since newer versions have better optimizers and thus can often produce faster code, and since newer versions have more readable diagnostics so it may be easier to figure out what went wrong of your build fails.

In general, I recommend using the version of GCC that is officially packaged for your system. In Ubuntu, the version of GCC that is installed as a dependency of the build-essential metapackage should always be sufficient, at least for building kernels that aren't far newer than the kernel officially packaged for your system.


Filetype icon not being displayed when downloading something in Chrome

I've just had a look at this on my computer. Problem seems to happen with any format I downloaded (tar.gz, .doc, .odt, .pdf). I checked the icon source in nautilus and it appears to be the wrong location (It errors and says "not found - Check spelling etc".).

As such, it is most probably a bug and should be reported. (To Google as Canonical do not support Chrome & Chromium)


Updated server from 10.04 to 12.04. Still boot from old kernel

You already have installed grub and grub-common

Before you install grub-pc, you could install boot-repair, then call it as an application and automatically export its log file to 'http://paste.ubuntu.com' without modifying anything. This log file perhaps detect some errors, you can even post a link to it.

Cannot overwrite Debian6 grub, with Ubuntu grub2

Use sudo grub-install /dev/sdX X is the drive letter ex:- a, b You can find it out by doing a sudo fdisk -l

Then do a update-grub2

You can use again boot-repair and export another log file without modifying anything


Help with install - persistent error while loading shared libraries - Novice user

You have to install the package libadolc2 (the missing library libadolc.so.2 is a part of it)

sudo apt-get install libadolc2

The correct place should be

/usr/lib/x86_64-linux-gnu/


Accidentally accepted unknown IP to Desktop Sharing

Yes, it is possible as soon as they had access they could have retrieved something malicious and executed it. I would recommend running, 'sudo lsof -i' to see what network connections/ports are open and that should give you some pointers as to if they dropped a listener of some kind.


Compiling old versions of R (2.11 or older) on Ubuntu 13.10 (or newer)?

The R-2.11.1 build process appears to compile its own versions of the BLAS and LAPACK libraries (as R-2.11.1/lib/libRblas.so and R-2.11.1/lib/libRlapack.so) by default - even if system versions of these libraries are available. For reasons I was not able to determine, these locally-built libs do not seem to properly link the gfortran runtime library (at least, not on 64-bit Ubuntu 13.10).

Using ./configure --help you will see

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-blas             use system BLAS library (if available), or specify
                          it [no]
  --with-lapack           use system LAPACK library (if available), or specify
                          it [no]

So the workaround consists of making sure you have the appropriate BLAS/LAPACK (or ATLAS) development packages installed on the system and then adding the --with-blas and --with-lapack options to your configuration, e.g.

./configure --with-blas --with-lapack --prefix=/usr/local

The configure report should now indicate something like

External libraries:      readline,BLAS(generic),LAPACK(generic)

and after that you should be able to complete the make.


I'm trying out Ubuntu via a live usb on the Yoga 13 right now.
The Yoga 2 Pro is the reboot of that device.

Anyway, the are no issues with the touchscreen for me on 13.10.
The buttons seem no smaller than they are in Windows, so there's that.
I haven't installed the driver to enable wifi, but purchased a $10 Edimax usb adapter that is doing the trick.

Pinch-to-zoom isn't there (bummer), but the grab and drag addon for Firefox makes it pleasant to navigate the Internet by touch.
There are addons like that for Chrome as well.


How to mount ntfs permenantly via ntfs-3g

Find UUID for the drive /dev/sdc1 with blkid command
Then add a entry for the ntfs partition in /etc/fstab

[partition]        [mount point]      [type]  [options]         [dump]  [pass]

UUID=UUIDHERE...   /media/mount/point ntfs-3g defaults,nobootwait  0      0

mountall

You can also use a gui utility called ntfs-config to automatically generate an entry for you in fstab


A command for pasting; the same as Ctrl + V

Klipper

The Kubuntu is using as default the Klipper. KDE UserBase: http://userbase.kde.org/Klipper

As a KDE/Qt application the Klipper can be used via the qdbus: http://manpages.ubuntu.com/manpages/trusty/man1/qdbus.1.html

Available commands can be viewed with the qdbusviewer:

or with the terminal (konsole):

:~$ qdbus org.kde.klipper /klipper
method void org.kde.klipper.klipper.clearClipboardContents()
method void org.kde.klipper.klipper.clearClipboardHistory()
method QString org.kde.klipper.klipper.getClipboardContents()
method QString org.kde.klipper.klipper.getClipboardHistoryItem(int i)
method QStringList org.kde.klipper.klipper.getClipboardHistoryMenu()
method void org.kde.klipper.klipper.saveClipboardHistory()
method void org.kde.klipper.klipper.setClipboardContents(QString s)
method void org.kde.klipper.klipper.showKlipperManuallyInvokeActionMenu()
method void org.kde.klipper.klipper.showKlipperPopupMenu()
method QDBusVariant org.freedesktop.DBus.Properties.Get(QString interface_name, QString property_name)
method QVariantMap org.freedesktop.DBus.Properties.GetAll(QString interface_name)
method void org.freedesktop.DBus.Properties.Set(QString interface_name, QString property_name, QDBusVariant value)
method QString org.freedesktop.DBus.Introspectable.Introspect()
method QString org.freedesktop.DBus.Peer.GetMachineId()
method void org.freedesktop.DBus.Peer.Ping()

The command

qdbus org.kde.klipper /klipper getClipboardContents

will get the last line from the clipboard.

The command can added to the KDE menu (http://docs.kde.org/development/en/kde-workspace/kmenuedit/index.html) and called with the keyboard shortcut or to the file manager context menu (KDE service menu - http://techbase.kde.org/Development/Tutorials/Creating_Konqueror_Service_Menus).

Other options for the clipboard managers: http://qt-apps.org/content/show.php/CopyQ?content=147452


Two OSs on two drives, how to do it without problems

Aravid and Bajiru gave excellent answers but both seem to have missed your second bullet.

You do not need to remove the drives in order to seperate the OS's; However you must be careful where you install the boot loaders.

If you are using Legacy boot, then the the boot loader needs to be installed to the MBR of the respective drive, ie Windows in the windows drive's MBR and Grub in the Ubuntu drive's MBR.

If you are using EFI, then each drive needs to have an EFI partition. with the appropriate EFI boot file in it. Note: when installing ubuntu in EFI mode, Chose something else, then select the partitions that Ubuntu should use for the  install.

PS: since Windows doesn't allow the versatility in  installation that Ubuntu does, I would install Windows first to the first HDD, then Ubuntu on the second drive.


Download the DEB installer file for version 2.3 and install it manually. Or through Ubuntu software center even (by doubleclicking the DEB).

2.3 can be found here: http://packages.ubuntu.com/source/precise/opencv (debian) or from the official website: http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/ (sources).


expect script to scp via an intermediate host

Much easier would be to configure this in the ~/.ssh/config, where you don't need to care about the syntax of the expect scripts and its issues with arguments. Create ~/.ssh/config with this content:

Host C
  ProxyCommand ssh -W %h:%p B

and then connect just using

spawn scp ./$arg1 C:destination

Or just use the simplified version using ProxyJump option:

spawn scp -oProxyJump=B ./$arg1 C:destination


If you follow the Ubuntu Install & Configure WordPress guide, this solution will help you in updating the domain name of the site.

UPDATE wp_options
SET option_value = 'http://new-domain-name.com'
WHERE option_name = 'home';

UPDATE wp_options
SET option_value = 'http://new-domain-name.com'
WHERE option_name = 'siteurl';

UPDATE wp_posts
SET post_content = REPLACE(post_content,'http://old-domain-name.com','http://new-domain-name.com');

UPDATE wp_posts

SET guid = REPLACE(guid,'http://old-domain-name.com','http://new-domain-name.com');

REFERENCE: https://stackoverflow.com/questions/29697144/change-site-url-and-wordpress-url-in-localhost


Upgrade from 18.04 to 20.04 failing due to "broken packages after upgrade: ubuntu-desktop"

I had this same problem and was able to resolve it using this answer
https://askubuntu.com/a/646918/309267
Update: The above answer didn't help on my second computer but this one works great
https://askubuntu.com/a/1242078


you can try this out to change font size on ubuntu 20.04:

Option One:

open settings.

go to universal access.

check if Large Text is on - if it is, turn it off.

Option Two:

use gnome tweaks.

use sudo apt install gnome-tweaks to install the tool.

after installation open the app.

then change the scaling factor value to 1.0 (wich is the default value).

Option Three:

using terminal to increase or decrease text size.

gsettings set org.gnome.desktop.interface text-scaling-factor (value)  - value 1 its the default value.

gsettings reset org.gnome.desktop.interface text-scaling-factor - to reset the value to his default size.

this link found helpful to solve the problem How do I change the font DPI settings? (added after edit).


use some other key on the keyboard to replace the non-functioning shift key

It is not recommended to use a different key for the function of "Shift" or "Caps Lock" keys in case you need the keys you used to replace later (Maybe for troubleshooting or to solve an unexpected issue). Your safest option is to use an external keyboard if possible.


How to startup a script automatically after login

You can add those lines at the end of your ~/.bashrc file which will get executed when you login.

I'm talking about the ~/.bashrc serverside. When you have added your lines and logout and ssh back in these lines will get executed. You can leave out the last line of your script.

If the ~/.bashrc does not exist you can simply create it or even better copy it:

cp /etc/skel/.bashrc ~/.bashrc

and make sure your ~/.profile file contains the following lines:

# if running bash
if [ -n "$BASH_VERSION" ]; then
    # include .bashrc if it exists
    if [ -f "$HOME/.bashrc" ]; then
    . "$HOME/.bashrc"
    fi
fi


Forwarding the results of text processing commands to certain locations in an .ods file

The following article from Wikipedia will give you a hint:
http://en.wikipedia.org/wiki/OpenDocument_technical_specification

Basically what you need to do (since you can't control the tags) is to add some sort of placeholder to ease the text replacement with sed/awk/whatever.

Just pay attention that these files are zipped (best described as Info-ZIP Application Note 970311, 1997) and you'll probably need to unzip or zcat them in order to process and zip them back once done.


LAMP stack installation. Accidental deletion of ports.conf

In general, I'd use the apt-file command (needs to be installed) to search for /etc/apache2/ports.conf: apt-file search ports.conf. This will provide a list of packages, one being apache2.2-common. So now you know which package provides the file you're looking to replace. Then you can either reinstall that package or download it and look at its content manually.

There might be better ways to accomplish it, but in general, this approach would always lead you in the right direction, at the very least.


Can I install Ubuntu 16.04 without damaging Windows 10 in a dual-boot?

If you have a previous installation of Ubuntu you can instruct the Ubuntu installer to use its partition(s). That means that the installer won't need to touch the Windows partitions, so there's only a minuscule chance that the installation accidentally alters Windows despite that fact. You'll need to use manual partitioning during installation though.

As always, make a back-up anyhow. Data without back-up is unimportant data by definition.


Switching from OVH kernel to default kernel without reinstalling Ubuntu

# cd /etc/grub.d
# mv 06_OVHkernel 96_OVHkernel
# update-grub

It will list the kernels, with the OVH one last.   You should have a distribution kernel first, but if you don't, follow @James answer above.

# reboot


phpmyadmin has no installation candidate

Currently there's no phpmyadmin package in the Ubuntu 19.10 repositories. As you may know, Ubuntu is based on Debian. The person who used to build Debian packages of phpMyAdmin doesn't have the time for it anymore, so there are no current phpmyadmin packages for Debian. And without current packages for Debian, (at least in this case) there are no current packages for Ubuntu.

Some people are working on phpmyadmin packages for Debian, and once those are finished, they can be adapted for Ubuntu 19.10.

So you can either wait until the volunteers for Debian and Ubuntu have created and tested those packages, or install phpMyAdmin with some other method. It's basically a PHP app, so you can just put it into a folder on a server where PHP gets executed. Or you use Composer, or...


Why drop overlay scrollbars in Ubuntu 15.10?

It's because Gnome has implemented theire own overlay scrollbars.
Unity is based on gnome so, for avoiding to maintains two overlay scrollbar, they drops the ubuntu's overlay scrollbar for using gnome's overlay scrollbar


How to make the Gnome Control Center (Settings) left panel background colors on hover more obvious in Ubuntu 18.04?

Using GTKInspector I was able to zero in on the "zebra striping" and track it down to the following lines for the Ambiance theme (which I use and like) in /usr/share/themes/Ambiance/gtk-3.20/gtk-widgets.css:

.view row:nth-child(odd):not(:selected) {
    /* zebra stripping, see LP#945430 */
    background-color: shade (@base_color, 0.965);

Having a quick Google at LP#945430 I was able to see that this was intended to be a long-ago fix for a lack of readability of the long lists of songs in Rhythmbox.  Adding the zebra striping was to improve legibility according to the report.  I can report that it doesn't do anything for Rhythmbox under Ambiance in Ubuntu 18.04 and according to the report is still "broken" wrt Rhythmbox.

So, assuming now that this is quite possibly an unintended consequence, I set out to fix the left panel styling.  Removing the above CSS snippet "fixed" this issue.


To be precise, this post answers my question: https://askubuntu.com/a/61547/78383:

To debug your wifi-connection, you use dmesg to output the logs your wifi card produces.


Hide a .desktop file on the Desktop [Ubuntu 13.04]

To show or hide a .desktop file in a given desktop environment we should use its corresponding entry keys:

OnlyShowIn=<environment>;
NotShowIn=<environment>;

Hence the follwing entry will only show the desktop file in GNOME (e.g. classic), and KDE but not in Unity:

OnlyShowIn=GNOME;KDE;

Or, alternatively we may wish to define en exclusion with

NotShowIn=Unity;


rsyslog stopped creating pid file after upgrade from 18.04 to 20.04

Edit /lib/systemd/system/rsyslog.service and remove -iNONE option from ExecStart line.
Then run systemctl daemon-reload and systemctl restart rsyslog and PID file should back.

man rsyslogd(8) says:

-i pid file
              Specify an alternative pid file instead of the default one.
              This option must be used if multiple instances of rsyslogd
              should run on a single machine. To disable writing a pid file,
              use the reserved name "NONE" (all upper case!), so "-iNONE".


There seem to be some dependency issues with bfgminer. To force install, try the following:

Download bfgminer from launchpad
Open a terminal and type sudo dpkg --force-all -i bfgminer_3.2.1-0precise1_i386.deb
And sudo apt-get install libjansson4

Source: github bug on bfgminer. Updated the package for Ubuntu 12.04


How do I represent $ARCH-pc-linux-gnu in a Debian install file?

Like ${DEB_HOST_MULTIARCH}, there are other variables for architecture information details. As documented below from Debian policy manual:

4.9 Main building script: debian/rules
The architectures we build on and build for are determined by make variables using the utility dpkg-architecture. You can determine the Debian architecture and the GNU style architecture specification string for the build architecture as well as for the host architecture. The build architecture is the architecture on which debian/rules is run and the package build is performed. The host architecture is the architecture on which the resulting package will be installed and run. These are normally the same, but may be different in the case of cross-compilation (building packages for one architecture on machines of a different architecture).
Here is a list of supported make variables:
DEB_*_ARCH (the Debian architecture)
DEB_*_ARCH_CPU (the Debian CPU name)
DEB_*_ARCH_OS (the Debian System name)
DEB_*_GNU_TYPE (the GNU style architecture specification string)
DEB_*_GNU_CPU (the CPU part of DEB_*_GNU_TYPE)
DEB_*_GNU_SYSTEM (the System part of DEB_*_GNU_TYPE)

where * is either BUILD for specification of the build architecture or HOST for specification of the host architecture.
Backward compatibility can be provided in the rules file by setting the needed variables to suitable default values; please refer to the documentation of dpkg-architecture for details.
It is important to understand that the DEB_*_ARCH string only determines which Debian architecture we are building on or for. It should not be used to get the CPU or system information; the DEB_*_ARCH_CPU and DEB_*_ARCH_OS variables should be used for that. GNU style variables should generally only be used with upstream build systems.
Source: https://www.debian.org/doc/debian-policy/ch-source.html

The one you are looking for is DEB_HOST_GNU_CPU. So the new install line should be:
usr/lib/${DEB_HOST_MULTIARCH}/octave/${DEB_VERSION_UPSTREAM}/exec/${DEB_HOST_GNU_CPU}-pc-linux-gnu/*

You can have a look on values of these variables in your local machine by running:
~$ dpkg-architecture
DEB_BUILD_ARCH=amd64
DEB_BUILD_ARCH_BITS=64
DEB_BUILD_ARCH_CPU=amd64
DEB_BUILD_ARCH_ENDIAN=little
DEB_BUILD_ARCH_OS=linux
DEB_BUILD_GNU_CPU=x86_64
DEB_BUILD_GNU_SYSTEM=linux-gnu
DEB_BUILD_GNU_TYPE=x86_64-linux-gnu
DEB_BUILD_MULTIARCH=x86_64-linux-gnu
DEB_HOST_ARCH=amd64
DEB_HOST_ARCH_BITS=64
DEB_HOST_ARCH_CPU=amd64
DEB_HOST_ARCH_ENDIAN=little
DEB_HOST_ARCH_OS=linux
DEB_HOST_GNU_CPU=x86_64
DEB_HOST_GNU_SYSTEM=linux-gnu
DEB_HOST_GNU_TYPE=x86_64-linux-gnu
DEB_HOST_MULTIARCH=x86_64-linux-gnu
DEB_TARGET_ARCH=amd64
DEB_TARGET_ARCH_BITS=64
DEB_TARGET_ARCH_CPU=amd64


Check sounds in the system settings to ensure that your computer is not trying to play through an HDMI device.  The computer I am using has only a single audio capable device, but my other computer has both, and the HDMI output is silent (unless plugged into something).


How to get access from nginx on host OS to files inside lxc-container?

What I think the issue is is that a parent directory is blocking the permission to the LXC rootfs. So you should move the /var/www directory in the container to /var/local/www/ in the host, then bind mount it into the container and change your host nginx config to point to that new location.

In the host run:

install -m 750 -o 100000 -g www-data -d /var/local/www/
cp -R /home/romka/.local/share/lxc/php55/rootfs/var/www/ /var/local/www
rm -rf /home/romka/.local/share/lxc/php55/rootfs/var/www/

Then edit your container config to add the line

lxc.mount.entry=/var/local/www /home/romka/.local/share/lxc/php55/rootfs/var/www none bind 0 0

Then finally change your nginx config to point to /var/local/www for the static stuff.


Fix the ownership of the .gnupg directory:

sudo chown -R saikirangvr:saikirangvr /home/saikirangvr/.gnupg

After that repeat the key importing command.

By the way, the gpg command has to be issued without sudo, in this way you will not break your file's ownership.


How do I mute speakers, but have sound in headphones?

Did you try pavucontrol? You can edit any input source or output source in it including the volume from each program playing sound.


Grub Rescue: No Such partition (Havn't found answer on other questions)

Ok. I think this answer may help many people who are facing the same exact problem. Just go the Ubuntu installation, and instead of custom partitions, just press clear hard drive and let ubuntu install. Grub didn't stop me now. Now I properly installed WIndows, and I am typing this on the pc with the grub problem!


Network is not working nicely with RTL-8110SC/8169SC

Maybe the kernel driver r8169 kernel is not good enough. Try compiling the ralink drivers:

Make a backup of your driver first. To find where the driver is:

find /lib/modules/$(uname -r) -name r8169.ko

copy the driver somewhere in your home directory.
Download the drivers here (select US1 server as the other two don't work)
Prepare the system for compiling:

sudo apt-get install build-essential linux-headers-$(uname -r) linux-source

Check whether the built-in driver, r8169.ko, is loaded.

lsmod | grep r8169

If it is installed, please remove it.

sudo modprobe -r r8169

compile the driver:

tar jxvf r8169-6.015.00.tar.bz2 # unpack this on th desktop
sudo mv r8169-6.015.00 /usr/src # move the drive directory from desktop to /usr/src
sudo -i

navigate to /usr/src/r8169-6.015.00 and run

make clean modules
make install
depmod -a
modprobe r8169

drop privileges:

exit

You can check whether the driver is loaded by using these commands:

lsmod | grep r8169
ifconfig -a

Reboot and check again that the driver is loaded. If it isn't, You might want to add r8169 to the list of modules which are loaded on startup. Edit this file:

sudo nano /etc/modules

add the line

r8169

save, exit, and reboot

If something goes wrong or you want to revert this procedure, just restore the file that you backed up in the first step to its original location.


If possible, always get a .deb file from the creators of software instead of source code. They work with Xubuntu as well.

It just so happens there is a .deb file:

Go to the keyTouch download page.
Download either the i386 or AMD64 Ubuntu packages.
Open a terminal.
cd to the directory you downloaded it into.
Run sudo dpkg -i keytouch*.deb.
If it gives you trouble, try sudo apt-get install -f.


How to find out how many people have downloaded from PPAs

This has been a long-standing request and is available if you know about the Launchpad WebService API.  This may be available via the standard launchpad webpages but as yet has not been implemented.

  If you are already familiar with the webservice API, then you can use
  the following binary_package_publishing_history object methods to
  retrieve the information:

getDailyDownloadTotals
getDownloadCount
getDownloadCounts

source

Linked Blog:

http://ftagada.wordpress.com/2011/01/05/ppa-stats-initial-impressions/


Synapse unable to search mounted partition

The solution mentioned in the question is not intended to make Synapse find directly any file on any partition by just typing its name, but to achieve this indirectly through locate; that is, to enable locate to have access to files on partitions that were not previously accessible — because excepted (via settings in the file /etc/updatedb.conf) from being added to the databases locate uses .

Synapse operates file search in two ways: within entries of the Zeitgeist logs, and within those of locate. This type of search is implemented through specific plugins that are by default enabled in Synapse's Properties - Plugins. (If the Zeitgeist plugin is disabled, restarting the computer might be needed after (re)enabling the plugin in order for it to operate properly.) Folder search is based on a separate plugin.

Zeitgeist results appear automatically:

(the same is the case for Folder Search)

But that is not the case for results of locate command. Results of locate appear only after selecting the last entry (the one with a question mark) in the list of normal search  and pressing ENTER to run that command:

For Synapse to show directly a file, it should be recorded in the Zeitgeist logs. But that will not happen until an event related to that file has taken place (like a movie being played, a document being opened), no matter the partition on which the file is located. Some differences between locations need to be mentioned though: see NOTE below.

Zeitgeist is not a file logger, but an activity (event) logger.  (See here.)

The solution included in the question itself should make available for the locate process the databases that include files from
a certain partition (which by default is excluded by the file /etc/updatedb.conf), but those files will only be searched by locate (see second image above): only the ones already accessed will subsequently appear directly in Synapse (through Zeitgeist).

Summing it up:

For a file to be directly shown in Synapse it should have been already accessed (e.g. opened).

*** NOTE: files created on certain privileged locations, like the Desktop, will appear directly. The same for $HOME folders.
For a file to be accessed through the locate command in Synapse it should not be on a partition excluded in /etc/updatedb.conf, and, after being created, the command sudo updatedb is needed.
File accessed through the file manager are added to the Zeitgeist log more quickly (or maybe are accessed more quickly within these logs) than when access through Synapse search (with locate). Once a file has been accessed from the file manager, and thus accessible later through  a simple Synapse search, other files from the same location are accessible in Synapse through a simple search.

Examples:

Creating a new file in ~/Documents, Synapse cannot find it; running locate in Synapse finds nothing. After running sudo updatedb Synapse doesn't show it directly, but running "locate" in Synapse finds the file. Opening the file, then searching again in Synapse: the file is shown directly.
Creating a new file in ~/Desktop, Synapse finds it directly.
Creating a file new file on a second NTFS partition with the mount point /media/username/DEPO, none of the above works. After I open it, Synapse will show it directly. But if I want to find it without opening it (if it were a new file that I never opened) and try to use locate, it is not found, not even after running sudo updatedb. Editing the file /etc/updatedb.conf as said in the question, restarting the computer and then running sudo updatedb will make the file accessible in Synapse through locate.

For the above to work for me, in the file  /etc/updatedb.conf after PRUNEPATHS= the path /media was removed, and now looks like so:

PRUNE_BIND_MOUNTS="yes"
# PRUNENAMES=".git .bzr .hg .svn"
PRUNEPATHS="/tmp /var/spool /var/lib/os-prober /var/lib/ceph /home/.ecryptfs /var/lib/schroot"
PRUNEFS="NFS nfs nfs4 rpc_pipefs afs binfmt_misc proc smbfs autofs iso9660 ncpfs coda devpts ftpfs devfs devtmpfs fuse.mfs shfs sysfs cifs lustre tmpfs usbfs udf fuse.glusterfs fuse.sshfs curlftpfs ceph fuse.ceph fuse.rozofs ecryptfs fusesmb"

Searching for a podcast on the secondary partition by typing first letters of its name, Synapse finds nothing, but it finds it with locate; if then I press ENTER to open it, or press TAB and select an application to open, and then search again in Synapse, nothing is found. If, after finding the file with locate, I press TAB, select to open the folder in the file manager, and open the file there, not only that file can be afterwards found in Synapse by just typing its name, but other files located within the same folder can be found in the same way also. (I think this is due to other plugins that involve Zeitgeist: Hybrid Search – complete Zeitgeist results by searching for similar files – and Related files– finds files related to other search results using Zeitgeist.)

By the way, in my case removing NFS nfs nfs4 after PRUNEFS= made Synapse take all CPU upon reboot and stuck my computer. I have changed that file back from a live session and proceeded as mentioned.


ubuntu server file permissions auto-change

I would go with Jim Salter answer in general. It should be fast to configure.

Just as a reference I had to build a server with plenty of users accessing via different processes and several daemons that I do not want to run as root. I decided to use acls.

The steps are the following:

Install the acl package
Add support in your filesystem:

Edit /etc/fstab and add acl as a keyword in your partition. Something like this:

  UUID=b8c490d0-0547-4e1f-b052-7130bacfd936 /home ext4 defaults,acl 0 2

Restart o remount.
Set the acl on the directory:

sudo setfacl -Rdm u:www-data:rx /var/www

This will make every file created in that directory to inherit this permissions (in practice, adding www-data as the group instead of that users group.

It should work for you too if you can't find the way in your FTP (which, again, should be easier)

References:
http://brainstorm.ubuntu.com/idea/24052
http://brunogirin.blogspot.com.es/2010/03/shared-folders-in-ubuntu-with-setgid.html


Unity "Files & Folders" lens can't find anything

The problem could be in corrupted FTS index. See the bug report.

The solution is to remove the index - this shouldn't affect your overall history of activities.

zeitgeist-daemon --quit
rm -rvf ~/.local/share/zeitgeist/fts.index/
zeitgeist-daemon --replace

(Based on Michal Hruby's solution from the linked bug report.)


How to install ubuntu by erasing Red Hat?

If the drive and disk itself are in working order, which they are since you have tried them on the other PC, then the problem lies in the boot options of the target PC.

Looks like the BIOS and the external DVD drive do not like each other. Try upgrading your BIOS (flashing), or another boot media like USB flash memory.

Search the Internet for answers in regards to your PC (motherboard) make and model - this is not a Ubuntu related problem.

Start here.


Xournal: working on 2 documents simultaneously?

A click with the middle button of the mouse on the Xournal icon in the launcher bar will open a new Journal.

(Thanks to Denis Auroux for this solution.)


Is there a way to check when the OS was installed?

Use this command:

ls -al /var/log/installer/syslog

Creation date of installer log can tell you the installation date (since it's not modified after that).

Found here: http://ubuntuforums.org/showpost.php?p=10591868&postcount=5

Another solution is using this command:

ls -lt /usr/share/doc

Above of the default documents you can find creation date of documents for first installed applications.

I'm using ubuntu 10.04 so 2010-04-29 is shown for default documents.

Found here: http://ubuntuforums.org/showpost.php?p=3784265&postcount=8


How to dual boot Ubuntu 14.04 on Macbook pro Yosemite

Ubuntu have a help document to install the Ubuntu on Mac-books, hope this document will helps you https://help.ubuntu.com/community/MacBookPro

You can also follow the step available in the URL http://www.makeuseof.com/tag/install-linux-macbook-pro/ to install the Ubuntu on mac pro


gcc and cpp depends on uninstallable packages in Ubuntu 19.10

The root problem here was that some packages were installed with a newer version than available in repositories, and becuase a lot of them had critical dependencies, I couldn't just purge and reinstall them.

The solution: To upgrade them all in one monster expression like this sudo apt install lib32gcc1=1:9.2.1-9ubuntu2 lib32stdc++6=9.2.1-9ubuntu2 libasan5=9.2.1-9ubuntu2  libatomic1=9.2.1-9ubuntu2  libcc1-0=9.2.1-9ubuntu2 libgcc1=1:9.2.1-9ubuntu2 libgomp1=9.2.1-9ubuntu2  libitm1=9.2.1-9ubuntu2  liblsan0=9.2.1-9ubuntu2  libstdc++6=9.2.1-9ubuntu2  libtsan0=9.2.1-9ubuntu2  libubsan1=9.2.1-9ubuntu2 libquadmath0=9.2.1-9ubuntu2 .... and so forth.

Before that, I had to use dpkg -r ... to remove packages that were involved in this dependency chain, but not at all available through repos. (This involved traversing down their dependency chains step by step.) I used apt-cache policy to check availability.


Unable to locate package libpthread-stubs0

The tutorial writer in the link you provided was giving incomplete info. there. There is no libpthread-stubs0 package in Xenial official repository. You can't install it in Xenial.

Furthermore, Ubuntu is not a well supported distribution for Oracle. If you really need to install, use Precise (12.04). The package is available in Precise repository.

Also check this forum link where it is mentioned that Ubuntu is not a supported platform.


Can't change vm.dirty_ratio with /etc/sysctl.conf

Setting such a high vm.dirty_ratio might not be a very good idea. See: http://lwn.net/Articles/572911/
Your updated settings should be added to a file in /etc/sysctl.d (e.g. something like /etc/sysctl.d/60-local-dirty-bytes.conf), as sysctl.conf is curretly not read on startup. See: https://bugs.launchpad.net/ubuntu/+source/procps/+bug/1388068
pm-utils reset the vm.dirty_bytes settings. You need to disable the /usr/lib/pm-utils/power.d/laptop-mode script that resets these variables, for example by putting an exit 0 on the second line of this script. See: https://bugs.launchpad.net/ubuntu/+source/pm-utils/+bug/1407818


Network Manager not working when installing ubuntu-desktop on a Ubuntu 18.04 Server installation

Are you aware that Ubuntu 18.04 introduced Netplan?

If you want to use network manager my understanding is you need to edit the netplan configuration file in /etc/netplan.

Specifically to enable network manager your /etc/netplan would look like this:

network:
  version: 2
  renderer: NetworkManager

You then need to run

netplan generate
netplan apply

After that, network manager should work as you expect.


Is there an easier way to edit a text file in ubuntu?

Step 1: Install Nautilus Admin Tool

To enable this feature, you must first install Nautilus administrator tool… doing this will allow you to edit file and open folders as administrator..

To install the tool, open Ubuntu terminal or press Ctrl+Alt+T on your keyboard to open the terminal app… then run the commands below:

sudo apt install nautilus-admin

Step 2: Using Nautilus Admin

Now that the tool is installed, all you have to do is open Nautilus file browser, right-click a file  or folder and select Open As Administrator as shown in the image below…

First run the commands below to reload Nautilus….

sudo nautilus -q

When you want to edit files, you’ll see Edit as Administrator… on Folders, you’ll get Open as Administrator. Doing that will prompt you to type your password… this only works if your account is already member on the sudo approved list.. if the user opening a file isn’t authorized to use the sudo command, it won’t work…

This is a very useful tool especially if you’re new to Linux and Ubuntu…

And then, open the desired folder and open it with administrator privilege.
now you can edit the text by right click and "open with Other application"

Or you can install gedit

sudo apt-get install gedit

Then:

Right-click a text file
Select "Properties"
Select "Open with" tab
Choose among the listed/installed text editors
Click "Set as default"
Click "Close"


Package dependencies cannot be resolved when trying to install OpenJDK Java Runtime 8

You can fix the broken dependencies by executing : sudo apt-get install --fix-broken

-f, --fix-broken
           Fix; attempt to correct a system with broken dependencies in place.
           This option, when used with install/remove, can omit any packages
           to permit APT to deduce a likely solution. If packages are
           specified, these have to completely correct the problem.

more details can be found on man apt-get


As an introduction to Ubuntu, this is going to seem rather involved. A lot of installations are straightforward and simple. Sometimes there are situations where a little more work is required.
At the moment you have three options:

Wait for the 21.04 release of Ubuntu, which will include support for your network adapter. This is expected in April.
Install the 5.10 Linux kernel, which supports your adapter, using a walk-through like this
Compile the driver from Realtek, so long as you are using the 5.4 kernel. If you’re on 5.8, this may not work.

As this is your first foray with Ubuntu, it may make sense to go with the first option.


Try to run applications which use different graphic libraries (GTK, wxWidgets, QT, pure X11) Maybe you will notice that some apps get distorted fonts while other do not, and find out which library should be updated/reinstalled.


creating .deb package but bad permissions into destination folder

In Unix those things should go into user's home folder - something like $HOME/.marball/game.cfg etc.

The user won't (and shouldn't) have permissions to modify files in /usr/whatever


cannot adjust brightness in ubuntu gnome

For new ASUS laptops and this model in particular you will need to edit /etc/default/grub file and add a xorg config.

Run in terminal

sudo -H gedit /etc/default/grub

and edit this line GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" to look like this

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi="

Run in terminal

sudo update-grub

Run in terminal

sudo -H gedit /usr/share/X11/xorg.conf.d/20-intel.conf

and paste to the editor this text

Section "Device"
     Identifier "card0"
     Driver "intel"
     Option "Backlight" "intel_backlight"
     BusID "PCI:0:2:0"
EndSection

Save file and reboot.

This will enable Fn buttons to control screen backlight.

Regarding keyboard backlight I suggest asking a separate question.


How to use Whatsapp mobile application on Ubuntu Touch?

You will have to install the Android Emulator to run that. Follow the tutorial listed here:

How to install WhatsApp on Linux Ubuntu PC with Android emulator (Updated 23/12/12) HD - YouTube.


I don't know much about your printer but you can search for it by using

ls /bin/ /usr/bin/ | sort | grep "your printer name"

and then you can configure it


How to create a PPA package from existing launchpad source package?

This answer is super late, but I hope that it may help someone.

Go to the code section of this Launchpad source package, and select the intended branch

Create a new packaging recipe

Choose the PPA where you would like to build it (it will offer you to a new one). You don't need to change the default recipe text. Choose the versions of Ubuntu for which you want to build.

Once you create the recipe, scroll down and request builds.

And launchpad will build it in your PPA in some time (it may take a few minutes to a few hours to build, depending on the size of the package).


How to find IP address lease info using WPA2 Enterprise

Look in /var/lib/NetworkManager for the lease.

I do see an old lease in my /var/lib/dhcp dating back to April, when I think I updated my system from 12.04 to 14.04.  I have no idea why such a change was made.


Do open source(or amd's) drivers work well for hd5570 graphics card?

I'm using HD5850, and I'm very satisfied with the open radeon driver that's used by default. You can achieve better performance with the proprietary drivers, but they don't always work well and have problems of their own. I prefer to use the open drivers. They just work and I can expect my VGA performance to increase over time. :)


Chrome opens offscreen, does not retain position on close

Let me offer this fix I found, these steps are:

use the key combination ALT+TAB till you are positioned on Chrome before continuing with the next step.
Press Alt + Space: This opens the the "Window Menu".
Choose "move" either by clicking on the option if you can see the menu, or by hitting the "M" key.
Hit one of the "arrow" keys, the one with a direction opposite to where your browser window has gone (mine went to the right, so I hit the "left arrow" key) enough times until you can see the enough of the browser to be able to drag it.
Drag the browser to the desired position.
Close the browser (this is important in order to ensure that this new position of the browser is saved and will be the position of the browser the next time you open it. Skipping this step means that the last saved position is "off screen". Should the browser close improperly, it will re-open in the last saved position, that is "off screen" and this procedure will need to be repeated.)
Re-open you browser and proceed normally.

Source:- credits: Sunny Balanga

http://www.sunnybalanga.com/2011/06/09/chrome-broweser-goes-off-screen-fixed-resolved/


18.04 Screen orientation rotates at random after new install

Please go to Settings -> Devices-> Displays and, as per  https://help.ubuntu.com/stable/ubuntu-help/look-resolution.html
lock the system down into Landscape mode.


You can use the "English (Macintosh)" layout instead of the standard English layout. Here's how it looks:

You'll need to use the "level 3 select key" (which is usually AltGr aka right-Alt key) to get those characters. For example, to get "∆" you need to press AltGr+j and to get "½" you need to press Shift+AltGr+j.


Freezing on start up after fresh install

I read somewhere that the 64bit Ubuntu won't boot from a USB, you need to use the 32bit installer. Also you miight try at boot, press the F6 key and unselect the options.

How to set NOMODESET and other kernel boot options in grub2


Why are all the CCSM tick-boxes grayed out?

To get back to unity 3d just log out then click the little icon next to your name an choose Ubuntu.


At the recommendation of @DougSmithies, I did a source build of perf. It was pretty easy, but not trivial, so here are the instructions.

1) Clone the linux kernel:

$ git clone https://github.com/torvalds/linux.git

2) Find your kernel via uname -r, and checkout the corresponding kernel branch via searching through the git tags. So for me:

linux$ git checkout v5.0

3) Install a few dependencies:

linux$ sudo apt install bison flex libelf-dev systemtap-sdt-dev libssl-dev libslang2-dev liblzma-dev libdw-dev libunwind-dev libgtk2.0-dev binutils-dev libbabeltrace-dev libiberty-dev libperl-dev libaudit-dev

The tools/perf/Makefile will explain the purpose of each dependency.

3) Change into the perf directory, and run:

linux/tools/perf$ make
linux/tools/perf$ make install

4) Edit /proc/sys/kernel/perf_event_paranoid (and/or?) /etc/sysctl.conf so that the only value therein is -1.

5) Get a root shell and

$ sudo bash
# echo 0 > /proc/sys/kernel/kptr_restrict

Now I have perf!


how to not get stretched pics when viewing them with shotwell

I work on the Shotwell project, and this does indeed sound like a bug, and, if possible, we'd like to know how it happens so we can fix it for you.

Based on your initial post, it looks like you're opening the image directly, rather than importing it.  Unfortunately, I'm not seeing any unusual behaviour when I crop an image in direct-edit mode - can you tell us more about what problems you're encountering?


GNOME Image Viewer opens its window 2 pixels shorter and distorts the image by resampling

That's a known bug in eog (= Eye Of Gnome, = Gnome Image Viewer)

Look at the Launchpad bug tracker and subscribe to the bug tracking list and add your excellent description.


The best way to get Flash Player 11.2+ is to use Google Chrome in Ubuntu. There is no other way to get it, because a higher version has not been released for Ubuntu.

Download Google Chrome From Here

Select your OS version x86 or x64 and download it to any path.

Then you can open it with the Ubuntu Software Center to install.

You can also install by executing command:

sudo dpkg -i <googlechromefile.deb>

Hope it helps you somewhat!!


Why can't dash search find a program by its full name?

The Dash search in general could use more improvement, here's a few bugs I found with Dash search:

https://bugs.launchpad.net/unity/+bug/752259
and a bunch more.

I recommend filing a bug on the musescore package, just in case it's an easy fix like fixing the description in the .desktop file or something.

How do I report a bug?


How to use windows network links directly in nautilus

As you said

  in Nautilus or / and shell ?

the shell way:

Using awk

awk -F'\' '{printf "smb:/"; for(i=2;i<=NF;i++){printf "/%s",$i}; printf "\n"}'<<< "\MACHINE\dir1\dir2\file.xyz"

Output:

smb://MACHINE/dir1/dir2/file.xyz

Or via Perl

perl -pe 'print "smb:/"; s/\\/\//g' <<< "\MACHINE\dir1\dir2\file.xyz"

Output:

smb://MACHINE/dir1/dir2/file.xyz


Looking around, it appears to be that some people were able to solve this issue simply by using OpenGL. You can try changing Preferences -> Video -> Output and switching Default to OpenGL.

It would also be helpful if you posted the output of:

lspci | grep VGA

so that we could know what GPU you're using.

You could also try installing graphics drivers (seeing as you're using the legacy AMD/ATI 4000 series) with:

sudo add-apt-repository ppa:makson96/fglrx
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install fglrx-legacy


Looks exactly like this
try to go into the file and search for a misplaced whitespace in that line.
The root cause was for a leading space in /usr/local/etc/ansible/hosts file and the solution was searching for such spaces and remove them. The key part of the forum post is noted down below.

  This is caused by comments with leading whitespace in the /usr/local/etc/ansible/hosts inventory file. This is new behavior for this Ansible version!

  So if you're in the habit of writing something like this in that hosts file:

[web]
     # legacy servers
     webserver-[1:2].company.com

  Change it into:

[web]
# legacy servers
     webserver-[1:2].company.com

  or

[web]
     webserver-[1:2].company.com # legacy servers


rsync --delete option not deleting in destination if deleted in source

See if there are any I/O errors listed in the output. (Maybe you will want to redirect the output to a file so you can grep through it for errors). I know that as a safety feature, rsync disables the deleting after it is finished if there were any I/O errors.

It would be helpful to see the output of running the command, but I understand if you feel you can't post that...


Unable to Change Critical Battery Action through dconf editor : Ubuntu 16.04

Same problem here!

I'm not very familiar with the topic, but tooking for UPower's configuration files I found that the critical-action is setup in /etc/UPower/UPower.conf

There you can change the corresponding key to CriticalPowerAction=PowerOff and then it should work.

You may also want to check through the other keys set in your UPower.conf file. In my case for instance they were all not synchronized with dconf: no idea why!


How to upgrade from Ubuntu 14.04 to 16.04?

sudo update-manager -d only update current release.

You can try with following command in terminal.

sudo do-release-upgrade

Follow the instructions guided by upgrade tool.


You are right, this utility is available for Ubuntu 20.10 and newer.
But you can simply download its deb-package to install on Ubuntu 20.04 manually with
cd ~/Downloads
wget http://archive.ubuntu.com/ubuntu/pool/universe/h/hcxtools/hcxtools_6.0.2-1_amd64.deb
sudo apt-get install ./hcxtools_6.0.2-1_amd64.deb

and then launch the utility by hcxpcaptool.


When you say it closes the connection, does it actually disconnect from the network or do you just mean the internet stops working? I had an issue on an older machine (using Ubuntu 12.04) where it would remain connected, but the internet would not work.

For some reason Ubuntu was not playing well with my ISPs DNS servers, so I changed it to use the Google ones and that fixed the problem. (To change your DNS server click the WiFi icon at the top, click edit connections, select your network, and go to the ipv4 tab)

If the computer fully disconnects from the network (cant even ping the router), then you have a different problem. In which case, what WiFi card are you using, and have you tried checking for a proprietary driver? (Settings > software and updates > additional software)


So I was able to find a solution on my own.

First of all, as I have guessed, the issue was not with the system itself, but with the Digital Clock Plasma Widget. I could confirm that, since the system time in the system settings was correct and because the other clock widgets for the analog clock and the written clock were working correctly.

Attempts to find that widgets config or reference file to fix it manually or do some further investigation on the issue remained fruitless.

Today I had an automatic update check done after activating the kde-backtrack apt in Software Center. Promptly the system showed up various updates to KDE. After installing them all, without a reboot the clock was fixed and the visual effects, especially those of the taskbar significantly imporved.

Thanks everyone for attempting to help out.

Cheers.


Run C++ program like a command from the terminal

You can either copy your executable to some folder in your $PATH (if you compiled your app statically) to see what is in your $PATH type:

echo $PATH

/usr/local/bin is probably the best choice. So copy it there by:

sudo cp yourexe /usr/local/bin

Or you can add additional directory to your PATH. You can do this by putting:

PATH=$PATH:/path/to/some/folder

in your ~/.profile file. Read more about it here. You will probably need to logout after doing this.