Problem accessing second hard disk with Squeezebox server

The new drive is not actually at /media/mediadisk/Music.  It is located at something like /dev/sda or /dev/sdb.  Try looking at this question for more information.


I tried to reset alsactl using this command and it worked. There's no need to reinstall anything.

sudo alsactl restore

Note: If you see Device or resource busy, login to a tty(Ctrl+Alt+F6 or Ctrl+Alt+F7) and run the command at there.

Edit:

It seems that I mistakenly assumed that the sound was coming from my headphone. My headphone still didn't work.

This time I tried this:

sudo apt install alsa-tools-gui
hdajackretask

In the new window, select the correct codec at the top. Click "show unconnected pins. Click "override" on each unconnected pins and choose "Headphone" for every pins that have this choice(don't change connected pins). Click "Install boot override" and then reboot. Now it worked.


How to find a zombie process after reboot?

Zombie Process on Wikipedia:

  On Unix and Unix-like computer operating systems, a zombie process or
  defunct process is a process that has completed execution but still
  has an entry in the process table. This entry is still needed to allow
  the parent process to read its child's exit status. The term zombie
  process derives from the common definition of zombie — an undead
  person. In the term's metaphor, the child process has "died" but has
  not yet been "reaped". Also, unlike normal processes, the kill command
  has no effect on a zombie process.

...

  Zombies can be identified in the output from the Unix ps command by
  the presence of a "Z" in the "STAT" column. Zombies that exist for
  more than a short period of time typically indicate a bug in the
  parent program, or just an uncommon decision to reap children.
  If the parent program is no longer running, zombie processes
  typically indicate a bug in the operating system. As with other leaks,
  the presence of a few zombies is not worrisome in itself, but may
  indicate a problem that would grow serious under heavier loads. Since
  there is no memory allocated to zombie processes except for the
  process table entry itself, the primary concern with many zombies is
  not running out of memory, but rather running out of process ID
  numbers.

Don't wory, it happens sometimes. There's no need to log this kind of event.


Installing Ubuntu in EFI mode Cant go beyond GRUB Menu

Do you use a 64 bit version, with 12.04.2/12.04.3 release? They are the only ones which work with UEFI. Any idea of what video chip you have? Editing the grub "Try" command to add "nomodeset" might help.

Thanks to ubfan1 for the answer.


This problem was solved here: https://bugs.launchpad.net/ubuntu/+source/shim-signed/+bug/1736080
Basically, the /boot/efi partition was not mounted correctly (UUID mismatch in the /etc/fstab file). Once I managed to mount it, the package installed correctly.


1) You shouldn't manually update your resolv.conf, because all changes will be overwritten by data that your local DHCP server provides. If you want it to be static, run sudo dpkg-reconfigure resolvconf and answer "no" to dynamic updates. If you want to add new entries there, edit /etc/resolvconf/resolv.conf.d/base and run sudo resolvconf -u, it will append your entries and DHCP server's entries.

2) Try to edit your /etc/network/interfaces and add your entries there, like

auto eth0
iface eth0 inet dhcp
dns-search google.com
dns-nameservers dnsserverip
and then restart /etc/init.d/networking restart or sudo ifdown -a and sudo ifup -a

3) Your system uses udhcp which is a very small DHCP client program. The udhcp client negotiates a lease with the DHCP server and notifies a set of scripts when a leases is obtained or lost. You can read about it's usage here or just edit this script (as you did).


Need Gestures on my Ubuntu and Lenovo T430

It works sorry. after doing the

sudo gpasswd -a $USER input

I had to log off and login again. After I did this everything works.


No sound at Headphone jack in ubuntu - Audio not working

Ok guys, i found my problem after detail searching. Thats something i've never heard befor and i have nowhere seen. Maybe it will help other too. I had to enable the sound card i bios. The "Audio" option i found under general settings, and then "audio". There i had to enable and then apply, and then i could enable the microphone and the headphone jack.


On Ubuntu 19.10, eoan, how to install sqlite3 package?

The problem was that I did not have all the needed eoan repos:

Edit the /etc/apt/sources.list:

  $ sudo vim /etc/apt/sources.list

Then add the following lines at the end:

deb http://archive.canonical.com/ubuntu eoan partner
deb http://security.ubuntu.com/ubuntu eoan-security main restricted

Save and quit. Then upgrade:

  $ sudo apt update
  $ sudo apt -u dist-upgrade


Not sure if you ever got this figured-out, but when I was setting up shares in Ubuntu 12.04 I had to do a couple things before I was able to see them from a Windows machine:

Create a Samba username and password (sudo smbpasswd -a
USERNAME)
In the file manager (not sure if that's the right name), on the
Linux machine I set the permissions to Owner, Group, and
Others. And set the Access to Create and Delete Files.

Hope this helps.


Nautilus: How to adjust font on the left side panel and the icons

Install Gnome Tweaks if you did not already. On the "Fonts" tab, you can increase the font scaling factor. This will increase the fonts of the user interface.

In fact, play with combinations of Settings - Displays - Scale and Gnome Tweaks - Font scaling until you find a combination that works best (e.g. Scaling factor 1 with a larger font scaling, or Scaling factor 2 in combination with a reduced font scaling...)


How to add Debian experimental repo to Ubuntu?

The Experimental repository is a Debian repository, not an Ubuntu repository.

I would NOT RECOMMEND using the Experimental repository as a source for anything.  It has a lot of packages which can break everything, hence the name "Experimental".

CUPS 1.6.1-2 exists in Raring.  Once raring is released, you can use Raring.


Ubuntu TaskBar is gone. Launcher is missing

I have found a solution. apt-get fails to be able to handle the situation, but aptitude can handle it.

sudo aptitude install ubuntu-desktop

Note that the first solution offered by aptitude doesn't correct the problem, because that chooses not to install the package. I had to select no the first time, and then aptitude offered a second solution of downgrading the compiz packages that caused all the problems. The downgrade fixes the dependency problem, and then ubuntu-desktop and unity are reinstalled.


I'm not really sure if this will fix your issue, but it did help me: http://linuxg.net/fix-slow-graphics-performance-on-ubuntu-13-04-intel-gpu/


How do I change the boot sequence on my computer?

I once suffered with a similar problem.  My solution was to install Grub Customizer.

sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer

Great tool.


ubuntu 12.04 stuck on splashscreen - not due to upgrade

Try deleting .Xauthority, this worked for me.
Try to see the lightdm logs in /var/log/lightdm

Other things to try:
A) reinstall lightdm (apt-get remove, and then install)
B) install gdm instead of lightdm. (lightdm and gdm are the "login screens")

Press ctr+alt+f1 to go to a console from X, and then Alt+F7 or Alt+f8 to go back to X.


Is it possible to install nemo-compare on ubuntu 18.04? if so, how?

Here you have two possible solutions:

clone the git-repository, patch code and create deb-package locally:

# get development stuff
sudo apt-get install git devscripts debhelper python-all dh-python

# clone repository
cd ~/Downloads
git clone https://github.com/linuxmint/nemo-extensions.git
cd nemo-extensions/nemo-compare
git checkout 3.6.0

# patch (Ubuntu has 'nemo-python' instead of 'python-nemo')
sed -i "s/python-nemo/nemo-python/" debian/control

# build deb-package and install it
debuild -uc -us
sudo apt-get install ../nemo-compare_3.6.0_all.deb

and then restart Nemo.
find some PPA on the LaunchPad with precompiled Nemo Extensions packages:

sudo add-apt-repository ppa:gfunkmonk/nemo
sudo apt-get update
sudo apt-get install nemo-compare

and then restart Nemo.


I had to use ./configure --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu


How do I automatically connect to a wireless network with auto-login?

There are two ways to do that:

Remove Password and Encryption Keys (seahorse), the program responsible for keyrings.
The alternative is to edit your wireless connection, and tick the last checkbox to make it available for all users. In this case, the network will be connected to before signing in, at the login (if there are multiple users or the only user account is password protected).

Of course, the second method is preferable if you still have uses from GNOME-Keyring.


By adding the gnome3 ppa, you added newer version of many programs to the repository.

You "updated" nautilus to a version which has many features removed (see e.g. here: OMG )

You can basically do two things:

Remove the ppa, update the package list, remove nautilus, then reinstall it: basically, follow the answer on this question
Try to only revert nautilus (this might fail, depending on the dependencies...). See this question.


How do I preserve the recovery paritition for the notebook eMachines e442 while installing Ubuntu?

During the installation process on the Live CD you will be presented with a menu to choose how you want to install (Alongside Windows, erase the drive and Install Ubuntu, or Something Else). Choose Something Else and you will be presented with a list of partitions. Delete the Windows partitions, but leave the 14GB recovery partition. From there, select New Partition, Choose an EXT4 file system, check the format option, and mount it to /. Afterwards, simply install. It should leave your recovery partition in tact and install Ubuntu in another partition.


Kernel panic after attempting to install glibc

glibc is a crucial part of Ubuntu, so unless you really need a different version it is better to let it stay.

Regarding your problem, just re-installing libc6 should fix your issue. As you cannot use that system, you can try to recover it using a live cd.

After booting from a live cd/usb, mount your root partition (you can use Nautilus of the mount command to do that).

Then you should grab a copy of libc6 .deb. You can get it in http://packages.ubuntu.com/dist/libc6, where dist is your Ubuntu version (Precise, Quantal, Raring, etc). Double check you download the version that matches your architecture.

After that just extract that .deb to your root partition. This is not equal to use apt-get install, but as you cannot use any command on that system...

Supposing your root partition is mounted in /mnt, you can extract the .deb using

$ sudo dpkg -x /path/to/libc6*.deb /mnt

If everything went well, you can unmount your root partition and reboot to check if your problem is solved.

Edit

As pointed by fkraiem, after you got a working system you should run sudo apt-get install --reinstall libc6 to make sure libc gets correctly installed.


Slow Ubuntu 20.04 installation: warning: source ID xxxx was not found when attempting to remove it

From the comments...

After reviewing the disk SMART Data values, it looks like your HDD is failing.

Backup your important files asap.

Order a replacement HDD or SSD.

Don't try and clone/backup your current disk to the new disk, as you'll probably only get a corrupt copy. Reinstall Ubuntu from fresh, and then restore your backed up data files.


Remote Desktop doesn't work after upgrade?

There is a bug in 10.10's shipped version of vino when UPnP is involved.  Please update; we've corrected that bug.


bind9 configuration connection timed out

It's not entirely clear to me what is happening.  I imagine that bind is not running, due to errors in your configurations, so it is unreachable.  If this isn't helpful, please edit your post to include the command you're running, and additional output.

When you interact with bind, are you using systemctl?  For example:

systemctl restart bind9

When you do this, does the command spit out any errors?  Normally when something is wrong, it will direct you to look at journalctl.  What is the system telling you is wrong?

You can check if bind is running using systemctl status bind9, or ps aux | grep named, and possibly rndc status.

