What's the obligation for using ubuntu font in my application?

Here is the official Ubuntu font licence.

  The requirement for fonts to remain under this licence does not require any document created using the fonts or their derivatives to be published under this licence, as long as the primary purpose of the document is not to be a vehicle for the distribution of the fonts.

According to my understanding you can freely choose the license for your application.

For more information here is an article from Wikipedia describing the Ubuntu font licence.

Disclaimer: I'm only a developer and this is only my opinion.


Open "Software & Updates" and look for the "Other Software" tab. Uncheck the "packages.sury.org/php" url and try to "apt update" again.


I use CloneZilla to do the exact same thing you're doing and never had any trouble restoring a clone.  However I never boot the cloned disk: I only use it to restore from... (as booting it would not make it identical any more as Ubuntu would immediately start installing updates which defies the reason for cloning)


Why are there no icons on the Unity launcher?

If your card is blacklisted, there is a good reason. The likely problem here is that your card does not support a feature that Unity needs. I would suggest you report a bug.

For now, you can still enjoy Unity by using Unity 2D. You can even run it under compiz.


WSL: command work manually but not in cron

WSL does not provide a complete Ubuntu environment by default - in particular, it may not start all the conventional system services. At least at the time of writing this answer, cron seems to be one of those, as discussed in this /r/bashonubuntuonwindows/ thread

Crontab Not Working with Bash on Ubuntu on Windows

The suggested solution is to start the service manually: on WSL that is done1 by

service cron start

1 despite being based on Ubuntu 16.04, WSL does not appear to use systemd


Add feature of network manager not working

Steps to follow to resolve issue;

1- make sure openvpn is installed.

2- open terminal and type -- nm-connection-editor -- and press enter.

3- click the add button - making sure you’ve selected the correct network conection.

4- select openvpn from the drop down list.


Even though it's not the answer to your question it might be the solution for your problem:

Your boot partition's size of 250 MB is big enough - at least if you don't want to use the last 10 kernels.

Open a terminal and use the command ls -l /boot/vm* to display the installed kernels:

% ls -l /boot/vm*
-rw------- 1 root root 5825376 Dez 18 01:42 /boot/vmlinuz-3.13.0-70-generic
-rw------- 1 root root 5825376 Dez 18 01:42 /boot/vmlinuz-3.13.0-74-generic

In this case there are two kernels which is fine. You should at least keep the previous version in case of problems. I think your list will be longer and you can use apt-get autoremove to remove the old kernels:

sudo apt-get autoremove linux-image-3.13.0-70-generic

If your /boot/ partition was full because of old kernel versions you can remove most of them with this command and then proceed with your upgrade.

Update:
Look at these solutions, too


Juju bootstraping gomaasapi timestamp error

Possible cause for this might be this http://maas.ubuntu.com/docs/troubleshooting.html#possible-cause-timing-issues - i.e. MAAS server's clock is way out of sync compared to the client machine's.

I observed this when using a VM for the MAAS server, which had a snapshot a few days old. Every time I tried to bootstrap after restoring from the snapshot I got the error. The solution was as easy as running ntpdate ntp.ubuntu.com to update the server's clock beforehand.


Is there a software to record audio with GUI?

Try Audiorecorder
sudo apt-add-repository ppa:audio-recorder/ppa
sudo apt-get update
sudo apt-get install audio-recorder


how to get wireless to work on my HP Compaq nx6325 Notebook on 12.04

After numerous attempts and many websites... This worked.

a. sudo apt-get purge bcmwl-kernel-source broadcom-sta-common broadcom-sta-source && sudo apt-get install b43-fwcutter firmware-b43-installer

b. Press Enter. When prompted, type your password.
Press Enter again.

c. Remove the ethernet cable.

d. Reboot your computer.

Credit: https://sites.google.com/site/easylinuxtipsproject/internet


Removing the Black Bar at the Top of the Screen [New Found!]

Sometimes the monitor itself requires some vertical/horizontal alignment via the buttons on the monitor (if it is a separate monitor); often there is an auto adjust button also that should do that for you.

Otherwise if this is not the problem, could you go into the terminal (CTRL + ALT + T) and type xrandr then press enter, and post the output here, and also the contents of the file /etc/X11/xorg.conf to give an idea of the configuration of your displays.


How can I get the Skype notification back in the system tray?

You can get skype tray in 11.10 and 12.04 installing package sni-qt:i386

sudo apt-get install sni-qt:i386

OR

You can whitelist systray as well

How do I access and enable more icons to be in the system tray?

OR

If you like how empathy and messaging tray work you can install a third party skype-wrapper package from ppa which enables Skype to indicator-message

You can install it with

sudo add-apt-repository ppa:skype-wrapper/ppa
sudo apt-get update && sudo apt-get install skype-wrapper

SOURCE


why numix icon theme get updates almost everyday?

You get daily updates for the numix-icon-theme package simply because the project maintainers have set up daily builds for this package in their main ppa.

See https://code.launchpad.net/~numix/+recipe/numix-icon-theme-daily

It's not suspicious, just a bit unusual as most of the time daily builds are meant for testing in a separate ppa. Here the target of the recipe is the main ppa.


I believe Mint uses grub as a bootloader; the same as Ubuntu does. So your bootloader is already installed.
You can reinstall grub when installing Ubuntu, use /dev/sda again.
Or install Ubuntu without installing grub.
Then boot into Mint and sudo update-grub to add ubuntu to the boot menu.


How do I simply run an ubuntu touch app from the terminal?

If you already have your qml file on the phone, it's pretty easy. All you have to do is to call qmlscene with an extra argument.

Start a connection from your desktop/laptop with phablet-shell.
Run qmlscene with --desktop_file_hint, example:

$ qmlscene --desktop_file_hint=/usr/share/applications/dialer-app.desktop $HOME/Documents/myfile.qml


How to ensure security in Ubuntu 20 for those not interested in it?

I do not have open ports (out of 65536) by nmap, have firewall enabled, install all supported updates daily, try not to install unsupported software (except for Iris similar to redshift),use tor even for email.

All you do here is not going to improve security. Ports are only open when software from your system needs an open port to function. Generally that happens when you use server software.
Out of the box Ubuntu already has this done such you do not need to worry about it.
You are afraid of someone from the outside breaching the system when Linux in general is set up to be a multi-user system?  A multi user system already needs to be  secure on the INSIDE. Let alone from the OUTSIDE. Linux is secure by design.
If there was something that would make it easy to break in a random Linux based computer the internet would explode. The person that manages that would be instantly famous. Has not happened and is unlikely to happen.

I am concerned about someone directly attacking my computer"

Why? Attacks happen all the time (where I work we get hit on our google cloud engines about 1 million times a day from mostly Chinese bots). I would worry about people getting actual access ;-) But in regards to us desktop users: Linux is more secure than (for instance) Windows (by design). We (as of today) are 100% virus free. The reason is that Linux is used by people that love to tinker with it.
The main issues we had over the last 10 years: the NSA maintaining security related packages where someone got away with keeping a backdoor in it. Yes a serious issue. But that kind of problems are rare and to be honest... impossible for us to prevent. No amount of effort from a user would have prevented it.
Same with an issue Mint had: someone stupidly made it easy for a hacker to alter the installation software. Ubuntu had an installer where the password used during install remained plain text on the installed system.
Never ever did we have a system breached where it was not the user itself that made a mistake: using 12345 as a password is bad. Using 12345 as a password for phpadmin is asking for it.
At some point you and I need to trust someone. Canonical has a good track record so my faith is with them. It is far better than the track record of Microsoft or Apple.
Generic suggestions:

use a good password
do not install software you do not intend to use
do not install software from untrusted sources
keep your system updated. Use an LTS. Or keep upgrading to the latest version
do not execute command that you do not understand

and NOBODY is going to breach your system.
If that is not enough:

don't put personal files on your system and keep them on an USB that you do not mount when you do not need it mounted.
Use encryption on all disks if you want or use encryption on specific directories or files.

Thing not to do...
Do not install a virus scanner. Those are useless on Linux since those use Windows based rules on a different OS. As of today (you never know if we do in  the future) we do not have viruses; viruses are possible on Linux but it would require you yourself to install it. And that is a breach of #2.
All you do is burn resources you could use for yourself.


Install Ubuntu Desktop from 1Gb Usb Stick

You can use Ubuntu Minimal: https://help.ubuntu.com/community/Installation/MinimalCD

The minimal iso image will download packages from online archives at installation time instead of providing them on the install media itself. Downloading packages at install time reduces the size of the iso image to approximately ~40MB depending on architecture

But it won't work in UEFI mode, if you need that you can use the server image:

While the minimal iso image is handy, it isn't useful for installing on UEFI-based systems that you want to run in UEFI mode. The mini iso lacks the proper files for booting the computer in UEFI mode. Thus, the computer will boot in BIOS compatibility mode, and the installation will be in BIOS mode.
You can use an Ubuntu Server amd64 iso file (64-bit) for 'mini installations' in UEFI mode.
See this link: Installation/UEFI-and-BIOS/stable-alternative.


Cannot git clone Apparmor kernel patches

I can replicate the issue here. It looks like the Git repository doesn't exist or is inaccessible.

You can't do anything about it but contact the maintainer(s) or find another clone.


Restrict permission "write to disk" of a particular user

The command you are referring is chmod

Setting the following mode 755 will allow read/execute access only to any user, who is not the owner of the file.

If user vdesktop should execute a specific file which is owned by other user (e.g. root) the following command should answer your needs:

sudo chmod 755 /path/to/file_name

Note: sudo will cause chmod to be execute as root


Ubuntu 14.04 LTS Chrome web store screen shuts off

I have the same problem. For me, solution was to disable hardware acceleration. This isn't the best solution because Youtube videos are not smooth and are choppy when you disable HWA, but that is the only solution I managed to find.

Hope this will help you until someone gives better solution.


Currently, Banshee doesn't have genre browsing by default and there is no way that I know to enable a genre browser like there is one for artists.

However, you can get very close to this functionality by using smart playlists.

To create a new smart playlist go to Media -> New Smart Playlist.

You can select Genre from the dropdown menu in the dialog window.

Using 'Genre | contains | genre_text' works really well. For example, if you want to play all of your Thrash Metal, you could use 'Genre | contains | Thrash'.

You can then select the smart playlist along with all of your other playlists in the left hand column.

There is a slight problem with this approach however. You can't select multiple playlists at once like you can with artists. You can work around this problem by creating playlists for combinations of genres. Use the drop down menu to choose to 'Match [any] of the following' and use the plus button to add another query.

Here I have created a playlist for all heavy metal and thrash metal.

This works to give you a playlist containing both of these genres.


For Ubuntu

