It is neither wise not advisable to install xampp on Ubuntu or any Linux distribution for that matter. Follow the instructions here http://howtoubuntu.org/how-to-install-lamp-on-ubuntu to install the LAMP stack.
About permissions on Linux you need to supply the OS with a super user password (thinks Administrator from Windows but much more powerful). This is a security measure to ensure that only trusted software is installed.


Why does the --include switch in grep behave differently when both machines are on 11.10?

Isn't the GLOB incomplete?

grep "jars2deploy" --include=*.xml ./ -r


How to install node-sass/gulp-sass on Ubuntu 14.04+ or Linux Mint 17+?

I documented my research as a bash script as a gist based on the official doc

Compiling and Installing libsass and sassc

Install dependencies

apt-get install automake libtool

Fetch sources

git clone https://github.com/sass/libsass.git
git clone https://github.com/sass/sassc.git libsass/sassc

Create configure script

cd libsass
autoreconf --force --install
cd ..

Create custom makefiles for shared library

For more info read: Difference between static and shared libraries? before installing libsass.

cd libsass
autoreconf --force --install
./configure \
  --disable-tests \
  --enable-shared \
  --prefix=/usr
cd ..

Build the library

make -C libsass -j5

Install the library

sudo make -C libsass -j5 install

Testing

Only node-sass

time node-sass /path/to/main.scss

Succeed with

Rendering Complete, saving .css file...
Wrote CSS to /mnt/data/projects/EVRPA/evrpa/web/main.css
node-sass ../web/styles/main.scss  0.42s user 0.03s system 95% cpu 0.471 total

Gulp with ruby-sass

[17:48:21] Using gulpfile /mnt/data/projects/EVRPA/evrpa/web/gulpfile.js
[17:48:21] Starting 'css'...
[17:48:21] gulp-ruby-sass: directory
[17:48:23] gulp-ruby-sass: overwrite main.css
[17:48:24] Finished 'css' after 2.9 s
gulp css  4.60s user 0.35s system 46% cpu 10.605 total

Gulp with node-sass

time gulp css
[17:47:59] Using gulpfile /mnt/data/projects/EVRPA/evrpa/web/gulpfile.js
[17:47:59] Starting 'css'...
[17:48:00] Finished 'css' after 1.1 s
gulp css  2.99s user 0.20s system 100% cpu 3.164 total

Conclusion

My tests are no benchmark and have little value but node-sass seems to be 3-5x faster than ruby-sass.


Back up your Windows 7 and make sure you have your activation key written down and you can burn a Windows 7 boot disk if you need to (ask in the comments below if you want specific help with this).

Then overwrite 13.10 with 14.04. I think it's highly unlikely that this will mess with Windows 7 if you make sure you click 'Delete 13.10 and Install 14.04' (or similar) in the install menu. The only possible problem is that GRUB might break on upgrade and then you won't be able to boot (which is when your Windows 7 backup/disk/key will come in useful) but I don't think this is very likely.


Migrating Ubuntu Music Library to an External Hard Drive?

This is rather easy, if you are using a music player that keeps a database, such as Banshee or Clementine.

All you need to do, is cut and paste your music to a folder on the external hard drive, then import it to your music player. Just make sure that your music player's preferences are set to not import files to your ~/Music folder.


The offset means the location where it should start extracting the image. So an offset of +224+202 means go 224 to the right and 202 to the bottom and from that point take out the 500x500 pixels you want (In this case it will be pixels but it can also be a percentage).

From your link If you omit the offsets, as in ... the image is resized to the specified dimensions instead. So the 3rd one is a 500x500 version of the original and it is zoomed but zoomed out.


If you updated from Skype 4.2, this is because the database format has slightly changed. More precisely, the problem is that the format of how file transfer logs are stored differs slightly, and Skype 4.3 crashes right away because it cannot deal with the old format.

One possibility, as suggested in the other answer, is to completely remove your Skype directory (i.e., rm -r ~/.Skype). However, this also means that you will lose all your conversation history!

A much better solution is to fix the database yourself. Make sure Skype is not running, and proceed as follows:

Install sqlite3:

sudo apt-get install sqlite3

Next, issue the following command:

sqlite3 ~/.Skype/SKYPE_USERNAME/main.db

...where you have to replace SKYPE_USERNAME with your Skype username. This gets you inside Skype's SQLite database. There, issue the following command:

UPDATE messages
  SET body_xml =(
    SELECT SUBSTR( body_xml, files_start, alt_end - files_start ) ||
           SUBSTR( body_xml, 0, files_start ) ||
           SUBSTR( body_xml, alt_end )
    FROM (
      SELECT msg.body_xml,
             instr( msg.body_xml, '<files' )  files_start,
             instr( msg.body_xml, 'alt="' ) + 5 alt_end
      FROM messages msg
      WHERE msg.id = messages.id
    )
  )
WHERE type = 68
AND body_xml NOT LIKE '<file%';

And quit:

.quit

And voilà! Next time you start Skype and log in, it should work fine, and you'll still have all your conversation history.

Source: http://community.skype.com/t5/Linux/Skype-4-3-crash-on-ubuntu-14-04/m-p/3349043/highlight/true#M9417


How to disable a particular log message from being saved to var/log?

We looked at two commands... grep AER /var/log/syslog* and sudo lspci -tv, and determined that your wireless card may have a problem.

Assuming that your wireless card works normally under Windows/Ubuntu, we won't worry too much about it. If it does not work properly, it may be defective, or may need reseating on the motherboard, or it might have a driver issue.

If you added a driver for your wireless card (RTL8192EE PCIe Wireless Network Adapter), it's probably a dkms driver, so check its version number, and status with:

dkms status # check driver status

The AER (Advanced Error Reporting) errors that are bombing your /var/log/syslog, can be eliminated by:

sudo -H gedit /etc/default/grub # edit this file

Find:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

Change it to:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pci=noaer"

Then:

sudo update-grub # update GRUB

reboot # reboot the computer


How do I delete a directory from a zip file using a bash script?

From man zip:

      zip -d foo foo/tom/junk foo/harry/\* \*.o

will  remove  the  entry  foo/tom/junk,  all  of  the  files  that  start  with
foo/harry/,  and  all  of  the files that end with .o (in any path).

If that doesn't help, can you provide some details about the commands you've tried and the output?


I would try to do an

sudo apt-get update
sudo apt-get upgrade

and then see if there are any updates to the packages first.


Ok so I solved it (kind of), first extract the zip file with the unar command, then open the .exe using wine wine Path/to/utau0418e-inst.exe(without the locale, because utau 4.18 already includes an english patch), the problem seem to be that some latin characters had a Japanese font), the installer still shows the black squares, but once UTAU is installed, there's no broken symbols or squares, the only problem is that it doesn't seem to play sound, but that may be related to another thing.
edit: utau.exe can be opened with the locale ja_JP.utf8 and it will show it in the native language.


How to allow software access to any USB devices?

The way I deal with USB devices is to give a specific group access to all of them.

As root:

echo 'SUBSYSTEM=="usb", MODE="0660", GROUP="plugdev"' > /etc/udev/rules.d/00-usb-permissions.rules
udevadm control --reload-rules

Essentially what this does is grant read and write access for any usb device to members of the plugdev group.


Corsair Strafe not properly working on Ubuntu 16.04

Before installation, run the following command:

sudo apt-get install build-essential libudev-dev qt5-default zlib1g-dev libappindicator-dev

To install ckb, navigate to this page: https://github.com/ccMSC/ckb/releases

Download the .zip or tarball. Extract to a folder (doesn't matter). Navigate to that extracted folder. Double click the file called quickinstall, and follow the installer instructions.


Try this:

for f in *; do
    if [[ -d $f ]] ; then
        mv "$f"  $(($f + 1000))
    fi
done


I don't know if this is 'the answer' but I had a similar issue when I installed Ubuntu with the 'tmp' mount point set to a partition that did not have (and could not support) the appropriate permissions, ie. 1777. Once I changed the mount point to a more suitable partition the problem disappeared.


How to Prevent JUJU From Overwriting Heat conf File

This is a rather ugly hack but you could try chattr +i heat.conf that is "change attributes add immutable" this would result in no accidental changes to the file. The downside to this approach is that you woud have to issue the command chattr -i heat.conf in order to allow any modifications to take place. This approach could easily result in unintended consequences such as normally required modifications to the file would fail unless you removed the immutable attribute before hand. Since this is like opening a can with a machette, I hope someone else has a better answer.


How can I install Syspeek in Ubuntu 13.04?

I would strongly suggest against using dpkg -i to directly install packages since this has the potential to leave your system with unresolved dependencies.

Instead, I rebuilt the Oneiric package for Raring and copied it to my PPA:

  ppa:george-edison55/george-edison  (Click here for instructions on using PPAs.)

Unfortunately the Launchpad builders are extremely busy right now and it looks like the package won't be built for another four hours or so. Once it completes, however, you will be able to simply run:

sudo apt-add-repository ppa:george-edison55/george-edison
sudo apt-get update
sudo apt-get install syspeek


How can I test if a variable matches another value and move to another function?

First of all, because you used grep with -q argument, the value of def variable will always be equal with an empty string. From man grep:

-q, --quiet, --silent
       Quiet;  do  not  write  anything  to  standard   output.    Exit
       immediately  with  zero status if any match is found, even if an
       error was detected.  Also see the -s  or  --no-messages  option.
       (-q is specified by POSIX.)

Second, you should think a little bit logic. This expression:

$prmt != "y" || $prmt != "n"

is always in any programming language evaluated as true:

if $prmt = "y", then for sure $prmt != "n", so your expression is true
if $prmt = "n", then for sure $prmt != "y", so your expression is true
in any other cases is clear that your expression is true.

Third, your function should look like:

firstFunction() {
    abc="$USER content"
    def=`grep -is $USER /path/to/file`
    if [[ $def = "$abc" ]]; then
       secondFunction
       return                            #does not make sense to go ahead
    else
       echo "Message to user with a y/n prompt"
       read prmt
    fi
    while : ; do
    if [  "$prmt" = "n" ]; then
       secondFunction
       return                            #does not make sense to go ahead
    elif [ "$prmt" = "y" ]; then
       sed -i "s/$def/$abc/g" /path/to/file
       return                            #does not make sense to go ahead
    else
       echo "Message to user with a y/n prompt"
       read prmt
    fi
    done
}

Or, as you said, you can use case statement.

See also:

Introduction to if
Using case statements
Function syntax
Examples using grep


When installing ubuntu server alongside windows 10, I cannot select the partition that I want. Why is that?

Although you could install Ubuntu into NTFS partition now, but it could require more work than with just installing it into linux partition. Better choose manual disk configuration. Remove your ntfs partition, create new partition with a file system supported by Ubuntu, Ext4 for example and make it mounted to /. Also, leave some place for swap partition.
On my machine I have been using Ubuntu since March 2019 and I have the next disk usage picture:

$ df -h | grep -v snap
Filesystem      Size  Used Avail Use% Mounted on
udev            7.8G     0  7.8G   0% /dev
tmpfs           1.6G  3.7M  1.6G   1% /run
/dev/sda2       177G   92G   76G  55% /           <---------
tmpfs           7.8G  544M  7.3G   7% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           7.8G     0  7.8G   0% /sys/fs/cgroup
/dev/sdb1       229G   36G  181G  17% /home          <------
tmpfs           1.6G  4.0K  1.6G   1% /run/user/130
tmpfs           1.6G  104K  1.6G   1% /run/user/1000

I don't know what you are going to do with your system. But if you want to use it only for short periods of time, I would recommend you to make your partition sizes as follow:
/ - 50 Gb
/home/ - 90 Gb, however, it depends on amount of RAM you have, number and weight of applications you consider to use
swap - residue

/home partition should no be formatted in case of further OS re-installation, so you will save your users' files. It's like a disk D: on Windows.


Ubuntu 16.04 freezes frequently on Lenovo Thinkpad

I had the same issue with a Lenovo 510 14AST with an AMD chipset. After a lot of testing I found out that the AMD Radeon graphics model R5 is too new to be supported by the mesa open source VGA driver.

So I did a fresh install of Xubuntu (which behaved most stable due to a simpler GUI) and then immediately installed the AMDGPU-PRO driver as described here http://support.amd.com/en-us/kb-articles/Pages/AMDGPU-PRO-Install.aspx


When using fdisk, how do I find what partition numbers are already in use?

The partition number do you talking about is the number of a primary partition. You can have only four per device and you can't use the same partition number twice.

To list the partition number use, e.g

sudo fdisk /dev/sda

or (for an example see below))