Maybe you have your /etc/bind/named.conf.local correct, but you did not post one, so be sure that you have the zone entries in that file.  You will need one per domain, and one per subnet served:

zone "example.tld" {
    type master;
    file "/etc/bind/zones/example.tld.zone";
};

zone "1.168.192.in-addr.arpa" {
    type master;
    file "/etc/bind/zones/192.168.1.zone";
};

Here is a working /etc/bind/named.conf.options, however, I've adjusted the IP to read .200, since .888 is not a valid IP.

    options {
            directory "/var/cache/bind";

            // If there is a firewall between you and nameservers you want
            // to talk to, you may need to fix the firewall to allow multiple
            // ports to talk.  See http://www.kb.cert.org/vuls/id/800113

            // If your ISP provided one or more IP addresses for stable
            // nameservers, you probably want to use them as forwarders.
            // Uncomment the following block, and insert the addresses replacing
            // the all-0's placeholder.

            // forwarders {
            //      0.0.0.0;
            // };

            //========================================================================
            // If BIND logs error messages about the root key being expired,
            // you will need to update your keys.  See https://www.isc.org/bind-keys
            //========================================================================
            recursion yes;
            allow-recursion {localnets; 192.168.1.0/16;};

            forwarders {
                    192.168.1.1;
            };

            dnssec-enable yes;
            dnssec-validation auto;
            dnssec-lookaside auto;

            auth-nxdomain no;    # conform to RFC1035
            listen-on { 192.168.1.200; 127.0.0.1; };
            // listen-on-ipv6 { any; };
    };

After you've double-checked the settings, restart bind and find the logs and output to determine the problem. Please post the exact commands, and logs you've found, as there may be even more wrong and it will be hard for anybody to help without all of the details.

An additional tip would be to change one thing at a time.  Change your IP, verify you still have connectivity.  Then, adjust bind, etc.  Take an iterative approach, and ensure that each time you make a change, you haven't broken everything else.


How to keep Text within GTK CellRenderers at center?

I guess you're using a GtkCellrendererText here. If so, you just got to set the alignment property to center.
Example vala code:

my_cellrenderertext.alignment = Pango.Alignment.CENTER;


How come I get "mysqld.service failed to load: No such file or directory."

The mysql daemon in Ubuntu is packaged as mysql, not mysqld.

sudo service mysql start

That's really all there is to that one.


Install postgresql. Unmet dependencie " postgresql-common"

I have a solution for you that although will not resolve the package problems it will hopefully give you a working postgresql system.

First, uninstall all installed postgresql packages - and I mean both clients and server.

Now download from here the appropriate EnterpeiseDB installer for your system.

Run the installer and you will get a clean postgresql distribution including clients in /opt. You can then select additional software to install through the stackbuilder gui (odbc/jdbc drivers, replication, even an instance of apache web server) The installer also creates a uninstall script, so removing everything is a piece of cake.

I hope you find this helpful.


Installing 12.04 on a system already running Ubuntu/Windows 7 dual boot help

No defragging needed.

If you want take a backup of your Ubuntu system just now ( Optional )
Then bang in your live CD and format the disk then install Ubuntu
Then you can restore your current install ( Optional if followed step 1 )

"Erase disk and install Ubuntu" - This will do as exactly as you need

But your plan seems sound. Just use the Live CD as stated and you will be all good. Leaving you with one large Ubuntu Install :)

Bill


This is not a full-fledged answer. I would post a comment but this is too wordy to fit.

In a comment, you mentioned you put echos into your .bashrc to figure out where the problem was. If I understand correctly, you had something like this:

echo 1
if [ -f ~/.bash_aliases ]; then
    . ~/.bash_aliases
fi
echo 2

And for the output, you got

1
$: command not found
$: command not found
$: command not found
2
yogesh@yogesh-WNB8PHF4710C-0030:~$

If that's correct, run this command in terminal, and edit the output into your question.

if [ -f ~/.bash_aliases ]; then
  echo "~/.bash_aliases exists."
  echo
  ls -l ~/.bash_aliases
  echo
  cat ~/.bash_aliases
  echo
  source ~/.bash_aliases
else
  echo "~/.bash_aliases does not exist."
fi


Essentially, what you need to do is copy the files to a folder on your internal hard drive, probably MUSIC, then have Rhythmbox scan that folder.
You can then disconnect the external drive and voilà, RB will have your music.

Incidentally, my personal preference is Clementine. Bon.


I am not an expert but here is my best answer:

Swap: Probably previous from the 'linux' word. It works as a supporting ram for linux

ext4: this is your linux

Unallocated: just empty space

Extended: I don't know!

ntfs: your windows is here

Can you maybe tell from the space of the drive? You can also mount the drive and look at the files inside. The C:\ drive will have files such as program files and Windows.

Mounting also gives you the ability to retrieve your files if you need some files. To mount the drive you just use Gparted, right click on the drive you want to mount and click "mount" (no magic, right? xD)

Otherwise you use the terminal. First, you can find the name of the drive using fdisk

fdisk -l

You will get a list of the installed drives, here is a list of mine:

Device          Start        End   Sectors   Size Type
/dev/sda1          40     409639    409600   200M EFI System
/dev/sda2      411648    1050623    638976   312M Microsoft basic data
/dev/sda3     1050624  206505983 205455360    98G Microsoft basic data
/dev/sda4   206505984  246810623  40304640  19.2G Linux swap
/dev/sda5   246810624  536717143 289906520 138.2G Apple HFS/HFS+
/dev/sda6   536717144  537986679   1269536 619.9M Apple boot
/dev/sda7   689291264 1456939007 767647744   366G Linux filesystem
/dev/sda8  1456939008 1465147391   8208384   3.9G Linux swap
/dev/sda9   537987072  689291263 151304192  72.2G Linux filesystem

The device name is /dev/sdx* (letter and number). For example, my EFI System device name is /dev/sda1 and so on. You can determine which drive is which from the device type column. It will be either NTFS or Microsoft basic data. I will mount my EFI as an example here from terminal

sudo mount /dev/sda1

You should see the drive mounted and be able to navigate through it. After you determine your windows drive you can then delete it. I hope this answered your question

Note: if you want to delete windows only because the boot is corrupted after installing linux then you might want to create another question with that problems. My experience with ask.ubuntu is that people here have creative solutions for every problem!


Are You sure you have permissions to create files in this directory? Maybe Gedit is not working correctly, try reinstalling it using sudo apt-get purge gedit and sudo apt-get install gedit. I have no other ideas.


Windows in Virtualbox show error Ex80070057 when copying files from a network share

It turned out that the solution was simple: I had to re-install the guest add-ons of Virtualbox and restart the Windows guest. The problem went away.


12.10 My unity doesnt start after restart

One possibility is that some conflict occurred in your window manager settings and you might need to tweak the GUI a bit. Ubuntu Tweak should do the trick, or some other settings editor. Just make sure that the Unity taskbar is enabled.


It sounds like the button that would play the music(on my keyboard it is a play/pause) or the next song, previous song is sticking.  I get the box you describe when I press the play button and don't have any music players open.  If I understand your description it is this....

I can only make that box pop up by pressing the play/pause key or the next previous song key, it is possible that other keys may cause it but my other keys do not.  As far as I know only the play, previous, next buttons do.

If you cannot get the box to go away by unsticking the keys you may have  a key that is going bad and so is giving you spontaneous key presses.  I that case the best thing to do would be to disable the affected key and then enable it again if you get  new keyboard.  Unless you are able to figure out which key is giving you the problem you may have to try then one at a time until the box goes away. This will stop the keypresses form doing anything on the OS so the key can spam away and the system will just ignore it.

Go to system settings in the dash and select the Keyboard(my mouse pointer is on it)

**

on the window that come up click on the Shortcuts tab and then select sound and Media you will see the list pop up for the various button, clicking on the list will highlight the line and will give you the option for a new accelerator from here you would press a new key or combination of keys to preform that function.  To disable that function you press Backspace.

You could either disable it or set it to a new key and see if that makes your box go away.  I would disable then one at a time until I found the culprit and then re-enable all the good ones and then change the function of the problem key to another key combo.  If you click on the wrong one you can either click off of it or press Esc  and it will reset to the last setting.  Here is a screenshot to help you.

I hope this was able to help you solve you problem. sorry it was so long, I couldn't see how to shorten it and still give you all the needed info.


Adding a custom icon (for a hand written script) to notification area xfce

You should take a look at Yad, an advanced Zenity fork. It supports systray notification icons and can be installed from this PPA.


Your system is trying to load the driver for Trusted Platform Module chips but its not being able to do so. I am not sure about your current hardware, because there is no information on your question, but you can try to blacklist that module (its not loading anyways).

Edit /etc/modprobe.d/blacklist.conf (sudo nano /etc/modprobe.d/blacklist.conf or similar using your fav text editor) and add the line blacklist tpm_tis.

Reboot.


To view the contents of your ntfs partitions, you have to mount it on a specific directory.

sudo mkdir /media/Myos /media/Mydata
sudo chmod a+rwx /media/Myos
sudo chmod a+rwx /media/Mydata

Now mount /dev/sda2 to /media/Myos and /dev/sda3 to /Mydata

sudo mount /dev/sda2 /media/Myos
sudo mount /dev/sda3 /media/Mydata

Now your ntfs partitions are mounted and you can view it's contents on /media/Myos and /media/Mydata directories.

To make your ntfs partitions  automatically mounted on boot, then you have to add the following lines on /etc/fstab file.

# /dev/sda2
UUID=9812314912312E1E  /media/Myos  ntfs  defaults  0  0
# /dev/sda3
UUID=0C76D84876D833E4  /media/Mydata  ntfs  defaults 0  0

And you won't need to mount an system reserved ntfs partition(/dev/sda1)


Extend LVM partition created on a raw device

This should extend the physical volume to use up all the available space on the disk:

pvresize /dev/sdb

See man 8 pvresize.

After that you have to resize the logical volume:

lvextend -l +100%FREE /dev/ubuntubase-vg/lvol0

And extend the filesystem:

resize2fs /dev/ubuntubase-vg/lvol0


error processing software-center after upgrading precise to quantal

To work around this I uninstalled the offending packages, in my case:

sudo apt-get remove software-center ubuntu-desktop

Once removed I was able to re-install them.

I tracked down which to remove by chasing the dependency tree, first I tried removing software-center it complained about the ubuntu-desktop dependency, so I tried to add it.

I think a general similar approach should work for other errors like this.


Differences between restricted repositories and partner repositories?

The restricted archive may contain only hardware drivers, not application software. It comes as a compromise in recognition that potential Ubuntu users could not use Ubuntu at all without it. Source: Ubuntu Policy Manual section 2.2.2.

The Canonical partner repository is not part of Ubuntu. It contains anything that Canonical thinks might be useful to Ubuntu users that is not Free Software. This includes application software.