These errors indicate that there is some problem with DNS.

check cat /etc/resolv.conf for your DNS settings.
And add following name server in  /etc/resolv.conf for temporary or in /etc/resolvconf/resolv.conf.d/head for permanent

nameserver 8.8.8.8
nameserver 8.8.4.4

To add these two name server address in resolv.conf

run command sudo gedit /etc/resolv.conf
Copy above two line of nameserver paste on last line of resolv.conf
Ctrl+S to save.

Note: If you add name server only /etc/resolv.conf then when computer is restarted then /etc/resolv.conf is in previous stage.
So, to store these nameservers permanently, use following method :

run command sudo gedit /etc/resolvconf/resolv.conf.d/head
Copy above two lines of nameserver and paste on last line of /etc/resolvconf/resolv.conf.d/head
Ctrl+S to save.

Re-connect internet connection

More Detail On https://wiki.archlinux.org/index.php/Network_Debugging#DNS_Servers

For Windows:

Add these DNS ip on network configuration
Tutorial to add DNS in windows is here
https://www.opennicproject.org/configure-your-dns/how-to-change-dns-servers-in-windows-7/
Re-connect internet connection


I understand that in Gnome this is not possible. Now Wayland is in development and it's possible that the Wayland project doesn't include this feature.

It's really sad that Ubuntu is leaving Unity because one of the more interesting features (personal opinion) of Unity is the integrated app menu.

Last week OMG Ubuntu announced that Lester Carballo wouldn't work anymore on Global Menu Extension: GNOME Global Menu Extension ‘Discontinued For the Moment’.


You might want to look for a function key (F!- F12) that turns on and turns off your wireless device. I went thru a recent experience where I believed I lost wireless and later discovered I had actually turned wireless off with F2 on my laptop. Hope this simple fix does the trick.


Where or when can I ask Ubuntu employees questions related to Ubuntu?

There's really no concept of "Ubuntu employees". Ubuntu is made by Ubuntu Developers, who may or may not be paid to work on Ubuntu, which can incorporate work from a variety of projects.

There are regular Ubuntu Developer Hangouts posted on:

http://ubuntuonair.com/
http://ubuntuonair.com/calendar/

As well as regular Hangout sessions as part of the Ubuntu Online Summit, which is posted here:

http://uds.ubuntu.com/
http://summit.ubuntu.com/ - the schedule is posted here, including links to sessions and their respective YouTube videos.

For IRC and other resources, check:

http://community.ubuntu.com/contribute/
How can I contribute to Ubuntu?


Is there any finished tutorial on how to develop and package unity web apps?

Actually packaging a webapp isn't really different from packaging any other application. Take a look at resources in this answer and especially at existing integrations, e.g. LinkedIn, Feedly and (shameless plug) This Is My Jam.

Basically, you need debian/ directory with at least the following files (see the guide for details):

control with basic description for package manager (see example) Three keys are important for webapps in particular: XB-Ubuntu-Webapps-Includes, XB-Ubuntu-Webapps-Name and XB-Ubuntu-Webapps-Domain.
compat
copyright
install specifies which files should be installed where
rules
changelog specifies the resulting version of the package and must follow a very specific format; can be managed using e.g. dch command

You can generate these files using e.g. dh_make command or just copy the debian directory from other webapps project and change package names, filenames, and domains.

Once you have the files in place, you should be able to generate package using e.g. dpkg-buildpackage command (from the dpkg-dev package). The resulting package is generated in the parent directory.

If you are using version control such as Git or Bazaar, take a look at git-buildpackage or bzr-builddeb respectively (both available in Ubuntu repository). I've found especially the git dch command useful for maintaining the changelog. There's a nice HowTo on packaging with Git and uploading to PPA.


How to make the Terminal make a noise on command completion?

First, run the following commands to enable pcspkr and to install beep:

sudo sed -i 's/blacklist pcspkr/#blacklist pcspkr/g' /etc/modprobe.d/blacklist.conf
sudo modprobe pcspkr
sudo apt-get install beep

Now, run a command along with beep like so:

sudo apt-get update; beep

or

sudo apt-get update; beep;beep;beep;beep;beep

Finally, to control the volume of beep, change the beep volume from alsamixer by running the following command:

alsamixer

Now, use your right arrow key to scroll to the automute option. Use the up arrow to toggle this off.

Then use the left arrow key to scroll to beep and use the up or down arrow key to raise or lower the volume of beep.

Use the M key to mute or un-mute any channel.

Press ESC to exit alsamixer

Many more options for beep can be found at:

man beep

EDIT

Now, to get the terminal to beep after each command is run, run the following command:

cp .bashrc .bashbackup
echo 'PROMPT_COMMAND="beep"' | tee -a .bashrc
. .bashrc


How do you see the cpu temperature in htop command? Does this work for WSL?

A review of the man page for htop does not show it has that ability. It is a process viewer, not designed to read sensors.


I found this...

https://maas.ubuntu.com/docs/sstreams-mirror.html

Hopefully it will help speed up the process! :)


The blending tool doubt in GIMP, please help solve this situation?

The Blend tool adds a gradient to the image - starting at one end of the line you draw to the other, and, for a simple foreground to transparent gradient-at least, from full transparency to full opacity (or vice versa).

So, for a quick transparency to foreground blend, you'd place the tool handles as follows:

The tool position is approximate - I did the gradient first, then reused the tool to have it display its handles again for the screenshot).

The left handle marks the position where total transparency is reached, the right marks the begin of total opacity.

This should give you an idea of how this tool is used.


Drivers can be installed from

System Settings -> Software & Updates -> Additional Drivers

Do not download any video drivers from sites. It may result in black screen after reboot or a kernel upgrade.

Ubuntu way is to install from repositories.


apt upgrade hanging on "linux-headers-4.4.0-146-generic (4.4.0-146.172)"

In the end I followed this method.

Running apt upgrade then prompted me for a new Secure Boot password, but otherwise completed successfully.


Access samba share from other linux client

Have you added the user you are trying to connect with to the smbusers file? If not try this. It helped me with exactly the same issue:

Open a terminal and type the following command:

sudo smbpasswd -a username

After that, you should be able to use that username and password on the windows pc to connect to the share you created.


According to FocalFossa/ReleaseNotes - Ubuntu Wiki

  Ubuntu Desktop

  New graphical boot splash (integrates with the system BIOS logo).

This means it shows the vendor's logo while booting.

Further Reading: Ubuntu 20.04 Download Link & Top Features (Updated) - OMG! Ubuntu!

  And, in keeping with other Linux distros, Focal now shows your
  computer’s OEM logo on the boot splash in an effort to deliver a
  ‘flicker free’ boot experience:


Linksys AC 580 wireless usb adapter not working

Hardware needs Drivers to work. To write a Driver you need basic knowledge about the Hardware. Since Cisco did not create OpenSource Drivers nor Linux Drivers nor openens up the Specs for this device, only a Hardcore Linux Developer could spend much time to analyse the Hardware and then write an OpenSource Driver for it. If the best people begin now, you will have a beta driver in a year or two.

To be clear: That will not happen. You should inform yourself before buying and only buy Linux compatible Hardware. It is a market Problem with the manufacturers. Help to solve this issue by reporting back to cisco, give your dongle back and get a new, linux compatible, one.

Tip: If a Hardware is advertised with "No Driver install needed" or similar, than chance is high, that a standard is used and it will work without any additional drivers on Win,Mac,Linux. Search for WiFi Dongles that explicit work with Linux BEFORE buying one. There are lots of them. Also check out this to find compatible hardware: http://www.linux-hardware-guide.com/


Just start over from scratch:  Boot the LiveDVD/USB, erase everything and re-install.  That will "format" the laptop…

Low quality reviewers:  OP asks how to "format" his laptop…  Nothing more to say, really! ;)


Your defensive approach should focus on remote access to the server
Required daemon programs should be up to date
Not-required ones should not be installed

You could secure ssh with iptables, authentication keys and why not 2FA authentication. See this article : https://devops.ionos.com/tutorials/secure-the-ssh-server-on-ubuntu/

You may also implement the fail2ban program which is an efficient way to dynamically feed the iptables network filter from login attemps. https://help.ubuntu.com/community/Fail2ban


For this purpose, you can crate Custom shortcut:

Go to System Settings → Keyboard → Shortcuts (tab) → Custom Shortcuts (section) → Add new +.

In the Custom shortcut window type:

Name: Google
Command:

for FireFox: firefox www.google.de
for Chromium: chromium-browser www.google.de

Click on Apply

Click on Disabled:

Press ctrl+g to assign the desired shortcut:


In theory, you could merge them, but then you'ld have to also merge the index files of the repositories - and every time the ubuntu upstream updated, you'ld have to merge the index files again.

There is software that claims to do it for you here.


How to set built-in color scheme for gnome-terminal via CLI in Ubuntu 16?


How to move all files from one folder of a different partition in terminal?

Your external disk is mounted at the location /media/wagner/Backup.
The directory where the files you want to copy are located is /media/wagner/Backup/Videos.
The destination directory is /home/wagner/Videos or ~/Videos, which is the same.

Note that ~ is a synonym for /home/YOUR_USERNAME, i.e. /home/wagner in your case.

The command you want to run is this:

mv -v /media/wagner/Backup/Videos/* ~/Videos

Alternatively, if your current working directory is already /media/wagner/Backup, this is enough:

mv -v Videos/* ~/Videos


How do I add the unallocated space to my ubuntu installation after deleting the Windows XP Partition?

If I can see your partition map correctly, first you have to resize your extended partion to include the free space.

After that you can extend /dev/sda5.

You can only do this when Linux on /dev/sda5 is not active. So, you have to do this from another running operating system. A possible solution is to use a Linux Live CD, such as Ubuntu or Knoppix. Summarized

Download a Linux Live CD
Burn it to CD or write it to a USB memory key
Boot Linux Live from CD or USB
Start gparted from Linux Live
Resize your extended partition
Resize your Linux partition /dev/sda5
Reboot

Does this answer your question?


Though It will be very useful to include model number of your modem, I assume you are referring to the Banglalion Wimax modem with model ZTE AX226. I also have this same modem and this same problem. But I find a workaround for this problem.
Workaround to prevent the problem:

Open a terminal, and type sudo gedit /etc/modules to open the /etc/modules file

At the end of file, put a line with this bcm_wimax. This line tells the kernel to load the driver file, at boot time.

Then run this command sudo depmod -a -e.

Then sudo update-initramfs -u

Then restart. This problem should never arise again after that.

But as a precaution, You can do this to prevent errors.
Open a terminal and type lsmod | grep bcm, if it returns a line like below,
    bcm_wimax             244941  2

You are free to insert the modem. If it does not return any line, you should do the following:

Open a terminal and type sudo modprobe bcm_wimax to insert the module manually.

Note: From my experience, I see that, you have to wait around 10-15 seconds to get the driver ready. So, do not insert the modem after just running the command.


How to add shell script to my linux system

The usual location to install local scripts is /usr/local/bin or /usr/local/sbin.  See man hier for details of the directory structure.

These directories are usually included if the corresponding /usr/bin or /usr/sbin directories are in the path.  See man eviron for information on the standard environment variables including PATH.

The directory hierarchy for many distributions is document in the heir man page.  It can be displayed with the command man heir

/usr/local/bin is for programs that all users should be able to run.  It is equivalent to /bin and /usr/bin.  Normally, most users will not have these on their path.

/usr/local/sbin is for programs that are used for system administration.  It is equivalent to /sbin and /usr/sbin.


Unable to locate package libopenmpi-dev on 12.04

Try to run apt-get update before you install the openmpi package.

Also you can use the following command to search all openmpi related package, for example:

apt-cache search openmpi

If it still doesn't work, try to use a different mirror, below is GUI and easier:

sudo software-properties-gtk

Update:

@Govind

The package is definitely in the official repository (12.04): http://packages.ubuntu.com/precise/libopenmpi-dev

As mentioned earlier, please run apt-get update and then apt-cache search for the libopenmpi packages.

If it still doesn't help. Try to change your mirror. Or paste the content of your /etc/apt/sources.list


no bios, no grub, no Kubuntu after updating to 14.10

When you install an OS in EFI mode, it alters the NVRAM settings on the computer to point to the new OS's boot loader. Normally this works fine. My suspicion is that in your case, this change has affected the way the computer reacts to keypresses during startup or has otherwise affected startup options. If I'm right, this is a firmware bug. Some possible fixes spring to mind:

Use efibootmgr to view the current entries and remove any that aren't being used. I don't know of a good general efibootmgr tutorial on the Web, but if you do a Web search you'll find descriptions of how to use it to do various specific things. You can also read its man page. In brief, you'd use efibootmgr -v to view current boot entries and then use efibootmgr -b # -B to delete each one you don't want. (Replace # with the number corresponding to the entry you want to delete.)
Enter the firmware setup utility and review options related to "fast start" (disable it) or USB support (enable it). Of course, this poses a chicken-and-egg problem; you can't enter the firmware setup utility now, so you'd need at least a temporary workaround to get into the firmware once. This Acer page describes how to enter the firmware setup utility from Windows, but I'm not sure if it's generic or Acer-specific.
Configure GRUB to provide a reboot-to-EFI option, or install a boot loader that provides such an option. I'm not sure how to get GRUB to do this, although I thought I'd seen such options in GRUB somewhere along the line. My own rEFInd boot manager and gummiboot both provide this feature. (In the case of rEFInd, it appears as an icon of a computer chip on the second row of icons, and will not be present if the firmware doesn't provide the interfaces necessary for force a reboot into the firmware setup utility.) If you can get to the firmware's built-in boot manager, you could run rEFInd from a USB flash drive or CD-R to use this approach on a one-time or as-needed basis.
Update your firmware. This might reset things to a usable state, or it might fix the bug that's the real cause of the problem.


Is there to make the login screen appear on the external display in 18.04?

This is a known and reported bug with gdm3.  The current workaround appears to be:

Go into Settings > Devices > Displays and configure your monitors the way you want for your login screen (in your case, internal laptop display disabled).  Click the "Save" button when done.
Copy your user's monitors.xml file into the home folder for gdm user.

To copy the monitors.xml file, open a terminal and perform the following:

sudo cp ~/.config/monitors.xml ~gdm/.config/monitors.xml
sudo chown gdm:gdm ~gdm/.config/monitors.xml

Then, reboot and see if your changes persist.  If this doesn't work, try going through the whole process again.  It took me two times in order to get it to stick.  I was also able to reboot with my external display disconnected and it switched back to my internal laptop display.  I rebooted again and reconnected it and it switches back to my external monitor.

Hope this helps!


After days of struggling, I finally laid my hands on it and figured out that the poppler packages was somehow responsible, I removed them:

libpoppler58:amd64 0.41.0-0ubuntu1.4
poppler-utils:amd64 0.41.0-0ubuntu1.4
libpoppler-glib8:amd64 0.41.0-0ubuntu1.4
libpoppler-qt4-4:amd64 0.41.0-0ubuntu1.4
libpoppler-qt5-1:amd64 0.41.0-0ubuntu1.4

restarted docker and then it worked \o/

Update:

I tried version 0.41.0-0ubuntu1.4 (security repo) today but that also broke it and then reverting back to 0.41.0-0ubuntu1 fixed it again.

Update:

I tried version 0.41.0-0ubuntu1.5 of poppler-utils:i386 and libpoppler58:i386 (security repo) today but that also broke it and then reverting back to 0.41.0-0ubuntu1 but now it is still broken :'( . In the end I uninstalled docker-ce and re-installed docker.io and that worked \o/. (I even tried the snap version of docker but unfortunately I could not get it to work, with all of it's quirks)


error install openvpn in ubuntu 12.04 lts

Openvpn was installed. You can use the auto remove suggestion to clean up files you don't need that were also installed. Also if you can't find an icon for it in your programs list you can always run it down the command line.


How to know when a drive failed in RAID1

You could definitely check the disk SMART data.

If you use ubuntu desktop, run the Disk utility in ubuntu:

If you use a server, you can install smartmontools:

sudo apt-get install smartmontools
sudo smartctl -a /dev/sdx

where you substitute "/dev/sdx" with your drive.


Ensure that openoffice.org-wiki-publisher is installed:.
openoffice.org-wiki-publisher


Which File Is Changed Or Event Is Fired When Something Is Copied To The Clipboard (Ctrl + C)?

xclip is your friend. Look at the manpage for more information, but if you want to set the clipboard (not the selected text), you can use xclip -sel clip, then pipe to its stdin to set the clipboard.

There's a -i filename parameter to read from a file. -sel selects the clipboard buffer you want to use. There's p (primary, if you select something. It's what middleclick pastes), clip, which is the one used with CTRL-C and CTRL-V in all modern desktop environments (QT2 and Emacs 20 use the primary clipboard for some reason).

To get the contents of the clipboard, xclip -sel clip -o (prints to stdout). If you want to put it in a file, there's an optional parameter of -o to specify a file to send it to.

I believe there's some information in the manpage to wait for when the clipboard changes. I just couldn't decipher it.

Infos here: http://standards.freedesktop.org/clipboards-spec/clipboards-latest.txt


How do I change the color of desktop icon text

Desktop icon text is handled by .nautilus-desktop.nautilus-canvas-item. It is very simple to customize.

In your main GTK theme's gtk.css, underneath the initial @import url line (and not before, in my testing), put:

.nautilus-desktop.nautilus-canvas-item {
color: #ffffff;
text-shadow: 1 1 alpha (@fg_color, 0.8);
}

To see changes, do killall nautilus followed by nautilus and take a look at the Desktop.

Customize as you like: change color to #000000 for black, or, see if the (optional) text-shadow line (with nice alpha transparency) that I've included helps itself, even with white color!

For further ideas, try googling ".nautilus-desktop.nautilus-canvas-item" to see what others have done with this entry. I'm no expert at CSS or the above text-shadow code.

The other neat thing to customize the desktop icon text (and this customization is immediate with no nautilus restart required), is:

The dconf value org.gnome.nautilus.desktop font. To make text bold, simply put Bold as its value (default is empty). To change font size, add a number in there also, e.g. Bold 10. Font can be changed too, e.g. Serif Bold 10 - and I wonder what else can too.

Lastly, changing the icon view size in general via Nautilus preferences, View, 'Icon view Defaults' may make any of the above customizations more palatable by how much text width area it gives (for me, 50% zoom works VERY nicely with Bold 10 in dconf and the example css in gtk.css).

N.b. I'm in Debian Wheezy 7.8 so I hope it's not too different from Ubuntu itself here! I don't think there are any differences at time of writing.


cannot find -lGL even though ldconfig shows it's there?

The linker doesn't look in non-standard directories by default. You need to ensure that it's looking in /usr/lib/nvidia-current by using the -L flag.

Also, you must have the development files installed. A libGL.so symlink must exist, which points to the correct version of the library. Generally though, this should be done against the standard mesa GL library, and the nvidia files should be used at runtime.


Try:

$ sudo apt-get remove --purge alsa-base pulseaudio indicator-sound
$ sudo apt-get install alsa-base pulseaudio indicator-sound
$ sudo alsa force-reload


Linux 2.6.26 and newer includes the Linux UVC driver natively. You will not need to download the driver sources manually unless you want to test a newer version or help with development.

To know how to download and compile please check these official instructions


Font Viewer not running in Ubunt 16.04 latest version

There is a bug with this issue.
Try to update gnome-font-viewer. Latest version is 3.16.2.

To check version.

gnome-font-viewer --version

If your gnome-font-viewer version is old, update with following command.

sudo apt install gnome-font-viewer

After update try to open your font again.


Is there a way, to avoid authenticate dialog on snap install / remove?

This situation happens because the operation you are executing (snap remove) requires to be executed as superuser root. You have to run such commands as sudo <command>. That will however ask for the user password at least the first time.
According to sudo manual, the -S option allows to provide the password as stdin:

-S The -S (stdin) option causes sudo to read the password from the standard input instead of the terminal device. The password must be followed by a newline character.

If security is not an issue, you can do the following:
echo -e '<password>\n' | sudo -S <command>


Touch sensors not working after installing 16.04 on Toshiba satellite p755-s5260

I found a solution. My Wifi adapter sensors are working perfectly now. I just put my driver's process in the blacklist.conf located at /etc/modprobe.d/.

For toshiba Intel adapter the process is toshiba_acpi

At the end of blocklist.conf write:
blacklist toshiba_acpi


Why does Google search always count more results in Firefox or Chrome than in Chromium?

I believe I have it nailed down.

Google uses items from your past searches to narrow your searches results.

The highlighted link to "Web History" (available when you are connected to Google) lets you know what kind of history information Google uses to narrow your searches down. (It can be a lot of things, but default settings only look at your past Google Searches)

After a visit to that link, a nuking of the "Web History information", and some wait time for Google to flush results from its system, results became consistent between incognito and normal mode in Chromium.

I believe that Web History is used only for people who visit Google Search while connected to a Google account. (Which will be your default state if you are a Google account user.)

After some more verification, I have confirmed that Web History is also activated by default for people who do not have a Google account (I suspect it works with a cookie). Though one cannot see what kind of information Google has without a Google account, there is a link to choose to opt-out.

NB: I believe that the only other big factor in Google's results is the chosen search language (obvious when you think about it, but it kind of bugged me before I saw that Chromium was set in English and Chrome in French).


Ubuntu Jenkins appends windows paths when build

I fixed this issue by using the --runtime option.

dotnet build --runtime ubuntu.16.04-x64 --output "<path to workspace>/build"

By setting this option the dotnet command knows for which runtime it has to build. This prevents the path mix up from happening.


Review / edit startup programs rembered by "Remember Currently Running Applications"

All the applications "remembered" are stored in the following folder:

~/.config/gnome-session/saved-session

Use the file-manager to navigate to this folder - remember to use "View - Show Hidden files" to see the ".config" folder.

Use the instructions here if you want to remove all "remembered" applications.


It happens to me to from time to time. I don't know the cause.

To make the missing panel indicators reappear without rebooting you can restart the indicators manually by running the following command in a terminal or with Alt+F2

restart unity-panel-service

The panel indicators will blink off for a second, and then all of the panel indicators will restart and immediately reappear.

In Ubuntu 15.04 and later restart the panel indicators manually by running the following command:

systemctl --user restart unity-panel-service

In Ubuntu 17.10 and later GNOME has replaced Unity as the default desktop environment. To make the missing panel indicators reappear without rebooting in Ubuntu 17.10 and later run the following command:

setsid gnome-shell --replace # Press Enter again before closing the terminal.


Newbie question here regaring screen resolution

I have a theory.
It might be the case that the developer of this user interface has hardcoded the dimensions of page elements in their "stylesheets" (CSS code).
Now, on a different operating system, you have different fonts. The font chosen by Chromium on Ubuntu is somewhat larger than the font on the previous OS, and the one that the developer of this application has seen on their machine.
Therefore the big time display is overflowing the area that was designated to it. That could be causing all these symptoms.
Can you disable displaying the seconds on the big time display? Does it solve the issue with the layout?
Can you configure Chromium to use different fallback fonts (probably in the sans-serif variant)?
By all means, the developer of the user interface should be informed about this.

This may or may not work, but worth trying: zooming out the view in Chromium might also impact the issue with the too-big text, and therefore the scrollbars. If you had a keyboard attached, that would be Ctrl+-. (Some browsers have a customization setting: zoom text only. This would be relevant in this case.)


HELP! How do I set mesa 3.3 as my opengl version string

You should be able to force the OpenGL version string to 3.3 using the following prefix prior to the command used to launch your game:

MESA_GL_VERSION_OVERRIDE=3.3 command

For steam, you should be able to add this as a launch option (see here).

However, there is no guarantee that your game will run without issues if it does launch using this method. It also looks like you're using a development version of Mesa which may also not be stable.

My answer in this post may help explain the different Mesa versions listed by glxinfo.


For starters, there is a big chance those are two different issues

Your friend not connecting might be an incorrect port forward. Google around for a site that will do a port check on your IP (there are tons).

Your error is game client/java related. Verify that you have the correct java version installed (check the one your friend has, if it works for him) and install it like so:
How can I install Sun/Oracle's proprietary Java JDK 6/7/8 or JRE?

If that doesn't work try removing the mods? I haven't personally played minecraft (downvotes incoming i guess?) but that's one of the first things i'd try.


New Ubuntu user, having trouble increasing the “open file limit”

You can pipe echo to sudo tee -a to get the same result.

echo 'fs.file-max=1000000' | sudo tee -a /etc/sysctl.conf
echo '* soft nofile 1000000' | sudo tee -a /etc/security/limits.conf
echo '* hard nofile 1000000' | sudo tee -a /etc/security/limits.conf
echo 'session required pam_limits.so' | sudo tee -a /etc/pam.d/common-session

The -a option with tee will append the output to the end of the file. Make sure to use the -a option or you will overwrite the entire file.

Use tee --help for more information.


Try live installation instead of full install. There could be some differences in booting via USB. You can try this steps: http://www.pendrivelinux.com/installing-ubuntu-to-a-usb-hard-drive/ but it is a bit obsolete (Ubuntu 7), or to try to divide HDD following this steps: http://www.linuxbsdos.com/2011/05/23/install-ubuntu-11-04-on-external-hard-disk/

let us know if something from this options work for you.

Additionally, there is similar question to 12.10, which could have the very same resolution: How to run full ubuntu installation from external hard drive?

But most probably best steps you can find here: http://ubuntuforums.org/showthread.php?t=2084736

Happy installation!


Don't worry. Its the address of the remote peer you are connected to. Your source port is 54179 and the destination port is 80. This might be due to browsing some site or any other program using it,  the TIME_WAIT indicates that the connection has been closed from your end but waiting for any delayed packets from the remote peer. The IP (23.62.236.99) belongs to Akamai so it should be a part of CDN.

Here is a line while running netstat -taupen in my computer:

tcp        0      0 192.168.43.5:55720      104.16.19.44:80         ESTABLISHED 1000       44338       2045/firefox

This suggests that i have an active connection to 104.16.19.44 (Askubuntu) and the source port is 55720 and the destination port is 80 via the program firefox.


How to install Octave in Ubuntu 14.04 using terminal

You can install Octave latest by using below:

sudo apt-add-repository ppa:octave/stable
sudo apt-get update
sudo apt-get install octave

apt-get build-dep octave

Or

Adding a line to your /etc/apt/sources.list

amd64: http://packages.ubuntu.com/trusty/amd64/libgraphicsmagick3/filelist

i386: http://packages.ubuntu.com/trusty/i386/libgraphicsmagick3/download

Or

You can Download and compile octave:

sudo apt-get build-dep octave
wget ftp://ftp.gnu.org/gnu/octave/octave-4.0.0.tar.gz
tar xf octave-4.0.0.tar.gz
cd octave-4.0.0/
./configure
make
sudo make install


Assuming this is a Single install --

Log into the container

sudo lxc-ls -f
sudo lxc-attach -n <container> # usually something like uoi-bootstrap

Once in the container

sudo su - ubuntu
export JUJU_HOME=~/.cloud-install/juju

Now you can access your juju environment as normal

juju status
juju ssh nova-cloud-controller/0
...

As far as bringing back up the nodes, you'll need to run a juju status within the container as above and see which services are reporting errors.

If this is a Multi install --

Export the JUJU_HOME on the machine you ran the installer from

export JUJU_HOME=~/.cloud-install/juju

Perform step 3 from above.


To address the original question (as InkBlend did), hold the Shift key while booting. That should show the grub menu.

As for GPU lockup, I've seen this with NVIDIA cards on Unity ... hopefully the problem you're seeing is related to what I've seen. I worked around the issue by using GNOME 3. Here's the steps to install GNOME 3 on Ubuntu:

sudo apt-get install ubuntu-gnome-desktop ubuntu-gnome-default-settings

Choose gdm when prompted. Restart. Then next time you're asked to log in, choose GNOME session.


notification daemon configuration trouble

Unity uses Notify-OSD (the latter in your guest account), and Gnome uses notification-daemon.  I would try to install Notify-OSD alongside Gnome in order to get the notifications you'd like, or use Shell OSD to edit the Gnome based notifications.


Reinstalling broken xterm (Ubuntu 18.04)

Apparently, according to the comment reply, all that needed to be run was

sudo apt install --reinstall xterm


Try installing the "dconf-tools" from software center.

Press ALT + F2 to run a command and search for

dconf-editor

Highlight the whitelist entry as shown in the picture and click the Set To Default button.

How do I set the panel whitelist back to the default?


Ubuntu 12.04 froze, requiring powercycle. What should I look / grep for in the logs?

A freeze sounds a lot like an error either in Xorg or in the kernel. Have you tried to ssh to the box? Sometimes that works even if local user interfaces are all irresponsive. A working ssh connection might be very helpful debugging this kind of issue.

From the data you provided, I'd go for the kernel log. It seems libreoffice crashed for some reason, and within a second, chrome was gone as well. So there was definitely some kind of problem at that time. Have a closer look at the log around those error lines, and see whether you can identify the first error message of that event cascade. The timestamps to the left should be useful, as any event related to the freeze should be pretty close to the two I mentioned.

Just judging from the two events included in your log, it seems likely that the libreoffice crash somehow made X unstable, causing both the UI freeze and the chrome crash. You will notice that chrome crashed in an X library.


It fails because of missing dependencies. You need to install the following packages:

sudo apt-get install gawk zlib1g libncurses5 g++ flex

After installing these packages your command should run through.


how to remove complete node js and npm from Ubuntu 18.04?

You can try running apt-get remove nodejs --purge and apt-get remove npm --purge.

If the command continues to run, you can run find / -name npm, check the results, and delete files that you consider necessary.


How to install ubuntu onto a wiped clean hard drive on desk computer

No, Ubuntu certainly doesn't need Windows to be installed. However, you will need another computer to create a USB stick or a DVD with the Ubuntu .iso on it. In fact installing Ubuntu is more straightforward if you have a whole disk to use, without the risk of overwriting a Windows partition.

And Ubuntu will format the disk for you. You don't need to do that first.


Can I bind the media play keyboard button to start Banshee if no player is running?

i think part of the problem is that currently the play key could control other programs (such as vlc if it is running). having the keyboard media button start banshee would break that behavior.

i recommend using gnome-do. then you can just summon do (ctrl+space), start banshee (start typing banshee, hit enter when gnome-do figures it out), and press play on the keyboard. note that i've remapped gnome-do to ctrl+space since the super key summons unity's search function. the default is super+space.

this solution is probably more keystrokes than you want, but it is pretty fast if you are accustomed to using gnome-do (which is awesome and you should look into anyway!). there is a banshee extension for gnome-do, but it is currently broken (in ubuntu 11.10, anyway). hopefully it will get fixed soon, and you'll have an even quicker way to get your music playing.


Is my ssh key correct? It doesn't start with 'ssh-rsa' (Trying to set up private key validation, worried about being locked out of server)

The key that begins with ssh-rsa is the public key.

The first one in the question is your private key.

The public key is the one that should be transferred to the server.  It will end up in the authorized_keys file.


macbook pro 7,1 won't shut down without holding power button - 12.10

As it turns out, the driver for the nvidia graphics card was causing this, however I don't know why. I was using the nvidia-current driver, as the guide here told me to do.

The solution: change the driver the graphics card is using.
Software Sources > Additional Drivers > and change the nvidia driver to nvidia-experimental-304

Conclusively:

Unable to reboot/shutdown:

nvidia-current
nvidia-current-updates
nvidia-experimental-310

Able to reboot/shutdown:

nvidia-experimental-304
nouveau(but with other graphical problems)


Remount filesystem to rw after running fsck on root without reboot

fsck

For 18.04 or newer...

boot to a Ubuntu Live DVD/USB in “Try Ubuntu” mode
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/sda4

repeat the fsck command if there were errors
type reboot

bad blocking

Note: do NOT abort a bad block scan!

Note: do NOT bad block a SSD

Note: backup your important files FIRST!

Note: this will take many hours

Note: you may have a pending HDD failure

Boot to a Ubuntu Live DVD/USB.

In terminal...

sudo fdisk -l # identify all "Linux Filesystem" partitions

sudo e2fsck -fcky /dev/sdXX # read-only test

or

sudo e2fsck -fccky /dev/sdXX # non-destructive read/write test (recommended)

The -k is important, because it saves the previous bad block table, and adds any new bad blocks to that table. Without -k, you loose all of the prior bad block information.

The -fccky parameter...

   -f    Force checking even if the file system seems clean.

   -c    This option causes e2fsck to use badblocks(8) program  to  do  a
         read-only  scan  of  the device in order to find any bad blocks.
         If any bad blocks are found, they are added  to  the  bad  block
         inode  to  prevent them from being allocated to a file or direc‐
         tory.  If this option is specified twice,  then  the  bad  block
         scan will be done using a non-destructive read-write test.

   -k    When combined with the -c option, any existing bad blocks in the
         bad blocks list are preserved, and any new bad blocks  found  by
         running  badblocks(8)  will  be added to the existing bad blocks
         list.

   -y    Assume  an answer of `yes' to all questions; allows e2fsck to be
         used non-interactively.  This option may not be specified at the
         same time as the -n or -p options.


No sound device is detected in Ubuntu 16.04 until I kill pulseaudio

killall pulseaudio and pulseaudio -k (or pulseaudio --kill) have same function. i don't see why final command should be needed

When Pulseaudio starts it checks home folder configuration for user settings. If there are none found, a fresh default set of files is created.
Pulseaudio used to use ~/.pulse, recent versions switched to ~/.config/pulse.
Check hidden folders in home with file manager and you should only find one of those folders (probably the second one)

If anything to get your sound working isn't saved to configuration or deleted, default configuration is re-created with same error after restart

Open Pulseaudio Volume Control (pavucontrol)don't rely on volume
control in panel, pavucontrol shows all needed settings
Check in Playback tab to see if audio playback showing and not muted
Go to Configuration tab, try setting all devices to OFF first
Change only one device to "analog stereo playback"
(digital is ok if can't use analog, stereo and playback only to keep it simple temporarily for troubleshooting)

If sound starts working, reboot PC to check if audio working and configuration saved.


Can the "rename" command distinguish between directories and files?

rename does not distinguish between files and folders.

The shell is responsible for expanding the wildcard * into files and folders.

* will be expanded to all non-hidden files and folders.
*/ will be expanded to all non-hidden folders.

