Ubuntu Desktop 14.04 Fresh Install Is Slow/Freezing

Here's a link to an Ubuntu help page that should guide you through installing the proprietary drivers for your particular graphics card.

https://help.ubuntu.com/community/BinaryDriverHowto/Nvidia

If the graphical user interface is really just totally un-useable, press CTRL+ALT+F1.  That should put you in a terminal.  If at any time you want to get back out to the GUI, just press CTRL+ALT+F7.  Anyway, once you're in this terminal, you can use the command line to install the appropriate driver with:

sudo apt-get install driverpackagenamehere

I see several different packages available, and a few different versions of the driver, so reference the link I posted above to see which one applies to you since you're not sure at the moment of what exact card you have.  I've attached a screenshot of the package names and descriptions in Synaptic on my computer.  The link above also has instructions for manually editing xorg.conf from the command line if you have to.

Since you're new to Ubuntu, I would really try to suffer through using the GUI method if it's at all possible.


I discovered that running the following commands 'solved' my problem:

sudo ethtool -s eth0 autoneg off
sudo ethtool -s eth0 speed 1000 duplex full

I have been running the laptop for a couple of hours now and it hasn't switched down from 1gigabit (125MB/s) to 100mbit like it was before. I am assuming there is a problem with my auto-negotiation on the network. I realise, that networking speeds/issues depend on a lot of factors but it really does appear that overriding a configuration did the trick for me.

Hopefully this post will be useful to others who notice their cat6 connections start getting capped at 100mbit. There is probably another problem on the network and I have only fixed the 'symptom'.


Ubuntu 18.04 doesn't boot after installing Windows (GRUB already repaired)

The system hanging is due to problems with your Linux kernel files.  It can't find and load the needed drives and is hanging up while trying to find them.

This can be resolved by running these steps:

$ sudo apt install --reinstall linux-image-generic
$ sudo grub-install /dev/sdX

Make the variable X the drive that you want to use for booting.  Under normal circumstances this drive is /dev/sda.

Other important commands to resolve the other errors is to ensure the integrity of your Ubuntu installation with these commands:

$ sudo apt update
$ sudo apt upgrade
$ sudo apt full-upgrade
$ sudo apt autoremove

Note:
Reinstalling the Linux image fixed the modules errors you were getting.  That also should have fixed your problems with your network drivers and connecting to the Internet.


Brightness Adjustment on Desktop Computer

Install Brightness Controller from its PPA

sudo add-apt-repository ppa:apandada1/brightness-controller
sudo apt update
sudo apt install brightness-controller

Picture: Brightness Controller

Now you can adjust the brightness using the slider.


Add Fake Display when No Monitor is Plugged In

Found a way to do it without requiring a dummy plug: Ubuntu Headless VNC VESA 800x600 Resolution Fix ~ Andy Hawkins @ June 12, 2011

Basically install a dummy driver:

sudo apt-get install xserver-xorg-video-dummy

Then write it in the /usr/share/X11/xorg.conf.d/xorg.conf (or possibly /etc/X11/xorg.conf) file (create one, if it does not exist):

Section "Device"
    Identifier  "Configured Video Device"
    Driver      "dummy"
EndSection

Section "Monitor"
    Identifier  "Configured Monitor"
    HorizSync 31.5-48.5
    VertRefresh 50-70
EndSection

Section "Screen"
    Identifier  "Default Screen"
    Monitor     "Configured Monitor"
    Device      "Configured Video Device"
    DefaultDepth 24
    SubSection "Display"
    Depth 24
    Modes "1024x800"
    EndSubSection
EndSection

Then restart the computer.


No network, no usb after kernel update in 14.04

Had a similar issue after a kernel upgrade: no network, no usb (except the old kernel worked as before).

In this case the linux-image-extra package for that kernel was not installed, so drivers were missing.

To check it's installed:

$ uname -r
4.4.0-45-generic
$ dpkg -l | grep '^ii' | grep `uname -r`
ii  linux-headers-4.4.0-45-generic             4.4.0-45.66~14.04.1                                                  i386
ii  linux-image-4.4.0-45-generic               4.4.0-45.66~14.04.1                                                  i386
ii  linux-image-extra-4.4.0-45-generic         4.4.0-45.66~14.04.1                                                  i386

If the linux-image-extra package is missing in the list above install it with:

$ sudo apt-get install linux-image-extra-`uname -r`


In spite of the options, the screen locks after X minutes

If it's the same problem I had it's xscreensaver timeout being set to 6000 that's the problem.

Try running xset s 0 0 from the command line, this fixed the problem for me.


Strangely, only reinstalling Ubuntu Server 16.04.1 helped. Then, I didn't install

libboost-all-dev

but only the packages required by Trinitycore. Now

make

is runnig after cmake without any problems.

By adding the options

-DBoost_<missing package>_RELEASE=/usr/include/boost/<missing package>/

cmake can find it. Odd, because these are just subdirectories of

/usr/include/boost

which was already found by cmake.


Can I "speak IMAP" and review my actual mail quota?

Perhaps the Python imaplib library could help.  Launch a python console from the terminal with python. Then, create an IMAP connection with the following commands:

>>> import imaplib
>>> conn = imaplib.IMAP4('hostname')
>>> conn.login('username', 'password')

If your IMAP server uses SSL, use the IMAP4_SSL constructor instead of IMAP4.  You can then use the getquotaroot or getquota methods on the connection.  For example:

>>> conn.getquotaroot('INBOX')
>>> conn.getquota('quota root') # using the root from the previous command


Make sure you have created the directory /etc/reaver; otherwise things won't work.

Run sudo airmon-ng start <INTERFACE>.

Check that iwconfig shows the new interface (usually mon0) as being in Monitor mode. Managed will not work.

Run aircheck-ng and turn off any processes it tells you might be bad. Afterwards, use airmon-ng stop mon0 and then airmon-ng start wlan0 to recreate the (hopefully) monitoring interface.


How can I set minutes to make a hibernation in Ubuntu through the Ubuntu Terminal?

You may use sleep command. It accepts postfix m to numbers, which stands for minutes. I.e. you can execute

sleep 60m && someCommand

Now, here's a little problem that sudo after a time limit requires to enter the password again, and if you'd execute sudo sleep 60m && sudo somecommand, the someCommand wouldn't do in time. To workaround it, execute everything in a separate shell with elevated rights using the -c option of sh. I.e. the command would be:

sudo sh -c "sleep 60m && pm-hibernate"


mysql and memory problems in ubuntu 16.04 server

According to https://stackoverflow.com/questions/10284532/amazon-ec2-mysql-aborting-start-because-innodb-mmap-x-bytes-failed-errno-12 you need to add a swap page.

You can follow this to setup the swap page:

http://www.prowebdev.us/2012/05/amazon-ec2-linux-micro-swap-space.html

