Tools and techniques for diagnosing heating problems

Nvidia Quadro is guilty. You must install proprietary drivers and after that read more on tuning your video card for lower power consumption. Without it it is just in gaming mode - eats battery, produces heat.
Does it have Nvidia Optimus technology? If yes, you have to tweak it too, otherwise you have 2 video cards working simultaneous.
Offtopic: Man, some cars are cheaper than your notebook.


Add the ppa and install as follows:

sudo add-apt-repository ppa:webupd8team/sublime-text-2
sudo apt-get update
sudo apt-get install sublime-text


Online backup: Backup a partition while editing some files in it

Online backup of whole partitions is a terrible idea

Backing up a partition can take a long time. Internet connection can break. If that happens when you are halfway through the online backup, you will be left with a huge file of garbage.

A partition to be backed up, should be unmounted. If you mount the partition and fiddle with it, you will most likely end up with a huge file of garbage.

Think about backing up your the files in your /home folder rather than backing up a whole partition.

Use a backup software. There is a default one installed in Ubuntu. Set it up to backup often. Backup software are designed to do incremental backup. If you edit some files then the next time it backs up, it will only backup those files, and not everything else. You can backup every ten minutes, or every minute, or every hour.

Backup to an external hard drive. Or another computer connected to your home network.

Incremental backup alone doesn't solve the problem since if you modify the file or files during the backup, the backup can still grab a half modified file or set of files. This is particularly true if you are in the business of video editing.

Of course, since it does take much less time than a full backup, it may be acceptable to make sure you aren't updating any files for the duration of the incremental backup.

For desktops: I recommend that you schedule full backup at late night or whenever you are likely to sleep. Keep your desktop on at night so that it can make backups without human interruptions.

For laptops: I recommend that you backup after you are done working for the day. You may also want to backup and charge your laptop at the same time.

For the ease of use I suggest the GUI Backup that comes pre-installed. If you want a command line solution, you don't have to look farther than rsync and cron (or anacron).

rsync is a very powerful command line tool you can use in a script with many options. One of those options backs up (copies) only files that have changed. You will need two scripts, one for full backup and one for incremental one. Both will use rsync with different options.

cron and anacron are powerful tools to automate the backup script, so that it gets executed at fixed interval.

Ubuntu's official documentation on the topic of backup is pretty good.

Hope this helps


For installation on EFI boot systems (most new systems), vmulinuz has to be signed by a private key. It was an issue that the open source community discussed with hardware vendors. If it says it is signed then this means that it was signed with some private key so that it could be installed in EFI mode on an EFI system.


Using `sudo apt-get clean` & `autoremove` killed my laptop!

apt-get clean just removes the package cache. There's no way* it could hurt anything.

apt-get autoremove removes packages that were automatically installed but now their dependent package has either been removed or no longer depends on them. If you remove a package that depends on things (eg ubuntu-desktop) and then do an autoremove, you're going to end up removing a lot of packages.

This is often done by removing something that a big metapackage depends on. If you look at apt-cache depends ubuntu-desktop you'll see a number of Depends: ... packages. If any of these are removed, Apt has to also remove the ubuntu-desktop package. That's dependency resolution in action. If you then run an autoremove, it'll clean up all those other depends (assuming nothing else depends on them).

Occasionally you might end up in a situation where you want to install something but it conflicts with something ubuntu-desktop depends on. Apt may try to force this through by removing the conflict package (and therefore also ubuntu-desktop). It will warn you about this.

The simple fix is to find out which meta-package you're missing, and reinstall it. This is usually ubuntu-desktop. And in the future READ what apt-get tells you. I don't mean that in a nasty way. I wish I did more often. Upgrading to 14.04 I tanked my whole system back to a very basic command line and had to redownload and install over a gig of packages.

* Life, uh… finds a way™


Movie player Totem shuts down without any error message