So: restricted is a compromise in Ubuntu to make hardware work, and is restricted to just this. Canonical's partner repository is not part of Ubuntu, but may contain a wider range of non-free software.


Can not switch to nvidia graphics card because the kernel driver is not in use

So the problem is resolved. I had to enroll the MOK (machine owner key) after having installed the nvidia drivers (normally when installing the nvidia driver a MOK is asked) and after rebooting.

For this before logging in
1.) Use ctrl+alt+f2
2.) use the following command
sudo update-secureboot-policy --enroll-key


This seems to be an old bug in qBittorrent client which is not yet marked as fixed. Look at Automated download from RSS problematic  and here

So here are a couple of routes you could try to get those torrents:
 1. Use KTorrent with the Syndication plugin. You can define filters ( .LOL.HDTV ) and how ofter you want to refresh the rss (like qBittorrent.) And afaik this does not have the qBittorrent bug.
 2. If you must stick to qBitTorrent, then taking a cue from the 2nd link above, you could
 a.) first setup FlexGet

b.) List items you want to download into a configuration file. Here's a good tutorial for it. This tutorial uses the same showrss site as you want.
Basically, here you provide a folder where all .torrent files would be downloaded, e.g. ~/.torrent

c.) the init the flexget flexget --initdb

d.) In your qBittorrent settings, select automatically select torrents from ~/.torrent.

e.) Schedule flexget to run every few minutes and along with it start the qbittorrent client. This can be done using Gnome-Schedule and a simple script file rss.sh. Put the below content in the rss.sh file:

#!/bin/bash
/usr/local/bin/flexget #start flexget to download all .torrent files from rss
export DISPLAY=:0.0 #required to run gui apps such as qBitTorrent
/usr/bin/qbittorrent #run qb, which will pick up .torrent files from the ~/.torrent folder

In gnome-schedule, set the above script file. And you are good to go. Here's the tutorial for the last part.

Make sure that crond service is set to run on bootup and you are good to go.


How much would an ubuntu tablet cost? Where could I find one?

Here is a link provided on the Tablet page of www.ubuntu.com that will allow you to sign up for a notification about updates to the Ubuntu Tablet: http://www.ubuntu.com/tablet/register

If you cannot wait until an unspecified date, you could modify a Nexus 7 (or Nexus 10) which would cost $199 or greater.
https://wiki.ubuntu.com/Nexus7/Installation

*Note this installation is a preview, not what the final OS will be. There is more information on the Developer Preview. Expect bugs.


How to prevent Ubuntu from changing screen brightness?

You can turn off brightness adjustments to save power in System Settings->Brightness and Lock.


How to give my user permission to add/edit files on local apache server?

Edited this original post

Edit the following file as root: /etc/apache2/envvars

using the command:

sudo vim /etc/apache2/envvars

change the user and group to yourself if there is only one user and you will never have permissions problems again.

I.E., if you are only logging in and running the server as user 'logan':

export APACHE_RUN_USER=logan
export APACHE_RUN_GROUP=logan
Heck, for that matter you could change that user to the current user I'm sure somehow. Then, install user_dir you all have webs only you can have full control of (unless you modify this).

Restart the server

sudo /etc/init.d/apache2 restart

If you see:

Restarting web server apache2       ... waiting
/var/lock/apache2 already exists but is not a directory owned by user.
Please fix manually. Aborting.

You can change the permission to the apache locks before restarting apache:

chown -R myuser:myuser /var/lock/apache2/

sudo service apache2 restart


"No symbol table" error after upgrading to 17.04

sudo fdisk -l

This will list all partitions on your HDD (find under Type section the Ubuntu or Linux and its Device (like /dev/sda)) then, do

sudo grub-install /dev/sda

note that is sda and NOT sda1

sudo update-grub
sudo reboot


Unable to connect the internet after uninstalling NordVPN (20.04.1 LTS)

Do the following:
sudo killall nordvpnd
sudo nano /etc/resolv.conf
add/replace:
nameserver 8.8.8.8
nameserver 8.8.4.4

If you can't make the changes:
Overwrite the permission
sudo chattr -i -a '/etc/resolv.conf'
sudo chmod ugo+w '/etc/resolv.conf'
Then
sudo systemctl restart NetworkManager.service
now you can check with ping -c2 google.com
P.S.
I have used NordVPN in the past and they like to change the permissions of resolv.conf for some reason and after update or un-installation it messes up with the resolv.conf


Should I remove python3.6 since I have python3.7

**

Ubuntu version is 18.10

**

So my question is, should/can I uninstall python3.6 ? (I would appreciate if someone also provides me an easy way to uninstall python3.6 completely)

No, Ubuntu requires python 3.6 to function.(Since 18.04) If you do so you won't be able to log in after a restart.

What should be my keyword to call python 3.7 from terminal?

Configure Python 3 to use Python 3.7:

  sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6
  sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.7
  sudo update-alternatives --config python3
  Choose your preferred python version(for example 2)

Test the Python 3 version

  python3 -V

What should be my keyword to use pip to install packages onto python 3.7 from terminal?

sudo apt install python3-pip
pip3 install

Thanks in advance.

No Problem!!


Unable to create new partition, with fdisk or gparted. Trying to create EFI boot partition

From the screenshot, it looks like you're trying to edit the USB disk (6GB used + 16 GB free = 24 GB total) on which Ubuntu is installed.

Even if it would be an old and very small SSD, trying to change the partitions of an OS that is currently running on it would be similar to try and perform an operation on yourself, in your living room with a kitchen knife.

Dear patient, please go to the operating room and boot Ubuntu Live from another USB stick and perform a sterile operation.  ;-)  (Follow the duplicate, please)  Posting this as an answer as there is not enough space in the comments...


You can do a 25/75 quite easily by activating the "Cycle Through Multiple Sizes" option of the Grid Compiz plugin in CCSM (CompizConfig Settings Manager):

Install CCSM, open a terminal with Ctrl+Alt+t and type:

sudo apt-get install compizconfig-settings-manager

Open CCSM and type Grid in the Filter field:

The plugin to configure is the Grid plugin. Open it and select the Resize Actions tab:

Enable the "Cycle Through Multiple Sizes" checkbox and close CCSM.

Now if you press Ctrl+Alt+6 (but 6 in the numeric keypad) two times, the window will be on the right side, 25%. 4 times to get a 75%.

Tested OK on Ubuntu 13.10.


How do you access control file information?

There's a few ways to do it, but the way I like to do it is by using dpkg.

Try this:

Create a temporary directory ex: mkdir /tmp/pkg-tmp
Extract control info with dpkg: dpkg -e ./path/to/file.deb /tmp/pkg-tmp
Check out the control file, it should be in the top level directory: cat /tmp/pkg-tmp/control
You may want to clean up the temp directory when you are done examining: rm -rf /tmp/pkg-tmp

The postinst, preinst, and prerm scripts will be in there too. If there are no files named preinst, postinst, postrm, or prerm, then that means none of those scripts are part of the Debian packaging.

Some packages might have all of them, only 1 or 2, or none -- just depends on the package.

If the package is in an APT repository, you can run apt-get download package-name to first download the Debian package in the current directory, then run the commands listed above.

I wrote a blog post about extracting Debian packages and examining the control file, preinstall, postinstall, prerm files that has more information.


Ubuntu won't let you touch the partition while you are using it.

In order to shrink it, you just have to use the USB stick you used to install Ubuntu, or create a new one from Startup Disk Creator (preinstalled). You can download the Ubuntu image here.

Once you got your stick, just boot a live version of Ubuntu and as you said you are struggling with Ubuntu, just install Gparted and shrink your main partition from there.

Please note you DON'T have to create a new partition once you have shrinked it.

When you finish, you will just have to install Windows on that partition giving it format from the Windows installer. If you create another partition, Windows won't be able to recognise it, as it's another file system.


That's easy!  It's called the guest session!
Just give that particular user a USB stick to save their files to and you've got picture-perfect isolation without any additional work!
If that's not restrictive enough, you can customise the guest session with all of your requirements...
;-)


The solution is to install the package unity-scope-home by typing the following in a terminal: sudo apt-get install unity-scope-home, and then restart the computer. Sometimes, the updating process removes the unity scopes, and this package installs them all.


What is the best place to ask about package upgrades (in this case, freeglut)?

Let's take a look at the Debian Package Tracker to see the packaging activity. Like most packages, Ubuntu gets freeglut from Debian:

There are a few facts we can parse from this page:

Debian is aware of the new upstream versions.
There is a workflow backlog (lintian warnings, build log warning, standards warning).
A single volunteer has been uploading this package for at least seven years.

#2 and #3 imply that the lone volunteer is perhaps overworked and might welcome a bit of help from another volunteer (like you). There seems to be no intent to deliberately hold back the package.
The software catalogs of Debian and Ubuntu are curated by community volunteers (like you). New volunteers to share the work are ALWAYS welcome. You don't need to be a professional developer -- a willingness to learn is more important than your current skills. Start your journey with two actions: Start the training at http://mentors.debian.net, and reach our to the current maintainer with your offer to learn how to help.


Attempting to install from Software Center hangs

Open up a terminal and run Software Center with debug switch (issue following command),

software-center --debug

Pay attention to the debug screen for possible cause. Probably you can copy and paste relevant section of the debug screen here.


How do I get my DEB to install libstdc++.so.6.0.20?

A package can depend on any version of another package, but the package management system will only be able to install that dependency if it is in the enabled repositories. So you will have to add that PPA to the target system before installing your package.Your installation instructions will look like this:

sudo add-apt-repository ppa:...
sudo apt-get update
# Followed by preferred means of installing your package

Also checkout How can I install software or packages without Internet (offline)? to see ways of setting up a small repository on the USB drive, so that all the dependencies are included in it directly without having to add a PPA.