According to this site (I'm just copying here)

Steps below show how to make a swap space for your Micro instance. I assume you have AWS Account with a Micro instance running.

Run dd if=/dev/zero of=/swapfile bs=1M count=1024
Run mkswap /swapfile
Run swapon /swapfile
Add this line /swapfile swap swap defaults 0 0 to /etc/fstab

Step 4 is needed if you would like to automatically enable swap file after each reboot.

Some useful command related to SWAP space:

$ swapon -s
$ free -k

$ swapoff -a
$ swapon  -a

References:

http://www.thegeekstuff.com/2010/08/how-to-add-swap-space/
http://cloudstory.in/2012/02/getting-the-best-out-of-amazon-ec2-micro-instances/
http://cloudstory.in/2012/02/adding-swap-space-to-amazon-ec2-linux-micro-instance-to-increase-the-performance/
http://aws.amazon.com/ec2/instance-types/


Sorry guys, I screwed up. I forgot to add an action for the else statement, and that screwed it up. false alarm.


I you try Ctrl+Alt+F7you should return to Unity


Dell Latitude E7240 not booting after upgrading to 16.04

First, a clarification: Your title says you upgraded to 16.04. Does this mean that an earlier Ubuntu had been installed and was booting correctly? If so, what version? This is important mainly to establish a baseline -- if Ubuntu was installed and booting, then we know that your computer is capable of booting it correctly, which rules out certain possible explanations, such as a badly buggy firmware.

Both Ubuntu and Windows appear to be installed in EFI mode, with no trace of a former BIOS/CSM/legacy-mode installation. There's an NVRAM entry that points to the Ubuntu boot loader (check the efibootmgr data in your Boot Repair output), but it's clearly not working. This can happen because of a defective firmware or because of corrupted data in the NVRAM. It could also be that the system is trying to boot in BIOS/CSM/legacy mode for some reason. Therefore, my first suggestion is to enter your firmware setup utility and disable any hint of BIOS-mode support. This is most likely to be referred to as "legacy boot support," an active "Compatibility Support Module (CSM)," or something else. It could be flipped, though; you might need to ensure that EFI/UEFI-mode booting is enabled, and favored over BIOS/CSM/legacy booting.

If that doesn't help, then I suggest you try the following:

Enter your firmware setup utility.
Locate the option to reset all options to their defaults and use it. This will probably wipe out the existing boot entries.
Re-run Boot Repair.

If that doesn't help, then try entering the Advanced menu in Boot Repair and selecting the option to back up and rename boot loaders. This is an ugly hack of a workaround for buggy EFIs that ignore their boot entries, which seems to be what's happening on your system. This should not be necessary if you previously had a working Ubuntu installation on the computer, but it may be necessary if this is your first Ubuntu installation and your firmware is buggy. (A better option in this case is to return the computer to the store for a refund and get something that's not broken, but this may not be possible if you're beyond the return period.)


How do I set up a small Terminal Server, with both the Server and Terminals running Ubuntu?

There are many ways to do this. I would recommend a solution based on LDAP for authentication and user management, and NFS for storage.

In the following, I assume that by "Terminals" you do not mean X server forwarding, but actual local sessions. For actual terminal servers the server runs the applications, and the client simply displays the "GUI". More info on that setup here.

That also reminds me: Edubuntu might be worth a look for you.

User management

You need a centralized database to store usernames and passwords. LDAP is one solution for that. It is a database running on your server, and the clients use the linux PAM architecture to connect to it for authentication.

How to set up LDAP

Storage

NFS is a network file system. Simplified, this means that you can mount it over the network, just like a local partition. In a nutshell, it is similar to smb, the windows "shared drives" protocol. In your case, you would mount the user's home directory from the central NFS server after login.

How to set up NFS


How to add icon and screenshot for my app .deb package to see it in Ubuntu Software Center?

There are two questions here, the first is about the icon; this is actually provided by the app data package which has a pre-set number of defined icons. You can find it in:

/usr/share/app-install/icons/

But it won't help you put an icon in the software center. No custom packages have icons in the software center.

The second is about the screenshot. These can be added here:

How to include a screenshot of my application in the DEB/PPA to show it in Software-Center?


watch and trigger a ffmpeg command only on new files added to a folder

This is my proposal:

#!/bin/bash
# dir to whatch
dir=~/your_dir/

# trigger when a file is moved to the dir
inotifywait -m $dir -e moved_to | \
while read -r i; do
  # get the file name
  file_name=$(echo "$i" | grep -o "MOVED_TO.*" | sed 's/MOVED_TO //')
  # file name plus dir = full path
  file="$dir$filename"
  # apply your function (not the loop) to the file, you can pass the file as parameter
  your_function "$file"
done

I figure there are fancier ways to do this. Test if it works.


open a terminal and use this code

sudo grub-install /dev/sda


well you can do that with an application named as xsane. To install that open your terminal and type as

sudo apt-get install xsane

Then open that from unity dash. there you can do.

one more thing is after you save the images in your default format of scanner , you can re-save them into desired format by using Gimp which is also can be installable from your terminal with

sudo apt-get install gimp

hope that helps.


Solved, it was headphone related. If someone has the same problem, here the solution: Could fix the issue with the Bose app.


any equivalent for MATLAB/Simulink/Sim Power System toolbox

Matlab runs under ubuntu natively.  As far as Simulink check out  Ubuntu Science / Alternatives To Proprietary Software.

For Sim Power System Toolbox check out Ubuntu for Engineers.


How do I permanently install rEFInd onto my mac from Ubuntu (without using mac os)

Three options occur to me:

Use the Linux port of the bless utility. This is now available in the Ubuntu archives (at least for 14.04), but I'm not sure when it was added. I have yet to properly document this in the rEFInd documentation, but it's on my list of things to do.
Install rEFInd on the ESP using the fallback filename of EFI/BOOT/bootx64.efi (or EFI/BOOT/bootia32.efi for older Macs with 32-bit EFIs). Most Macs will honor this filename if they can't find something else to boot, but I can't make promises about any specific model.
Using an OS X live CD or USB flash drive (like an installation disc). You can launch a Terminal in such a disc, and that should enable you to run rEFInd's install.sh in OS X. You'd need to use the --esp or --ownhfs {device-id} option to install.sh, though.


"Audio Sync" not working with bluetooth speakers

Let's start here, as these comments are getting out of control.  I'll provide what I need, and you can either edit my Answer, or edit your question.  I realize PulseAudio and bluetooth aren't necessarily related, but I want to make sure that all the other pieces are properly fresh.

Starting With A Clean Slate

Let's clean out PulseAudio's Configuration and Installation so we all start on a clean slate:

If you are using Ubuntu 12.04 LTS (Precise Pangolin) or later, try this first: killall pulseaudio; rm -r ~/.config/pulse/* ; rm -r ~/.pulse*
Issue: pulseaudio -k
Remove your particular desktop, in case you aren't using the default desktop.  Sorry, but I need a Baseline. Stop after the clean command.  Before rebooting, let's remove PulseAudio.  See Step 4.
To remove and reinstall PulseAudio issue: sudo apt-get update;sudo apt-get dist-upgrade; sudo apt-get install pavucontrol linux-sound-base alsa-base alsa-utils lightdm ubuntu-desktop  linux-image-`uname -r` libasound2; sudo apt-get -y --reinstall install linux-sound-base alsa-base alsa-utils lightdm ubuntu-desktop  linux-image-`uname -r` libasound2; killall pulseaudio; rm -r ~/.pulse*; ubuntu-support-status
Disconnect all Bluetooth devices.
Reboot.
Reinstall Unity, and Ubuntu Desktop.  See the last of the post I linked in Step 3.  At this point, you should have audio in hardware speakers.
Enable Unlimited Scrolling in your Terminal:  Start a new terminal, and click Edit > Profiles > "Default" profile > Scrolling. Choose "Unlimited" as scrolling option. Click Close and Close again.
Verify or add your user to the following groups using usermod -aG: pulse, audio, pulse-access, pulse-rt, video:
cat /etc/group | grep -e '^pulse:' -e '^audio:' -e '^pulse-access:' -e '^pulse-rt:' -e '^video:' | awk -F: '{print $1}' | tr '\n' ',' | sed 's:,$::g'` `whoami

Provide Information About ALSA and PulseAudio

Download the ALSA script: wget -O alsa-info.sh http://www.alsa-project.org/alsa-info.sh && chmod +x ./alsa-info.sh && ./alsa-info.sh.
Provide information here about ALSA: bash alsa-info.sh --stdout.
Provide the following information about your devices: cat /proc/asound/{version,cards,devices,hwdep,pcm,seq/clients}; sudo rm /etc/asound.conf; sudo rm -r ~/.pulse ~/.asound* ;sudo rm ~/.pulse-cookie; sudo apt-get update; sudo apt-get install aptitude; sudo aptitude install paman gnome-alsamixer libasound2-plugins padevchooser libsdl1.2debian-pulseaudio; sudo lshw -short;ls -lart /dev/snd; find /lib/modules/uname -r| grep snd ;cat /dev/sndstat; lspci -nn; lsusb; sudo which alsactl; sudo fuser -v /dev/dsp /dev/snd/* ; dpkg -S bin/slmodemd; dmesg | egrep 'EMU|probe|emu|ALSA|alsa|ac97|udi|snd|ound|irmware'; sudo /etc/init.d/sl-modem-daemon status; sudo grep model /etc/modprobe.d/* ; sudo dmidecode|egrep 'anufact|roduct|erial|elease'; lsmod | egrep 'snd|usb|midi|udio'; pacmd list-sinks; aplay -l; sudo alsa force-reload;  ubuntu-support-status ; sudo lshw -C sound
Provide a PulseAudio startup log: sudo gedit /etc/pulse/client.conf.  Add extra-arguments = -vvvv --log-target=newfile:/tmp/pulseverbose.log --log-time=1 to the End of the file.  Reboot && Post the content of the log here.

Provide Information on Bluetooth Applications

apt-cache policy pulseaudio.
apt-cache policy bluez.
apt-cache policy blueman.
apt-cache policy pulseaudio-module-bluetooth.
Verify your Ubuntu release: lsb_release -rd
Post the contents of /etc/pulse/default.pa.

References

UbuntuWiki - SoundTroubleshootingProcedure
PulseAudio Bug 1274613 - LaunchPad
UbuntuWiki - PulseAudio Logging
Ubuntu Forums - (Solved) module-bluetooth-discover not loading on startup


How do I make abiword show it's icon in unity launcher?

Have you tried to, instead of opening a document, open Abiword through Menu > Applications?


Make PC act as WiFi Access Point, DHCP Server and File Server - How?

Yes it's possible* Having internet connection has nothing to do with this set up**

*WiFi access point will depends on your wifi card and drivers, not ALL drivers support turning it into WiFI access point

**On second though the iOS or android might not like connecting to networks without internet? Not sure, unplug your internet cable from your WiFi router and try to connect to it from your device? But this really has nothing to do with ubuntu

***on third thought, it probably won't work. Mobile devices want to see internet, they'll probably think you need to authenticate and try to open a web browser. Not sure if you can tell them to connect without internet. Ask on iOS and android forums


bash: ./flash_tool: cannot execute binary file: Exec format error

The Exec format error means you are using the wrong file for your computer.  Most likely you were trying to use the 64 bit version on a 32 bit Ubuntu.  You need to download the right one.

Type arch in a terminal to be sure which you should use.

If you get something like i386 as I suspect, download the "Linux 32 Bit version" under the heading "Direct links for SP Flash Tool Download" from http://spflashtool.com/

Currently, the supposed 32-bit version hosted there is in fact also 64-bit, and so no usable version is available for 32-bit Ubuntu.  You might be able to find a 32-bit one elsewhere, but be careful.  You cannot be certain any of these downloads (including the above link) are virus-free.

If you get x86_64 choose "Download SPFlashTool for Linux - 64 Bit Tool"


Solved it! Turns out it's the UltraISO's problem. It all turned out after I switched to the Win32 Disk Imager.

(But still, don't know why this is the issue because I saw some comments that if you get "Failed to load" then it's basically UltraISO's fault. Love to know some explanations.)


Sometimes Google Chrome blocks 3D support in their browser in Linux due to known driver issues for example. However, there is a way to override this and force 3D support in Chrome.

To do this, navigate to chrome://flags in your browser. In there, search for the option Ignore GPU blacklist and enable it. After that you need to restart your browser to apply the changes.


Encrypted home folder - How to home folder after 10.10 reload?

Try this: http://blog.dustinkirkland.com/2011/04/introducing-ecryptfs-recover-private.html

Or this: https://help.ubuntu.com/community/EncryptedPrivateDirectory#Recovering%20Your%20Data%20Manually

Hope this helps!


How do you remove old kernels from the terminal

The accumulation of old kernels until /boot is full, thereby breaking apt, is a bug: LP #1357093, with a fix implemented in all flavors of Ubuntu 16.04 and newer.

Most users who notice this problem installed 'whole-disk encryption', which creates a tiny unencrypted /boot partition. Since it's tiny, the partition fills quickly, and these users notice the problem much sooner than others.

When a new kernel is installed, the /etc/kernel/postinst.d/apt-auto-removal script marks older kernels as eligible for autoremoval...but doesn't run autoremove. The lack of autoremove was originally intended to allow a human to review the list of removed packages.

The bugfix to LP #1357093 works for most users - if it doesn't work for you, then there is another underlying cause preventing old kernel packages from being apt-marked as eligible for autoremove. Seek one-on-one help in the Ubuntu support channels.

In older versions of Ubuntu, you must fix weed old kernels to preserve space manually. How you fix it manually depends upon whether your /boot is full or not. Most users don't notice the problem until /boot is full, and they are getting apt and dpkg no-space-left-on-device errors.

If /boot is not full, and apt works properly, a simple

sudo apt-get autoremove      ## Ubuntu 14.04 and older
sudo apt autoremove          ## Ubuntu 16.04 and newer

should remove all kernel packages that are eligible for autoremoval.

If /boot is full, and apt actions fail with the dpkg error 'no space left on device', then it is too late to use autoremove.

It's too late because Aptdaemon queues package actions. Autoremove is at the back of the queue, and apt aborts the entire remaining queue when any action fails...including running out of space. (This is arguably a bug in apt/aptdaemon)

The best practice here is to use 'uname' and 'dpkg' to remove one or two old kernels, freeing space for apt to complete it's queued actions. Then autoremove will work.

Example:

$ uname -r
3.16.0-36-generic    ## This is kernel you MUST NOT remove.

$ dpkg -l | grep linux-image
rc  linux-image-3.16.0-23-generic    ## 'rc' means already removed
rc  linux-image-3.16.0-28-generic    ## 'rc' can be safely ignored
rc  linux-image-3.16.0-29-generic
ii  linux-image-3.16.0-30-generic    ## 'ii' means installed. Removable
ii  linux-image-3.16.0-31-generic    ## Removable
ii  linux-image-3.16.0-33-generic    ## Removable
ii  linux-image-3.16.0-34-generic    ## Backup working kernel. Don't remove
ii  linux-image-3.16.0-36-generic    ## Current kernel. DO NOT REMOVE

## Use dpkg to remove one older kernel, freeing enough space for apt to work
$ sudo dpkg --remove linux-image-3.16.0-30-generic
$ sudo apt-get autoremove     ## Ubuntu 14.04 and older
$ sudo apt autoremove         ## Ubuntu 16.04 and newer

If you have been ignoring the problem for a long time, then there are second-order effects, like linux-image-generic pointing to the wrong kernel version, and apt dependency errors. There is no single way of fixing all of these at once.

Generally, the easy way to clean up most of these problems is to clean the old packages out of your local package cache, update your package database, and reinstall the offending packages from the Ubuntu repositories (instead of your local cache).

$ sudo apt-get update       ## Refresh the package database (14.04 and older)
$ sudo apt update           ##                              (16.04 and newer)

$ sudo apt-get autoclean    ## Delete the obsolete packages from your local cache (14.04 and older)
$ sudo apt autoclean        ##                                                    (16.04 and newer)

$ sudo apt-get install --reinstall <packagename>     ## Reinstall the offending package with the latest version in the Ubuntu repositories (14.04 and older)
$ sudo apt install --reinstall <packagename>         ##                (16.04 and newer)

If you still encounter apt and/or dpkg errors, seek one-on-one help in the Ubuntu support channels.


Having troubles using Valgrind with WSL on CLion

Take a look at Jetbrains. Just skip the wsl/ubuntu part. Clion will automatically check the wsl system configured at your toolchain. Your configuration should look like this:


12.04 and NVIDIA card problem with NVIDIA Geforce 7025

NOTE:

  SRU Request:

  Please accept nvidia-graphics-drivers-updates in precise-proposed.
  Driver 295.49 should fix both the problem reported in this bug report
  and the other one reported in bug #982485
  https://bugs.launchpad.net/debian/+source/nvidia-graphics-drivers/+bug/982710

This will hopefully be resolved in the near future so manual driver installs are not necessary.

There is a known bug with several Nvidia cards.

  We have been made aware of an interaction problem between the fix
  contained in the newest release any any card with a chip older than
  G80, inclusive. This includes the full GeForce 6 and 7 series as well
  as GeForce 8800GTX and first-gen 8800GTS. We are actively working on
  resolving this issue and will provide an update as soon as possible.

  The symptoms can include graphical corruption, performance issues,
  crashes and temporary hangs.

  The release should be perfectly safe to use with more recent cards
  than that; I'll update this thread ASAP.

  Thanks,
  - Pierre-Loup

http://www.nvnews.net/vbulletin/showthread.php?t=178460&page=3

The newly-released 302.07 beta driver should include a fix for all the issues I mentioned above. Please open a new thread should you notice an issue with that driver.

http://www.nvidia.com/object/linux-display-amd64-302.07-driver.html


How to 'link' two music directories when dual booting Windows 7 & Ubuntu 12.04 ?

Can you see the Windows drive from Ubuntu?
If yes, then you can see whatever changes you make in Windows, directly in Ubuntu.
You have to find the Windows music folder in nautilus and then Right click → Properties → Location. This is the "source" location, e.g. /media/Windows/Users/Nick/Music
Do you have anything in the Ubuntu music folder?
If yes, you need to move the contents to another folder, e.g. on Desktop
Now you need to find the path for the Ubuntu music folder. Do what we did on step 1. This is the "target" location, e.g. /home/nick/Music
The Ubuntu music folder should be empty by now, delete it
Open a terminal and write:ln -s "source" "target" substituting with the paths we found in steps 1 and 3, e.g. ln -s /media/Windows/Users/Nick/Music /home/nick/Music
If you had data in your Ubuntu music folder in step 2, you can now move them back to the new folder.


How to safely remove lvm snapshot after upgrade?

Killing process 6863 and restarting solved this problem for. Though, I will not accept this answer as it seems there should be a way to do this the right way.


Revertably use computer's hard disk from portable system

IMHO you should fully follow this guide and keep your swap file and data safely on your USB SLC disk.

However, if you insist on putting the swap on the HDD, the only things you have to do differently is:

Create a swap file on the HDD:

sudo fallocate --length XY /media/szSomewhere/file.swap
sudo chmod a+rw /media/szSomewhere/file.swap

where X is the number you want and Y the unit (k, m, g, t, p, e. See man fallocate for more info) and /media/szSomewhere is the location where you want the file to be on the system you're booting from.
Format the file to create a swapping device:

sudo mkswap /media/szSomewhere/file.swap

Add the swap to the running system:

sudo swapon /media/szSomewhere/file.swap

The additional swap is now available and can be seen by cat /proc/meminfo. Obviously, You'll have to do this on every computer you use, so make this into a script.

To have encrypted file storage on the HDD:

Install the encrypted file system:

sudo apt-get install sudo apt-get install encfs

Setup an encrypted directory:

encfs /media/szSomewhere/.encrypted /media/szSomewhere/UnEncrypted

and start using the unencrypted directory like any other.  In order to encrypt the /media/szSomewhere/UnEncrypted directory simply type:

fusermount -u /media/szSomewhere/UnEncrypted

As long as the directory is unmounted all the information in /media/szSomewhere/UnEncrypted will seem to have disappeared but is actually stored in /media/szSomewhere/.encrypted. The only way to gain access to this information again is by unlocking it by typing the same command as in step 2...


how can i acces website on linux server?

My router also doesn't let me to connect to a local server with it's internet ip or domain name (other routers have no problem with that). You must use the local ip (use command ifconfig to find it out). For exapmle, in my case in order to connect to my apache website:

From a pc in the same network I use 192.168.2.222 (my servers static local ip).
From an external pc I use lichking.ddns.net (the domain name which I created with noip and it automatically directs to my servers ip (not the local ip but the internet ip which is something like 79.166.120.230 and it changes with every router restart).


Is there a way to share resources of a machine by running a program on one machine, but display it on another?

It's possible to run a X11 aplication on a remote machine and display the result on the local one. This is as simple as

ssh -Y user@remote gedit


How do I display menu of an application using shortcut

If you press and hold the Super/Windows key you can see a list of shortcuts (in Ubuntu with Unity).
One of them is the one you are looking for:

Alt + F10 : Opens the first menu or, if there is no menu, it opens the first indicator (in the top right corner). When this shortcut doesn't work, try just F10.


How can I get my terminals / shells to have custom designs in it?

No coding necessary.

Save whatever the logo you like to a txt file somewhere in your home folder.
Open with text editor a config file for your shell. In my case for mksh shell that would be .mkshrc , for bash - .bashrc
Add command cat myawesomestuff.txt at the end of the file.
Relaunch shell or run source .bashrc (in my case source .mkshrc)

Bellow is the example. I've another program, fortune running on each start of the shell, so don't be surprised by the quotes

$ nano awesome.txt

$ nano .mkshrc

$ source .mkshrc
Q:  What's the difference between the 1950's and the 1980's?
A:  In the 80's, a man walks into a drugstore and states loudly, "I'd
    like some condoms," and then, leaning over the counter, whispers,
    "and some cigarettes."
                                                  / \                 / \
    __  ___    ___     ______      __  ___  ___  |   |_______/\______|   |
   /  \ | |    | |     | |_  \    /  \ | |  | |  _\_/_________________\_/_
  / __ \| |    | |     | | \  \  / __ \| |__| |_/                         \_
 | |  | | |    | |     | |  \  \| |  | |_____ |_B-E-A_M-M-E-U-P-S-C-O-T-T-Y_|
 | |  | | |    | |     | |  /  /| |  | |    | | \_________________________/
 | |  | | |____| |_____| |_/  / | |  | |____| |       \ \   |__|   / /
 |_|  |_|______|_______|_____/  |_|  |_|______|        \ \ //  \\ / /
                                                        | /|    |\ |
                                                         |_*\__/*_|
                                                          \______/


How to stop Bluefish from displaying "File contains very long lines. Split these lines?" message

This a copy of the answer that I posted on Unix & Linux regarding a similar question to this one, titled: How do I remove the 'split lines' error in Bluefish?. I'm posting it here since the solution driven from the ticket I posted (referenced below) will likely lead to a potential solution for both.

Similar sounding bug?

Not sure if this issue is related or not but if you look at the details of this issue in the Bluefish bugzilla issue tracker. The issue is titled: Very long lines and cpu usage, which doesn't sound related but if you look through the question:

excerpt

  I've tested this with bluefish 2.2.2, built against gtk+-2.24.17 and later
  against gtk+-3.4.4, I got the same behavior.

  I do a lot of css editing, and I found some time ago that base64 images where a
  problem. And the bigger they were, the bigger the problem was as well.

  base64 images can result in very long lines, even small images, because bitmap
  info has to be stored using a subset of ascii (or whatever). So it's not
  strange that I end with lines with +10,000 columns, sometimes much longer.

  When I scroll down such a file, the very moment the offending line is about to
  appear the editor freezes, and I can see gkrellm becoming mad about cpu usage.
  I can open the same file in nano and scroll as I wish without even noticing a
  cpu peak.

  When a CSS file is full of this stuff I just close bluefish and use whatever is
  at hand instead.

One of the developers then made this comment:

  thanks for reporting, unfortunately this is a known bug in the gtk textview
  widget.

  there is a bugreport for gtk somewhere in bugzilla, but it hasn't been fixed
  for years. I'm surprised that the windows build doesn't have this problem, it
  also uses gtk....

I realize the error you're seeing sounds different but these 2 issues seem linked to me. I  would suggest filing this as a bug and seeing what the developers

Opened issue regarding this

To try and help expedite this issue for you and the other OP on U&L I filed this as a bug in Bugzilla for the Bluefish project.

Bug 720494 - Disable message complaining about file containing very long lines?

Feel free to comment on that, hopefully we'll hear something soon regarding this issue.


Colour of the top bar and Ubuntu dock (sidebar) is dictated by the GNOME shell theme whereas I reckon you have changed only your GTK+ (application) theme to Adwaita-dark. You need to use a suitable GNOME shell theme too.

I would suggest you to use Adwaita-slim or Minwaita theme (slimmed down versions of Adwaita and both provide shell themes with dark and light variants).

See this for a guidance to change GNOME shell theme: How can I change Gnome Shell theme?


After several updates to the kernel over the past two months, boot time was significantly slashed(ie boot now takes less time). This answer is written as of 18/11/2019 for Linux Kernel(patch) 5.0.0-36 Ubuntu 18.04.

It is worth mentioning that I had tried to slash boot time as suggested here to no avail. The next LTS release(20.04) also promises faster boot times.


How to create a folder with the following permission?

Since you want a non removable dir, where you can create, paste, write and delete files you need to set the parent of this dir with non-writable permissions, and the dir with writable permissions. just as above, but taking consideration of group and everyone:

~$ mkdir -p parent/mydir
~$ chmod 755 parent
~$ chmod 777 parent/mydir

This wont let mydir to be deleted for everyone but you. And will let create and delete files within mydir, since this one has write permissions for everyone.


Can glade be used with python pygi introspection?

Yes, in fact it's almost exactly the same:

from gi.repository import Gtk

class Test (object):

    def __init__(self):
        self.builder = Gtk.Builder()
        self.builder.add_from_file("test.glade")
        self.builder.connect_signals(self)

    def run(self, *args):
        self.builder.get_object("window1").show()
        Gtk.main()

    def quit(self, *args):
        Gtk.main_quit()

Test().run()

Many smaller programs will take little effort to convert. You can start by switching to gobject introspection using the following two lines, and then correct any errors by looking them up in the reference.

from gi.repository import Gtk as gtk
from gi.repository import Gobject as gobject

For example, gtk.RESPONSE_OK will be called Gtk.ResponseType.OK when you're using introspection.


Is there an alternative for 'ppasearch' in newer versions of Ubuntu?

If you're looking to search for a PPA which contains a certain package, you can use the PPA search feature in Y PPA Manager (by WebUp8).

Install it with these commands:

sudo add-apt-repository ppa:webupd8team/y-ppa-manager
sudo apt-get update
sudo apt-get install y-ppa-manager

Run it by searching for Y PPA Manager in the Dash.
Click on the "Search in all Launchpad PPAs" button.

Enter your admin password if prompted.
Enter the package name you want to search for.
Enable the "Basis search" if you want it to go faster, but with less info

Click "OK". A notification will appear informing you that the search has started,
wait for a new window with PPAs to appear.
You can then choose to add a PPA and other actions.

As a side note, Y PPA Manager also includes a handy utility called update-ppa. It's like apt-get update, but only for one PPA.

Usage:

sudo -H update-ppa ppa:webupd8team/y-ppa-manager

(replace ppa:webupd8team/y-ppa-manager with the PPA, with a similar format)


No wifi option on Ubuntu (18.04 and 16.04)

Please start with:

sudo apt update
sudo apt install build-essential git

Now do:

git clone https://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/backport-iwlwifi.git
cd backport-iwlwifi
sudo make
sudo make install

The ‘make’ step takes a few moments; please be patient.

Now, we’ll write a conf file:

sudo -i
echo “options iwlwifi disable_msix=1”  >>  /etc/modprobe.d/iwlwifi.conf
exit

Reboot and tell us if the wireless is now working.

EDIT: You have compiled the driver for your currently running kernel version only. When Update Manager installs a newer kernel version, after the requested reboot, recompile:

cd backport-iwlwifi
sudo make clean
sudo make
sudo make install

Reboot.

Please retain the files and these instructions for that time.


how to disable window close using key combination F4?

Haha, I have this disabled!

Search "shortcuts" in the thing that looks like my picture. It may be a different color.
Open shortcuts and switch to the tab "shortcuts". Go to the "Window" shortcuts.
Click on ALT+F4, and hit backspace to disable.


All fonts look weird in emails and on websites, how can I fix this?

To change your font please install unity-tweak-tool from software center, run it from dash and and choose fonts.

Also if the option "hinting" is not set to slight please do so,

EDIT We can do the same thing for chrome and see if that helps there

Click the Chrome menu on the browser toolbar. Select Settings. Click Show advanced settings and go to the "Languages" section Then default font and encoding Choose any font and see if this fixes your issue and let me know


Propertiary driver ATI Mobility radeon HD2600

It seems that you are installing the legacy FGLRX driver in to Ubuntu 13.04, that is not possible. They require an older kernel and an older X server version than the one you run in 13.04 by default.

There are not easy solutions for that fact.

Your best choices are:

Downgrade to 12.04 (supported by the legacy driver);
keep using the open-source one with 13.04.

You cannot use the latest legacy FGLRX driver with 13.04.


Will installing Ubuntu over pre-intalled windows remove the product key from the BIOS?

As far as I know the Windows Product Key is not kept in BIOS, but rather on a hidden partition on HDD. When installing Ubuntu it may or my not overwrite this partition - it depends on the installation method and partitioning you use.

When I install new operating system (not necessarily Ubuntu) I usually:

Note the product key on paper and file it for future use - search the Internet for a number utilities that can display it for you.
I backup the PC to be overwritten with Clonezilla using disk to image mode - in case I'd like to revert back to Windows. This also has the advantage that you can restore the the backup inside virtual machine using image to disk mode to have your original PC inside say Virtualbox or VMWare.

As for laws I cannot imagine that any license or law would preclude you from reinstalling from scratch or restoring a back-up of your PC. What would you do if your HDD would go down?

Actually you should be able to call Microsoft or your PC supplier to get information how exactly to generate restore media and Product Key in case of failed disk drive.


Why is Natty's daily live build not updated daily anymore?

The developers are currently moving the default Python version from 2.6 to 2.7, which involves rebuilding (and sometimes changing) a lot of applications that are written in Python or depend on it (e.g. for plugins, scripting, etc.).  I am running Natty on 1 machine, and currently part of this migration is done, but not all of it.  The result is that the latest version of several packages (that are already converted) can not be installed together with the latest version of some other packages (that have not been converted yet).  That also means that building an ISO fails, hence no new "daily" CDs.

(To be sure somebody from the team that is responsible for building the ISOs should confirm this, but I'm pretty sure this is the main reason.)

This may also happen in other cases where applications that are installed on de ISO depend on each other or on a common library, and have version mismatches.


(Originally posted by user226952 at Dashed borders of my window manager (XFce) - Solution.)

I ran into the same problem as posted here and I found out that the problem only exists on my Intel video laptops (Nvidia was fine) and occurred only with themes having window borders with more than 1px width.

My solution was to create a file /usr/share/X11/xorg.conf.d/20-intel.conf with the content :

Section "Device"
   Identifier  "Intel Graphics"
   Driver      "intel"
   Option      "AccelMethod"  "uxa"
EndSection

This switches off sandy bridge acceleration and turns back to slower but reliable uxa acceleration.


Close tab command in Ubuntu 20.04.01, GNOME 3.36.8

I got the answer in comments, so I thought I should put it here as well. I was able to reset my account settings by the following command and it fixed my issue.
dconf reset -f /


Why does my optical drive not play commercial dvds?

Because commercial dvd's are encrypted, to be able to read them you need to install some codecs.

Open terminal and enter the following:

sudo apt-get install libdvdread4
sudo /usr/share/doc/libdvdread4/install-css.sh

you may have to enter those commands separately, and you may have to reboot.


Selecting "single display desktop (multidesktop)" with ATI Catalyst 11.11 doesn't work as expected

If you select the 1 desktop over multiple screens function in de catalyst control center and apply it.after a reboot you can set multiple monitors via the 'screens' dialog and there wont be a "big screen resolution"-error.


How to measure voice frequency range in Hz?

This list is by no means exhaustive:

Spek - helps to analyse your audio files by showing their spectrogram. Perhaps the easiest for novice users and available from the Software Centre.

Audacity - the reference audio editor for Linux, but with a complex user interface; also available from the Software Centre.

JAAA - audio signal generator and spectrum analyser designed to make accurate measurements; available from the Software Centre.

Spectrum3d - an audio spectrum analyser in 3D for Linux; works in real time from the mic or in non-real time from an audio file.

Toscanalyzer - among many other features: frequency band analysis on 4 bands and sub-band;
frequency band distribution in stereo space; representation of spectrum with frequency and tonal scaling.

SoundRuler - a tool for measuring and graphing sound and for teaching acoustics.

Spectrum Analyzer - an oldie programmed for DOS that is supposed to run on Wine.


Creating Trash for shared NTFS partition

I suggest you change the final line of your /etc/fstab file with the following:

/dev/disk/by-uuid/01D60CFF0BF1D440              /mnt/Windows          ntfs-3g users,uid=1000,dmask=027,fmask=137,x-gvfs-show,utf8 0 0

The uid, dmask and fmask options are setting the security options on the ntfs file system. They should be fine for you. The utf8 option helps manage file names between Windows and Linux. For this to work you will need a mount point at /mnt/Windows, which is simpler than what you currently have:

sudo mkdir /mnt/Windows

To edit your fstab file use:

sudo nano -B /etc/fstab

This will create a backup copy of the original fstab. Let us know how you get on


To solve issue one you need to be in a user terminal not a root terminal when you make the command.

The command sudo -s -u www-data is changing the user to www-data but in the root home directory which .bashrc is not accessible to the user www-data.

The second issue is that  your /var/www directory has the wrong  permissions and is set  for root as owner and root as group . This should be set to www-data for both.

sudo chown -R www-data:www-data /var/www

once you have made  these changes you should have less issues


Install and run a program from a flash drive? 13.10

You can use recompiled Linux releases from TuxGuitar Project site.

Download tuxguitar-1.2-linux-x86_64.tar.gz or tuxguitar-1.2-linux-x86.tar.gz, depending on your system architecture from:

http://sourceforge.net/projects/tuxguitar/files/TuxGuitar/TuxGuitar-1.2/
Extract it in the flash disk, run tuxguitar


Can I install the all the software included with Ubuntu Studio on Kubuntu without losing the KDE environment?

This has been answered in a similar question here and on the Ubuntu Studio wiki (linked below), but since we want KDE rather than Gnome or XFCE (Ubuntu Studio's default DE) we'll do things a little differently. As of writing this, I'm running  Kubuntu 18.04 Bionic Beaver.

First Install Kubuntu, if it's not already on your system.
Open a terminal to update Kubuntu, install Ubuntu Studio packages and low latency kernel:
sudo apt-get update && sudo apt-get install ubuntustudio-audio ubuntustudio-audio-plugins ubuntustudio-graphics ubuntustudio-video linux-lowlatency

You may also want to add ubuntustudio-menus

Follow the configuration modifications section here to finish setting up Ubuntu Studio. note: most of the steps listed here are unnessecary for newer versions of ubuntu, however users should still be added to audio/video groups with  sudo adduser <username> video and  sudo adduser <username> audio

If you already have Ubuntu Studio installed, you can install KDE Plasma over Ubuntu Studio, although I do not recommend this as I've run into  problems like conflicting dependencies or things vanishing after upgrades. It just seems Unnecessary to have multiple desktop environments installed.


Copy this folder into the root directory of disksim

Yes you can copy and paste just like on any other computer as long as you have the relevant permissions to access that folder. If you get a permission denied error then chances are you'll need to be an admin to access the directory. Personally I find using the terminal easier for this sort of thing because if it is a protected directory I can just re-run the command as admin using sudo and it'll work. But each to their own you can do it in the GUI as well, but I think you'll have to relaunch the file manager as admin using sudo.

By root directory it probably means the top level directory where the software is installed I.e. if you've installed disksim in /etc/disksim then that will be the root directory for disksim and within that there will be sub directories and other files for the use of that program. However it is unusual to hear an install location referred to as the root of a specific app. Normally root refers to the top level of the filesystem (/...).


Drop down menus stop working every so often

You are experiencing this bug probably:

https://bugs.launchpad.net/ubuntu/+source/thunderbird/+bug/894048

You can follow along by marking "this affects me" on the bug and subscribing to it:

How do I subscribe to a bug?


Using Nemo, Files open behind window instead of foreground

Install the package gnome-shell-extension-no-annoyance. You can use Software, but it is faster and easier with one terminal command:

sudo apt install gnome-shell-extension-no-annoyance

You also will need Tweaks to turn the extension on. It is not installed by default. You can install it using the software center, or with the command line. The package is gnome-tweaks.

Start tweaks by searching for tweaks in the Activities screen. On the Extensions tab, you will be able to turn the extension on.


I have finally resolved this. The solutions mentioned in the other threads assume that the auto suspend is done by laptop mode tools or powertop.The auto suspend behaviour here is caused by the Linux Kernel.
This can be overcome by adding a device specific rule

sudo gedit /etc/udev/rules.d/usb-power.rules

Add the following lines in the file

#Wheel Mouse Optical
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="045e", ATTR{idProduct}=="0040", TEST=="power/control", ATTR{power/control}="on"

use lsusb to find your device id and vendor id and replace them in the above code.

SOURCE: http://hamwaves.com/usb.autosuspend/en/


You might want to study your logs in /var/log/; they'll tell you how long each service apache2 takes, before apache gets it's turn. If there are services with problems, you may want to solve problems or disable unneeded services. If there are services, which are ok, but just take very long time, you may want to change the order.

In /etc/rc2.d you'll find apache2, maybe you want to make it start earlier in case it should have been put late in the list (depends on the number after S, like S01rsyslog starts before S05cups, which makes sense. Make sure you don't start apache before network is up.


Make a custom Compose Key for normal characters

Alternative method using xmodmap.

First, find out the keycode for the replacement key. Hit your required replacement key after executing the following command.

xev | grep -A2 --line-buffered '^KeyRelease' | sed -n '/keycode /s/^.*keycode \([0-9]*\).* (.*, \(.*\)).*$/\1 \2/p'

You will see keycode and its name echoed to screen. Close the other window which popped up with the command to exit xev command. Now just put the following lines in your bash_profile or somehow make these commands to run at startup:

xmodmap -e 'clear Lock'
xmodmap -e 'keycode 32 = Caps_Lock'


Email backup/archival program that saves emails as *.txt files

Here is a Thunderbird addon that can perform the necessary backup. It can save to multiple text files, or just one, depending on your settings, and is licensed under the GNU GPL.


This seems to be a limitation of XRDP at the moment.  Technically, you cannot connect to the console session.  As you have noticed, you can reconnect to the same remote session but you will not be able to connect to the console session (as far as I know)

You could use some tips and tricks in order to connect to the console session.  Basically, you could use the xrdp solution and instead of selection Xvnc-sesman option you could select the vnc any option... A full explanation on how to achieve this can be found in this link

You are technically connecting using VNC Software through the xrdp software.....

Hope this help
Till next time
See ya


Download the keepalived version you like

tar -xzvf keepalived.gz.tar
cd keepalived
sudo make clean
./configure
make
sudo make install

Open a terminal and execute the following commands:

sudo nano /etc/init.d/keepalived

Now, copy and paste the contents of the following into the terminal:

#! /bin/sh
#
# keepalived   LVS cluster monitor daemon.
#
#              Written by Andres Salomon <dilinger@voxel.net>
#
### BEGIN INIT INFO
# Provides:          keepalived
# Required-Start:    $syslog $network $remote_fs
# Required-Stop:     $syslog $network $remote_fs
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Starts keepalived
# Description:       Starts keepalived lvs loadbalancer
### END INIT INFO
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
DAEMON=/usr/local/sbin/keepalived
NAME=keepalived
DESC=keepalived
TMPFILES="/tmp/.vrrp /tmp/.healthcheckers"

#includes lsb functions
. /lib/lsb/init-functions

test -f $CONFIG || exit 0
test -f $DAEMON || exit 0

# Read configuration variable file if it is present
[ -r /etc/default/$NAME ] && . /etc/default/$NAME

case "$1" in
  start)
        log_daemon_msg "Starting $DESC" "$NAME"
    for file in $TMPFILES
    do
            test -e $file && test ! -L $file && rm $file
    done
    if start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
               --exec $DAEMON -- $DAEMON_ARGS; then
        log_end_msg 0
    else
        log_end_msg 1
    fi
       ;;
  stop)
    log_daemon_msg "Stopping $DESC" "$NAME"
    if start-stop-daemon --oknodo --stop --quiet --pidfile /var/run/$NAME.pid \
            --exec $DAEMON; then
        log_end_msg 0
    else
        log_end_msg 1
    fi
       ;;
  reload|force-reload)
    log_action_begin_msg "Reloading $DESC configuration..."
        if start-stop-daemon --stop --quiet --signal 1 --pidfile \
               /var/run/$NAME.pid --exec $DAEMON; then
           log_end_msg 0
    else
        log_action_end_msg 1
    fi
       ;;
  restart)
    log_action_begin_msg "Restarting $DESC" "$NAME"

        start-stop-daemon --stop --quiet --pidfile \
        /var/run/$NAME.pid --exec $DAEMON || true
       sleep 1
       if start-stop-daemon --start --quiet --pidfile \
               /var/run/$NAME.pid --exec $DAEMON -- $DAEMON_ARGS; then
           log_end_msg 0
    else
        log_end_msg 1
    fi
       ;;
  *)
       echo "Usage: /etc/init.d/$NAME {start|stop|restart|reload|force-reload}" >&2
       exit 1
       ;;
esac

exit 0

Press CTRL + o to save the file and press CTRL + x to exit nano. Then, execute the following commands:

sudo chmod +x /etc/init.d/keepalived
sudo /etc/init.d/keepalived start
sudo update-rc.d keepalived defaults


nm-applet problem solved, Paul Crowley came up with this solution:

sudo stop gdm
sudo stop network-manager
sudo ifdown eth0
sudoedit /etc/network/interfaces # comment out eth0 entry
sudo start network-manager
sudo start gdm

Regarding the Gwibber issue, Paqman on Ubuntu Forums clarified that the indicator-me package for Me Menu in Maverick is responsible for a recommended package dependency on Gwibber.

As hrhnick suggested in the comments, executing the command gconftool-2 -s --type bool /apps/gksu/sudo-mode true solves the gksu issue.


Installing Nvidia Additional Driver failed in Ubuntu 12.04

I made this jobs step and it works! :

sudo apt-get update

sudo apt-get install linux-headers-generic  (was already installed)

sudo apt-get dist-upgrade

sudo reboot

sudo apt-get install nvidia-current

sudo nvidia-xconfig

sudo reboot

and thats all, install nvidia 304 driver and could use MyUnity perfectly !!!

(based on How to install NVIDIA driver in Ubuntu  by Max Tither)


Oh well, I figured it out. Open a File Manager window, go to Edit -> Preferences, and set Show Thumbnails to Never.


How do I upgrade WordPress Installed by APT?

To update software that was installed in apt, you use the following two commands:
sudo apt update

(to update the list of available software)
and
sudo apt upgrade

(to update packages to the latest version)

If you are wondering why Ubuntu repositories don't have the latest software version available somewhere else, please see "Why don't the Ubuntu repositories have the latest versions of software?".


Roaming profiles - central home directories

First,  note that the /home directory contains your personal configuration files for different programs as well as documents and data. For example, the config file for LibreOffice 4.0 may be slightly different from the 3.6 version and syncing them may create some problems. I will assume you only want to sync data and document files between L1 and L2 for user A.

Soultion One: [Cloud]

Use Ubuntu One to sync the Documents and any other folder you need between the two home folders of L1/A and L2/A.

The Ubuntu One comes pre-installed in Ubuntu. Start the program and create an account id you don't have one.

Open Nautilus and right click on the folder and and select "Synchronize on Ubuntu One" on both L1/A and L2/A.

Note, This is an Internet based solution and has some limitations. For example, the free account only has 5GB of space. The sync won't work if there is not Internet connection. If you delete a file from L1 it will get deleted from L2 as soon as you login to L2.

Advantage, both L1 and L2 do not have to be turned on at the same time for the sync to work.

Solution Two: [GUI Local solution]

Use Unison, a folder syncing software on both L1 and L2. This is a bit harder to setup and is not as automated as Ubuntu One. Both the computers need to be turned on for sync to happen.

It may be better to have a Desktop (D1) that is always on and use that as the Unison server and sync L1 and L2 with D1. A how to setup is available for a slightly older version and another one is here. I am not describing the setups in these links here, as they each describe a slightly different setups than what you want.

Solution Three: [Command Line and Scripts]

Use the commands rsync and anacron to periodically sync L1 and L2. for example from L1:

rsync -vxtr -e ssh [user]@[IP_address_of_L2]:/home/[user]/Documents/ /home/[user]/Documents/

See How to sync files/data between two PCs on a home network?.

See How can I run anacron in user mode? also.

As with Unison, both the L1 and L2  must be on for this to complete.

There may be other solutions.

Hope this helps


How to install proproetary 352 nvidia driver

From the Dash, run the "Software Updater", and select the "Settings" button.  Under the "Ubuntu Software" tab, ensure the "Proprietary Drivers" is checked.  Under the "Additional Drivers" tab, see if the 352 driver is offered.  That is the best way to install a proprietary driver.


How to send DHCPD leases to remote syslog-ng

Check /var/lib/dhcp/dhcpd.leases (or /var/lib/dhcp3/dhcpd.leases) file. The somewhat outdated manpage says you might have to create the file with touch first. I don't remember ever having to do that.

As to the MySQL part, if you don't have that figured out already, you might use some dynamic scripting language like Python or Perl with either standard access module, or some ORM (like SQLAlchemy) for richer but more complicated setup. Any questions about that would be more suited for stackoverflow though


As I understand:

webasyst uses swiftmailer
swift mailer takes care of non US-ASCII (non plain english) characters in email headers
[non-ASCII characters is email adrress itself (info@molodost.bz) is a longer story]

https://swiftmailer.symfony.com/docs/headers.html#text-headers

  If the header contains any characters that are outside of the US-ASCII range however, they will be encoded. This is nothing to be concerned about since mail clients will decode them back:

  $subject = $message->getHeaders()->get('Subject');
  $subject->setValue('contains – dash');
  echo $subject->toString();

  /*
  Subject: contains =?utf-8?Q?=E2=80=93?= dash
  */


Take a look at this forum post:
https://ubuntuforums.org/showthread.php?t=2177810

Basically you need to install a VNC server on your Ubuntu Server

I followed this forum post to setup my VNC server:
How do I install a VNC server?

Hope it helps =)