But I don't know of any way to expand to files only. You can use find -exec instead.

only folders:

rename 's/ /\n/g' */

or

find . -maxdepth 1 -type d -exec rename 's/ /\n/g' {} +

Only files:

find . -maxdepth 1 -type f -exec rename 's/ /\n/g' {} +

Note that find will also find hidden files unlike * (unless you turn on the dotglob shell option by running shopt -s dotglob).

zsh seems to be able to match files only with wildcards.

  Disclaimer: I would not recommend adding newlines to file names as it may cause trouble and break many scripts.


Assign shift+tab to the control button on the right?

In X11 jargon, the name for a key is called its keysym (short for:
key symbol).  The keysym generated by Shift+Tab
is ISO_Left_Tab.  So, in theory, one could just assign the
ISO_Left_Tab keysym to any key (which you can do with the command
xmodmap) and this would do the trick.

Unfortunately, some applications (for instance: Firefox) explicitly
look for the Shift keypress, and this breaks it, because you cannot
assign two keysyms (Shift and Tab) to one single key.

Fortunately, Roger Pate's answer to this AskUbuntu question provides
a way around it: bind a shortcut to a program that will simulate the
simultaneous pressing of Shift and Tab.

Install the xvkbd package
From the System->Preferences->Keyboard shortcuts menu, create a
new shortcut, name it e.g. "Shift+Tab" and insert the following
command:

sh -c "xvkbd -text '\S\[ISO_Left_Tab]'"

The purpose of this command is just to send a virtual Shift+Tab
keystroke to the currently focused window. (Consult the xvbkd man
page for more information.)
Bind this shortcut to any key you want.  Note that, to bind a
shortcut to a modifier key (i.e., one that is only meaningful in
combination with another key, for instance Shift or Alt) you
need to deprive it of its modifier status.  For example, before
binding right-Control, you need to issue this command in a
terminal:

xmodmap -e 'remove control = Control_R'

(See this other AskUbuntu question for another way to bind
modifier keys.)

Note: the xmodmap line above will only have effect until next reboot/logout. To make it persistent, you would have to either put that line into the ~/.gnomerc file, or add remove control = Control_R to the ~/.Xmodmap file.


There is no procedure to change the contents of a LiveUSB since the USB flash memory drive holds a compressed image to boot and run Ubuntu from, instead of a traditional directory structure with uncompressed files.  As suggested above, copy what you want to preserve, make a new LiveUSB with persistence, and copy the preserved files back onto the LiveUSB.


There are two special directories in every directory that your wildcard matches: . and ... Are you sure you didn't want "$targetDir"/* instead? You'd need to filter out directories, anyway.

You can use

[[ -d $filename ]]

to test whether the filename is a directory.

Also, the usual way to turn $RANDOM into a number in the interval 0 - $n, you can use

index=$(( RANDOM % (n + 1) ))

where % is the modulus operator.

In other words:

#!/bin/bash
targetDir=/home/thomas/Store/quotations
files=( "$targetDir"/* )
index=$(( RANDOM % ${#files[@]} ))
until [[ -f ${files[index]} ]] ; do
    index=$(( RANDOM % ${#files[@]} ))
done
cat "${files[index]}"


Upgrades available but after clicking install nothing happens

Now I understand the problem, because it's merely a problem of terminology.

What ubuntu in the top right corner GUI defines as "install updates" it's not solved by the command sudo apt update because this command merely downloads the latest version of available packages, but it's solved by sudo apt upgrade, which indeed install new versions of the packages already installed.


Installing ISO9660 File to HDD

The ISO9660 partition is a clone of the ISO file, Prior to 19.10 any space greater than the size of the ISO file is wasted. The Drive will fail if the ISO9660 partition is written to or modified.

A Live install on the HDD is read only and will not save new programs or data.

People generally want to put a full install of Ubuntu on the HDD, so that they can install programs and save data and settings. A full install also allows software updates and version upgrades, hibernation and proprietary drivers.

Use an app such as UNetbootin or Rufus to make an installer USB from your ISO file.

You can then use the Live USB "Install Ubuntu" option to install to HDD.

Another option is to dd your ext4 SSD install to another disk.


How to upgrade GTK 3.18 to 3.20 on ubuntu 16.04?

If you Google this, you will find guides like this and this. In addition, you will find that this has been asked before on this very site at least twice: once in 2016 and once in 2015.

Now, to be fair, I'm used to arch, which already ships with 3.20. Being maybe 1 year after the release of 3.20, I almost didn't believe the Ubuntu guides above. Really? Add a separate repository, including one with staging in the name? Nevertheless, it's true and the tl;dr is very simple:

sudo add-apt-repository ppa:gnome3-team/gnome3-staging
sudo add-apt-repository ppa:gnome3-team/gnome3
sudo apt update
sudo apt dist-upgrade

I did these exact steps today, rebooted for good measure, and enjoyed that my preferred openbox themes (which work fine on arch) were no longer messed up (due to 3.18, which I never would have suspected).


I have figured this out, I changed the path in nagios commands.cfg and it's working now, you can now close this thread


Try these commands in terminal:

sudo apt-get --purge --reinstall bluetooth

and then elevate to SU

sudo su
service bluetooth restart


I solved the problem by removing and reinstalling the Qt Creator.

In my searches on the Internet, it may be caused by Qt Creator, and when I did the reinstalling operation, it is solved and now, works fine.


If you set the proxy to use at the system level, almost all network requests (regardless of program origin) will be routed through the proxy. Tor is, simply put, a more complex proxy.

Note that, according to this you may get an error if you use Google's repo.


How do I prevent dns rebinding attacks on my development machines?

Ubuntu defaults to dnsmasq as a caching DNS server.

You can check if you are affected (some dns servers have such protection enabled by default, so via your current connection you might already be safe)

$ dig +short 2.0.0.127.zen.spamhaus.org
127.0.0.10

Installing dnsmasq will automatically setup your /etc/resolv.conf to point all name resolution to the local dnsmasq instance.

sudo apt-get install dnsmasq

The option to reject private IPs from upstream servers can easily be added:

echo "stop-dns-debind" | sudo tee /etc/dnsmasq.d/stop-rebinding

Do not forget to restart the DNS server after changing options:

sudo restart dnsmasq

Test configuration as above, no 127.0.0.0/8 answer should be returned.

Refer to the dnsmasq manual in case your machine for any reason actually needs to query RBLs (such as the one referred in the test above) - partial exemptions from the protection are possible.


OK, turn's out this does not occours when using Noveau drivers, so if you're experiencing something similar, try:

sudo software-properties-gtk

And under Additional Drivers tab pick xserver-xorg-video-nouveau.

Leaving this open for answers in case someone comes up with a solution for proprietary drivers.


How I can send bug report if Lubuntu doesn't start?

Ubuntu uses Launchpad to keep track of bugs and their fixes. This page will guide you through the steps required to file a good and detailed report.

Read this article on how to report a bug, and test if that is really a bug.


If you are running a more modern Linux and want an authoritative answer, run the command:

systemd-resolve --status

It will show all adapters and what each adapters DNS server is. So you can troubleshoot OpenVPN problems and others.


Mozilla Firefox 12 is very slow on Ubuntu 12.04 LTS

The problem is most likely with your graphics driver.

Attempt to install the ATI binary driver: https://help.ubuntu.com/community/BinaryDriverHowto/ATI


sudo apt-get install tomcat7 returns a 404 for Ubuntu 14.04 (64 bit) but package should be available

apt tries to download an outdated version, currently this is the most recent version found there:

openjdk-7-jre-headless_7u65-2.5.2-3~14.04_amd64.deb

You need to run apt-get update.


Open a terminal CTRL+ALT+T and enter the following comand

sudo iwlist scan

This will list all the Wifi signals you PC can see as shown below.

warren@dell:~$ sudo iwlist scan
[sudo] password for warren:
lo        Interface doesn't support scanning.

wlan0     Scan completed :
          Cell 01 - Address: 4C:60:DE:6B:85:4A
                    Channel:36
                    Frequency:5.18 GHz (Channel 36)
                    Quality=57/70  Signal level=-53 dBm
                    Encryption key:on
                    ESSID:"HS-1gid46vaylveagu59b3ks232h"
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s
                              36 Mb/s; 48 Mb/s; 54 Mb/s
                    Mode:Master
                    Extra:tsf=0000057e902c95aa
                    Extra: Last beacon: 3580ms ago
                    IE: Unknown: 001C48532D3167696434367661796C7665616775353962336B7332333268
                    IE: Unknown: 01088C129824B048606C
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK
                    IE: Unknown: 2D1A6E081BFFFF000001000000000000000000000000000000000000
                    IE: Unknown: 3D16240D0400000000000000000000000000000000000000
                    IE: Unknown: DD730050F204104A00011010440001021041000100103B00010310470010C8F7D19B3C39E65DD5B3EC2A8601640D102100074E6574676561721023000844474E44333330301024000631323334353610420004313233341054000800060050F20400011011000844474E4433333030100800020088
                    IE: Unknown: DD090010180201F0050000
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK
                    IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
                    IE: Unknown: DD1E00904C336E081BFFFF000001000000000000000000000000000000000000
                    IE: Unknown: DD1A00904C34240D0400000000000000000000000000000000000000
          Cell 02 - Address: 1C:AF:F7:63:A5:26
                    Channel:1
                    Frequency:2.412 GHz (Channel 1)
                    Quality=36/70  Signal level=-74 dBm
                    Encryption key:on
                    ESSID:"TALKTALK-63A526"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                              9 Mb/s; 12 Mb/s; 18 Mb/s
                    Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
                    Mode:Master
                    Extra:tsf=00000014c7e111bc
                    Extra: Last beacon: 4444ms ago
                    IE: Unknown: 000F54414C4B54414C4B2D363341353236
                    IE: Unknown: 010882848B960C121824
                    IE: Unknown: 030101
                    IE: Unknown: 2A0104
                    IE: Unknown: 32043048606C
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : TKIP CCMP
                        Authentication Suites (1) : PSK
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : TKIP CCMP
                        Authentication Suites (1) : PSK
                    IE: Unknown: DD180050F2020101000003A4000027A4000042435E0062322F00


Your Clementine looks fine to me, has a proper Qt theme. In my case it looked like Windows 95, so my solution might not work for you. As you had no answer I though this might be useful anyway.
sudo apt install qt5-style-plugins qt5ct qt4-config

The first might be already installed. The second, qt5ct, Qt5 Settings, is not for Clementine, but for other Qt applications like Qmmp (simple UI), it might prove useful.
The helpful Clementine settings are to be made with Qt4 Settings (qt4-config package, runs as qtconfig) - namely selecting GUI style GTK+.

Reboot was needed in my case for changes to be adopted.
As I don't use a background image, it looks like this:

Considering the OP's answer that solved the problem in Ubuntu 19.04, but that doesn't work in previous versions: the question was initially about 18.10, I have tested in 18.04, the OP's solution is in 19.04. That may involve different modes of operation and versions of the Qt settings tools. I do not find surprising that the Qt4 settings tool, not the Qt5 one, is the one that worked in my case, given that Clementine 1.3.1 uses Qt4, namely Qt 4.8.7. The OP solved it in 19.04 with settings made in Qt5 Configuration Tool (qt5ct). I think that is because qt5ct is a newer version in the newer 19.04 Ubuntu, while mine (version 0.34 from Ubuntu 18.04) not only behaves but also looks a bit different:

It might be that the newer version of Qt5 Settings  has taken over the Qt4 options too.

Summing it up:

In Xubuntu 19.04 and later, use the Qt5 Settings (qt5ct), as said in the OP's answer.

In previous versions where the above doesn't work, like in Xubuntu 18.04  and 18.10, use the Qt4 Settings (qt4-config package, runs as qtconfig). (For other Qt applications like Qmmp with Simple UI, depending on their Qt version, the Qt5 Settings might be the one useful though. I have also seen a case where Qmmp with Simple UI would not follow the system (dark) theme unless the setting in the Qt5 tool was changed accordingly under Palette - Custom - Color scheme.)

Reboot might be needed to see changes.


How do I create an additional user on Ubuntu Core?

You can create a local user with the adduser command if you use the option --extrausers:

sudo adduser --extrausers test

Example:


ufw is a front-end for iptables, so we only need address ufw. Please see: https://wiki.ubuntu.com/UncomplicatedFirewall Is your syslog filled up to kilobyte levels or megabytes or even larger? Find out:

ls -al /var/log/syslog*
ls -al /var/log/ufw*

You can restore ufw to defaults with:

sudo ufw reset

This command also disables ufw, so if you want it restarted at default levels, then do:

sudo ufw enable

You can adjust the logging level with:

sudo ufw logging LEVEL

Where LEVEL may be 'off', 'low', 'medium', 'high' and 'full'. ufw defaults to 'low'.

Reference: man ufw


A .deb is nothing more then an archive, like a zip file.

"Installing" the .deb is nothing more then copying the files from the archive into the system + a few pre or post copy (installing) scripts / restarting / reloading configuration files + a tracking system.

Removing the archive, the .deb, does not un-install the package, so it does not matter if the .deb was downloaded and installed from /tmp or deleted after install.

See also this fedora link for how packaging management works. It is written for Fedora, but applies to most Linux OS (although Ubuntu uses apt)  https://fedoraproject.org/wiki/Package_management_system


Test run command without executing it but showing result of command

I'm not sure such a command exists since some commands would likely ruin a system if run on bare metal, such as "rm -rf / --no-preserve-root". If the command could be destructive, then just spin a Virtual Machine and test the command there.


Interface IP conflict after dropbear-initramfs boot

If you are using Ubuntu 20.04 like me, you will find a file /run/netplan/eno1.yaml (or similar file) created after booting.
You can add a script under /etc/initramfs-tools/scripts/init-bottom/ like this:
rm -f /run/netplan/eno1.yaml

to delete the IP address configuration you specified in /etc/initramfs-tools/initramfs.conf
See this related question: What is creating /run/netplan/eth0.yaml?


How to install Git GUI on my local machine that runs on Ubuntu 12.04 LTS 64-bit OS?

You can install it with apt-get tool:

sudo apt-get install git-gui

To run the app use the command:

git gui

Then, from Repository tab chose Clone and enter "Source Location" and "Target Directory" information and just click on the clone button.


In a terminal, type:

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

sudo apt update

sudo ubuntu-drivers autoinstall

reboot

sudo apt install nvidia-cuda-toolkit gcc-6

nvcc --version

I have a gtx970 graphics card and a fresh install of Ubuntu 18.04

This worked for me


In all probability you had to shift your client from using DHCP to using a static IP when you installed the DHCP server.  While it's not technically not impossible to run a DHCP client and server on the same machine it's generally recommended to keep the machine static.

I would simply shift the machine back to using the DHCP client. It's pretty easy to go back; edit /etc/network/interfaces and go:

auto eth0
iface eth0 inet dhcp

...or whatever your wireless interface name is.


I am having a problem downloading the Ubuntu software from the web site?

You could try one of the alternative methods mentioned in the below link

http://www.ubuntu.com/download/alternative-downloads


Try this:

dpkg --configure -a
apt-get -f install

If the error was transient, this will finish the installation. If the problem persists, please give us the full output of these commands.

If the error is the same, you can also run this command to get more info. Please add the full output to your post:

sudo sh -x /var/lib/dpkg/info/rsyslog.postinst configure


You have to install a few packages first with:

sudo apt install openvpn network-manager-openvpn network-manager-openvpn-gnome

then, restart network-manager

sudo service network-manager restart

and try again. If it doesn't work, then try logging out and back in, if not, then try rebooting.


How do I disable the touchpad while typing (Ubuntu 18.04)?

I did it this way:

sudo apt remove xserver-xorg-input-synaptics
sudo apt install xserver-xorg-input-libinput
sudo reboot

On my machine I had both of them, so synaptics was default, deleting it helped me.
Do not forget to reboot.


Why does Ubuntu 18.04.1 completely freeze when watching a video

I encountered several of these freezes recently on a laptop (trackpad). I used to think that the only way I could unfreeze it was by holding the power button until the computer shut down.

However, when I connect a USB mouse, the laptop unfreezes. Perhaps more of a workaround than a solution, but I suppose it is more practical than shutting down every time the computer freezes.


download packages from ppa.launchpad.net via ftp or https

Update:

HTTP / HTTPS:
After checking with the Launchpad channel on IRC, only private PPAs get HTTPS, under the current system.  Public PPAs do not get HTTPS connectivity methods.

Manual Downloading Method:
Your only other option in this case to get PPA packages via HTTPS for public PPAs, here, would be to manually download the packages off of Launchpad (via Launchpad Librarian), by navigating to the PPA on the Launchpad interface, hit the "View package details" section, expand the given package version, and manually downloading all the .deb files from Launchpad, which will use HTTPS.  This, however,

FTP / SFTP / FTPS:
None of the PPAs support FTP/SFTP/FTPS download mechanisms.  You cannot use these methods to download packages from PPAs. (FTP and SFTP are only available for uploading via dput, and are not available for downloads).


How to fix incorrect aspect ratio in video files

You should look into ffmpeg which is the swiss knife of video encoding and metadata editing on linux.

You may be interested in this post

The abstract of the best answer is to try that :

ffmpeg -i <INPUT_FILE> -aspect 720:540 -c copy [OUTPUT_FILE]


Are you sure that it is not just the mount point or the volume (disc) name???

If this is what you mean (where my tab is at the moment) you can delete that text and insert one that fits you better as a disc name (ie: "MP3Collection").

I dont believe that brasero creates a folder if you are trying only to only add one file to it.

Have a look here for a simple guide and if that is not your problem include a screenshot of what you are experiencing.


According to Ubuntu's package search, the file you are looking for is part of the package linux-headers-3.8.0-29-generic. Its full path, according to that package's
file list, is

/usr/src/linux-headers-3.8.0-29-generic/include/config/modversions.h


The problem is that by using the root instead of alias it will look in the wrong path. Also in the http the user was www-something and has had no permissions, thanks ubuntu, so now I had to change to my name and it worked:

Alias instead of root for the right path
Define the right user that has permissions to the folder you want


How do I remove the shortcut buttons/toolbar from emacs?

Edit your ~/.emacs or our ~/.emacs.d/init.el file and add this line

(tool-bar-mode 0)

This will prevent the toolbar for showing again.


How do I do Drag-and-Drop with an Appindicator?

Nope.  You can only receive menu open events.


How to remove duplicate entries within the Open With Other Application menu?

You should delete the multiple entries (you will see a lot of wine entries) in

~/.local/share/applications

When you finish , see if the duplicated open with programs has gone .


Why am I unable to install the Nvidia 96 driver?

As long this is an open bug, you can try the open-source driver Nouveau. To enable the experimental 3D support for this driver, you need to install the package libgl1-mesa-dri-experimental.

Although it says experimental and is still unsupported by upstream developers, that driver works pretty well on a lot of Nvidia cards.


What is the difference between appindicator and AppIndicator3

The differences might seem subtle in actual usage, but:

libappindicator1 is bound via GTK2
libappindicator3-1 is bound via GTK3.

There may be deeper stuff that you can look into but that should get you pointed in the right direction. Nothing to do with the version of Python. All the heavy lifting is done through GObject introspection.

Oh there does seem to be a difference in the version of libindicator each binds to too.


Can I log in without loading my .profile?

While an error in .profile does cause the GUI to loop back to the login screen, you can log in to the TTYs (CtrlAltF1 (or F2 through F6)). Depending on your specific problem, your PATH may or may not be affected. If you find you cannot run commands, try with full paths (/usr/bin/nano vs just nano).


Is There any application or extension that enables the mouse cursor follow the focused window in ubuntu 18.04?

According to this answer on Super User, in Gnome, Alt+F7 begins dragging the current window. If you press Enter or Esc immediately afterwards, it will cancel dragging and leave the mouse in the center of the window.


Compatibility of acer aspire one 722 with ubuntu 12.10

I am running 12.10 on Acer Aspire One 722 right now. It mostly works fine. my only current issue is the internal and external microphones are not working. There is a bug report.

The graphics performance in Ubuntu is not as good as in windows.

There is a ton of information relevant for 722 in the 522 page:

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

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

The following thread in ubuntuforums is also useful.

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

Update: the internal microphone works after the upgrade to Ubuntu 13.04. Everything works!

Hope this helps


Impossible to launch graphic executables in nautilus

This appears to be long-running bug:

https://bugzilla.gnome.org/show_bug.cgi?id=737849

I, too, would like to see it sorted out.

Regards

Peter


GTK scrollbar with transparent or no trough

Transparent colors (RGBA) are possible in GTK-3 using alpha, so for making the trough transparent:

.scrollbar.trough,
.scrollbar.trough.vertical {
    border: alpha (@base_color, 0.0);
    background: alpha (@base_color, 0.0);
}

I don’t know about GTK-2 yet.


Install multiple deb files while respecting their dependencies

Topological sort (via script)

The command dpkg -i packages/*.deb is problematic - does not properly respect the order packages should be installed (even if you supply all required packages).

Custom script to rule them all

  Under the assumption your debian distro has python installed (mine is ubuntu 14.04 LTS and comes with python27)

Aside the offline .deb packages directory, provide a script that;

Extract metadata and Topological sorts all candidate packages
Uses dpkg -i to install the sorted packages in proper order they should be installed

For example, execute this command to install all pre-collected offline packages

sudo python install.py

  Your directory structure should look like this

install.py

#!/usr/bin/env python

import os
import re
import subprocess
import logging

import sys

rootLogger = logging.getLogger()
rootLogger.setLevel(logging.INFO)
consoleHandler = logging.StreamHandler(sys.stdout)
consoleHandler.setFormatter(logging.Formatter("%(asctime)s - %(levelname)s - %(message)s"))
rootLogger.addHandler(consoleHandler)

SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__))

class TopologicalSort(object):
    def __init__(self, dependency_map):
        self._dependency_map = dependency_map
        self._already_processed = set()

    def _get_dependencies(self, item, root=None):

        if not root:
            root = item

        elif root == item:
            logging.warn("circular dependency detected in '{}'".format(item))
            raise StopIteration()

        dependencies = self._dependency_map.get(item, [])
        for dependency in dependencies:

            if dependency in self._already_processed:
                continue

            self._already_processed.add(dependency)

            for sub_dependency in self._get_dependencies(dependency, root=root):
                yield sub_dependency

            yield dependency

    def sort(self):
        # Reduction, connect all nodes to a dummy node and re-calculate
        special_package_id = 'topological-sort-special-node'
        self._dependency_map[special_package_id] = self._dependency_map.keys()
        sorted_dependencies = self._get_dependencies(special_package_id)
        sorted_dependencies = list(sorted_dependencies)
        del self._dependency_map[special_package_id]

        # Remove "noise" dependencies (only referenced, not declared)
        sorted_dependencies = filter(lambda x: x in self._dependency_map, sorted_dependencies)
        return sorted_dependencies

class DebianPackage(object):
    def __init__(self, file_path):
        metadata = subprocess.check_output('dpkg -I {}'.format(file_path), shell=True)
        metadata = metadata.replace('\n ', '\n')
        self._metadata = metadata
        self.id = self._get('Package')
        self.dependencies = list(self._get_dependencies())
        self.file_path = file_path

    def _get_dependencies(self):
        dependencies = self._get('Depends') + ',' + self._get('Pre-Depends')
        dependencies = re.split(r',|\|', dependencies)
        dependencies = map(lambda x: re.sub(r'\(.*\)|:any', '', x).strip(), dependencies)
        dependencies = filter(lambda x: x, dependencies)
        dependencies = set(dependencies)
        for dependency in dependencies:
            yield dependency

    def _get(self, key):
        search = re.search(r'\n{key}:(.*)\n[A-Z]'.format(key=key), self._metadata)
        return search.group(1).strip() if search else ''

def sort_debian_packages(directory_path):
    file_names = os.listdir(directory_path)
    debian_packages = {}
    dependency_map = {}
    for file_name in file_names:

        file_path = os.path.join(directory_path, file_name)

        if not os.path.isfile(file_path):
            continue

        debian_package = DebianPackage(file_path)
        debian_packages[debian_package.id] = debian_package
        dependency_map[debian_package.id] = debian_package.dependencies

    sorted_dependencies = TopologicalSort(dependency_map).sort()
    sorted_dependencies = map(lambda package_id: debian_packages[package_id].file_path, sorted_dependencies)
    return sorted_dependencies

def main():
    # ------------------
    # Sort the packages using topological sort

    packages_dir_path = os.path.join(SCRIPT_DIR, 'packages')
    logging.info('sorting packages in "{}" using topological sort ...'.format(packages_dir_path))
    sorted_packages = sort_debian_packages(packages_dir_path)

    # ------------------
    # Install the packages in the sorted order

    for index, package_file_path in enumerate(sorted_packages):
        command = 'dpkg -i {}'.format(package_file_path)
        logging.info('executing "{}" ...'.format(command))
        subprocess.check_call(command, shell=True)

if __name__ == '__main__':

    if os.geteuid() != 0:
        logging.error('must be run as root')
        sys.exit(1)

    try:
        main()
    except:
        logging.error('failed to install packages', exc_info=True)
        sys.exit(1)


Using grep to find all substrings of strings that may contain special characters

The -w option makes grep look for words, so it will show crk when surrounded by non-word characters. From man grep:

-w, --word-regexp
      Select  only  those  lines  containing  matches  that form whole
      words.  The test is that the matching substring must  either  be
      at  the  beginning  of  the  line,  or  preceded  by  a non-word
      constituent character.  Similarly, it must be either at the  end
      of  the  line  or  followed by a non-word constituent character.
      Word-constituent  characters  are  letters,  digits,   and   the
      underscore.

_ is a word character, so crk_op will not match crk with -w.

The convoluted regex "[^ ]*crk[^ ]*" works because it allows any number of non-space characters between the word boundaries that grep requires.

Just do:

grep -rn --include '*.c' . -e crk

You don't need to qoute . for the current directory there.


cannot view partitions after rsync restore: how to backup better?

Partitions are visible to users in the group disk. If you were in that group before you should still be if you saved and restored files in /etc. You can see which groups you are in with the commandid. To add group disk to your user id do

sudo usermod -aG disk $USER

You will need to login to see the change.


sort has the option to sort by multiple columns, do:

sort -k1,1 -k2,2 file.txt

The above will sort the file first by whitespace separated column 1, then by column 2.

You can also set other delimiter than any whitespace by the -t option, e.g. setting , as the delimiter:

sort -t ',' -k1,1 -k2,2 file.txt

Check man sort.


Changed user password on server but SFTP still uses old password?

You changed the SFTP password and in the server your password change is recflected, at the same time you have previously connected to SFTP via filezilla and the connection is still live . This is because, user accounts in the server is updated but the SFTP service is not restarted. Kindly restart your SFTP , and if you are using it via ssh , restart ssh service too.


How to get a file from a docker instance

I found the answer and it involves using an additional terminal window, hopefully this will help others:

Open a new terminal window and run docker ps to get the container id. with the container id in-hand, using 5d0a816af9a8 for example, use this command to copy the tarball / file you want:

docker cp 5d0a816af9a8:/mybuilddir/myfile.tar.gz /home/me

With /home/me being the destination on the host system.


XPS 13 9300 - fingerprint reader - any driver updates?

I'm adding another answer as it is sufficiently different from my previous and it may also help notifying the OP.
I got the fingerprint reader on my Dell XPS 13 9300 working in Ubuntu 20.04 with a driver package ostensibly from Dell. What I did was:

install the latest Linux kernel 5.8 (most likely not necessary, but above 5.6.1 is advisable)
download the .deb
install it with sudo dpkg -i libfprint-2-tod1-goodix_0.0.4-0ubuntu1somerville1_amd64.deb
reboot the system

This was the device installed in my XPS. Looks like it has the same ID as yours so you may be in luck.
 lsusb | grep -i goodix
Bus 003 Device 002: ID 27c6:533c Shenzhen Goodix Technology Co.,Ltd. FingerPrint

Use is limited to logging in and probably some third-party software. Haven't yet found out if it can be used to get elevated permissions (in the GUI; I don't expect it ever to happen in the terminal).
UPDATE: I'm not quite sure what I did (it may have something to do with the sudo pam-auth-update I ran to enable fingerprint authentication), but this morning my laptop started asking for my fingerprint in the terminal when performing sudo commands. It doesn't always work for unlocking the computer or logging in, though, but it's better than nothing!


Wireless is disabled by hardware switch on a Dell Latitude

Here's your laptop's User Manual:

http://support.dell.com/support/edocs/systems/late5400/en/qrg/qrg_en.pdf

Wifi hardware switch is #18 on the diagram on page 7 :)

Try turning it on and off.


Brightness control in Ubuntu 14.04 on Sony Vaio?

I have a Sony VPCEH notebook, I had the same problem.

I tried this solution that worked for me:
http://ubuntuforums.org/showthread.php?t=2221452#6

Briefly:

  With root privileges, create the file
  /usr/share/X11/xorg.conf.d/20nvidia.conf with the following content

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 410M"
    Option         "RegistryDwords" "EnableBrightnessControl=1"
EndSection

  Log out and back in again to test.

And it gently adds: "If something goes wrong, simply delete that file and reboot to recover the system."

But I didn't need that addition. After logout and login the brightness control started to work again.

I hope it helps you too...


Prevent the tag of each tab from shrinking when opening more tabs in Chrome browser

This is actually listed as a feature on the chromium website.  It appears there is not currently a solution to this, despite numerous people requesting the feature. The discussion here suggests trying "VerticalTabs" or "TooManyTabs for Chrome".  Also consider adding a star to this issue to show your support for the feature, although that specific issue has been open since 2008 without any change to the browser.  The most recent post by a chromium developer was in May 2014, saying they're working on it.  Finally, I haven't personally tried this, but some users seemed to like this patch to the source code.


How can I have the software center automatically create a shortcut on my desktop every time it installs an application?

Run the script below in the background and it will automatically create a starter on your desktop on (only) newly installed software.

It also:

checks if the new item actually is an application, meant to start from a launcher (checking for NoDisplay=true)
makes the launcher on your desktop executable, ready to use.

How to use

Copy the script below into an empty file (use e.g. gedit), save it somewhere as make_starter.py.
If you first want to test it: run it from a terminal window by the command:

python3 /path/to/make_starter.py

Install an application like you are used to. An icon should appear on your desktop after installation has finished
If all works fine, add it to your startup applications: Dash > Startup Applications > Add. Add the command:

python3 /path/to/make_starter.py

Note

Localized versions of Ubuntu may have a different name for "Desktop" ("Bureaublad" in Dutch). If so, replace in the line:

desktopname = "Desktop"

"Desktop" by the loacalized name.

The script

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

desktopname = "Desktop"
dr = "/usr/share/applications"

while True:
    current = os.listdir(dr)
    time.sleep(10)
    last = os.listdir(dr)
    for item in last:
        if not item in current and item.endswith(".desktop"):
            file = dr+"/"+item
            with open(file) as src:
                text = src.read()
            if not "NoDisplay=true" in text:
                target = os.environ["HOME"]+"/"+desktopname+"/"+item
                shutil.copyfile(file, target)
                command = "chmod +x "+target
                subprocess.Popen(["/bin/bash", "-c", command])


In the interest of knowledge sharing here is how to get wmic working on Ubuntu 16.04 LTS, the issue was the limit of the number of open files

ulimit -n 100000
cd /tmp
mkdir wmic
cd wmic

apt install autoconf gcc libdatetime-perl make build-essential g++ python-dev
wget http://www.opsview.com/sites/default/files/wmi-1.3.16.tar_.bz2
bunzip2 wmi-1.3.16.tar_.bz2
tar -xvf wmi-1.3.16.tar_
cd wmi-1.3.16/

vim Samba/source/pidl/pidl
:583 (to jump to line 583)
remove the word defined before @$pidl
:wq

export ZENHOME=/usr
make "CPP=gcc -E -ffreestanding"
cp Samba/source/bin/wmic /bin

Should now be working.


Yes, the packages are available for 12.04. Follow the instructions at http://developer.ubuntu.com/get-started/gomobile/ and you will get them all.


How do I fix connection problem in update sources of ubuntu 15.04 vivid?

You are getting that error because it's actually so. The URL is currently unavailable.

Here, is a screenshot that says so:

Also, as you can see the parent directory doesn't contain files for your ubuntu version. Screenshot:

It is recommended to wait for a few hours untill the package is reuploaded to the website and then update your system to get the updates.

EDIT: As A. B. said, the application was never released for your version of Ubuntu. So, please remove the ppa or repository.


It would be wise to ensure your data is backed up as you could have drive failure creeping up on you.

The fact it repeatedly happens under normal conditions suggests a hardware issue. Harddrives are known to fail.

If you are running the main edition of Ubuntu, it includes a great tool called Disks from Gnome (search from the launcher to access it).

You can select your drive on the left and then if you click on the gear icon at the top right hand side, you will get a menu and you can select "smart data and tests".
From there you can run smart tests ("start self-test..." button at the bottom left hand side), I suggest the extended option to initiate a thorough test of the drive.


How to renew self-signed CA certificate openldap

Ok we found the solution ourselves. For those who are interested this is what we did:

Apparently we forgot to set an expiration days value and it defaulted to 365 days. That is why it expired.

The openldap server only uses the paths of the CA certificate cacert.pem,
the private server key (hostname.slapd.pem) and the server certificate (signed with the cacert.pem).
This means we didn't have to change the openldap configuration.

We just needed to recreate / replace the CA certificate.
For convenience reasons we kept the private certificate authority key and the private server key.

We recreated the CA certificate using the existing private CA key and made sure the expiration days value was more than one year. We had used a template file before and just added the expiration days line.
We recreated the server certificate using the existing server private key and signed with the newly created CA certificate from step 1.
We restarted our slapd service

If you are using a replication slave openldap server, do not forget to sign a new slave server certificate with the new CA certificate and restart the slapd service. Replication should be working then.

All is fixed now.


Wow ... Loads of questions there ...  Firstly whenever working with partitions PLEASE NOTE you could LOSE all your data.  So you need to be extra careful.  However after taking that warning into account this is possible.

  Is there anyway to partition part of the windows hard drive for Ubuntu use?

You can use GParted in Ubuntu to resize your windows partition.  Although you do not necessarily need to resize the partition to use it.  You could just mount it from inside Ubuntu and have access to it whenever you need it.  That way any data you add to that drive is available in Windows as well.  this is a good idea if you use this drive for data (documents, pictures etc).

  could I combine free space on the other hard drive with one of those so it could still > be accessed in the same way but with more memory?

Adding extra drive space to a partition has no effect on memory.  Perhaps you meant can you add space to e.g. /home so it is bigger and then can hold more data.  If that is the case then you can do this with some file systems (zfs) however I hate fiddling with file systems like this and typically start from scratch and just start with the partitions being the correct size.

  Should I combine / and home since I am only running out of memory in / ?

Again I assume that you are referring to disk space and not memory.  I would not combine / and /home as this has an impact especially if you want to re-install later ... with a separate "/" partition you can simply install Ubuntu and format / but you can keep your data safe in the /home partition.  Although if you are experiencing space issues then you may want to look into resizing your partitions using something like GParted.

  Would any partitioning affect the boot of windows since the boot loader is on that drive also?

That depends on what changes you make to the boot partition.  If you just resize it it will still boot as before.  however there are flags that can be changed that will effect if that drive is recognized as a bootable drive or not.  I wouldn't change anything like that though.

It sounds to me as though your system has grown over time and could probably benefit from re-installing both OS's but this time do some planning before hand and work out what space you will need for which partition.


I can also confirm that Ubuntu 20.04.1 upgraded to Linux 5.8.0-34.
$ cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.1 LTS (Focal Fossa)"
...

$ inxi -r
Repos:     Active apt repos in: /etc/apt/sources.list
           1: deb http://hr.archive.ubuntu.com/ubuntu/ focal main restricted
           2: deb http://hr.archive.ubuntu.com/ubuntu/ focal-updates main restricted
           3: deb http://hr.archive.ubuntu.com/ubuntu/ focal universe
           4: deb http://hr.archive.ubuntu.com/ubuntu/ focal-updates universe
           5: deb http://hr.archive.ubuntu.com/ubuntu/ focal multiverse
           6: deb http://hr.archive.ubuntu.com/ubuntu/ focal-updates multiverse
           7: deb http://hr.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
           8: deb http://archive.canonical.com/ubuntu focal partner
           9: deb http://security.ubuntu.com/ubuntu focal-security main restricted universe multiverse

In /var/log/apt/term.log I can find the following:
Selecting previously unselected package linux-image-5.8.0-34-generic.
Preparing to unpack .../46-linux-image-5.8.0-34-generic_5.8.0-34.37~20.04.2_amd64.deb ...
Unpacking linux-image-5.8.0-34-generic (5.8.0-34.37~20.04.2) ...

apt-cache shows the following about the new kernel package:
$ apt-cache showpkg linux-image-5.8.0-34-generic
Package: linux-image-5.8.0-34-generic
Versions:
5.8.0-34.37~20.04.2 (/var/lib/apt/lists/hr.archive.ubuntu.com_ubuntu_dists_focal-updates_main_binary-amd64_Packages) (/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_focal-security_main_binary-amd64_Packages) (/var/lib/dpkg/status)
...

So, it seems the new kernel came from an official repository. See also:
https://packages.ubuntu.com/focal/linux-image-5.8.0-34-generic
https://packages.ubuntu.com/focal-updates/linux-image-5.8.0-34-generic
My problem is that the Ubuntu desktop environment (GNOME) fails to start after the Linux kernel upgrade. With Linux 5.4.0-59-generic it works fine.
As suggested by guiverc I removed support for HWE stack on Ubuntu 20.04. The following articles were useful in that regard:
Disable HWE and continue with GA kernal of 16.04?
https://wiki.ubuntu.com/Kernel/LTSEnablementStack
$ sudo apt install linux-generic
$ sudo apt remove linux-image-5.8.0-34-generic linux-headers-5.8.0-34-generic linux-modules-5.8.0-34-generic linux-modules-extra-5.8.0-34-generic linux-hwe-5.8-headers-5.8.0-34 linux-generic-hwe-20.04

After reboot the system is back on Linux 5.4.0-59-generic and "apt update" does not offer upgrade to Linux 5.8 any more.


How do you add lines to /etc/default/grub so they're reflected in /boot/grub/grub.cfg?

Do not edit the /boot/grub/grub.cfg file. Edit the /etc/grub.d/10_linux file:

Add your commands to the

  cat << EOF
    insmod gzio
EOF

section, so it should read:

  cat << EOF
    insmod gzio
    outb 0x728 1
    outb 0x710 2
    outb 0x740 2
    outb 0x750 0
EOF

This file is sourced every time update-grub is run, and it is rarely overwritten by updates. (Or at least it will ask when you update whether you want to update this file or keep your modified version.)


Nvidia driver 460 does not work with 5.4.0-64 kernel in Ubuntu 18.04

I could solve my problem doing this - removing all nvidia drivers, installing gcc-8 using this sequence of commands:
sudo apt-get autoremove --purge nvidia-*
sudo apt-get autoremove --purge nvidia-driver-*
sudo apt install gcc-8
sudo update-alternatives --remove-all gcc
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 10
sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc-8 10
sudo apt-get install --reinstall linux-headers-$(uname -r)
sudo apt-get install nvidia-driver-460
reboot