As mentioned in this group post ( http://groups.google.com/group/linux.gentoo.user/browse_thread/thread/74fe3091604481c9)

this error happens when you use a different window manager than gnome.

But according to this post this error should not cause totem to crash.

Try using vlc or mplayer. Maybe your movie file is corrupted


You can access folders with elevated privileges using sudo from a terminal.

Open a terminal
type sudo cp '/media/peace/Macintosh HD/Users/Christine/' ~/Christine/
Now all the contents of the folder are copied to the ~/Christine/ folder.

If you still cannot access the copied files, you could use sudo chown -R peace:ubunt ~/Christine/* to change file ownership


Why does KDE's Konsole not have top-level menu-accelerator keys? Is it a bug? Is there a workaround?

A terminal is often used by child programs such as Vi/Vim and Emacs, etc...
These programs run directly in the terminal, and have their own sets of shortcut-keys... These app-specific shortcut-keys sometimes utilize the same Alt+F, Alt-E, Alt+V, etc keys as are used by a conventional GUI app's menu bar accelerator-keys (eg. Kate, gedit, etc).
Also the terminal's native line-editing keybindings use Alt+F (word forward), Alt+B (word back), Alt+T (swap words), etc ... which also conflict with the typical first-level menu shortcut-keys of a conventional GUI app.
To prevent the loss of functionality to these apps (including konsole itself), the developers have simply disabled the first-level of menu-accelerators.
Although this first-level of menu accelerator keys has fallen by the wayside, virtually all sub-level items of Konsole's menu structure have their own accelerator key (by default)...  Also, it is very easy to add/modify any menu item's accelerator-key via a right-click option..
This means that all menu-items (or as many as I wish to assign)  are accessible via the keyboard...
This effectively gives full and complete keyboard access to all menu items... Allbeit in a slightly different way... (but that's because the Terminal is different).
Click for a related link


How to properly mount a partition from one ubuntu machine (client) to another (server)?

If you're only going to be mounting the drive from another Linux machine and don't require Windows support I would discourage you from using smbfs (aka samba, aka CIFS).  I've never setup a samba share on Linux without ripping at least half of my hair out.

I would recommend just using NFS- it's simpler, easier to setup, and faster:
https://www.digitalocean.com/community/tutorials/how-to-set-up-an-nfs-mount-on-ubuntu-14-04


All Network in ubuntu 14 have been removed and can't connect to internet

Please download these packages on some other computer: http://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-image-3.13.0-70-generic_3.13.0-70.113_amd64.deb

http://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-headers-3.13.0-70-generic_3.13.0-70.113_amd64.deb

http://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-headers-3.13.0-70_3.13.0-70.113_all.deb

http://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-image-extra-3.13.0-70-generic_3.13.0-70.113_amd64.deb

Transfer them on a USB key or similar to the desktop of the Ubuntu computer. Now, in a terminal:

sudo dpkg -i ~/Desktop/linux*.deb

Reboot.

Post back any errors or missing dependencies. Once we have networking, we will have additional steps.


How to keep buttons layout when maximize windows on Natty?

According to Maximizing a Window moves minimize,maximize and close button to the left, you can't.


Qt for Ubuntu SDK: Do I need a device or is there a simulator?

See this answer. There is no emulator yet, but it should be available soon.

Just in case it's not clear: You can actually run the apps on your pc as well so for the first tests you wouldn't need a simulator or push the app onto the real device. Of course there might be differences with hardware, display, resolution, etc. But for the start it should be sufficient.


Different size folders using terminal commands (ubuntu) and folder properties

du -hsc * estimates the sizes of all the files in the current directory and renders the total of all of them, but excludes the hidden folders in the estimation.

du -sch estimates the sizes of all the files in the current directory and renders the total of all of them, and also includes the hidden folders in the estimation.


sudo systemctl disable openvpn --now # on modern distros with systemd

Will remove OpenVPN service from startup and stop it

But if you cannot find the init script that is starting the openvpn process you can simply  remove or rename these .conf files under /etc/openvpn/ since they generate the VPN interface and routes.


PgAdmin 3 @ Ubuntu 14.10: low responsiveness when typing

I can't add a comment to your question and my previous answer was deleted.

I just filled a bug (and copied some of your question) about this:
low responsiveness when typing

  by Robert TheSim

  Maybe it is a wxWidgets / iBus bug. I fixed it disabling IBus. Go to
  Language Support and change 'Keyboard input system' from 'IBus' to
  'None'. Not only I don't experience missing keystrokes anymore, I feel
  pgAdmin is more responsive globally.

  then logoff your unity/ubuntu session and logon again.

  source: low responsiveness when typing - comment #5


this does it :

cat /tmp/aa | tac | rev

where tac reverses file line by line keeping chars intact ... then rev finishes it off by simply reversing chars of each given line leaving line by line intact .. so for example :

cat /tmp/aa

Is there a way to read characters backwards from the end of a file in the terminal?

For instance, less allows you to read line by line, starting from the beginning. Is there a similar utility or line that could be run in the terminal that could display a file backward character by character?

cat /tmp/aa | tac | rev

retcarahc yb retcarahc drawkcab elif a yalpsid dluoc taht lanimret eht ni nur eb dluoc taht enil ro ytilitu ralimis a ereht sI .gninnigeb eht morf gnitrats ,enil yb enil daer ot uoy swolla ssel ,ecnatsni roF

lanimret eht ni elif a fo dne eht morf sdrawkcab sretcarahc daer ot yaw a ereht sI


How do I get drivers (especially WLAN/bluetooth) working on HP Envy dv6?

I later discovered this bug report. Following the suggestions there, I enabled the network card in the BIOS then was able to toggle the hardware switch while the hp_wmi module was disabled. This allowed me to connect to my wireless router, but attempting to use the connection causes a kernel panic as with the bug reported linked here.

Pending the resolution of that bug, I'm using the suggested workaround. Specifically:

mkdir linux-mainline && cd linux-mainline
curl -O http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.6.11-raring/linux-headers-3.6.11-030611-generic_3.6.11-030611.201212171335_amd64.deb \
     -O http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.6.11-raring/linux-headers-3.6.11-030611_3.6.11-030611.201212171335_all.deb \
     -O http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.6.11-raring/linux-image-3.6.11-030611-generic_3.6.11-030611.201212171335_amd64.deb \
     -O http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.6.11-raring/linux-image-extra-3.6.11-030611-generic_3.6.11-030611.201212171335_amd64.deb
sudo dpkg -i *.deb
git clone git://git.kernel.org/pub/scm/linux/kernel/git/dwmw2/linux-firmware.git
sudo cp linux-firmware/rt3290.bin /lib/firmware
echo rt2800pci | sudo tee -a /etc/modules
sudo reboot


In general you won't want to restore 32-bit binary files to your new 64-bit Ubuntu. Only data, that is documents, music, photos and so on. And source code and scripts, if you have any you have developed your self.

Applications should be reinstalled in 64-bit versions, if they are not included directly in Ubuntu. And any source-files compiled on the new system.

In general you will only want to restore your home-directory, and special "project" directories, if you have any.


Connection Error when fetching update from Software Updater

It looks like that you have selected the CD-ROM in software sources. doing so will check your CD-ROM for sources.  To uncheck CD-ROM option click on Software Sources, under System Settings, and go to the Other Software Tab, and Uncheck cdrom, as shown below:


I don't think what you are asking is possible on the system options level.
What is possible though is to replace /usr/sbin/shutdown and /usr/sbin/reboot with two root privileged scripts or small C programs.

These are easy to make. I can help, if you want.

Hope I've helped.


Separate options to suspend when on battery power or plugged in

You can set this using dconf-editor.

Install it:

sudo apt-get install dconf-editor

Go to org > gnome > settings-daemon > plugins > power

You will be able to choose separate actions for lid-close-ac-action and lid-close-battery-action


Malware opens up some youtube video in ubuntu

How to find and clean such malware in ubuntu ?

It could be crapware and not malware (ie. you somewhere agreed on it being started). The 2 generic places to check on this if it only happens in 1 browser:

Check extensions;
Check settings, the values set at "on startup";

If it is cross browser check with ps -ef | grep $USER | more if you can spot processes you do not expect or hint at being malware. If so you got a security problem and someone was able to get to execute a file on your system.


How do I remove Chromium including its settings?

To remove the package, run this command in a terminal:

sudo apt-get purge chromium-browser

Then to remove all the data created by chromium (cache, personal configuration, etc...), run:

rm -fr ~/.cache/chromium
rm -fr ~/.config/chromium


How do I fix Dell Lat. D630 Laptop clock gains 5 hours coming out of Ubuntu Mate 16.04 LTS back to Win 7 Pro?

This is because Windows expects the hardware clock to be localtime, and Ubuntu expects it to be UTC.

It's normally better to configure windows to also use UTC.

Check here

On Windows, create a file named utc.reg with the following content:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]
"RealTimeIsUniversal"=dword:00000001

Double-click it and reboot.


MPlayer-vaapi shows artifacts while playing H264 stream

I also see MPlayer artifacts streaming 720p to a Surface Pro 3 with Ubuntu 14.04 installed, but without using vaapi, instead using -lavdopts threads=4 (x86 multithreaded H.264 decode). The artifact is not a "green frame", but looks like it occurs with similar rate and frame position as described.

I was able to get improved results by turning off Network Manager, as noted here:

How can I completely remove NetworkManager?

I first noticed this because every 30 sec, or sometimes every 1 minute or 2 minutes, the entire Surface user interface would lock up for a few sec... the interval varied, yet it was not random either. That led me to investigate WiFi scanning... which led to Network Manager.

(My apologies if this answer shows twice.  I first posted it two (2) weeks ago and it still has not appeared.  I hope it's not due to the effect of NetworkManager on RTP video streaming.  I realize there is some debate among Ubuntu developers regarding whether disabling of NetworkManager should be a do-able thing or not, but please don't blame me, I'm just a messenger).


Open terminal and run this command:

sudo blkid

It will give you the UUID no's of partitions of your hard drive from them note the swap partition UUID no.

Now go to fstab file as root in that file go to line under '# swap was on /dev/sda6 during installation' replace the UUID number under swap with the one you got from blkid command

Remove the '#' symbol before the UUID it means that line will not run so remove it.

Also remove the below line completely /dev/mapper/cryptswap1 none swap sw 0 0

Now reboot.

I hope that helps.


Show the launcher when the mouse enters a "trigger" area

The script below activates the (auto-hidden) launcher when the mouse pointer enters a certain area (activation area in the image).

Since it would not be convenient to have to draw an exactly straight line towards the targeted launcher icon, after the launcher is activated, I created an area of 200px from the left side of the (right) screen, in which you can freely move around without hiding the launcher again (the move area).

How to use

The script uses xdotool to get the mouse position:

sudo apt-get install xdotool

Copy the script into an empty file, save it as trigger_launcher.py
In the head section of the script, I set the values as they should be appropriate to your screen combination and top-alligned. If you however would use the script with other screen (sizes) or you would like to alter the (trigger-) marges, you can change it in the head of the script:

# the script assumes the two screens are top-alligned (!)

#-- set the area to trigger the launcher (from left bottom of second screen) below:
vert_marge = 50
hor_marge = 200
#-- set the width of the left screen below:
width_screen1 = 1680
#-- set the height of the right screen below:
height_screen2 = 900
#---

Test-drive the script with the command:

python3 /path/to/trigger_launcher.py

If all works fine, add it to your Startup Applications: Dash > Startup Applications > Add. Add the command:

/bin/bash -c "sleep 15&&python3 /path/to/trigger_launcher.py"

The script

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

# the script assumes the two screens are top-alligned (!)

#-- set the area to trigger the launcher (from left bottom of second screen) below:
vert_marge = 50
hor_marge = 200
#-- set the with of the left screen below:
width_screen1 = 1680
#-- set the height of the right screen below:
height_screen2 = 900
#--

vert_line = height_screen2-vert_marge
hor_line2 = width_screen1+hor_marge
k = [" org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ ",
    "gsettings set ", "launcher-hide-mode 1", "launcher-hide-mode 0"]

hide = k[1]+k[0]+k[2]; show = k[1]+k[0]+k[3]

def set_launcher(command):
    subprocess.Popen(["/bin/bash", "-c", command])

def get_mousepos():
    curr = subprocess.check_output(["xdotool", "getmouselocation"]).decode("utf-8")
    return [int(it.split(":")[1]) for it in curr.split()[:2]]

current1 = get_mousepos()
while True:
    time.sleep(0.3)
    current2 = get_mousepos()
    if not current1 == current2:
        test1 = [int(current1[1]) > vert_line, width_screen1 < int(current1[0]) < hor_line2]
        test2 = [int(current2[1]) > vert_line, width_screen1 < int(current2[0]) < hor_line2]
        test3 = any([int(current2[0]) > hor_line2, int(current2[0]) < width_screen1])
        if (all(test1), all(test2)) == (False, True):
            set_launcher(show)
        elif test3 == True:
            set_launcher(hide)
    current1 = current2

Edit

Below a version with a time break of 3 seconds, instead of a "move area", as you mentioned in a comment.

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

# the script assumes the two screens are top-alligned (!)

#-- set the area to trigger the launcher (from left bottom of second screen) below:
vert_marge = 50
hor_marge = 200
#-- set the with of the left screen below:
width_screen1 = 1680
#-- set the height of the right screen below:
height_screen2 = 900
#--

vert_line = height_screen2-vert_marge
hor_line2 = width_screen1+hor_marge
k = [" org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ ",
    "gsettings set ", "launcher-hide-mode 1", "launcher-hide-mode 0"]

hide = k[1]+k[0]+k[2]; show = k[1]+k[0]+k[3]

def set_launcher(command):
    subprocess.Popen(["/bin/bash", "-c", command])

def get_mousepos():
    curr = subprocess.check_output(["xdotool", "getmouselocation"]).decode("utf-8")
    return [int(it.split(":")[1]) for it in curr.split()[:2]]

current1 = get_mousepos()
while True:
    time.sleep(0.3)
    current2 = get_mousepos()
    if not current1 == current2:
        test1 = [int(current1[1]) > vert_line, width_screen1 < int(current1[0]) < hor_line2]
        test2 = [int(current2[1]) > vert_line, width_screen1 < int(current2[0]) < hor_line2]
        if (all(test1), all(test2)) == (False, True):
            set_launcher(show)
            time.sleep(3)
            set_launcher(hide)
    current1 = current2


Once you login to Ubuntu Linux you should open the terminal(Ctrl+Alt+T) and then issue the following commands

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

to install boot-repair and fix this issue.


What is the 'official' server to client methode?

Short answer:

There is no one default method.

Long answer:

Different services provided by the server for the client (for example, LDAP authentication) are individual bits of software, with their own protocols and communication requirements and setups.  There's no one 'method' for it.  And you have to configure each and every bit for use in your setup and network requirements.

It's not as simple as 'install microsoft server, connect windows 7 to the domain'.  It's a decision of what exactly you want to do with the setup, whether it's shared network storage, or the server having a set of users for authentication on the clients, or an email server for an internal office email system, etc.

(There is no way to answer this question in its current form because of the scope of the question, either, this is the best answer you'll get.)


Ubuntu 16.04 live dvd gets stuck at the dots

Thanks, ive tried that but no go. Here is the latest thing ive tried....

In bios i disabled launch csm, wanted to do everything with pure uefi. Put in win10 dvd which is booted and install is done successfully on one half of my ssd. Made a ubuntu usb in rufus with the option gpt for uefi. Usb is then recognized and booted successfully, but after selecting install ubuntu same zhing happens again. Loading dots freeze after a while.

I am at the moment installing linux mint using the same usb boot method and it works.

Could it be that this laptops relatively new i7 6700 skylake is causing troubles?


System BootOrder not found. Initialising Defaults every boot then goes to Ubuntu

BIOS
HP Probook 640 G1
You have BIOS version 1.47.
A newer BIOS is available, version 1.50, and can be downloaded here.
Note: Some HP computers allow you to update the BIOS directly from your current BIOS.
Note: Verify that I have the correct web page for your model #.
Note: Have good backup before updating the BIOS.
efibootmgr
Regarding the boot problem... let's change the boot timeout from 0 seconds to 1 second.

  -t | --timeout seconds
          Boot Manager timeout, in seconds.

         • Timeout  -  the  time in seconds between when the boot manager
            appears on the screen until when it automatically chooses  the
            startup value from BootNext or BootOrder.

In terminal type:
sudo efibootmgr -t 1

reboot

Update #1:
For reference purposes, here's my efibootmgr output... I do have Windows installed...
~$ efibootmgr
BootCurrent: 0005
Timeout: 1 seconds
BootOrder: 0000,0004,0007,0008
Boot0000* ubuntu
Boot0001* UEFI: IP4 Realtek PCIe GBE Family Controller
Boot0002* UEFI: IP6 Realtek PCIe GBE Family Controller
Boot0003* UEFI: MKNSSDRE1TB
Boot0004* UEFI:CD/DVD Drive
Boot0005* Windows Boot Manager
Boot0006* UEFI: TOSHIBA
Boot0007* UEFI:USB Device
Boot0008* UEFI:Network Device

You can try turning off TPM and see if that changes anything.

I'm told, but can't confirm, as I don't have a HP, that HP specifically needs to see Windows Boot Manager... even if you don't use Windows. You can either try to reinstall Windows and see if the initializing message is gone, or you could use efibootmgr to create a Windows Boot Manager entry, but assure that your BootOrder is correct, with ubuntu as the first/only selection. See man efibootmgr for more info.

Interesting enough, in my efibootmgr output, BootCurrent: 0005 shows Windows Boot Manager, but I'm booted to Ubuntu right now.

Update #2:
First, let me give a disclaimer here... using efibootmgr can be a little tricky, and can cause your system not to boot if used improperly. Having said that, I'd first recommend you review/print man efibootmgr. Here are the hopefully correct/safe commands to add "Windows Boot Manager".
Next, I'd check your current BIOS, as it may have the utility to view/add/modify the UEFI boot table directly. If so, that might be the safest way to do this.
Here are the efibootmgr commands you may need...
efibootmgr # display the current settings
sudo efibootmgr --create --label "Windows Boot Manager" # create a new entry
sudo efibootmgr --bootorder xxxx,yyyy,zzzz # hex values
Update #3:
Removed the Windows Boot Manager key that was already there from the windows install for Bios update. Next I created a new key the pointed to shmix64.efi I named that key Windows Boot Manager.


How can I open and close an SSH tunnel along with Firefox?

What about creating a bash script that uses arrays to store the PID and then trap and kill them:

#!/bin/bash -e

ssh -L 2001:localhost:8888 -N myserver.com -p 443 &
PID[0]=$!
firefox -p "SSHProxy" &
PID[1]=$!
trap "kill ${PID[*]}" INT SIGINT
wait

If you need to use a password look here for sshpass: https://stackoverflow.com/questions/16937104/provide-password-to-ssh-command-inside-bash-script-without-the-usage-of-public

EDIT:

Run the script in terminal. Browse. When done browsing, go back to terminal and press Ctr-C (INT/SIGINT) the processes should be cleaned up. It seemed to work for me.


First of all look for permission-related errors with: strace monodevelop.

If you found it, change the permissions to that files/directories to match your user. It also helps if you delete every monodevelop-related directories from userspace.


Cant access ephemeral storage on Amazon ubuntu instance

If you are running a t1.micro instance type, there is no ephemeral storage provided to the EC2 instance.


Changing themes to 'Adwaita-dark' does not change the AppMenu color?

You need to install User Theme Extension:
https://extensions.gnome.org/extension/19/user-themes/

Instruction here.

Now, Shell Style is changeable. Use Gnome Tweak -> Appearance -> Shell


Intel Centrino Centrino Advanced-N 6235 weak wireless reception

Many Intel wireless devices are troubled by 802.11N implementation in some routers. I suggest you experimentally disable N capability. This is easily reversed if it turns out to be ineffective:

sudo -i
echo "options iwlwifi 11n_disable=1"  >>  /etc/modprobe.d/iwlwifi.conf
exit

Reboot and tell us your result.


Do a proper dual boot or use a virtual machine if your hardware is powerful enough.


Graphical mode only in rescue mode after upgrade to 15.04 Kubuntu

I've got an nvidia card too and I've been working with Kubuntu 15.04 since Beta2. During the first weeks I had to use the nouveau drivers because it was impossible to use my nvidia optimus and change to nvidia mode without the blank screen. After trying a lot of things and ask for this issue in the Kubuntu's google+ community, finally I have it working. The steps I did:

-In Drivers configuration I selected the nouveau driver to leave the nvidia propietary driver unused.
-Reboot
-In Accounts configuration I marked autologin in my user
-In SDDM advanced configuration I markedt autologin and select my user
-These two steps are to avoid the SDDM login screen that causes the issue with the nvidia propietary driver.
-sudo apt-get remove nvidia* (to erase all the files of my nvidia-340 version)
-sudo apt-get install nvidia-346 nvidia-prime nvidia-settings
-Reboot
-After that, my laptop started up and go into the desktop without stop in the SDDM login screen. I searched for the nvidia-settings app in the K-menu and I confirmed that my nvidia was working in nvidia mode. I tested it with glxgears and I got 1700FPS when it was 50FPS in intel mode ou with the nouveau driver.

Hope it helps yo


upgrading glibc to a version at least 2.17 or higher in ubuntu 12.04 LTS?

For such an update you will need to update your Ubuntu completely as every package linking to libc will need to be recompiled. And these are a lot.


For anyone who's with the same problem, just install locally with the npm the package it says is missing with the command sudo npm install [package-asked].

On my case, I had to run sudo npm install es2015 and the consequent asked packages until it with was solved.

Have a good night. :)


How to find all files with the same extension within a directory in parallel

find-ception:

find . -maxdepth 1 -mindepth 1 -type d -print0 | xargs -0 -L1 -P0 -i find {} -type f -name '*.pptx'
find . -maxdepth 1 -type f -name '*.pptx'

-maxdepth 1 -mindepth 1 restricts the search to the immediate contents of the directory. We look up all the subdirectories (-type d).
Then we use xargs to run find on all the subdirectories. -0 in combination with -print0 takes care of any special characters that may occur in filenames.
-P0 tells xargs to run as many finds as possible in parallel. You can restrict it to run at most N processes using -PN.
Lastly, since we have run find on all subdirectories, we finally run a find on the current directory as well (and only on the current directory - hence -maxdepth 1).

Word of caution: find is likely to be IO-intensive. There's only so much benefit you can get from running multiple instances in parallel.
Also, the output of the many finds may get jumbled together, thus reducing the usefulness of this approach.


System freezing at visual artifacts screen

Can you narrow it down to some possible problems? A little bit more information might be useful. If not i recommend you to use 'dmesg' command to find out if any of your hardware gives a warning or an error. Also you might want to explore inside of the /var/log/ for additional logging files.


Where to mount HDD partitions? Who is the owner?

Yes additional drive usually goes under /media and the owner is usually  the same user that will need to use it (and it's often the user that mounted the drive).
For example if you are logged as user123 and plug a USB stick, nautilus will mount your drive under /media/user123/<usb-stick-name>/ and you will be the owner of that folder.
However you're free to change that if you really need to. For example if one of your drive is only usefull to one of your system service/appliation you can make that service the only owner of the mounted drive. Or if you have a drive that you want to share between all users you can make it owned by a group of users.


How can I use remmina to connect to a Windows Server?

It's a blind shot, as I don't know the exact configuration of your work server, but a common problem:

In the advanced tab, on security type, choose RDP:

In the user field, put the domain/user pair.


Can a conky script display a simple PNG image?

Conky does have an image object:
http://conky.sourceforge.net/variables.html

You would use it similar to:
${image /some/path/to/image.png -p 250,0 -s 80x80}

It is likely your mileage may vary with this one.

---- Responding to comment ----
I recommend getting rid of Conky Manager. You can launch conky in the background with a simple script. Beauty here is you can test the script by removing the & until you have it all working. Here's an example:

#!/bin/bash
sleep 10s
killall conky
cd "/home/username/.conky/someFolder"
conky -c "/home/username/.conky/someFolder/.conkyrc" &

... such that .conkyrc is your conky file.
HTH


I solve this, to very manual and annoying way.

if anyone knows better, please answer.

I made a system account user, that has home folder, by useradd -r, e-transmission

and then, I change acl of all of transmission related directory.

/var/lib/transmission-daemon
/etc/transmission-daemon
/home/e-transmission/.config/transmission-daemon

and files

/usr/bin/transmission-daemon
/lib/systemd/system/transmission-daemon.service

to setfacl -R -m, as same as /NAS/torrent, downloads, tempdown


Is there a way to make Banshee show current song playing in Empathy?

Among its many other awesome features, the Telepathy extension for Banshee (banshee-extension-telepathy) will let you do this.  To make it work:

Install 'Telepathy extension for Banshee' from the Ubuntu Software Center
In Banshee, go to Edit > Preferences > Extension (tab), and check the box next to "Telepathy" in the "Community Extensions" section.
A new section called "Contacts" should be added to the left side of Banshee.  Right click on it and select "Share Currently Playing"


open dash and type Lazarus and drag it to launcher


Software installation problem: cannot adding path to /usr/local/bin

There are several options.

You can either add the folder with the binary to the PATH environment variable or add a symbolic link to the binary file into one of the directories which appear in PATH (/usr/local/bin) for example.


I had the same problem when using a Broadcom Wireless card in 12.04. I connected the laptop to the internet via a wired connection and let Ubuntu install all the newest updates (see the update button in the launch bar).

After rebooting with all the updates installed, the wireless card suddenly worked!


How do you install TeamSpeak on Ubuntu that is on a Chromebook using a chroot?

Go to https://www.teamspeak.com/en/downloads/ and download the 64bit Linux client to your PC.
Open a terminal and go to the directory you downloaded the file to.
Change it to be executable using chmod a+x TeamSpeak3-Client-linux_amd64-3.5.6.run (be sure to use the actual filename you downloaded).
Execute the installer using sh ./TeamSpeak3-Client-linux_amd64-3.5.6.run. Follow the on-screen instructions.


How do I make Gnome the default desktop?

To make Ubuntu 11.10 auto log-in gnome-shell, open up a terminal window and run this command:

sudo /usr/lib/lightdm/lightdm-set-defaults -s gnome-shell

If you want to change back to Unity, run:

sudo /usr/lib/lightdm/lightdm-set-defaults -s ubuntu


Merging partitions, and preserving the data

Presuming you actually have free space on /opt, and it's a filesystem that supports at least offline shrinking, the safest bet would be:

Since your home directory is on /opt, you can't be logged in to it — or you won't be able to unmount /opt. One way around this is to enable root login via ssh, using public keys. I don't have an Ubuntu box in front of me to be 100% sure of the steps, but it should just be editing /etc/ssh/sshd_config to change PermitRootLogin to prohibit-password (or without-password, for older versions of OpenSSH). Then put your public key in /root/.ssh/authorized_keys. An alternative (suggested by @bistoco) is to create a new user, with a home directory on the root filesystem, e.g.,: sudo mkdir /tmphome && sudo adduser --home /tmphome tmpuser && sudo adduser tmpuser sudo
Make sure you can log in as root or the new user now. Do this from another terminal, do not log out your other session until you've logged in as root, either directly or via sudo from the new user (essential for recovery if, e.g., you accidentally broke sshd)
Log in a second root session, just in case. You use this if you somehow break your first one.
Finally log out your user session, and any others you have.
Unmount /opt. If umount /opt gives an in use error, use fuser -vm /opt (or whatever) to see what is accessing it. You might also need to stop some services, or find another session to log out. (If you can't get /opt to unmount, go to step 10 to abort the process).
Shrinking a volume often requires an fsck, and its a good idea anyway. You'll probably need to add -f to force fsck on a clean device. E.g., fsck -f /dev/mapper/VGNAME-home. This may take a while. (If fsck fails, stop. Check for typos. If it's really failing, something is wrong.)
Reduce the volume: lvreduce -Ay -r -L 100G VGNAME/home. The -r tells it to reduce the filesystem first. The 100G is the new size; pick whatever you'd like (of course can't be smaller than the amount of data on /opt). This make take a long while, depending on how much data is on the volume. If this fails due to not supported, this isn't going to work. Proceed to 9 to abort. (If it fails complaining you asked it to shrink to much, pick a larger size and repeat the command).
Enlarge the rootfs: lvextend -Ay -r -L 200G VGNAME/root. Again the 200G is the size, and can be whatever you need (up to all available space). The -r tells it to resize the filesystem as well (after enlarging the LV); typically this can be done on-line. If it can't... well, your system will still be accessible, but really you need to find a way to use a live CD.
Regardless of if that worked, mount /opt.
Make sure you can log in as your user again. Do not log out your root sessions until you've confirmed you can. If you're using SSH connection multiplexing, use ssh -o ControlPath=none user@host to make sure a cached connection is not fooling you.
Start any services that you had to stop to unmount /opt. At least if you want them running.
Change the ssh setting back to not allowing root login, if that's the option you pick and is the way it was before. Make sure you can log in a new session before logging out. Always do this when changing sshd config. Or, if you created a new user, remove it with e.g., deluser --remove-home tmpuser

PS: You do not need to grow / to occupy all the available space. You can always extend it again if you need to — it's often better to leave some space in a PV unallocated.


SSL Virtualhosts not working upon reboot, unless Apache2 Manually restarted

It sounds like that the IP addresses of the virtual hosts are not yet assigned when Apache starts. I suggest you to have a look at /var/log/apache2/error.log for any errors and adjust the boot order of Apache and the assignment of addresses.


Is there a GUI version of nmap available?

Zenmap
You can use zenmap, it is in the repository
sudo apt-get install zenmap

Here is its website I think it is the official GUI as the site is nmap.org.

Umit
If you don't like that one try umit, it is in the repository as well
sudo apt-get install umit

This one did not have its own website, here is its source forge page

nmapsi4
Finally there is nmapsi4 too, this seems the best looking one, if you are in to that
sudo apt-get install nmapsi4

Again no website, but here is its launchpad page

Others
There are at least two more available, including a python one and a web interface but this is getting a bit long, to find them yourself, run this command
apt search nmap


DVBT Radio channels have no sound on vlc

today,i upgrade the linux kernel to 4.2.0.19
and
vlc plays radio without any problem


Broken Python ImportError: No module named _sysconfigdata_nd

Neverind to fix just type on terminal: ln -fs /usr/lib/python2.7/plat-x86_64-linux-gnu/_sysconfigdata.py /usr/lib/python2.7/


How to Get the Option to Choose a Startup Sound in 18.04?

Learn how to make/edit .desktop files and put inside for instance aplay that.wav
move that file to ~/.config/autostart

For logoff it is not so easy.

If you or somebody prefer KDE, here is easier: How do I change startup sound in KDE Plasma?


Virtuozzo is based in OpenVZ (you can check https://wiki.openvz.org/FAQ). They use an old kernel (2.6 based) without cgroups functionality needed for Docker/LXC/LXD. So your attempt will not work. Virtuozzo is already using a container technology (OpenVZ) but was not merged with the mainline kernel code.


A MCE (Machine Check Error) is a type of computer hardware error that occurs when a computer's central processing unit detects a hardware problem.  This usually indicates you might have a hardware issue.  Usually when I've encountered an MCE I have a bad stick of memory but I can't be certain this is your problem.

Please run a memory test.


Failed to download repository information ubuntu 15.04

This is the list of the recent ubuntu versions:
Ubuntu 15.04 (Vivid Vervet)
Ubuntu 14.10 (Utopic Unicorn)
Ubuntu 14.04.3 LTS (Trusty Tahr)

Please read the "Technical details about this PPA" here.

If you merge several repositories for several different Ubuntu version, then you really can ask to yourself: why I don't had a lot of problems before?


During boot, 18.04.1 no longer automounts external USB drive at /media/usb0

I am answering this myself, just to have the best solution available clearly shown with the question.

It seems that my work-around of discovering the UUID values for the USB devices I want mounted at boot and manually adding them to /etc/fstab is the best solution to this issue.

As for why the discovery and mounting of external USB drives is different with some hardware and not with others (all running Ubuntu 18.04.1 x64) seems to be unknown.


I'm unsure if this output means there is an error or if it is saying if you see this on the lines it's an error

Generally installing the package (and then rebooting) should be all that you need to do.  There is no "control panel" or similar needed.

The following command may show some driver info to confirm the driver is working, though it's not clear to me how the output may differ between amdgpu and amdgpu-pro.  There might also be some info in /var/log/Xorg.0.log.  Unfortunately I couldn't find any firm info on confirming it is working but most likely it is.

glxinfo|grep OpenGL


Video Demo

EDIT: July 11, 2014 @ 6:00PM PST

This has been updated to reflect changes in 14.10 AMD64. (14.04 LTS works fine but 14.10 works awesome out of the box.)

Removed boot repair process. ( This seems to be fine in this release. If you have issues you may want to make sure Grub2 is installed and to run the boot-repair process.)
Added bootloader section, again. (Note: Someone fixed the bootloader issue that was causing customized loaders not to work for GRUB2.)

First

Create a partitioned drive.

Press search button on your keyboard type 'boot'.
Select 'settings >> Create and format disk partitions'

Select C drive, right click and select 'shrink volume'.
This is your choice but I use appox. 29.3 Gigs(30,000 MB): Shrink respectively.

Second

Follow the instructions on Geek.com.

DO NOT CONNECT TO INTERNET FOR INSTALL!
Stop at prompt to delete disk or partition.
Return and follow instructions.

note: I suggest using your SD drive as there seems to be USB compatibility issues in some cases.  Also you can simply mount the ISO in Windows and copy the contents to the storage drive, SD or flash.

Third

Prepare partitioned space for install.

Change the selection from 'Delete and Install' to 'Something Else' at the bottom.

It will ask if you want to unmount your installation device. Select 'No'.
Now select the free space and press the '+' button under the partitions.
Select from the drop list 'swap' and select the 'logical' radio button and 'insert at beginning' and finish. Select anywhere from 400 to 600 MB to be safe at least.

Now select the free space and press the 'change' button - again.
Select from the drop list 'Ext4' and select the 'primary' radio button, 'insert at beginning', 'format' button checked and '/' as root and finish.  Use the remaining space you have reserved.

Finish install process on the Ext4 partition you created.

Now you can restart.

Fourth

The Intel cpu needs a fan sensor update.  I suggest doing this with lm-sensors.

sudo apt-get install lm-sensors
sudo sensors-detect

Select 'YES' to everything and follow the end instruct
It will ask you to run some sudo commands after it is done.

Fifth

Not required but if you have made it this far you want a awesome beautiful device. That ugly boot loader didn't do it for me so I created a boot loader just for the surface.

Go Download from my github.
Follow README instructions to setup.


Signing package with dpkg-buildpackage fails but succeeds with debsign

I was having this same issue until now.

dpkg-buildpackage seems to expect you to pass an email address along with the -k flag rather than the key ID.

dpkg-buildpackage -kmyemail@mydomain.com

After this i had no errors.


Trouble getting ElectronPlayer to work on Lubuntu

Relative to what ships with 19.04, you need to upgrade to snapd 2.39.2+19.04 for Electron Player to show up in the "Other" category of the menu. Additionally, this upgrade will need to be in place in order for a functional version of Electron Player (2.0.7 rev 9) to be installed correctly.

Oddly, upgrading snapd in Discover does not seem to provide the fix, so to upgrade snapd:

Open System Tools → Qterminal
Enter sudo apt update && sudo apt -y install snapd and press Enter
When asked for your password, enter it and press Enter

While you're there you can easily install Electron Player from the terminal:

Enter sudo snap install electronplayer and press Enter
Enter your password if asked and press Enter
When completed, run it by entering electronplayer and pressing Enter

Since you already have Electron Player installed, you could upgrade snapd as above, but you would still face problems if you try to run Electron Player:

(electronplayer:2917): Gtk-WARNING **: 00:15:17.454: cannot open display: :0

To ensure that everything is working correctly, remove then install Electron Player: sudo snap remove electronplayer && sudo snap install electronplayer.


`terminator` terminal won't play bell sound

It turns out you just have to enable the setting! (It comes disabled by default).
Right-click on the terminator screen --> Preferences --> click the "Profiles" tab at the top --> ensure the "General" sub-tab is chosen --> check the box for "Audible beep" under the "Terminal bell" section in the bottom-right:

That's it! Works perfectly now--same as in gnome-terminal, even over ssh:
echo -e "\a"

Related:

Beep in shell script not working?


What worked for me was sudo service network-manager start.


nvidia-libopencl1-331 has to be removed before installing WINE

The problem here is two packages are installing the same binary file '/usr/lib/*/libOpenCL.so' without declaring a breaks/replaces or conflicts relationship between them, and so apt-get does not know to remove the other.
This either needs to be fixed in nvidia-cuda-toolkit or ocl-icd.

ocl-icd is shipping this file in ocl-icd-libopencl1 instead of ocl-icd-opencl-dev, which is against Debian policy, see https://bugs.debian.org/679228

nvidia-cuda-toolkit lists 'nvidia-opencl-dev (= 5.5.22-3ubuntu2~ppa1) | opencl-dev' among its dependencies, so as a workaround, we can help apt-get by installing ocl-icd-opencl-dev to provide opencl-dev, but we need to do it in the correct order:

sudo apt-get install nvidia-cuda-toolkit #Need to get 250 MB of archives; 774 MB of additional disk space will be used
sudo apt-get install ocl-icd-opencl-dev #this will remove nvidia-libopencl1-* and nvidia-opencl-dev
sudo apt-get install wine #Need to get 121 MB; 342 MB of additional disk space will be used.

https://bugs.launchpad.net/ubuntu/+source/ocl-icd/+bug/1247736/comments/7

https://www.kubuntuforums.net/showthread.php?65230-WINE-after-Internet-Upgrade-Path&p=349746


problems after updating ubuntu14. 04 to 16.01

dos like environment is tty session.
Try these commands

sudo apt-get install ubuntu-gnome-desktop gnome-shell gnome
sudo apt-get install lightdm
sudo dpkg-reconfigure lightdm

and

sudo systemctl start lightdm

or

sudo systemctl restart lightdm


Stuck on login screen, everything plugged in is unresponsive

Try magic key reboot:

Hold Alt+SYSRQ , and while holding, press one by one (with interval in 3 seconds or so ), R - E - I - S - U - B

If this doesn't work, try booting from live usb, go into try ubuntu , open  terminal CtrlAltT, and do lsblk. Find which partition holds your ubuntu installation ( you should recognize it by size of the partition ), mount it with mount /dev/sda* /mnt , where * is the number of your partition. For instance, mine is /dev/sda5. Navigate to /mnt//etc/ and check the file sysctl.conf whether it has line kernel.sysrq=1, which enables the magic key (source: askubuntu).

Attempt live cd rescue for failed update/upgrade:

All while on live cd/usb:

  sudo mount /dev/sda1 /mnt
  sudo mount --bind /dev /mnt/dev
  sudo mount --bind /proc /mnt/proc
  sudo mount --bind /sys /mnt/sys
  sudo chroot /mnt
  apt-get update
  apt-get upgrade

In addition I would run update-grub, but that's not required.
If that doesn't help, repeat steps 1 - 6, and run sudo apt-get install --reinstall ubuntu-desktop gdm . You will be prompted to select gdm as default desktop manager, so do select gdm. Reboot.
Source: help.ubuntu.com

Backup important data and reinstall the system

Make sure your keyboard and wireless card don't require proprietary drivers. After you have installed new system and rebooted, go into System Settings -> Software -> Additional Drivers, and make sure you have necessary drivers selected.


Technically it is possible since B85 supports Intel FDI (Flexible Display Interface), but you may have to resort to using the nouveau drivers.


How can I add a new user as sudoer using the command line?

Just add the user to the sudo group:

sudo adduser <username> sudo

The change will take effect the next time the user logs in.

This works because /etc/sudoers is pre-configured to grant permissions to all members of this group (You should not have to make any changes to this):

# Allow members of group sudo to execute any command
%sudo   ALL=(ALL:ALL) ALL

As long as you have access to a user that is in the same groups as your "original" user, you can delete the old one.

Realistically, there are also other groups your new user should be a member of. If you set the Account type of a user to Administrator in Users Settings, it will be placed in at least all of these groups:

adm sudo lpadmin sambashare

Because your system configuration may vary, I suggest taking a look at the output of groups <username> to see what groups are normally in use.


How to automount hdd without causing freeze when missing?

There is an option to skip fstab. Install autofs and configure your external disks to be mounted when you need them.

http://www.autofs.org


You have the full list of Ubuntu Touch devices, compatibility and links here. There are a couple good oneplus links.


No root filesystem is defined while installing Ubuntu 18.04

The problem is probably caused by the UEFI settings in your BIOS that gives Win 10 full control. You need to modify the EFI settings and disable Secure Boot feature. It should give you access to the drive.


I Had the problem where the mouse stopped just before the prompt appear for ubuntu login.

In my company we encountered the problem on three similar Dell desktop machine, so we suspected a driver problem.
After some search we managed to solve the problem temporarily by removing/installing graphic driver, but after some time the problem came back.

In the end my colleague changed distribution, and I bypassed the problem by using an old version of the kernel: 3.13.0-46-generic. (you can select it in the bootloader using advanced ubuntu choice)

Since the problem came after an update, I think it's more a linux problem but didn't find any explaination in this area. I just hope they fix it in next version...


How can I send large files between two Ubuntu devices that both are connected to a silly hotel Wi-Fi network that does not permit SSH?

You could create a torrent. Taken from this answer.

  Transmission can create a torrent:

sudo apt-get install transmission-cli

transmission-create --help
Usage: transmission-create [options] <file|directory>

Options:

 -h --help              Display this help page and exit
 -p --private           Only use this torrent with the specified tracker(s)
 -o --outfile <file>    Save the generated .torrent to this filename
 -c --comment <comment> Add a comment
 -t --tracker <url>     Add a tracker's announce URL
 -V --version           Show version number and exit


Xorg.0.log.old is just a log file (text file) with an .old suffix (which means that it is an old log).

You should be able to open it with any text editor (as long as the file is not too big). The default Ubuntu text editor gedit can open it.

In terminal you can use ... for example ...

cat /var/log/Xorg.0.log.old


The 5 key is fired on ubuntu 14.xx, 15.xx, 16.xx

You seem to have wireless Logitech keyboard, right? There was a Linux kernel bug (not just Ubuntu distribution). It is already fixed with kernel version 4.4.0-30.49.

So you can just update your system with Software Updater for example.

You can find more information here https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579190


pdsh: how to run a commands that require root/sudo privileges

You should be able to use the -S flag to pipe your password to sudo like this:

pdsh -w me@node[0-3] echo "password" | sudo -S apt update

where password is your actual password.

Also, you can prevent your password from showing up in your ~/.bash_history by placing the following line in your ~/.bashrc file:

export HISTIGNORE='*sudo -S*'

and don't forget to source your ~/.bashrc file to apply the changes:

source ~/.bashrc

You may need to do this on all machines.


upgrade to 16.04 from 14.04.5 on travelmate

Backup (if you have not already).
16.04 fresh install.
run your configure script (or if you don't know how to make one then follow written instructions from a text file)

Each of those things has many stack exchange answers. The reason you should take these steps is that systems accumulate issues over time and it's generally less work to just start fresh than fix them, and secondly if you ever have a hard drive fail or otherwise lose a system having a backup of your data and s script for your applications and customizations will save you a lot of stress.

As an alternative there is a recover system option in the live OS.


How can I select a wallpaper that is not is the Pictures Folder?

There are many ways to do so:

a) In Appearence Settings choose an image via the "+" button:

b) Open an image you like by doubleclick, rightclick and choose "Set as Desktop Background":