Ubuntu Shuts Down on Restart (v 14.04.1)

I had a similar problem with my desktop and I fixed it magically by changing some options on my computer BIOS. Here is my question

My specs and symptoms are similar to your so maybe this will help you out.


How to disable SMART checks for removable drives

I found the following workaround: After removing the drive, restart the SMART monitoring daemon:
sudo systemctl restart smartmontools.service

This will prevent further e-mails. To silence the initial message as well, stop the deamon before removing the USB disk, then start it again:
sudo systemctl stop smartmontools.service
# Remove USB disk
sudo systemctl start smartmontools.service


Missing Some Icons Cinnamon installed on Ubuntu 12.04.4

Install the gnome-icon-theme-full  package:

sudo apt-get install gnome-icon-theme-full


No Sound on Intel Ubuntu 18.04 chromebook

Don't know if this will help but I also had this issue when trying to use ubuntu 16.04 with an acer chromebook

The solution was listed here in this answer - No Sound on Ubuntu 15.10 running on Acer CB3-111-670 Chromebook

I have only just installed xubuntu 18.04 not got round to trying to get the sound working myself.

Good luck :)


MonoDevelop is the best IDE for Ubuntu, to install mono in bash:

sudo apt-get install monodevelop

or use the ubuntu software center, search for mono, then install it.


