"Incompatible sample format 's16' for codec 'pcm_s24le', auto-selecting format 's32'" error in audio conversion using avconv

pcm_s24le has a bit depth of 24; it appears that your input audio has a bit depth of 16. Use pcm_s16le instead.

That said, using raw pcm audio (presumably in a .wav container) is way overkill, in terms of file size, unless you're doing waveform editing. Using

avconv input.file -vn -c:a copy output.file

would probably get you the best results. You gain nothing (well, nothing relevant to a modern computer) from converting the audio to pcm.


sudo putty /dev/ttyUSB0 -serial -sercfg 9600,8,n,1,N

worked for me


I know this answer probably comes too late but I was just using these answers to find out the solution to the same issue and ran into this:

Clean removal of KDE 4

From there I found this website with a one-step-shopping solution for clean ubuntu restoration:

http://www.psychocats.net/ubuntucat/tag/pure-ubuntu/

My version was 14.04 and that command works perfectly for me. It removed some software I installed on ubuntu before the installation of KDE but I wouldn't mind reinstall these software since now I have a pure(at least as far as what I see) ubuntu to work on.


PHP - localhost is currently unable to handle this request. HTTP ERROR 500

You display_errors directive is set to no.

To fix this:

Edit /etc/php/7.0/apache2/php.ini and set:

; display_errors
;   Default Value: On
;   Development Value: On
;   Production Value: Off

; display_startup_errors
;   Default Value: Off
;   Development Value: On
;   Production Value: Off

#to

; display_errors
;   Default Value: On
;   Development Value: On
;   Production Value: On

; display_startup_errors
;   Default Value: On
;   Development Value: On
;   Production Value: On

Restart your apache with:

sudo systemctl restart apache2

To have the same behaviour on the cli edit the /etc/php/7.0/cli/php.ini
To set this value locally add this to a .htaccess file in the server root: /var/www/html

Do

    vim .htaccess

Press i

Type the following:

    # Displaying php errors
    php_flag display_errors on
    php_value error_reporting 6143

Press
      Esc
      :x
      Enter

Note:

Mine was php version 7.0. Change to your particular version. And in your image both local and master values are both set to Off so:

step 1 will change the master value, and
step 4 will change the local value.


Why doesn't Ubuntu One Music app (Android) recognise mp3 files uploaded via the U1 REST API?

It is most certainly not expected behaviour. We're looking in to why it might happen. Can you confirm a few things for me?

the files, when uploaded from the REST API and then downloaded from the website, have not been corrupted or altered?
the filesizes of the REST-API-uploaded files are as you'd expect on the website?
is the mimetype of the REST-API-uploaded MP3s audio/mpeg ?

That last one is the important one. Use "More" to show details of a file on the website to see its mimetype. Uploads through Ubuntu One guess the mimetype for you if you don't specify it. The REST API trusts you more and uses what you specify (and chooses a neutral type if you do not; specifically, it won't guess audio/mpeg for mp3s).


As per the comments on the question, adding the nomodeset kernel parameter was required to fix the issue.

NB: If you have the same issue when booting your fresh install, then you'll need to follow the steps detailed in my answer here: https://askubuntu.com/a/746104/518562

So you ask, what exactly does this parameter do and why does it fix the black screen issue?

  The newest kernels have moved the video mode setting into the kernel.
  So all the programming of the hardware specific clock rates and
  registers on the video card happen in the kernel rather than in the X
  driver when the X server starts.. This makes it possible to have high
  resolution nice looking splash (boot) screens and flicker free
  transitions from boot splash to login screen. Unfortunately, on some
  cards this doesn't work properly and you end up with a black screen.
  Adding the nomodeset parameter instructs the kernel to not load video
  drivers and use BIOS modes instead until X is loaded.

The above was excerpt from this Ubuntu Forums post.


Ubuntu won't boot after install. What am I doing wrong?

If by "mini" version, you mean the image found here, then my guess is that your machine didn't connect to the internet, and didn't pull down the required packages to do an install.

The mini.iso and netinstall images require an active internet connection at install time. They contain minimal packages required only to boot, which is why the images are so small.

You could re-run the installer and pay close attention to the networking portion to ensure that it's properly connected.

If the mini.iso installer doesn't detect your networking devices, you'll have to use one of the larger images to successfully install, since they contain the required packages on disk.


Setup for mounting kerberized nfs home directory - gssd not finding valid kerberos ticket

See this thread:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=190267

  If there is no "user" option in fstab, only root can mount volumes.
  There is some comment in mount.c on making the mount command executable
  by any user, but that was rejected by the maintainer (the comment says
  something about security implications, but is not more specific).

  In contrast to the original upstream, the Debian version of libpam-mount
  executes mount commands with the user uid, not as root. Doing
  user-specified mounts as root is a security hole.
  Any user then could mount a volume to /usr or /tmp on login, or
  umount any other volume on logout.

  Or in other words libpam-mount can do only things the user can do,
  nothing more.

    So, any suggestions?

  Putting a user entry in fstab should do it. Please tell me how this
  works.
  Note that other filesystems (ncp, smb) have user-callable mount binaries
  like smbmount or ncpmount. There seems nothing like this for loopback
  mounts :/


In Nautilus' "Save As ... " dialog, how can I open a (sub-)folder using my keyboard (rather than the mouse)?

From what I understand, you want to navigate through directories via the Gtk Save as dialogue. This is not possible by pressing [Enter], as it saves the file in the current directory.

Instead, use Shift+Space, after focusing on the correct part of the dialogue using the [TAB] key, and finding your desired folder using the arrow keys.


Cannot Install Wine Windows platform loader both from Terminal and software Center

The problem was with my server. As I switched my download Server from Pakistan to main server I am able to download and install wine. Thanks for sparing time!


Why is GNOME Tracker installed by default in Ubuntu Budgie 17.04?

Tracker is installed because it is an integral part of the following applications that are installed by default in 17.04 Ubuntu Budgie:

GNOME Documents
GNOME Photos

Note: 17.10 Ubuntu Budgie will no longer ship with GNOME Documents and GNOME Photos by default (gThumb is the photo replacement) and hence tracker will not be installed.

At the time of writing this it is undecided whether the new Files in 17.10 (Nautilus) will ship with tracker switched on as a dependency or perhaps switch-on for 18.04.

In 17.04 and older versions, Nautilus was patched with a type-ahead fast search capability.  This was considered quite an intrusive patch and was unmaintainable for newer versions of Files.  Thus for 17.10 the patch has been dropped and tracker may be used as an equivalent fast search capability.

So tracker may be forced into Ubuntu Budgie one way or another.


Can't complete dropbox installation from behind proxy

sudo https_proxy="https://username:password@your_proxy:proxy_port" dropbox start -i

You have to run the deamon as root, and thus, you have to configure the proxy as root. Setting the httpS_proxy root env variable on invocation should be enough.


Can I try out XMir/Mir on a 13.10 startup disk?

Yes you can, its just a package install and a restart of lightdm:-

https://wiki.ubuntu.com/Mir/Installing

This is only for the Gallium open driver though, if you want to try nVidia binary driver that a different ball game.


Your current edits to /etc/sudoers effectively let user1, user2, user3, and reporter perform any action as root (since running su lets you become root)! You almost certainly do not want this. And this doesn't help your current problem at all, because you don't want those users to run something with an alternate identity, you want root to run something with an alternate identity. Before proceeding, I recommend getting rid of those lines from /etc/sudoers (edit it with visudo of course) unless you're absolutely sure that's what you want.

If you're a non-root user and you run this, you will always be asked for a password:

su reporter -c "cd /path/to/directorywithscript && bash runwebserver.sh >> /dev/null 2>&1&"

But when root runs that, it should simply succeed (assuming it worked before on Oracle Enterprise Server and the only relevant difference is that root login is disabled on Ubuntu).

When you put that line in rc.local, in any GNU/Linux distribution, including Ubuntu, it is run as root. It should just work. When you run it from the command-line, it will not work. But in rc.local, it should just work.

If you want to test it from the command-line, give yourself a root shell of the kind pretty similar to rc.local's environment:

sudo -i

(This simulates an initial root login shell. Normally, for a root shell, use sudo -s. And of course, to run a command ... with sudo, just use sudo ....)

su -c and sudo take different syntax, so if you did want to make that command use sudo instead of su, you'd have to make additional changes. The easiest way is probably:

sudo -u reporter bash -c "cd /path/to/directorywithscript && ./runwebserver.sh >> /dev/null 2>&1&"

However, I emphasize that you do not need to convert su commands to sudo for them to run properly out of rc.local.

