How can I install CUDA 9 on Ubuntu 17.10

Installation of NVIDIA driver 384

First we install a fresh Ubuntu 17.10 on a computer with an NVIDIA GPU and select "Install third-party software" during the process. Alternatively, we can add the graphics drivers repository manually:

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

Then we install the most recent NVIDIA driver using apt:

sudo apt install nvidia-384 nvidia-384-dev

We verify the installation by running:

nvidia-smi

We should see an output which lists the NVIDIA 384 driver and our discrete NVIDIA GPU - similar to summarized table below:

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 384.90                 Driver Version: 384.90                    |
|                                                                             |
|-------------------------------+----------------------+----------------------+
|   0  Quadro M500M        Off  | 00000000:06:00.0 Off |                  N/A |
| N/A   48C    P0    N/A /  N/A |    943MiB /  2002MiB |     26%      Default |
+-------------------------------+----------------------+----------------------+

Preparation for installing of CUDA 9 + SDK

We install a number of build/dev packages which we require later:

sudo apt-get install g++ freeglut3-dev build-essential libx11-dev libxmu-dev libxi-dev libglu1-mesa libglu1-mesa-dev

We notice that the default gcc/g++ version on 17.10 is 7.2.0 (Ubuntu 7.2.0-8ubuntu3)
:

gcc -v

CUDA 9 requires gcc 6. Thus, we install it:

sudo apt install gcc-6
sudo apt install g++-6

Note that the default gcc version is still 7.2; can be checked by running gcc -v again.

Installation of CUDA 9 + SDK

From the CUDA Toolkit Archive, select one of the "runfile (local)" installation packages to download a version of CUDA 9, such as

wget https://developer.nvidia.com/compute/cuda/9.0/Prod/local_installers/cuda_9.0.176_384.81_linux-run

Make the downloaded file executable and run it using sudo:

chmod +x cuda_9.0.176_384.81_linux-run
sudo ./cuda_9.0.176_384.81_linux-run --override

We install CUDA with the following configurations:

You are attempting to install on an unsupported configuration. Do you wish to continue?
y
Install NVIDIA Accelerated Graphics Driver for Linux-x86_64 384.81?
n
Install the CUDA 9.0 Toolkit?
y
Enter Toolkit Location
[default location]
Do you want to install a symbolic link at /usr/local/cuda?
y
Install the CUDA 9.0 Samples?
y
Enter CUDA Samples Location
[default location]

Set up symlinks for gcc/g++:

sudo ln -s /usr/bin/gcc-6 /usr/local/cuda/bin/gcc
sudo ln -s /usr/bin/g++-6 /usr/local/cuda/bin/g++

Test the CUDA 9 installation using the SDK

Build your favorite CUDA sample and run it:

cd ~/NVIDIA_CUDA-9.0_Samples/5_Simulations/smokeParticles
make
../../bin/x86_64/linux/release/smokeParticles

You may like to set up gcc/g++ symlinks after the cuda install.


I don't think darktable can control the zoom operation in your camera. I think darktable doesn't have to do that anyway.

I haven't tested the tethering function in darktable, so I'm just interested in your question. Here is my guess.

Try Alt+1, Alt+2, Alt+3. These shortcuts are for zooming in the Lighttable and Darkroom mode in darktable gui application.


How can I get older version of Flareget?

It looks like they're restricting connections-per-download to push the paid version.

Given that it's non-free and they control the downloads (and delete their old versions), I don't know what your options are here short of finding somewhere else that has held on to an old copy of one of their debs.

I'd start looking in binary warehouses like Softpedia (they have it here) who tend to be pretty slow at deleting old things. Softpedia has already updated in this case, but others may have older binaries. Searching for the filename flareget_1.4-9_amd64.deb may work... But I shouldn't have to remind you what horrible security ramifications this has.

I would personally just find something else. Axel, FlashGot, JDownloader2, FATRAT for some examples. There are many out there.


If I got it. You wish to NM always ask for u/p combination.

start NM
select vpn connection
go to configuration
on tab VPN section Optional right from pass you have list box and can pick option "Always Ask"


Headphones and internal speakers suddenly broken Ubuntu 14.04

First: Select correct output
Have you tried selecting a different output in Sound Settings? You can enter through the sound indicator, the settings menu or by searching for 'Sound' in the Unity Dash.

Here you can select the output for your sound. Just clicking the output will change were you will listen it from.
If you haven't done this then try it.

Else: Reset User Configuration for PulseAudio
I would suggest deleting all user preferences as suggested here.
In terminal at your home directory (~/) enter this:

rm ~/.pulse*
rm ~/.config/pulse/*
pulseaudio -k

The first to delete any specific configuration for your user and the last kills the server which restarts automatically.

Or Else: DPKG-Reconfigure
In terminal run: sudo dpkg-reconfigure pulseaudio.
This resets the configuration to defaults and may fix your problem.

Hope this helps.


I have an Android device (Motorola Milestone, called "Droid" in the US) that works great with Ubuntu... but you actually don't need to "sync" it, since the purpose of Android is to sync with your Google account.
 Then I have my Thunderbird + Lightning synced with my Google mail/contact/calendar (also works with Evolution), and I have the Android smartphone doing the same on its side.

You also can use UbuntuOne contact syncing if you prefer (works on Evolution, Thunderbird, and Android devices). It is still in beta, and seems to be targetted for paying users, but it may be a solution, if you don't want to rely on Google only :)

Then for music: Rythmbox can see it when I plug it on USB, and I can manage my phone's playlist from it. For photo/video/whatever, the phone is actually seen as a USB drive, so you can go put/remove files as you like.

No issue so far, I really find it easy to use.

Edit: About the iPhone... I guess it's worth some comments :)

We already have questions about iPhone syncing with Ubuntu on this site. Run a search for "iPhone" to find more. But you'll find all needed information here: https://help.ubuntu.com/community/PortableDevices/iPhone

Basically: it works, at least for music/video/podcast syncing. You can even get tethering working. Contact/calendar cannot be synced, but you can sync your iPhone to Google, so it's not a big deal.

Now the fact is that some things will require iTunes. For instance: Application management, phone's upgrade and phone's settings backup. And iTunes doesn't work on Linux :(

I am mentionning it because I know people are advertising the support of iPhones on Ubuntu, while this support is not as complete as you might think.

I had an iPhone some times ago. Great device, but I had to sell it because of this incompatibility (and other personal reasons). No fun to have a VM just for iTunes :-(


To replace a bad default shell for root with fish:

Install fish (with sudo apt install fish if you want Ubuntu's package)
Run sudo nano /etc/pam.d/chsh
Insert a # in front of the line auth       required   pam_shells.so
Save and exit by pressing Ctrl+O, Enter, Ctrl+X
Run sudo chsh -s $(which fish) (remove the $ if you're doing all this within fish)
Run sudo nano /etc/pam.d/chsh
Remove the # you inserted
Save and exit by pressing Ctrl+O, Enter, Ctrl+X

Now, you can test that the shell is set properly with sudo -i.


How to drag windows between 2 X servers?

With 2 separate X servers that is (until I am proven wrong) not possible. If you want to drag windows between screen you will have to use twin-view or you will need to choose the x-server where your application will open before you do so.

The reason for that would be that the application would need to un-glue itself from a display, and from it's own window manager, leaving being only peaces of its shatered shadow, then the recreate itself and the core of the application re-attached to the new window manager you want it to go to, then a new window would need to be created around the application using the new window manager... Its like, no, it will do that for you.

There is however an application that can sort of do that for you called xpra. What it does is not remove the application from the original x server an recreate it on the new one but it will make it so that the application running on the original X server is displayed on the other X server. Not like VNC but directly. Have a look here for more information.


how to make `alltray` work on ubuntu 16.04?

Short answer (TL;DR)

alltray is not maintained anymore, if you are using KDE use kdocker instead.
(it may also work with Gnome)

It's as easy as:

sudo apt-get install kdocker

Details

As you can see from their repository and from this post the alltray tool is not being maintained anymore.

Because of this, even if you try to compile it from source it would be very difficult to get it working, since it is based on old standards and old/obsolete libraries. For example, it is based on old standards for the Vala language and if you try to compile it with recent Vala compilers it even generates syntax errors.

The kdocker tool is still maintained instead, and it is very easy to install it on Ubuntu 16.04 as shown above.

It works almost exactly like alltray, if you want to cancel "docking" just click with the right mouse button instead of left button (Esc will not work).

It surely works with KDE, I didn't test it with Gnome (the fact that its name starts with K means nothing, many applications like Kate or Konsole still work with Gnome).


My avahi-daemon.conf is messed up and know why...

Anyways, domain-name is set to alocal, possibly in the panic to fix some samba share problems.


Brasero is pre-installed application in Ubuntu 14.04. K3b is another GUI Application (available to download and install) to burn CD/DVD.

To Burn Blu-Ray you have to install the cdrecord package. ( can be installed from PPA: ppa:brandonsnider/cdrtools).

For Further Information, Visit Ubuntu-Help.


delete the connection
and run following command in terminal

sudo service networking restart


The $classes variable will be part of the installer environment and available in any scripts that are run.  It could be used directly in preseed/early_command or preseed/late_command, and would be available in scripts referenced in preseed/run.
For example, this preseed snippet will simply create a file with the $classes variable content.  It will also output the env to a file so you can see what variables are available by default.  You can access the files during install using the console accessed with alt-f2.
d-i preseed/early_command string \
  env > /run/my_env ; \
  echo $classes > /run/my_classes ;

Be careful using a semicolon (;) in your boot command line as it may be seen as the end of the command line.  I suggest a different delimiter character.
The Advanced Options page provides some more details and may give you some ideas on how to use the variables you define.


How do i share files between my ubuntu host and xp pro virtual machine?

If you are using VirtualBox, there should be a set of guest tools you can install on Windows that will allow you to do this.

See http://www.virtualbox.org/manual/ch04.html#idp9523904 and http://www.virtualbox.org/manual/ch04.html#sharedfolders


Can I choose between GNOME Shell and Unity on login?

Install the package gnome-shell, then you get an additional session GNOME in the login screen:

How do I install and use the latest version of GNOME?


Install 32-bit version of java8 on ubuntu 18 64-bit by apt command

Try with apt show oracle-java8-installer. Also if you want to specify the architecture append it like:
apt install postgresql-10:i386

I would suggest to download and install java binary  from: Java Downloads for Linux.


Flash Player Issue In Chromium In Ubuntu 14.04

You can just install OpenJRE from terminal by running:

sudo apt-get install openjdk-7-jre

or by clicking icon below

Edit

Chromium used Netscape Plugin API for Flash support. Starting from Ubuntu 14.04, Chromium will stop using Netscape Plugin API.

To fix this issue, You need to install Adobe Flash Player installer Ubuntu 14.04 repositories, Running like this:

sudo apt-get install pepperflashplugin-nonfree

sudo update-pepperflashplugin-nonfree --install

This installer downloads Google Chrome, extracts Pepper Flash Player and sets it up for Chromium usage.


You need to download a .tar.gz or .tgz version of LibreOffice or OpenOffice. Unzip or untar it, and copy that to /opt. Then open the folder and click on the executable to start the program. You can create a shortcut to your desktop. You can make this a normal link with proper icon if you want to.

The other application can be installed the normal way. You should use the /opt version for the least used. It won't be updated automatically.


How to upgrade the php version from 5.3.x to 5.3.y?

You could use a ppa to stay up-to-date with php.

 sudo apt-get install python-software-properties
 sudo add-apt-repository ppa:ondrej/php5
 sudo apt-get update
 sudo apt-get upgrade

How do I install different (upgrade or downgrade) PHP version in still supported Ubuntu release?


Problems with 14.04 most recent updates and possibly kernel

Try upgrading to the latest kernel then.To do that you need to install the linux-generic-lts-vivid package.To do so type this in the terminal

sudo apt-get install linux-generic-lts-vivid


End up with black screen with blinking cursor. Screen refreshes each 2 seconds

I need to add this as comment but not available for me ,
try to stop the display manager in the tty4 that is working partially
check the running dm and include the output to your question too
systemctl status display-manager.service

then stop it (gdm3/lightdm)
sudo service gdm3 stop

or
sudo systemctl stop gdm3

and check the journal journalctl -xe to see what's failing that causes this behavior and include the errors in your question
add the output of  dmesg --level=err,warn to your question


I'm trying to do a sudo apt-get upgrade, but there are some packages that are no longer required. Should I remove them?

From man apt-get:

autoremove
           autoremove is used to remove packages that were automatically installed to satisfy dependencies for other packages
           and are now no longer needed.

So, Don't worry, It is safe to auto-remove packages by following command:

sudo apt-get autoremove


How to file a bug report for a specific Ubuntu release?

I think this page solves my problem, specifically steps 1-6 under "Procedures".


How can I install BlueGriffon 2.0 from a deb package or PPA?

Not that I know of, but the install is very easy, you download the tar, unpack it to a location, like your home, and then you run the bluegriffon app from there, after you start it, you can lock it to your start bar, and then just click on the icon from there, it really is that easy to install.

http://nixmash.com/linux/how-to-install-blue-griffon-in-ubuntu-and-linux-mint/


What do you mean by "merge the two drives together"? Do you want to have one "virtual" partition on two physical discs? Then probably you should google LVM (I've never used it, so it's all I can say).

But why do you want to merge the two discs? If I were you, I would use the fast SSD for some selected data (for fast boot or whatever) and HDD for the rest. When they are merged together you can't control where your data is stored and you don't benefit from having fast SSD (unless you are very lucky).

If the reason for merging is that you don't like too many logical partitions in your computer then you don't have to worry: in linux you don't normally navigate with drives but with a virtual directory structure (see the next paragraph). So some smart mounting may be a solution: you can mount your SSD in some folder (e.g. inside another folder stored physically on HDD!) (or even divide it into partitions and mount in several folders).

Finally: if - as you said - you're installing ubuntu on SSD, then you can just use the standard schema: put your ubuntu ("/" directory called root) on SDD (24 GB should suffice since my old installation is 16 GB) and your home folder ("/home") on HDD. All your personal data will be stored in one place (home) and you will benefit from having system files on a fast SSD  (dunno if it is the best way of utilising SSD, but for sure it is the simplest).


I have error message connecting a monitor to my netbook

nvm fixed it.

-

lol, just kidding. In order to use multiply desktops it is necessary to expand the virtual size of your xorg configuration file first. Open that file with:

sudo -s
gedit /etc/X11/xorg.conf

Search for "Section "Screen"" and change "Virtual   x y" to whatever you need while maintaining the given format.

If you are lucky everything works now, if you encounter black bars on one of your monitors and use amd proprietary drivers there might also be following solution:

Open your amd catalyst settings (search amd catalyst with Unity or do it the Hardcore way using the Terminal:

gksudo amdcccle

) Go to Display Manager on the left side and expand the menu. After that you select the framed Display, move to the Adjustments tab and crank the Scaling options all the way to OVERSCAN (it might not be in caps for you).

-

Well, anyway that is what worked for me. Maybe nvidia has similar option.


Keeping files that are often changed in sync between desktop and laptop

I think you do not need to add the generated (PDF, dvi or Postscript) files to the version control system; however it makes sense to copy them to a synced directory or other server. I usually make this sort of things with the make command.

I have a Makefile like this in the directory where the LaTeX files are (indents are tabs, not spaces). See GNU Make Manual.

%.pdf: %.tex
        pdflatex  $<
        pdflatex  $<

store_pdf:
        cp example*.pdf path/to/synced_directory

upload_pdf:
        scp example*.pdf user@server.name.com:path/to/directory

clean:
        rm *.log *.aux *.nav *.vrb *.out *.snm *.toc

If you want to move the files to a synced directory or to a server
where you have ssh access, you need to type:

make store_pdf
make upload_pdf

If you want to generate the example1.pdf from example1.tex, you need to
type:

make example1.pdf

If you want to remove the files you do not need, you need to type:

make clean


Ubuntu 20.10 on ThinkPad T14 (AMD). Microphone mute LED always stays on. How can I fix it or turn it off?

I am using ThinkPad P14s AMD, following works if you want to manually change it.
You can test to see if it works for you:
echo 1 | sudo tee /sys/class/leds/platform\:\:micmute/brightness

to turn it on, and
echo 0 | sudo tee /sys/class/leds/platform\:\:micmute/brightness

to turn it off.


Your ThinkPad T30 is a 32-Bit one and a bit "antique" - but really a good one.
You could try Lubuntu as 32-Bit-CD, because with xfce-windows-manager it is not demanding too much memory for graphics like gnome or KDE do.


Creating interactive prototypes in Ubuntu

Balsamiq Mockups is available for linux, however be aware of Adobe Air installation caveats.


ATI Radeon XPress 1200 Graphics Card Driver Install Problems

The error message means that your graphics card is not supported by the driver that you are about to install. To be more precise, AMD dropped support for older graphics cards in Catalyst v. 9.3, which also requires the use of a Kernel older than v. 2.6.28 and X server older than v. 1.5.

Ubuntu 11.10 is the latest release that has a Kernel and X server old enough for the Catalyst v. 9.3. Unfortunately, Ubuntu 11.10 is no longer supported, so your only solution is to use the open source driver.

You could also use the ppa:makson96/fglrx PPA to downgrade your Kernel and X server to older versions and to install the legacy driver. However, please read the release notes from the link as the driver isn't fully compatible with the Unity used in Ubuntu 13.04.

If you want to use the PPA, run these commands from the Terminal to downgrade the Kernel and X server and to install the legacy driver:

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


How well will Ubuntu run on my Compaq Presario V2000 Laptop?

you can run 12.04 for sure but 3d mode  can be slow or even unsupported..  at least you can use 2d mode and tweak it to make it better

http://www.omgubuntu.co.uk/2012/03/unity-2d-tweaking-tool-adds-minor-new-options


Cannot Log in into Windows 7 after installation of Ubuntu

How to boot with a different OS

When your computer starts if you have two or more operating systems you should see a screen like this (if you don't hold press shif or esc keys at the very start of your computer)

You should be able to read Windows 7

I suggest you to take note of the line number windows 7 is

Change default OS and/or boot menu delay

If you were able to use Windows now you probably want to start your computer and be able see this screen again. To do that:

log in ubuntu
Open a terminal, by pressing ctrl + alt + t
Write this: sudo apt-get install gksu it will ask for your password write it and hit enter. You will not see nothing as you type your password don't worry is normal
Once gksu is installed type this:

  gksu gedit /etc/default/grub

To change the time of boot menu

Change the value of GRUB_TIMEOUT in the file to a number, (5 means 5 seconds). If you set the timeout to something extremely low – say, 1 second – you can access the boot menu by continually pressing the arrow keys or Escape key while your computer boots.

To change defaul OS of boot menu

If you want windows as your default OS when your computer starts change the value of GRUB_DEFAULT=0 in the file to the line number windows is. This is why i suggested to write down the line number

Save the file, and then run the following command on the terminal to apply your changes:

sudo update-grub2

Now when you restart your computer it should show the boot screen menu and it should start the OS you've chosen


How to install vnc server so I can have complete control on my Ubuntu Server?

Try either one of the following;

install xrdp package and connect through RDP client e.g Remote Desktop client if using Windows or another client like Remmina client.
Install Teamviewer (my prefferred) and configure it to start automattically and set an unattended access password for it. Then connect to it also with another TeamViewer installed on the other machine (Team viewer has a very good graphics and performance especially in LAN connections as it uses a direct connection rather than connecting through Team Viewer servers "if you don't have Internet connection, just connect using machine IP instead of TeamViewer ID and it will use LAN connection automatically")


better still:

wget -c -O /pathtoLocalDirectory/choosefilename.extensionLike3gpORflvORmp4 "HerePutTheHyperlinkInsideInvertedCommasWithoutAnyExtraSpacesSay http://somesite.something.somemorethings.etc"

reasons:

-c:
if connection to server is broken before completion of your download then wget resumes from previously downloaded position, otherwise it wastes away what was already downloaded and has to restart from zero
-O:
allows you to choose the location and filename of your choice in your computer


Dual booting Ubuntu 16.04 with Kali Linux as main OS

Firstly, it would be a good idea to back up any important data.

As you are installing to the same drive as your current OS your current partition(s) may have to be resized during the installation of Ubuntu. This will depend on whether or not you used all the drive space for your current OS. The Ubuntu installer can do this for you and installation is pretty much the same as if you were installing Ubuntu on its own. You would be best selecting "something else" at the installation type partition screen so you can configure the partitions how you need them.

Assuming your using standard partitions and don't intend to share them between the different OS's the main decision you have is whether to use the boot loader you currently have or the one Ubuntu will install. If you want to use the current one, ensure the boot loader in Ubuntu is installed to the root partition (such as sda1, sdb1, etc) rather than the drive (sda or whichever drive your using). If you're OK with Ubuntu overwriting the current boot loader then install the boot loader to the drive sda, sdb, etc. This is selected during the partition configuration screen you will have used above.

If you go with keeping your current boot loader, you will have to boot into your current OS after you have installed Ubuntu and update the boot loader so that it finds and includes Ubuntu in the boot selection screen. If you go with the Ubuntu one, it should find and include your current OS during installation.

Hope that helps and good luck.


Scrolling of ListView within a Column in QML

The Flickable item places its children on a surface that can be dragged and flicked, causing the view onto the child items to scroll. This behavior forms the basis of Items that are designed to show large numbers of child items, such as ListView and GridView.

In traditional user interfaces, views can be scrolled using standard controls, such as scroll bars and arrow buttons. In some situations, it is also possible to drag the view directly by pressing and holding a mouse button while moving the cursor. In touch-based user interfaces, this dragging action is often complemented with a flicking action, where scrolling continues after the user has stopped touching the view.

Flickable does not automatically clip its contents. If it is not used as a full-screen item, you should consider setting the clip property to true.

So the sample code now looks like this:

import QtQuick 2.0
import Ubuntu.Components 0.1

MainView {
    width: units.gu(60)
    height: units.gu(60)

    ListModel {
        id: fruitModel
        ListElement {
            name: "Apple"
            cost: 2.45
        }
        ListElement {
            name: "Orange"
            cost: 3.25
        }
        ListElement {
            name: "Banana"
            cost: 1.95
        }
    }

    Page {
        id: test

        Column {
            spacing: units.gu(1)
            id: pageLayout
            anchors {
                margins: units.gu(2)
                fill: parent
            }

            Row {
                id: buttonRow
                spacing: units.gu(1)
                Button {
                    objectName: "button1"
                    color: "white"
                    text: i18n.tr("Help")
                }
                Button {
                    objectName: "button2"
                    color: "black"
                    text: i18n.tr("Search")
                }
            }

            Item {
                anchors.top: buttonRow.bottom
                ListView {
                    id: list
                    clip: true
                    width: units.gu(18)
                    height: units.gu(3)
                    model: fruitModel
                    boundsBehavior: Flickable.StopAtBounds
                    delegate: Row {
                        Text { text: "Fruit: " + name }
                        Text { text: "Cost: $" + cost }
                    }
                }
                Scrollbar {
                    flickableItem: list
                    align: Qt.AlignTrailing
                }
            }
        }
    }
}


Grub rescue mode after deleting Ubuntu partition

You had grub installed in your MBR (Master Boot Record) which overwrites your windows bootloader. When you removed your Ubuntu installation , the bootloader was probably removed as well. So what you need to do is recover MBR.

To do so first get a windows live cd (8 or 10). Then boot into that cd.

When the installer starts choose your language and click next. Now in the new window that opens you can see Repair my device option at the bottom. Select that.

Now go to Advanced Options and launch the Command .

After command opens type ;

bootrec /fixmbr

This command isn't necessary but I recommend it;

bootrec /fixboot

Now type exit and reboot. Everything should work fine now.


sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install ia32-libs

Architecture problem with 12.10 Quantal. If is different version just use bottom line and should be fine.


GUI way to show a hidden file or folder

Hidden files and folder have names that start with a . (dot character). To toggle show/hide hidden files or folders use the keyboard shortcut Ctrl+H.


Simple way to delete a file and all its links (simultaneously)

Let's say you have a file named file1 in ~/tmp, and let's say that you want to recursively remove all the symlinks to file1 in ~/tmp;

Using find:

find ~/tmp -lname ~/tmp/file1 -exec rm {} +

~/tmp: specifies the path to the directory hierarchy in which to search;
-lname: searches only for symlinks linking to ~/tmp/file1;
-exec rm {} +: removes all the results;

Sample output on a test directory hierarchy:

user@debian ~/tmp % tree
.
├── 1
│   ├── 2
│   │   ├── 3
│   │   │   ├── link3-1 -> /home/user/tmp/file1
│   │   │   └── link3-2 -> /home/user/tmp/file2
│   │   ├── link2-1 -> /home/user/tmp/file1
│   │   └── link2-2 -> /home/user/tmp/file2
│   ├── link1-1 -> /home/user/tmp/file1
│   └── link1-2 -> /home/user/tmp/file2
├── file1
└── file2

3 directories, 8 files
user@debian ~/tmp % find . -lname ~/tmp/file1 -exec rm {} +
user@debian ~/tmp % tree
.
├── 1
│   ├── 2
│   │   ├── 3
│   │   │   └── link3-2 -> /home/user/tmp/file2
│   │   └── link2-2 -> /home/user/tmp/file2
│   └── link1-2 -> /home/user/tmp/file2
├── file1
└── file2

3 directories, 5 files


The Ubuntu SDK is only available for Ubuntu 12.04 or later.


Strange 2.02mib unallocated space left after deleting a parttion

Don't worry about it. Modern partitioning tools align on boundaries of 2048 sectors, which works out to 1MiB boundaries. More-or-less all of them align the start points, and some align the end points, too. End points may also be adjusted to handle size issues in the filesystem, which could result in sizes that are multiple of various values, depending on the filesystem and its settings. I have no idea what these values might be for NTFS, but it's entirely possible that they're forcing the partition to be sized such that there's a 2.02MiB gap at the end of the disk. Note that 2.02MiB is puny by the standards of your 465.76GiB disk -- it's just 0.0004235%. So don't worry about it.


GNOME top panel discolored when running fglrx

This is a bug with the ATI/AMD drivers not being compatible. Its a problem on their end, and there isn't much that can be done about it as far as I know.


Where can I download intel hd vga driver for my dell inspiron n5010?

Linux intel drivers are well supported by the Kernel and the X-system.  You should be able to watch HD videos etc with the standard drivers that come with a default install.

I have an intel i3 CPU with Arrandale intel graphics and they work great.

Oneiric has the most recent and stable graphics drivers for Intel - you shouldnt need to install PPAs such as X-Stable or X-Edgers - these are testing PPAs.

If you have any specific issues then you should add this to your question.


First, get that machine off the network now!

Second, why did you have the root account enabled? You really shouldn't enable the root account unless you have a very good reason to do so.

Thirdly, yes, the only way to be sure you're clean is to do a clean install. It's also advised that you start fresh and don't go back to a backup, as you can never be sure when it all started.

I also suggest that you set up a a firewall in your next install and deny all incoming connections:

sudo ufw default deny incoming

and then allow ssh with:

sudo ufw allow ssh

and DON'T enable the root account! Certainly make sure that root ssh login is disabled.


You can try from terminal the command alsamixer

alsamixer is the alsa provided ncurses GUI for accessing hardware mixer elements, and it is capable of seperately turning off the internal speaker.

see man page of alsamixer for more infor man alsamixer

Also, if you want raw access to sound card parameters, you can use amixer which is a command-line mixer for ALSA soundcard driver

amixer -c<n> should provide that list

amixer -c<num> set <SCONTROL> mute will mute a mutable control by name

Be sure to check out various values of  with amixer,the -c argument for selecting a sound card also works with alsamixer or amixer.

You can also install a GUI for alsamixer

sudo apt-get install alsamixergui


I cannot get my webcam to work on ubuntu 15.04

GUVCView from my perspective, is a much better means of recording video than Cheese. This especially applies if the video you are recording is to be used for something other than, say, Skype chatting.
Typically speaking, if your camera is supported in Cheese, it will be supported in GUVCView.
So Uninstall Cheese and Install GUVCView.
To Install :

sudo add-apt-repository ppa:ubuntuhandbook1/apps
sudo apt-get update
sudo apt-get install guvcview

You can find GUVCView in the Applications > Sound & Video menu.
The latest git development revision can be checkout with the following command:

git clone git://git.code.sf.net/p/guvcview/git-master guvcview

For changes in the version of GUVCView click here
Regarding Compilation.
(Click image to enlarge)

Usage: The basic usage of GUVCView is simple. When opened you will see two different windows. Figure shows the two different windows used by GUVCView. The left window is the preview window that will show a real-time viewer as you record your video (or take your picture). The right window is where you control the video and set up the options for the recording.
If you notice your camera is not auto-detected, you will want to go to the Video & Files tab and then see if your device is listed in the Device tab. If it is, but is not selected, go ahead and select it. If it is not listed, the camera might not be supported (or the drivers installed).
In this same tab you can select various options for your video recording. One very important option is the resolution. Remember, the higher the resolution the better the quality but the larger the file size.
Do the same for audio in the Audio tab. You might have to select a different Input device (depending upon the camera you have).
Once you have all of your options set up you are ready to record. To do this just make sure you are within the frame of the camera lense and hit the Cap. Video button in the control window. As soon as you click the Cap. Video button, you are recording. When you click the Cap. Video button it will change to Stop Video. To stop recording click th Stop Video button and the file will automatically be saved.


DNS resolve stopped working after upgrade to 17.04

You can statically assign your DNS servers in the /etc/network/interfaces file. Under the interface that your using add dns-nameserver 8.8.8.8 or whatever DNS server you prefer to use. For example:

auto eth0
iface eth0 inet auto
dns-nameserver 192.168.1.1 8.8.8.8 8.8.4.4


Ubuntu's launcher can't be moved from it's position. You can hide it and use docky or cairo dock if you wanted to.


AMD/ATI ES1000 VGA Card slows down Ubuntu 12.04

ES1000 does not have hardware support for 3D acceleration so it will be very slow with modern compositing desktops like Unity. Try Lubuntu or Xubuntu.


Resize Disk Partition on Remote VM Server

If you want to enlarge the system partition

First, turn off swap (swapoff /dev/sda5), because we'll temporarily remove the swap partition.

Use GParted or cfdisk or fdisk to:

Remove the logical partition /dev/sda5 and the extended partition /dev/sda2.
Enlarge /dev/sda1 to span the whole disk minus what you want to allocate for the swap partition.
Re-create a partition (make it a primary partition for simplicity) for the swap.

Do not turn swap back on. Comment out the swap line in /etc/fstab, and reboot. (If you don't reboot, the kernel keeps using obsolete data about the partitioning, which can have disastrous consequences.)

After the reboot, edit /etc/fstab to change the name of the swap device and uncomment it. Format the swap area with mkswap and activate it with swapon -a.

Finally enlarge the existing filesystem to occupy all of /dev/sda1 with resize2fs /dev/sda1.

If you want to create another partition

Use GParted to enlarge the extended partition (/dev/sda2) and create a new logical partition /dev/sda6 on it. Tell GParted that you'll want a Linux filesystem on /dev/sda6. Create a filesystem with mke2fs -t ext4 /dev/sda6.


Can not run a command at startup in ubuntu14.04 LTS

This is a wrong place to run second and third commands in rc.local, because they should be run later when GUI is loaded and you log in into the system.

The easiest way is to add these commands to "Startup Applications" that can be found in Dash.


How do I fix amavis mysql warning "execute failed: Unknown column 'rseqnum'"

Starting with amavisd-new-2.7.0, three fields need to be added
to table msgrcpt and one to table msgs:

ALTER TABLE msgrcpt ADD rseqnum     integer  DEFAULT 0   NOT NULL;
ALTER TABLE msgrcpt ADD content     char(1)  DEFAULT ' ' NOT NULL;
ALTER TABLE msgrcpt ADD is_local    char(1)  DEFAULT ' ' NOT NULL;
ALTER TABLE msgs    ADD originating char(1)  DEFAULT ' ' NOT NULL;

Enter the above SQL statements to update the database that amavisd-new uses; usually mail_amavis. e.g.:  mysql -u <auth-user> -p mail_amavisto do so.


It's a great idea, but I think it would be quite difficult. Let's see...

We can turn this problem into a graphics problem where you want to find collision detection between windows and color code the collision area accordingly.

I would start by getting information about the window such as the position and the size: position, size, and activity of windows.

You can apply that information on both the window of the transparent terminal, as well as the background windows. Once you have both positions and sizes, you should easily be able to perform a simple calculation to see if they have any squares colliding.

For example:

Terminal: Position=[X,Y] Size=[A,B]

Window: Position=[x,y] Size=[a,b]

//here's a rough draft of a code

    if(X<x)
    {
        if(Y<y)
    {
        ChangeColor(A-a,B-b)
    }
    else
    {
    }
}

Hope this helps, please post your code when you're done, Thanks =)


Maximize window over two displays (Ubuntu 18.04)

You can do this by doing a folder comparison and keeping this open. You manually maximize this across the 2 monitors and then double-click on each difference of interest. Just make sure you close the tab after each file and not the window.


How to fix GRUB's "file not found." error

+live boot ubuntu or kali from usb

connect to the Internet
install bootrepair by using following process:
open a new Terminal, then type the following commands (press Enter after each line)

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

+launch Boot-Repair from either :
-the Dash (the Ubuntu logo at the top-left of the screen)
-or by typing 'boot-repair' in a terminal
-Then click the "Recommended repair" button. When repair is finished, note the URL (paste.ubuntu.com/XXXXX) that appeared on a paper, then
reboot and check if you recovered access to your OSs.

If the repair did not succeed, indicate the URL to people who help
you by email or forum. [further on boot repair here][1]

[1]: https://help.ubuntu.com/community/Boot-Repair


I believe it is telling you that it doesn't understand adresses. Please try:

addresses: [8.8.8.8,8.8.4.4]

Follow with:

sudo netplan apply

Any improvement?


I have successfully installed PIL using these commands:

sudo apt-get build-dep python-imaging
sudo apt-get install libjpeg8 libjpeg62-dev libfreetype6 libfreetype6-dev
sudo pip install Pillow

After these commands I could:

>>> import PIL
>>> PIL.VERSION
'1.1.7'


Unable to eject/safely unmount USB drive

So, the problem has been solved thanks to Douggro, who helped me in the comments. I'm just reposting his answer here to close the question.

  Try ls /media and see if the drive shows there. If it does, sudo umount /media/drivename –  douggro


Correct me if I'm misunderstanding your question, but have you tried booting into a Ubuntu live CD and running boot-repair?  It helps fix booting problems like missing boot partitions.

http://www.howtogeek.com/114884/how-to-repair-grub2-when-ubuntu-wont-boot/

Hope this helps!


Sony Vaio Ubuntu installation won't boot afterwards

Yes, it's UEFI. As far as I understand, some manufacturers write code into UEFI to make the computer to try booting Windows every time. Sony Vaio apparently is one of those models.

I found the solution here. It's using efibootmgr to delete "Windows Boot Manager" entry and add a Ubuntu boot entry.

http://ubuntuforums.org/showthread.php?t=2196415


DNS Resolution Problem on Ubuntu 14.4 LTS

It looks to me as a duplicate of Can't resolve windows domains in local network.

.local is handled by mDNS (Avahi or Bonjour) before trying with regular DNS server. mDNS should resolve name in the form of machinename.local if it does not get it, it returns NOT FOUND.

Where what you are using is anothermachine.mywindowsdomain.local. .local here is part of the full qualified domain name mywindowsdomain.local that should be resolved using DNS.

Change name resolving priority list in /etc/nsswitch.conf to:

hosts:          files dns mdns4_minimal [NOTFOUND=return]

Otherway change MS domain to something different, example: mywindowsdomain.loc

Reference: Fix linux DNS issues with .local addresses on MS domain


I can not boot ubuntu installation CD nor installation USB-drive with HP Envy DV6 notebook

Chances are your USB flash drive was prepared incorrectly. There are several programs that can be used to create USB flash drives from .iso files, and they don't all work perfectly, especially for EFI-bootable systems. Based on posts I've seen, Rufus seems to be the most reliable and Pen Drive Linux/YUMI is useless for creating EFI-mode disks. See these comments of mine for more details on my own experiences with several tools.

You could also try using the "BOOT FROM EFI FILES" option you mention. Once you select that option, you should see a primitive file selector. (Details vary from one EFI to another.) Browse to your boot medium and find the EFI/BOOT/bootx64.efi file and launch it.


how can i completely remove gnome3 from ubuntu 20.04 without affecting KDE Plasma

The safest way that you should start with would be installing kubuntu-desktop metapackage, removing ubuntu-desktop metapackage and performing sudo apt autoremove --purge after reading through packages that will be removed and verifying that you don't need any of them.

However if you have limited space you can remove more packages that you don't need and that action may remove kubuntu-desktop in the process. At that point you need to mark some packages as installed manually to avoid removing them when you perform autoremove. You can do it either with apt-mark or just by performing apt install packagename.

Another, less safe way would be finding a package that all GNOME software depends on and removing it so that it will take all the packages that depend on it with it. libgnome-desktop-3-* looks like a candidate package for that. Be careful around libgtk* packages though as it may be too excessive, kde-config-gtk-style and kde-config-gtk-style-preview depend on it.

Before starting you can backup lists of installed packages with apt-mark showmanual and apt-mark showauto.


Unable to find or create trash directory

This is a bug

https://bugs.launchpad.net/ubuntu/+source/glib2.0/+bug/192629

There is no solution as of yet, the work around is to add an entry in /etc/fstab

You can do this with ntfs-config, a graphical tool, or the command line.

ntfs-config

sudo apt-get install ntfs-config

gksu ntfs-config

You then change the ownership and prmissions of the ntfs partition.

command line

Edit /etc/fstab

# command line
sudo -e /etc/fstab

# graphical
gksu gedit /etc/fstab

Add a line for your ntfs partition. If you use the permissions option you can then set permissions on ntfs partitions.

/dev/sdxy /media/your_mount_point ntfs-3g user,locale=en_US.utf8,permissions 0 0

For additional information on mount options see

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

Once you have the correct permissions,

cd /media/your_mount_point
mkdir .Trash-1000

Change ".Trash-1000" you your UID (first user is 1000, use the command id to show yours)

id


Yeah sometimes when we are using text editors like nano and vim even we get exit of that the app runs in background and stops the cmd line functionality so you can't use arrow keys to search for previous history

so just gave reset cmd which reset the tab and gave you access back to history again


I had a similar issue, I simply swapped the mouse and keyboard around on the USB ports. Doesn't make sense but it worked. Also if its wireless keyboard or mouse. Unplug and re-plug while connected.

Also try different mouse and keyboard which I guess you don't have as you would have tried that already. I have many mice and keyboards lying around the house ;)


Cannot use Bacula after upgrading to Ubuntu 16.04

Add following line to the file /etc/apt/sources.list

deb http://archive.ubuntu.com/ubuntu/ xenial-proposed restricted main multiverse universe

Then do

apt-get update

then

apt-get install bacula/xenial-proposed


Go to 'edit connection' delete that particular connection. Restart the modem and connect again. Make sure you have the up to date drivers and OS.


ulimit is a shell builtin, and thus only affects the current shell, and processes started by that shell:

$ type ulimit
ulimit is a shell builtin

From man ulimit:

The  ulimit  utility  shall  set  or report the file-size writing limit
imposed on files written by the shell and its child processes (files of
any  size  may be read). Only a process with appropriate privileges can
increase the limit.

So, yes, child processes are affected.

To set limits permanently or for all processes, edit /etc/security/limits.conf and reboot. The examples in the manpage are fairly good. You just need to add something like:

username - core unlimited


Prevent shutdown when rsnapshot is running

Try making a script to enable and disable shutdown then move the executable elsewhere then in its place put a script that:

Disables shutdown
Runs the program
Enables shutdown

See How to disable shutdown/reboot/suspend/hibernate?.


How do I get classic (not unity) desktop from run from the Live CD?

As @queueoverflow suggest, you can logout and login in a Ubuntu Classic session.

But, first of all, it is not immediate to understand how to logout, because no such menu item appears in the system menu. This is accomplished with the command

gnome-session-save --logout

run from a terminal or from the dash after you use Alt-F2 shortcut.

Next, to login again, select other from the list of users, type in ubuntu as username and press enter.

At this point it appears the session chooser in the bottom panel. Choose Ubuntu Classic or Ubuntu Classic (No effect), and press the login button, with an empty password, and you're done.


Fresh Ubuntu Server installation gave very little disk space to root

My best suggestion at this stage of my exploration of Ubuntu is to see if you can run Ubuntu Live from CD, get GParted installed, and try to increase the size of the / partition. As always, back up before you try it!


How to install and use jedi-vim python IDE for vim on ubuntu

Did you setup vim-addon-manager?

vim-addons status
vim-addons install python-jedi
vim-addons status


How to mount .raw disk image with no partition table

Try to use kpartx: sudo apt-get install kpartx and then create loop devices with sudo kpartx -a -v file.raw .
If above method fails, make a copy of file.raw and run testdisk for this file to restore partition table by: sudo apt-get install testdisk and testdisk file.raw.
If nothing helped - run R-Studio against this file to get the data and partition table back.


I assume you want to use GDM (Gnome styled login page - right) instead of LightDM (Unity/Xfce/LXDE depending on theme - left)

you either need to install GDM with this command in terminal:

sudo apt-get install gdm

or configure it to be used instead of lightdm

sudo dpkg-reconfigure gdm

with either command when you reach this step:

select gdm with the arrow keys,press Tab to select <OK> and press Enter.

Now upon reboot (and perhaps logout) you should be able to use GDM. To switch back run the above dpkg-reconfigure command again and select lightdm.

Also, if you want to change the GDM background, edit /usr/share/gnome-shell/theme/noise-texture.png to a picture the size your display in PNG format with the same name, having backed up noise-texture.png


If grub somehow got corrupted, reinstalling it should help. Try re-installing grub via a live USB. I found some instructions here.


"The connection to the daemaon was lost" when updating Ubuntu

No, there's never any reason to be worried about viruses on Ubuntu as long as you keep it upgraded. If there was, then an anti-virus solution would be included by default.

A daemon is just a program that runs in the background. Something happened to a process the update manager uses to install updates. It's nothing to worry about at all. Specially if everything works. If it doesn't, just run the update-manager again.


How to reset all NTFS partitions back to default(Read/Write) state?

Use "mount" command to see if it's mounted as read-only(ro).

If yes, just umount it and mount the NTFS partition with appropriate options:
mount /dev/sdxx -t ntfs-3g -o users,rw,uid=yourname,dmask=022 /mountpoint

If it has already mount with rw, remember to change permission of the mount point at the first time.
chown yourname /mountpoint


Found at, http://mygeekopinions.blogspot.com/2011/07/how-to-install-kde-plasma-netbook.html

Basically in Software Center install kde-plasma-netbook :

Or in Terminal ( What is a terminal and how do I open and use it? ) :

sudo apt-get update

sudo apt-get install kde-plasma-netbook

Then you should then be able to restart and switch desktops on login.


Thunderbird calendar alerts are no longer persistent system-wide stay-on-screen notifications

I found installing the NoAnnoyance gnome shell extension worked. Instead of a popup saying a new window is ready (the thunderbird notificaiton window) the new window is brought to the front.


37 5-19/2 * * 1-5

Since, quoting the manpage:

  field          allowed values
  -----          --------------
  ...
  day of week    0-7 (0 or 7 is Sun, or use names)

Ranges of numbers are allowed.  Ranges are two numbers separated with a hyphen.
...
Step  values  can be used in conjunction with ranges.  Following a range with ``/<number>'' specifies skips of the number's value through the range.

Names can also be used for the ``month'' and ``day of week'' fields.  ...  Ranges or lists of names are not allowed.


Your compile command is g++.exe but .exe typically means a Windows executable. On Linux the command is g++. You should check your configuration and remove .exe from the command.


How can I get my mysqld-swamped CPU under control?

There is a bug in the kernel that causes a failure because of the "leap second" that happened on June 30.

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


Click the network icon in the top-right of the screen and choose "Edit connections...". Now, open the "Mobile broadband" tab, select the connection of your choice and click "Edit". You will be able to find this information in the window that opens.


How to solve the access permission problem for any folders in ubuntu?

Try doing it as root. You might need to name the user at the target system, too, if it is not the same one.

sudo scp -r <directory> <user>@<IP>:<directory>


There is a driver called dislocker for mounting BitLocker partition with FUSE

Available in Ubuntu repositories since 18.04:
https://packages.ubuntu.com/search?keywords=dislocker

sudo apt install dislocker

See more:
https://github.com/Aorimn/dislocker


Can't start up Ubuntu after restarting to complete installation

After successful installation of the Ubuntu, unplug the USB drive that you used for installation. Reboot your system and then see what happens.

Right now I only understand that your USB is bootable, and that is why your system again accesses the same process and you get the same options that you had before: Install Ubuntu, Try Ubuntu without installing, etc.


Cant install ubuntu 12.04, 14.04 64bit on my lenovo s205

Create a live USB for Ubuntu 64-bit (e.g. with UNetBootin)
While on the live USB installation, select "Do Something Else" and make /dev/sda1 an "EFI" partition with size 150MB. It must be a minimum of 100MB, recommended 200MB.
Partition the rest of the drive however you want ( / and swap, / and /home and swap, whatever). Use primary partitions only (you might be able to get away with an extended for /home but I haven't tried it). This is my setup:
/dev/sda1 150MB EFI
/dev/sda2 20GB ext4 /
/dev/sda3 5GB swap
/dev/sda4 50GB ext4 /home
Set the boot installer to install to /dev/sda1 (or your EFI partition #). Do not use /dev/sda.
Install
Pray
Awesome, now Ubuntu is installed
Restart your laptop, and boot back into the live USB
Now, mount your EFI partition somewhere like this: "mount /dev/sda1 /mnt"
Change directories into the "EFI" directory in the mounted folder "cd /mnt/EFI"
Copy over the super secret important EFI files "cp -rfv ubuntu boot"
CD into the boot directory "cd boot"
Finally, move grubx64.efi to bootx64.efi "mv grubx64.efi bootx64.efi"
Restart, and you should finally have a working Ubuntu/Xubuntu 14.04 on your dumbass Lenovo S205 computer! Yay!

To get WiFi working, change boot order in Bios to boot from network first.


The mediawiki package is no longer in the Ubuntu repository for 16.04 for a number of reasons, so we're left with having to install it manually.

Your webserver is configured to serve to port 80 on localhost right now, with content from /var/www/html. So, if we just install MediaWiki there, it'll be good enough.

Essentially you're just going to need to cd over to that directory and download the latest version using the following command:

wget https://releases.wikimedia.org/mediawiki/1.27/mediawiki-1.27.1.tar.gz

Then, we can extract this archive:

tar xvf mediawiki-1.27.1.tar.gz

From there, you can just navigate to http://localhost/mediawiki-1.27.1/ in your browser and then follow the instructions given there to set it up. If you prefer, you can rename the folder to just mediawiki if it makes it easier on you.


Manual Uninstall of Wubi Failed, Stuck and Cannot Reinstall

I am assuming that you just want to get rid of the "Ubuntu" entry in the bootloader. To do this, press Windows Key(Super) + R and type in msconfig. Press enter. Go to the boot tab and highlight the wubi entry. Click delete. Restart the computer. It should boot to Windows without giving you the Ubuntu option.


Ubuntu can access drives formatted in ntfs, the MS Windows file system, and will do seamlessly as long as the file system is "clean", i.e. consistent. Thus, you could leave the drives formatted in ntfs, and just connect to them by clicking the drives in the left pane of Files.

You should not use ntfs for too long without having Windows. MS Windows is the only system that has comprehensive tools to check and repair an ntfs file system. Thus, as long as you do not have windows, you are not able for an in-depth check and repair of the file system. Although Linux has the ntfsfix tool which allows checking ntfs file systems, it only allows for basic repairs.

So the advice is: if you use the ntfs file system, you also need to have Windows around. If these are fixed drives, quickly have windows back. If the drives are removable, then you can periodically connect them to a Windows system for file system check.


how to assign parameters to bash scripts

Yes you can have numbered positional parameters in a bash (or other Bourne-derived) shell script, for example

#!/bin/bash

/usr/bin/cc -o "$1" "$1.c"

which may be called as

./myscript file

to compile and link file.c to file - see for example the Positional Parameters section of the bash manual page (man bash).

However, if you have make installed, then you should simply be able to write make file to compile and link file.c to an executable file using default rules.

For example, given

$ ls
hello.c  subdir1  subdir2

where

$ cat hello.c
#include <stdio.h>

int main(void)
{
  printf("Hello world!\n");

  return 0;
}

then

$ make hello
cc     hello.c   -o hello
$
$ ./hello
Hello world!


How is Nautilus file manager GUI programmed?

Nautilus is written in C mostly, as evident from the project's github page:

According to Wikipedia it uses GTK3 as of version 2.32.

If you want to create GUI with C, there's not much choice - GTK is the best option ( although I'll hint at something known as Borland's Turbo C which is like straight from the 1980s). I'd suggest you move up to C++. With C++ there's GTK and Qt options.


Firefox 42.0 won't start anymore in 14.04 LTS (firefox:2547): GLib-GObject-WARNING

Try to reinstall Firefox run this in terminal to remove the package.

sudo apt-get remove firefox

and then install it again

sudo apt-get install firefox

for some reason removing Firefox also removes xul-ext-unity xul-ext-webaccounts install them again by runing this command.

sudo apt-get install xul-ext-unity xul-ext-webaccounts

also Firefox shortcut on the Unity bar will be gone so you would want to add it back.

To add Firefox back to the Unity bar.
click on the Unity launcher then type in Firefox then simply drag the Firefox launcher to the Unity bar.


I think your problem is similar to this question
Tell us if you could solve it with the same answer.


Moving your Dropbox folder to a new location

For some reason, Dropbox doesn't like LUKS Encryption. Although your root disk might be formatted as ext4, your home folder (presumably also home to the db folder) shows as LUKS, hence not ext4. You have many options; among them, separating your home and root folder (possible in typical debian installations.) and also moving dropbox to an external hard drive, formatted as ext4.


Ubuntu 16.04 - installing Dlink WiFi drivers for DWA-131 E1

I added the [2001:3319] ID to Realtek USB driver and it works.

Install it for Xenial this way:

sudo add-apt-repository ppa:hanipouspilot/rtlwifi
sudo apt update
sudo apt install rtl8192eu-dkms


Apparently this option is intentionally cut years ago. From the topic Creating hard links from bugzilla.gnome.org:

  Almost none of our users knows the hardlink concept, so why should we
  confuse him and even risk data loss? You can use
  nautilus-open-terminal and create hardlinks manually.

The good news is you have two options to create this feature:

by using Nautilus Actions or
by using Nautilus Scripts

Solution 1: by using Nautilus Actions

1. First install the package nautilus-actions:

sudo apt update
sudo apt install nautilus-actions

Or use Ubuntu Software:

2. Run the program:

3. Go to 'Preferences' and uncheck 'Create root Nautilus Action menu':

When this option is ticked, in the context menu will have sub menu, etc.

4. Click on Define new action button and fill the data in the Action tab. As Context Label you can use Make Hard Link, also tick only the option Display item in selection context menu - in other words display this item when a file is selected.

5. Go to Command tab and fill the parameters:

Profile:

Label: Default profile - if there is no any custom profile.

Command:

Path: /bin/ln - this is path to the executable file (or command).
Parameters: %f 'Hard Link to %b' - click on Label button for more info.
Working directory: %d - means current directory.

6. Because Directory hardlinks break the filesystem in multiple ways we must disable this possibility. Go to Mimetypes tab and add a new rule:

Mimetype filter: inode/directory,
with Must not match any of option selected.

7. Record the action Make Hard Link:

8. Run Nautilus and use Make Hard Link action from the context menu:

Additionally, if you want to backup your settings:

the file $HOME/.config/nautilus-actions/nautilus-actions.conf contains Nautilus Actions preferences.
and the new actions are places within the folder: $HOME/.local/share/file-manager/actions/.

Solution 2: by using Nautilus Scripts

The same result can be achieved via a script, placed into $HOME/.local/share/nautilus/scripts/. This script could looks like:

$ cat "$HOME/.local/share/nautilus/scripts/Make Hard Link"

#!/bin/bash
if [[ -f "$1" ]]
then
        ln "$1" "Hard Link to $1"
fi

We can create this script and give to it executable permissions via the command:

ScriptNAME="$HOME/.local/share/nautilus/scripts/Make Hard Link" && \
printf '#!/bin/bash\nif [[ -f \"$1\" ]]\nthen\n\tln \"$1\" \"Hard Link to $1\"\nfi\n' |\
tee "$ScriptNAME" && chmod +x "$ScriptNAME"

The result will be:

References:

How to get Nautilus-scripts working Nautilus?
How do I customize the context menu in Nautilus?
Check if passed argument is file or directory in BASH


In this window click on Analog Stereo Output.
There would be option like HDMI+Analog Stereo Output(or Duplex).


If I close a terminal does it kill the processes inside of it?

No, the Terminal will be closed, then the bash process will terminate (because of SIGHUP), then apt-get will terminate in turn.


Change character encoding in a text file

Although not an answer, more like a workaround, michael_n has provided a way around:  put the signature file through dos2unix filter.  This fixed the issue but has me asking a bigger question: why is the default character encoding in gedit DOS encoding?  For compatibility reasons maybe.

Either way, thanks michael_n.


How do I install GRUB on a RAID system installation?

My problem turned out to be that I had GUID partition table since my drives were 2TB each. The method I originally tried to follow didn't assume this, and so installing GRUB didn't work.

Instead, you should make a small (1MB) partition on each disk and RAID them together and set it as a GRUB boot partition (I'm not sure of the actual name). Set up your other RAID partitions (e.g. swap and /) and then the GRUB installer should find the boot area just fine.

(On Debian this is called a reserved BIOS boot area.)


Bangla subtitle(connected letter) problem in VLC and gnome-mplayer

you can use smplayer to solve bangla subtitle problem in ubuntu and other linux operating systems

install smplayer and set it as a default player
click right button of your mouse and go to smplayer's preferences
Encoding: select UTF-8
check Try to autodetect for this language and select Bengali(bn)
Apply and Ok
if subtitle is too small press Shift+T to enlarge,  and Shift+R to
make it small..

now everything ok....

thanks... Oronno BAU
{ search me in Google }


Duplicate CyanogenMod's DSP Manager effect on Ubuntu

You could use the unofficial system-wide PulseAudio equalizer:

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install pulseaudio-equalizer

Source

Or install Pulseaudio with system-wide equalizer support in Ubuntu

Add a PPA and install

sudo add-apt-repository ppa:webupd8team/pulseaudio-eq
sudo apt-get update
sudo apt-get install python-dbus python-qt4 python-qt4-dbus pulseaudio-utils

Restart pulseaudio

pulseaudio -k
pulseaudio &

Load two modules

pactl load-module module-equalizer-sink
pactl load-module module-dbus-protocol

Start the equalizer

qpaeq

And resize the window to see more bands

Load the modules during the system start

sudo nano /etc/pulse/default.pa

And add

### Load the integrated pulseaudio equalizer and dbus modules
load-module module-equalizer-sink
load-module module-dbus-protocol

Source and if you have problems


As you can see League of Legends is on a bronze list in Wine compatibility base, so it will probably won't work correctly under Ubuntu.


There are two important things to check to ensure this card works:

Ensure the linux-wlan-ng package is installed.
Ensure your card's firmware (internal software) is version 0.8 or higher. I had to use this Windows utility to update from 0.7.6 to 0.8.3 (This utility is Windows only, but needs to only be run only once per card. It should work for any Prism2 based card.)


How to Install Ubuntu in my Windows laptop

Follow these steps.

create a partition for your hard disk. Give 100gb for
ubuntu.
switch off fastboot in windows. by going to power settings, click on change what power buttons do and the deselect turn on fast startup. (use google search if you don't know
how)
load ubuntu 14.04 bootable pendrive or a cd according to
this
link.
now, insert the pendrive or the cd and click on power and restart
while holding shift key.
then click on "usb" and then click on first option that is
available. (not sure what it says)
then click on try ubuntu or install ubuntu.
then follow the steps. in step 3 (i think) it will give you options
to clear hard dive (i.e. delete ubuntu) or other. choose other.
the give the following memory for each: ext4 / :40gb, ext4 /home:
50gb, ext2 /boot: 500mb and downset boot thing to boot partiton.
then you are done. just follow steps.

If you are using windows 7 or lower wawtch this it should guid you through the process.

hope it was helpful.


how to configure a trackpoint only mode on thinkpads with clickpads

The Option "Synaptics Area" "0 0 0 1" does not work properly. Hence all that is needed is:

Section "InputClass"
    Identifier "tp only with clickpad buttons"
    MatchDriver "synaptics"
    Option "SoftButtonAreas" "60% 0 0 0 40% 60% 0 0" #Emulate right and midle buttons
    Option "AreaBottomEdge" "1" #disable moving but not buttons
EndSection

store this in a file 99-carbonx1clickpad.conf in the folder /usr/share/X11/xorg.conf.d/

tested for ubuntu 13.10 and 14.04 alpha


How to install KdenLive on Ubuntu 16.04?

You can install it through the software centre, just search for "Kdenlive" in the software centre, and click Install. You can also install it through the terminal by typing

sudo apt-get install kdenlive

That's it.

Note that you will not get the very latest version by doing this - if you want to have the latest version, you'll need to add the PPA. Do this by typing

sudo apt-add-repository ppa:kdenlive/kdenlive-stable && sudo apt-get update

in a terminal before installing it through the software centre or using apt-get install


The standard solution to problems like this is to run boot-repair:

https://help.ubuntu.com/community/Boot-Repair

You can run this from within Ubuntu, or there's also a CD image available from the above linked site.

Boot-repair is capable of fixing problems with Windows boot, not just Ubuntu, and should even work for dual-boot systems.

As for the reason for your problem, it's most likely that the Ubuntu installer modified your computer's boot information in UEFI in a way that is not compatible with the way you were booting before.  This is bad news for your Windows partition as it has lost the ability to boot.  It is possible that you could solve that problem with the Windows repair CD, but you would then still not be able to boot Ubuntu, and in some cases it may require a re-install of Windows which is not ideal.  Boot-repair is more likely to be successful.

Run boot-repair carefully and don't change any of its default settings unless you have fully read the page I linked and/or its documentation.


How to associate a file type within Wine with a native application?

The Wine page has some detail on this.

First you need winepath to translate the path. This will make the script and give it permission to run:

mkdir -p ~/bin/
echo '#!/bin/sh' > ~/bin/run_linx_program
echo '$1 "`wine winepath -u "$2"`"' >> ~/bin/run_linx_program
chmod a+x ~/bin/run_linx_program

Then you'd save something like this to a file called association.reg:

[HKEY_CLASSES_ROOT\.avi]
@="AVIfile"
"Content Type"="video/x-msvideo"
[HKEY_CLASSES_ROOT\AVIfile\Shell\Open\command]
@="/bin/sh run_linx_program mplayer \"%1\""

Then run regedit association.reg to add the association to Wine's registry.

Note: this is adapted from the Wine page. I got the mime-type from within Linux (file --mime-type an_avi.avi). Wine may treat AVI files differently.


How can I set sleep mode in ubuntu18.04 LTS and what is the short cut key to do so?

There are three ways to suspend in Ubuntu.

1) An the top right corner open the status menu. Pressing the "alt" key will turn the shutdown button into a suspend button.

2) A long mouse press on the shutdown button will turn it into a suspend button

3) From the activities view (where you can see windows and search applications) search for "suspend" in the language ubuntu is using (in my case italian for example) and select it.


how can I install ubuntu in windows 7 32bit machine?

http://www.ubuntu.com/download/desktop

Look at the part below the download part, you have all the instructions there.


Accidentally deleted the entire /usr folder

Unless you have a system backup ...

Use the live CD to create a backup of your private documents and folders.
Re-install without formatting.

This should leave everything user specific intact (including settings) and re-install all the missing files but it is always tricky hence the backup part.


Store frequently used terminal commands in a file

Open your ~/.bashrc and put this at the end:

alias boil='git clone git://github.com/paulirish/html5-boilerplate.git'

or alternatively, this

boil() {
  git clone git://github.com/paulirish/html5-boilerplate.git
}

From now on, in every new terminal you can use the command boil as an alternative to your long command.

The second version is to prefer, because is more flexible being able to accept and manage parameter, for example if you define

boil() {
  [[ -z "$1" ]] && set "github.com"
  git clone git://"$1"/paulirish/html5-boilerplate.git
}

you can easily change server, if there are mirror.

# without a parameter, the function will use a default
boil
# override the default providing explicitly a server parameter
boid othergit.com

It is only an example, your fantasy surely will generate something more useful.

Obviously you can add as many functions as you need.


Use the whole Speed of my Core 2 Duo in Natty

By default, your CPU should run in the "ondemand" governor, which means that when it needs it it'll scale up.

If you just want your CPUs to run at 1.86Ghz all the time, run cpufreq-selector -c 0 -g performance and cpufreq-selector -c 1 -g performance.

If you use cpufreq-info, you can verify that governor is running properly:

$ cpufreq-info
cpufrequtils 007: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
  […snip…]
  hardware limits: 800 MHz - 2.10 GHz
  available frequency steps: 2.10 GHz, 2.10 GHz, 1.60 GHz, 1.20 GHz, 800 MHz
  available cpufreq governors: conservative, ondemand, userspace, powersave, performance
  current policy: frequency should be within 800 MHz and 2.10 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 2.10 GHz.
  […snip…]
analyzing CPU 1:
  […snip…]
  hardware limits: 800 MHz - 2.10 GHz
  available frequency steps: 2.10 GHz, 2.10 GHz, 1.60 GHz, 1.20 GHz, 800 MHz
  available cpufreq governors: conservative, ondemand, userspace, powersave, performance
  current policy: frequency should be within 800 MHz and 2.10 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 800 MHz.


User Accounts: You have an 'ubuntu' account simply because the root account is locked. You need some account to be able to login for the first time. There is nothing special about the 'ubuntu' account -- it's just like every other admin account. You can use it --or a different account that you create-- as you please.

Creating a new admin user to replace 'ubuntu' is very easy.
Advice: If you decide to use the Ubuntu account, CHANGE THE PASSWORD. Don't make an intruder happy by keeping the default password.

SSH: Our usual advice is to ALWAYS use key-based authentication for SSH connections across the internet. Never passwords. Automated attacks against password-protected ssh servers are just too easy.


Can I upgrade from 10.04 to 11.04 using iso image

UNDER NO CIRCUMSTANCES SHOULD YOU UPGRADE DIRECT TO 11.04 FROM 10.04

Despite the appearances, you should never upgrade to 11.04 without missing out 10.10, even with the desktop or alternate CDs.

See this AU answer for more details -

In summary, it is not supported, you will likely cause major issues with your install, or even break it so that it will not boot.

If you want to use the desktop CD, backup your non-hidden /home folder files and do a fresh install.  After that, copy back your /home folder files.


First, boot from a CD, USB, or network in recovery mode or live mode.
Second, delete the large files in ~/.cache/ as suggested in the BleachBit FAQ entry "Q: I closed BleachBit while it was working for a long time, and now my hard drive is full. How do I fix it?". It is often safe to delete the whole ~/.cache/ folder.


Acer Chromebook 15 CB3-532 full BIOS flash with Ubuntu - No sound

Try downloading that file and the HiFi.conf (https://github.com/GalliumOS/galliumos-braswell/blob/master/usr/share/alsa/ucm/chtrt5650/HiFi.conf) and put them in /usr/share/alsa/ucm/chtrt5650/chtrt5650.conf and /usr/share/alsa/ucm/chtrt5650/HiFi.conf


Is is safe to let Ubuntu resize my Windows partition during installation?

Yeah, but as with anything that involves data: make sure you have your data backed up.

Remember, as far as we know this works out of the box but nothing is guaranteed against faults!


15.10 Dolphin: R-click anything -> mouseover "Activities" = Dolphin disappears/insta-crash

I disabled the File to activity linking plugin service by going into Dolphin's Control -> Configure Dolphin and in the Services Tab, now the error is gone.


Reinstallation of windows in dual boot system

1) Install Windows like you would do usually (just don't erase ext3/ext4/swap/Fat32 Ubuntu partitions). This will not harm Ubuntu but will erase Grub and replace it with MBR, so you will only be able to start Windows.

2) Run Ubuntu as a live-cd and reinstall grub on your boot partition :

  See https://help.ubuntu.com/community/Boot-Repair for instructions on how to install grub.


Create an alias to print a command instead of executing it

Assume you have a variable ONE that holds the url https://api.github.com/users/agituser, you could use the following command to set an alias editurl that will give you an editable output:

alias editurl='read -e -i "$ONE" URL && curl $URL'

From man read:

NAME
       read - read from a file descriptor

-e
If the standard input is coming from a terminal, Readline is used
to obtain the line
-i text    Use TEXT as the initial text for Readline

So editurl will give you,

ron@ron:~$ editurl
https://api.github.com/users/agituser #this line is editable

You can change the url (which will be saved in `$URL) or not change.

If you do not change the url:

ron@ron:~$editurl
https://api.github.com/users/agituser
{
  "login": "agituser",
  "id": 787606,
  "avatar_url": "https://avatars.githubusercontent.com/u/787606?v=3",
  "gravatar_id": "",
  "url": "https://api.github.com/users/agituser",
  "html_url": "https://github.com/agituser",
  "followers_url": "https://api.github.com/users/agituser/followers",
  "following_url": "https://api.github.com/users/agituser/following{/other_user}",
  "gists_url": "https://api.github.com/users/agituser/gists{/gist_id}",
  "starred_url": "https://api.github.com/users/agituser/starred{/owner}{/repo}",
  "subscriptions_url": "https://api.github.com/users/agituser/subscriptions",
  "organizations_url": "https://api.github.com/users/agituser/orgs",
  "repos_url": "https://api.github.com/users/agituser/repos",
  "events_url": "https://api.github.com/users/agituser/events{/privacy}",
  "received_events_url": "https://api.github.com/users/agituser/received_events",
  "type": "User",
  "site_admin": false,
  "public_repos": 0,
  "public_gists": 0,
  "followers": 0,
  "following": 0,
  "created_at": "2011-05-14T10:07:35Z",
  "updated_at": "2015-04-07T14:47:28Z"
}

or change the url:

ron@ron:~$editurl
https://api.github.com/user
{
  "message": "Requires authentication",
  "documentation_url": "https://developer.github.com/v3"
}


Ubuntu 12.10 doesn't start with kernel 3.7

How did you install the kernel?

Did you use .deb packages?

If you did, then install Gdebi:

sudo apt-get install gdebi-gtk

After this open the .deb files from which you installed you kernel. You need to open all of your packages which were included in this kernel.

After ths run:

sudo update-grub

If you want, you may try installing newer versions of kernel (currently the latest is 3.7.1) Use .deb packages for quantal only and install them using Gdebi. Install all of the packages, inluding haders, generic image, image extra.

This is the way, I do it. Maybe there is a shorter terminal way...


Retired XP machines - which version to install?

I would advise either lubuntu (running very well on my computer) or xubuntu, as these are lightweight. They are both pretty fast, although lubuntu is noticeably faster.

If you want the features, go for Xubuntu, or the speed and similarity to windows, lubuntu. Either of the desktops, installed alongside unity are good, but I advise the while OS as it isn't slow at any point (e.g. logging in when it is just the desktop is painful, as it uses the 14.04 login screen)

Ubuntu with Unity would run on them, however some things may slow it down, and it may be frustrating. XFCE and LXDE would be much faster - even than XP was!

I have a single core intel celeron with 512MB, and it runs faster than XP - it's now use able!


ufw allow port from ip address range and deny others

after I remove following rule:

  22/tcp (v6)                ALLOW IN    Anywhere (v6)

ufw starts to netfilter.


Can't put process into background using "&"

I don't think what you're trying to do is possible (without extensive and very hard work).

The & has no relation to the X server. It's simply a meaningful character to bash that says the following:

  Run command A and command B at the same time. If there's no command B, return the user to the shell.

It has nothing to do with switching the active window in X, running other commands, etc. It has one use only: Running two commands at the same time.

With that in mind, it might be possible to write a script that would run a specified command, switch the active window back to the terminal, and then wait for your next command. However, that's out of the scope of this question as we're now getting into scripting.


How can I get Qt5 applications to use the GTK theme in Ubuntu 17.04?

The look and feel of Qt5 applications is determined by platform themes and styles. The platform theme is responsible for icons, fonts, etc. and the style controls how widgets are rendered. I think you'll find your application such as Qt Creator is using the GTK3 platform theme as standard.

The problem has occurred since Qt5.7. In this release, the GTK2 platform theme and style was removed and replaced with the GTK3 platform theme. I've recently been in discussion with the Qt developers and it appears there isn't a GTK3 style to complement the platform theme and there are currently no plans to implement this in the future. Therefore, on Ubuntu, the default style is "Fusion" using the GTK3 platform theme.

There are a couple of methods to add a native style as follows:

The old GTK2 platform theme and style are still available in a separate package called qtstyleplugins that can be downloaded here. Unfortunately, the GTK2 style is not compatible with the GTK3 platform theme. If you want to use the GTK2 style you will have to use the GTK2 platform theme. This will mean your dialogs etc. do not look native in Ubuntu 17.04. However, you may prefer it to "Fusion".
You didn't state what desktop environment you are using. There is a third party platform theme and style called QGnomePlatform available here and adwaita-qt available here. This provides a fully native look and feel when using Ubuntu Gnome.

For Qt Creator, I'm not 100% sure if it uses global theme/style locations. You may have to install them in {Qt_installation_folder}\Tools\QtCreator\lib\Qt\Plugins\platformthemes\ and {Qt_installation_folder}\Tools\QtCreator\lib\Qt\Plugins\styles\.


How can I configure a computer to connect to the internet through another computer that has two NICs?

Just follow this link. Bridge the cards on your Dell, and if you use dhcp it should be plug and play. https://help.ubuntu.com/community/NetworkConnectionBridge


First go to: How do I browse a website that uses WebGL? where i answer a similar question. After that do the following:

Run chromium using the following parameter: chromium --enable-webgl

Chrome might or might no work with the parameter mention above, at least in the last 3 versions it failed for me on some PCs.


grub rescue after uninstalling Ubuntu on EFI system

You've probably deleted the wrong files from the ESP, or the right files from the wrong ESP. (Some computers have multiple ESPs, or multiple ESP-like partitions.) There are two ways to fix this:

You can poke around looking for the right files or the right ESP. (This is best done if you understand your partitions. Something like the output of sudo fdisk -l in Ubuntu will help. On this forum, we understand tools for partitioning, and for mounting partitions, in Ubuntu better than in Windows.)
Use EasyUEFI, efibootmgr, or a similar tool to adjust the boot order so that Windows is first. (Some, but not all, EFIs let you do this in their setup utilities, too.)

The second option is likely to be easier, but you'll still have a bit of GRUB installed somewhere. This remnant of GRUB will likely cause no problems, but if you're compulsive about such things, you might prefer tracking it down and deleting it. OTOH, this approach is also riskier -- if you accidentally delete the wrong files, you could render you computer completely unbootable.


How do you purge NVIDIA GeForce 7025 drivers?

Type the following into the terminal (Ctrl-Alt-T)

sudo apt-get purge nvidia-current


I need to add sections in xorg.conf, do I need to create it?

You'll have to build your own, 10.04 & newer releases do not have an Xorg.conf.

https://wiki.ubuntu.com/X/Config


Missing files? 3Gb+ .tar.gz file contains files with total size of 6.2Kb

Answering this, just in case it is useful to anyone else in the future.
These are the steps I followed:

Run tar tzvf compressed-filename.tar.gz to check for errors
If errors encountered, download the gzip recovery utility
Build gzrt binary locally (you'll need to have make and gcc installed)
Run /path/to/gzr compressed-filename.tar.gz, if all goes well, you'll have a freshly minted file named: compressed-filename.tar.recovered
Run the command cpio -F compressed-filename.tar.recovered -i -v (you'll need to install cpio if you don't have it)

The last command will restore all files (not damaged - i.e. "recoverable") in to the folder it was run in. More likely than not, at some point in the recovery, cpio will abort and print the dreaded: cpio: premature end of file - but hopefully, you will have been able to retrieve the majority of your files before the unexpected EOF.


My machine as Wi-Fi Hotspot broken after upgrade to 20.04

There is a bug in 20.10 breaking the hotspot feature. Installing updated packages listed here will solve the problem.

Note that there is another bug that make the hotspot appear unconfigurable ("Turn On WiFi Hotspot..." is grayed out). To work around this bug you must click a different setting category (like "Baground") before returning to Wi-Fi settings. Now clicking on the three vertical dots at the top will reveal "Turn On WiFi Hotspot...".


20.04 snapd issue: "system does not fully support snapd: cannot mount squashfs image..."

As you're on a VPS, maybe snaps is not supported on your env.
I found this post on letencrypt, and someone said:

snaps rely on certain Linux kernel features which are not available
under containerized servers like those running under openvz.

https://community.letsencrypt.org/t/system-does-not-fully-support-snapd-cannot-mount-squashfs-image-using-squashfs/132689
Hope this help.


Network Manager Not Picking up VPN's Nameservers

Edit your VPN connection, click IPv4 Settings tab, select Automatic (VPN) addresses only in Method dropdown and type your company's DNS servers and domain in the boxes at the bottom.


How can I find out why Ubuntu with SSD takes so long to boot?

Systemd can inform you of services that may have taking a while to execute during boot, use:

systemd-analyze blame


Appearance dialog doesn't work in 12.04 Unity

Solved by enabling 2D and 3D acceleration in VirtualBox settings, which allowed Ubuntu to run in 3D mode.


Let's assume that :

Your destination partition table is correctly defined
Sizes of sda5 and sdc5 matches (otherwise it would not make sense, or you will need to run gparted to resize the filesystem if sda5 is smaller than sdc5)

You will probably want to copy just the first 440 bytes of the MBR since the partition table is whithin the MBR sector (see wikipedia entries (en) or (fr) with dd command examples).

dd if=/dev/sda of=/dev/sdc bs=1 count=440

Anyway, gparted allows you to easily and quickly copy data between partitions since it analyzes filesystems and only copies the bytes needed, so I would recommend gparted against dd.

The only exception would be in the case you want to recover a broken drive, in that case I would recommend you to extract data with dd_rescue which is more resilient to errors than dd, probably faster, too.


Using f3write to determine USB Drive size: specific syntax

If the stick is mounted as /media/jw/2177-E385 then that folder is the one you need to supply to f3write.  So:

sudo f3write /media/jw/2177-E385/

is the correct command.

You can delete all the other h2w files.


Don't edit the /etc/environment file!!! revert the changes and put it back as it originally were. Your system is supposed to work with multiple users. Imagine you create another user, say johndoe. Then what will happen when he logs in? he'll have, in his PATH variable your directory /home/pshizd/Desktop. I'm sure he doesn't care about that!

Instead, modify the PATH variable from within your own personal .bashrc file: add this snippet at the end of your .bashrc file:

PATH=/home/pshizd/Desktop:$PATH

Now wait, your own scripts are not supposed to be located on your Desktop. Instead, create a bin directory in your home directory, put your scripts there, and instead of the previous command in your .bashrc file, put this:

PATH=$HOME/bin:$PATH

If you modify the file .bashrc, the changes will only take effect in new terminals.

Now, if you want this script to be available to all users (e.g., you'll want johndoe to be able to execute it, yet he should not have access to your personal directory), the best place is to put the script in /usr/local/bin. This directory should already exist (create it if necessary), and should already be in every user's PATH. Check that by inspecting the /etc/profile file (but do not modify this file!); you could also grep PATH in there, as so (with some contextual lines):

grep -C4 PATH /etc/profile

you should see that /usr/local/bin is added to the user's PATH.

By the way, do not put your own commands in /usr/bin! This place is for your distribution's binaries, not your personal ones.

Regarding why it didn't work after modifying /etc/environment: you need to open a new terminal for changes to take effect.


Judging by the output of cat /etc/default/grub there is no config causing the beep, as GRUB_INIT_TUNE is commented out.

However, this can be caused by a key being held down prior to the GRUB menu showing up. If you recently spilled anything on your laptop or eaten near it, you might have a stuck key. Not stuck enough to show up in the full OS, but enough to cause GRUB to beep.

If you pop off the key-caps on the keyboard and clean underneath them, that might resolve your issue as sometimes little bits of food (or even just stuff from regular use) can get underneath the keys.

EDIT: We were able to figure out the issue in chat.

OP had to edit the /cdrom/isolinux/menu.cfg file and edit the menu title Installer boot menu^G line by removing the ^G from the end. He then restarted, and the issue was resolved.


Ubuntu can't read my USB: "device descriptor read/64, error -110"

So the error is device descriptor read/64, error -110 which is basically has something to do  with power. Your laptop/desktop was not able to supply enough power to the USB.

A solution that has worked for many is shutting down the system, unplug the charger and USB for 5 minutes, replug charger and USB, restart the system.

See:

usb - device descriptor read/64, error -110 - Stack Overflow
[SOLVED] USB 2/3 device descriptor read64, error -110


I'm not really sure what exactly you're trying to do - but using loopback interfaces for it is most likely wrong idea.

if you have virtual systems on your vmware host - may be better to create some network like, say, 192.168.1.0/24 and in this network assign separate IP to each of your guests:

i.e.:

192.168.1.1
192.168.1.2
192.168.1.3

etc.

You can bring interface up with the proper IP using ifconfig command:

ifconfig eth0 192.168.1.1 netmask 255.255.255.0 up

However - if you're looking to assign those IPs permanently - you should add them to /etc/network/interfaces.

For example like here:

iface eth0 inet static
address 192.168.1.1
netmask 255.255.255.0

(you can add a proper gateway entry, as well, if needed)

Of course it doesn't have to be 192.168.1.0/24


XMMS
This cross-platform Unix player was not further developed to meet requirements of newer version of Ubuntu and was thus removed from the repositories.

XMMS2
The presently available version of a similar music player.

Gxmms2
This is a Gtk2 graphical frontend for XMMS2.

Audacious
An alternative lightweight and skinnable musice player initially forked from XMMS.


How do I recover from this broken upgrade(?)?

Since you can get to the console, probably easiest thing to try first is to log in and run:

sudo apt-get install --fix-broken

If the problem is merely that some packages hadn't finished configuring, it should be able to complete that, network or no.


If all the files are in the current working directory (i.e. none is nested in some subdirectory), use a bash for loop (thanks to Incnis Mrsi for the tighter globbing pattern):

for f in ?HzSNR???C*.txt; do /home/user/.lcmodel/bin/lcmodel < "$f"; done

This specific globbing pattern is pretty tight; also using globbing itself will result in the ordered list of the files in the current working directory to be expanded in the for statement, resulting, ultimately, in the files being processed in their numerical order;

If not all the files are in the current working directory, use find:

find . -type f -name '?HzSNR???C*.txt' -exec /home/user/.lcmodel/bin/lcmodel < {} \;

However using find in general does not guarantee that the files will be processed in their numerical order; if processing them in their numerical order is mandatory, use find + sort + xargs:

find . -type f -name '?HzSNR???C*.txt' | sort | xargs -I file /home/user/.lcmodel/bin/lcmodel < file


Authentication Required window stuck after login

I faced the same problem on Pop_!OS, no need to reboot actually;
The easier way is to just restart GNOME by one of two ways:

pressing Alt + F2, type r then Enter, or
in terminal, killall -3 gnome-shell

This should just restart Gnome Shell. You will not lose your open windows, but you should be reminded to save all your work regularly!
Related bug: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1824874


UBUNTU 12.04 - Wireless is not configured when I dont use wired connection

You can manually configure a wireless network. Go to System settings--> network--> Press + symbol to add new network select wireless tab and you can configure wireless connection by providing all details it ask you to give. If you didn't understand me, follow this link. This method needs to install wicd using which you can configure more easily "http://handytutorial.com/setting-up-wireless-network-in-ubuntu-12-04-precise/". All instructions are given.


I had this exact problem after upgrading from Ubuntu 16.04 to 18.04. No program could output audio, except the system settings speaker test.

I was able to fix it by deleting the config files in ~/.config/pulse and then restarting pulseaudio with pulseaudio --kill. It should restart immediately and recreate the config files with what seems to be default settings.

After that audio worked again :)


Numix removes borders and colors in unity launcher

The borders being removed was done intentionally in a recent update:

Numix Project - Google+ - Numix GTK theme was updated along with Numix Light and Dark…


Tagging gone from Nautilus, GAJ, tracker

GAJ maintainer here. Since the last version (0.6) the tagging feature (powered by Tracker) has been removed from GAJ, due to problems and random crashes. For what concerns Nautilus, as far i know, installing Tracker should let you tag out of the box.


I just installed Apache2 and these are the config files that were installed onto my computer.

https://dl.dropboxusercontent.com/u/122705406/Google%20Drive/server%20default%20config/apach2e.zip

Download it, unzip it then replace the /etc/apache2 directory with this folder.

Also, start the apache server with

sudo service apache2 start

and you might want to try

sudo apt-get purge apache2

instead of apt-get remove.


I am using intel xorg driver and can't get dual monitors (laptop + monitor) working. It worked fine in 11.10.

You could try deleting ~/.config/monitors.xml which didn't work for me although it did get my displays to mirror.

But maybe something went wrong in the upgrade. It may be worth backing up everything and doing a clean install of 12.04?


docker-compose denied by AppArmor outside of $HOME - how to fix?

If we focus only on the AVC denial it can be eliminated from the logs by modifying
/var/lib/snapd/apparmor/profiles/snap.docker.compose

Adding:
@{PROC}/@{pid}/mounts r,

Then reloading the profile:
sudo apparmor_parser -r /var/lib/snapd/apparmor/profiles/snap.docker.compose

This actually did not make docker-compose work. It just deals that particular denial. So I don’t recommend it.
The most important aspect of this may be that docker is installed as a snap.
The broader issue is highlighted here:
https://github.com/docker/compose/issues/6361
On this thread to date contributors have worked around it by installing docker compose from apt rather than using the snap.
Digging a little bit more into that the docker snap suggests that needing to use the $HOME directory is a known limitation.
https://github.com/docker-archive/docker-snap#usage
From there I think the question will relate to limitations in the docker snap rather than AppArmor denying something.
I’ve left the original suggestion below because it may help in other situations.
Old answer
The program aa-logprof can be used to scan log files for AppArmor audit messages, review them and update the profiles.
sudo aa-logprof

It might guide you through the process without you needing to dive into the nuts and bolts of AppArmor.
Here is the man page:
http://manpages.ubuntu.com/manpages/xenial/man8/aa-logprof.8.html


Cron Job firing every minute for an hour at it's scheduled execution time

I don't try to figure it out, I just use the handy-dandy corntab.com cron gui.

It says that sure enough, what you wrote will run every minute starting at 10:00 on Thursday and Saturday.

I suggest you use corntab to get what you really want - if nothing else, it's an easy way to test your cron entries.

Note: No vested interest in corntab, just a satisfied user.


How can I tell which package an executable came from?

install apt-file

$ sudo apt-get install apt-file

update apt-file

$ sudo apt-file update

search the package a file belongs to

$ apt-file search filename

find path of executable

$ whereis rename
rename: /usr/bin/rename.ul /usr/bin/rename /usr/bin/X11/rename.ul /usr/bin/X11/rename     /usr/share/man/man1/rename.1.gz /usr/share/man/man2/rename.2.gz

search package

$ apt-file search /usr/bin/rename
ladr4-apps: /usr/bin/renamer
util-linux: /usr/bin/rename.ul

the package name is: util-linux


Why can't I install mysql-server in standard way?

Maybe a duplicate of this question:
dpkg: error processing package mysql-server (--configure)

  You have subprocess installed post-installation script returned error exit status 1 , post-installation script is *.postinst file. In your case /var/lib/dpkg/info/mysql-server-5.5.postinst which run on configure step of the package installation. When it does fail, you are locked in, because even remove operation will try complete the stopped configure step tehn remove package. So open /var/lib/dpkg/info/mysql-server-5.5.postinst & manually edit it and add set -e on 2nd line to ignore any error (basically invoke-rc.d/init fails to restart the mysql service). restart it manually after. – user.dz Jul 1 '16 at 3:42


Trying to install Canon LBP7750Cdn driver on Ubuntu 12.04

I think you relied on Ubuntu to supply the printer driver needed;

Canon provide drivers that you need to use;
Canon LBP7750 Driver

You are using Ubuntu: it uses .deb packages (also known as debian packages)

You need to work out if you are using 32bit or 64bit;

You might find you get better help on the Ubuntu forum: in the hardware section is usually where people ask for printer help;

Post number 4 (often written as #4) in this thread

talks about how a Canon LBP printer is installed

Sivella (the person doing post #4) is french and maintains the french LBP support page for Ubuntu


Synchronising samba and unix user accounts

You can use "smbpasswd -a " to set the users password in the Samba database, without requiring them to log in.

It should be possible to create a simple wrapper script which calls both useradd and smbpasswd -a. Ideally useradd should just have integration for this and call smbpasswd -a for you (perhaps after you've set a configuration option), but we're not quite there yet.