Trackpad lenovo ideapad 3 Ubuntu not working

I am seeing this same issue regarding non-working touchpad with new Lenovo Ideapad 3 and V15 laptops. Please try to change grub settings according to this answer: https://askubuntu.com/a/1302468/9578


Oh, I find a resolution to this problem: just run IDE without sudo.

Then, if there is an error about permission denied for file 'filename', just execute

  sudo chmod -R 777 'filename'

Then I can open IDE without sudo, and import tensorflow successfully.


How to run specific commands without to press enter key

You can use bind:

bind -x '"<command>"':<command>

For example bind -x '"ls"':ls will make that when you type only ls (not followed by Enter) to show directly the result of ls command.

To make the change permanently, you can insert the previous line in ~/.bashrc file.


Ubuntu crashed unexpectedly when browsing

If you don't have the Ubuntu Live CD, go find another computer, download the image and burn it on a CD/DVD.

When you've done that, or if you already have the live CD, make sure your BIOS is set to boot from CD/DVD before booting from HD.

When your pc is off, put in the Ubuntu Live CD, close the drive and startup your pc. When you are asked, choose "run live CD" and wait until you see the desktop. In the Live session, you can access any HD, USB drive, etc... you want. If you want, you can reinstall the Ubuntu OS.


Why doesn't the installer see all of my hard drives?