In Ubuntu, unlike Oracle Enterprise Server, logging in as root is disabled by default (and you almost certainly shouldn't enable it). But su still works when run by root. su also works for a non-root user changing identity to another non-root user.

If you have this line in rc.local and it's not working, the reason isn't issues of sudo vs. su. In that case, something else is going wrong. For us to troubleshoot it, you'd have to provide the contents of runwebserver.sh.

Finally, please note that bash runwebserver.sh >> /dev/null 2>&1& is rather inelegant. It's simpler to understand (and, much less importantly, looks nicer) to use bash runwebserver.sh &>> /dev/null. You said this runs last in rc.local, so you don't have to use & to background it.

However, you should consider if you really want to suppress standard error as well as standard output (as you're currently doing). Presumably if something is written to standard error then it's either important or can be suppressed by altering your web server's verbosity settings.


Did you try Ubuntu boot repair? It is the easiest method to fix grub issues. The automatic fix usually does a very good job. All the instructions you need are in the linked page. I believe it also comes bundled in with Ubuntu 12.10 live CD.


Your custom content indeed goes to /var/www - where you can edit files, move them around, etc.

However, PHP (and other) applications from the package repositories may install their internal libraries to /usr/share/packagename and /var/lib/packagename to better fit in with other (non-web) applications. See this list of MediaWiki package contents.

Also, packages may publish their HTML (and other) documentation on your local webserver if you are running one. Apache 2's default configuration on Ubuntu allows access to system documentation from localhost under the /doc directory. However, this is another topic.


Ubuntu 18.10 does not start with Nvidia drivers

Why do people troll so much? What he's asking IS clear. His pc doesn't boot with Nvidia cards and he's wondering how to get it to boot with those cards. Stackoverflow and askUbuntu have so many people who thumbs down for no reason it's upsetting.

Unfortunately, I have the same problem you have. Don't know why it's happening. I upgraded from 18.04 to see if it'd help my hdmi sound work but it didn't. Now I have this Nvidia graphics card issue. If anyone has a solution help would be much appreciated!

EDIT:
The answer from MoussierElPatate on this link worked like a charm.
Ubuntu 18.10: Installing nvidia drivers leads to black screen after GRUB


The download speed of apt-get update progressively becomes slow

Try apt-fast

  Apt-fast is a shell script wrapper for “apt-get” and “aptitude” that uses the power of either axel or aria 2 download managers to accelerate the download process. It improves download performance by downloading packages simultaneously in parallel with multiple packages per connection.

Here you can find how to install and use it.


Wifi not working after upgrading from 12.04 to 13.10

I had same issue and it became to work after this: go to Settings -> Software & Updates -> Additional Drivers and turn off Wireless LAN Controller (select Do Not Use Device -> Apply)  and then turn on it again. During this process I was connected to internet via ethernet wire


E: Type 'echo' is not known mono-xmarin.list issue

I see what happened.  The echo line somehow was pasted directly into your list file.  Copy and paste the following to a terminal window to correct it.

sudo rm -f /etc/apt/sources.list.d/mono-xamarin.list && echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list

Then run sudo apt-get update.


Not recognizing TouchPad, USB, Wifi, or Ethernet on 13.04

I seem to have a similar if not the same problem on a Dell Latitude E5510. I did install from a USB flash drive created from the .ISO file using Unetbootin.

When I created an install USB drive using Unetbootin and then proceeded to use it to install Ubuntu 13.04 I encountered the same problem e.g. no mouse, trackpad, etc. It appears that Unetbootin can't handle something in the Ubuntu 13.04 .ISO.

When I recreated the install USB drive using the default "Startup Disk Creator" program and re-installed Ubuntu 13.04, I ended up with a fully functional system.


how to install libsm6:i386 on 14.04 LTS 64bit?

You could try enabling the i386 architecture:

sodu dpkg --add-architecture i386

Then update/upgrade packages:

sudo apt-get update
sudo apt-get dist-upgrade

and try to install libsm again.


Fluxbox - How to Configure Dual Monitors?

What VGA do you use? If Nvidia, nvidia has own video configuration called nvidia-settings.


This works for me on HP Envy 14 running 11.10, from http://linuxenvy.blogspot.com/2011/09/ive-been-being-lazy.html?showComment=1315427419402#c4396376300869253470:

  I put a script in my /usr/lib/pm-utils/sleep.d which switches the discrete gpu ON when suspending and turns it back OFF (if it was OFF when suspending). Now my power consumption is the same before and after suspend. Just like when disabling the discrete gpu in bios. I first tried putting the script in /etc/pm/sleep.d, that didn't execute on my system (Ubuntu 11.04/lenvyx 64-bit + ugr). Not sure where to put it on other distros.
  You can get the script here if interested http://dl.dropbox.com/u/5227387/09_toggle_discrete_gpu, use at your own risk.

After copying the script to /usr/lib/pm-utils/sleep.d, make it executable:

sudo chmod +x /usr/lib/pm-utils/sleep.d/09_toggle_discrete_gpu

In case the DropBox link disappears, here is the code in 09_toggle_discrete_gpu:

#!/bin/sh
#Script to switch on discrete graphics at suspend to avoid suspend bug on ENVY 14,
#causing increased power consumption after suspend.
#Author Tinux, line 11-39 stolen almost directly from RM's "switch_between_cards.sh"
#from at http://asusm51ta-with-linux.blogspot.com/
#DISCLAIMER: I only tested this on my own system and I take no responsibility for any
#harm it might cause to your hardware or software

. "${PM_FUNCTIONS}"

suspend_nm()
{
    pci_integrated=$(lspci | grep VGA | sed -n '1p' | cut -f 1 -d " ")
    pci_discrete=$(lspci | grep VGA | sed -n '2p' | cut -f 1 -d " ")

    integrated=$(cat /sys/kernel/debug/vgaswitcheroo/switch | grep $pci_integrated | grep -o -P ':.:...:')
    discrete=$(cat /sys/kernel/debug/vgaswitcheroo/switch | grep $pci_discrete | grep -o -P ':.:...:')

    if [ "$integrated" = ":+:Pwr:" ]
    then
     integrated_condition=1
    elif [ "$integrated" = ": :Pwr:" ]
    then
     integrated_condition=1
    elif [ "$integrated" = ": :Off:" ]
    then
     integrated_condition=0
    fi

    if [ "$discrete" = ":+:Pwr:" ]
    then
     discrete_condition=1
    elif [ "$discrete" = ": :Pwr:" ]
    then
     discrete_condition=1
    elif [ "$discrete" = ": :Off:" ]
    then
     discrete_condition=0
    fi

    #Switch ON discrete graphics
    if [ $discrete_condition = 0 ]
    then
        echo ON >  /sys/kernel/debug/vgaswitcheroo/switch
    fi

    echo $discrete_condition > /tmp/condition

}

resume_nm()
{
    #Swtich OFF discrete graphics
    if [ -e /tmp/condition ]
    then
        discrete_condition=`cat /tmp/condition`
        rm /tmp/condition
    fi

    if [ $discrete_condition = 0 ]
    then
        echo OFF > /sys/kernel/debug/vgaswitcheroo/switch
    fi
}

case "$1" in
    hibernate|suspend)
        suspend_nm
        ;;
    thaw|resume)
        resume_nm
        ;;
    *) exit $NA
        ;;
esac


Talk pages (or feedback forms) at Ubuntu wikis

The Ubuntu Documentation team uses the Ubuntu-doc mailing list and the IRC channel #ubuntu-doc on irc.freenode.net to communicate and coordinate where necessary. More information is laid out on the contribute page for the documentation team.


Manually search for the 0010-r8101-1.033.00.tar.bz2 archive (LINUX driver for kernel up to 4.10) and drag this archive's icon from the file manager into the terminal to show the full path to it. The full path to 0010-r8101-1.033.00.tar.bz2 is everything in the path except for 0010-r8101-1.033.00.tar.bz2 itself which is the archive's correct name.
Change directories using cd to the full path that you previously noted and run this command:
tar vjxf 0010-r8101-1.033.00.tar.bz2 # the archive's correct name is 0010-r8101-1.033.00.tar.bz2
When you have changed directories using cd to the directory containing 0010-r8101-1.033.00.tar.bz2 you can check that you are in the correct directory by running ls. The results of ls should show that 0010-r8101-1.033.00.tar.bz2 is contained in the current working directory, so the command tar vjxf 0010-r8101-1.033.00.tar.bz2 will be successful since 0010-r8101-1.033.00.tar.bz2 is accessible from the current working directory.
When you extract the contents of 0010-r8101-1.033.00.tar.bz2 it extracts them to a directory named r8101-1.033.00 which contains instructions for the next steps in the readme file.


Launch a
sudo find /usr/share/ -name Iterator  -type d | grep File/Iterator

If you have no results, the packages is missing, reinstall with

pear install phpunit/File_Iterator

If still does not work, try reinstall phpunit

pear install --force --alldeps phpunit/phpunit


Keyboard, touchpad, mouse not working properly

I am answering my own question in the hopes that this would help others. Note that upgrading to a newer version or changing distro is NEVER a fix to problems like this. However, I cannot have my work laptop not work. So after 3 days of not being able to find a fix for the problem above, I had no choice. Desperate times call for desperate measures.

Found similar situations to my problem here on AskUbuntu but not enough to fix the problem. On IRC #ubuntu, the people were not familiar with the issue, so again, I got no  fix. Search about the topic on the Internet didn't improve my situation although I found several leads, it still did not fix the issue.

Hence my only options were to re-install Natty Narwhal from scratch, which I did not want to do in the first place. My second option was to upgrade to Oneiric (using the network upgrade so all my personal data are retained). I did the latter and now my keyboard and wireless mouse is working without a hitch. However, the touchpad was still dead. The weird thing is that the touchpad works on Guest account but not on my regular user account. I created a temporary user to see if it will work, but no, touchpad is still dead in the water.

An answer here fixed the problem: Touchpad not working on Dell XPS L501x

The drawback is that on the next boot, the touchpad will, again, fail to work.

To fix this I placed the commands below in /etc/rc.local

modprobe -r psmouse
modprobe psmouse proto=imps

This works on every boot so far.

If anybody knows how to properly fix this issue please update this post.


how to access my Android phone from my terminal?

Android devices usually uses the Media Transfer Protocol (MTP) when connecting via the USB. This protocol works differently than the traditional USB.

Simply put, this is a way to ensure that the phone does not share too much data with the computer. The computer makes a query, and the phone answers it. The phone may decide to share the file or ignore  the query. Similarly, when the computer deletes a file, the phone has the ability to decide whether to actually delete the file or not.

Okay, enough introduction. To access a device connected via MTP, you need the information about it's #Bus and #Dev. To do so, you can run the following command.

usb-devices

This will provide you with a list of connected usb-devices. You need to find your device from this list. It can be a bit tiring, so you can search for the device with the available Manufacturer option. Simply use the following command.

usb-devices  | grep "Manufacturer=OnePlus" -B 3

This will provide you with 4 lines of information, where the firs line is as follows.

T:  Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 13 Spd=480 MxCh= 0

As you can see here, the associated Bus is 02, and Dev is 13.

Now change your directory to /run/user/1000/gvfs/ and see the list of folders there.

/run/user/1000/gvfs/
ls

You will find the associated MTP device with the #Bus and #Dev in the list. For example, mine was mtp:host=%5Busb%3A002%2C013%5D. Now simply change your directory using the following command.

cd mtp\:host\=%5Busb%3A002%2C013%5D/

Voila!
You are inside the file storage!


Error: connect ECONNREFUSED 127.0.0.1:3306

The reason for this is that you cannot connect to MySQL with the root account anymore. This rule was changed — and enforced — within MySQL starting a few years ago. While it is possible to update the configuration to allow it, it is strongly discouraged even for development environments.
Instead, if you need the application to have complete control over a database, you can create an account and give it full control like this:
CREATE USER 'app_name'@'localhost' IDENTIFIED WITH mysql_native_password BY 'superSecretPassword!123';
GRANT ALL ON `database`.* TO 'app_name'@'localhost';

In the event you want the application to have even more control, you can allow it access to everything, including the ability to create new accounts, like this:
GRANT ALL ON *.* TO 'app_name'@'localhost' WITH GRANT OPTION;


How to find the directories with or condition

Try this:
find . \( -name "*java*" -o -name "*JDK*" \) -print


Hide windows of applications, password to make them visible again

An edited version of this script will (completely) hide/show interfaces (windows) of any application, listed in the head section of the script (toggle).

It has a "mild" password protection, since the password is stored inside the script. The key combination to run the script will be another barrier that will prevent access too easily. That will probably be sufficient in the situation you mention, but you'll have to decide.

How to use

The script uses both xdotool and wmctrl:

sudo apt-get install xdotool wmctrl

Then simply copy the script below into an empty file, save it as password_app.py, change if you want the current password "Monkey" in the line:

if passw == "Monkey":

In the head section of the script, add applications you need/want to hide the interface from. As an example, I set:

applications = ["gedit", "thunderbird"]

Test-run it by the command:

python3 /path/to/password_app.py

You need the password for both hiding and showing your interface:
If all works fine, add it to a shortcut key combination: Choose: System Settings > "Keyboard" > "Shortcuts" > "Custom Shortcuts". Click the "+" and add the command:

python3 /path/to/password_app.py

The script

#!/usr/bin/env python3
import subprocess
import getpass
import os
import time

#---
applications = ["gedit", "thunderbird"]
#---

get = lambda cmd: subprocess.check_output(["/bin/bash", "-c", cmd]).decode("utf-8").strip()