c) Shotwell (photo manager) features this, too: Select an image and choose File → Set as Desktop Background or just press Ctrl+B:

d) With the extension nautilus-wallpaper you was able to set an image as background out of the file manager. But this doesn't work since Ubuntu 11.10.

As a workaround you can install nautilus-actions. Start it and add a new entry via File → New action or by pressing Ctrl+N. Name it "Set as Wallpaper":

In the "Command" tab do following settings:

Label: Set as Wallpaper
Path: gsettings
Parameters: set org.gnome.desktop.background picture-uri %u

In the Mimetypes tab edit the entry and change "*/*" to "image/*" (press ↵ to apply before switching the tab):

In the Environment tab (press the arrow at the top right side to reach it) under Appears if selection contains change Count: > (strictly greater than) to = (equal to) and change the value to "1":

Safe your edits by File → Save or Ctrl+S. Then open Preferences by Edit → Preferences. Uncheck "Create a root 'Nautilus-Actions' menu":

Close Nautilus Actions and restart Nautilus (file manager) by pressing Alt+F2 and running killall nautilus or logging out and in again.

From now on you can set your preferred images as desktop background directly out of the file manager via rightclick:


Gnome 3 showed panels on reboot. NOT intended! Anyone seen this before?

That is highly unlikely. It's more likely that you went into the fallback mode, which does provide two panels, but they don't look entirely like the ones in 11.04. It can do that because of issues with your VGA.