Try to boot a live session and start a terminal session (or to switch to the console with CTRL-ALT-F1) and issue:

sudo os-prober

You'll probably see a probing error which could be the reason why your drive is not taken in consideration. It's quite likely that your second drive has leftovers of a RAID configuration, in this case it's sufficient to do:

sudo dmraid -rE

(-r = raid, -E remove metadata) and confirm the operation. Start the installer and you should see it.


I suggest you create some Input rule that allows all established and related traffic like:

$IPTABLES -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT

Also you should always allow your loopback-device:

# Allow loopback interface to do anything.
$IPTABLES -A INPUT -i lo -j ACCEPT
$IPTABLES -A OUTPUT -o lo -j ACCEPT

If your default output policy is accept, most problems should be gone. Otherwise you should also add:

$IPTABLES -A OUTPUT -m state --state ESTABLISHED,RELATED -j ACCEPT

and open the ports for HTTP(s), DNS, ICMP or whatever you need.

https://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers

https://en.wikibooks.org/wiki/Communication_Networks/IP_Tables


Is there a fingerprint reader tool available for Ubuntu?

I know that fingerprint-gui stores the fingerprint data locally in .bir files. I'm not sure if there's any way to open those in some sort of image viewer, but that's the only solution I can think of.


Which is the best format to save a slideshow in OpenShot?