def toggle():
    windowlist = os.environ["HOME"]+"/"+".windowlist.txt"
    user = getpass.getuser()
    wlist = [l for l in get("wmctrl -lp").splitlines()]
    procs = sum([[p.split()[0] for p in get("ps -u "+user).splitlines() if app in p] for app in applications], [])
    matches = sum([[l.split()[0] for l in wlist if p in l] for p in procs], [])
    if len(matches) != 0:
        with open(windowlist, "a+") as out:
            for match in matches:
                out.write(match+"\n")
                subprocess.Popen(["/bin/bash", "-c", "xdotool windowunmap "+match])
    else:
        try:
            with open(windowlist) as r:
                for l in r.readlines():
                    subprocess.Popen(["/bin/bash", "-c", "xdotool windowmap "+l])
            os.remove(windowlist)
        except FileNotFoundError:
            pass

try:
    cmd = "zenity --entry --title='Restricted!' --text='Enter your _password:'"
    passw = subprocess.check_output(["/bin/bash", "-c", cmd]).decode("utf-8").strip()
    if passw == "Monkey":
        time.sleep(1)
        toggle()
except subprocess.CalledProcessError:
    pass

Notes

This does not prevent users from opening new instances of the applications, it hides the current ones. All can be done however with additional coding :).
If another user might open a new instance of a listed application, running the script will first add those windows to the hidden windows. All windows will then show up on the next run of the script.


Ubuntu & Mac OSX (install Ubuntu Touch to tablet, from Mac platform)

You can install Ubuntu on an external HDD by going into the install, selecting "Something Else" choosing /dev/sdb or whatever your HDD is mounted as in the drop down menu, making one big partition as EXT4 , then choosing "/" in the mount point drop down menu. Instructions for Ubuntu on the Nexus are on here; http://developer.ubuntu.com/start/ubuntu-for-devices/installing-ubuntu-for-devices/


A bit late response but this is what works for me on Ubuntu 16.04

Modifiy sudoers. You will need to go to root mode.

sudo visudo -f /etc/sudoers.d/override

Inside you will make an exception for your script:

username ALL : NOPASSWD: /path/to/script

Then make a script for nethogs and other apps that need sudo permission separately:

!#bin/bash
sudo nethogs

As far as I know Htop doesn't need sudo permissions so you can proceed without doing this for Htop.

Go to dash and type in startup applications, click on it, and click add new. Under the command of the startup app type in:

gnome-terminal -e "sudo /path/to/script"

It will open what is inside the script and needs sudo permissions without asking for a password. You will also want to add in which profile it should open so you can edit the terminal to stay open after executing, for apps like Htop and Nethogs.

gnome-terminal -e "sudo /path/to/script" --window-with-profile=nethogs

Then make the same startup app for Htop.

gnome-terminal -e "htop" --window-with-profile=htop

To edit the terminal, click on it, go to preferences, and then to profiles, add new and name it, click edit and then you'll know what to do.


14.04 Asus g56jr Fn + Brightness control

I have an ASUS G56JK and had the same problem.
It is now fixed for me.

In the terminal:

sudo gedit /etc/default/grub

Change

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

to

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi="

Save, then

sudo update-grub

Restart computer.

The function keys (fn+F5/F6) should now be active.


Dual Boot Ubuntu - Windows 10 | Can't switch back to windows

Ubuntu is the default OS and is installed in Legacy.

That's the problem. With Windows (almost certainly) installed in EFI/UEFI mode and Ubuntu installed in BIOS/CSM/legacy mode, there's no way for the BIOS-mode GRUB to start the EFI-mode Windows. If you followed instructions to activate BIOS/CSM/legacy support, those instructions were wrong. (There are cases when this is appropriate, but obviously not in your case.)

  Change Legacy to UEFI.

That's half of the solution. You'll also need to install an EFI-mode boot loader for Linux. I'll get to that shortly. In the meantime, you must find a way to access either your firmware setup utility or your computer's built-in boot manager. I realize you say you can't access your "BIOS" (you mean the firmware setup utility; you don't have a BIOS), but you should focus on overcoming that problem. Some computers are very sensitive about the timing of keys to get into the firmware setup utility or boot manager, so you should try Esc, Del, Enter, and every function key multiple times. You might also contact Acer's technical support or post on an Acer-specific forum for help on this score. As a last-ditch effort, you can unplug your hard disk from the computer and it will probably boot into the setup utility.

If you can get into the firmware setup utility:

Disable the CSM/legacy support.
Disable any "fast start" option or anything with a similar name. This feature can be one reason why keypresses won't get you into the setup utility or boot manager, so disabling it can help.
Look for other options that might affect your ability to boot into the setup utility. For instance, if one is present, you might want to activate an option to do a full USB initialization, which may get the keyboard working during boot.

The built-in boot manager lets you select between OSes, and may also have an option to start the setup utility. It should let you select between Windows and a BIOS-mode boot option that will launch GRUB and Ubuntu. You can use this to get into Windows. If you plug in an EFI-bootable USB flash drive, you should be able to boot it from this menu, too. This brings us to the next point....

Once you're able to control your boot process, you must install an EFI-mode Linux boot loader. There are a number of ways you can do this:

Boot the Ubuntu installer in EFI mode and re-install Ubuntu. Since you've not used it for long, this may be an acceptable solution. You can verify an EFI-mode boot by looking for the /sys/firmware/efi directory. If it's present, you've booted in EFI mode; if it's absent, you've booted in BIOS mode.
Boot the Ubuntu installer in EFI mode and run the Boot Repair tool. This will normally set up an EFI-mode version of GRUB.
Disable Secure Boot, download a USB flash drive or CD-R version of my rEFInd boot manager, and prepare a boot medium with it. You should then be able to boot rEFInd, which should enable you to boot either Windows or Ubuntu. If that works, boot to Ubuntu and install the rEFInd PPA or Debian package. This will give you rEFInd, rather than GRUB, as your primary boot tool. You may be able to re-enable Secure Boot at this point, but that's optional.


Can I install AutoCad civil 3d through wine in my ubuntu 14.04.2?

Yes, you can definitely TRY to install it. Sometimes it may even install completely. But it never works. Most times it won't even start at all. For more details on actual trails, please visit winehq.org . I have tried to install many Autodesk products in Ubuntu over the years. Especially Autocad (many versions). Sadly, Autocad will never work in linux, because it heavily relies on Windows Registry for keeping values of its' sysvars (system variables).
There is some hope though: Autocad runs on MacOS, which is a BSD-based OS. BSD and linux are like cousins in the OS world. Autocad 360 runs on Android. And Android is linux!! Maybe in the next decade, hopefully, will see Autocad running natively on linux desktop. Somehow. Someday.


This ppa will work: https://launchpad.net/~r5u87x-loader/+archive/ppa

Enter, and find green ppa text. and do what it say.


Write application indicator with no icon

After some code tries, I couldn't find a way either and reading the docs, I don't think it's possible. Here's something interesting from the label property:

  The label will not be shown unless there is an icon as well.

So, if there is a way to disable the icon, it won't even show the label.


There are several ways to achieve this and a combination of these might even be better.

Instead of the vanilla kernel, you might want to install a virtualization guest kernel, e.g. linux-image-virtual
Instead of a 3d-accelerated desktop, you might want to try a classic one, like windowmaker or openbox.
You might start with a text mode install and only add the minimum required packages.
Your mileage may drop severely if you run a 64-bit guest in a 32-bit host, however running a 32-bit guest in a 64-bit host might work better than 64/64.
You might want to try a different virtualization software VirtualBox, VirtualPC, ...
You might check your BIOS if virtualization support is enabled at all.
Have a look at coLinux or andlinux, these do not virtualize at all and run linux as a user mode application.
You might want to install the Windows version of Player/Stage after all.


Add a newline at end of clipboard contents

The command:

printf "$(xclip -o clipboard)\n"| xclip -selection c

extends the content of the clipboard into a new string, adding a newline.

Subsequently, the edited string is copied into the clipboard (again) by:

xclip -selection c


How to install Ruby Ripper, or another app that does MP3s through a GUI

Simplest method.

UPDATED: 2016-Aug

Add the Get-Debian 'Apps' archive, its key, and then standard install:

sudo sh -c 'echo "deb http://archive.getdeb.net/ubuntu $(lsb_release -cs)-getdeb apps" > /etc/apt/sources.list.d/getdeb.list'
wget -q -O- http://archive.getdeb.net/getdeb-archive.key | sudo apt-key add -
sudo apt-get update

sudo apt-get install rubyripper

Tested for 16.04 LTS (Xenial), 14.04 LTS (Trusty), and 13.10 (Saucy).

Minor issue (11-Aug-2016): Bug related to non-ASCII characters in track (file)names. eg. 'é', etc.

Known regression bug (in RubyRipper 0.6.2), see: https://github.com/momodalo/rubyripper/issues/449). Should be address in (upcoming) RubyRipper 0.7.0 .


Unity Not loading after installing Nvidia proprietary drivers

Run this command in a terminal:

sudo apt-get autoremove fglrx --purge


New (used) monitor -- resolutions not detected and errors when adding them manually

It turns out that this is not an ubuntu problem as such.  I needed an active adapter to translate the DVI signal to the mini-dp signal.  Buying this thing worked for me:
http://smile.amazon.com/gp/product/B004I6L6DW?psc=1&redirect=true&ref_=oh_aui_detailpage_o00_s00


Firefox address bar doesn't autocomplete

The bar takes a while to load, it's all based on the slow file based sql. The more history, bookmarks and other items you have, the longer it takes to load. Try clearing the browser history and see if that helps.

There's also an outstanding bug where the bar gets confused and doesn't ever show the suggestions, but that doesn't sound like what you're describing.


Error's with dpkg when trying to reinstall chrome

After much googling, I was unable to find good directions for my specific problem.  Because the Error did not point to a specific package that was causing problems, I was unsure how to correct the problem.  After playing with some dpkg commands I received an error that pointed to the libept1.4.12:amd64 from there I followed the oft given instructions for dpkg errors:

gksudo gedit /var/lib/dpkg/status
Search for the offending package (libept1.4.12) by name and remove its entry.
Save the file and exit Gedit.
run sudo apt-get -f install.
Continue on if there are no errors.

Now its fixed. I can now update, remove and install chrome, and even download new software huzzah! If you have a similar problem with dpkg but cannot figure out the package causing the problems, I recommend using dpkg commands from the dpkg main page until you figure out the problem package...


The error you are seeing indicates that your key is expired.

You can list all keys on your system with the command sudo apt-key list if you wish to narrow the output you can always pipe the output through grep expired to obtain just a list of the expired keys.

For each expired key, issue the command sudo apt-key adv --keyserver keys.gnupg.net --recv-keys [KEY] where [KEY] is related to the number in question or in this case:

8C718D3B5072E1F5

sudo apt-key adv --keyserver keys.gnupg.net --recv-keys 8C718D3B5072E1F5

keys.gnupg.net refers to the SKS keyserver pool, a number of PGP keyservers run by organisations and volunteers.

You can also search for the key via web interface at keys.gnupg.net

where you'll get a page like this:

Entering the key from the EXPKEYSIG preceded by 0x in the search box and searching should return results similar to this:

To the best of my knowledge the 8 hex digits is the short version (public key) you need to obtain an updated key with the command