sudo parted /dev/sda print

You should see something like this

% sudo fdisk /dev/sdb

Welcome to fdisk (util-linux 2.26.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

Command (m for help): p
Disk /dev/sdb: 7,5 GiB, 8019509248 bytes, 15663104 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xc3072e18

Device     Boot Start      End  Sectors  Size Id Type
/dev/sdb1          62 15650907 15650846  7,5G 83 Linux

This means, I have one primary partition. The next primary partition would be 2, 3, 4. This

/dev/sdb1

and this

/dev/sdb5

means, you have one primary partition sda1 and one logical partition sdb5. You can only create logical partitions inside a primary partition.

To show the partition types you could use

sudo parted /dev/sda print

Output could be

Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number  Start   End    Size    Type      File system  Flags
 1      1049kB  105GB  105GB   primary   ntfs         boot
 2      105GB   205GB  100GB   primary   ext3
 3      205GB   207GB  1999MB  primary   linux-swap
 4      207GB   500GB  293GB   extended               lba
 5      207GB   500GB  293GB   logical   ntfs

Means sda4 is a primary partition now called extended partition, with one logical partition.

The partition number isn't the same number as the ID. The ID is the ID for the type of the partition:

 0  Empty           24  NEC DOS         81  Minix / old Lin bf  Solaris
 1  FAT12           27  Hidden NTFS Win 82  Linux swap / So c1  DRDOS/sec (FAT-
 2  XENIX root      39  Plan 9          83  Linux           c4  DRDOS/sec (FAT-
 3  XENIX usr       3c  PartitionMagic  84  OS/2 hidden C:  c6  DRDOS/sec (FAT-
 4  FAT16 <32M      40  Venix 80286     85  Linux extended  c7  Syrinx
 5  Extended        41  PPC PReP Boot   86  NTFS volume set da  Non-FS data
 6  FAT16           42  SFS             87  NTFS volume set db  CP/M / CTOS / .
 7  HPFS/NTFS/exFAT 4d  QNX4.x          88  Linux plaintext de  Dell Utility
 8  AIX             4e  QNX4.x 2nd part 8e  Linux LVM       df  BootIt
 9  AIX bootable    4f  QNX4.x 3rd part 93  Amoeba          e1  DOS access
 a  OS/2 Boot Manag 50  OnTrack DM      94  Amoeba BBT      e3  DOS R/O
 b  W95 FAT32       51  OnTrack DM6 Aux 9f  BSD/OS          e4  SpeedStor
 c  W95 FAT32 (LBA) 52  CP/M            a0  IBM Thinkpad hi eb  BeOS fs
 e  W95 FAT16 (LBA) 53  OnTrack DM6 Aux a5  FreeBSD         ee  GPT
 f  W95 Ext'd (LBA) 54  OnTrackDM6      a6  OpenBSD         ef  EFI (FAT-12/16/
10  OPUS            55  EZ-Drive        a7  NeXTSTEP        f0  Linux/PA-RISC b
11  Hidden FAT12    56  Golden Bow      a8  Darwin UFS      f1  SpeedStor
12  Compaq diagnost 5c  Priam Edisk     a9  NetBSD          f4  SpeedStor
14  Hidden FAT16 <3 61  SpeedStor       ab  Darwin boot     f2  DOS secondary
16  Hidden FAT16    63  GNU HURD or Sys af  HFS / HFS+      fb  VMware VMFS
17  Hidden HPFS/NTF 64  Novell Netware  b7  BSDI fs         fc  VMware VMKCORE
18  AST SmartSleep  65  Novell Netware  b8  BSDI swap       fd  Linux raid auto
1b  Hidden W95 FAT3 70  DiskSecure Mult bb  Boot Wizard hid fe  LANstep
1c  Hidden W95 FAT3 75  PC/IX           bc  Acronis FAT32 L ff  BBT
1e  Hidden W95 FAT1 80  Old Minix       be  Solaris boot


Graphics stuttering issue in Ubuntu 14.10 for Intel on-board graphics

This kind of error is usually caused by memory issues.

My 8 year old laptop also has similar issues when I have a lot of tabs open on chrome(around 15 tabs) and when the system uses a lot of RAM. I use indicator-multiload to see how much RAM is used. My laptop only has 2.5 GB of RAM and also has an integrated graphics card.

My guess would be that the system is unable to display the contents properly due to lack of enough memory.


Is there something like Trixbox CE for Ubuntu Server?

As trixbox is open source, it should be possible to port the management interface to Ubuntu?

Or FreePBX (I think Trixbox actually uses the FreePBX admin tools).

Seems like FreePBX installation page mentions Ubuntu.  (There is also more to be found on Google...)

FreePBX also works with FreeSwitch on an embeded system with Ubuntu 10.04.


Reinstall of Ubuntu 11.10 failed and partitions nor hard disk not being recognized

It turns out that my faulty hard drive was the main source of my problems. The BIOS was not even picking it up, so I unplugged it, turned on the computer, then shut down, reconnected it, at which point the computer picked it up. I then was able to reinstall Ubuntu 11.0 after a bit of of GRUB trouble.


You probably have a hold on the package.  You can release it with

sudo apt-mark unhold firefox

Sorry to post as an answer instead of comment, but for some I only have enough rep for answers (seems backwards?)


Ubuntu MATE 18.04 LTS RaspberryPi images are currently moved to archive:

64-bit (arm64) -  https://releases.ubuntu-mate.org/archived/18.04/arm64/
32-bit (armhf) - https://releases.ubuntu-mate.org/archived/18.04/armhf/


Can't pair my HUAWEI Bluetooth Mouse with Ubuntu LTS 20.04.1

I have the exact same mouse and the exact same problem. I've tried a few solutions but no luck on my end here's whats worked for other people with Bluetooth mice:
$ bluetoothctl
$ scan on
$ scan off
$ devices
$ pair XX:XX:XX:XX:XX:XX
$ connect XX:XX:XX:XX:XX:XX
$ trust XX:XX:XX:XX:XX:XX

And there's also this solution if you're dual-booting.


How to partition a ubuntu 12.04 laptop after installation

First of all, backup your data just in case. Although it is an "easy" process, playing with partitions for the first time can easily bring you data loss if you don't know what you are doing.

Start Ubuntu using a Live CD
Start gparted
Select the 488Gb partition, and resize it, reducing its size enough to have room for the new partition
Select the extended partition and increase its size
Create the new partition in the free space now available within the extended partition


Ubuntu 16.04 battery percentage shutdown not working

As Steam gamer commented , you can try going in your Power Settings Menu.

In PowerSettings Menu , Select Hibernate/PowerOff when your system is critically low option.

Here is the screenshot :

Last night , I selected this option.

My system went to hibernate but when I started my system ,my battery percentage was 4%.

So critical action was not taken on my percentage-critical parameter (Set to 32%) and percentage-action parameter(set to 30).
Needless to say ,use-time-for-policy was also set to false.

Below is the screenshot for my dconf :

I am still trying to get this to work . I will update the answer if I find something that works perfectly.

I have not tried the laptop-mode-tools way as suggested here. I hope that would work.

But now I am looking if any slight change is required somewhere to get this to work.

Hope this helps!!


Black screen after reinstall/install nvidia driver

Try to sudo apt-get remove shim-signed

as mentioned at https://superuser.com/questions/1407694/ubuntu-works-without-nvidia-but-stuck-at-login-screen-with-nvidia

It works for me.


How To Reset Ubuntu Software Center Application - Ubuntu 13.04

Open a terminal and type:

xkill

Your cursor will turn into an "X" and click on the window that is frozen. It will force kill it.

After which you should run an update to see if there are any new versions of the software.

sudo apt-get update

Hope this helps!


Partial upgrade to 16.04.3 LTS error cannot create wakeup

This problem is usually associated with a mismatch in the /etc/fstab file, which manages disk assembly on a Linux system, especially when one of the affected partitions is root (/). To solve this:

Boot recovery mode (or using a live-cd/usb);
mount -o remount, rw /
run  blkid to annotate the UUIDs of existing
partitions;
edit /etc/fstab, updating the correct UUIDs.


How to use a file extracted from .dmg file?

I'm guessing the .dmg file you're referring to is an Apple Disk Image.
Theoretically an Apple Disk Image can contain any type of file, so your question is very broad. Most likely it contains software compiled for Mac OS X that you can not run on Ubuntu.
If the disk image contains executable scripts written in languages Ubuntu can interpret, or binary files Ubuntu can execute, the following method should work.
Open up a terminal:
Ctrl+Alt+T
Navigate to the directory you mounted the .dmg in:
cd /path/to/mount

List the content
ls -l

This should give you a list of the files. It could look like this:

drwxrwxr-x 2 tobias tobias 4096 Nov 13 12:01 test2
-rwxrwxr-x 1 tobias tobias    0 Nov 13 12:00 test.py

If a line has an 'x' it means it's executable. So long it doesn't begin with a d, it should be an executable file. You can now run this file with:
./filename

In my example:
./test.py

Optionally you can use file to discover what kind of file it is:
file test.py


You can specify that a variable is an array by creating an empty array, like so:

var_name=()

var_name will then be an array as reported by

$ declare -p var_name
declare -a var_name='()'

Example:

var_name=()
for i in {1..10}; do
    var_name[$i]="Field $i of the list"
done
declare -p var_name
echo "Field 5 is: ${var_name[5]}"

which outputs something like this:

declare -a var_name='([1]="Field 1 of the list" [2]="Field 2 of the list" [3]="Field 3 of the list" [4]="Field 4 of the list" [5]="Field 5 of the list" [6]="Field 6 of the list" [7]="Field 7 of the list" [8]="Field 8 of the list" [9]="Field 9 of the list" [10]="Field 10 of the list")'
Field 5 is: Field 5 of the list


How to find which libc version app links against?

ldd should be the tool of your choice. That gives you the shared library actually linked.

confus@confusion:~/misc/test$ ldd -r -v testendian
    linux-vdso.so.1 =>  (0x00007fffbcfff000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f1a5a4c5000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f1a5a8a5000)

    Version information:
    ./testendian:
        libc.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libc.so.6
    /lib/x86_64-linux-gnu/libc.so.6:
        ld-linux-x86-64.so.2 (GLIBC_2.3) => /lib64/ld-linux-x86-64.so.2
        ld-linux-x86-64.so.2 (GLIBC_PRIVATE) => /lib64/ld-linux-x86-64.so.2

In case of the libc you can simply run the .so file and will be told the library version.

confus@confusion:~/misc/test$ /lib/x86_64-linux-gnu/libc.so.6
GNU C Library (Ubuntu EGLIBC 2.15-0ubuntu10) stable release version 2.15, by Roland McGrath et al.


I'd recommend installing a copy of the live USB with persistence mode, as it's specifically engineered towards running of a USB stick. Obviously not knowing specifics about the problem I couldn't point you to a fix, but I use USB and persistence a lot for fixing dead windows machines and it seems to work fine :)

For details on how to set it up see here


Can someone explain the working of this bash script?

This script allows you to enter a user that you are looking for. It will tell you whether or not the user is logged in or not and, if the user is logged in, from what location.

read user

This reads in the user name you entered

`w | grep $user | cut -c19-30`

The first part, w, prints out all logged in users accessing this machine. The grep $user filters out the lines that don't contain the user name you typed in. Finally, the cut -c19-30 splits the output to get the characters from position 19 to position 30 (this is where the location part is).

The last conditional block just checks to see if there is any output from the previous command. If there isn't, that means the user isn't logged in. If there is, then the user is logged in and it prints out the location.


How to remove "frequently used programs" from menu dash?

This is not possible with earlier versions of Unity but will be possible in Unity 5.0: see the image in one of the answers here:

To get rid of the "Most frequently used programs" section:

launch dconf-editor (which is part of the dconf-tools  package)
navigate to /desktop/unity/lenses/applications
uncheck the display-recent-apps box

Related:

How to remove "Apps Available for Download" from the applications lens?


Turn on/off Bluetooth from shell not from applet

The commands you're looking for are:

rfkill block bluetooth

and

rfkill unblock bluetooth


How to set a custom page to replace the default Firefox New Tab page

Please note that this answer only works for Firefox version 40 and below.

From https://support.mozilla.org/en-US/questions/1013039

  In case you need more of a step-by-step:

  In a new tab, type or paste about:config in the address bar and
  press Enter. Click the button promising to be careful.
  In the search box above the list, type or paste newtab and pause
  while the list is filtered
  Double-click the browser.newtab.url preference and enter your
  preferred page:

Page thumbnails (default)    =>   about:newtab
Blank tab                    =>   about:blank
Built-in Firefox home page   =>   about:home
Any other page               =>   full URL to> the page

  Press Ctrl+T to open a new tab and verify that it worked.


Bad DMA/do_IRQ errors on suspend/resume, with occasional freezing

1. "Bad DMA"

Let's deal with the "bad dma" errors first, since they're the only consistent ones which are reflected in your logs.

These, as well as any problems suspending/resuming, are caused by your internal USB 3G modem, which from the MAC address is an Ericsson F3507g.

Yes, you read that right. Not every USB device has to be external or plugged into one of the visible USB ports. Modern laptops will run a whole bunch of internal peripherals such as Wireless/3G cards, bluetooth, webcams, etc. from an internal USB "hub".

Notice this tell-tale sequence, which repeats every time the "bad dma" errors occur:

[171783.085166] usb 2-1.6: USB disconnect, device number 10
[171783.086623] ehci_hcd 0000:00:1d.0: dma_pool_free buffer-128, eafaa000/2afaa000 (bad dma)
[171783.087046] cdc_ncm 2-1.6:1.6: usb0: unregister 'cdc_ncm' usb-0000:00:1d.0-1.6, CDC NCM
[171783.092382] done.
[171783.129959] ehci_hcd 0000:00:1d.0: dma_pool_free buffer-128, eb1aa000/2b1aa000 (bad dma)

The cdc_ncm module is implicated; this is a low-level USB interface to high-speed cellular modems
This bug indicates that the F3507g WWAN cards have had similar problems with Ubuntu/Linux before, and a kernel update fixed it.

The error should only affect suspend/resume/freezing, and should NOT affect normal operation of the 3G card.
But I'd recommend you try one of the mainline kernels (or the Quantal 3.5 kernel), to see if it makes any difference.
The other extreme alternative, of course, is to either disable your 3G card in the BIOS, or if you actively use it, consider replacing it with another brand/model.

2. "do_IRQ" and "sdb1"

It's harder to debug these isolated warnings without context (which can be the key, as shown above). So we'll just have to guesstimate until you can provide a kern.log containing one or both of these errors.

"do_IRQ" seems to stem most often from PCI-Express bus issues, including graphics cards, and VIA chipsets are often implicated.

This message can otherwise be safely ignored.

Given that your SMART logs look OK, the "sdb1" errors probably come from even more USB communication issues with the external drive.

If you find more USB errors around these, I'd chalk it down to an occasional USB incompatibility and not worry; but if they occur only by themselves, it may indicate a problem with the drive. A more complete log would help :)

Again, I'd recommend trying one of the Quantal 3.5 kernels and seeings if things change, especially for the "do_IRQ".

3. Trying the 3.5-series Quantal Kernel (or a mainline build)

Once Ubuntu 12.10 is released, its kernel will be made available for 12.04 as a "backport" (the same goes for 13.04 and 13.10).
Right now, you can get the "beta" kernels from the Ubuntu-X team PPA
BUT this PPA also contains a number of extra packages which you have no need to upgrade.
So I've made just the backported kernel available in another PPA
To install:

sudo apt-add-repository ppa:auanswers/lts-backported-kernels-prerelease
sudo apt-get update
sudo apt-get inst all linux-generic-lts-quantal

Reboot, and you should boot into the new kernel (check with uname -a). Nvidia/AMD graphics and Broadcom wireless cards may be problematic. You can always select your old 3.2-series kernel by keeping Shift pressed at boot until the Grub menu shows, and then going into "Previous Linux Versions"
For even more bleeding-edge kernels, you can try one of the mainline builds. Please see this question and answer for more information:

  Should I upgrade to the "mainline" kernels?


What calls PostgreSQL's initdb on package installation?

In postgresql-8.4.postinst, the line immediately above the call to configure_version is:

. /usr/share/postgresql-common/maintscripts-functions

That will load all the functions from that file, which includes configure_version. That file is found in the postgresql-common package.


You have to disable Pop-Ups.  Just click on Customize and control --> Settings

Click on Show advanced settings

Then Privacy --> content settings

Then Pop-ups --> Do not allow

Also go to Customize and control --> Settings --> Extensions, and search for Ad Block, and choose an item from the list.


You need to have a Spotify Premium account. Perhaps you have installed the Linux preview client? It only supports Premium users. If you don't have a Premium account and don't want one, then you'll need to install wine and run the Windows version.


After installing Wubi to a different drive than Windows, why is my bootloader gone?

There could be many possible reason.

Please double check your BIOS and make sure you boot-priority is OK to boot from your hard disk.
Second thing that can happen is somehow, the Active partition is set to a partition that is not containing the boot manager. (Active partition means , that holds the bootmanager file)

To Get back windows,

Put your windows dvd.
Repair it.

Hopefully you will be able to boot windows. Now uninstall wubi and try reinstalling.

(A advice: download ISO file from the site and put wubi.exe and ISO in same directory. this will help you to avoid big downloads. Don't use alter net dvds)


Installing Windows XP with Ubuntu 12.04 already installed

you can try installing windows xp using a virtualbox.Below link may be useful for you.

Install windows 7 through virtual box


Using IPEGA bluetooth gamepad with Steam @ Linux

There is working solution (you must create remapped virtual xbox gamepad using xboxdrv software, which works great in Steam Big Screen and Steam Games):

install xboxdrv sudo apt-get install xboxdrv
connect your ipega bluetooth gamepad and pair it with computer (hold X button and HOME button together, device is ready to pair when red LED blinking fast and successfully connected when red LED lights continuously)
find XX number (/dev/input/eventXX) of connected gamepad using command cat /proc/bus/input/devices
at the end, create virtual xbox compatible gamepad using command:

sudo xboxdrv --evdev /dev/input/eventXX --evdev-absmap ABS_X=x1,ABS_Y=y1,ABS_Z=x2,ABS_RZ=y2,ABS_HAT0X=dpad_x,ABS_HAT0Y=dpad_y --axismap -Y1=Y1,-Y2=Y2 --evdev-keymap BTN_A=a,BTN_B=b,BTN_X=x,BTN_Y=y,BTN_TL=lb,BTN_TR=rb,BTN_TL2=lt,BTN_TR2=rt,BTN_THUMBL=tl,BTN_THUMBR=tr,BTN_SELECT=back,BTN_START=start --silent &

Don't forget to replace eventXX with value, discovered in step 3.

NOTE: remapping scheme, used in step 4. http://goo.gl/XFhYvI is usable probably only for ipega controllers, if you have another gamepad manufacturer, just follow these instructions https://steamcommunity.com/app/221410/discussions/0/558748653738497361/.


You can open a terminal and run sudo nautilus.

You should gain access to your files.


DeskTime Application Not Working Very Well in Xubuntu

At the moment DeskTime support only clean Ubuntu LTS versions 16.04 or higher. Ubuntu X and other different desktop environments need to use older DeskTime app. Here is more: https://desktime.com/faq/getting-started/what-systems-does-desktime-support


In 'apt-cache depends' output, what is the meaning of Suggests, Recommends, |, ?

The authoritative reference is the Debian policy manual: http://www.debian.org/doc/debian-policy/

Quoting the manual:

The Recommends field should list packages that would be found together with this one in all but unusual installations.

Suggests: This is used to declare that one package may be more useful with one or more others. Using this field tells the packaging system and the user that the listed packages are related to this one and can perhaps enhance its usefulness, but that installing this one without them is perfectly reasonable.

These days packages that are recommended are installed as well by default ( when you install the package doing the recommending ).

As you guessed the | indicates "or".  The control line normally shows foo | bar, but apt-cache depends appears to reformat it by showing each alternative on its own line and prefixing the first with the |.  In other words, the pipe flags the preferred option and the next line is the alternative.

The package listed in angle brackets indicates that it is a virtual package.  The packages listed on the indented lines after it are the various packages that provide that service.


You can us the AMD driver: catalyst instead of Xorg: just specify your system information there. It has the option to control which video card to use and some other options.

But beware, check the compatibility of the driver with your system version. Also remember to get all packages shown on Catalyst's prerequisites if they do support your system.


My mouse cursor is moving, but i can't click properly

You need to add a Config file in the Directory: usr/share/xorg.conf.d, called 910-rat.conf, then edit the file and paste:

Section "InputClass"
 Identifier "R.A.T."
 MatchProduct "R.A.T.7|R.A.T.9"
 MatchDevicePath "/dev/input/event*"
 Option "Buttons" "17"
 Option "ButtonMapping" "1 2 3 4 5 0 0 8 9 7 6 12 0 0 0 16 17"
 Option "AutoReleaseButtons" "13 14 15"
 Option "ZAxisMapping" "4 5 6 7"
EndSection


Problem with Ubuntu Software Center after installing GNOME

Try reinstalling the Ubuntu Desktop.

Open the terminal then copy & paste the following command

sudo apt-get install --reinstall ubuntu-desktop

Enter your password when prompted & press Enter.


16.04 - issues with metrics when ethernet and wifi are plugged in

Solution is to change metric on ethernet connection.
Change interface setup to something like

/etc/network/interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

auto enp0s31f6
iface enp0s31f6 inet static
address 192.168.0.205
netmask 255.255.255.0
dns-nameservers 8.8.8.8
up route add default gw 192.168.0.1 metric 1000
down route del default gw 192.168.0.1

This will add metric to ethernet to 1000 aka more then wifi. Is wifi  connected and traffic will be routed to wifi. If wifi is not connected traffic will be router to eth. If wifi is connected and eth is also connected, traffic will be routed trough wifi because of metric witch is 600 for wifi and 1000 for eth Also if eth is disconnected command down route del default gw 192.168.0.1 will delete default route to eth.


Ubuntu doesn't detect thai number font "TH Niramit IT๙" anymore

I've fixed it already. I think because of the last apt upgrade, the system count TH Niramit IT๙ (thai number) and TH Niramit AS (arabic number) as same, so I delete TH Niramit AS, then everything get back to work normally again.


You should upgrade to 15.04 as soon as possible as 14.10 has reached its End of Life (EOL) yesterday (23rd July, 2015).

Note that mongodb-dev is not available in 14.10, your best bet would be to download the .deb file from launchpad and the install it with :

sudo dpkg -i package_name.deb

Then you need to satisfy the dependency (libboost-dev) with :

sudo apt-get -f install

Otherwise you can use gdebi to do the whole work for you (install gdebi first) :

sudo gdebi package_name.deb

Or open the .deb file with Ubuntu Software Center which will take care of everything for you.


Run these commands on your terminal,

sudo apt-get update
sudo apt-get install aptitude
sudo aptitude install libxft-dev


How can I modify the power button behaviour?

To do it GUI:

Install dconf-tools:

sudo apt-get install dconf-tools

open dconf-editor from dash or just run dconf-editor & in terminal

Navigate to org.gnome.settings-daemon.plugins.power and set your default button-power action there:

replace suspend by shutdown.


How can I get the wifi to work on Ubuntu 15.10 on a MacBook Pro Retina 10.2?

If you are one of those who installed any version of Ubuntu on your Macbook Pro and the OS doesn't detect your WiFi, get connected to internet using cable, Bluetooth, etc. and simply run the following commands:

sudo apt-get update
apt-get install -y linux-firmware-nonfree b43-fwcutter firmware-b43-installer
reboot

Voila!! Your computer restarts and it should easily detect your WiFi hardware.


/etc/sudoers file ignored or overrriden somehow?

pkaramol is a member of group sudo or admin - which requieres password to escalate privileges.


Importing Anaconda libraries not working

The python environment that you are using in the screenshot is not the anaconda environment.
Try running python instead of python3. If not, maybe the conda path is not sourced. Try the steps below:

Check if the anaconda path is available in your PATH by echo $PATH
If it's not, run the below scripts

 source <path to anaconda>/bin/activate
 conda init

The default anaconda installation path is: /home/<your-username>/anaconda3
Checkout the Anaconda FAQs for more information. If you have any further issues, please post the details here


Actually, that's the new chrome, ever since v50 update it's like that. Nothing to do with Ubuntu.


Just figured out how to fix vibration on Ubuntu for Shanwan controllers attached to USB.

The fix was found here :
https://forums.gentoo.org/viewtopic-t-1038906-start-0.html

File linux.../drivers/hid/hid-sony.c should be modified in kernel sources and kernel should be recompiled.

I've slightly changed it (to adapt for any Sony PS3 gamepad copy with producer "ShanWan" or "SHANWAN" - my version has capital names):

struct sony_sc {
    __u8 led_count;
 };

+/*
+ * The ShanWan reports the same id as the Sony SixAxis, therefore
+ * it can't be added to sony_devices[], but we still need to know which one
+ * we're dealing with.
+ */
+static int is_shanwan_gamepad(struct hid_device *hdev)
+{
+   return strstr(hdev->name, "ShanWan") || strstr(hdev->name, "SHANWAN) ;
+}
+
 static __u8 *sixaxis_fixup(struct hid_device *hdev, __u8 *rdesc,
               unsigned int *rsize)
 {

<..........>

static __u8 *sony_report_fixup(struct hi
    struct sony_sc *sc = hid_get_drvdata(hdev);

    /*
+    * The ShanWan  gamepades when used over USB, times out when
+    * initialising reports, but it works just fine without init.
+    */
+   if((sc->quirks & SIXAXIS_CONTROLLER_USB) && is_shanwan_gamepad(hdev))
+      hdev->quirks |= HID_QUIRK_NO_INIT_REPORTS;
+
+   /*
     * Some Sony RF receivers wrongly declare the mouse pointer as a
     * a constant non-data variable.
     */

<...........>

static int sixaxis_set_operational_usb(s
    /*
     * Some compatible controllers like the Speedlink Strike FX and
     * Gasia need another query plus an USB interrupt to get operational.
+    * The ShanWan gamepads doesn't like these additional steps.
     */
+   if(is_shanwan_gamepad(hdev))
+      goto out;
+
    ret = hid_hw_raw_request(hdev, 0xf5, buf, SIXAXIS_REPORT_0xF5_SIZE,
              HID_FEATURE_REPORT, HID_REQ_GET_REPORT);
    if (ret < 0) {

The kernel download and compile can be found here:
https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel
after sources download, modify hid-sony.c accordingly and compile.


How to leave prompt when accidentally enter Grave accent character?


How to Copy my entire Ubuntu OS into new laptop for installing along with all data and programs installed

You can use Clonezilla Live:

Two types of Clonezilla are available, Clonezilla live and Clonezilla SE (server edition). Clonezilla live is suitable for single machine backup and restore

OR

Systemback Tool

The Systemback tool allows you to create restore points, backups, and live images of a running system. Currently, it only works for Ubuntu derivatives based on 14.04, 14.10, and 15.04.

https://launchpad.net/systemback

sudo add-apt-repository -y ppa:nemh/systemback

sudo apt-get update

sudo apt-get install systemback


The issue is with our network.  If a windows computer is a fresh install it has the same issues as with the Ubuntu systems.  It can ping, and resolve domain names but no http activity.  I don't know what the settings are but when the windows system is added to the Active Directory domain in our network it is allowed to reach the internet if it isn't connected then it can't.  There are no proxies on the firewall or the local windows machines so I'm not sure what is stopping it.  I'm still trying to find out what settings are causing this.  The firewall is open for this system's IP so it is something in the Windows AD world and the network services like DHCP and DNS that are managed by Windows services.


Banshee is unable to determine audio cd metadata

In Banshee 2.2, both of these issues have been fixed. Ubuntu 11.10 comes with this version of Banshee installed by default.

There are a couple reasons that this could happen:

MusicBrainz recently changed the way that third party applications can request metadata, and this change caused problems with Banshee.
Until recently, if a MusicBrainz DiscID matches multiple albums, Banshee failed to retrieve the metadata.  The recent changes to MusicBrainz make this problem more common.

Given the NullReferenceException warning in your log, which looks pretty similar to a log posted in the MusicBrainz forums, it seems likely that you are running into issue #2.


VPN, Loopbacks, Ubuntu Server, And VirtualBox

Part one yes it is possible.

Not really, no it will not secure your information using public wifi unless your vpn is using an internet connection that is different from the public wifi. It sounds like you would be connecting to public wifi to provide internet access to your vpn and this will not make your communications secure.

You would have unencrypted communication between the public WIFI and the VPN. Because your virtualbox would be using the same public WIFI to connect to websites. You need to connect to the vpn over the public WIFI to provide security.

Ideally, you would want to set up a VPN on a trusted network like your home network for example.

Then, you could use the public WIFI to connect remotely to your VPN server computer that is connected to your home network (at your apartment or house). This would encrypt all traffic on the public WIFI because the public WIFI would not be used to connect to websites, only to the VPN.


How do I move all my torrents from Transmission to Deluge?

Transmission stores torrent files in

~/.config/transmission/torrents

You can open the files found there with deludge.


Yes, I did many times. Windows + Ubuntu 18.04 + Ubuntu 16.04


~/Downloads is a directory, not a file. It simply points to the list of files that directory contains (i.e., the files you downloaded). ls gives you the size of that pointer, which is usually 4k.

When you view that directory in a file explorer, the program assumes you want the total size of files within that directory. You can get this from the command line, too, of course - try du -hs Downloads.

See this post for more info.


PHP 7 and apache displays plain text and cannot be restarted

Run the following command in terminal

sudo apt-get install libapache2-mod-php


Gnome Search Tool - Open Containing Folder does nothing : 16.04 flashback

This is a bug of gnome-search-tool. Here is the report https://bugzilla.gnome.org/show_bug.cgi?id=671317

The exact behaviour of this bug is, without opening the containing directory, it opens the file directly. I installed this program and verified the bug's behaviour.

In your case, it's not opening any file. It could be because it can't find the default application associated with the file type.

You can do two things:

Reporting this bug against gnome-search-tool package of Ubuntu here https://launchpad.net/ubuntu/+source/gnome-search-tool/+bugs. (If you report, let me know in the comment so that I can click affect me option. If you decide not to report, I would do later)
Use some other GUI search tools for Ubuntu. Here are some suggestion:

How do I use the GUI to search for files in GNOME?
Or you can use catfish which is very similar to gnome-search-tool

sudo apt-get install catfish

Hope that will help.


Sync ubuntu settings between systems with shell script?

They are in the folder ~/.config of the user who sets them. They are not system-wide settings, but user-wide.


Disk Image Mounter is a way to mount the contents of an ISO so they can be viewed. There are other ways to mount the ISO but without mounting it its contents are inaccessible.

How to Easily Mount ISO Images In Ubuntu


Your hardware could be issue and not the software.  I had a similar problem but couldn't turn caps on or off when I needed.

So I swapped the Caps Lock/Esc keys around. Now I can use my Caps Lock as normal, I didn't use my Esc often. This is in the same settings you looked at.


How to switch audio output to specific devices per application using command line?

pactl move-sink-input [ID] [SINK]

Move the specified playback stream (identified by numerical index) to the specified sink (identified by symbolic name or numerical index).

Ubuntu manpage: pactl


How to configure apt to ignore if there are installed packages with unmet dependencies?

No, the check can't be disabled. It's been requested, and it won't happen.

Aside from faking a package for the dependency, your other options are:

edit dpkg's status file (see this SU post, this SF post) (risky!)
edit the .deb file (see top voted answer on the SF post linked above)


You shouldn't have any trouble with the latest release of Ubuntu (14.04.1 LTS) on your netbook, but I would recommend picking the 32-bit variant if you have less than 2 GB of RAM. Unlike Windows, Ubuntu's system requirements do not generally increase as newer versions are released. One thing to watch out for is graphics support, as versions of Ubuntu after 12.04 removed support for 2D graphics, but I have only had trouble with this on Pentium 4-era desktop computers.

From the general specifications of your computer that I found online (Intel Atom, 1 GB of RAM, etc.) don't expect a lighting-quick experience, but it should be plenty usable. I have had Ubuntu 12.04 running on an HP netbook of similar specs and was able to play YouTube videos at acceptable quality.

Official Ubuntu system requirements are here, and you can get Ubuntu here.

You can also try a more lightweight distro like Lubuntu, Xubuntu, or Kubuntu if Ubuntu proves too graphically demanding.


Unmet dependencies with everything using sudo apt-get install

What I do when I encounter that issue is to uninstall the package that is causing the issue, then try installing it again. In your case, the problem seems to be account-plugin-facebook, so try

sudo apt purge account-plugin-facebook

If that fails, try dpkg:

sudo dpkg --remove account-plugin-facebook

and then try installing again with

sudo apt install account-plugin-facebook


Install Problem (Ubuntu Server 10.04) with USB as it reboots when I hit 'enter' for 'Install Ubuntu Server' option! Help

At that point you're past the BIOS, so you shouldn't have any problems.

It sounds like what's happening is that the kernel and/or the initial ram disk may be corrupted (more likely the kernel). You should try re-making the USB stick, perhaps with a re-downloaded copy of the ISO (did you md5sum the ISO before using it to create the stick?). Or, you may have better luck using the most-recent version of Ubuntu Server - 11.10.


Ubuntu 13.04 left click not working after a while

This is a bug found in Ubuntu.
First open the terminal and type :

  sudo add-apt-repository ppa:raof/aubergine
  sudo apt-get update
  sudo apt-get upgrade

On completion of the update restart your computer and done!

Another solution
Install the deb file from the following link.

For x86 systems : http://ppa.launchpad.net/xorg-edgers/ppa/ubuntu/pool/main/x/xserver-xorg-input-evdev/xserver-xorg-input-evdev-udeb_2.7.0+git20120504.f28507e8-0ubuntu0sarvatt~precise_i386.udeb

For x64 systems : http://ppa.launchpad.net/xorg-edgers/ppa/ubuntu/pool/main/x/xserver-xorg-input-evdev/xserver-xorg-input-evdev-udeb_2.7.0+git20120504.f28507e8-0ubuntu0sarvatt~precise_amd64.udeb


Is it necessary to install AMD graphics driver for ubuntu?

I'm running 12.04 with ATI AIW, and I never loaded ATI CC, and everything works fine.  Its been running like that since 12.04 came out, and Its updated as of yesterday.  So it won't harm the system.  I don't run any games.


Has apache security updates been backported?

How to check if your Apache is getting security updates:

Look at the changelog.

Here's an example of a changelog entry showing a security fix:

2.4.7-1ubuntu4.13
Published in trusty-updates on 2016-07-18
Published in trusty-security on 2016-07-18
apache2 (2.4.7-1ubuntu4.13) trusty-security; urgency=medium

* SECURITY UPDATE: proxy request header vulnerability (httpoxy)
 - debian/patches/CVE-2016-5387.patch: don't pass through HTTP_PROXY in server/util_script.c.
 - CVE-2016-5387
* This update does _not_ contain the changes from (2.4.7-1ubuntu4.12) in trusty-proposed.

Common Mistake: Security Updates are NOT Backports

Let's say the Foo Project discovers a security vulnerability in Foo 1.1. They issue a patch. Since most users hove no idea how to apply the patch, they also release a new upstream version Foo 1.2 and suggest everybody upgrade.

The Ubuntu Security Team does not package Foo 1.2. Instead, they patch Foo 1.1. They upload the patched version as Foo 1.1ubuntu0. When you check your Foo version, it confusingly still says '1.1', and your cheesy tech-news website says '1.1' is vulnerable. Check the package version and the changelog to see which security patches have been applied. Do NOT rely upon the software's --version feature. The Ubuntu Security Team won't change that string.

Foo 1.2 appears in the next release of Ubuntu. You can upgrade to the shiny new features then.

After Foo 1.2 is released in a later version of Ubuntu, some intrepid users will try the newer package on their older release of Ubuntu. Backporting in Ubuntu is this method of porting newer packages to older releases. Sometimes it works, sometimes not. Backporting in Ubuntu has nothing to do with security updates.

Be aware that the 'trusty-security' repository is fully supported by Ubuntu. The 'trusty-backports' repository is not supported - user beware.


'sensors' command from lm-sensors keeps reporting the same temperature

I figured it out thanks to some direction from Braiam's comment on my original question.  I re-ran sensors-detect and answered yes to the question about adding the lines to /etc/modules. I think I selected the default of no the first time through. Now I get a much more complete output from sensors that includes non-virtual devices.  Here's what I'm getting out now:

root@NUCTest:~# sensors
acpitz-virtual-0
Adapter: Virtual device
temp1:        +27.8°C  (crit = +106.0°C)
temp2:        +29.8°C  (crit = +106.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Physical id 0:  +35.0°C  (high = +87.0°C, crit = +105.0°C)
Core 0:         +33.0°C  (high = +87.0°C, crit = +105.0°C)
Core 1:         +36.0°C  (high = +87.0°C, crit = +105.0°C)

nct6776-isa-0a30
Adapter: ISA adapter
Vcore:         +0.65 V  (min =  +0.00 V, max =  +1.74 V)
in1:           +1.00 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
AVCC:          +3.36 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
+3.3V:         +3.34 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in4:           +1.06 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in5:           +0.00 V  (min =  +0.00 V, max =  +0.00 V)
3VSB:          +3.33 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
Vbat:          +3.28 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
fan1:            0 RPM  (min =    0 RPM)  ALARM
fan2:         3183 RPM  (min =    0 RPM)  ALARM
SYSTIN:        +65.0°C  (high =  +0.0°C, hyst =  +0.0°C)  ALARM  sensor = thermistor
CPUTIN:        +36.5°C  (high = +80.0°C, hyst = +75.0°C)  sensor = diode
AUXTIN:        +87.0°C  (high = +80.0°C, hyst = +75.0°C)  ALARM  sensor = thermistor
PECI Agent 0:  +29.0°C
cpu0_vid:     +2.050 V
intrusion0:   ALARM
intrusion1:   ALARM

It's interesting that the virtual device is still there.  I'd love to learn what that actually is.


Remove the media from your PC of which you're running Xubuntu from and reboot.

E.g: If you've tried it from a CD/DVD, remove that from the optical drive. If you put it on a USB flash drive, remove the USB flash drive.


This happened to me - simply remove that file with:

sudo rm /var/lib/apt/lists/repo.steampowered.com_steam_dists_precise_steam_i18n_Translation-en

If any other errors with repo.steampowered.com files occur, just delete the file causing the problems.


No write access for vsFTPd server despite 777 permissions on files

Just to follow up in case anyone stumbles upon this. The vsftpd.conf file has to have the following line added:

virtual_use_local_privs=YES


repeated nginx ubuntu 16.04 error on update install

Shutting down apache2 first before installing nginx should fix this problem.

stop apache2

sudo systemctl stop apache2.service

prevent apache2 to start at boot

sudo systemctl disable apache2.service

Reinstall nginx

sudo apt-get install nginx


Where are customized properties stored?
Application settings are usually stored either:

in ~/.config/application_name
Example: ~/.config/libreoffice
in their own dedicated local (invisible, name starts with a .) folder in ~.
Example: ~/.gimp-2.8

Furthermore, applications can have one or more settings in the dconf database (gsettings). A simple way to find out if that is the case is to run in a terminal window:
dconf watch /

...and play with the settings.
Lastly, (mostly) locally installed applications possibly created a local .desktop file. If so, you also need to delete that one to make sure you are starting from scratch.
Reset
Th bottom line is to remove these folders, if they exist, and reset the gsettings / dconf values. If you'd like a GUI way to reset thos keys, you can look them up in dconf-editor, and reset them to default.
Local settings folder(s) will be re- created on the next time you run the application.
dconf-editor is not installed by default. To install:
sudo apt install dconf-editor


vpn and samba together on virtual machine?

You are routing all your traffic via the 1st networkcard / vpn-server when you connect to your vpn.

You have at least two options now.

Modify the vpn-server-config

Chanage your server-config to not bypass your gateway anymore. In OpenVpn this option should be named

push "redirect-gateway def1 bypass-dhcp"

Delete or comment that option
Modify your routing table

Don't change the vpn-server config but write a new routing rule. Lets say your samba network is running at 192.168.10.0/24 and your IP in that smb network is 192.168.10.2 you could write a rule like this

sudo ip route add 192.168.10.0/24 via 192.168.10.2

and the problem should be fixed.


Is Disk Encryption Included in Ubuntu 16.04 ? Or do i have to use the Alternate Ubuntu 12.04.5?

The standard installer of 16.04 Desktop is also capable of setting up full disk encryption. Simply check "Encrypt the new Ubuntu installation for security" when you reach the installation wizard step depicted below.


Graphics corruption/artifacts on laptop - hardware or software issue?

I believe you kind of answered it yourself - if it's not showing on external display, than it's extremely unlikely it's a software issue.
You can test one more thing - boot a live distro. You can try Live Ubuntu 20.10 and see if it happens. You can then try something older like Ubuntu 16.04 or some different distro (best if slightly older and not ubuntu based)
If your screen is acting up on those as well, you almost have it 100% it's hardware.
Could be provoked by heating up, or 3D, or some malfunctioned unit (eg maybe video encoder). I have one card that works awesome in 2D, but as soon as it touches 3D it goes bonkers, and stays like that until shutdown and new boot.
Try repeating the steps (encoding video, running 3D games, something heavy and for a longer period, like 10-15min at least to let it heat up).
Then if it shows again, try to do similar on those Live CD distros.


Double click text selection - Backspace hotkey problem

Answer:
Keys holding and repeated keys: Setting => Universal Access => Typing => Repeat Keys (Be sure it ticked)
Mouse double click: Setting => Universal Access => Pointing & Clicking => Mouse Keys (Be sure it ticked)
You can absolutly set Delay and Speed for "repeat keys" option by clicking on it's title


What is the difference between nvidia-graphics-drivers and nvidia-graphics-drivers-updates

The first package is the binary driver that will stay the same version until next ubuntu release. The second driver is the binary driver that will have updates before next ubuntu release.

You can decide which one you want to use by running jockey.


Problems with linux-headers and apt-get -f install

Have you tried to remove old unused kernel versions ? First list current active kernel with uname -r, next list all installed kernel using dpkg --list 'linux-image*' and finaly remove all kernel except the current with apt-get remove linux-image-x.x.x-xx-generic. It work perfectly for me.


Windows 8.1 does not shown up on Grub2, even after installing Boot Repair. - Ubuntu 16.04

Maybe you accidentally have chosen the option the use the whole disk for Ubuntu when you started the installer. In this case the whole disk was wiped and Windows with all data is gone. There is a slightly chance that this did not happen and something went wrong when it came to the configuration of the GRUB boot loader. Open a terminal in Ubuntu, execute this command : sudo update-grub. Reboot and check whether you find the Windows entry in the boot menu.

Additionally you can check the content of the disk with the Disks application, which is included in Ubuntu. Open Disks and check whether you can see more partitions than Linux and Swap. If this is the case reinstall the boot loader : sudo grub-install /dev/sd*, replace * with the drive letter of the disk where the systems are installed, in most cases this is the first disk sda. Afterwards update the GRUB configuration as it was described before : sudo update-grub.


Aptitude trying to remove a lot of packages

You can remove the packages, it's safe. And if you need NodeJS you can install the packages again with:

sudo apt-get install nodejs

The same for gstreamer1.0-pulseaudio and esound-common.

The autoremove leaves your configuration in-place just in case you need it again afterwards.


It seems to have been a problem with either Termite or the vte-ng library. Solution here: https://askubuntu.com/a/1010348/971943


It will create a new device, /dev/ttyUSB0 (or a higher number if that already exists).

You can use that like any other file / pipe, depending on what exactly is connected. You will likely need sudo privileges to talk to it, but see this for the fix.

You can see in dmesg, where the device was connected, which port was created.


Putting an asterisk before the file name tells shasum to treat the file as binary if the system supports this. Id the file should be treated as text file you use a single blank instead.

Linux doesn't make a difference between binary and text files so it doesn't matter which one you use, but you can't leave it out.

So you have to use

<hash>  <filename>

with two blanks after the hash: One blank that separates the hash from the filename and one blank for text mode.


Dell XPS 13 extremely slow after update to 20.04 from 19.10

Yes, as I thought, you have a GNOME Shell problem.

You have (way too) many extensions installed, many of which overlap the functionality of the others. Some are installed in the wrong place... probably installed as part of an installed GNOME Shell extensions "pack".

Really, the best thing to do is delete them all, really, and/or only keep the few that you can't live without. Move/delete all of the "gcampax" ones in /usr/share/gnome-shell/extensions (you should only have the three non-gcampax extensions there), and leave any personal favorites in ~/.local/share/gnome-shell/extensions.

Extensions that should stay in /usr/share/gnome-shell/extensions...

drwxr-xr-x  2 root root 4096 Apr 30 12:11 desktop-icons@csoriano
drwxr-xr-x  3 root root 4096 Apr 30 12:11 ubuntu-appindicators@ubuntu.com
drwxr-xr-x  3 root root 4096 Apr 30 12:11 ubuntu-dock@ubuntu.com

Go to https://extensions.gnome.org/local/ to delete them, or use Gnome Tweaks.

GNOME Shell should average less than 3% CPU when viewed in top. Spikes may be normal.

Update #1:

After cleaning up the extensions, GNOME Shell was still using too much CPU %. We created a new TEMP user, logged in there, viewed top, and GNOME Shell was well in line with 3% or less CPU % that I quoted. We'll troubleshoot the primary account tomorrow.

Update #2:

After moving around the .cache, .local, and .config folders, it was a cloud service called MegaSync. It has icon overlays in Linux/Nautilus (a rarity) but it seems to not work well with the current distribution. If I just turn that off, things work great.


Is there a way I can artificially heat up my machine to do some cooling testing?

Take a look at man stress, gpu test as well as the benchmarks within Phoronix. At least one of those will meet your needs.


Wireless not enabled at start up on Lenovo X121e with Xubuntu

For me it is a bug. I filled a report here https://bugs.launchpad.net/ubuntu/+source/linux/+bug/951810

Further update:

The problem is the bios as this bug https://bugs.launchpad.net/ubuntu/+source/linux/+bug/812866 updating the bios, then reset to default the bios solve this issue


.bashrc shebang line reports command not found

Your file doesn't start with #!/bin/bash, it starts with the three-byte sequence 357 273 277 (where each byte is typed out in octal; that's ef bb bf in the more usual hexadecimal) is the UTF-8 encoding of the Unicode character U+FEFF ZERO WIDTH NO-BREAK SPACE. Do note the distinction between character endoding (a correspondence between characters or sequence of characters and sequences of bytes, such as UTF-8) and character set (a correspondence between characters and their representation, such as Unicode), because it's important here.

The character U+FEFF is also called byte-order mark (BOM). This character is used at the beginning of text files encoded in UTF-16. UTF-16 uses a representation based on units of two bytes, and the bytes inside each unit can be in either order: big-endian or little-endian (it just has to be consistent inside one text file). The BOM character is used to indicate the endianness of a file encoded in UTF-16 (the symmetric character U+FFFE is purposefully unassigned, so the first two bytes can only be valid in one of the two possible endiannesses).

The BOM interpretation of U+FEFF only makes sense in encodings that have a byte order, such as UTF-16. The UTF-8 encoding has no concept of byte order, since characters are encoded in a (variable-size) byte sequence with a well-defined order. Therefore in UTF-8 the byte sequence ef bb bf is just the character U+FEFF which is just another non-ASCII Unicode character.

Bash, like many other programs, treats all non-ASCII characters as ordinary characters that can appear in strings. For bash, strings include bare words. This has the advantage that bash can work with input in any encoding as long as that encoding is a superset of ASCII, i.e. characters in the ASCII set are encoded as one byte with their ASCII encoding value. UTF-8 is such an encoding. U+FEFF is a zero-width space, and is thus invisible to humans, but it's visible to programs. Programs that interpret their input in Unicode might treat it as a whitespace character, but programs that interpret their input as ASCII plus meaningless non-ASCII characters don't.

In your file, bash sees an initial sequence of 14 bytes which it parses as ordinary characters: ef bb bf 23 21 2f 62 69 6e 2f 62  61 73 68. The first three encode a U+FEFF in the UTF-8 encoding; bash's parser doesn't care about the encoding and treats them as three ordinary characters. The fourth character # is not a comment-start character because it is not at the beginning of a word. The resulting 14-character word is interpreted as a command name, and there is no command by that name.

Shell scripts, like most other program text, must be written in an encoding that's compatible with ASCII. Make sure that your editor doesn't add spurious characters such as carriage returns before newlines (the Windows encoding of line endings, but Unix programs treat the carriage return as an ordinary character) or U+FEFF at the beginning. U+FEFF is a byte-order mark only at the beginning of a file encoded in UTF-16 anyway; when it's used at the beginning of a file encoded in UTF-8, it's just a useless space at the beginning. If an editor adds U+FEFF at the beginning of a file in UTF-8, that's a bug.

In addition to all of this, a shebang line is not useful at the top of .bashrc. While it doesn't cause any harm (the harm here was because you didn't actually have a valid shebang line), it's spurious and potentially confusing. That file is never executed as a standalone script.


Wow, this was tricky to get right.

Sort-of solution

Adding this to a ~/.Xmodmap file somehow does the trick:

keycode 77 = End NoSymbol End

For immediate effect,

xmodmap ~/.Xmodmap

If works very well, for simple keypresses as with shift and control keys.

Now what about NumLock?

But now another problem is that the NumLock toggle is disabled, and the keypad perform arrow-like actions instead of typing numbers.

Here comes numlockx and fail:

$ numlockx status
Numlock is off
$ numlockx on
$ numlockx status
Numlock is off

Hum, strange.

Shift+NumLock (key) as Num_Lock (keysym). Works, but inconvenient.

I tried

keycode 77 = End Num_Lock End

but though it allows to do Shift+NumLock to toggle keypad behavior, it hinders Shift+End, a combination that I often use while typing (select to end-of-line).

Keypad-divide as Num_Lock. Fail.

I tried the key next to it:

keycode 77 = End NoSymbol End
keycode 106 = Num_Lock KP_Divide KP_Divide KP_Divide KP_Divide XF86Ungrab

or even

keycode 77 = End NoSymbol End
keycode 106 = Num_Lock Num_Lock Num_Lock Num_Lock Num_Lock Num_Lock Num_Lock Num_Lock

but pressing that key did not have any effect.

Actually, xmodmap ~/.Xmodmap seems to reset NumLock toggle to false.

Same for the ² twosuperior key which I don't use for typing:

keycode 49 = Num_Lock Num_Lock Num_Lock Num_Lock Num_Lock Num_Lock Num_Lock Num_Lock

Tricky solution

It looks like if the keycode 77 is not bound to Num_Lock at all, then NumLock toggle is always kept at false.

Let's assign it (in ~/.Xmodmap) some combination so obscure that I can't figure out:

keycode 77 = End NoSymbol End Num_Lock

Then

$ numlockx on
$ numlockx status
Numlock is on

Conclusion: success

I can use the physical NumLock key as End key with Shift and Control.
numlockx on works, for the rare case I will need it.

Additional information

French keyboard layout on Xubuntu 15.04.


How to install 64 bit Lubuntu 16.04.3 on Lenovo Z570?

A change in my GPT partitions solved the problem. /dev/sda2 is the Microsoft EFI partition, which I identified as a FAT32 partition. When I re-installed Lubuntu, gparted identified /dev/sda2 as an EFI system partition with flags boot,esp and the installer used that partition for Microsoft and Ubuntu boot information. Apparently this change allowed the installer to access the correct WMI driver. I also flagged the Microsoft reserved partition (/dev/sda3) as bios_grub.


Your card is reported to work with ndiswrapper. ndiswrapper is a tool to use the windows .INF driver, ndisgtk is a graphical front end for ndiswrapper

Assuming you have a wired internet connection

sudo apt-get install ndiswrapper-common ndiswrapper-utils-1.9 ndisgtk

For additional information see:

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

If you have the .INF on a disk or CD that came with your card, go ahead and use the one you have, otherwise the driver is attached to the second post on the forums.

See Ubuntu Wiki Ndiswrapper for additional information on use and configuration.


I get a CUPS Server error: 'server-error-internal-error' when I try to connect a network printer

I was able to work around the problem by setting up the printer using the CUPS web interface. I pointed my browser at localhost:631, which gave me the web interface. Then selected "Adding Printers and Classes", then "Add Printer".

It had already detected my network attached printer so it was just a matter of installing the correct PPD file from the selection.

I don't know why attempting to install the printer through the ubuntu Printers settings resulted in the 'server-error-internal-error', but this method seems to have worked fine. If anyone knows what the root cause of the error is I'd still love to know...


If you can install rename:

sudo apt install rename

Try:

rename 's/\.[a-zA-Z0-9]{1,}$/.torrent/' *.*

On another note, remember changing file extension won't change its file type or contents.


Ubuntu 20.04 doesnt start since apt upgrade

fricigrillbufe --unless wanting to compile only bug reports--

"Note that the recommended upgrade process currently displays the announcement of the development release" --might be Microsoft's conclusive  hint.

Ubuntu Focal Fossa (20.04) LTS is now released, and posts about it are (generally) No Longer Offtopic

hope well
–


If you want to do this as system startup (as opposed to when you log in to your computer), put the commands you want to run in /etc/rc.local.

See [Ubuntu] Executing a script at startup and shutdown.


How do I change display scaling dynamically?

The scaling factor is stored in the KScreen section of ~/.config/kdeglobals as described here and here.

KDE can be restarted using some combination of:

kquitapp5 plasmashell
kwin --replace &
kstart5 plasmashell


Will Ubuntu work fine on my Asus EEE netbook?

With your specifications I would try Lubuntu first.

Try it from a Live USB. If everything works you may proceed to install it.


Solved it myself

The second post here solved it
Add the following line to the command field in Startup Applications

/home/dani/Scripts/altgr_to_alt.sh

And here is what the script looks like if someone is wondering

#!/bin/bash
echo "Changing keys..."
xmodmap -e "clear mod1"

xmodmap -e "keycode 108 = Alt_L Meta_L"
xmodmap -e "keycode 64 = ISO_Level3_Shift"
xmodmap -e "add mod1 = Alt_L Meta_L"

echo "Changed keys!"
echo

You have to make it executable if you want to run it at startup. I did this with
chmod 755 altgr_to_alt.sh


The last line contains just read.

Read the help page of read, from help read:

Read a line from the standard input and split it into fields.

So unless you give input to read via STDIN, it will be blocked indefinitely.

In a script, read is normally used to read lines(s) from file(s) or to take user input (like your case).


Okular lacks menus except in fully maximised mode

"Okular doesn't have menus anymore (file, settings etc.) unless I maximise its window."

Yes it does. The menu is in the bar at the top of your screen just hidden until you put the mouse on it. (Silly I know, but that's the way the cookie crumbles).


You could try installing the drivers from https://launchpad.net/~xorg-edgers/+archive/ppa and installing Bumblebee to handle the Optimus issue: https://launchpad.net/~bumblebee/+archive/stable. Check my answer to a related question here: Launcher and panel missing [ubuntu 13.04].


Installed eterm but it is not in my path

The file to execute is Eterm, as you can see with the command:

dpkg -L eterm | grep bin


actually it was successful installation you can check it by typing

sudo pip3 -V


How to stop partition icons in Unity launcher?

The cause

Removing devices from the launcher will blacklist the device in the (gsettings) key

com.canonical.Unity.Devices blacklist

However, if the device is removed (disconnected in any way), the device is also removed from the blacklist. On next time you connect the device, the story starts over again.

The solution

The solution below will store blacklisted devices in a file. After removing them once, the device will never show up again in the launcher. If you disconnect a device, the script will immediately (re-) add the device as blacklisted.

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

key = "com.canonical.Unity.Devices"
bl_file = os.environ["HOME"]+"/.blacklist_data"

while True:
    time.sleep(2)

    current = subprocess.check_output([
        "gsettings", "get", key, "blacklist",
        ]).decode("utf-8")
    if "@as" in current:
        current = []
    else:
        current = eval(current)
    try:
        r = open(bl_file).read()
        r = [] if r == '' else r.splitlines()
    except FileNotFoundError:
        r = []
    if current != r:
        newlist = list(set([d for d in current+r if not d == '']))
        open(bl_file, "wt").write("\n".join(newlist))
        subprocess.Popen(["gsettings", "set", key, "blacklist", str(newlist)])

How to use

Copy the script into an empty file
Save it as remember_blacklist.py
Test- run it by the command:

python3 /path/to/remember_blacklist.py

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

python3 /path/to/remember_blacklist.py

Note

Reading from gsettings (practically all what the script does) is extremely light-weight, and won't add any noticeable burden to your system
If (and a long as) the device is opened in any nautilus window, it will still show up in the launcher. The icon will however not be locked to the launcher, and disappear.


How to configure UPS with USB connection

Try to use the config from this blogger:
http://risc-a-day.blogspot.hu/2014/09/getting-my-ups-to-work-with-linux.html

(Excerpts:

lsusb
...
Bus 008 Device 002: ID 0463:ffff MGE UPS Systems UPS

...
edit /etc/nut/ups.conf and add section for the UPS device itself:

...

[myups]
    driver = usbhid-ups
    port = auto
    vendorid = 0463
    pollfreq = 30

...

$ sudo upsdrvctl start

...

$ upsc myups

battery.charge: 75
battery.runtime: 1737
battery.type: PbAc
device.mfr: EATON
device.model: 5E 1100i
device.type: ups
driver.name: usbhid-ups
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.parameter.vendorid: 0463
driver.version: 2.6.4
driver.version.data: MGE HID 1.31
driver.version.internal: 0.37
input.voltage: 229.0
outlet.1.status: on
outlet.desc: Main Outlet
outlet.id: 1
outlet.switchable: no
output.frequency: 49.9
output.frequency.nominal: 50
output.voltage: 233.0
output.voltage.nominal: 230
ups.beeper.status: enabled
ups.delay.shutdown: 20
ups.firmware: 01.04.0018
ups.load: 12
ups.mfr: EATON
ups.model: 5E 1100i
ups.power.nominal: 1100
ups.productid: ffff
ups.start.battery: yes
ups.status: OL CHRG
ups.timer.shutdown: -1
ups.vendorid: 0463

)


skypeforlinux Ubuntu package says File has unexpected size (2471 != 2457). Mirror sync in Progress?

Deleting the skype repository list using worked for me:

rm -rf /etc/apt/sources.list.d/skype-stable.list*

It was automatically installed when unpacking official deb obtained from https://www.skype.com/en/get-skype. You don't need to remove skype application though.


A tar.bz2 cannot be installed, it is a compressed archive and must be extracted to get at the contents.

First download your package

wget dl.4players.de/ts/releases/3.0.13.3/teamspeak3-server_linux_amd64-3.0.13.3.tar.bz2

Extract it

tar jxf teamspeak3-server_linux_amd64-3.0.13.3.tar.bz2

Now change to that extracted directory

cd ~/teamspeak3-server_linux_amd64

Now you can run the server start script

./ts3server_startscript.sh start


For whatever reason (probably due to updating and Windows 10 using a different boot method or something akin to that) the listing of available operating systems has gone missing. This is something that can be fixed in a number of different ways. The simplest one to try is this:

Open the terminal by pressing CTRL+ALT+T.
Enter this command:

sudo update-grub
Press the ENTER button.
Enter your password (no asterisks will show, nothing will change on the screen, the cursor will not move, this is normal).
Press the ENTER button.
Let the system do its stuff and then enter this command:

sudo reboot

This will allow grub to automatically find and enumerate the available operating systems and then give you the option to boot to the desired operating system during the boot process.


Can't switch anymore from Intel to NVIDIA GPU

As you get the following error:

Error: alternatives are not set up properly

You may try to set the alternatives yourself.

When I switch to Intel I see:

update-alternatives: using /usr/lib/nvidia-331-prime/ld.so.conf to provide /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf (x86_64-linux-gnu_gl_conf) in manual mode
update-alternatives: using /usr/lib/nvidia-331-prime/alt_ld.so.conf to provide /etc/ld.so.conf.d/i386-linux-gnu_GL.conf (i386-linux-gnu_gl_conf) in manual mode

When I switch to NVIDIA I see:

update-alternatives: using /usr/lib/nvidia-331/ld.so.conf to provide /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf (x86_64-linux-gnu_gl_conf) in manual mode
update-alternatives: using /usr/lib/nvidia-331/alt_ld.so.conf to provide /etc/ld.so.conf.d/i386-linux-gnu_GL.conf (i386-linux-gnu_gl_conf) in manual mode

So you could try this to switch to Intel:

sudo update-alternatives --set x86_64-linux-gnu_gl_conf /usr/lib/nvidia-331-prime/ld.so.conf
sudo update-alternatives --set i386-linux-gnu_gl_conf /usr/lib/nvidia-331-prime/alt_ld.so.conf

Obviously you should replace 331 by your own version.

Now you could try a few things to trigger the switch:

Log out and log in again

to restart the X server as you normally would do
Reboot your whole PC

for the same purpose of the above
Execute sudo prime-select nvidia

as your alternatives are now set for Intel, I hope this will also fix any other settings so that everything is as it should be again (obviously you should still restart the X server)

I hope that I've interpreted the error right.

Also, you could use prime-select query to check which card is currently selected, and fix the alternatives for that card (for example NVIDIA) as you may somehow have set alternatives for the other card (for example Intel), but the tool is still thinking that you're using the other card (for example NVIDIA), thus giving an error saying that the alternatives are not set up properly.


How to unzip a Japanese ZIP file, and avoid mojibake/garbled characters

The problem is that most ZIPs circulating in Japan have their content encoded as Shift JIS, which is not shown correctly by default on Ubuntu.

The solution is to use the -O shift-jis option in your command:

$ unzip -O shift-jis ~/Downloads/【新入荷ECM】資料.zip
...
 inflating: 【新入荷ECM】資料/123_ユースケース.xlsx

This way, the expanded files are perfectly readable in Ubuntu.


How to start gnome wayland desktop from lightdm?

A bug report has been filed and is currently being worked on. There are a few workarounds but it isn't a perfect fix. I was able to login using Wayland with this fix but I was not able to use logout.

https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/1632772

One solution is to remove Unity 8 desktop:

sudo apt remove unity8-desktop-session
sudo apt autoremove


FTP refuses any and all connections (vsftpd)

The vsftpd service is not running and hence is not listening on port 21 or any preconfigured port. As a result you are getting the connect: connection refused error message every time while using an FTP client to connect to the server. I think you should check the setup procedure and configuration files for sorting out the issues. This and this might be a very good place to start.


Did you try running sudo grub-install /dev/X, X being the Hard drive's letters, like sda or hda?


Only one drive (sda) seems to contain a partition table, so there's nothing mountable on the other drives (sdb and sdc). They may be set up to be part of a RAID, which may obfuscate the partition table. If you don't care about the data they may hold, just repartition and format them.

I'm not sure how to inspect the current RAID status of a disk, but since you don't care about the data, I don't see a reason to investigate that. Just create new partition tables, partitions, logical volumes, and file systems on them as you see fit.


Awk statement to not working for colon symbol

To append/prepend the value of variable sq to string ops_data<dbms=Teradata::instance=idw-prod>, the latter must be quoted:

$3=sq"ops_data<dbms=Teradata::instance=idw-prod>"sq

or more readibly

$3 = sq "ops_data<dbms=Teradata::instance=idw-prod>" sq

Ex.

$ awk -v sq="'" -F, '
    t{print t} {a=t=$0}
    NR>2{$3=sq"ops_data<dbms=Teradata::instance=idw-prod>"sq;t=$0}
    END {print a}
' OFS=, test1.csv
+++ Database Column - begin +++
Name,Host,Database,Database Schema,Database Table,Short Description,Long Description
CUST_ID,IDW-PROD,'ops_data<dbms=Teradata::instance=idw-prod>',ops_data,D_FGHD_T,CUSTOMER IDENTIFIER,This field stores a unique value
+++ Database Column - end +++


libpulse-dev version does not match libpulse version

The needed version 1:1.1-0ubuntu15.4 of libpulse-dev is in precise-updates. The simplest way to activate this repository is:

Start Software & Updates
Select the tab Updates
Select Recommended updates (precise-updates) (In my screenshot it's vivid-updates, but that's just an example)

And click Close
Click Reload in this dialog

Install libsdl1.2-dev again


xubuntu 20.04.2 install SPROM + errors never stop

Speaking of 1983, the "Not a typewriter" message (or ENOTTY) is an error code defined in the errno.h found on many Unix systems dating back to the 70s and is now used to indicate that an invalid input/output control number was specified in an ioctl system call, most likely in that "unsupported SPROM". If you have an Nvidia graphics controller in your computer, you'll need to edit the boot to use nomodeset.
Here's how to do it:

If you can boot the machine to a semi-usable state, open a terminal

Edit the /etc/default/grub file as root:
sudo vi /etc/default/grub

Look for the GRUB_CMDLINE_LINUX_DEFAULT line, which probably looks something like:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

Add nomodeset after splash so that you have this:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"

Note: The order of the flags are unimportant, but adding it to the end makes sense.

Save the file

Reboot

This should give you a computer rather than "not a typewriter"


Ubuntu 16.04 GUI services manager like Windows

What I was looking for is:

sudo apt install kde-cli-tools kde-config-systemd

Running it with:

$ kcmshell5 kcm_systemd

Seeing as that this is the first hit on Google when searching for "ubuntu services manager gui", and it didn't contain the right answer, I will teach you how to find this - and any tool, if you have something to go on. Let's check our Linux/Distribution version:

$ cat /etc/issue
Ubuntu 16.04.3 LTS \n \l

This tells us our OS. Mine is Ubuntu 16.04. Like most Linuxes, Ubuntu has switched to systemd for managing its services. You would find this out by doing a web search for "ubuntu service". Let's see if there is a systemd package that alludes to being an interface, manager or GUI. (Graphical User Interface).

apt search systemd

We can now scroll up (Shift+PgUP - or on a laptop, Shift+Fn+Up). You can of course also look for "service" or "services". Hey, look, there is a systemd-ui. Let's install it!

sudo apt install systemd-ui

Great! Now what? How do I find out what the command is, or what it installed? Luckily there is a command that shows us what files are installed by a package:

dpkg-query -L systemd-ui

(Or)

dpkg -S systemd-ui

This shows us:

/usr/share/applications/systemadm.desktop

You would have to know that .desktop files are shortcuts in the Gnome desktop environment. You can look inside the .desktop file:

$ cat /usr/share/applications/systemadm.desktop
[Desktop Entry]
Name=systemadm
Comment=Manage Systemd Units
Exec=systemadm
Icon=applications-system
Terminal=false
Type=Application
Categories=System;Settings;

You can search for the specification of Gnome shortcuts. It is rather self-explanatory, though: Exec=systemadm. Categories=System;Settings. So look under your "System" or "Settings" menus under your applications, or simply run it:

$ systemadm

Voila! Oh, wait... this is a rather useless utility. It says "Manager" but it only allows you to view, no disabling, stopping, starting anything. How annoying! You can see the exact same by typing:

$ systemctl

It just shows it in a neater way... But with systemctl you can actually manage it too. So let's continue the search... this time, suppose we don't have a terminal with search or scroll functionality, let's use "less". To search in less, type "/" and to quit "q":

$ apt search systemd|less -S

After a wild goose chase with old gnome utilities such "gnome-system-tools" (which is equally useless as systemadm) - hey, nothing is preventing you from learning programming and improving systemadm, that's what linux is all about - but why reinvent the wheel if it already exists... to let's continue the search...

 kde-config-systemd - KDE control center module for Systemd

Now that looks promising. The KDE guys are usually ahead of the curve with their utilities... let's check it out:

sudo apt install kde-config-systemd

Great... now how do we run it?...

dpkg-query -L kde-config-systemd

Whoa! That is just too much to search through... let's see if there is a ".desktop" file in there...

$ dpkg-query -L kde-config-systemd|grep \\.desktop$

You can just grep for "desktop" too, then it will show you all the lines that contain "desktop", and not just the ones that end in ".desktop". Without the \., the . is meaningless, it just means "any character" to grep. With just a \., the shell will eat up the \ and send the next literal character to grep, so still just a \. We want to tell grep that the . is a literal . and grep also uses a \ to say that the next character is literal. So \\ sends a \ to grep, and then the $ means "end of line" so it means we're looking for a line that ends in ".desktop". And look! There are 2:

 /usr/share/kservices5/kcm_systemd.desktop
 /usr/share/kservices5/settings-system-administration.desktop

Now, you can just "cat" or edit them individually to see what's in them, but you can also do search both quite easily. We will feed the output of the above to a command that will feed each line individually to another command. The command that does that is called "xargs". The command we'll feed it to, is grep. If you give grep just one parameter, it searches the standard input. If you give it two+ parameters, it will treat the first as the search string, and the rest as files in which it will search.

 $ dpkg-query -L kde-config-systemd|grep \\.desktop$|xargs grep -i exec
 /usr/share/kservices5/kcm_systemd.desktop:Exec=kcmshell5 kcm_systemd

Okay, so now we have a command, let's try it:

$ kcmshell5 kcm_systemd
The program 'kcmshell5' is currently not installed. You can install it by typing:
sudo apt install kde-cli-tools

Thanks, Ubuntu. So we have discovered a missing dependency in the Ubuntu packages. When we install kde-config-systemd, it should automatically install kde-cli-tools! So I can fix this! I will now go and update the package file and create a pull request (or if you don't know how, just log a bug at the "ubuntu bug tracker" and someone else will do it, and fix it for everybody.)

So, for now:

$ sudo apt install kde-cli-tools

And now that it's done:

$ kcmshell5 kcm_systemd

Voila! Congratulations, now you have a GUI... where you can break your system by disabling things... or speed it up by disabling unncessary things. But how do you know which is which? Perhaps to get rid of cupsd (because you never print stuff), or avahi-daemon (because you never use file sharing or chat or other gimmicky network stuff)... it would've been easier and safer to just uninstall them? ...

Anyways, I hope you're now at least a few steps closer to making Linux better for everyone.


Lollypop is a superb GNOME Music Player. It's been in the works for well over a year, and it already looks and works amazingly well.

Adding the PPA

Lollypop supports more than one Linux distro. It supports five, plus FreeBSD. Supported versions: ArchLinux, Debian, Fedora, Opensuse, Ubuntu (duh), FreeBSD.

Installing Lollypop is as easy as adding a PPA, refreshing your sources list, and installing the lollypop packages:

sudo add-apt-repository ppa:gnumdk/lollypop
sudo apt-get update
sudo apt-get install lollypop

The developer added some comment about getting Lollypop to work under 14.04.

  "Not compatible with Ubuntu 14.04 (Do not handle an essential widget)" - gnumdk (Cédric Bellegarde), Lollypop crashes under Ubuntu 14.04 · Issue #427 · gnumdk/lollypop

flathub

Lollypop is also available to install via flathub like so:

flatpak install flathub org.gnome.Lollypop

You can then search for it via your system application launcher, make sure the PPA version is removed, like so apt remove lollypop, otherwise you'll have 2 of the same applications.

Or you can run the app via the terminal

flatpak run org.gnome.Lollypop

Features

First, lets list all of the features:

Artist bio, lyrics

Get artist biography from Wikipedia and Last.fm, read lyrics from Wikia

Cover art downloader

Automatic artwork downloader from Last.fm, iTunes, Spotify

Intuitive browsing

Walk through your collection by genres, artists and album artwork

MTP devices

Sync your music with Android phones and any MTP devices
-Search

Search in your collection by artist, album and title. You can then play searched items, add them to the queue or to a playlist.
Queue

The queue is a source designed to temporarily store the next tracks you want to play.

Fullscreen view

Visual access from your couch

Replay gain

Native replay gain support

Party mode

Let Lollypop play music for you

Compile

Just in case you want the latest and greatest, here is how to compile Lollypop under Ubuntu:

The following dependencies need to be satisfied before you can compile Lollypop:

gtk3
gobject-introspection
gir1.2-gstreamer-1.0 (Debian)
python3
intltool (make)
itstool (make)
totem-plparser
python (make)
python-cairo
python-dbus
python-gobject
python-sqlite
python-pylast >= 1.0

Here are some of the packages for debian based distros: sudo apt-get install autoconf libglib2.0-dev intltool yelp-tools libgirepository1.0-dev libgtk-3-dev

git clone https://github.com/gnumdk/lollypop.git
cd lollypop
./autogen.sh
make
sudo make install

Regarding compiling Lollypop on Ubuntu 14.04 the developer, said:

  "Not compatible. Wait for next LTS" - gnumdk (Cédric Bellegarde), Compile error: syntax error near unexpected token `disable-static · Issue #428 · gnumdk/lollypop

Reference:

For more screenshots and information, see:

Lollypop, a GNOME Music Player - EuroBytes

(I am the author)


How do I compile sndpeek on the latest ubuntu?

Compiling sndpeek (and one of its dependencies) is possible on Ubuntu 12.04, but slightly tricky, so bear with me for this longish tutorial. The mailing lists on the site are useful when you run into problems.

Firstly, there are several dependencies that need to be installed. One is mentioned on the Princeton site and is libsndfile; this needs to be compiled from source itself. Download the source from the site and verify the downloaded file with the gpg signature(see elsewhere on this site for how to do that).

Now it is a simple case of moving to the downloaded folder and running:

./configure
make
sudo make install or sudo checkinstall

However, I have found that other dependencies are necessary for a successful compile; some of which are mentioned in this article. I have added the others that are necessary to this command:

sudo apt-get install libxmu-dev libxi-dev libglui-dev freeglut3-dev libglui2c2 libasound2-dev

Now download sndpeek from the site, unpack it and cd to the folder, then cd to the src folder, which contains a marsyas and a sndpeek folder. As per the useful article here , you need to add #include <cstdlib> to marsyas/LPC.cpp
and #include <cstdio> to sndpeek/RTAudio.cpp. Please place these additions near the other #include instructions at the tops of the files. I found that I did not have to run in terminal export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig, which the readme advocated, so it should not be necessary.

If you have been following these instructions, you should already be in the src folder, so now move to the sndpeek folder within that folder and run make: there will be a choice, as you know, but I would choose alsa.

make linux-alsa
sudo make install or sudo checkinstall

Now enter sndpeek in the terminal to launch it, speak into your microphone to give it some input and you will get a waveform as in the screenshot below.

After you have launched the program, a list of options appears in the terminal, so you can experiment with it as you like: you can, for example, alter the size and nature of the waveform and other effects. There is also the same list of sndpeek options on the official site, which you can print off for reference. You can, for example, play some music with sndpeek (although this was tested with an ogg file, and it will not play all formats):

sndpeek /location/of/track


Ubuntu 17.10 Screen Flickering after Unlock

Not a solution, but a workaround:

Press Ctrl+Alt+F1 to change to another ..console?
Suspend the computer. I close my lid.
Wake up, and it is solved.

This works for me. I experience the problem in Ubuntu 17.10, kernel 4.13.0-25-generic, x86_64, using Gnome classic under Xorg.


I would firstly try changing the cable to the slow computer it could be a dry joint.

Next I'd check that all connections are pushed home fully in the server and at the PC ends. It may do nothing, but it is better than finding out after doing something that may take a lot longer!


Could be the speech-dispatcher in your sound settings. Try muting or disabling it. See here:


Customizing Ubuntu 18.04 UI - How to switch colors for certain UI items?

the package is still here https://packages.debian.org/jessie/gtk-theme-config

you can download it manually and then install the .deb manually too.

Once done you can use it (tested in ubuntu 18.04.02)


If this is a clean install, do a full system upgrade using ethernet connection. After a reboot, your wifi should work. (Happened to me too)


Samba connection time out on big files with Nautilus

Workaround
Using cp inside the terminal works flawlessly, so this proves that it's a  Nautilus 'feature'


Can removing obsolete packages harm a Ubuntu server?

As @GabrielaGarcia said in a comment, this should not cause any issues. These packages are unused and unnecessary, and can be removed without any issue.

Edit: Yes, sudo apt autoremove (or apt-get autoremove) will also autoremove obsolete packages similar to this automatic prompt when upgrading.


Having trouble with Windows Xp + windows 8.1 + ubuntu 14.04lts triple boot

Windows 8.1 automatically sets itself as the default boot up OS so you'll have to change your boot order, turn off fast boot, and change the default OS. You can do all of this from the BIOS menu, which you can access by holding down shift and clicking the Shut Down button from the left menu and then navigating to the UEFI Preferences