You can use avi and mpeg4 format. Those are more popular and compatible with almost every platform. You can also use the mov format, which is default on Mac.

You can also use wmv format as this answer suggests.

If you want higher quality, Try using HD format.

Codecs/formats missing error:

These errors are showing because, Openshot requires some enhanced codecs to performs video conversions which are not available from multiverse repository due to licensing issue in some country. So, Be sure to check the local law about using proprietary codecs before doing the following procedure.

To be able to use those enhanced codecs, you need to add "medibuntu" repository and install the enhanced ones.

Go to this Ubuntu help page and follow the procedure to add medibuntu repository.
Do sudo apt-get update in a terminal
Install the codecs with this command:

sudo apt-get install libavcodec-extra-53 libavdevice-extra-53 libavfilter-extra-53 libavformat-extra-53 libavutil-extra-53 libswscale-extra-2 libpostproc-extra-52

This command is for Ubuntu 12.04. In earlier versions, the package name may contain 52 or 51 in their name.

Additionally, You can install libdvdcss2 and not-free-codecs too. See this link for more help.


Ubuntu 16.04 server ports are closing on their own

The problem had to do with my router not getting the correct arp information. I fixed the problem by giving my router static arp entries.


How to disable the OpenVPN Web UI and keep tunnelling feature

You can't actually disable it because the client connection relies on it. However, you can set it to localhost only, so it refuses all external connections except for openvpn clients.

/usr/local/openvpn_as/scripts/sacli -k admin_ui.https.ip_address -v localhost configput
/usr/local/openvpn_as/scripts/sacli -k cs.https.ip_address -v localhost configput
/usr/local/openvpn_as/scripts/sacli start

the value "-v" you can use 'localhost' even '127.0.0.1'(for other tunnels) or server's  public ip and interface name like 'eth2'


How do I correctly partition for a dual-boot 12.04 install?

The extra partiton Ubuntu can't use may be preventing it from automatically partitioning.
You said "I shrunk my Windows partition and formatted it for a fresh Ubuntu install to dual-boot alongside Win7."
If you're able to shrink the Windows partition and you make sure to shut down or reboot Windows normally before attempting to install Ubuntu (that is, do not have Windows just hibernated when you boot the installer), Ubuntu should be able to make its own partitions. You said you shrunk down the Windows partition. I'm guessing you did this in the Disk Management utility in Windows or some other utility you're comfortable using (since you said you don't really know how to use the manual partitioning utility that's part of the Ubuntu installer).
But it sounds from what you said that you created a partition yourself for Ubuntu to use. Ubuntu will not automatically use this (and probably cannot, as NTFS is not supported and by default Ubuntu makes two partitions for itself).
Therefore, the best thing to do--especially since your preference is for Ubuntu to partition itself, and that appears most in line with your needs--is to remove the empty partition you made for Ubuntu to use. I believe the odd error installing GRUB is probably the result of incorrect manual partitioning. If that is the case, it should go away if you can get Ubuntu to make its own partitions.
After removing the partition you recently created, try booting the Ubuntu live CD/DVD/USB and attempting installation again. If there's free unpartitioned space on the disk large enough for Ubuntu to be installed comfortably, then Ubuntu's installer won't try to resize partitions, and it should just work.
...Unless your whole disk is formatted as a Windows dynamic disk. Ubuntu cannot install to such a disk. In that case you'd have to convert it back to a "basic disk" (or install to a different physical drive). You probably are not--Windows does not make your disk "dynamic" unless you tell it to--but it is possible.
Related information:

How do I install Ubuntu?
How can I install Ubuntu without removing Windows?
Install Alongside Windows or Something Else - Which should I use?
The official installation instructions.
"Install alongside" option missing. How do I install Ubuntu beside Windows using "Something Else"?

Shrink down the Windows partition manually in Windows, or leave it for Ubuntu's installer?
You asked:

I did everything exactly as you guessed/described. I have since rejoined that partition back to my Windows partition. Just for final clarity, you are telling me NOT to partition anything at all from my current, existing windows C: partition and to just run Ubuntu from the USB/CD and it should be able to create its own?

Ubuntu's installer should be able to resize your Windows partition, but sometimes it is not able to do so (even if you are not currently hibernated in Windows). Since you are able and willing to repartition in Windows, I think it does make sense to create space for Ubuntu in Windows's Disk Management utility.
However, this space should be unpartitioned. That is, it should not be a new additional partition, just empty space on the disk with no partition in it. This is the result of shrinking down the Windows partition without making a new one (or alternatively, of deleting the new one but not expanding the Windows partition).


A VirtualBox guest should perfectly suspend together with the host. After waking up the host from suspend the guest OS will wake up too.

Because hardware power saving modes are only virtualised this may not work as expected from "suspending" a guest OS.

If we do not want to suspend the host we have several different options for a guest in VirtualBox:

Pause/Resume Host + P

This will just pause running a virtual machine to release CPU load. While pausing a virtual machine it will be greyed out and be frozen until we resume.

From command line:

VBoxManage controlvm <name> pause
VBoxManage controlvm <name> resume

Save a machine's state

On closing the Virtual Box guest windows Rather instead of power off we can also choose to save a machine's state which would be similar to hibernating. This will terminate the instance of a virtual machine and will release all resources. On the next start the state of the machine will be fully restored from a save file on the hard disk. Depending on the hard drive read speed this is often much faster than a reboot.

From the command line:

VBoxManage controlvm <name>  savestate


There are at least two, no -- three options. Four options. Amongst our options...

scp can be used to directly copy files, in the style of the cp command line:

scp filename yourlogin@server:/target/folder

The sftp commands works like ftp: you start it, and then can use the ftp-style commands like put and get to transfer files back and forth. Here is a sample session:

myname@leukothea:~/tmp4$ sftp myname@leukothea:/tmp
Connecting to leukothea...
Changing to: /tmp
sftp> put log.txt
Uploading log.txt to /tmp/log.txt
log.txt      100%   26     0.0KB/s   00:00
sftp> ls
RtmpEZgt4t
RtmpU3qZ4z
log.txt
sftp> quit

You can use one of the numerous programs for FTP/SFTP, including Nautilus -- just enter sftp://username@server:/path/to/dir to the Location bar. Now you can just drag files to the target directory.
You can use rsync to synchronize whole folders, keeping modification times etc. This is one of the most useful commands.
Five, five, not four. You can use sshfs to mount your ssh-accessible filesystem like a network drive:

sudo apt-get install sshfs
mkdir ~/remote
sshfs user@server:/path/to/dir ~/remote

You now can navigate to the remote folder in your home directory and use whatever local commands or tool to copy the files.


Ubuntu 14.10: Error while reading from descriptor - broken pipe

looks like a common issue for ubuntu 14.10.. https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-304/+bug/1364630


xampp- unable to start apache on ubuntu 16

You need to find process id using sudo. Processes which are occupied by other users, their pid can not be seen to rest of the users. Only root can see these. As you have used sudo to start lampp, I am assuming you are a sudo user.

sudo netstat -lnp | grep :80
sudo netstat -lnp | grep :3306

Now you will be able to see both pids. You need to kill those processes.

sudo kill -9 <pid1>
sudo kill -9 <pid2>

If there are no processes running on respective ports but still same warning is visible, you can remove pid files manually.

sudo rm /opt/lampp/logs/httpd.pid
sudo rm /opt/lampp/var/mysql/<hostname>.pid


Lag can be caused by many different factors, and it depends on the software you are attempting to run. The key causes are usually, INTERNET CONNECTION, cpu, storage device, graphics card, and ram.

If you have a poor graphics card try running the game a really low resoulution with eye candy dialed down.

If you have a poor cpu don't run anything else at the same time as you are playing (eg don't listen to you music collection at the same time).

If you have a slow storage device (for example a laptop hard drive) consider setting up a ramdrive (eg tempfs) and running the game from their via a chroot.

If you have not much ram consider adding a larger swap partition and store it on the fastest drive you have.

If you have a terrible internet connection, try adjusting the game's internet settings to match what you have. Remember most internet connections have bad times of day and good times of day due to high or low usage of other users, so try playing at a different time and see if that helps.


How to check "apt-get upgrade" status after losing ssh connection?

The following logs are related to apt upgrades:

/var/log/apt/history.log
/var/log/apt/term.log
/var/log/dpkg.log

If the command was dist-upgrade, there are additional logs in:

/var/log/dist-upgrade