sudo apt-key adv --keyserver keys.gnupg.net --recv-keys 5072E1F5

Sources:

https://linux-audit.com/how-to-solve-an-expired-key-keyexpired-with-apt/
https://stackoverflow.com/questions/44768657/cannot-add-keys-from-keys-gnupg-net


GRUB installation Windows and Ubuntu 13.04

You should install grub to /dev/sdb and make that the default disk to boot from in BIOS. Grub will usually pick up your Windows installations and offer to boot that instead of Linux during system boot.

This has the advantage, that grub does not touch Microsoft's boot loader and you can always revert the boot disk entry in BIOS.


Creating shortcut to run text file in xterm

Keyboard shortcuts are commands but they belong to daemons, such as gnome-settings-daemon or unity-settings-daemon.  In case of X-server in general, regardless of which GUI you use, shortcuts may be altered with xbindkeys app.

However, in your specific case, what you really need to make xterm open and run a script is the following:

Go to Settings -> Keyboard -> Shortcuts -> Custom;
Add a new shorcut; tell it to run xterm with full path to the script , e.g., xterm -hold -e /home/user/bin/myScript.sh
Assign keypress to it.

Note: script must be made executable with chmod 755 /path/to/script.sh

Here's my example:

Script in /home/serg/testScript.sh

#!/bin/bash
printf "This was a triumph\nI'm making a note here, huge success"
df
date

Shortcut setup

Output

Check out my other answers that assign scripts to shortcuts:

Program to take 2/3 and 1/3 of screen?
Terminal Short-cut ctrl + alt + T, 2 terminals, different size
How can I automatically add workspaces, only if I need them?


Running Ubuntu in Virtual Box-Not enough RAM

I would assume you mean the VM didn't have enough RAM. I doubt that even the most bling crazed Ubuntu devs have loaded down the flagship product to the point it can't run in 8 GiB. Presuming that, just open VirtualBox and create a new VM. Pay attention to the dialogues. At one point you are asked how much RAM to give it. Give it more until it works. I would think 2 GiB should be sufficient, but try and err and try again until it works.

Added by edit: Heynnema's comment wasn't there when I started. I type slow. It looks like an answer to me. He should get the credit.


Is there anyway to show VirtualMachine after start it with VBoxHeadless?

We can not change the video output from headless to local screen after starting a Virtual Box VM in headless mode. But if not configured otherwise there will be an RDP server started automatically at default port 3389 in a headless machine. By this we will have access to that machine's GUI through any RDP-viewer.

In case SSH did not work it is very likely that your RDP server may be inaccessible too. In this case it is not recommended to poweroff or kill a running VM as this may lead to data loss.

In this case a quite convenient and secure workaround is to terminate the headless machine with saving the machine's state. This can also be done from the command line by:

VBoxManage controlvm "<Name of Machine>" savestate

After that we will be able to start the machine in non-headless mode at exactly the saved state from the Virtual Box Manager, or again from command line with:

VBoxManage startvm "<Name of Machine>"

Then we can debug the reason for any previously failed access, or safely shut down the machine.


Wireless card Realtek RTL8723AE-BT is not recognized

Realtek is making the official Linux driver available unofficially (via Dropbox)

Support for the RTL8273AE-BT has been added by Realtek in the 92-series driver, version 0006.0514.2012. For unknown reasons, neither the Windows nor Linux drivers are available on their website (yet). But Realtek tech support has been providing a Dropbox link with the source code/firmware tarball which numerous users have reported as working.

Where do I get it? Is it safe?

The driver can be downloaded via this Dropbox link.
I can confirm that this file is what it claims to be, with this content listing, provided it has the following MD5 or SHA1 hashes: (which you can verify with md5sum or sha1sum)

MD5: fd10e9a347c6447f649324d6bdab53de
SHA1: 1ccd6ae73878d8bf65bd7c0384e333b121606230

How do I build and install the driver on Ubuntu?

Open a terminal with Ctrl+Alt+T.
You'll need to install these packages first to build the driver:

sudo apt-get install build-essential linux-headers-generic linux-headers-`uname -r`

Paste the below line to download and extract the driver archive in one single step:

wget -O- http://dl.dropbox.com/u/57056576/DRIVERS/REALTEK/rtl_92ce_92se_92de_8723ae_linux_mac80211_0006.0514.2012.tar.gz | tar -xz

Change to the extracted driver's directory, build and install the driver:

cd rtl_92ce_92se_92de_8723ae_linux_mac80211_0006.0514.2012
make
sudo make install

Test the driver by loading it (this is a one-time step; after you reboot once, the driver should automatically load on every boot):

sudo modprobe rtl8723e


How to fix problems with rsync backup on USB drive?

It could be a problem with permissions, which cannot be preserved if different from the preset value, when the FAT32 partition was mounted. There is also a 4 GiB maximum file size in FAT32.

So I think that it helps to use an ext filesystem-format instead of FAT32, and I suggest that you use the ext4 file system.

If you use this drive only for backup and maybe an occasional restore, fine.

If you intend to run it a lot, for example boot from it, your should consider the wear aspect and use the mount option noatime and to remove the journaling. This is good to reduce wear, but makes it harder to recover from errors, so I think that you should think twice before doing these tweaks.

If there are still problems, you might consider using tar (with sudo), which might be more reliable if there are synchronizing errors with rsync. Tar writes to one single file.


You should start a boot fix process in windows 7 installation repair section

1- On first screen of boot on windows 7 click repair

2- Start a auto repair process , it most of the times find correct windows installation and works ok , but if it failed to repair it go to step 3

3- Open a recovery console and run

[drive letter]:\fixboot
[drive letter]:\fixmbr
[drive letter]:\Bootcfg /rebuild

it should correct the problem.


output of sudo nvidia-xconfig is different

XFree86 uses a configuration file called XF86Config for its initial setup. This configuration file is searched for in the following places when the server is started as a normal user:

...
/etc/X11/$XF86CONFIG
/usr/X11R6/etc/X11/$XF86CONFIG
/etc/X11/XF86Config-4
/etc/X11/XF86Config
...

Source


Why does discord not update through the package manager

Your output of apt-cache policy discord indicates that you have installed Discord using local deb-file. The system is not configured to have special sources.list for Discord, moreover Discord does not provide it.
So if you want automatic updates of Discord you have two options:

install Discord from FlatPak with
sudo apt install flatpak
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install flathub com.discordapp.Discord

install Discord from Snap with
snap install discord

But from my personal experience I can say that Discord releases its updates not too frequent, so it is acceptable to install it from downloaded deb-file. I'm doing so and happy with this. So you can leave things as they now is.


Disable malfunctioning touchscreen at startup

You can command any command you wich by folowing this:
How do I start applications automatically on login?

In short:

Open  "Startup Applications"
Now click on Add and give in the command to run the application:

 xinput disable 'device name'

This will disable your touchscreen at startup, but maybe you can also explain the problem of your malfunctioning touchscreen and this problem could be fixed?


New Software on Ubuntu Hardy Heron(8.04)

Ubuntu 8.04 is not supported by Ubuntu since May 12, 2011.  The Hardy repositories were removed, so that means you can only install software through .deb packages.

If you have hardware restrictions, I suggest downloading Lubuntu, which is an official Ubuntu derivative that requires less hardware restrictions.


How can I fix broken sudo - sudo: parse error in /etc/sudoers near line 23?

Fixing this is dead simple, and it is answered elsewhere on askubuntu.

Short answer, use:

pkexec editor_of_choice


Installing Ubuntu 19.10 on 2nd drive modifies 1st drive. How to recover?

See launchpad bugs 1396379, 1779488, and 1173457 (and add yourself to the "does this affect me?" list for each.  Basically, the Ubuntu installer picks the first EFI partition it sees (on sda) to install the UEFI Ubuntu bootloaders.

Since you have an EFI partition already on the second disk, you can simply copy all the files from the first disk's EFI to the second, and you will have a working boot on the second disk.

You can remove UEFI boot entries with efibootmgr, so you can remove Ubuntu from the list.  Then you can remove the excess ubuntu directory in the EFI ( .../EFI/ubuntu). Finally, probably the installer put the ubuntu bootloader in .../EFI/BOOT/bootx64.efi, and renamed the (Windows) original default bootloader to a backup -- rename the backup to bootx64.efi.


Banshee displayed in song menu but does not show currently playing song

Go to preferences ->  Extensions and enable Sound menu integration for Banshee


How do I set kile as the default application for .tex files?

The answer given by Yusuf is correct but in my case it was incomplete. Since I had no Kile.desktop file in my /usr/share/applications (the .desktop association is hidden, as Cumulus007 points out), I had to create it and simply writing Exec=kile %F isn't enough. This is what I put inside the Kile.desktop file I created using Yusuf's instructions:

[Desktop Entry]
Name=Kile
Comment=LaTeX front end
Exec=kile %f
Terminal=false
Icon=/usr/share/pixmaps/kile.xpm
Type=Application
Categories=Office;Database
MimeType=text/x-bibtex

This finally allowed me to select Kile as the default application to open .tex files.


My guess is that you are falling into an old trap. According to several posts e.g. one by codeghar sudo service networking restart has long been deprecated

  because it may not enable again some interfaces

Jorge Castro gave this answer

sudo ifdown --exclude=lo -a && sudo ifup --exclude=lo -a

So replace networking restart with ifdown... && ifup....

Just as an aside: ifconfig has also been deprecated for a long time - use ip from the package iproute2 (also see my question/answer)


How can I get icon names sorted in GNOME Desktop on Ubuntu 19.04?

Finally I've found an answer to this! It'e extremely annoying and I don't understand why this question seems to be so uncommon (I didn't find anyone asking this, lt alone commenting on this!).

The problem is with the Desktop Icons Extension. It does provide icons in the desktop, but in a weird way that its most annoying.

The solution? UNINSTALL IT FIRST and then install Desktop Icons NG (DING) by rastersoft.

That did solved my issue.


How can I use both Sogou Pinyin and Dead Keys on Ubuntu or Kylin?

Sogou's settings option, accessed from the drop-down keyboard menu at the top of the screen, supersedes the old keyboard settings panel. Adding English International With Dead Keys from this menu (and NOT from the standard Ubuntu Keyboard Settings menu) sorts the problem out.

The Chinese command to access this option on the menu is 配置.


How do I copy data from two computers connected with cross-over cable?

10.04 hits end of life on the may 9th 2013
i do not suggest upgrading to a newer ubuntu on a Pentium 4 with integrated graphics (you will have a bad time)
I would suggest 32bit xubuntu or lubuntu as a clean install for a system that old

As for using a crossover cable (if you have no networking knowledge use a flash drive/cd/dvd)
What I would do is install openssh-server (look in the software center) on one of the systems
then you will need to set the IP Address to static ones on both systems (or connect via router)
eg: 172.0.0.1 and 172.0.0.2, I assume you have some networking knowledge to intend to use a crossover cable
and on the system that you did not install openssh-server on run scp -r user@172.0.0.2:~/Pictures ~/
That will copy everything in your Pictures folder from the other system to the one you run the command on
I assumed you made the address on the system with openssh-server on it 172.0.0.2
If you are using a router run ifconfig to get your address
eth=hardware and wlan=wireless you want the "inet addr"