Unable to install Mongo due to held broken packages

I had the same problem and the problem was that libcurl3 wasn't installed.
this should work.

sudo apt install libcurl3


How can I gather the output of a while loop in a single pipe?


How to run a cron job as a specific user?

You could create a crontab for the specific user like so:

crontab -u <username> -e

Or more simply, you could just run crontab -e when logged in as that user.

Alternatively, you could prefix your command in your (root) crontab with sudo -u <username> to run the command as the specified user.


Some times there is possibility for Linux file system to get corrupted when connecting to  mac. Try recovering it using below command

fsck -a /dev/sda1

fsck -y /dev/sda1

(OR)

sudo dosfsck -w -r -l -a -v -t /dev/sda1

Note: Also please connect the drive to Mac and check whether it showing right space in mac if above not working


You can still use the gnome-activity-journal app in 13.04. It's in the archives. All you have to do is install and run it.


As sudo will require you to enter your password, it probably isn't "working" because you're not running it in a terminal.

To run from the GUI instead, you should use gksudo rather than plain sudo. This will present a graphical dialog for you to enter your password with, to authenticate running as root.

Also note, that it probably won't work as you expect. You'll want the --no-desktop option passed to nautilus, otherwise you'll see the root user's background rather than yours.


Access other folder then /var/www/html in Apache2 over http