FYI, it is usually safe to just re-run the upgrade and apt will continue where it left off when the process died due to disconnection.  However...

A GNU Screen Primer:

When ssh'ing into a remote server and starting a long-running process in the foreground, it is best practice to use GNU Screen.  Screen provides a virtual terminal that continues running even if your ssh connection is lost.

Install screen:

sudo apt-get install screen

Run screen:

screen

After running screen you will get a command line prompt as with a normal terminal.  You can then run the upgrade from inside screen:

sudo apt-get upgrade

To understand how this works, "detach" screen by pressing Ctrl+a, d.  This will return you to the non-screen terminal.  You can see the list of running screens with

screen -list

If you only have one screen running, you can reattach it with:

screen -raAd

(This detaches screen in case it is attached elsewhere, and reattaches it to the terminal you are currently running.)

Typically you cannot scroll 'normally' from within screen without some extra setup.  To scroll within screen, press Ctrl-Esc to enter cursor mode.  You can then scroll down and up with j and k.  Press Esc again to exit cursor mode.

There are many more resources on the net available for additional screen functions.  It is an invaluable standard tool for system administration.

See also:

How to keep processes running after ending ssh session?


Xubuntu 17.10 - no sound, alsa says no such file or directory

Right, so I suspected something was up when I found a site with nightly builds of the audio driver, and they were all amd64. The version of 17.10 I was running was i386 - it was an older machine that came out right around when 64 bit CPUs started hitting the mainstream, and it only has 2GB of RAM anyway, so I thought whatever, I'll just get the i386 build.

Turns out, the driver for the audio system is 64 bit compatible only. Sort of shocking since this is an older machine though I guess for a lot of folks there isn't much point in upkeeping an i386 driver these days.

Anyway, the solution to this problem is literally to install 64 bit Ubuntu (I use Xubuntu). I went with 16.04 as it's LTS, but that's not what solved the problem.

Hope this helps someone down the line.


Updated to 14.04, can't connect to the wireless network

Your iwconfig output doesn't say anything about power management. Try following:

Launch terminal (Ctrl+Alt+T) and write:
sudo touch /etc/pm/power.d/wireless
sudo chmod 755 /etc/pm/power.d/wireless
sudo gedit /etc/pm/power.d/wireless
copy paste following into the opened file:
!/bin/sh
/sbin/iwconfig wlan0 power on

Save the file and close gedit.
sudo reboot


System requirements for Ubuntu installation

You can run it but if I were you I would upgrade that! For that PC, it would be best to put a Lubuntu version on which will be much lighter and faster!

Lowest Specs: Ubuntu Desktop Edition

700 MHz processor (about Intel Celeron or better)
512 MiB RAM (system memory)
5 GB of hard-drive space (or USB stick, memory card or external drive but see LiveCD for an alternative approach)


How long did you wait before the hard restart?

On my machine it did take a little while to load when running from USB, maybe a minute or so of a black screen before there was an Ubuntu loading icon.


How can i upload folder from my local machine to EC2 inastance

The options for scp are similar to ssh in that you need to specify the username if you do not want to connect using your own. By having sudo in front of the command, you’re running scp as root, which is being passed to the connection string because you’ve not defined something different.
Try this:
scp  -i ~/.ssh/my_key.pem -r /path/to/source ec2-user@123.123.123.123:/home/ec2-user/destination/

Be sure to change the various details for your situation, and be sure that the destination directory already exists as it will not be created by scp.


MATE: How to show additional existing keyboard layouts?

If you had used Ubuntu with GNOME, this command would have fixed it:
gsettings set org.gnome.desktop.input-sources show-all-sources true

I think MATE is different, but maybe there is some equivalent to show-all-sources in MATE's dconf settings. You may want to install dconf-editor and use it to browse around and search.


Reinstalling Ubuntu after unsuccessfully uninstalling

You're going to want to select the "Manual" method if none of the automatic methods are working as you expect. It really isn't that scary, so don't worry.
All that you're going to need to do is correctly identify the partition(s) that your previous Ubuntu installation was using, and tell the installer to use those.

The "If you have disk that contains Windows installed" answer to this question should in particular be of use to you, except you do not need to follow step 4, since you already have the space freed.

How to use manual partitioning during installation?


How to disable Alert volume from the command line?

Hunted for this for a long while. Especially since I do not use pulseaudio and I cannot mute the alert sound from the UI (WTF!?)

This does it. Oh the sweet joy of silence!

# gsettings set org.gnome.desktop.sound event-sounds false


How to hide window title and menu bar in GNOME Shell?

To answer you directly - no its not "easy" for gnome-shell to have unity's global menu.

However, there is an alpha quality gnome-shell global unity patch available (patch below).

As to redisplaying the minimize-maximize and close decoration back-into gnome-shell - just use gconf-editor and change the key shown - note the position of the close - minimize - maximize buttons

Compile Gnome-Shell global menu

sudo apt-get install git-core valac-0.12 libvala-0.12-dev libgtk-3-dev gobject-introspection libgirepository1.0-dev libgtk2.0-dev autotools-dev automake autoconf intltool libtool

cd
mkdir -p globalmenu
cd globalmenu
wget http://gnome2-globalmenu.googlecode.com/files/gnome-globalmenu-0.9.alpha5.tar.bz2
tar -xvf gnome-globalmenu-0.9.alpha5.tar.bz2

git clone git://github.com/gnome-globalmenu/gnome-globalmenu.git

cd gnome-globalmenu
git checkout gnome-3
cp ../gnome-globalmenu-0.9.alpha5/src/{module.c,header.h,header-gtk2.h} ./src

autoreconf --force --install --verbose
./autogen.sh --prefix=/usr
make
sudo make GTK2_MODULES_DIR=/usr/lib/gtk-2.0/modules GTK3_MODULES_DIR=/usr/lib/gtk-3.0/modules GLIB_COMPILE_SCHEMAS=/bin/true install
sudo glib-compile-schemas /usr/share/glib-2.0/schemas

sudo rm /usr/share/gnome-shell/extensions/GlobalMenu@globalmenu.org/{metadata.json,extension.js,stylesheet.css}
cd
wget http://webupd8.googlecode.com/files/GlobalMenu-globalmenu.org.tar.gz
tar -xvf GlobalMenu-globalmenu.org.tar.gz
sudo cp GlobalMenu@globalmenu.org/{metadata.json,extension.js,stylesheet.css} /usr/share/gnome-shell/extensions/GlobalMenu@globalmenu.org/
sudo ln -sfv /usr/lib/gtk-2.0/modules/libglobalmenu-gtk2.so /usr/lib/gtk-2.0/modules/libglobalmenu-gtk.so

open GNOME Tweak Tool (install it in Ubuntu: sudo apt-get install gnome-tweak-tool) and enable the Global Menu extension

Now open Dash and search for Startup Applications

Add an entry gnome-globalmenu-manager

Complete the installation:

sudo cp ~/globalmenu/gnome-globalmenu/globalmenu.sh /etc/profile.d/
sudo chmod +x /etc/profile.d/globalmenu.sh

not tested by myself - original source and updated instructions


Some webpages don't load properly in any Linux distro on Thinkpad T420

I had some issues recently using "ad" heavy sites like facebook, etc..   not sure if the problem is the same but these site would lock up the browser and ultimately the computer - What I found was that (after benchmarking the machine) Any web page that had lots of "ad" implementations like facebook or youtube or like buzzfeed (smh) the one page would be using more than 50% of the ram i had installed - What I did to resolve it was increase my ram to 2 gigs and using 32 bit system rather than a 64 bit - (im running intel core duo with 2 gigs of ram) - no more issues now bud - hopefully this helps in your troubleshooting


Genymotion virtual device does not start

I am getting the exact same error. I am using Lubuntu 18.04 LTS version and downloaded the latest version of genymotion. I created a device successfully with android 8.0 and got the exact same error as you. Could you find the solution?
I have uninstalled completely and reinstalled again but still same error.
Seems like the genymotion is not able to read login credentials and personal use license from the file in our non-root user directory. That is why it was asking me to login everytime I started genymotion.
SOLUTION:- Start genymotion as root. It works and does not ask to login again.


Ubuntu Server guest doesn't work with more than one network on Virtualbox

I encountered the same problem and discovered that the second interface shows up in the output of ip addr show, but not ifconfig. I don't know the technical reason for this, but ifconfig has been more-or-less deprecated on Linux for a while.

On my machine, my second interface is named enp0s8, so it's probably present on your VM, but with a different name than you expected.


will GRUB destroy the access to the lenovo recovery system=?

Yes, you will be able to access it. See screenshot


Ubuntu 16.04 sees but fails to print to Brother HL-L2300D

I was just having troubles with my HP M1212nf MFP, similar to your problem. In my case when I went into Printers, Policies, I noticed that Enabled became unchecked. How? Who knows?

Did you manage to solve your problem in the meantime?


I've found sollution that helps me
install sudo apt-get install sni-qt sni-qt:i386
and just restart skype


Since this does work on Ubuntu 17.04 it seems it may be a kernel issue.  See the response below...


Screen goes black after a few seconds and comes back on after i press a button

Go to System Settings/Brightness & Lock, and change the "Turn screen off when inactive for:"

Go to System Settings/Power, and check the "Suspend when inactive for:"


After Apple upgrade I'm unable to boot into my ubuntu 13.10 via refit partition

Chances are the upgrade has either removed GRUB from the MBR or adjusted the hybrid MBR on your disk. Three possible solutions spring immediately to mind:

Install my rEFInd in place of rEFIt, along with an EFI filesystem driver for whatever filesystem holds your Linux kernel. This will enable you to boot Linux more directly (via an option whose name includes the string vmlinuz), bypassing GRUB and obviating the need for a hybrid MBR.
Repair your hybrid MBR. My gdisk program (part of the gdisk package in Ubuntu, IIRC) offers the most flexible options for doing this, but the gptsync program that comes with both rEFIt and rEFInd is easier to use. (Note that rEFInd's gptsync is an updated version that will probably produce a slightly different hybrid MBR than what rEFIt's gptsync produces.)
Re-install GRUB. You can do this manually or by using the Boot Repair program using an Ubuntu live CD. It's probably best to do this after generating a new hybrid MBR, unless you're certain that your hybrid MBR is still valid.


Software emulated OpenGL with higher version than my graphics card supports

What you're attempting to do here, negates any advantages you would have coding in OpenGL. OpenGL is a set of hardware calls, translating that into CPU int or fp.

Add an extra step in the CALL, SOLVE, RENDER. So it'd be CALL, TRANSCODE, SOLVE[slower], RECODE, RENDER.

The whole call solve render happens in fractions of fractions of a second, so adding in transcode, and a recode, would at least take .010 each, thereby destroying your fps.


Can't change Backlight brightness in Asus ul20A

This isn't even close to a complete answer, but this page on the kernel's team page might shed some light on figuring out the backlight problem:

https://wiki.ubuntu.com/Kernel/Debugging/Backlight


Login Problem after home folder name changed

After rename your home directory you should still tell linux about your new home directory
This can be done by editing /etc/passwd file

Just open that file and change /home/olderFolder to /home/newFolder

For Example:

OLD:

mitesh:x:1000:1000:Mitesh Shah:/home/mitesh:/bin/bash

NEW:

mitesh:x:1000:1000:Mitesh Shah:/home/miteshshah:/bin/bash


As far as I'm aware, Nessus is no longer free. You should take a look at OpenVAS, which is a Nessus alternative (and has even better coverage), instead.

OpenVAS (Nessus alternative) and Nmap are very much different. You can use OpenVas to find vulnerabilities without knowing how to look for them as OpenVAS tries out numerous attacks collected from various sources, whereas you do need to know what you are doing, where to look for, with Nmap.


How to correctly restore system from tar backup?

Yes, all you need to do is untar the backup to a freshly formatted partition, and restore grub.  To restore grub, you want to chroot into the partition, and run dpkg-reconfigure grub-pc and set it to install grub to whichever drive you will be booting from.

sudo -s
for f in proc sys dev ; do mount --bind /$f /mnt/$f ; done
chroot /mnt
dpkg-reconfigure grub-pc
for f in proc sys dev ; do umount /mnt/$f
exit


How to programmatically log-in a user remotely

Why don't you try a program designed for ssh remote login. Details can be found here:
http://manpages.ubuntu.com/manpages/lucid/man1/ssh.1.html

Just add the program to startup list and give required params.


How to convert video along with audio in h264 ffmpeg?

I'm not aware of a way to extract the Audio and Video in a single step, but you can easily extract both Audio and Video with a short script.

Assuming the audio is AAC as in your post:

#! /bin/bash
###################################################################
i="" # edit with the input avi file name including extension
###################################################################
  ffmpeg -i "$i" -c:v h264_qsv -look_ahead 0 -strict -2 -preset:v fast -an "${i%.*}.".h264
  ffmpeg -i "$i" -vn -acodec copy "${i%.*}.".aac
done

To recombine them in in an MP4 container, you can do:

#! /bin/bash
###################################################################
i="" # edit with the input h264 file name including extension
###################################################################
  ffmpeg -i "$i" -i "${i%.*}.".aac -vcodec copy -acodec copy "${i%.*}.".mp4
done

This is not an ideal solution, as it creates an additional step (as noted in the comments).  But at least it would give you a starting point :)

Hope that helps! :)


LinuxDC++ is the Linux port of DC++ and is available in the Ubuntu Software Center on 14.04. You don't need wine for it.


Display Patches using intel GPU with xorg

solved issue but making the following change
Driver "modesetting"

but now I cannot run anything on the dGPU, is there a way to set xorg.conf to run a secondary GPU when necessary?


How to screen share with Ubuntu 16.04 from Mac OS X 10.11.6

I had the same symptoms (with the same OS versions), and by connecting a monitor to my Ubuntu machine found that Screen Sharing had defaulted to requiring confirmation for each access to the machine. Changing that setting enabled me to connect. I'm guessing that you've ruled this out already, but thought I'd suggest it just in case.


Encrypted Home Folder, no trash functionality

I have the same issue with Xubuntu 16.04.
For all users that have an encrypted /home, the trash functionality only works for folders and files that are located inside their /home. It does not work for any folder or file located outside their /home, while it does work in any location for users whose /home is not encrypted.


How to assign more than 256MB of video memory in VirtualBox?

You can not. And there is no need.

VirtualBox does not use the GPU. What you see as graphics RAM in your virtual machine is normal RAM from the host, not from your GPU.

  which is ridiculously low by today standards.

Sorry, but no. With width, height, bits/pixel 3840x2160×32 that would be 33177600 bytes or 31 MB. So the 256 MB limit is more than enough to fill ...

either 8 4K screens
or 4 4K screens with double buffering
or 2 4K screens with quadruple buffering

So even if you could increase it there is NO reason to have more than 256Mb. It would never be used and even worse: it would make it -slower-: 3D accelerated graphics is rendered by the host, not the guest, so increasing the guest graphics RAM takes it away from the host.

What you need is PCI passthrough:

  Essentially this feature allows to directly use physical PCI devices on the host by the guest even if host doesn't have drivers for this particular device. Both, regular PCI and some PCI Express cards, are supported. AGP and certain PCI Express cards are not supported at the moment if they rely on GART (Graphics Address Remapping Table) unit programming for texture management as it does rather non-trivial operations with pages remapping interfering with IOMMU. This limitation may be lifted in future releases.


Problem installing processing: java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory

This is a reported issue at https://github.com/processing/processing/issues/5111 try to download an earlier version while this is not fixed.

Processing 3.3.3 should work fine.

UPDATE: Processing 3.3.5 is out and it's working fine on Ubuntu.


How to resize the dash for desktop from terminal?

This has been tested on 13.10

I don't know if you can do it from terminal, but, you can resize the dash as shown in the images below.  Just click on the little circled rectangle, and you should be able to resize it to full window, and it will stay the same even after shutdown and restart.

Note: Keep in mind that this might change once the official release is out.

Before

After


nouveau stalled at ffff error message while trying to convert Windows 10 laptop to Ubuntu

I ran into this issue converting to Ubuntu 20.04 last night. Nouveau is the generic Nvidia driver. The fix this morning (fixed all my problems with secondary monitors, frame rates, and random black screens) was a hard re-installation with the "Install 3rd Party [whatever the rest says; can't miss it]" box checked. This will likely install your graphics driver and everything else correctly.


Wireless internet sharing is mac stuff only

WIFI hotspot enables your device to acts like an access point where other device with wirless connectivity can join the particular network and enjoying the surfing. Ubuntu 11.10 gives user easy way to turn their computer into hotspot. You can simply do it without installing any application.
To get started got to the network setting>> Wireless. You will see the following screen in your Computer.

Click on Use as Hotspot. You hotspot will be immediately create with the SSID name UBUNTU. If you want to change it go to configure

To create your own connection name change your feild in 1. To Enable security in your Hotspot click on 2 as show in above diagram. To change your SSID change your feild in 3. To cloned your MAC address of your device give Mac address in feild 4.
To Configure wireless security, select different security mode of your desire and put your desired password.

Found More info from here


How to switch from Budgie to Gnome or other ubuntu desktop environments

You select the desktop environment you want to run from the log in screen. Before entering your name and password on the login screen, click the cog icon. This will reveal a little menu with your available desktop environments. Choose the one you want to load, then enter your login and password to log in to your selected desktop environment.


Could not calculate upgrade when upgrading to Ubuntu 20.04. Can't find solution that works

From the apt.log it seems like most of the issues relate to python2, python3, etc.
Would you be willing to
    sudo apt remove python2
    sudo apt remove python3

then retry your upgrade?
If that succeeds, you may replace the packages that you need.
Make sure you capture the list of removals so that you can reinstall when you hit 20.04
avoid running
    sudo apt purge

though.
Regards,
mondotofu


How to remove Ubuntu from SSD or Motherboard?

Boot the Ubuntu USB flash drive that you have as an Ubuntu live session.
Open the GParted application and reformat the SSD to remove Ubuntu from the SSD. This will overwrite all the files that are on the SSD. If you are planning to ever install Windows on that SSD, please note that Windows requires NTFS format for the file system.
Now you can install Windows however you want.


Apache (Ubuntu) Virtual host stopped working after upgrade->restart

Yes there's the correct files in /etc/apache2/sites-enabled made with a2ensite.

They also work as the command apache2ctl -S shows.

And that was also the command that helped me find the error.

root@netcon:/etc/apache2/sites-available# apache2ctl -S
VirtualHost configuration:
*:80                   is a NameVirtualHost
         default server netcon.local.com (/etc/apache2/sites-enabled/000-default.conf:1)
         port 80 namevhost netcon.local.com (/etc/apache2/sites-enabled/000-default.conf:1)
         port 80 namevhost netcon.local.com (/etc/apache2/sites-enabled/netcon.local.com.conf:1)

There's two times netcon.local.com and the first one is pointing to 000-default.conf that's why (I guess) the default page is shown.
When I disable the default site with a2dissite my website works.

Why this turns up after an upgrade I don't know; maybe someone can explain it? Hostname = website name?


It has problems with Raid. Basicly you can setup new hardware RAID0 via BIOS and you should install grub to something like: /dev/mapper/YOUR_RAID_NAMEp1

Last two simbols mean that it will be install in first partition.

You can create soft RAID. More details in this manual.


Was resolved by restarting Unity (unity command in Alt+F2 dash). Which is strange as neither relogin, nor shutdown and start of the laptop resolved the issue.

If somebody can explain this, please do! I still need the correct way of resolving the issue.


RaLink 3090 unstable wireless connection

I also have RT3090 on Ubuntu.
My wifi only works on TKIP type encription, if the network has AES, it does not work at all.
I changed my configs on my router and my internet connection at home is fine.
Otherwise, I have to log on Windows. I have tried multiple solutions including the ones you said above and none of them worked. I also tried on Debian, Mint as well.

Sorry if it does not solve your problem but at least is something you may try. An also about my english, not my native language.


Xubuntu 14.04 Software Updater not finding any updates?

Go into System Settings -> Software & Updates -> and navigate to the tab where it asks you if you want all versions of Ubuntu or just stable ones then change it to all, and then do a sudo update-manager -d


Cheese doesn't record video from my webcam

Try running:

sudo apt-get install gstreamer1.0-pulseaudio

Then once the install is finished try running cheese.

If this doesn't work I have found the program guvcview more stable than cheese for webcam recording.


when I start AP-hot spot it says already a process is running and if I stop and try to start again it says another process already running again

Your command prompt should look like this,

$ sudo ap-hotspot start
Another process is already running
$ sudo ap-hotspot stop
Wireless Hotspot is not active

In this case whatever command you try, won't work. It would display the same error like  above.

For this you have to remove hotspot.pid file present inside /tmp directory. So that only it would  work.

sudo rm /tmp/hotspot.pid

And then try to start ap-hotspot by running,

sudo ap-hotspot start

To stop,

sudo ap-hotspot stop

To configure,

sudo ap-hotspot configure


how to enable unity global menu on Android Studio in Ubuntu 14.04

Haven't personay try it but this is what is seems you need:

Java Swing Ayatana is a project that brings Ubuntu global menu (AppMenu) and HUD support for Java Swing applications.

JAyatana version 2 was released recently, getting support for Ubuntu 13.10 along with a PPA for easy installation. Update: the PPA now supports Ubuntu 14.04 and 14.10.

http://www.webupd8.org/2014/02/get-unity-global-menu-hud-support-for.html

Terminal:

sudo add-apt-repository ppa:danjaredg/jayatana
sudo apt-get update
sudo apt-get install jayatana


Wireless card not working? (Broadcom 4311)

With a temporary internet connection:

sudo apt-get update
sudo apt-get purge bcmwl-kernel-source
sudo apt-get install firmware-b43-installer

Reboot and tell us if your wireless is working.


How to map volume buttons on Apple EarPods

Apple EarPods use a special/different type of connector layout called CTIA.

Your Macbook works perfectly with CTIA headphones because they are both Apple products and implement CTIA. Your ubuntu setup most likely uses OMTP.

Here is an image depicting the mismatch:

This incompatibility will prevent you from using your Apple EarPods