As for the mouse thing, i don't have enough info to say anything useful about that.
for example is it a trackpad mouse or a usb or PS/2 Mouse and the output of lsusb


Windows automatically change to Ubuntu while lock screen

The only way I can imagine this can have happened is if Ubuntu is set to boot first, and Windows for some reason decided to reboot. If this is the case, a simple reboot, and selecting Windows in the boot loader should do the trick.


How to send MIDI raw data to a MIDI device node?

The VirMIDI driver is designed as an interface between programs that access RawMIDI devices (actually, OSS devices /dev/midi*) and ALSA sequencer clients.
Everything received at the raw MIDI device (hw:1,* or /dev/*) is sent on to the sequencer port.
Everything received at the sequencer port (Virtual Raw MIDI 1-*) is sent on to the raw MIDI device.

To connect multiple raw MIDI devices, you need to go through multiple sequencer ports:

+-------+       +--------+----------------------+
| synth |  <--  | hw:1,0 | Virtual Raw MIDI 1-0 |  <-+
+-------+       +--------+----------------------+    |
                                                     |aconnect
+-----+         +--------+----------------------+    |
| cat |    -->  | hw:1,1 | Virtual Raw MIDI 1-1 |  --+
+-----+         +--------+----------------------+


@Rinzwind Has answered me. The usb mounted was in vfat and It doens't accept symbolic links. So the solution was reformat it to ext4 and now I can create the symbolic links


Ubuntu 16.04LTS extended display not working

The issue was with the nvidia graphics driver. This can be fixed by following the steps below:

Run

sudo apt-get purge ^nvidia

Run

sudo add-apt-repository ppa:graphics-drivers/ppa

Run

sudo apt-get update

Run

sudo apt-get install nvidia-387

For this, check what the latest version is... in my case as of January 2018 it's nvidia-387.

The graphics versions are here on Launchpad.

Reboot and your graphics issue should be fixed.


The error messages indicate that you have not installed the development libraries.

Since chemtool is in the repositories (Universe) you just need to install it via software-center

However - if you do wish to alter the code - then remember to install the dependencies first:

sudo apt-get install build-dep chemtool


Unable to do a full maximize of the Firefox window?

One solution which could be equivated with restarting Firefox/FF (debatable) is:

If you have one FF window open then do the following:

Open new window ctrl+n
Switch to previous window
Close the window ctrl+shift+w
Reopen the window ctrl+shift+n
Close the new window (optional)

If you have more than one window open then only do 3 and 4 of the above.

Basically opening a new window instance fixes the problem.


Ubuntu GNOME 16.04 multiple monitor issue

I was able to solve it myself!

I modified the monitors.xml file and change the monitor position manually on the X axis (it was set to 1050, changed it to 1060) and that annoying overlay is now gone.


Can't get bootable usb to show up in bios

According to: New XPS 13 (9370) USB Port question

Your laptop will only boot a live USB plugged into the right hand port.

  The ports on the left support Thunderbolt 3; the port on the right
  does not.  As a result, the left-hand ports may be disabled at boot
  time unless you enable Thunderbolt boot support in the BIOS.  I would
  have thought that option would only affect devices that actually try
  to communicate over the Thunderbolt protocol, but recent threads have
  indicated that this option also affects whether regular USB-type
  devices connected to those ports are visible at boot time.


Can't boot after kernel upgrade to 3.2.0-27 from 0-26 on dual boot

I am currently dealing with the same exact issue. To fix it you are going to HAVE to reinstall Ubuntu. If you don't you will mess up the boot kernels on Windows 7 and Ubuntu and you will have to reinstall Windows 7 and Ubuntu from the ground up. Heed my warning when I tell you this. I followed instructions to fix this online and it ended up deleting all my previous kernels.


How to ignore Ctrl-A when a different escape sequence is already chosen

You can set this up using byobu-config. Just type that in the command line and select "Change escape sequence" and off you go. Admittedly it only allows you to set a Ctrl- sequence.

This does appear to edit ~/.byobu/keybindings for you. I tried editing it by hand and it worked for me. The contents of mine with backtick working is:

source /usr/share/byobu/keybindings/screen-escape-keys
escape ``
register x "`"      #     | Goes with the F12 definition
register x "^A"


Running graphical programs in console mode

You need to start an Xsession for an X program to run.
You can open an Xsession just for your program with xinit, ie to start firefox:

xinit /usr/bin/firefox -- :9

You must use a full binary path and assign a free display server (the -- :9 at the end)

A lot of modern applications may expect some kind a binding to a WM, so this may not work as well as expected.

Also, you can change the new Xsession screen resolution with xrandr.


How can I log into an existing remote session using FreeNX?

You have to use an alternate VNC server. If you are using VNC over an untrusted network (internet) you should tunnel over SSH.

Vino is the default (shared desktop), but x11vncserver or tightvncserver will also work.

For additional information see:

See : https://help.ubuntu.com/community/VNC

https://help.ubuntu.com/community/VNC/Servers


/usr/local is not an area touched by official packages.  If you removed the directory from /usr/local/bin, you likely deleted a locally-compiled or locally-installed Python copy, which won't affect the system /usr/bin/python* binaries.


Could not find required OpenGL entry point 'glGetError' ethier your video card is unsuported or you need to update open GL.

I posted an answer/fix in this thread
Ubuntu 14.04 “could not find required OpenGL entry point 'glGetError'!"

that relates to steam games and the openGL entry point issue.

note to you: use the "/usr/lib/i386-linux-gnu/mesa" instead of the "/usr/lib32/fglrx/"

Also make sure you have the latest mesa drivers installed.


Step 1 :

Add the CUDA 4.0 PPA.
sudo add-apt-repository ppa:aaron-haviland/cuda-4.0

Step 2 :

sudo apt-get update
sudo apt-get upgrade

64-bit :
sudo apt-get install nvidia-cuda-gdb nvidia-cuda-toolkit nvidia-compute-profiler libnpp4 nvidia-cuda-doc libcudart4 libcublas4 libcufft4 libcusparse4 libcurand4 nvidia-current nvidia-opencl-dev nvidia-current-dev nvidia-cuda-dev opencl-headers

32-bit :
sudo apt-get install nvidia-cuda-gdb nvidia-cuda-toolkit nvidia-compute-profiler lib32npp4 nvidia-cuda-doc lib32cudart4 lib32cublas4 lib32cufft4 lib32cusparse4 lib32curand4 nvidia-current nvidia-opencl-dev nvidia-current-dev nvidia-cuda-dev opencl-headers

Step 2a (Optional) :

If you do not have any nVidia driver installed before or you encounter any problem of booting up your system, you need to do the following command. Otherwise, this step is not required at all.

sudo nvidia-xconfig

**This step may not be required.

Step 3 :

Reboot your system.

Step 4 (Optional) :

To install SMPlayer.

sudo apt-get install smplayer smplayer-translations smplayer-themes

Then set it to use "vdpau" at "Output Driver" at "Preference".

Step 5 (Optional) :

Once installed the CUDA Toolkit and nVidia drivers, you can download the sample codes for testing.

sudo apt-get install freeglut3-dev libxi-dev libXmu-dev

wget http://developer.download.nvidia.com/compute/cuda/4_0/sdk/gpucomputingsdk_4.0.17_linux.run

sudo chmod +x gpucomputingsdk_4.0.17_linux.run
./gpucomputingsdk_4.0.17_linux.run

Accept the default settings.

cd NVIDIA_GPU_computing_SDK/C
make

** Please ignore the warning messages for unsupported gcc version. That is no harm at all.

Run the sample codes.

cd NVIDIA_GPU_computing_SDK/C/bin/linux/release
./deviceQuery
./nbody

Info from this site


You can try to run it in WINE. Use WineTricks to download all the dlls and stuff you will need to get it working in WINE.


Are there problems with UEFI when single-booting Ubuntu?

It varies from one computer to another. Some have badly broken EFIs that will only boot the Windows boot loader, for instance. (To be more precise, they'll only boot a file called EFI/Microsoft/Boot/bootmgfw.efi, or sometimes only one with the name that Microsoft gives their boot loader ["Windows Boot Manager" or something like that, IIRC].) Such a problem can often be worked around by renaming GRUB, rEFInd, or whatever you use, but that's an ugly solution! Others have EFIs that work the way they're supposed to work, in which case an Ubuntu-only installation -- or even a Windows/Ubuntu dual-boot -- should go fairly smoothly. The biggest caveat in such cases is that you understand enough about it to not make any dire mistakes. To that end, I strongly recommend that you read the following three pages:

My page on EFI booting on Linux
Adam Williamson's page on EFI booting
The Ubuntu community wiki on the subject

Any one of those will help immensely, and reading the other two will help fill in the gaps.

Based on the sorts of comments and problems I've seen on-line, I'd say that, in addition to buggy EFIs, the biggest problem is that users bring BIOS assumptions to the EFI world. That's why I always squirm a bit when I see somebody refer to a new computer's "BIOS." It doesn't have a BIOS; it's got an EFI, and the fact that the person is referring to it as a BIOS means they're loading up their mental model with BIOS assumptions that do not apply to EFIs.

As to your specific issue, following links, I see you had problems with a Sony VIAO machine. Those problems were likely caused, at least in part, by Sony-specific bugs. Therefore, I recommend you buy another brand of computer. FWIW, I recently bought a Lenovo IdeaPad U530, and its firmware isn't doing anything flaky. It dual-boots between Linux and Windows just fine, although I think I've booted Windows all of once in two months since getting Ubuntu installed. OTOH, I'm the maintainer of rEFInd (which of course I use on this system), so my knowledge of how to set this up is well above average; somebody else might have a much harder time with this exact same computer. ASUS has also been ahead of the game on EFI adoption, although I can't comment on any specific ASUS computer.


How can I stop KDE apps from being shown in the Software Centre?

You cannot, but try Synaptic instead
Most KDE apps are in the official repositories and not in a PPA, so there's no way to prevent them being shown when you browse/search in the Software Centre.
As an alternative, try installing the Synaptic Package Manager instead, and look at the listings under the "Gnome Desktop Environment" sections for a selection of "native" apps:


No internet access after upgrading to lubuntu 21.04

I cannot think of a reason why the ping of an address like 8.8.8.8 would be affected by a dns lookup in a browser or apt, they should not affect the routing.  Can you post the output of your routes and network adapter configs whilst the ping is working and again when it stops?
ifconfig -a
netstat -rnv

that might shed some light on where the problem is.


Share ppp0 internet connection via wireless modem

Without getting into the technicalities of it, you will have to disable the routing and DHCP of your ADSL modem, and make sure the wireless is bridged. So there is work to be done  on the router first. You basically have to turn it into a dumb AP. Once you do that, you can enable DHCP and routing on the ETH0 adapter so that those that connect to the AP can receive an IP and route out the ppp0 interface.  Hope you are comfortable with editing the /etc/* in a CLI based text editor cuz there is not a simple GUI fix for it.


Installation process: Problem with partitions

Do you have a single HDD in your PC? Have you re-sized your Windows partition, and left blank space - for example at the end of the partition - to allow for Ubuntu install?

To partition, you can use something like:

1) EaseUS® Partition Master 9.2.2 Free Edition
or

2) Paragon Partition Manager 2013 Free

You do not need to make any partition, in the blank space, the Ubuntu installer will create all needed partitions for you (when selecting the option to install alongside of Windows).

.. make sure you've used a correct USB tool, like the UNetbootin: so that the bootloader, actually Grub2 (and everything else), will install correctly.

Edit: Prior to partitioning, from within Windows, it may be a good idea to defragment the HDD, using a professional tool, in order arrange the data towards the beginning of the drive and avoid the partitioning tool having to move any files/data. I've been using Raxco PerfectDisk for years - on default settings - and find it pretty effective. It has a 30-day trial.


Sounds like something has corrupted a Grub file, meaning Grub needs to be reinstalled. It's bizarre that the same issue would affect more than one machine, though, as the problem is not very common.
Try this from Terminal:
sudo apt install --reinstall grub
sudo apt install --reinstall grub2-common
sudo apt install --reinstall grub-efi-amd64
sudo apt install --reinstall grub-efi-amd64-bin
sudo apt autoremove
sudo apt install grub-efi-amd64-signed

Once this is done, do a dist-upgrade:
sudo apt update
sudo apt dist-upgrade

This should resolve the issue


do-release-upgrade disables third party software sources. Easy way to re-enable them?

You no longer need to get them disabled. 3 methods got added as of 18.10:

An option to update-manager was added to keep PPAs enabled: AllowThirdParty = yes. Create a file ending in .cfg  in /etc/update-manager/release-upgrades.d/ and add

[Sources]
AllowThirdParty = yes

This will keep all PPA's active.

You can also enable specific PPA's in the same file using

[ThirdPartyMirrors]
{unique_name} = {url}

The value for {url} is the URL of the ppa you want to keep enabled and can be found in /etc/apt/sources.list.d/

There was also a command line method added for both update and release upgrade:

RELEASE_UPGRADER_ALLOW_THIRD_PARTY=1 update-manager -d
RELEASE_UPGRADER_ALLOW_THIRD_PARTY=1 do-release-upgrade -d

That basically is a one time option to keep 3rd party PPA enabled.


It is somewhat well stable and also you can run it without risks in 11.10.

In case something goes wrong, use the command ppa-purge to revert back.


I've also had this happen. One way of resetting eclipse is to press and hold the windows button, to bring up the search screen then release it. Now eclipse gets the proper focus and you can edit again.


How can I make pasting work like yanking?

emacs uses buffer for everything and the things like kill (C-w) - yank (C-y) or copy (M-w) - yank (C-y) are emacs controlled properties (other editors (e.g. vi) support these sort of behaviors too).

But the terminal behaves differently; it runs a shell inside and it does not contain the mentioned concepts. It does have some keyboard shortcuts to perform some defined actions though; Copy-Paste is one of those, you can copy a section of terminal using CTRL+SHIFT+C and paste using CTRL+SHIFT+V.


You have to press the Shift during the boot sequence to get the grub loader menu.
Then you can select the operating system to boot.


How to get my windows docs ; pics, mp3, and docs off an external usb hard drive (sata 3.5 enclosure)

chances are it is the device you are using to link the external to the Ubuntu drive. I had it happen to me when I was trying to get this to work. Check the specs of the thing you are using to link them as I would be willing to bet it would only work windows to windows, mac to mac, windows to mac, or mac to windows. Best of luck


Installing Broadcom B43 Wireless firmware

This is confirmed as working on Ubuntu 14.04 32-bit. The laptop I fixed is 32-bit, and it won't run Ubuntu 14.10.

This should also work for Ubuntu 14.10 though, and for all Broadcom cards that are supported. Almost all Broadcom cards are supported though, so cross your fingers :)

For a fresh installation, run these commands one-by-one in the terminal:

sudo apt-get purge bcmwl-kernel-source
sudo apt-get install linux-firmware-nonfree
sudo apt-get install firmware-b43-installer
sudo modprobe -r b43 && sudo modprobe b43
sudo reboot

You will get no errors this time on startup, and your wireless will work. If it doesn't work, please edit your question to add the results of running some diagnostics:

dmesg | grep -e b43 -e wlan
rfkill list all


Installing Ubuntu from a partition on internal drive

I think it is. You need to treat the partition as if it is a USB drive, so it may be hard to find a program that'll burn the ISO to it. It should work fine if you extract the installer ISO and copy the files to the partition. Make the partition NTFS or FAT32. If you have EFI, then use the BIOS EFI boot menu to select the partition as the boot source. If you can, disable Secure Boot in the BIOS.

I have done this before, and I think it was with Ubuntu, but I also had a third party bootloader, since I was also doing Hackintosh at the time. I don't remember whether or not I tried the built in selector to boot from the partition installer I made. Can't hurt to try though.

Sorry if this answer is a little erratic, as I'm a little tired :P
Just comment if you need clarification.


Boot flag only applies to Windows, grub does not use boot flag. But a few motherboard have a BIOS that needs to see a boot flag, so we still suggest you have one on a primary partition.

It depends on the other system you install. Most systems will install their boot loader to the MBR overwriting you current grub boot loader in MBR.

If that system is another Linux with grub2 you can just boot into Ubuntu and run this to reinstall Ubuntu's grub into MBR of sda, if that is your drive.

sudo grub-install /dev/sda
sudo update-grub

You can also use Supergrub to boot your install or use Boot-Repair to install grub to your MBR.

https://help.ubuntu.com/community/RestoreUbuntu/XP/Vista/7Bootloader

If other install is grub2, it may remember where it installed and on major updates reinstall its grub to MBR. You an repair again, but may be able to un-configure the reinstall locations, or originally install grub to that install's PBR or partition boot sector. The PBR will not boot on its own and is just a location, so you do not have issues.

to get grub2 to remember where to reinstall on updates:

sudo dpkg-reconfigure grub-pc

Enter thru first pages,spacebar to choose/unchoose drive, enter to accept, do not choose partitions normally. If you do not want it to reinstall un-choose everything.


How to remove application that is "not installed"?

You can try these commands:

sudo rm -rf /var/lib/dpkg/info/implosion*
sudo apt-get purge implosion*

If that doesn't work, you could try:

sudo apt-get install apt-file    # apt-file is used to list installed files
sudo apt-file update
sudo apt-file list implosion

Then deleting all of those listed files

Note: I was unable to find the package implosion in the default repos of 13.04, though it appeared in the software centre


You can press Ctrl+Alt+F1 to get to a console.


Can't connect to the internet via Netgear A7000 adapter

First, we need to remove the dkms installation:

sudo dkms remove rtl8814au/4.3.21 --all

Confirm that it is no longer present:

sudo dkms status

You should see no 8814au entries. If so, proceed.

Next, find where you cloned the driver files:

sudo updatedb
locate rtl8814au

You want the one in your /home/[user] directory; /home/ubuntuisscary for example. Change to that directory using the bash shorthand for '/home/ubuntuisscary', or whatever your user directory is named:

cd ~/rtl8814au

If you find that the file is in Downloads, then:

cd ~/Downloads/rtl8814au

Now we build the file for your current kernel.

make clean
git pull
make
sudo make install
sudo modprobe 8814au

Any improvement?

EDIT: When Update Manager installs a newer kernel version, also known as linux-image, after the requested reboot, recompile:

cd ~/rtl8814au
make clean
git pull
make
sudo make install
sudo modprobe 8814au


Set folder view - per folder preferences

Use Nemo

sudo add-apt-repository ppa:webupd8team/nemo
sudo apt-get update
sudo apt-get install nemo nemo-fileroller


I don't have the reputation to make comments therefore this "answer" is an answer to @guiverc. I'm not totally sure on how the ergo is working but I have the MX key and MX master 3 and they both have a USB receiver and can also be used with Bluetooth. Logitech states on their danish site that the MX key should have the opportunity to switch among computers:

  you just need the Logitech-flow and logitech-options which can be
  downloaded here: https://www.logitech.com/da-dk/product/options


RTL8188CUS Wireless dongle perpetually connecting but never connected

It looks like you have two Realtek adapters connected to USB.

Regarding 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter you can install a better driver. Run in terminal

   sudo apt-get install git build-essential
   git clone https://github.com/lwfinger/rtl8192cu.git
   cd rtl8192cu
   make
   sudo make install

It should solve the issue.

You will have to re-install this driver after each kernel upgrade.

I pushed DKMS module of this driver to my ppa. If you install it from there, you will not need to re-install it.

It can be installed by

sudo add-apt-repository ppa:hanipospilot/rtlwifi
sudo apt-get update
sudo apt-get install rtl8192cu-dkms

Important!!! If you previously installed this driver from https://github.com/lwfinger/rtl8192cu.git, you will need to run

sudo rm /etc/modprobe.d/50-rtl8192cu.conf

to get it work. Previous install blacklists rtl8192cu.

And if you installed rtlwifi-new-dkms, you should remove it too.

I will later remove rtl8192cu from rtlwifi-dkms, because it does not work well.


redirect output, add text and append both to a txt file

Assuming you say yes to my comment, I created some simple code:

#!/bin/bash
while read Line
do
  echo "$(cat /proc/uptime): ${Line}"
done
#

Store the code in a file, f.e. wrapper and give it execute bits chmod +x wrapper.
Now start it like: <program> | wrapper
or output to  file: <program> | wrapper > logfile
As long as your program generates output, the wrapper will catch it. If the program stops, wrapper will also.


It's a tool to download from the internet various printer related things: e.g. firmware. Specifically sudo getweb 1020 is to Get HP LJ 1020 firmware file. You get the text below if you run getweb (without arguments) in a terminal.

Convenience script to get extra somethings from the web, such as ICC color profiles, firmware, PPD files, etc.


Can't access phpmyadmin (apache ok, php ok)

Within the default Ubuntu's installation (apt install phpmyadmin) PhpMyAdmin is included (and enabled) into the Apache's configuration through this additional configuration file:

/etc/apache2/conf-enabled/phpmyadmin.conf

This file is a symbolic link to the file /etc/apache2/conf-available/phpmyadmin.conf and when we type a2enconf or a2disconf we 'enable' or 'disable' this symbolic link.

On its side, the file /etc/apache2/conf-enabled/phpmyadmin.conf is a symbolic link to the file /etc/phpmyadmin/apache.conf.

According to the discussion below the question, during the installation process something goes wrong and the last symbolic link isn't created.

The solution, that @abalter provided, is manual creation of this symbolic link:

sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf

Then enable this configuration file and restart Apache or just reload its configuration:

sudo a2enconf phpmyadmin.conf
sudo systemctl reload apache2.service    # within Ubuntu 16.04
sudo service apache2 reload              # within Ubuntu 14.04


once you installed Ubuntu successfully you should remove the ISO file from the virtual box drives then it will not ask to install again..Give at least 2GB of ram space and enable/disable 3d acceleration based on your system configuration..


Finale or Sibelius on Ubuntu 11.10 under Wine?

AppDB doesn't have a recent entry for either. That's what I would have suggested first. Support on older versions is all over the place. It's impossible to say how well they'll work for you based on those reviews.

But then I saw that both applications offer 30-day trial licenses. Try them both!

On a related note, I saw this thread on Linux Musicians. While it's not a current thread it does look like a great forum for people making music on Linux.


Can't run synaptic on an Xfce Ubuntu system

Use it with sudo

sudo synaptic-pkexec

Worked for me when trying to use in a fresh install of Xfce4 on Debian; should work for Ubuntu as well.

Additionally, when I did the fresh install, I could not launch synaptic graphically (through GUI). A fix to this is installing the following packages:

sudo apt install synaptic apt-xapian-index policykit-1-gnome

policykit-1-gnome makes the GUI auth dialog for synaptic possible, without which synaptic will run, but it won't show anything on the GUI.

apt-xapian-index is basically for maintaining the package indexes.


libdvdcss2 install-cs.sh not completing on PowerPC Mac (or other achitectures besides x86)

For all architectures

Unfortunately the VideoLAN Project team only provides pre-built packages of libdvdcss2 for Intel x86 architectures (see below). Therefore for PowerPC, ARM and other architectures you must compile and build it yourself as described here:

Add the VideoLAN package repository to your repository list, add the repository key and update the repository index. In the commands below replace trusty with the name of your Ubuntu (or Debian) release (see the output of lsb_release -sc if you don't know). (Currently the most recent suppported release name is utopic. The old packages should still work for newer releases though.)

printf '%s http://download.videolan.org/pub/ubuntu/trusty / #VideoLAN Project\n' deb deb-src | sudo tee /etc/apt/sources.d/videolan-project.list
wget -O - https://download.videolan.org/pub/ubuntu/videolan-apt.asc | sudo apt-key add -
sudo apt-get update

(Source, modified for Ubuntu)
Change to a directory where you have write privileges and want to compile and build the package, e. g.:

cd /tmp

Install the build dependencies, download the package sources and compile them:

sudo apt-get install build-essential
sudo apt-get build-dep libdvdcss2
apt-get source --compile libdvdcss2

If successful, the current directory should contain a few .deb files. Install the relevant one and you're done:

sudo dpkg -i libdvdcss2_*_$(dpkg --print-architecture).deb

Where * will be matched and substituted automatically by the just compiled version of libdvdcss2 (currently 1.2.13-0).

For PCs and Intel Macs

Instead of building the library yourself, you can install a pre-compiled and packaged version from the VideoLAN project:

Same as step 1 for all architecures (see above).
sudo apt-get install libdvdcss2


Run additional software on ubuntu live (temporalily)

Installing testdisk for single use
You do not need persistence to (hopefully) run testdisk just once.
Add universe repository
sudo add-apt-repository universe

Update
sudo apt-get update

Install testdisk
sudo apt-get install testdisk

Run testdisk
testdisk

Above works for me on balenaEtcher Live USB using Ubuntu 16.04.5 running on 4GB USB2 thumbdrive.


How to reinstate videodev2.h in ubuntu 20.04

To get the manually removed header file back you have to install its package by
sudo apt install --reinstall linux-libc-dev


CMake Error: The source directory /home/pi/opencv-3.0.0/build/BUILD_EXAMPLES=ON does not exist. how it could be solve?

The last argument to the cmake command needs to be a directory containing a CMakeList.txt file.

Usually that's either the current directory . or the parent directory .. in the case of an out-of-source build where you are running the command from a separate build subdirectory:

cmake -D CMAKE_BUILD_TYPE=RELEASE \
    -D CMAKE_INSTALL_PREFIX=/usr/local \
    -D INSTALL_C_EXAMPLES=ON \
    -D INSTALL_PYTHON_EXAMPLES=ON \
    -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib-3.0.0/modules \
    -D BUILD_EXAMPLES=ON ..

[I suspect you are following instructions that used .. and misinterpreted it as standing in for an arbitrary list of -D options rather than an actual directory argument]


Permissions about Saving files to an SD card

Go to the equivalent of media\yourusername and right click onto the sd card and open properties, then the permissions tab :

Modify the permissions, and enable the read-write option, that is "Create and Delete Files" on all the user s and user group options


It turns out an xfs_repair is all I needed, it just took a long time since the drives are so large, wipefs doesn't delete the secondary superblocks so xfs is able to recover itself.


Connecting a reliance zte AC2737 netconnect + modem

Ubuntu has no knowledge of how much data balance you have left, so the problem is indeed with your provider.


How do I provide a username and password to wget?

Wget interprets <pass>@serveraddress as port. To specify a username and password, use the --user and --password switches:

wget --user user --password pass http://example.com/

From man wget:

  --user=user

  --password=password

  Specify the username user and password password for both FTP and HTTP file retrieval. These parameters can be overridden using the
  --ftp-user and --ftp-password options for FTP connections and the --http-user and --http-password options for HTTP connections.


Where is the game item artwork in kbreakout?

Breakout themes are: /usr/share/kde4/apps/kbreakout/themes/
or if you have the sources : .../kbreakout/themes/

Inside of the svgz ( http://en.wikipedia.org/wiki/SVG ) pictures.

apt-cache show inkscape

Description: vector-based drawing program
 Inkscape loads and saves a subset of the SVG (Scalable Vector Graphics)
 format, a standard maintained by the WWW consortium.
 .
 Inkscape user interface should be familiar from CorelDraw and similar
 drawing programs. There are rectangles, ellipses, text items, bitmap
 images and freehand curves.
 As an added bonus, both vector and bitmap objects can have alpha
 transparency and can be arbitrarily transformed.
 .
 Inkscape supports multiple opened files and multiple views per file.
 Graphics can be printed and exported to png bitmaps.
 .
 Some of the import and export features are provided using the packages
 dia, libwmf-bin, pstoedit, skencil, imagemagick, and perlmagick.
 .
 Other extensions use ruby, libxml-xql-perl, python-numpy, and python-lxml.
 You must have these packages to make full use of all extensions and effects.
 .
 If you want to use the spellchecker, you have to install aspell and the
 respective language-pack, e.g. aspell-en or aspell-de.
Homepage: http://www.inkscape.org/


How to mount ntfs partitions on startup?

You can edit the /etc/fstab file to mount partitions at boot time. That's the traditional method.

Use Alt-Ctrl-T to start a terminal. Create a mount point with sudo mkdir /media/ntfs. then use gksudo gedit /etc/fstab and enter a line for the mount you want.

Here's one for my ntfs partition:

UUID=CA009B90009B825D /media/ntfs ntfs rw,nosuid,nodev,noatime,allow_other 0 0

You will have to specify your own UUID. You can find these by entering the command:

sudo blkid


You can download deb packages from old repositories, my answer assumes you have amd64.

Download debs

wget http://security.ubuntu.com/ubuntu/pool/universe/o/openjdk-8/openjdk-8-jdk-headless_8u191-b12-2ubuntu0.18.10.1_amd64.deb
wget http://security.ubuntu.com/ubuntu/pool/universe/o/openjdk-8/openjdk-8-jdk_8u191-b12-2ubuntu0.18.10.1_amd64.deb
wget http://security.ubuntu.com/ubuntu/pool/universe/o/openjdk-8/openjdk-8-jre_8u191-b12-2ubuntu0.18.10.1_amd64.deb
wget http://security.ubuntu.com/ubuntu/pool/universe/o/openjdk-8/openjdk-8-jre-headless_8u191-b12-2ubuntu0.18.10.1_amd64.deb

Install them

sudo dpkg -i openjdk-8-jre-headless_8u191-b12-2ubuntu0.18.10.1_amd64.deb openjdk-8-jre_8u191-b12-2ubuntu0.18.10.1_amd64.deb openjdk-8-jdk_8u191-b12-2ubuntu0.18.10.1_amd64.deb openjdk-8-jdk-headless_8u191-b12-2ubuntu0.18.10.1_amd64.deb

Install missing dependency packages

sudo apt install -f


how to enable the filter of the video lens?

Please open a terminal and type

sudo apt-get install --reinstall unity-lens-video

This should reinstall the video lens just in case something went wrong during the update.
Please restart your computer and tell us if it worked.


black screen after resuming from suspend

This is a common problem with that nouveau driver that is still relevant as of three days ago. I got bricked by a kernel update, had to switch to the nouveau driver and my pet supercomputer basically became unusable with all these exact symptoms, to the letter.

If you still haven't solved this problem, please try this once you get yourself into the text mode with one of those magic key combinations:

first check your kernel version:

uname -a

then attempt to install a package linux-headers that matches your kernel version. It may say that you're already up to date, which is good. If it tries to install, then good, let it. Something like this:

sudo apt-get install linux-headers-<your kernel version from uname>

After that, install the NVIDIA drivers:

sudo add-apt-repository ppa:graphics-drivers/ppa

sudo apt-get update

sudo apt-get install nvidia-396

The latest version that I use is 396. I'm on 4.13.0-39 kernel. Your version might be different depending on what you're using.

Hope this helps.


Structure of Ubuntu's Full Disk Encryption?

It has two or three partitions, An ESP - efi system partition if UEFI, a /boot partition with grub boot loader & kernel, & main install which is LVM or logical volumes.

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

https://wiki.ubuntu.com/Lvm

Example from this thread. This user also added volumes for "stuff" and separate /home. Default with Ubuntu is only / & swap.

https://ubuntuforums.org/showthread.php?t=2425709&p=13883277#post13883277

$ lsblk
NAME                      MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sda                         8:0    0 465.8G  0 disk
├─sda2                      8:2    0   732M  0 part  /boot
├─sda3                      8:3    0 464.6G  0 part
│ └─sda3_crypt            253:0    0 464.6G  0 crypt
│   ├─ubuntu--vg-root     253:1    0    25G  0 lvm   /
│   ├─ubuntu--vg-stuff    253:4    0   100G  0 lvm   /stuff
│   ├─ubuntu--vg-swap_1   253:2    0   4.1G  0 lvm   [SWAP]
│   └─ubuntu--vg-home--lv 253:3    0    75G  0 lvm   /home
└─sda1                      8:1    0   512M  0 part  /boot/efi


Very light linux for 3GB Laptop to build pentest lab

I don't see a problem using Ubuntu. Create a VM with 512MB RAM, install Ubuntu server without anything else and then add apache (or nginx or lighttp.) Should work fine without really using that much resources.

Alternatively check out Puppy Linux or Ubuntu snappy.


can't boot windows 8.1 after installing ubuntu

It seems like Grub2 (v1.99) is installed in the boot sector of sda2 ntfs partition.So you have to repair your windows boot files and then run boot-repair.

See this solution for repairing your windows boot files and  reinstall grub2.


Upgrading from 16.04 to 18.04 breaks joomla

The problem might be your php version. Ubuntu 18.04 comes along with php7.2

sudo a2dismod php7.0
sudo a2enmod php7.2

May be you also need to install some php software.
To list all of them you have installed:

apt list php* --installed

If you have only php7.0-mysql fore example but not the php7.2-mysql you schould probably install it too, to get joomla the new php7.2.

I'm quite sure, your cert will still work on Ubuntu 18.04.


Try UNetbootin.  I have had some problems with  Pendrive USB installer.


Yes, there are fonts available for Urdu in Ubuntu. You need to install fonts-nafees package from synaptic or from terminal. After that go into firefox and change fonts to nafees


Sound card doesn't support format requested using signalgen

The last Ubuntu release with /dev/dsp support was 10.04. After that support for /dev/dsp was removed.
To still be able to use older software that rely on /dev/dsp there is a compatibility wrapper padsp which redirects sound output meant for dsp to a running pulseaudio server. We may use this wrapper with the following terminology:
padsp [options] APPLICATION [arguments ...]
padsp signalgen -v sin 120

By this we may be able to also play the output of signalgen to our soundcard. The OSS complatibility layer will be installed as a dependency with siggen .
If we do not want to output the sound directly we can use signalgen to directly write a raw audio file to then play this file through ALSA using aplay
signalgen -w filename -t 5 sin 120 & aplay filename

Note that signalgen will exit if filename already existed.

A better approach to generate waves without the need of a compatibility layer would be applications that are able to directly address ALSA or PuleAudio.
Sox .
Sox will install the command line utility play which will not only play sound files but can also generate audio waveforms and can add effects to them:
play -n synth sine 120.0 gain 0.0


198.168.33.180 is your IP address on the local network. whatismyip is telling you the address that is facing the outside network (the internet). Moreover, since you are in a VM, depending on your settings this IP(198.168.33.180) is in a specific range that is only seen locally by the host machine then is translated by the host using NAT. Then your router translates this address to your outward facing address that whatismyip is telling you.

So there's not really anything to resolve. Its just how networking works.

If you want the VM to be available on the local network you should use a bridged connection. Vmware has alot of documentation on this, and varies depending on the exact vmware solution your using, so I'll let you do the research but its pretty straightfoward.

Basically:

Edit the machine settings. Go to the network card and choose Bridged.

To test if you are set up correctly run ipconfig on the host and ifconfig on the VM.
The gateways should match.


You can only extend / resize the physical partition if the file system is unmounted.

The only exception is if you use LVM. If you use LVM you would first add or extend the physical volume, then extend the logical volume, then extend the file system.

With LVM, adding a new physical partition, sdb1 in this example.

First make a partition on /dev/sdb, either with fdisk, parted, or gparted

Then make a file system:

mkfs.ext4 /dev/sdb1

Add the partition to the (LVM) physical volume,  VolGroup00 in this example

pvcreate /dev/sdb1
vgextend VolGroup00 /dev/sdb1

Extend the logical volume , LogVol00 in this example

lvextend -L +10G /dev/VolGroup00/LogVol00

Resize the filesystem . I know this works for ext3 and ext4. It will not work with ext2. I am not sure about other file systems

resize2fs /dev/VolGroup00/LogVol00

Adjust your /dev/sdb1 volume groups, and partition to your server.

If you are NOT using LVM, you are out of luck and will have to manage your partitions with a live .iso


apportcheckresume recurring error and gnome shell fixations

So far the only thing that has actually worked is:

Purge the apport program with its configuration

sudo apt-get purge apport

Remove packages that are no longer needed (ex. auto-installed dependencies of apport)

sudo apt-get autoremove

Clean APT cache from old packages

sudo apt-get clean

Install back apport

sudo apt-get install apport

Hopefully that will work for you.

I think the problem for me at least is that I originally had Unity but have switched to Xubuntu. So I had several apparently orphaned packages that where still being used by apport, apport-gtk, etc. Removing these packages and purging the their config files, then reinstalling and configured just the needed Xubuntu apport packages. Example: I did not reinstall apport-gtk.


How to check if you cards supports monitor mode

You can use the iw command to get a full list of all capabilities of a physical wireless card:

$ iw list
Wiphy phy0
    [...]
    Supported interface modes:
         * IBSS
         * managed
         * AP
         * AP/VLAN
         * monitor
         * P2P-client
         * P2P-GO
         * P2P-device
    [...]

The output of iw list is really long and detailed, therefore I only showed the relevant section. You see monitor is listed as supported interface mode for my example card.


How to set a global persistent variable?

Add these lines to your script. Your script should have root access.

echo 'export FOO=abc' > /etc/profile.d/foo.sh

Next restart it will be available.


It sounds like you need to call your ISP.


How can I make my own custom desktop widgets?

Here's some working code for a transparent WebKit window.

from gi.repository import WebKit, Gtk, Gdk
import signal

class BackgroundPaneCallbacks:
    pass

class BackgroundPaneWebview(WebKit.WebView):
    def __init__(self):
        WebKit.WebView.__init__(self)
        self.set_transparent(True)
        self.override_background_color(Gtk.StateFlags.NORMAL, Gdk.RGBA(0,0,0,0))
        self.load_html_string(''+\
                              ''+\
                              ''+\
                              'Hello World'+\
                              ''+\
                              '',
                              'file:///')
        print("Webview loaded")

class BackgroundPaneWin(Gtk.Window):
    def __init__(self, address="127.0.0.1", port=54541):
        Gtk.Window.__init__(self)

        #Set transparency
        screen = self.get_screen()
        rgba = screen.get_rgba_visual()
        self.set_visual(rgba)
        self.override_background_color(Gtk.StateFlags.NORMAL, Gdk.RGBA(0,0,0,0))

        #Add all the parts
        self.view = BackgroundPaneWebview()
        box = Gtk.Box()
        self.add(box)
        box.pack_start(self.view, True, True, 0)
        self.set_decorated(False)
        self.connect("destroy", lambda q: Gtk.main_quit())
        #Configure

        #Show all the parts
        self.show_all()

        print("Win loaded")

class BackgroundPane:
    def __init__(self, params=False):
        #Add all the parts
        self.root = params['root']
        self.win = BackgroundPaneWin()
        print("Pane loaded")

    def init(self):
        pass

    def add_widget(self, widget):
        pass

class Logger:
    def __init__(self, root):
        self.root = root
        self.log("Logger loaded")

    def log(self, msg, level='console'):
        if level=='console':
            print msg

class Handlers:
    pass

class App:
    def __init__(self, params={}):
        #Get screen geometry
        s = Gdk.Screen.get_default()
        params['w'] = s.get_width()
        params['h'] = s.get_height()

        #Store params
        self.params = params
        self.log = Logger(self).log
        self.handlers = Handlers()
        #Get all components
        bg = BackgroundPane({'root':self,
                                           })
        #Store all components
        self.components = {}
        self.components['bg'] = bg

        #Make sure everything is started

        #Make sure Ctl-C works
        signal.signal(signal.SIGINT, signal.SIG_DFL)

    def run(self):
        Gtk.main()

if __name__ == '__main__':
    print("Loading app...")
    app = App()
    app.run()


What is causing "Failed to initialize geis instance Aborted" when trying to run touchegg in Ubuntu 11.10

Found out I was using packaged from the release candidates stream where conflicts can arise because some packages don't have ports yet and thus break dependencies. I have moved back to the the regular updates stream and touchegg initialized just fine.


How to use Ubuntu 19.10's integrated DLNA server without GUI?

The DLNA server in question is Rygel, which is part of Gnome, which Ubuntu uses. Normally that might suggest you might need Gnome (and a graphical server), but you can —as far as I can see— run this headless, from a command line.

sudo apt install rygel  # double-check what this is going to install before saying yes!

Then edit /etc/rygel.conf or ~/.config/rygel.conf based on man rygel.conf to set your settings. The main one you'll want is the uris setting, to define where your media is stored.

uris=/data/my-films;/data/tv-recordings

Then just run rygel. You'd probably test it at this point before adding a systemd service to keep it alive.


There are a few lines in your crontab that are supposed to be comments but don't have a leading # in front.
In a comment you said this is just wrong in your post and removing them didn't help.

The line

1 * * * *  echo "test" >> /tmp/testing.txt

looks fine but it means

  run the given command every hour, every day at minute 1, i.e. at
  12:01, 13:01, 14:01, 15:01, etc.

You would need to wait until that time is reached. If you want to run your job every minute
you need a star * in the minutes field as well:

* * * * *  echo "test" >> /tmp/testing.txt

This will run every minute. I found this online editor helpful to see what a certain
pattern means.


Permission denied to access files at URL, but the permissions are set to allow access

I found it.

In this file:

/etc/apache2/apache2.conf

I had to add this:

<Directory /extra_drive>
        Options FollowSymLinks
        AllowOverride None
        Require all granted
</Directory>


Problem connecting to Webmin-Ubuntu 16.04 LTS

The problems experienced would occur to me when installing the latest version of webmin, currently the version 1.831 with the version 1.820 I have managed to solve the problem.

I followed the next steps:

Remove the current Webmin installation:

sudo apt purge --autoremove webmin

Download the webmin_1.820_all.deb file.
After downloading the file install it with:

sudo dpkg -i webmin_1.820_all.deb

Keep in mind to have all dependencies installed for this package.

After installing this version I have been able to update to the last version without any problem.


Ubuntu Error 15:(http://grub4dos.chenall.net/e/15) File not found

For CDFS, make sure menu.lst case references are UPPERCASE

I got this error when attempting to boot from a USB drive that had been set bootable, made with the Universal USB Installer. During boot, I got the Error 15 message.

I had downloaded the Ubuntu ISO image (18.04.3 LTS), and the file name was in lowercase (ubuntu-18.04.3-desktop-amd64.iso).

I used the Universal USB Installer tool to burn the image (also see caveat).

When I booted, I got the Error 15 message. With some research, it seems that the CDFS file system is case sensitive.

To remedy, I inserted the USB drive into my Windows PC, and navigated to the \boot\grub\menu.lst file, and edited it, changing all instances of:

UBUNTU-18.04.3-DESKTOP-AMD64      ➜  UBUNTU-18.04.3-DESKTOP-AMD64
UBUNTU-18.04.3-DESKTOP-AMD64.ISO  ➜  UBUNTU-18.04.3-DESKTOP-AMD64.ISO

I also updated the ISO image filename in the root directory on the USB drive to be uppercase:

\UBUNTU-18.04.3-DESKTOP-AMD64.ISO

After these changes were made, I rebooted via USB, and it worked.

My final menu.lst looked like this:

# This Menu created with Universal USB Installer https://www.pendrivelinux.com
default 0
timeout 30
color NORMAL HIGHLIGHT HELPTEXT HEADING
foreground=FFFFFF
background=000000

title Boot UBUNTU-18.04.3-DESKTOP-AMD64
set ISO=/UBUNTU-18.04.3-DESKTOP-AMD64.ISO
set CASPER=/casper-rw
find --set-root %ISO%
map %ISO% (0xff)
#CLUG
map --hook
root (0xff)
kernel /casper/vmlinuz file=/preseed/ubuntu.seed noprompt boot=casper iso-scan/filename=%ISO% quiet --
initrd /casper/initrd

title Boot UBUNTU-18.04.3-DESKTOP-AMD64 acpi=off
set ISO=/UBUNTU-18.04.3-DESKTOP-AMD64.ISO
set CASPER=/casper-rw
find --set-root %ISO%
map %ISO% (0xff)
#CLUG
map --hook
root (0xff)
kernel /casper/vmlinuz file=/preseed/ubuntu.seed noprompt boot=casper iso-scan/filename=%ISO% quiet acpi=off --
initrd /casper/initrd