Symlink way

If you want you can simply make an symlink to it, like i did on my Raspberry Pi, but I'm not sure if it's safe when your website is public. It works in home network.

Let's say you want to access /home/j (because "j" is my username) from your /var/www. To do that you'll need command ln -s /home/j jhome. Make sure you are in /var/www while running this command.

Now you should be able to access it simply using cd jhome. You can test it by putting html file inside /home/j and linking to it by for example your index.html.

You can do same thing with other directories and names.

More professional, Apache configuration way

Also, I've found some Apache documentation here and Stack Overflow topic, I think it's more professional way to do same thing and I believe it's right way to do it.

It turns out that you need to add Alias /alias_directory /path_on_your_machine line to your Apache config file (which for me is /etc/apache2/apache2.conf). (it also works for me) I recommend backuping file before editing it.

Here are exact commands I used:

cp /etc/apache2/apache2.conf{,.bak} - make backup
echo "Alias /jhome /home/j" >> /etc/apache2/apache2.conf - append line, you can also do that with nano or other text editor.
service apache2 restart - restart Apache, it won't work without it

Remember to run commands as root, because You'll get permission errors without it.

I hope I helped you in some way. :)


The gnome-power-manager tool listens for suspend button events, and spawns pm-suspend. Extensive detail about how pm-suspend operates can be found in the man pm-suspend command output. The quick version:

/etc/pm/config.d is scanned for files that define environment variables.
Each of the scripts in /etc/pm/sleep.d and /usr/lib/pm-utils/sleep.d are called in order with the "suspend" argument.
The system is put to sleep via the defined interface module. By default, this is the kernel suspend interface: echo -n "mem" >/sys/power/state. See /usr/lib/pm-utils/pm-functions where do_suspend is defined.
The system wakes up.
Each of the scripts in /etc/pm/sleep.d and /usr/lib/pm-utils/sleep.d are called in reverse order with the "resume" argument.

If you need to add a script to the stack, I would suggest adding it to /etc/pm/sleep.d and name it something that does not conflict with other scripts, and make sure it processes the "suspend"/"resume" argument.

For debugging, see /var/log/pm-suspend.log as well as the man page which has more information on how to do testing.


How to disable mouse wheel scroll in ubuntu 11.04 or 10.10?

Ive found out how to configure that. Open terminal window:

xinput list

find there yours mouse id number

  ↳ A4Tech PS/2+USB Mouse                       id=8    [slave  pointer  (2)]

ive got ID=8

next:

xinput list 8

You ll see there

  Button labels: Button Left Button Middle Button Right Button Wheel Up Button Wheel Down Button Horiz Wheel Left Button Horiz Wheel Right Button Side Button Extra Button Forward Button Back Button Task Button Unknown Button Unknown Button Unknown Button Unknown

they are counted by numbers 1,2,3,4,5,6,7 ...

now do that:

xinput get-button-map 8

you will got something like that

  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

numbers 4 and 5 are for "mouse wheel up scroll" and "mouse wheel down scroll"

now we will disable them with zero number:

xinput set-button-map 8 1 2 3 0 0

thats all.


WSL2 Remote Desktop Can't connect to the remote computer for one of these reasons