(You shouldn't have to specify the architecture in the dependency, by the way.)


Assuming you've downloaded it legally, then install.linux is probably a script you have to run which self-extracts and runs an installer. It doesn't look like they provide a debian package which you would install with dpkg, and modelsim not being free/open source software, is not available in the Ubuntu archives, so apt-get install won't work to install it. You probably need to do the following:

chmod +x install.linux
sudo ./install.linux


If the data is in a file called test.txt, awk '{ print $1 }' test.txt will do it.


How to install Illustrator CS6 on Precise?

I seriously do not think that you might be able to run any product from the Adobe Creative Suite 6 natively into linux.

Even to be able to run this kind of software, you will need to use software such as wine. But even this way, software like Adobe Creative suite 5 are known to have severe issues, so great as to render them unusuable at times, so I wouldn't bet on Adobe cs6 to run properly. [EDIT]: Actually this suggests that it is usable, marking it with a Silver rating, however I wouldn't take it's word for working professionally with it.

If I were in your shoes, I would keep a Windows machine, or (as @January suggested) if I couldn't spare one, I would use a  virtual machine. Please keep in mind that a virtual machine will have a great performance hit when you compare it with a physical machine, especially when workloads involve heavy GPU usage.

[EDIT #2]: To be more accurate as why you will have a performance hit using a virtual machine, first of all you have to note that the virtual device emulating the GPU is never able to emulate the GPU on its full potential, meaning you only get a fragment of its power. Additionally, the virtual device can use only a percentage of the GPU's RAM so, this is not going to help you with applications that do heavy usage of the GPU's RAM.


Unity: Everything freezes upon switching workspaces

Since we don't have many clues as to the nature of your problem, we'll do an overall check.

Let's check your file systems...

For 18.04 or newer...

boot to a Ubuntu Live DVD/USB
open a terminal window by pressing Ctrl+Alt+T
type sudo fdisk -l
identify the /dev/sdXX device name for your "Linux Filesystem"
type sudo fsck -f /dev/sdXX, replacing sdXX with the number you found earlier

sudo fsck -f /dev/nvme0n1p3
sudo fsck -f /dev/sda1

repeat the fsck command if there were errors
type reboot

Let's check your BIOS version...

sudo dmidecode -s bios-version

Then go to the https://support.hp.com web site, armed with your model #, and see if there's a newer BIOS available.

Let's check your Samsung firmware...

If you have Windows, boot into it, go to https://www.samsung.com/semiconductor/minisite/ssd/download/tools/, and download their "Samsung Magician", run it, and see if it finds new firmware.

Let's test your memory...

Go to https://www.memtest86.com/ and download/run their free memtest to test your memory. Get at least one complete pass of all the 4/4 tests to confirm good memory. This may take many hours to complete.

Update #1:

So far, we've found a 2G /swapfile, and an unused 50G swap partition, and 20G of leftover Windows partitions, all on the boot 256G SSD.

Update #2:

Model # is "HP EliteDesk 800 G3 Base Model Small Form Factor PC"

See https://support.hp.com/gb-en/drivers/selfservice/hp-elitedesk-800-g3-small-form-factor-pc/15257618/model/15257622

BIOS current version is 2.01, where the latest one is 2.31

Update #3:

See https://support.hp.com/us-en/document/c00007682 for instructions on how to update the BIOS (theoretically without using Windows). You might have to go to the local computer store and use one of their demo Windows machines to create the USB flash drive required.

See https://www.youtube.com/watch?v=WqDUCfU-e-A for how to update the BIOS from Linux... although this may, or may not, be possible with the .exe that comes from HP.

Update #4:

The final solution was to upgrade from the nouveau video driver, to the Nvidia driver v4.35 using the Software & Updates app, Additional Drivers tab.


Installing brscan4 for my brother scanner doesn't work on a fresh Ubuntu 16.10 install

I did a ldd /usr/lib64/sane/libsane-brother4.so and I've got:

libusb-0.1.so.4 => not found

So I guessed I would need to install this dependency.

To install it, just run: sudo apt-get install libusb-0.1-4

And voilà:

$ scanimage -L
device `brother4:net1;dev0' is a Brother DCP7070DW DCP-7070DW


How to run a file in a different directory

No you don't need to use:

cd home/directoryA/directoryB/directoryC/DirectoryD
./somefile

You can simply run the command by prefixing it with its path:

/home/directoryA/directoryB/directoryC/DirectoryD/somefile

Because you are already in the /home/directoryA you can use the current directory shortcut . and run the command like this:

./directoryB/directoryC/DirectoryD/somefile

I noticed OP has expanded scope via comments under other answers. Here is some additional information:

To find out where somefile is located use: locate somefile.
If somefile was added today you need to first update the locate database by running sudo updatedb.
When there are multiple versions of somefile located in the PATH you can find out which one is executed first use which somefile.
If you want to run somefile without specifying a directory name in front put it in the path. To check the path use echo $PATH. Common path locations to put somefile are /usr/local/bin (if it uses sudo powers) and /home/your_user_name/bin (you might have to create the directory first).
You can also add /home/directoryA/directoryB/directoryC/DirectoryD/ to your path but that would be highly unusual. However you could then simply type somefile no matter what directory you are in and it will run.
Of course somefile must be executable which you set with the command: chmod a+x /home/directoryA/directoryB/directoryC/DirectoryD/somefile


xcalib -inver -alter does not work with the NVIDIA driver version 364

Finally, I wasn't able to make xcalib work. Instead, I installed CompizConfig Settings Manager as instructed in the solution here and started using the shortcuts in CompizConfig Settings Manager -> Accesibility -> Negative. If you cannot see the Negative option, you have to install compiz-plugins:

sudo apt-get install compiz-plugins


Unrecognized service in Openvpn templatized systemd jobs

I know this question is 10 months old, but since I landed here from a google search...

I don't know why this isn't working:

sudo service openvpn@CONFIGFILENAME <command>

But I know it works if you call the script directly:

sudo /etc/init.d/openvpn <command> CONFIGFILENAME

The result should be exactly the same AFAIK.


How to set Unity directly delete files on sda without possibility of recycling

By simply deleting a snapshot from the OS VirtualBox does not get noticed.

To save hard disk space it is therefore much safer (and faster) to create a cloned VDI of the current machine's state on a different storage medium. Snapshots can be excluded by doing so. We can then detach the old VDI and attach the cloned hard drive to the VM.

After we had tested that the cloned machine runs as ecpected we then may safely remove the original VDI including all snapshots.


To install Eldy, make sure that Java6 jre is installed, if not, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt-get install sun-java6-jre

Once done, deb http://deb.vegans.it binary/ to your source list editing “/etc/apt/sources.list” and adding at the bottom.  To edit:

sudo gedit /etc/apt/sources.list

Save the file, and close it.  Then you need to run

sudo apt-get update
sudo apt-get install eldy

Once finished enjoy eldy running:

sudo java -jar /usr/local/eldy/eldy.jar

Source:Eldy linux


How can i make a quicklist for empathy to start a conversation with a certain "friend"?

Empathy itself does not seem to have any options to supply it with a username. I do not believe this is possible at the moment (and have not seen any reference while searching for any sort of plugin that can do this).

rinzwind@discworld:~$ empathy --help
Usage:
  empathy [OPTION...] - Empathy IM Client

Help Options:
  -?, --help               Show help options
  --help-all               Show all help options
  --help-gtk               Show GTK+ Options

Application Options:
  -n, --no-connect         Don't connect on startup
  -h, --start-hidden       Don't display the contact list or any
                           other dialogs on startup
  -v, --version
  --display=DISPLAY        X display to use

I would start with filing a feature request for this on launchpad.


What is the effect of Unattended-Upgrade::DevRelease "auto";?

The documentation seems sparse, so I had a look at the code:
if apt_pkg.config.find("Unattended-Upgrade::DevRelease") == "auto":
    # snip
        if ((devel.series == DISTRO_CODENAME
             and devel.release is not None
             and devel.release - date.today() > DEVEL_UNTIL_RELEASE)):
            syslog.syslog((_("Not running on this development "
                             "release before %s") %
                          (devel.release - DEVEL_UNTIL_RELEASE
                           - datetime.timedelta(days=1))))
            logging.warning(_("Not running on this development "
                              "release before %s") %
                            (devel.release - DEVEL_UNTIL_RELEASE
                             - datetime.timedelta(days=1)))
            return UnattendedUpgradesResult(True)

            logging.debug("Running on the development release")
elif "(development branch)" in DISTRO_DESC and not\
        apt_pkg.config.find_b("Unattended-Upgrade::DevRelease", True):
    syslog.syslog(_("Not running on the development release."))
    logging.info(_("Not running on the development release."))
    return UnattendedUpgradesResult(True)

It's pretty readable. Essentially this option only affects users of the current development release (aka Ubuntu+1) (right now, that's Ubuntu 20.10, "Groovy Gorilla"). And if you're on a development release, this enables unattended upgrades if:

DevRelease is auto and you're within a window of the release date (set by DEVEL_UNTIL_RELEASE, seems to be 21 days)
DevRelease is True.

If you're not on a development release, which you're not if you're on 20.04 after it was officially released, then this option makes no difference one way or the other.


What you want is an intrusion detection system. I've used AIDE comfortably for a while, it can send a daily e-mail report with changes to files, for you to review.

http://aide.sourceforge.net/

Another possibility is samhain, I just found it by doing apt-cache search intrusion.

These are only two choices, but there are many more, so you will likely not need to roll out your own.

OH and there's also Tripwire, the granddaddy of all these pieces of software, though it appears to have gone "freemercial": http://www.tripwire.org/


Printing directly from Flash embedded in HTML page fails

I'd say, take a screenshot of your page and print that one :)

A good software (actually a great software!) for screenshots is "Shutter", you can find it in the Ubuntu Software Center

http://shutter-project.org/


How to make pre-depends install packages in debian packaging

Pre-depends works, however you need to install your package with aptitude/apt-get or gdebi, which are able to resolve dependencies, dpkg alone cannot do it.

$ gdebi your-package.deb


Reinstall Ubuntu 14.04 without using any image is Possible?

No, Ubuntu system not yet provide factory reset-like mechanism. Except you have done a system backup before using third party software. So, you can't, by default, restore your system to initial state.

Maybe later, you want to try backup software to avoid reinstalling : BackInTime. Install it by directly execute :

    sudo apt-get install backintime-gnome

Or if you want the latest, you can execute :

    sudo apt-add-repository ppa:bit-team/stable
    sudo apt-get update
    sudo apt-get install backintime-gnome

in your terminal.

Then backup your system as necessary.


How to preserve airplane mode in Ubuntu 18.04 lts

$ sudo nano /etc/systemd/system/hp-keycodes.service

Paste the following lines or type them into the file:

[Unit]
Description=HP setkeycodes fix

[Service]
Type=oneshot
Restart=no
RemainAfterExit=no
ExecStart=/usr/bin/setkeycodes e057 240 e058 240

[Install]
WantedBy=rescue.target
WantedBy=multi-user.target
WantedBy=graphical.target

Save and confirm the filename with ctrl-x, y.

$ sudo systemctl daemon-reload
$ sudo systemctl enable hp-keycodes.service
$ sudo reboot

Details can be found here link


LiveCD customization of Ubuntu 13.04/13.10: "unable to find a medium containing a live file system""

Well, I've found the solution!

I must copy kernel+initrd from squashfs chroot to /casper folder instead of leaving kernel+initrd which are already present there.

This step appears in the guide, but it's presented as something "advanced" - and I guessed that it was "optional" too- under "Live CD kernel" section (belonging to "Advanced customizations" chapter).

Thanks to everyone


How to convert an ogv video to an wmv video?

If you are happy to use FFmpeg, and yes this is command line not gui, one suggested command line to produce a wmv files that should play on a lot of devices and platforms is:

ffmpeg -i input.ogv \
       -c:v wmv2 -q:v 4  \
       -c:a wmav2 -b:a 128k \
       output.wmv

You can experiment a little with the quality settings for the wmv2 video, decreasing to 2 will get better quality and increasing above this will get progressively lower quality. With the bitrate settings for the wmav2 sound increasing the bitrate may get you better quality sound. All of this depends a lot on the quality of the input audio and video streams.

To run this command on multiple streams you would need to construct a for loop and this would be easy enough to demonstrate if you are happy with the suggested encoding syntax.


Can I install Ubuntu as a second operating system on a Windows 7 laptop?

The URL link below shows you the options you can choose.

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


Installing Ubuntu on new HDD, replacing it with old HDD running Windows

The answer to the question ultimately depends on how you configure Ubuntu to run. Lots of people will tell you to run your (I assume) factory Windows 8 machine in non-EFI mode to do the installation. However, in my experience, EFI installation of Ubuntu is fairly painless granted you understand a little bit about how it works.

Since factory Windows 8 machines use an EFI "BIOS", the Windows 8 that is installed can only run in EFI mode, not legacy BIOS mode.

If you plan to install Ubuntu in non-EFI mode, you will have to re-enable EFI mode in order to get Windows to boot again.

If you plan to install Ubuntu in EFI mode, then no changes will be necessary and a disk swap shouldn't cause any special problems.


Can't load a lot of websites since Ubuntu 15.04

Same thing happened to me. Non of my browsers on Ubuntu wanted to load specific websites, but at the same time on Windows everything worked just fine.

I reseted my rooter (turn off and on), and now all sites are working properly.


After installing the iso from Ubuntu the DVD was able to boot up running Ubuntu.

Anyway everything works as expected. I picked the DV1000 up at a garage sale for 10 bucks, came with a  nice laptop bag worth $10.00. The HP Pavilion DV1000 has multimedia features such as playing music, mp3s, dvd movies, etc.

Runs XP so doesn't require alot of system resources.  Not as nearly as  powerful as newer Pavilions. Besides multimedia apps perhaps could be used for other things such as gps, mapping, etc.


I'm about to upgrade to 12.04 from 11.10. What should I backup before hand?

Not particularly. If there are any applications present on your system of which you want to back-up the configuration files, you should.

Upgrades seldomly result in data loss, as no manipulation to the partitions is done.


Cannot install virtualbox 6.1 on Ubuntu 20.04. The following packages have unmet dependencies

After doing some research I follow a guide
I just change the server to download package and it works like a charm.

Press simultaneously Alt and F2 on your computer, type in
software-properties-gtk
and press Enter.
In the Ubuntu Software tab, make sure that all the repositories (main, universe, restricted, multiverse) are enabled.
Click the list of servers where it says Download from, and choose
Click Select Best Server.
Press Alt, Ctrl and T simultaneously to open a Terminal, and type in
sudo apt update
then press Once it’s done running, try
installing the software again.


Permission error trying this backup script

I suggest you following two ways.

First. To modify /home/servershare/networkbackup folder's permission.

$ sudo chown -R servershare:servershare /home/servershare/networkbackup

$ ./prod1backup.sh

Second. To use sudo command directly.

$ sudo ./prod1backup.sh

I think that "Permission denied" is shown, because it folder's owner is not current user.


Update Manager failed to download repository, 401 error

Apparently the ppa got added, when you installed the game and now the ppa is broken or suspended. At least that's my best guess. It should be save do remove those repositories from your list. To do so got to:

Software Center -> Edit menu -> Software Sources -> Click the tab Other Sources -> Unselect the ppas in question.

If that doesn't work try to change the download server to the best one:

First three steps from above -> Download from -> Other -> Select Best Server


GRRR... once upon a time, I edited the /etc/apt/preferences file ... Now I just renamed it and everything works as expected.


If you have ruby installed you can try to open terminal in path you have script.rb and type:

   ruby your_program.rb

If you don't have ruby installed, you have to install it and retry.


Looks like a problem with the driver/resolution/refresh-rate.  Try using the VESA driver and see if it helps.  Details here.


Did you add a file into that directory?  Take a look at that file by opening a terminal and entering "less /etc/apt/sources.list.d/apt-build" and see if it contains lines that appear in this format:

deb http://example.com/linux/deb/ stable main

if so, do you remember adding that yourself?  I would reccomend removing the file but if it does have entries like the example above, and you know why the file is there, then rename the file to have a .list extension, and then run "sudo apt-get update" in a terminal, and assuming that the addresses in that file are valid, that should clear up your issues.


This is what I did to reach 14.04 LTS. I used 12.04 LTS upto 12.04.4 LTS. Then I upgraded it to 13.10. Yesterday, I upgraded from there to 14.04 LTS, through 'SOFTWARE UPDATER'. Open this from DASH. It would automatically search for all updates for your computer. Just follow it. I can assure you, you would never look back. 14.04 LTS is a gem of OS!


If you're reaching this screen,

it probably means that your USB drive contains the "alternate" CD image, which is designed for uncommon situations and intentionally leaves out the Try Ubuntu option.

Start over with one of the "desktop" CD images (ubuntu-12.04.3-desktop-*.iso) instead and refer to the instructions on the Ubuntu website to put it onto the USB drive.

You should get a boot menu that looks like this:


How do I deal with "undefined reference to dlopen" errors while compiling and using OpenFST on Ubuntu?

Compile as follows:

./configure LDFLAGS=-Wl,--no-as-needed
make
sudo make install

To compile your a.cpp which uses the library, do

g++ -I /usr/local/include a.cpp /usr/local/lib/libfst.so -Wl,--no-as-needed -ldl

It is important the -ldl appears after -Wl,--no-as-needed.

Running your program works as you'd expect from the README provided by OpenFST, you just need to have /usr/local/lib in your LD_LIBRARY_PATH. For example,

LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib" ./a.out


List names of all packages starting with a specific word

You can use apt-cache pkgnames to list only the names of all packages starting with a specific prefix:

$ apt-cache pkgnames ubuntu-wallpaper
ubuntu-wallpapers-karmic
ubuntu-wallpapers-vivid
ubuntu-wallpapers-maverick
ubuntu-wallpapers-utopic
ubuntu-wallpapers-wily
ubuntu-wallpapers-quantal
ubuntu-wallpapers-raring
ubuntu-wallpapers-precise
ubuntu-wallpapers-lucid
ubuntu-wallpapers-natty
ubuntu-wallpapers
ubuntu-wallpapers-trusty
ubuntu-wallpapers-oneiric
ubuntu-wallpapers-saucy
ubuntu-wallpapers-xenial

See man apt-cache for more info.

Alternatively, you could process the output of apt-cache search and display only the first column by piping it e.g. through one of these commands below or anything similar:

cut -d' ' -f1

grep -Eo '^\S+'

sed 's/\s.*//'

awk '{print $1}'


Global Menu broken for Gnome Applications after adding GNOME 3 PPA

Ok. Solved the problem.

The problem came from libgtk-3-0. A newer version (3.6.2) than the one in quantal archive ( 3.6.0-0ubuntu3.2 ) was still kept in the system.

Actually, the GNOME3 PPA purging when I first did it, was not performed correctly due to a bug in the ppa-purge package in quantal official archives (multi arch bug). So I :

installed a new version of ppa-purge which fixed the bug.
re-added the GNOME3 PPA again : sudo apt-add-repository ppa:gnome3-team/gnome3.
ran ppa-purge again : sudo ppa-purge ppa:gnome3-team/gnome3

It downgraded all the packages installed from GNOME3 PPA to the ones from the official quantal archives.

A logout was necessary for changes to take effect.


"quickly submitubuntu" doesn't install app in /opt directory

You need to run quickly package --extras in order to get the packaging files to target /opt.


Will Ubuntu 18.04 upgrade gnome-shell version 3.28 to newer version since GNOME no longer supports it?

Canonical/Ubuntu support the software during the lifetime of the release.

That means the security fixes made to later releases will be back-ported to the supported version (fixes, not new features).

The only time this won't occur, is if that involves more work than providing the newer release & testing that (which is very unlikely). There are cases where this has happened, but usually it's minor packages, and not major software suites such as GNOME.

  Maintenance updates will be provided for 5 years for Ubuntu Desktop,
  Ubuntu Server, Ubuntu Cloud, and Ubuntu Base. All the remaining
  flavours will be supported for 3 years.

https://fridge.ubuntu.com/2019/08/08/ubuntu-18-04-3-lts-released/

Also useful is https://help.ubuntu.com/community/Repositories#Components

  When you install software from the main component, you are assured
  that the software will come with security updates and that commercial
  technical support is available from Canonical.


How to minimize windows on double-click of the window frame?

XFCE has the ability to minimize the window when double-clicking the window title bar.  I know this is not quite the same as double-clicking the frame, but its very simple without needing further packages or workarounds.

Use Settings --> Window Manager and change the double-click action for the title-bar as shown.


Since your laptop came with Windows 8, it probably has a feature called UEFI secure boot enabled, which can cause problems when installing Ubuntu.  Follow the instructions here to disable UEFI secure boot:

  Create a LiveDVD or LiveUSB of Ubuntu (>=12.04.2) 64bit.
  In your BIOS, disable QuickBoot/FastBoot and Intel Smart Response Technology (SRT). If you have Windows8, also disable FastStartup.
  Boot your PC using the LiveDVD or LiveUSB and choose "Try Ubuntu". If you get a Secure boot or signature error, you may wish to disable SecureBoot as described here, then retry to boot the disk.
  Install Ubuntu from the Live CD/DVD or Live USB in the usual manner, then reboot the PC.
  If the PC does not load Ubuntu (but instead loads Windows, for example, as in Bug #1050940), or if the Windows entry in the GRUB 2 menu does not boot Windows (see Bug #1024383), boot your PC using the Live CD/DVD or Live USB and choose "Try Ubuntu" once again. When the live session has loaded, run Boot-Repair (see link for details). When Boot-Repair loads, click on the "Recommended repair" button, and write on a paper the URL (paste.ubuntu.com/XXXXXX/) that will appear. Then reboot the pc. Do not run Boot-Repair unless you have problems booting the computer; the expression "if it ain't broke, don't fix it" applies to this tool.

Source


Ubuntu 13.04 rhythmbox doesn't recognise title and artist

try to purge rhythmbox and then reinstall it

sudo apt-get purge rhythmbox

sudo apt-get install rhythmbox gnome

(as purging rhythmbox removes gnome too)


what are system.journal and templates.dat

Reducing log files to 10 MB seems overly optimistic. On my system /var/log is 194 MB:

$ sudo du -h -d1 /var/log
148K    /var/log/lightdm
8.0K    /var/log/hp
4.0K    /var/log/speech-dispatcher
4.0K    /var/log/dist-upgrade
1.7M    /var/log/installer
4.0K    /var/log/upstart
4.0K    /var/log/gdm3
160K    /var/log/apt
185M    /var/log/journal
12K     /var/log/fsck
68K     /var/log/cups
4.0K    /var/log/unattended-upgrades
194M    /var/log

The journal log file in question is 185 MB on my system and was 312 MB before I used the vacuum cleaner (function's real name) to reduce it's size below 200 MB.

As far as /var/log/installer/cdebconf/ goes there is no such directory on my machine. I did find a reference where 75 GB was consumed there for someone else.


Just quote your command:

gksu "myprog --dataload --maximize"

Alternatively, use -- which signifies the end of options. Anything after that, even if it begins with a -, will not be taken as an option to gksu:

gksu -- myprog --dataload --maximize


Gnome shell in ubuntu 17.10 using alot of CPU

More than likely it's an GNOME Shell extension that you've installed.

Go to https://extensions.gnome.org/local/ and disable any new/recent extensions that you may have installed, and then log out, and then log back in. See if the problem is gone. If it is, go back and re-enable one extension at a time to narrow down which one caused your problem.


"Unable to locate package ubuntu-restricted-extras"

type

  sudo apt-get update

& hit enter. after this wait 1-2 minutes. then type your commands.

OR

login as superuser

  sudo su

and type your commands.


Copy of mutiple files from HD to USB hangs

Issue was a faulty USB device (weird failure). Replaced the USB stick with another one and all is working fine.
@ubfan1 thanks for your assistance


For Tar archives you can use :

tar -Oxvf ARCHIVE_NAME 2>/dev/null | grep "Some pattern or Regex"

Or for searching through all Tar files present in the current directory:

list=`find . | grep -i "\.tar\." | xargs`

IFS=" " read -ra array <<< $list

for i in "${array[@]}"
do
    tar -Oxvf  $i 2>/dev/null | grep "Some pattern or Regex"
done

*Important note : if you have tar files with just .tar extension , change

grep -i "\.tar\."

to this :

grep -i "\.tar"

but be careful that it can cause problems and several errors if you have the pattern .tar in the middle of your filenames that actually aren't tar archives.

*Remove 2>/dev/null/ if you want the name of the files to appear above  the contents.

For Zip files :

unzip -c ARCHIVE_NAME | grep "Some pattern or regex"

Or for all zip files :

list=`find . | grep -i "\.zip" | xargs`

IFS=" " read -ra array <<< $list

for i in "${array[@]}"
do
    unzip -c  $i | grep "Some pattern or Regex"
done

And for regular files just :

grep "Some pattern or regex" * -r

to search through all files (and also files within sub-directories).You can also replace * with multiple filenames.

If anybody has a better solution , I'm glad to hear it.


Evolution Mail Client - Not able to send mails from Yahoo

Sending and receiving email are two entirely separate systems.  If you can receive email OK, then you have the POP or IMAP server configured correctly, meaning the port number, login credentials, transport, and the name of the server.

So, your problem is with the SMTP server.  There are often more problems with this, partly because of the potential for abuse.  The original specification did not even have any kind of authentication, but along came spammers, and associated problems.

Anyway, there are now several ways to send mail, assuming the service even allows it - some will force you to use your ISP for outgoing mail, although this is getting rare.

I don't use Evolution, so I can't tell you step by step how to configure it, but you need to look for either SMTP or outgoing mail server, and enter the information for Yahoo, which according to one search result on Yahoo is:

Outgoing Server: smtp.mail.yahoo.com

Outgoing Server (SMTP) port: 465

Also, somewhere you need to tell it the server
 requires an encrypted connection (SSL)

Evolution may require the server and port number to be specified together, as "smtp.mail.yahoo.com:465"


how to un-install a special driver/kernel in 13.04

I found a solution here:

Ran from a Gnome desktop terminal

sudo apt-get purge fglrx lightdm && sudo apt-get install lightdm ubuntu-desktop

Enabled Unity via ccsm, and rebooted.
After login to Ubuntu desktop, running ccsm again to do the settings did the trick.

Now, according to system settings, I have the driver Gallium 0.4 on ATI RS480.

Unity is working again. Slow - but working.


Single server, multiple users, each with his own virtual machine

A good solution is to use LTSP (Linux Terminal Server Project), here is a quick definition from Wikipedia:

  Linux Terminal Server Project (LTSP) is a free and open source
  terminal server for Linux that allows many people to simultaneously
  use the same computer. Applications run on the server with a terminal
  known as a thin client (also known as an X terminal) handling input
  and output. Generally, terminals are low-powered, lack a hard disk and
  are quieter than desktop computers because they do not have any moving
  parts.

Briefly, LTSP allows clients to use the resources of a more powerful server computer. The client computer needs a keyboard, mouse, monitor and a network card.

You will find many tutorials in the red, here are some to get started:

UbuntuLTSPLTSPQuickInstall

How To Install LTSP – Ubuntu 11.04


These "hash-tag-request" are called USSD. Searching this keyword you'll find different solutions:

Gammu can send USSD request and receive it back via the command gammu getussd *102#. As pointed out here some GSM modems might require a quite complicated transformation of the USSD-code. Make sure you have the rights to read the device /dev/ttyUSB0 (or similar). An example can be found here.
Gsm-ussd seems to be easier to use than gammu for ussd but has less features overall. It is not in the official repositories, download from here and configure it similar to this.
Prepaid-manager-applet has nice graphical interface and is in the official repositories. This is probably the easiest and definitely the nicest solution. Chances are that your provider is already listed so you don't have to do anything. If it is not add the USSD-number to '/usr/share/mobile-broadband-provider-info/serviceproviders.xml'. Find the section of your country and provider and add

<balance-check>
    <ussd>*102#</ussd>
</balance-check>

whereas *102# has to be replaced by your providers USSD-code.
It looks as sophisticated as this:


Ubuntu 16.04 clean installation doesnt detect wireless wifi

You have two drivers loaded which probably conflict.

It is a bit unusual, but this is one of very few examples of two different drivers that claim the same device and probably conflict. I will suggest that you blacklist one and see if the wireless starts working.

It is a bit of guesswork to see which one works, and perhaps works the best. Let's try one first:

sudo -i
echo "blacklist rtl8192se"  >>  /etc/modprobe.d/blacklist.conf
exit

Reboot and tell us if the wireless is working.


Can you install Deja-dup on a headless server?

No, you can't.  But Deja Dup is just a graphical front end for the command line tool duplicity, which you can use on a server.

Its command line interface is a bit complicated, but read its man page or some of the instructions in Deja Dup's manual restore help page: https://live.gnome.org/DejaDup/Help/Restore/WorstCase


How to connect lumia 630 with ubuntu 14.04?

For my phone (Nokia Lumia 630 Dual SIM, WP 8.1) and Linux Mint 17.3 (based on Ubuntu 14.04) worked: try to connect it after you swiped the phone screen saver away. Or in other words: connect your phone just, when you see the Windows tiles on it (so you could start an app or do a call).

If I don't do so, my phone does not connect and my file browser just freezes.


Ubuntu-MATE 18.04 LTS GRUB prompt on boot

I still do not know the root cause, but an accidental GRUB2 upgrade with default /etc/default/grub file, fixed this issue after a reboot. [Details]

Here is the script I used to update/upgrade packages on my computer, which FIXED all problem for me.

#!/bin/bash
apt-get -y update
apt -y upgrade
apt -y dist-upgrade
apt  -y clean
apt -y purge -y $(dpkg -l | awk '/^rc/ { print $2 }')
apt -y dist-upgrade --auto-remove --purge
apt -y autoremove
apt autoclean

Note, that this script simply updates, and does not actually fix the specific problem I was experiencing. Coincidentally, there was an update for GRUB2 and I had an opportunity to reset my grub file with default in the following prompt.

A new version of configuration file /etc/default/grub is available, but the version installed currently has been locally modified.
      │ What do you want to do about modified configuration file grub?                                  │
      │                                                                                │
      │                   install the package maintainer's version                                      │
      │                   keep the local version currently installed                                    │
      │                   show the differences between the versions                                     │
      │                   show a side-by-side difference between the versions                           │
      │                   show a 3-way difference between available versions                            │
      │                   do a 3-way merge between available versions (experimental)                    │
      │                   start a new shell to examine the situation                                    │

I chose option #1.


Remap modifier key events about to be delivered to an application

It is quite hard to modify events to a single window. One alternative is to run a separate X11 server, with just your application running within it. You can then use xmodmap or similar to change keyboard mappings for that server, i.e. just for that application.  Xnest runs a separate server within a window. Try playing with something like

Xnest :1 -noreset &
DISPLAY=:1 xmodmap -e 'keysym a = b B b B'
DISPLAY=:1 xev -event keyboard

Put the mouse in the xev window and type "a" and it will appear as a KeyPress event with keysym b.


sorry i confused your question, usually i press ctrl+alt+F1 for login to cli mode, but when your keyboard isn't working how to going there. Hmm, maybe you want to change your first boot to command line mode you can get it here but thats work after boot option menu entered [i mean grub menu].


Make an 'if else' statement in bash which toggles key repeat

You want to do something like this:

#!/bin/bash

if [[ $(xset q) =~ 'auto repeat:  on' ]]
then
    xset r off
else
    xset r on
fi


After removing the -t flag it started working.


Do I have to make a backup of my files, when I change OS?

Here are a few checks that you should seek:

Do you have a HDD which is completely partitioned into Windows
(NTFS) partitions?
Do you want to completely remove windows on
your computer and install Ubuntu?

In case both the answers to the above questions are yes, take a backup.


How can I convert stereo audio to binaural?

This is a plugin for ALSA.

Go to Sourceforge download page and download the LADSPA plug-in package.

cd folder_where_you_downloaded_the_package
tar xf ladspa-bs2b-VERSION.tar.X # the VERSION and X depend on the downloaded version and package type
cd ladspa-bs2b-VERSION
./configure --prefix=/usr # Prefix may be different depending on your distribution but usually /usr is fine
make
su -c "make install"

Plus there is a FOOBAR 2000 plugin also

Source: Stereo to binaural with ALSA using bs2b LADSPA plug-in


Ubuntu installer has no installation option/ internal ssd not displayed

Fixed

I used os-prober to find where my windows OS is located, which is on /dev/nvme0n1
Then I used gpart to open that and the installer now detects the drive.


With a temporary working internet connection by ethernet, tethering or whatever means possible, open a terminal and do:

sudo apt update
sudo apt install git
git clone https://github.com/gnab/rtl8812au.git
sudo cp -r rtl8812au  /usr/src/rtl8812au-4.2.2
sudo dkms add -m rtl8812au -v 4.2.2
sudo dkms build -m rtl8812au -v 4.2.2
sudo dkms install -m rtl8812au -v 4.2.2

Reboot and tell us if the wireless is working.


Yes,choose something else option and select the previously installed ubuntu partition then format it to ext4 journaling system.And then install your newer Ubuntu on that same ext4 partition.

Before doing the above,don't forget to backup  important datas from the previously installed Ubuntu partition.


How to receive all recent update info about Ubuntu12.04 LTS?

If you want a list of all the packages for which updates are available, it can be done using Synaptic Package Manager. It can be installed from Ubuntu Software Center.

After you install Synaptic, open it and click "Reload". It will check for the updates available (an internet connection is needed for this) and load them.

Once the reload completes, click "Mark all upgrades". It'll mark all the packages for which updates are available. To view only the upgrades available, click the button "Custom Filters" available at the bottom-left corner and select "Upgradable (upstream)" in the list available in the left pane.

To save the list of the marked packages to a file, click File > Save Markings As, enter a file name and click "Save".

Hope that answers your question.


"radeon: ring 0 test failed" on boot ubuntu 14.04

I had the same issue with my laptop, a HP Probook 4530s with a ATI graphic cards. I'm also on Ubuntu 14.04.

I could solve my problem by doing this :

Add this line to your /etc/rc.local file, before "exit 0":

   echo OFF > /sys/kernel/debug/vgaswitcheroo/switch

And add this to /etc/modprobe.d/blacklist.conf

blacklist fglrx
blacklist radeon
alias radeon off
alias lbm-radeon off

It will disable your ATI discrete graphics card, this way you won't have any problem with Radeon when booting your laptop. Personally, my laptop works perfectly without the discrete card, I can use blender without problem for example.


Cannot install MPLAB IDE X from the terminal - silently exits

The installer requires 32-bit libraries not present by default on a 64-bit system
MPLAB IDE may be 32/64-bit, but it's installer is 32-bit only and won't run by default on a 64-bit Ubuntu installation. To get the minimal 32-bit libraries it needs to run, please do
sudo apt-get install libc6:i386
This will let the installer run, but if you get any more problems, simply install the full 32-bit library set with sudo apt-get install ia32-libs.

How?
I downloaded the MPLAB IDE installer to figure this out.
The last two lines of strace ./mplabx-ide-v1.20-linux-installer.run are revealing:

open("/lib/ld-linux.so.2", O_RDONLY)    = -1 ENOENT (No such file or directory)
_exit(127)                              = ?

That file is only present on 32-bit installations, or if you've installed the 32-bit libraries on a 64-bit system.


Kazam - WARNING Kazam - Failed to correctly detect operating system

The errors aren't that serious but the fact that Kazam isn't working is. To start, first ignore the errors, then try this in a terminal:
sudo apt-get purge kazam

Then:
sudo apt-get install kazam

Then if sound isn't working follow this post:
Screen recording applications are not detecting audio in ubuntu 20.04
The problem with Kazam is it's open source software and the last time the source was updated is 2 years ago. So fiddling required.


How do I get rid of this flatpak dconf-WARNING?

For me the issue was solved by deleting the whole flatpak directory (sudo rm -rf ~/.local/share/flatpak/), but may not want to do that if you're currently using any flatpak apps or want to keep their config files.

In that case it's probably better to try to use something like this (as sugested by @Rinzwind): sudo chown $USER:$USER ~/.local/share/flatpak/exports/share/dconf/profile/user


A piece of bad Hardware can cause other issues to happen with the OS and applications. If you know the SSD is bad, STOP using it.

If it has critical data stored on it and needs recovering, don't risk damage to your system. Have it professionally extruded.

"The problem doesnt depend on the interface. I tried USB3.0, 2.0 and SATA already".

That is a great clue to not continue. However, if you must I would recommend testdisk and photorec. Recovery applications.

Get them here


How to undo an operation done in terminal?

If deleted the file in a terminal with rm then it will not go to the trash, do it in filemanager and it will.

You 'might' be able to restore the file, but all the time you're using the system the area the file was in could be overwritten.

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

You should be able to revert permissions on files.

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


ogr_fdw compile error `Fatal error: can't create ogr_fdw.o: Permission denied`

The instructions you linked unnecessarily prepend the git clone command with sudo

sudo git clone -b master https://github.com/pramsey/pgsql-ogr-fdw.git pgsql_ogr_fdw

This causes the whole cloned directory tree to be owned by root, preventing the compiler from writing files there when run as a normal user.

I suggest you start over, removing the cloned directory

sudo rm -rf pgsql_ogr_fdw

and then start over without sudo

git clone -b master https://github.com/pramsey/pgsql-ogr-fdw.git pgsql_ogr_fdw


Anydesk on Ubuntu does not save Unattended Access Security Setting

I've edited anydesk config file:

sudo vi /etc/anydesk/system.conf

changing value of one of its parameters from 0 to 1:

ad.security.interactive_access=1
Opened Anydesk by unprivileged user
Enabled unattended access and set password

As a result, it became enabled:

Updated:
In current Anydesk 5.5.5 version run in terminal:

$ anydesk-global-settings

Then enter your current user password and set Unattended access. Now it saves it.


Your best bet is YUMI if you're currently running Windows. The process after downloading is very simple; you select the Linux distro you would like to use, and point it to your iso, and begin the process. It also allows for multiple OS to be set up on your USB.


Unable to comunicate to Arduino Uno on Ubuntu 16.04

You said it's showing up as a COM device on linux, but from my experience with arduino devices and linux, it should show up as an ACM device instead. The setup posted on the ardunio Web page should show this as well.

Here is the setup for windows:
https://www.arduino.cc/en/Guide/Windows

Here is the setup for linux:
https://www.arduino.cc/en/Guide/Linux#toc7

The first thing I would do is ensure that you followed the getting started steps properly. Most specifically, take a good look at step 7 that has you select your board type. Notice right underneath it it also lists your board port, which is where I think your issue lies. Try to see if you can change that detail.

Edit: missed the part where you said it is greyed out

Here is another post that has a lot of "solutions" where something should work for you. From what it looks the quickest test method would be to launch the ide with root permissions

https://stackoverflow.com/questions/19322432/arduino-tools-serial-port-greyed-out


How to move a visible file to a hidden folder?

In Ubuntu, if you want a folder to be hidden, its name must too start with a . (dot) - the same thing is true for files. For example to create a hidden dolder, let say .folder, in your home directory from terminal, you can use the following command from terminal:

mkdir ~/.folder

Then to copy a file to this hidden folder, you can use the following command:

cp /path/to/file ~/.folder

To move a file in .folder:

mv /path/to/file ~/.folder

To list the content of .folder:

ll ~/.folder

(In Ubuntu ll is aliased to ls -alF in .bashrc file.)


execute script when mobile device logs onto lan

If you are using DHCP, you might want to check & consider the following,

Sources:

Ubuntu Forums: Run script after dhcpd assigned ip to client

SuperUser: executing-a-script-when-dhcpd-give-an-ip

dhcpd.conf

on commit {
        set ClientIP = binary-to-ascii(10, 8, ".", leased-address);
        set ClientMac = binary-to-ascii(16, 8, ":", substring(hardware, 1, 6));
        log(concat("Commit: IP: ", ClientIP, " Mac: ", ClientMac));
        execute("/usr/sbin/my_script_here", "commit", ClientIP, ClientMac);
}


Does disconnecting from an SSH session kill it?

They timeout.

If you want to change that behaviour you can use things like screen. Screen is essentially a terminal session that stays running. You can get disconnected and then just reconnect and attach to the screen session again. It's a bit daunting at first but it's pretty handy.

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

I've personally found that adding -o ServerAliveInterval=30 to my SSH commands helps keep a connection alive but it won't help in cases of network interruption.


Unable to upgrade from 14.04 to 14.10 "Cannot Calculate Upgrades"

Try executing:

grep ERROR /var/log/dist-upgrade/main.log

Hopefully this will show you the names of conflicting packages. For me it was (I broken long line to be easier to read):

2014-10-25 18:15:05,915 ERROR Dist-upgrade failed:
    'The package 'postgresql-9.3-postgis-2.1'
    is marked for removal but it is in the removal blacklist.

postgresql-9.3-postgis-2.1 is conflicting package here. It will probably be different one or some for you. You can then remove it/them by:

sudo apt-get remove conflicting-package-1 conflicting-package-2 ...

Then just restart distribution upgrade.


Try this. If it doesn't work,you might be opening with WinZIP or some other software that is showing the bulk of the image. Hope this helps.


Issue downloading and Installing Anaconda - Error "No such file or directory" running downloaded bash script

Check that your terminal is active in the same directory as the downloaded file (though it should since wget will by default download the file in the active directory, so if you did both command one after another it should be fine).

The path your terminal is in is indicated like so : username@machinename:[path]$

In your case, it might be : username@machinename:~$. The ~ is a shortcut for your home directory

check that you indeed received the file by browsing in your file explorer.


You can read script by command : cat /usr/bin/add-apt-repository. In which following lines are related to this:

 # display more information about the shortcut / ppa info
    if not options.assume_yes and shortcut.should_confirm():
        try:
            info = shortcut.info()
        except ShortcutException as e:
            print(e)
            sys.exit(1)

        print(" %s" % (info["description"] or ""))
        print(_(" More info: %s") % str(info["web_link"]))
        if (sys.stdin.isatty() and
            not "FORCE_ADD_APT_REPOSITORY" in os.environ):
            if options.remove:
                print(_("Press [ENTER] to continue or ctrl-c to cancel removing it"))
            else:
                print(_("Press [ENTER] to continue or ctrl-c to cancel adding it"))
            sys.stdin.readline()

Hence it asks Press [ENTER] to continue or ctrl-c to cancel adding it which is designed and if you want to get rid of this then use : -y or --yes to Assume yes to all queries.


how to answer to all interactive dialogs and non-dialog questions

Dpkg actually does offer a method of automating dialog questions answering, and is very popular when preseeding an installation (mostly ubuntu server, though not supported by the new installer), as such installers tend to have a vast amount of menus and menu options.
What is a debconf file ?

A debconf (debian configuration) file, also known as seed file, is a file listing parameters and questions asked by the installer (word by word, as is) and our answers to them. If a question is missing or answered by an unsupported answer - a default value will be chosen (if possible).
Every package has a configuration list, even if no questions were asked at the process of installation and default values were used. When reinstalling a package and not specifying any new configurations, the already known ones by the machine are used.
Note: debconf files do not actually configure the packages, they simply hold a set of questions and answer values used by the installer.
How can we view or create package debconf selections ?

To list all selections made for every installed package, simply use debconf-get-selections.
To list a specific package, use debconf-get-selections |grep '<my_package_name>'.
To change an existing answer's value with another value or add new selections from the command line, use debconf-set-selections '<my_package_selection_stanza>'.
To change or add a values from a file, use debconf-set-selections '<my_file_location>'.

See manual pages for more information: debconf-get-selections(1), debconf-set-selections(1).
It is usually hard to come up with the correct full selection list, and a very good method is to first install a package, dump its selections to a file, edit the relevant selections and set the new selections from the file.
You may also pipe a string or a file content to the set command:
echo "some selection" |debconf-set-selections

Understanding debconf syntax:

Here is an example of two package debconf selections, one is for lightdm (an ubuntu display manager), and a few stanzas from grub selections:
$debconf-get-selections |grep lightdm
lightdm shared/default-x-display-manager   select   lightdm
lightdm lightdm/daemon_name   string   /usr/sbin/lightdm

$debconf-get-selections |grep grub-pc
grub-pc grub-pc/chainload_from_menu.list boolean true
grub-pc grub-pc/timeout string 10
grub-pc grub-pc/install_devices multiselect

As we can see, the syntax is very intuitive: the first part is the package name, followed by a '/' and a question/configuration name. Afterwords comes a method of answering and an answer.
Injecting debconf selections and package reconfiguration

debconf-set-selections command updated the debconf database stored in the OS. It is possible to set a selection list prior to new package installations, and those will be used.
For packages already installed, there is no need for a purge. Simple use dpkg-reconfigure '<my_package_name>' after applying the new selections.
You may also define a debconf level, allowing only some questions / confirmation prompts to appear and answered by you, or define that non but critical questions shall be asked:
dpkg-reconfigure -p '<level>' '<my_package_name>'

Available levels are: low, medium, high or critical. More information about debconf here: debianwiki/debconf.
If you would like to absolutely disable any dialog (recommended only when your selections fit exactly as you intended), use the Noninteractive option: dpkg-reconfigure --frontend Noninteractive '<package_name>'.


It looks like you've installed the nvidia driver which breaks your graphics:

  [    37.912] (EE) Failed to initialize GLX extension (Compatible NVIDIA X driver not found)

Uninstall the nvidia-current package and restart the X server (by rebooting for example). Your laptop is supposed to have a nVidia card (Optimus though). Your BIOS is configured to use the integrated card only. If you wish to have on-demand use of the graphics card (keeping the discrete nVidia card off at other times), have a look at Bumblebee as mentioned in Is a NVIDIA GeForce with Optimus Technology supported by Ubuntu?


No module named 'gdbm' after installing software via flatpak

You can use:

sudo apt install python3.6-gdbm

It helped me.
Or you can see the same question:
No module named 'gdbm'


There is no bluetooth device in hcitool dev or rfkill or blueman

I was able to solve this problem by looking at the launchpad bugs in this link and installing dkms package along with a ar3011-dkms package that was suggested in the link (although I didn't need to install it manually and installing dkms using apt-get did it automatically) and then restarting my laptop.

And now Bluetooth is working correctly and as expected.


Wireless with Intel Centrino Advanced-N 6235

Since I'm now allowed to answer my question:

Okay, what I did to test this was:

sudo rmmod iwlwifi
sudo modprobe iwlwifi 11n_disable=1

So it seems like n-WLAN is the problem. To permanently make this work, I added options iwlwifi 11n_disable=1 to /etc/modprobe.d/iwlwifi.conf as first line after the comments.

This was confirmed by chili555's comment.


go on the line where a variable define on any editor

If you are using geany, there is already functionality to jump to the definition of the variable/function. With the right key via the context menu, or by pressing ctrl+t (after selecting the item) you can jump to the definition.
Note: The only limitation is that the file that contains the definition must already be open in geany, otherwise it will not work.

Example:

Define variable:

Guake go to definition.

This work for type definition and functions; if you have to look for an instance of a variable within the document or project, you have to look for it as text.


debian/control doesn't list any binary package

As described in the debian package documentation, the debian/control has to have two paragraphs:

The general paragraph (the first one, for the source package)
The fields in the binary package paragraphs


First you will need a really powerfull setup to do this, depending on what formats your tv support. I used to used to stream to ps3 and had to almost transcode everything.

To add subtitles you can use 'vlc' with the '--sub-autodetect-file' parameter.

You will need to enable transcoding for mediatomb, there is a whole document on the mediatomb site that describes how to enable transcoding:
http://mediatomb.cc/pages/transcoding

I would recommend using a script instead of calling the vlc command directly, that way you can make easy changes to your script without the need to restart mediatomb.

In the end, this was the script that worked best for me, on the ps3, but again, you will need to make changes depending on what your TV supports.

#!/bin/bash -x

VLC=`which vlc`
MEDIAINFO=`which mediainfo`
XMLSTAR=`which xmlstarlet`
INPUT="$1"
OUTPUT="$2"
VIDEO_CODEC="mpgv"
VIDEO_BITRATE="4096"
VIDEO_FRAMERATE="25"
AUDIO_CODEC="a52"
AUDIO_BITRATE="192"
AUDIO_SAMPLERATE="48000"
AUDIO_CHANNELS="2"
FORMAT="ps"
SUBTITLE_LANGUAGE="nl"

VLC_VID_OPT="vcodec=${VIDEO_CODEC},vb=${VIDEO_BITRATE},fps=${VIDEO_FRAMERATE},soverlay,threads=2"

AUDIO_FORMAT=`${MEDIAINFO} --Output=XML "${INPUT}" | ${XMLSTAR} sel -t -m ".//track[@type='Audio']" -v "Format"`
case ${AUDIO_FORMAT} in
"AC-3" | "MPEG Audio" )
        VLC_AUD_OPT="audio-sync" ;;
* )
       VLC_AUD_OPT="acodec=${AUDIO_CODEC},ab=${AUDIO_BITRATE},samplerate=${AUDIO_SAMPLERATE},channels=${AUDIO_CHANNELS},audio-sync" ;;
esac

exec "${VLC}" -v "${INPUT}" -I dummy --sout "#transcode{${VLC_VID_OPT},${VLC_AUD_OPT}}:standard{mux=${FORMAT},access=file,dst=${OUTPUT}}" --sub-autodetect-file --sub-autodetect-fuzzy=1 --freetype-rel-fontsize=18 --sout-mux-caching=1500 --file-caching=1500 vlc:quit

exit 0

note: uses extra packages like mediainfo & xmlstarlet.

edit: that is a bunch of questions!
First of, i no longer use mediatomb because it was unstable, aparently you have the same issue as after some amount of time it no longer is accesable through dlna/upnp.

Anyway, i suggest you add logging in the script so you can see what is going on. Normally you should get your subtitles everywhere, not just on one device and not another.

It works in another way for file/media types, probably you are only transcoding a certain range of files because it works with some and not with others.


Can't start Windows 7 after installing ubuntu 11.04

From you booted Ubuntu system, use the following command in a terminal
 sudo update-grub
This should detect windows 7 and add it to the boot menu.


upgrade ubuntu to the latest released version

To upgrade to the latest version you would first have to upgrade to 14.10 and then to 15.04 !

This probably may result in some issues - you should consider a clean install of Ubuntu  15.10.

... and by the way ... it will be much faster ...


Increase inotify watchers without using root priviledges

You cannot do it without root privileges. The limit is there to make sure no user DoS-es the system. You should ask your system administrator for a higher value.


Nautilus crashes after installing 'Nautilus Columns'

After a suggestion from another user named Andrew he suggested I uninstall Arista due to something in the output in the command I posted and the Nautilus and Nautilus-Columns worked fine together. I also reinstalled Arista and didn't get anymore crashes with Nautilus as well


Kubuntu 16.04 command prompt (Alt+F2) and start menu opening only for 1 second

I found the solution myself, so here the answer, if anyone else runs into it.

It is an option I activated myself and forgot about it.

If "Window Behavior" -> "Focus" -> "Focus stealing prevention" is set higher than "Medium" (actually when I can see a change in behavior all in all), then this issue of both menus opening and shortly closing after happens.

Set back to "Medium" or lower and the issue is gone.

I set it because I didn't want Firefox to get the focus every time I hit a link and have to go back to Thunderbird and I doubt that this is normal behavior as it seems both menus need focus and close as they don't get it.

Anyway, I hope this helps people doing the same thing and are clueless as I were.


Accessing an Ubuntu share from Mac OS X (Snow Leopard)

Nevermind-- restart did the trick.  Hope this helps someone.


Ubuntu 12.04 works when installed boot-repair now one more problem

You have just deleted ubuntu drive without removing mbr.

Fix it following -
http://helpdeskgeek.com/how-to/fix-mbr-xp-vista/


Can't download Ubuntu because the VM's screen is too zoom in. Help!

You can move the window by right clicking on the header, hold down the right click and move the window.
You can also press tab to get focus on the continue button and then press enter.


Where can i find the ubuntu-one brand (logo)?

Audrey,

I'm currently in the process of putting all the Ubuntu One brand assets, including logos, online on the U1 app developer site at https://one.ubuntu.com/developer/, but I haven't published them yet. Could I ask you to drop me an email and I can get you the logos you'll need? stuart.langridge@canonical.com

Stuart

app dev lead, Ubuntu One


Ubuntu server with btrfs root and confusion with the @ symbol in subvolume path

When you install Ubuntu on btrfs partition, the system automatically creates the @ and @home subvolumes. If it didn't it would be much more difficult to take advantage of backups of the whole system with snapshots. You can also use them to install more then one system on a single BTRFS partition: see also my answer to Can I have two distros on the same partition using btrfs?

I have no idea, why the Ubuntu team did chose names @ and @home for these subvolumes. Maybe so they can stand out and will not be confused easily with directories? Keep in mind, that when you forget about the snapshooting stuff, the subvolume indeed behave very much like a standard directory.


I've been through a process of installing, uninstalling and reinstalling various versions of Adobe Digital Editions (ADE). There is useful information on which versions of ADE will work on which versions of Wine at the WineHQ website. I found the options below worked for installing  ADE on an Ubuntu 14.04LTS system (32-bit).

For all these options, I was able to open some acsm files and download related ebooks. However, only ADE 4.0 allowed me to download ebooks from Google Play that I required. Attempting to download these Google Play ebooks produced a 2038 error on ADE 1.7 and an “E_STREAM_ERROR” on ADE 3.0. I suspect this is due to recent changes in DRM.

INSTALLING ADE 1.7 --- Install Wine and WineTricks (you may need to add the Wine ppa – see https://www.winehq.org/download/ubuntu). Open WineTricks. In the first dialog box take option “Install an app”. On the second dialog box, take option “adobe_diged”. WineTricks will do the rest. Voila! Note that there are numerous older posts in forums that recommend ADE V1.7 over V2.0 and V3.0.

INSTALLING ADE 3.0 --- You'll need Wine and Winetricks for this too (see above for their installation), but the process is a bit more involved. You need to download and install dotnet35sp1 and windowscodecs before running the ADE installation exe. This can be done by opening a terminal and entering this command:

$ winetricks -q dotnet35sp1 windowscodecs

INSTALLING ADE 4.0 --- This option also requires Wine and WineTricks but it requires more advanced versions and the process is even more involved. Nonetheless, there are very comprehensive instructions at: https://appdb.winehq.org/objectManager.php?sClass=version&iId=30928 – follow this link and find the instructions under the comment titled, “How to install ADE-4.xx on ubuntu-14.04 step by step in a console”.