In WSL2, the instance is running in a Hyper-V VM with a virtual NIC that is NAT'd behind the Windows host. However, the Windows host itself should have direct access to services running in the instance through localhost. WSL appears to do some automatic port-forwarding, but only from the local Windows host to the WSL instance.  This will not work from other machines on the network (even other virtual machines on the same Windows host).  But at least you are just using localhost for now.
That said, this auto-magic localhost port-forwarding sometimes stops working, even (and sometimes especially) across reboots.  This is most often due to hibernation or Windows Fast Startup (also a form of hibernation).  See this answer on Stack Overflow for some more information.
Given that you had it working initially, and then it stopped after a reboot, I'd be hopeful that this is what you are seeing.
So to start with, try exiting out of any WSL instances, then run:
wsl --shutdown

And then start the instance and try RDP again.
If that works, check to see if Fast Startup is enabled, and disable it if so.  And avoid hibernation.  Or wsl --shutdown after hibernating or powering down/up, at least.
If it doesn't work, then we need to look more closely at the actual xrdp service to  see what's going on.


How to write "sudo" commands and save it as terminal file?

You can create a .sh file using any text editor.  Write the commands that you want to run each on it own line, and you can add -y to the end of the line for those that needs it, save the file with the extension .sh, and then you can run it from terminal.  See example below.

sudo -u ls /home/user/files

List the contents of the /home/user/files directory.

sudo apt install chromium-browser -y

Installs Chromium browser


sound played by headphones contain much noise, where the sound of printscreen screen capture works perfect

I eventually used this troubleshooting page for sound, which gives a nice flowchart to rule things out.

For me the speaker test speaker-test -c2 -t wav was successful, so I thought it had to do the with the output (ALSA, Pulseaudio, oss, Jack), which I could change while playing a song on repeat using qmmp (sudo apt-get install qmmp), but the real solution for playing was that the plug of my headphones was TOO DEEP in the jack for Firefox, YouTube, Mplayer where the speaker test was working fine no matter how deep the headphones were plugged in.


The problem was Banshee's MTP support, throwing/blocking the phone.

I've made a new thread here for this separate issue:

Banshee throws the mtp connection to my phone


You need the fingerprint-gui package, its installation is described at Fingerprint GUI launchpad page and reproduced below:

Add PP and install fingerprint-gui and other required packages

sudo add-apt-repository ppa:fingerprint/fingerprint-gui
sudo apt update
sudo apt install libbsapi policykit-1-fingerprint-gui fingerprint-gui

Log out of your session and log back in.
Launch “Fingerprint GUI” and enrol your fingerprints.

Please note: I've used fingerprint readers on various laptops before, they are not very reliable so make sure you don't configure it to be the only source of authentication. It's best to add it on top of passwords as well or you may get locked out at some point.


How Do I Access Windows Shares From BASH?

First you need to have samba and cifs-utils installed:

sudo apt-get install samba cifs-utils

Then use a Bash script to mount windows share folder in linux using samba:

$ mkdir /mnt/smb

$ touch smb.sh

chmod +x smb.sh

$ vi smb.sh

Write the following into the smb.sh file using vi:

#/bin/bash

SERVER_IP="192.168.1.1"

SHARE_NAME="c$"

USERNAME="samba user name"

PASSWD="samba password"

DOMAIN="domain"

mount.cifs //$SERVER_IP/$SHARE_NAME /mnt/smb/ -o username=$USERNAME,password=$PASSWD,dom=$DOMAIN

Finally run the script to mount your Windows share and cd into the share:

./smb.sh

$ cd /mnt/smb/

Another method that seems to me to be more straight forward and easier: It involves creating the mount point, editing fstab, and then mounting all filesystems in fstab with one command.

Make the folder:
    sudo mkdir /mnt/myDirectory

Edit the fstab:
    sudo vi /etc/fstab

Append the following to the fstab file:

//server/Share /mnt/myDirectory cifs domain=myDomain,username=myUserName,password=myPassword 0 0

Be sure to fill in all the appropriate information in place of those placeholders. And save the fstab file with wq for "write and quit."

Finally mount all the file systems listed in fstab:

sudo mount -a

Now you can verify that the share is available with:

ls /mnt/myDirectory

And you should see the files in the top level directory of the Windows Share.


Installing Windows on your computer automatically installs Microsoft;s bootloader, which is incompatible with Ubuntu. What you need to do is to create a Boot Repair USB and boot from it, which will reinstall Ubuntu's bootloader. Detailed instructions for doing this can be found here.


The Juju Charm Store has a charm for the haproxy load balancer already; you should be able todo something like:

juju deploy haproxy
juju add-relation haproxy mediawiki

You should then be able to access mediawiki through the haproxy IP address - it will automatically balance load across both of the servers you have supporting the mediawiki charm.

HTH


Partitioning 2 Hard drives to run Linux only

Your idea seems good, but I manage partitions in a different way.
I find partitions somewhat too rigid, and I always try to create a minimal amount of them.

Another thing to consider is that SSD are really faster than HDD, to the point I consider that I can't work anymore with a HDD based computer.

My recommendation

Do the whole setup on the SSD, with one partition for EFI and one for /.
Mount the HDD in /mnt/hdd
Use your computer for some time, and when some directory grow too big, move it to the hdd.

It's possible to use symbolic links (ln -s) to link data to somewhere else, but I use bind mounts.

Example

Example: My music is in /home/pim/music which is on the SSD, but I want to move those files to the HDD.

Reboot to single user mode
Create a directory on the HDD : mkdir -p /mnt/hdd/bind/home/pim
Make sure the user pim can access and write to /mnt/bind/home/pim
move the data : mv /home/pim/music /mnt/bind/home/pim
create the future mount point mkdir -p /home/pim/music, once more permissions should match the user.
And now the real trick : bind mount the directory, by adding this line to /etc/fstab : /mnt/hdd/bind/home/pim/music /home/pim/music none bind
try to mount it with mount -a
reboot and enjoy.

Downsides

locate will index the files twice, this can be fixed by adding /mnt/hdd/bind to PRUNEPATH in /etc/updatedb.conf
While doing backup, care must be taken to not  copy those data twice. cp and rsync both have -x flag for not crossing filesystem boundaries.

About /home on another partition (or bind mount)
You are talking about a laptop, but for a remote server, I always take
care of having a user with a home directory on the / partition, so I can
login even if the drive containing /home fails.


OK, I finally found how to solve this.
In the login screen I did Ctrl+Alt+F1 and then I created a new user. Login with that new user and went to /usr/share/themes and deleted the themes I had just installed. Then I could login again with my original user.

Hope this helps to someone.


How to install Windows 10 on Ubuntu 18.04 operating system?

We usually do the inverse, installed Ten and then Ubuntu with Grub. On Ryzen 2700U, Ubuntu 19.04 takes 2.5 minutes to install and Ten, less then 6 minutes.


Backup all home folders on usb disk and accessibility

The problem that you are having isn't related to the file system you are putting on the disk, it's related to how you are mounting it. If you want all users to be able to use the disk I suggest you mount the entire disk at system boot in by editing /etc/fstab or partition the disk with separate backup partitions for each user and mount those partitions by editing /etc/fstab. Permissions to read and write to the mount points you use can be handled by adjusting permissions at the mount point. If don't want everyone to have access to all the data, the separate partition per user, each with it's own mount point seems simplest. For more information on system wide mounting, please see this.

If something is unclear and you need further assistance, drop me a comment and I'll do my best to clarify the answer.


What can I do to make my Epson Workforce 2760 scanner function in Ubuntu 18.04?

Accordingly to the SANE project "supported devices" list, your scanner isn't supported.


How to install Zentyal on remote Ubuntu Server?

Just download the ISO, and boot from it in your virtual container. You can get the latest ISO here:
http://www.zentyal.org/server/


Difference between -generic and -i386 kernel images

As far as I know, -generic is just a metapackage that pulls in the latest kernel for your architecture (presumably 64bit).
That bug report is very old and I don't think it should have any effect.


Because of persistent interface naming which started in Ubuntu 16.04, I suspect that your interface name is not wlan0. Confirm:

iwconfig

You may find that it is something like wlp3s0 or similar. If so, amend the interfaces file to read:

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto wlp3s0
iface wlp3s0 inet static
   address 192.168.x.xx
   netmask 255.255.255.0
   gateway 192.168.x.xx
   dns-nameservers 192.168.x.xx 8.8.8.8
   wpa-ssid foo
   wpa-psk boo

Check in the administration pages of your router or access point to find the range of addresses used for DHCP; select an address for your static server outside that range so that there is no collision.

Either reboot or retstart the interface:

sudo ifdown wlp3s0 && sudo ifup -v wlp3s0

Did you connect?

ping -c3 8.8.8.8
ping -c3 www.ubuntu.com


Dual Boot Installation Stalls at update-grub

For anyone reaching this page while searching their own issues, I went with the nuclear option: I removed all partitions, formatted both drives and installed only Linux system-wide. Now I am trying to add Windows as a dual-boot using this guide.


You can simply add the add-apt-repository command.  In 13.10 and later, you also need to run this command:

sudo apt-get install software-properties-common

Side note: in 11.04 they added a symlink to add-apt-repository so it can be run as apt-add-repository which totally makes more sense to me.  Everything else apt starts with "apt".

NOTE: It's part of the python-software-properties package (before 13.10):

sudo apt-get install python-software-properties


The commands after terminator will not execute until terminator exits, so you will have to send it to the background:

terminator &

This will allow the script to continue with the other steps immediately after starting terminator (which may be too soon), so try:

...
terminator &
sleep 3
xdotool type 'myalias'
...


Hybernate doesn't work with Lubuntu 14.04.03 LTS

With reference to : lxsession/+bug, this seems to be a bug.

There is a similar question in Ask Ubuntu here.

Test if hibernate works.

Open a terminal and run:

sudo pm-hibernate

If the hibernate test works, you can continue to use the sudo pm-hibernate command when you want tohibernate.

You can also enable the hibernation option in the menu.

Create the file :

/etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla

Add the following lines:

[Re-enable hibernate by default]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate
ResultActive=yes

Save and exit.


How to set up a domain network for 3 computers

Sounds like you would need an authentication service that works for both Linux and Windows and then a way to share files across either Windows or Linux with your home directory mounted automatically (potentially on login) and a roaming profile shared out for the windows machine.

File sharing is the easy part.  Samba and NFS.  NFS to share files to the Linux machine and Samba to share files to the windows machine.  Though you could use Samba for both, I guess.

As a starting point, you could check out Open LDAP for authentication.

I'm not sure about configuring the windows machine to authenticate against LDAP, perhaps you have to use samba for that, too... otherwise you may have to install additional software in windows to enable it to authenticate against LDAP (such as pGina).

There are various guides with varying levels of user-friendliness.

I hope this is a starting point, at least.  I've not had to do this sort of set up in a very long time, so I'm afraid I wont be of much help other than what little info I've provided here.


In Ubuntu 13.10 ndiswrapper-common package was available at the Universe repository.So try to enable Universe Repository in Software and Updates.

After enabling the universe repository,update it and install ndiswrapper-common package by running the below commands,

sudo apt-get update
sudo apt-get install ndiswrapper-common


Hit Ctrl+Q on your keyboard to close VLC, otherwise its process will keep running.
Or click Media -> Quit (or something like that).


How can I make my ubuntu WiFi on startup default off?

You should be able to go to the WIFI selection (icon looks like a fan - usually in the top right screen corner next to "En" for character map and keyboard layout, etc.), then EDIT CONNECTIONS and deselect "Automatically connect to this network when it is available" under the "General" tab for EVERY network connection shown.  Then disconnect from the network you are currently connected to and it should not reconnect automatically.  Whenever you reboot the PC it should not connect to a network automatically either.


Getting Started with Ubuntu  (The Ubuntu Manual)

Bash - Guide for beginners (On the command line used in Linux, PDF)

Linux - Inside the boot process (IBM manual in HTML and PDF)

Linux - Network Administration guide

And if you're a masochist, don't forget the ultimate manual for Linux:
Linux - Advanced Administration (Kernel, local/network/server admin, ... 545 pages of knowledge! :-))


How do I save an SSH key passphrase for an unattended process?

You can use ssh-agent to do this. It allows you to store a passphrase in memory, rather than on disk. There is a good explanation of doing this for batch jobs here: http://www.akadia.com/services/ssh_agent.html.

Essentially, you:

Run ssh-agent in the background as the user that will be initiating the SSH connection.
Use the ssh-add command to add the key to the agent. It will prompt for the passphrase.

You can automate the running of ssh-agent by adding it to a script run at startup, but you still need to manually prime the agent with the key in order to enter the passphrase. So if you reboot, for example, you'll have to remember to do this.

The point to consider is what you are trying to achieve by having a passphrase on the key being used, given that this is an automated system.

If you use a key with a passphrase and store it in a configuration file then anyone who gains access to the key is likely to have access to the configuration file too, since they would both need to be accessible by the same user.
If you use ssh-agent to store the passphrase then it still needs to run on the same machine as the key. It would be harder to get the passphrase out of memory than from a file, but you've just made their work harder rather than impossible impossible. However, if they gain the key without getting access to the machine (eg, from a backup), then this option is more secure.
If you do not set a passphrase at all, someone who gets the key has no further work to do to be able to use it.

In all three of these scenarios, you would be wise to plan for the worse and take steps to minimise the damage that could be done by someone who gains access to a usable key. For example, you could:

Use a specific user account that only has access to the data being retrieved.
Use a key that is only used for this purpose.
Restrict what host the key owner can SSH from.
Restrict what commands can be run using the key - see this.

On balance, only you can weigh up the pros and cons of these approaches, and whether a manual process is acceptable in your situation.


I believe since your realm is users then your AuthName directive should be "users"

Instead of AuthNmae "Private" try, AuthName "users"
restart apache with;

sudo service apache2 reload


How do I mount a Truecrypt volume with special options?

Those filesystem options are available for FAT because FAT does not support file permissions. Ext2/ext3/ext4 filesystems on the other hand do support file permissions. After mounting the container on /media/true:

Change ownership and group membership (corresponds to uid=115,gid=123):

sudo chown -R 115:123 /media/true

fmask=0113 removes the executable bit from all files and write bit from the others. This is the default, so you should not need to change it. Anyway, the command to do so is:

sudo find /media/true -type f -exec chmod a-x,o-w {} \;

dmask=0002 is supposed to remove the write bit from directories for the world. This bit is usually not set. To remove it in case it is set:

sudo find /media/true -type d -exec chmod o-w {} \;


Okay so the issue was that vino-server doesn't run on startup in LXDE.

Running the line /usr/lib/vino/vino-server runs vino-server and fixes the issue the thing!

So we need LXDE to run this line on startup. I thought I need to create a desktop entry to run this line but there was one already. I fixed it by commenting out two lines (and removing --sm-disable from the command. I'm not sure if it matters).

...so all you have to do is to edit the file vino-server.desktop!

Just run gksu gedit '/etc/xdg/autostart/vino-server.desktop' and make the file look like this (you can just copy and paste):

[Desktop Entry]
Name=Desktop Sharing
Comment=GNOME Desktop Sharing Server
Keywords=vnc;share;remote;
NoDisplay=true
Exec=/usr/lib/vino/vino-server
Icon=preferences-desktop-remote-desktop
#OnlyShowIn=GNOME;Unity;
Terminal=false
Type=Application
#AutostartCondition=GSettings org.gnome.Vino enabled
X-GNOME-Autostart-Phase=Applications
X-GNOME-AutoRestart=true
X-GNOME-UsesNotifications=true
X-Ubuntu-Gettext-Domain=vino

(notice the lines Exec=/usr/lib/vino/vino-server, #OnlyShowIn=GNOME;Unity; and #AutostartCondition=GSettings org.gnome.Vino enabled)


Where are Qt Charts and Qt Data Visualization located in Ubuntu repository

Qt can sometimes be difficult.

Here is what I do when trying to identify packages in Ubuntu :

Search the repos - https://packages.ubuntu.com/

not in the repos

Search for a ppa - https://www.google.com/search?q=ppa+qt+charts

Yields - https://gist.github.com/martyngigg/1e20eff3f6397dd118220317a3adf358

Instructions on that page, not sure if it will or will not work for you.

Qt data may be more difficult and may not be open source.

http://doc.qt.io/archives/qt-5.7/qtdatavisualization-getting-started.html

On ubuntu see Where is the Qt Maintenance Tool?


How to list installed packages with security patches?

if you install apt-show-versions:

sudo apt-get install apt-show-versions

and then run:

apt-show-versions -a  | grep "security\."

The output will list all packages installed from security.ubuntu.com


What is the best way to trigger scripts or actions when the computer is disconnected from the network?

When a network interface is brought up or down, scripts under /etc/network are executed. You can put your script in /etc/networking/if-down.d or in /etc/networking/if-post-down.d. The former runs with the interface still available while the latter runs with the interface already disconnected; of course, the interface may have been brought down automatically because the local network failed, in which case you won't be able to use the network even from if-down. The script gets information about the network interface through environment variables as documented in the interfaces(5) manual page. Be sure to react only to a loss of the interface(s) that matter.

If the network connection drops due to a failure somewhere outside the local link, or even because the first router stops working properly, your machine won't be notified. To detect such loss of service, you need to run some kind of heartbeat service that periodically checks that the remote server is still alive and responding. There isn't a one-size-fits-all solution here because different use cases call for different thresholds between “the network/server is slow” and “the network/server is down”. Also, determining whether the server is alive is application-specific; it can be a ping, or an HTTP request, or a keepalive packet on a TCP connection, etc.


Ok, following advice from Trouble downloading updates due to a "Hash sum mismatch" error, I cleared out APT's lists and re-synced it. Everything fine now.

Just remove the content of /var/lib/apt/lists directory:

sudo rm -fR /var/lib/apt/lists/*

then run:

sudo apt-get update


VPN as a client here

Setting up an OpenVPN server here

VPN setup in Ubuntu – General introduction here

How to set up an SSH VPN. here

How to set up a VPN server on Ubuntu here


btrfs for deduplication and compression at the same time?

If you are writing about the deduplication with the bedup utility, then the answer is: deduplication and compression are completely independent processes.

During the deduplication, no file contents are rewritten (only metadata), so there is no opportunity to compress the data.

And I am 99% sure, that compression status is transparent to the bedup since it is next to impossible to get the original, compressed contents of the file out of the btrfs.

On the other hand, recompression of old data happens when you defragment the drive (e.g. with btrfs filesystem defragment -r -v -clzo /). This will currently break the de-duplication of files.


copying files from one user to another in a single machine

Assuming that you have sudo privileges  the following command will do.

sudo cp /home/USER1/FNAME /home/USER2/FNAME && sudo chown USER2:USER2 /home/USER2/FNAME

Will copy the file from USER1 to USER2, and then change the owner of the copy in /home/USER2 to USER2

If you do not have sudo privileges, then the two users will need to ensure that you have read permissions on the USER1 directory, and write access on the USER2 directory.  If you have these accesses, you can enter the command:

cp /home/USER1/FNAME /home/USER2/FNAME

This will copy the file in question, but USER2 may not be able to manipulate the file until they have appropriate permissions.


Menu options for applications are all inactive

I got the same problem.
I temporary fixed it by some applications to add:

Exec=env UBUNTU_MENUPROXY=1

to the start up file.


W: The repository 'cdrom://Ubuntu 16.04.3 LTS _Xenial Xerus_ - Release amd64 (20170801) xenial Release' does not have a Release file

First, those are warnings and not errors so you could ignore them if you chose.

You are getting them as I presume the CD is  not in the drive.

If they bother you, remove the CD from your sources.

See How do remove the CD / DVD install as a source for apt-get packages when installing new features?


List all files that do not have extensions

shopt -s extglob ## enables extended globbing
ls !(*.*) ## matches every file except those containing a dot

You will find that doing this will show you the contents of every directory in the working directory. If you don't want this, use:

ls -d !(*.*)

You can put shopt -s extglob in your ~/.bashrc to have it activated whenever you open a terminal. There is already a line in the default Ubuntu ~/.bashrc (line 29 for me on 13.04) that you can uncomment to enable this (and globstar).

See Greg's wiki for more information on the shell's various globbing options. Note that this is a property of the bash shell rather than the ls command, so you can use it with other commands.

Alternatively, you can use

ls --ignore='*.*'

or

ls -I '*.*'

...which is an internal ls option, but extglob can be applied to any arbitrary command & so is more useful in my opinion.


cannot export radio stations as a playlist

The export playlist plugin only deals with Tracks (Songs) - it is used to save to a file all Tracks in a manually created Playlist that you have created.

The plugin does not export radio-stations.

We do have another question here on AU about how to export radiostations. The output from the script described in this answer will need to be modified slightly to create a .m3u format playlist if that is what you are after.


Squid Proxy - The requested URL could not be retrieved

It seems you are trying to configure a transparent proxy, so I guess you just miss the transparent argument to your http_proxy settings. Modify the line with the following syntax:

http_port 3128 transparent

Restart the service and try again.


How to force a higher screen resolution from Ubuntu 12.04 and an NVidia GTX460?

I finally found a solution - an Edid for my Shimian QH270-Lite here thanks to someone who had the same problem with another Korean 2560x1440 monitor, the Yamakasi Catleap.

I installed the new Edid following instructions posted at ubuntuforums.org, thread 1857772 - sorry I can't post more than two links:

Create an NVidia xconf file with the new edid:

$ sudo nvidia-xconfig --custom-edid=/etc/X11/Shimian_edid.bin

Check your Xorg log for Display Device Name - probably DFP-0, or DFP-1:

cat /var/log/Xorg.0.log | grep connected

which should bring up something like:

  (--) NVIDIA(0):   *Your_monitor's_name* (DFP-0) (connected)
  in which case your Display Device Name is DFP-0

Check and if necessary correct xconf:
    sudo gedit /etc/X11/xorg.conf

Look for a line like:

    Option   "CustomEDID" "/etc/X11/Shimian_edid.bin"

and edit it to read:

    Option   "CustomEDID" "DFP-0:/etc/X11/Shimian_edid.bin"

Reboot and at last the monitor works at 2560x1440 as intended.

If that hadn't worked, Plan B was to build a custom configuration following NVidia's Xconfig options (in the README file for the 310.19 Linux driver from NVidia's downloads), in particular the "CustomEDID" option.

Thanks to the contributors to the links above and hopefully this will help someone else with the same problem.


Two different workspaces for two monitors

Easy. All you have to do is to run Displays in the MATE menu. Then choose expand desktop.
Then, according to this link, all you have to do is:

Right-click the panel you wish to move and select “Properties”.
Uncheck the “Expand” option under the “General” tab.
Grab one of the edges of the panel by clicking on the left or right end (top or bottom end for vertical panels)
Drag the bar to the desired screen and position
Check the “Expand” option in the “Panel Properties” window and click “Close”.


bonnmotion installation in ubuntu 16.04 java binary path error

At first you need to install Java:

sudo apt-get install default-jre default-jdk

the command above will install (among others) java and javac to /usr/bin.

Then download your software and launch its install script:

wget http://sys.cs.uos.de/bonnmotion/src/bonnmotion-2.1a.zip
unzip bonnmotion-2.1a.zip
cd bonnmotion-2.1a
./install # hit enter on "Please enter your Java binary path [/usr/bin]:"

The executable will be available as ./bin/bm.

Note: newer 3.0.1 version compiles normally too.


MacBook Pro Retina late-2013 WiFi BC4360 - "FOUND UNSUPPORTED PHY"

It is telling you that b43, ssb and its firmware are incorrect for your device. With a working, reliable internet connection, ideally ethernet, please open a terminal and do:

sudo apt-get install bcmwl-kernel-source

Next, I recommend that your regulatory domain be set explicitly. Check yours:

sudo iw reg get

If you get 00, that is a one-size-maybe-fits-all setting. Find yours here: http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 Then set it temporarily:

sudo iw reg set IS

Of course, substitute your country code if not Iceland. Set it permanently:

gksudo gedit /etc/default/crda

Use nano or kate or leafpad if you don't have the text editor gedit.

Change the last line to read:

REGDOMAIN=IS

Proofread carefully, save and close the text editor.

Reboot and tell us if the wireless is working correctly.


I solved this problem by using the "something else" installation option from the Live CD and then using reinstalling Ubuntu 14.04 on the Ubuntu partition as mount point. This method preserved my Home folders files.


How to enable pgsql in PHP-FPM from a bash script for phpPgAdmin

The module for php-pgsql changed from 'php-pgsql' for PHP5 and changed to 'php7.0-pgsql' for PHP7. Therefore my command should be

sudo add-apt-repository ppa:ondrej/php
   sudo apt-get update
   sudo apt-get install -y git nginx-full php7.0 php7.0-fpm php7.0-pgsql postgresql-client-9.5


How to convert qcow2 virtual disk to physical machine and reversely

You not need two steps

Only one step.

qemu-img convert test.qcow2 -O raw /dev/LVMGROUP/LVMDisc

Best regards


Wifi gets disabled when connecting to a wired network

I fixed the problem.  It turned out that my BIOS has an options that says: "WLAN - LAN switching" that I needed to uncheck.

Once unchecked phy0 is not disabled anymore when connecting the ethernet.


"dpkg -l" does not see any available package

dpkg -l will list only the packages that are installed on your machine. In your case, the package mutt is not installed. To search for packages that are installed or not, you can use aptitude search package-name-pattern.


Windows 7 partition not detected during installation

It is indeed fairly common that a laptop or netbook that has Win7 on it already has 4 primary partitions on the drive.

I can't say for sure that this is your problem, but let's assume it is.

If you can see there is an option in the installer missing, then you can presumably boot into the live environment. That is the "try without changing" option.

Do that and start Gparted. That is a partitioning program that can tell you what is on your drive. Have a look and see how many partitions there are. On a Win7 install, I gather it is fairly common to have
2 partitions that are directly related to the Win7 install
A recovery partition
A partition containing tools from the manufacturer of the laptop.

I don't remember exactly, but I think I blitzed the recovery partition on this netbook to make room for an extended partition to enable me to make logical partitions for the Ubuntu install. That is the principle, at any rate. Have a look what is there, maybe use the "create a recovery medium" facility (I didn't), and decide which of the existing partitions you can afford to get rid of.

If there really are already 4 primary partitions on the drive, then you do have to get rid of one of them in order to install anything else on there. Either that or get rid of the Windows install completely.


Opening a program or installed software from Terminal?

youtube-dl is a script with no graphical interface, so you run it in a terminal.

  youtube-dl is a small command-line program to download videos from YouTube.com and a few more sites. It requires the Python interpreter, version 2.6, 2.7, or 3.2+, and it is not platform specific. It should work on your Unix box, on Windows or on Mac OS X. It is released to the public domain, which means you can modify it, redistribute it or use it however you like.

youtube-dl [OPTIONS] URL [URL...]

see https://github.com/rg3/youtube-dl/blob/master/README.md#readme for detailed instructions including examples of usage.

If you did not install it from the repos,

chmod a+x /path/to/youtube-dl
/path/to/youtube-dl [OPTIONS] URL [URL...]


Unable to install ... Type of message '(ayussass)', does not match expected type '(ayussasass)'

Disable all the plugins in the Ubuntu Software Center if any, you can find the plugin details under the installed software.

Open the Ubuntu Software app. Go in the installed section. Fine the Gnome Software App. Click on it, scroll down until you see Add-ons. See if there are any addons enabled, disable them and it would ask to reload, do that and you should be good to go.


Elementary tweak with Pantheon in Lubuntu

Try using this repository: ppa:mpstark/elementary-tweaks-daily

Type in the terminal:
sudo add-apt-repository ppa:mpstark/elementary-tweaks-daily
sudo apt-get update
sudo apt-get install elementary-tweaks

I had the same issue and this worked for me on the first try.


gpg key timed out error while installing GNU Octave on Ubuntu 18.04

At almost all the places over the internet the above 3 steps are recommended to install Octave.

But the PPA of this software is for older versions of Ubuntu (16.04 LTS and 14.04 LTS). And doesn't need to be added explicitly.

Directly, run the following command in the terminal:

sudo apt install octave

It should work fine. Hope this helps :)


"E:Read error - read (5: Input/output error), E:The package lists or status file could not be parsed or opened."

Your lists are corrupted, you should remove them and refresh your package lists:

sudo rm -r /var/lib/apt/lists/
sudo mkdir -p /var/lib/apt/lists/partial
sudo apt-get update

First removes the previous list, next remake the partial directory, third updates your list and recreates the package list of your repositories.

This could be easily fixed if you find out exactly which one is corrupted, but the log doesn't say. apt-get update might give you hints so instead of deleting all of them, just the one is corrupted.


Hide all kernel boot messages/logging when disabling splash screen Lubuntu 14.04.1

If you don't need to see the messages in the TTY, then you can set the quiet parameter instead. By default, you have quiet splash, just delete the splash.


How to fix dual-boot installation of Ubuntu 14.04 alongside Win7?

1) Most probably you have installed Ubuntu just fine, and it's on your 2nd disk's 1st partition, but your BIOS settings make your computer boot from the 1st disk, where Windows is installed, and you naturally can't see the contents of your Ubuntu partition there (Windows can't see Ubuntu, but Ubuntu can see Windows ;-)

2) This setup is actually very good for your purposes, as you can now change the BIOS Boot Settings and give your second disk (where Ubuntu is installed) first priority, and choose Ubuntu or Windows every time you boot your computer, or revert back to the previous BIOS boot priority to boot directly to Windows when you want it, and so on.

You need to press a key like F2, F10, F12 or Esc (which varies with different computer brands and models) at the black screen that appears immediately after pressing the power button to enter into BIOS Boot Priority Settings menu.


Does rsync verify file copies on local drives?

The part of the man page that you mention has to do with the -c option. As the man reads at the beggining

  Rsync finds files that need to be transferred using a lqquick checkrq
  algorithm (by default) that looks for files that have changed in size
  or in last-modified time. Any changes in the other preserved
  attributes (as requested by options) are made on the destination file
  directly when the quick check indicates that the file's data does not
  need to be updated.

with the -c option it checks if two files are of equal size, and if so checks the checksums of the two.

rsync also verifies the transfer of the file through the network, not the disk. If you want to make sure that your data are not corrupted you could use utilities like md5sum.

as a side note: I don't think that this procedure qualifies as an "incremental backup" since incremental backups stores the differences to the system from an earlier backup. I think "incremental transfer" is more appropriate.


I fixed some issues in the script and added comments inline. See below:

#!/usr/bin/env bash

echo "Hello there, i am a little script so you can change a number of txt file names at once"

read -p "I would like to know your name before we start, what is your name? " NAME

echo "Well hello there $NAME, nice to meet you im Scripty"
echo "Let's start"

read -p "What type of file would you like to rename(txt,sh,etc...)" ANSWER

# ANSWER is a variable whose value must be accesses as $ANSWER.
# To avoid weird errors for ANSWERs with spaces in it, we put it in "double quotes":
case "$ANSWER" in
    [tT] | [tT][xX][tT])
        echo "You selected a TXT file type,Good job $NAME"
        ;;
    [sS] | [sS][hH])
        echo "You selected a SH file type,Good job $NAME"
        ;;

    # If none of the above applies it's always good to have a default case:
    *)
        echo "You picked something else. Not sure whether I can handle that..."
        ;;
# close/end the opening "case" statement:
esac

# The original
#    FILES=$(ls *.$ANSWER)
# parses the output of the `ls` command. This is ok for one-shot
# commands if you know for sure that your filenames do not contain strange
# characters. But the proper way is to use _globbing_ and assign
# the filenames to a bash array:
FILES=(*.$ANSWER)

read -p "To what name you would like to change the file name?" NEW

# Iterating an array needs some special syntax:
for FILE in "${FILES[@]}"
  do
    echo "Renaming $FILE to $NEW-$FILE"
    # Again "double quotes" because the filenames may contain spaces.
    # I prepended the line with "echo ..." so it does not do any harm.
    echo mv "$FILE" "$NEW-$FILE"
  done


Status of Install Ubuntu on May 2019 Macbook Pro (with touchbar)

As of today Ubuntu 19.10 does not work on Macbook Pro 2019.
I tried to boot from live flash drive.
The problems was that touchpad and keyboard was not functional.

Also after connecting usb mouse i figured out that WiFi and HardDrive also lack driver support.