Please ensure that the necessary packages are installed by running the following command in the terminal:

sudo apt-get install gstreamer0.10-plugins-bad gstreamer0.10-plugins-base gstreamer0.10-plugins-good gstreamer0.10-plugins-ugly totem libxine1-ffmpeg

Also, please delete the thumbnails that failed to load by running the following command:

rm ~/.thumbnails/fail/gnome-thumbnail-factory/*

In Ubuntu 13.10, the folder changes to: .cache/thumbnails, so you should delete those failed files instead:

rm ~/.cache/thumbnails/fail/gnome-thumbnail-factory/*


Can my Ubuntu server have both FTP and SFTP installed

Yes, it can. These are two different services. The only limitation is that the different services can't use the same port. The default FTP port is 21, while the SFTP connection goes through the SSH port (connection), that by default is 22.

By default Ubuntu Server comes with openssh-server enabled, and the SFTP service is also enabled by default via the configuration file /etc/ssh/sshd_config. So if you are able to establish a ssh connection, you must be able to use SFTP by the same credentials.

There are many FTP servers that you can install, probably the most popular is vsftpd, that allows to setup a secure encrypted connection (by default FTP is not secure enough). Here are few manuals:

Ubuntu Documentation: FTP Server
Digital ocean: How To Set Up vsftpd for a User's Directory on Ubuntu
TechMint: How to Install and Configure FTP Server in Ubuntu


How to reformat drive with Ubuntu 14 installed

When you are in the live USB/CD you need to create a new the partition table. To do this open up a terminal by pressing Ctrl+Alt+T type in

sudo gparted-pkexec

Now make sure you have selected the drive that is encrypted, Then click on Device menu and then click on create a partition table then create a msdos partition table. You shoud be fine with installing Ubuntu.


Putting all lines that match specific pattern at the end of the file

You can use this:

{
    grep -v '^N' file.txt
    grep '^N' file.txt
} > file.txt.temp
mv file.txt.temp file.txt

This works by matching all lines that do not start with 'N' (grep -v '^N') then matching all lines that do start with 'N' (grep '^N'), outputting into a temporary file, then replacing the original with the temp file.

Then if you wanted to use this on all *.txt files in a directory:

for f in *.txt; do
    {
        grep -v '^N' "$f"
        grep '^N' "$f"
    } > "$f".temp
    mv "$f".temp "$f"
done


Script doesn't run via crontab but works fine standalone

One thing at a time:

First let's give you a user based bin folder:

cd ~/ && mkdir bin

You want to use crontab.  Let's start with something really simple:

* * * * * touch /tmp/testing.txt

Okay, so that works

Now let's try running a script that does the same

* * * * * /home/username/bin/touchtest.sh

to run once a minute until you get it working
No you don't need a ./ in the middle of the line.  ./ is for when you are giving relative urls.
Okay, so that works

Now let's try running a script that calls xmessage

* * * * * /home/username/bin/rebootwarn.sh

not working

First we need to not depend on environment variables. This includes path setting, x11 settings, or anything else(python and ruby environment variables come to mind...)

Let's make ours look a bit like anacron's proper cron file..I saved this as test

#Borrowed from anacron
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
#End borrowed from anacron

* * * * *   /bin/bash /home/username/bin/test.sh

Set to run once a minute

crontab test to import it

On to the script

#!/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
export DISPLAY=:0.0
up=$(uptime | grep "day" > /home/dnaneet/uptime.foo && awk < /home/dnaneet/uptime.foo '{ print $3 }')

[[ $up -gt 0 ]] && xmessage -center "Restart!"`

Okay, so that works...what did we do?
We changed all the commands not to depend on paths we didn't explicitly set
We ran our script explicitly with bash
We told the script that we expect to be on DISPLAY :0.0


Changes to exfat partition do not persist

I have exactly the same issue with my micro-sd card!

I believe your SD-card is defected and you should get a new one.

I used mine in my Raspberry as main boot/root drive. At some point after a few months, I noticed that movies and episodes that got added to my Couchpotato and Sickrage, got deleted from the list again, as if they were never there.
After a while I found out that no matter what I wrote to the sd, I would initially see the file with the ls command, but as soon as I rebooted, al changes were rolled back.
I also tried cleaning the entire card in Windows, remove all partitions and create a new one. I got no errors what so ever, but after the change a scan of the card revealed the original partition layout.

I just got a new card.

EDIT: Ok, just tested my card again and copied everything for you to see. Check this out.

First I'll show my SD-card with fdisk and will mount one partition.

pi@RasPI / $ sudo fdisk -l /dev/sdd

Disk /dev/sdd: 16.0 GB, 16021192704 bytes
4 heads, 16 sectors/track, 488928 cylinders, total 31291392 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
Disk identifier: 0x00002483

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1            2048     1673828      835890+   e  W95 FAT16 (LBA)
/dev/sdd2         1679360    31225855    14773248   85  Linux extended
/dev/sdd3        31225856    31291391       32768   83  Linux
/dev/sdd5         1687552     2736127      524288   83  Linux
/dev/sdd6         2744320     2867199       61440    c  W95 FAT32 (LBA)
/dev/sdd7         2875392    31225855    14175232   83  Linux
pi@RasPI / $ sudo mount /dev/sdd7 /sd

Lets see what's on it

pi@RasPI / $ ls /sd
bin  boot  dev  etc  home  lib  lost+found  media  mnt  opt  proc  root  run  sbin  selinux  srv  sys  tmp  usr  var

Now I'm going to delete the home folder on the card and copy some text file from my own home folder onto the card.

pi@RasPI / $ sudo rm -R /sd/home
pi@RasPI / $ sudo cp /home/pi/autoexec.sh /sd

So now let's look for the obvious:

pi@RasPI / $ ls /sd
autoexec.sh  bin  boot  dev  etc  lib  lost+found  media  mnt  opt  proc  root  run  sbin  selinux  srv  sys  tmp  usr  var

Well, home is gone and my script file is visible.

Now I'm going to umount the drive, then re-mount the drive and then check the content

pi@RasPI / $ sudo umount /sd
pi@RasPI / $ sudo mount /dev/sdd7 /sd
pi@RasPI / $ ls /sd
bin  boot  dev  etc  home  lib  lost+found  media  mnt  opt  proc  root  run  sbin  selinux  srv  sys  tmp  usr  var

Well dress me up and call me Sally! The file is gone and my home folder re-appeared! Really, I tried tons of things to erase this bad-ass, but nothing sticks. After all I tried I even got some files off of it I actually forgot to salvage earlier.

It's really weird, but I can't think of anything but a corrupted card.


How can I reset my display settings through terminal?

Removing ~/.config/monitors.xml should do it:

Open a terminal window by pressing Ctrl+Alt+T
type rm ~/.config/monitors.xml and press Enter
immediately log out and back in. It should be reverted now

Alternatively
If you know what resolution your screen supports (e.g. 1440x900), you can run the command:
xrandr -s 1440x900

to at least temporarily set a workable solution, then subsequently change settings from GUI.


ifupdown does not perform parallel IPv4 and IPv6 DHCP requests

GUI method

Open Network Connections go to the IPV4 tab and clear the check-box shown below.

CLI method

Edit the file that matches your connection. In my case it's  NetworkManager/system-connections/Ethernet\ connection\ 1 Your may be different. Look in NetworkManager/system-connections to find it. Look under the IPv4 section and if you have it, remove the line may-fail=false (you could change it to true, but when I clear the checkbox in the GUI method above it simply removes the line so that should do it.)

[ipv4]
method=auto
may-fail=false


How to add program icons to the desktop?

Open the Dash Home, its the icon on the top of the side bar. Enter Terminal in the search box then just click and drag to the desktop. You can also click and drag it to the side bar as well.


Setting

GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash acpi_backlight=vendor”

in /etc/default/grub (and then running sudo update-grub) worked.


Is it wise to run computing virtual machines on KVM?

Your server seems to be a good candidate for a "computing node" hosting several virtual machines. I would recommend reading about MAAS to manage it.


How can I return to my default Ubuntu shell

Just repeat the process... and select the appropriate Desktop Environment I think the default/original is "Ubuntu".


How can I get an "Applications, Places" menu on the top panel in Unity?

The short answer is: you can't.

The closest you can get is using an application indicator called ClassicMenu Indicator, but that will be on the right-hand side with all the other indicators:


Ubuntu 14.04 update failure due to failure in certificate authentication

Have you installed any additional software or drivers, etc.? Try this go to System Settings > Software & Updates and choose another source.


Cursor positioning using mouse in bash possible?

Does that work ? It should print escaped sequences on your terminal when using the mouse

echo -e "\e[?1000;1006;1015h" # Enable tracking

If it works : test my script on github

Details : Read my answer in another post


Hitting SPACE performs a page jump, so it makes going through the CUDA's EULA much faster (a few seconds).


I found a simple solution here. Seems to work good (now that I figured it out.) You can also share other directories beside Public, depending on your need for security. Mine is just for home so this works fine.


Printers Localhost - Can add Printer can't ping the IP address

It's obvious you need to install the gutenprint driver. even though you can see the printer but still you need to install this driver since you stuck on the dialogue showing that.

Search and download your printer driver from here, then I think you can use it normally.


link_stat error: rsync can't find /home/user/ssh?

Aaaaaaah!!! I see it now.
I have the "ssh" still in (coming from an older rsync command template). That is totally unnecessary.
The command should be

rsync -az /home/user/folder user@server.example.com:/home/user/folder.backup &

without the "ssh"...

Sorry to bother you,

Chris

(p.s. I edited some wrong words in my answer)


Can I upgrade to Ubuntu 14.04 LTS with thinkpad T420 graphic hardware?

Your video card is supported starting with nvidia-270 (for 32-bit systems).

For 14.04

Install at least nvidia-346 via

sudo apt-get install nvidia-346

To install nvidia-352 you need an additional PPA

sudo apt-add-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-352
sudo reboot

For 12.04

Install at least nvidia-340 via

sudo apt-get install nvidia-340

To install version nvidia-346 you need an additional PPA

sudo apt-add-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-346
sudo reboot


Microphone not working in Skype unless I switch off autospawn in Pulseaudio

Not sure how to get to the "multimedia > phonon > audio recording" setting mentioned above; but I managed to sort out my own particular issue as follows (and this might not be 100% related to the OPs issue, but there seem to be many people looking for such help)

I noticed that Skype was using my webcam mic, which is built into my monitor and too far away to be useful.  I wanted it to use my headphone mic.  It seemed hard to convince it to change.  Eventualy, I ran pavucontrol, started a test call in Skype, which brought Skype onto the "recording" tab, and here I could see it was recording from the monitor webcam device.  So I chose the internal audio device (basically, my sound card), and all was working well (if a little too loud, but that's easily solved, you never heard anyone complain their mic is too loud in skype!)

No idea why it's so hard to point an application at a different device, or maybe it's skype's fault for not using some sort of 'default' (though I don't see any concept of a default input device in pavucontrol)

HTH


Your package manager is apt ; you need to use it to install firefox and x2go.
sudo apt-get update
sudo apt-get install firefox x2go*


Why do the results of the find command differ when the path is . and when it is ./*?

find . means search from the current directory.
find ./* means search from all files and directories in the current directory that are matched by a *.
However, the * is expanded by the shell, so that find thinks you really typed a command like:
find ./sort ./another-dir ./another-file ./etc -name "so*"

Your observation is correct. By default, a leading * excludes files or directories beginning with a ., so they are never even seen by find.  This is not just hidden files, but also the current and parent directories, so .* usually isn't a good idea!


Windows 7 hangs up after Ubuntu dual-boot installation

to solve ur problem u need to first repair the windows boot loader and after that reinstalling the grub2 after that u can dual boot both the os

  for windows boot loader repair

=> u need a windows 7 repair disc or windows 7 live usb or live cd

boot from any of the above windows disc and go to repair but not to use startup repair instead repair using windows command prompt

type the following two commands in cmd exactly

Bootrec/fixmbr 'press enter'

Bootrec/fixboot 'press enter'

now reboot u can see windows boot loader again

  now to repair grub boot loader

=> u need ubuntu live usb and use " load ubuntu without install" then install boot-repair and repair grub u can see it in this how it is done https://help.ubuntu.com/community/Boot-Repair

if u install windows boot loader u can create a ubutnu live usb in windows using unetbootin(in case if u have a single pendrive currently)

i hope this will solve ur problem


You can go to the menu:

Options → Configure → QuickBuild → User
and define there (in User) the actions that you want by specifying the command pipeline.

For example, I have the following pipeline:

latex -interaction=nonstopmode %.tex | bibtex %.aux | bibtex %.aux | bibtex %.aux |
latex -interaction=nonstopmode %.tex | latex -interaction=nonstopmode %.tex |
dvipdf %.dvi | rm %.aux %.bbl %.blg %.dvi %.log %.out %.toc

Note that at the end of the pipe, I removed files specifying them by their extension (.toc, .aux, etc)

Hope it helps.


The PID of the currently running script is $$

http://www.gnu.org/software/bash/manual/bashref.html#index-_0024_0024

  ($$) Expands to the process ID of the shell. In a () subshell, it expands to the process ID of the invoking shell, not the subshell.


Ubuntu12.10 "Disks" Pendrive 64GB format LUKS+ext4

How does it works is the encryption AES 256?

AES stands for Advanced Encryption Standard and is considered a strong algorithm for cryptography.

  It will ask me the password any time i need access the files on pendrive?

Yes, that's the whole point of having it secured; you'll need to provide a secret to be able to read/write to it.

  Why [...] ext4 + luks [...] "eat" about 130mb?

The Linux Ext2/3/4 file system doesn't 'eat' space - this is either the filesystem overhead, or the reserved space. Similar question: New ext4 partition and used space

  What will happen if insert to anther linux computer?

Depends on the configuration of that other Linux computer. There's no single answer to this. If you need this to work on another PC, you should make sure at least libcryptsetup, a relatively recent Linux kernel and a capable file manager is installed.

  What if i put it into windows with ext drivers installed, will it works asking for password?

No. Besides Ext2/3/4 'drivers' for Windows, you'll need FreeOTFE too.

  Will ext4 + luks not overuse "wear" my pendrive too fast?

It does not feature any optimization for flash drives. The block size of a common USB flash drive is bigger than de default dm-crypt one, so I guess it's not creating additional overhead in terms of wear levelling. However, Ext4 does journalling by default. You may want to turn that feature off at creation time.

  Isn't FAT32 support drive up to 32GB only?

No. Where did you get that information? It supports volumes up to 2-16 TB (depending on the block size). As @Rinzwind pointed out in his comment, Windows might be limited to accessing/formatting up tot 32 GB by default.


Bluetooth problem, 20.10 on raspberry pi 4

I had the same issue, this fixed it :
sudo add-apt-repository ppa:waveform/pi-bluetooth
sudo apt update
sudo apt upgrade


How to make a desktop shortcuts on Ubuntu 20.04?

For Application Shortcuts:
I think TheBuntuNewb's answer is pretty good.
Do that using file manager:

Open /usr/share/applications
Copy the application shortcut to desktop
Right click on the shortcut on the desktop and select Allow Launching

For Folder/File shortcuts:
Either directly use the terminal to create a symbolic link
ln -s <complete path to dir> <shortcut save location>

or

Open the folder in the file manager (nautilus), navigate to the directory to which you want to create a shortcut to.

Right click and select Open in Terminal.

For shortcut to current directory, type and execute
ln -s $PWD ~/Desktop/

For shortcut to a file/folder inside the current directory, type and execute
ln -s $PWD/filename ~/Desktop/

or
ln -s $PWD/dirname ~/Desktop/


How can I change the default program for viewing pictures and photos?

There are two ways to do this.

The Easy Way

The first is to right click on a picture in your file manager, select Properties and then navigate to the Open With tab, then select the application you want and click Close:

The Second Way

You can also right click on files you want to change by right clicking on them selecting Open With -> Other Application ...

From there you will have the option on what program you want to use to open that file, select your preferred viewer from the list:

You need to make sure you check the bottom checkbox.


I have possibly identical network hardware - AR9285 Wireless Network Adapter (PCI-Express) Qualcomm Atheros, and kernel driver ath9k. You did not indicate whether you were using a wired or wireless connection. (I am using a wireless connection.) My symptoms are not identical with yours, but you may want to hear this...

When I upgraded from 15.04 to 15.10 (Unity desktop) I experienced deteriorating DNS performance over a period of weeks until I could only reach my Gmail account, or view web pages cached on Google. I researched the confusing changes in DNS resolution configuration which apparently began with Ubuntu 12.04. These changes involve critical symbolic file links. I reasoned that repeated upgrades may have caused some link in my network setup to be broken during the upgrade, and experimentally deleted my wi-fi connection, restarted, and allowed the session to re-detect my network connection. My network reappeared, I selected it as default, and accepted the default settings, and my network connectivity was restored with DNS resolution working normally once again.

I cannot say I understand precisely what was wrong, but then it's often the case that mysterious problems are solved by a fresh install. In this case simply refreshing your network setup may be something to try. Your network should be re-detected on restart, and no harm done to it. Good luck!


user ubuntu does not have access to /home/ubuntu/.ssh on ubuntu server 16.04.1

Assuming you're entering /home/ubuntu/.ssh with ubuntu user, the most like reason why you don't have access to that directory is that it has been created with another user (e.g. root, if you did it with sudo).

First, take ownership of the folder with:
sudo chown -R ubuntu:ubuntu /home/ubuntu/.ssh

Then, set appropriate permissions with:
sudo chmod 700 /home/ubuntu/.ssh.

Your authorized_keys file must have a 600 permissions, so fix it later if you're going to use it.


Is there are tool for recursively converting 64-bit filenames to 32-bit filenames?

I think what you're looking for is just the rename utility...

For instance this would rename every file longer than 10 character to the first 10 characters:

rename 's/^(.{10}).*/$1/' *

so "superlongfilename" becomes "superlongf" but you run the risk of files overwriting each other if they truncate to the same name. You can to a "trial run" without making any real changes with the "-n" switch, which will just print what it would do.

The rename utility supports regex (obviously) so you can match/replace/substitute as needed to meet your needs...


xubuntu 12.04 can't change desktop background/wallpaper permanently

Because of the way Xfce is built, if you change settings and do not save session, the changes are not saved. It is not automatic. Menu -> Log out -> save session must be checked.


Rhythmbox restarts active session and puts on login screen

The problem was caused by gdm I reinstalled gdm which solved the problem.

To reinstall gdm i used tasksel and reinstalled the gnome desktop manager


Go to System Settings -> Startup and Shutdown (in the System Administration section) -> Session Management. Change the On Login option at the bottom to Start with an empty session, and then click Apply.


Big icons on desktop after upgrading 16.10

With Nautilus, use the top right icon (mozaic), then you will find a cursor to modify the size of your icons (desktop and Nautilus).
The smallest is not that small... With 16.04 it was possible to reduce the size (i.e. 66%) in nautilus preferences, but this changed with 16.10.
Neither dconf-editor nor Unity tweak tools offer tools to do this.


Why is there no Prolog compiler in the software center

Install gprolog package for the compiler.

The Software Center doesn't display things which aren't applications that won't show up in the main menu, generally. System packages are filtered out. If you search for gprolog in Software Center though, you should be able to install it.


Why does the more command not work when bound to a keyboard shortcut?

Use this command:

notify-send "$(more /home/tim/autest.sh | head -4 | tail -1)"

When you use your script with a shortcut, more gives this:

::::::::::::::
/home/tim/autest.sh
::::::::::::::
#! /bin/bash

Here is an excerpt from the source code of more.c

while (fnum < nfiles) {
  if ((f = checkf (fnames[fnum], &clearit)) != NULL) {
      context.line = context.chrctr = 0;
      Currline = 0;
      if (firstf) sigsetjmp (restore, 1);
      if (firstf) {
        firstf = 0;
        if (srchopt) {
            search (initbuf, f, 1);
            if (noscroll)
              left--;
        }
        else if (initopt)
            skiplns (initline, f);
      }
      else if (fnum < nfiles && !no_tty) {
        sigsetjmp (restore, 1);
        left = command (fnames[fnum], f);
      }
      if (left != 0) {
        if ((noscroll || clearit) && (file_size != LONG_MAX)) {
            if (clreol)
              home ();
            else
              doclear ();
        }
        if (prnames) {
            if (bad_so)
              erasep (0);
            if (clreol)
              cleareol ();
            putsout("::::::::::::::");
            if (promptlen > 14)
              erasep (14);
            putchar('\n');
            if(clreol) cleareol();
            puts(fnames[fnum]);
            if(clreol) cleareol();
            puts("::::::::::::::");
            if (left > Lpp - 4)
              left = Lpp - 4;
        }
        if (no_tty)
            copy_file (f);
        else {
            within++;
            screen(f, left);
            within = 0;
        }
      }
      sigsetjmp (restore, 1);
      fflush(stdout);
      fclose(f);
      screen_start.line = screen_start.chrctr = 0L;
      context.line = context.chrctr = 0L;
  }
  fnum++;
  firstf = 0;
}


Syntax error running command from a script

This line is the culprit:

xml= /home/lukas/Desktop/automatic/test/resample_s2.xml

You must remove the space after =. With the space, it tries to execute the right part of the assignment as separate command, which explains why it shows errors about "unexpected tokens" in the XML file.


How to set up VirtualBox Bridged Network on Windows 7 Host?

Here's a similar situation and what I did to resolve.  I had my network settings set to NAT, which resulted in my guest not using the hosts network adapter. The ip was set and then I found out later:

Search for:

I've installed BigBlueButton using the VM, but I can't access it from a browser

On this page:
http://code.google.com/p/bigbluebutton/wiki/FAQ

Even though I switched I needed to refresh my guest network adapter to pick up a new ip address, use the commmand ifconfig in the guest to find out what IP its using and set bbb-conf setip to that ip address result from ifconfig.  The guest will use the host's adapter to get out to the web/network.

For a Putty connection, run this command on your guest:
sudo apt-get install openssh-server

Run Putty with the ip from above (ifconfig result) with port 22.

Here is a good read on host-only networking:
http://christophermaier.name/blog/2010/09/01/host-only-networking-with-virtualbox


File icon with a cross, what does it mean?

You don't have read permission for that file.


How can I see which packages were removed with apt-get autoremove?


Is there any "always below" option for the windows, like the "always on top" one?

First

Install Compiz Settings Manager from Ubuntu Software Center or by clicking here.
Then open it (Alt + F2 and type ccsm and hit Enter).
Go to Windows rules and choose the windows you want to be placed "always below".

Second

If you want a shortcut to change what you want to "below":
You can create a shortcut for a command. For example, open ccsm, go to Commands > Commands and add this to one Command line:

gconftool-2 --set --type=String /apps/compiz-1/plugins/winrules/screen0/options/below_match class=Gedit

Then go to Key Bindings and choose your shortcut.

You can create another shortcut to undo this. For example:

gconftool-2 --set --type=String /apps/compiz-1/plugins/winrules/screen0/options/below_match 0

If you want, I can make a script to toggle an app below and above.

Third

If you want to toggle below or above you can put this command into a shortcut:

i=$(gconftool-2 --get /apps/compiz-1/plugins/winrules/screen0/options/below_match) ; if [ $i = "0" ] ; then gconftool-2 --set --type=String /apps/compiz-1/plugins/winrules/screen0/options/below_match "class=Gedit" ; else gconftool-2 --set --type=String /apps/compiz-1/plugins/winrules/screen0/options/below_match 0 ; fi

at this example I have used class=Gedit, you can change it to suit your need.

Fourth

1) Install Compiz Settings Manager and xdotool from Ubuntu Software Center or by clicking here and here.

2) Open ccsm (Alt + F2 and type ccsm and hit Enter).

3) Go to Commands > Commands and add this to one Command line:

sleep 0.2 ; xdotool click --clearmodifiers 1 ; f=$(xdotool getwindowfocus) ; i=$(gconftool-2 --get /apps/compiz-1/plugins/winrules/screen0/options/below_match) ; if [ $i = "0" ] ; then gconftool-2 --set --type=String /apps/compiz-1/plugins/winrules/screen0/options/below_match xid=$f ; else gconftool-2 --set --type=String /apps/compiz-1/plugins/winrules/screen0/options/below_match 0 ; fi

4) Go to Button Bindings and set it (for example to Super + Mouse-Button-1):

Enjoy ;-)


From this line
/dev/sdb1 on /media/nuc/500GB type fuseblk
(rw,nosuid,nodev,allow_other,default_permissions,blksize=4096)
I see that external drive filesystem is NTFS and it was by default mounted without respect to NTFS permissions. In this case all files/directories will have the same permissions and attempts to change them will be ignored.

I have solved similar problem by making permanent share with explicit settings:
write line
UUID=C848-2413 /mnt/E_DRIVE vfat rw,user,exec,umask=002
into /etc/fstab where UUID is from sudo blkid. (Then mkdir /mnt/E_DRIVE, setting permissions, then umount / mount.)

Simpler alternative is to install special tool:
https://apps.ubuntu.com/cat/applications/quantal/ntfs-config/


I'm using Ubuntu 13.10 and tried to use my HP LaseJet P1102w but it wouldn't respond to the printing requests, neither with Wi-Fi or USB cable connected. Ubuntu 13.10 already comes with this printer pre-configured with default settings. You should be able to just choose it on a list and use, with no need to "add a new printer".

However, for me the default setting (HPLIP libary and driver 'hpcups 3.13.9') didn't work. When you send a request to the printer, the LED blinks but nothing else happends. Switching to the alternative driver 'Foomatic/foo2zjs-z2', already included with Ubuntu 13.10, solved the problem. Now it works via Wi-Fi or USB cable.

In case you don't know how to, or don't want to, change the default instalation, you can add a new printer following this step-by-step:

1) Turn on you printer

2) Go to 'System Settings' and 'Printers'

3) Choose 'Add printer'

4) Select your printer on the list of Wi-Fi printers brodcasting on your area (Network printers). If you prefer to connect to the printer via USB, just connect the cable, prior to this step, and choose the printer shown to be connected via cable, shown on the top of the instalation window.

5) Choose the 'HPLIP' option that will show up on the right frame.

6) Enter the names you want to use to identify it and click OK, to finish. Your printer should have been added now to the list of installed printers.

7) Double-click on you printer icon, to go to the properties.

8) Click on 'Change' at 'Make and Model'.

9) Choose 'HP' on the list of manufacturers.

10) Choose model 'LaserJet Pro P1102w' and the only driver that will show up  (Foomatic/foo2zjs-z2). If you choose the recommended model 'LaserJet Professional P1102w' the driver option that will show up is 'hpcups 3.13.9', which, at least for me, didn't work out. Click next.

11) I recommend to choose 'new PPD', although the re-use of an older PPD can also be used. Click Apply.

12) Your printer should be responding properly now.

If it works for you or not, leave a feedback and/or rate this question/answer to help the Ubuntu Community to improve the system!

Cheers!


You can't run Intel x86 executables on ARM CPUs because the latter don't understand the instruction set of the former (even though both have a word length of 32 bit).

However, you can install Eclipse from Ubuntu's software repositories which contains an armhf build of it:

Enable the “universe” repository section (see How do I enable the “Universe” repository?), if you haven't already, and update the package list after the change:

sudo apt update

Install the package:

sudo apt install eclipse

Unfortunately, the version of Eclipse in the repositories is pretty old (over 3 years) and building a recent version from source is non-trivial. I also doubt that you're going to have much fun with a resource-heavy interactive application like Eclipse on a low-resource system with an ARM A7 like yours. If you want to develop software for ARM systems you may want to look into cross-compilation which would allow you to develop software on your (x86-compatible) desktop computer which then runs on other platforms (ARM).


Ubuntu partition has slower network speeds than Windows one

After a couple weeks of research, I've found that my wireless card is simply not supported. There are plenty of other questions on AskUbuntu about the RTL8821AE card, or even just RealTek.

Here is what I found did not help:

No difference: Disabling BlueTooth or IPv6
No difference: Using the unofficial drivers from Github
Unavailable: official drivers from RealTek for RTL88xx series

Since this was disrupting my workflow far too much, I decided to purchase the following item. I like this option, because I can utilize dual-band wifi (see stats in question).

NETGEAR Universal N600 Dual Band Wi-Fi to Ethernet Adapter

While I did not try them, other options include:

Use a USB Wifi Adapter (best for laptops or micro PCs)
Install a new wireless card (best for the regular desktop)

As mentioned in the question, I was getting poor speeds on Ubuntu, compared to Windows. Now, on the 5.0 GHz network (through adapter), I get 80/80 on both Windows, Ubuntu 15.10, and Ubuntu 16.04.


Bluetooth on XPS13 9370 with Ubuntu 18.04 disappears

This is a known problem, lots of info at this question. AT least your XPS appears to sleep...mine doesn't, it just suspends, hoping both will get fixed!Edit:you will need to read the comments...


I don't know the reason why, but I will show what I did and solved the problem:

Start Additional Drivers Application
Check NVIDIA legacy binary driver version 304.117 from nvidia-304 (proprietary, tested) button.
Restart

and that's OK!


ubuntu installer fails to recognize an empty partition

I have tried to change this unallocated partition into a simple (active) partition using Windows DiskManager, and even to a formatted (EXT3) partition by using EaseUS Partition manager.  The ubuntu installer still sees only the non-existent tight space, which the pop-up in the desktop says is absolutely full (/usr, /var, etc.) at 4.7 GB, and fails to see the 100GB partition in the hard disk.


Unity missing? Can't see top or side panels

Try the following:

Type the following in to a terminal:

dconf reset -f /org/compiz/

then

setsid unity

If this is an issue with Unity settings that will reset your config to default.

I hope that helps.


I have already downloaded Eclipse from the Software Center but how do I get ADT?

Eclipse is not longer supported for Android development. Download Android Studio instead and follow these steps.

The new IDE is built on IntelliJ IDEA Community Edition, the popular Java IDE by JetBrains.

Or, if you really need Eclipse, install the Eclipse ADT plugin

Start Eclipse, then select Help > Install New Software.
Click Add, in the top-right corner.
In the Add Repository dialog that appears, enter "ADT Plugin" for the Name and the following URL for the Location:

https://dl-ssl.google.com/android/eclipse/

Note: The Android Developer Tools update site requires a secure connection. Make sure the update site URL you enter starts with HTTPS.
Click OK.
In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
In the next window, you'll see a list of the tools to be downloaded. Click Next.
Read and accept the license agreements, then click Finish.

If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.
When the installation completes, restart Eclipse.

Source


The wireless is now up and working.  I dug through syslog and saw that wpa_supplicant was giving up at the end with a reason code of 14.  I tracked down what this meant and found it was a MIC Error.  That made me wonder about the Wireless Access Point I was using.  I tried a new one and everything came right up.  The WAP had been working fine with a number of other devices which is why I didn't suspect it earlier.

Dave


recursively add directory name to file name

Using Perl rename and find:

$ find source -type f | rename -n 's:(^|.*/)([^/]*)/([^/]*)$:destination/$2$3:'
rename(source/dir2/file3.ext3, destination/dir2file3.ext3)
rename(source/dir2/dir3/file4.ext4, destination/dir3file4.ext4)
rename(source/dir1/file1.ext1, destination/dir1file1.ext1)
rename(source/dir1/file2.ext2, destination/dir1file2.ext2)

The regex (^|.*/)([^/]*)/([^/]*) saves the last two components of the path (the filename and parent directory) as the second and third matched groups.

The destination directory must exist before running this. The -n is for testing, remove it for actually moving the files.


Are some laptops running better on windows than on Ubuntu

In order to justly compare, all recommended drivers should be installed in the laptop running Ubuntu (Asus).

The laptop requires additional, proprietary, Nvidia drivers for the graphics card. At the time of this writing the version to install is 430.


How to access Office 365 Calendar? (Ubuntu 18.04 LTS 64bit)

A temporary approach I've found is to disable the "try the new Office" switch at the upper right on Office Online. Seems like the old version of Office Online does work just fine on Ubuntu Firefox, whereas the new edition doesn't work at all!

Update at May, 10:

The calendar works again in any browser (tested in Firefox, Chrome and Chromium). I assume, that it was a bug on their web application which they fixed. Thank you, Microsoft! :)


Nothing Seems to be wrong with your package system

you may need to download and install new updates open up a terminal and type in

sudo apt-get update && sudo apt-get dist-upgrade -y

now try to install wine1.6 open up a terminal and type in

sudo apt-get install wine1.6

if that still dose not work open up /var/log/dist-upgrade/apt.log with a text editer.

sudo nano /var/log/dist-upgrade/apt.log

Locate any "broken" packages and remove them with sudo apt-get remove <package> if you have trouble locating the broken packages in the apt.log copy its text and add it to you're post by editing it.

Ok you have broken packages remove them by typing in this command.

sudo apt-get remove aptitude:i386 brasero wine

Then run

sudo apt-get update && sudo apt-get dist-upgrade -y

then install wine

sudo apt-get install wine1.6


How to make a Script to switch on/off wifi till internet starts working?

The following seems to work:

while :
do
  echo restarting network manager...
  service network-manager restart
  echo sleeping for 30 seconds...
  sleep 30
  echo trying to access a web page...
  wget -O /dev/null vecka.nu && exit 0
done


swap partition shows as unknown in gparted

Now that the question is better formatted, I can make more sense of it.

Yes, your swap partition is being used, as swapon -s shows. It is a 2GB swap partition of which 56 KB is being used. (You can also check with the free command.)
To GParted and most tools, the encrypted swap partition is a section of meaningless data with no detectable file system (as it should be), so they show it as "Unknown". If they ever do show it as a swap partition, SOMETHING IS VERY WRONG.
No, you need not replace the line in fstab (the one with /dev/mapper/cryptswap1 with the UUID of the cryptswap1 partition. The commented out UUID is of the swap partition as it was originally created and should remain commented out.
You can add more encrypted swap using swap files. A combination of https://askubuntu.com/a/178726/158442 and https://askubuntu.com/a/396137/158442 (replace the devices with the path of the swap file in the steps for encryption).

All that said, it looks to me your problem is unrelated to swap.


mkfs.ntfs is not found, through the ntfs-3g package is installed

Broken symlink:
The symlink to the mkfs.ntfs is wrong.

:~$ locate mkfs.ntfs /sbin/mkfs.ntfs
:~$ ls -l /sbin/mkfs.ntfs
lrwxrwxrwx 1 root root 16 Feb 25 15:52 /sbin/mkfs.ntfs -> /usr/sbin/mkntfs
:~$ ls -l /usr/sbin/mkntfs ls:
cannot access /usr/sbin/mkntfs: No such file or directory

Replace the old link with the /sbin/mkfs.ntfs -> /sbin/mkntfs then mkfs.ntfs will work.

Remove the current symlink:

sudo rm -f /sbin/mkfs.ntfs

Then create the correct link:

sudo ln -s /sbin/mkntfs /sbin/mkfs.ntfs

A bug has already been filed.


How to remove Kubuntu 15.04 without loosing Ubuntu?

Undo the damage by running

apt-get remove --auto-remove qml-module-org-kde-kio kde-telepathy-minimal liboxygenstyle5-5 k3b-data kimageformat-plugins libgpgme++2 kde-style-breeze-qt4 kdenetwork-filesharing libkblog4 plasma-widgets-addons libqt5concurrent5 libkimap4 ttf-oxygen-font-family gtk3-engines-oxygen freerdp-x11 libk3b6-extracodecs user-manager libktpwidgetsprivate8 libksieve4 gpgsm kwalletmanager kde-telepathy-call-ui libqtgstreamerui-1.0-0 frameworkintegration libktpotrprivate8 mysql-server-core-5.6 kwrited libakonadi-kcal4 kdepim-kresources libkf5style5 ark kmail libkf5waylandclient5 libokularcore6 plymouth-theme-kubuntu-logo ksysguard libqt4-sql-mysql libmailtransport4 libkf5unitconversion5 kde-telepathy-filetransfer-handler breeze-cursor-theme akonadi-backend-mysql kde-config-gtk-style-preview libkpimtextedit4 mysql-client-core-5.6 liblastfm1 libtag-extras1 kdepimlibs-kio-plugins libkpeople4 libqrencode3 libakonadiprotocolinternals1 libbalooxapian4 akonadi-server kubuntu-notification-helper kdemultimedia-kio-plugins cdparanoia libplasma-geolocation-interface5 libmessagecomposer4 libweather-ion7 cdrdao libibus-qt1 bluedevil kdeconnect libbalooqueryparser4 libzip2 libkwinxrenderutils6 libakonadi-notes4 kwin-style-breeze orion-gtk-theme libktpmodelsprivate8 kde-cli-tools libksieveui4 muon-discover libkfontinst5 libeventviews4 libkf5emoticons5 libkf5texteditor5 libmicroblog4 libkf5wallet5 libkcddb4 amarok-utils kded5 libmailcommon4 libktpcommoninternalsprivate8 libmusicbrainz5-1 sddm-theme-breeze libkf5networkmanagerqt6 libkdepim4 libpowerdevilcore2 kaddressbook libreoffice-style-breeze soprano-daemon libkf5krosscore5 libmessageviewer4 libsoprano4 vcdimager libcln6 kde-style-breeze libbaloopim4 okular libkf5threadweaver5 libqca2-plugin-ossl plasma-runners-addons libqtgstreamer-1.0-0 ubuntu-release-upgrader-qt python3-pyqt4 python3-pyqt5 sshfs kde-config-touchpad muon-common libkf5su-bin kdesudo libkf5xmlrpcclientprivate5 libxerces-c3.1 kde-telepathy-data kcalc libkf5screen6 libkf5filemetadata-data libkworkspace5-5 libqmobipocket1 systemsettings ktexteditor-katepart gstreamer-qapt libkolabxml1 libsyndication4 libotr5 libksane0 libkf5khtml5 libkprintutils4 libmuon libtaskmanager5 knotes scdaemon libincidenceeditorsng4 libkf5balooxapian1 libkf5jsembed5 qml-module-org-kde-kcoreaddons libk3b6 amarok kde-telepathy-contact-list kubuntu-desktop gwenview libcalendarsupport4 libkcalcore4 baloo-kf5 libkmbox4 libkwineffects6 libakonadi-contact4 libakonadi-socialutils4 plasma-widget-kimpanel muon-notifier libkf5js5 libpowerdevilui5 ksshaskpass qtdeclarative5-kf5solid libpoppler-qt5-1 libkholidays4 libtelepathy-qt5-0 libkf5prison1 qml-module-org-kde-draganddrop libqtscript4-gui kde-telepathy-legacy-presence-applet libkf5filemetadata-bin qt5-image-formats-plugins python3-pykde4 qml-module-org-kde-solid breeze libao-common libxcb-record0 libtomcrypt0 kio-extras-data libkcompactdisc4 kde-config-telepathy-accounts debconf-kde-data kio-audiocd libkabc4 okular-extra-backends kde-telepathy-auth-handler liboxygenstyleconfig5-5 plymouth-theme-kubuntu-text libkdecorations2private5 qdbus-qt5 libqimageblitz4 libkf5webkit5 libjs-prototype ktorrent-data kde-config-tablet libkf5newstuff5 libqt5designercomponents5 libbaloowidgets4 kmenuedit akregator python3-dbus.mainloop.pyqt5 libxcb-xtest0 kate libkf5emoticons-data libkresources4 libkwalletbackend5-5 libkmanagesieve4 qtgstreamer-declarative kde-config-sddm libkf5emoticons-bin qttools5-dev-tools kde-telepathy-kpeople libqtscript4-network libksane-data ibus-qt4 libkwin4-effect-builtins1 plasma-nm apturl-kde libqgpgme1 print-manager qml-module-org-kde-extensionplugin libksignalplotter5 plasma-desktop-data libtelepathy-qt4-farstream2 libkipi-data libkdecorations2-5 libakonadi-kmime4 gtk2-engines-oxygen libkf5kiontlm5 libfollowupreminder4 korganizer libkf5sysguard5 kde-telepathy-text-ui libkcal4 libkmime4 ksysguardd kontact libmailimporter4 libakonadi-calendar4 libprison0 libsendlater4 libsignon-qt1 libkf5khtml-bin libprocesscore5 libkldap4 libqca-qt5-2-plugins libqt5quickwidgets5 kubuntu-settings-desktop kde-telepathy-approver kamera libbaloofiles4 libtelepathy-qt4-2 libfakekey0 libnoteshared4 qml-module-qtmultimedia libakonadi-kde4 libreoffice-kde libjs-scriptaculous libkf5baloo1 libscim8c2a oxygen-sounds libqt5multimediawidgets5 mysql-common libkf5itemmodels5 libgrantlee-gui0 socat libkdepimdbusinterfaces4 libboost-thread1.55.0 libkf5krossui5 apport-kde libkf5khtml-data qtdeclarative5-kf5declarative kio-mtp ksystemlog libqt5multimediaquick-p5 libkfontinstui5 liboath0 sddm libmessagecore4 libqtglib-2.0-0 libstoken1 libkf5su5 qml-module-qtquick-controls kubuntu-driver-manager libmygpo-qt1 libknewstuff2-4 dragonplayer libmysqlclient18 libgps21 kde-telepathy-send-file khelpcenter libkidletime4 qapt-deb-installer breeze-icon-theme plasma-dataengines-addons libfreerdp-rail1.1 libkf5wallet-bin libtemplateparser4 about-distro dolphin libbluedevil1 polkit-kde-agent-1 kinfocenter amarok-common libkf5waylandserver5 kwin-data libqtscript4-uitools libxcb-composite0 qml-module-org-kde-kquickcontrols libkcalutils4 libbaloocore4 powerdevil-data kwin-addons plasma-desktop skanlite kdegraphics-strigi-analyzer libdmtx0a libprocessui5 plasma-framework libtommath0 libperl4-corelibs-perl qml-module-qtquick-controls-styles-breeze libloudmouth1-0 libktnef4 libkf5newstuff-data kde-style-oxygen-qt5 libkf5plasma5 libflac++6 libkf5filemetadata3 libkf5dnssd5 libkleo4 pam-kwallet libqalculate5-data libkf5jsembed-data libopenconnect3 software-properties-kde libkwinglutils6 ktorrent libqca-qt5-2 libkf5sysguard5-data krdc libksgrd5 milou libqtscript4-core partitionmanager kdeplasma-addons-data powerdevil kscreen libkf5runner5 ktexteditor-data libkf5plasmaquick5 libkfbapi1 libxcb-damage0 kde-cli-tools-data kdeconnect-plasma plasma-wallpapers-addons libkpimidentities4 konversation-data libreoffice-style-oxygen k3b libkipi11 phonon4qt5-backend-gstreamer libqt5multimedia5-plugins libao4 libkfilemetadata4 libdebconf-kde1 libktorrent-l10n libkolab0 libepub0 libkdgantt2-0 plasma-workspace qml-module-org-kde-runnermodel libqgsttools-p1 libqtscript4-xml kubuntu-web-shortcuts libtelepathy-logger-qt4-1 libkpimutils4 kate5-data khotkeys pinentry-qt4 kde-config-gtk-style khotkeys-data libkalarmcal2 kross libkgapi2-2 libkubuntu1 python3-sip kmix kio libqalculate5 baloo-utils ksnapshot libktorrent5 libakonadi-kabc4 konversation kwin libpimcommon4 libktploggerprivate8 kde-config-whoopsie qml-module-org-kde-kquickcontrolsaddons libkpgp4 libkf5modemmanagerqt6 kio-extras libkexiv2-data libkf5dnssd-data muon-updater kde-telepathy kde-telepathy-declarative libaccounts-qt1 libkf5unitconversion-data libqtscript4-sql ksysguard-data libkexiv2-11 libkontactinterface4 libmessagelist4 kinit kde-telepathy-integration-module libgrantlee-core0 libkf5idletime5 libxfreerdp-client1.1 kdepim-runtime

(all the packages that were installed with kubuntu for me, could be different for you).

You can find the packages to remove in this file:

/var/log/apt/history.log

after the line

Commandline: apt-get install kubuntu-desktop

Details here.


Cannot login to UbuntuOne since upgrade to 11.10

I had to open the Muon Package manager, searched on Ubuntu One, selected everything that was not for debugging and installed.  After, I went to "Settings", and found a "Ubuntu One"
option.  I selected it and it ran the installer.


Dual boot disaster. Professional help needed

You have two disks. Your Linux is installed on the first one, /dev/sda which is probably where your Windows used to be. From the output you posted I am fairly sure that you have lost your Windows install.

A Windows install needs a partition with a Windows file system (NTFS usually) and that would have been visible in the output of parted -l. Since no such thing is apparent, it is safe to conclude that you overwrote your Windows installation with Linux.

You have installed nothing, and in fact have not even setup any file system, on your second hard drive (/dev/sdb). The only thing you can do is restore from your backups if you have them or, if you had important data and no backups (argh!), you will have to pay a lot of money to get a professional data recovery company to attempt and get back some of your files. If you want to do the latter, to increase your chances of getting your old data back stop using your computer immediately. The more you use it, the likelier it is that any traces of your old data that might still be around will get lost. Sorry.


This may help you to get setup Using GParted

It seems you need GParted to Do this ..

Here to the Instillation Steps in official Site

Server Guide


Virtualbox 4.2 not booting any virtual machines

This command must run with root privileges. Try:

sudo /etc/init.d/vboxdrv setup

Also try purging everything:

apt-get purge virtualbox-4.1 virtualbox-4.2

then reboot, reinstall VirtualBox 4.2, and run:

sudo apt-get -f install

to install any missing dependencies.

Run sudo /etc/init.d/vboxdrv setup again to make sure the VirtualBox kernel module is installed.


How to manually add a boot loader on a EFI partition, in a dual-boot case?

You could have copied the /EFI/Boot & /EFI/ubuntu folders from the second ESP to the first. And then used efibootmgr to update actual entry in UEFI to use correct ESP.
You can only have one working ESP per device. Boot flag is used by parted/gparted to define the ESP using a long GUID that the UEFI uses to find the ESP.
Easiest now just to reinstall grub2. And Boot-Repair makes that easy.
If you have issues, post the link, otherwise I expect the auto fix will work, but be sure to boot Ubuntu live installer in UEFI mode & add Boot-Repair to it.
Please copy & paste the pastebin link to the Boot-info summary report ( do not post report), do not run the auto fix till reviewed.
https://help.ubuntu.com/community/Boot-Repair
https://help.ubuntu.com/community/Grub2/Installing#UEFI


How to perform unattended installations of Ubuntu Desktop?

There is no real difference between server and desktop version despite the package-set being installed.

There is a meta-package called "ubuntu-desktop", bringing all packages installed with Ubuntu Desktop. There are also meta-packages for Kubuntu, Edubuntu, Lubuntu and Xubuntu available in default repositories.

Just use a tutorial for Ubuntu server and add this package to your kickstart-file instead of server-related packages (there are other meta-packages like "openssh-server" being installed depending on what services are chosen during installation). If none are chosen (or listed in kickstart-file), you get a minimal Ubuntu-system without anything.

Example for the relevant part in Preseed-file:

### Package selection
tasksel tasksel/first multiselect ubuntu-desktop
#tasksel tasksel/first multiselect lamp-server, print-server
#tasksel tasksel/first multiselect kubuntu-desktop

Example file found here

same for Kickstart-file:

%packages
ubuntu-desktop

Don't use @ubuntu-desktop, what means installing a package-group, but in deb-world a package-group is a meta-package which pulls other packages as dependencies.


I've managed to change my Login Screen by modifying this file: /etc/lightdm/lightdm-gtk-greeter.conf , instructions documented in the LightDM Ubuntu docs

sudo vim /etc/lightdm/lightdm-gtk-greeter.conf

#/etc/lightdm/lightdm-gtk-greeter.conf
[greeter]
#background=
background=/home/mallory/Pictures/wallz/loginwall.png
hide-user-image=true
position="30% 50%"

It states in the file: background = Background file to use, either an image path or a color (e.g. #772953)


How do I make my BIOS boot on shimx64.efi file?

If you can boot into Ubuntu, then you don't have anything to do. (because your BIOS already boots the sda2/EFI/ubuntu/shimx64.efi file).


Performance issues after upgrading to 13.04

Maybe you've got an overheating issue, possibly caused by dust and debris clogging up the aluminum cooling fins around the fan(s). You can search for any answers having the word Psensor in them if you want to find out more about how to monitor your hardware temperatures. I don't think that overheating is your problem though, because it often causes crashing and your problem is freezing.

What does often cause freezing is a failing graphics card. If your computer has a graphics card and you are fortunate enough to have a spare graphics card that you can temporarily swap with your GeForce GT 540M, then you can test this possibility for yourself.

If neither of these two possibilities proves to be the cause of your performance issues, then at least you will have narrowed down the range of possible causes of your performance issues. What would help you in this case is to take a look at the answers to What should I do when Ubuntu freezes?.


Weird colors on Chrome on Ubuntu 20.04 after latest update

I'm having the same issue. As far as I found, changing the desktop shortcut adding --force-color-profile=srgb works. Like this:
google-chrome-stable --force-color-profile=srgb


Why dd is not a reliable command to write bootable .iso files to USB thumb drive?

With Ubuntu 12.04 it is possible to dd the .iso file to a disk to create a bootable disk. It only works with some isos (including Ubuntu 12.04, but not earlier Ubuntu versions) because booting from CD and booting from a disk are handled differently on BIOS based systems.

Among other things, for a hard drive to be bootable it must contain boot code in the first sector, for a CD to be bootable it must contain boot code "at sector 11 (17 decimal) in the last session on the CD" according to the El Torito specification. Since the boot code, at least the initial portion loaded by the BIOS, is stored in different places for CDs and hard drives, a disk image can have boot code in both places so that the bootloader is loaded if the image is booted as a hard drive or as a CD.

Most iso files are only designed to be bootable as CDs, and so they contain no boot code in the first sector of the image and thus a hard drive containing such an image won't have boot code in its first sector and won't be bootable.


Set shortcuts for workspace switching and windows moving

Answers:

Don't use Alt+key, but Alt+Super+key or Ctrl+Super+key as a lot of Alt keys have been reserved over the years.
It's a reserved keystroke for opening the window menu in applications since 1987 in the CUA.  It's like Alt+F4: that's close and "cannot" be re-defined.
This is hard-coded in Unity. Again: "cannot" be done.

Now having said this, It's open source software, so you can take a C programming course, and descend into to bowels of Ubuntu and change the code to whatever you like!  But that would take me about a month, so for a reputation 1 user, I guess 2 years...


Handling laptops with docking stations on XFCE

Old question but maybe helps someone

sudo nano /etc/lightdm/lightdm-gtk-greeter.conf

Edit/create field

active-monitor = Monitor to display greeter window (name or number). Use #cursor value to display greeter at monitor with cursor.


How to write "o" with upper-line in Ubuntu?

If you haven't already done this, configure a compose key by going into System Settings > Keyboard > Layout Settings > Options... > Compose key position. (I've set mine to Right Alt.)

Then, all you have to do is type Compose + -, then o and you'll get an ō. This works for the other letters, too, as well as several different types of accents. For example, ' instead of - will give you an acute accent, ` will give you a grave accent, , will give you a cedilla, ^ a circumflex, and ", an umlaut.


WLAN interface not detectetd on Acer Aspire VN7-791

This wireless adapter is supported in Ubuntu 15.10 after running

sudo apt-get update && sudo apt-get upgrade

You need to be connected to internet by wire to get the updates.

If you like an LTS version of Ubuntu, you can get the adapter work there using this answer


Its in the todo list but not yet supported for the driver you are using.

BCM 4313 card uses the opensource broadcom driver called brcmsmac and not the proprietary driver wl. If you want to light-up the Led you need to blacklist brcmsmac and in some cases bcma as well and use proprietary driver. So what you may need is:

Temporarily

sudo rmmod brcmsmac
sudo rmmod bcma
sudo modprobe wl

Permanently

In /etc/modprobe/blacklist-b43.conf add blacklist brcmsmac blacklist brcmfmac blacklist bcma

I had to remove bcma module as well but it may not be the case with every card. But I had performance issues with  the wl driver especially with powersave mode so I avoided installing it and use the kernel provided driver.


bash (and expr) can not do floating point arithmetics, you need to take help of bc.

For example :

$ IDLE=$(mpstat | grep "all" | cut -c 92-)

Lets say $IDLE is 77.25.

Now you need bc :

$ IDLE=77.25

$ CPULD="$(bc <<<"100 - $IDLE")"

$ echo "$CPULD"
22.75

bc operates on files, so we can pass the manipulation string via STDIN, although i prefer here strings :

$ echo "100 - 45.34" | bc
54.66

$ bc <<<"100 - 45.34"
54.66

On a different note, to get the IDLE % of CPU, instead of mpstat | grep "all" | cut -c 92- you can do :

mpstat | grep -Po 'all.* \K[^ ]+$'


14.04 Cleanly upgrade to ppa:ondrej/php from ppa:ondrej/php5-5.6

The old php5-* packages are coinstallable with the new phpX.Y-* scheme, so the first thing you need to do is to install and enable new packages:

Apache 2.4

You need to install new libapache2-mod-phpX.Y packages and then disable the old php5, and enable new versioned module, f.e. for PHP 5.6:

sudo apt-get install libapache2-mod-php5.6
sudo a2dismod php5
sudo a2enmod php5.6

NGINX/Apache 2.4 with PHP-FPM

This is even more straightforward, just install phpX.Y-fpm and change the socket path in your webserver configuration to /run/php/phpX.Y-fpm.sock and copy the old configuration, f.e. for PHP 5.6:

sudo apt-get install php5.6-fpm
# now change the socket path in your nginx/apache2 configuration
# and restart the server

If you have defined more FPM pools, you need to copy the old configuration to the new path, again for PHP 5.6:

# keep the new www.conf
sudo mv /etc/php/5.6/fpm/pool.d/www.conf /etc/php/5.6/fpm/pool.d/www-5.6.conf
# copy the old configuration to the new path
sudo cp /etc/php5/fpm/pool.d/* /etc/php/5.6/fpm/pool.d/
sudo update-rc.d php5-fpm disable # or uninstall php5-fpm package
# restart PHP 5.6 FPM to read the new configuration
sudo service php5.6-fpm restart

Now if you want to remove the old packages, you might run into some problems as there might be packages that require old php5* names, you might want to add ppa:ondrej/php5-compat that provide thin layer of compatibility packages that map php5-<foo> to php5.6-<foo> for main php5* packages:

sudo add-apt-repository ppa:ondrej/php5-compat
sudo apt-get update
sudo apt-get dist-upgrade

Definitely try this first in non-production environment!  The good side is that this keeps the old configuration in /etc/php5 untouched, so you can migrate the old settings.

After updating the main PHP packages, you might want to lookup rest of the php5-* packages and install their equivalent, e.g.

apt-get install php-apcu # for php5-apcu
apt-get install php-memcached # for php5-memcached

I'll prepare an update to php5-compat repo, that will make this mappings automatically.

The more up-to-date text, can be always found in the DEB.SURY.ORG PPA Wikis.


gnome-terminal is a default application. It is installed with Ubuntu. There was no need to install it again. The termial you used before actually was gnome-terminal.

When you removed gnome-terminal you removed other important packages.

You should be able to fix it by

sudo apt-get install --reinstall ubuntu-desktop


I get an error: could not write bytes: Broken pipe

I would just update to the latest Ubuntu version 13.10 with a clean install and then install the AMD drivers with:

sudo apt-get install fglrx

Or from the Ubuntu GUI on the restricted controller tab.

Hope its the fastest and quickest way to solve your problem.

PS: If you are not an Enterprise there is no need to use LTS versions, always update to the latest version.


Why is my country/city not acknowledged in the clock location selection?

The location database for 11.04 and newer is handled by the ubuntu-geoname package, it's a community contributed set of data. If it's incorrect for your country then you can submit data to it to be included, instructions to doing that is available here:

https://bugs.launchpad.net/ubuntu-geonames
How do I report a bug?

For 10.10 and older (anything running gnome-panel), you can report a bug for libgweather:

http://live.gnome.org/LibGWeather/ImprovingLocations


Alternate CD install missing wallpapers?

Install it through

sudo apt-get install ubuntu-wallpapers-precise

For offline downloading through launchpad refer this

“ubuntu-wallpapers” source package in Precise

Or the site webupd8.org here

Ubuntu 12.04 Wallpapers Updated (Community, Default Wallpaper)

Through the Cd image Contents list it is there. Search for wallpapers there, you will find it.


Node.js "UserLogged" function returning "undefined". Why?

It looks like you are trying to return something from inside a callback function. Javascript basically works asynchronously for i/o operations. The function declared inside the .exec() is the callback function here.

I found this link useful to understand asynchronous coding.
https://blog.risingstack.com/node-hero-async-programming-in-node-js/

You could change your code similar to this to make it work

function UserLogged (session, callback) {
  if (session === null) {
    var err = new Error('Not logged in');
    err.status = 400;
    return callback(err);
  }
  User.findById(session.userId)
  .exec(function (error, user) {
    if (error) {
      return callback(error);
    }
    else {
      if (user === null) {
        var err = new Error('Not authorized!');
        err.status = 400;
        return callback(err);
      } else {
        console.log("User found and ok!");
        callback(null, user);
      }
    }
  });
}

The callback argument should be a function similar to this

UserLogged(session, function(err, user) {
  console.log(err);
  console.log(user);
})

Passing "err" as the first argument for the callback function is a nodejs standard.

Hope this helped you :D


Grub fails to install on dual boot on macbook pro

Firstly, make sure to back up your data.  You are playing with drive partition tables and may accidentally delete or format your Mac partition.

If your mbp is one of the newer ones, there are some issues.  I have no experience with that, but there are details at https://github.com/chisNaN/ubuntu-on-macbook12 and https://gist.github.com/roadrunner2/1289542a748d9a104e7baec6a92f9cd7#file-0-linux-on-mbp-late-2016-md

As far as grub goes, make sure you are installing in EFI mode.  I've had the best luck by installing grub itself to the EFI partition.  You'll want to configure Ubuntu to mount your EFI as /boot/efi, and to install grub there.  If the installer doesn't give you that option, you are probably not in EFI mode.


I've got the same problem on another laptop and you can try this:
sudo rfkill list

you'll know if your wifi card is not restricted

then you could try install compat-wireless-3.6.6-1-snpc

sorry for my english.:)


How do I install "Need for Speed World"?

I don't think Need for Speed World can be run on Ubuntu, at least not without difficulties. It's designed specifically as a Windows application.

In some cases, you can still use Wine, but it's no guarantee. It is far beyond the scope of this site. However, wine itself has a community that is suitable for those types of things.

For Need for Speed World, you can look here.


I have only guest account. How do I create new account with administrative privileges?

sudo command can be used by the accounts which have administrative privileges. Guest account does not have such privileges. Thus, you can't use sudo there. Also, there is no other account except guest, you need to create a new account with administrative privileges from recovery mode.

To create a new account with administrative privileges, follow the instructions step by step:

Hold Shift as soon as system power on to see GRUB menu. GRUB menu looks like this:

Go to Advanced options for Ubuntu and select any kernel version with (recovery mode)

Select root and press Enter for maintenance

You'll get a prompt as root@hostname. Run useradd for adding user and passwd to set password. Also, to run sudo commands you need to add this user in sudoer list.

useradd <username>
passwd <username>
adduser <username> sudo
reboot

Account is now created. You can login with the password you have provided earlier.

sudo must work now. Open a terminal to check if it works.


Ubuntu server has two ip addresses not sure why

This answer fixed my issue. Instead of trying to delete 109, I instead deleted 108 (secondary) after disabling and stopping dhcpcd.
update-rc.d dhcpcd disable
service dhcpcd stop
ip addr del 192.168.0.108/24 dev eno1

https://raspberrypi.stackexchange.com/a/33910


How do I enable thumbnails for text files in nautilus?

This is a bug. As all the icons in question were all in a Ubuntu One synchronized folder, the live text preview (which works differently for text files and for other filetypes,  hence the inability of scripts to regenerate thumbnails to make thumbnails of text files) does not work because Ubuntu one uses emblems and they break the live text preview.


There is a daemon that runs on Ubuntu called Pulse Audio. Most applications make requests to use the sound device to pulse and it decides how and which one to give the privilege to (or mix if necessary).

The link above has details. It's where you should begin searching.


Problem Upgrading to ubuntu 15, cant access files

Try this:

Put the Ubuntu DVD into the DVD-drive and restart the computer.

You should see a welcome screen prompting you to choose your language.

Choose your preferred language and click on ‘Try Ubuntu’.

Your live desktop should appear.

Open a terminal,Press Ctrl+Alt+T

Run it:

sudo -i
fdisk -l

Suppose the fdisk reports / (root) is /dev/sda1, continue running:

umount /dev/sda1
fsck -a /dev/sda1
mount /dev/sda1 /mnt
mount --bind /dev /mnt/dev
mount --bind /dev/pts /mnt/dev/pts
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
chroot /mnt
dpkg --configure -a
apt-get -f install
apt-get update
apt-get dist-upgrade
apt-get install --reinstall ubuntu-desktop
apt-get autoremove
apt-get clean
reboot

Replace /dev/sda1 with his /.


I think it is decided not by Ubuntu but by the program (LibreOffice, OpenOffice etc.). I could not see anything related to LibreOffice per se but OpenOffice has a nice wiki with some details on how this "Font Fallback" works. It might be applicable to LibreOffice also, in general.

I am reproducing some sections from the wiki below for clarify. It is hard to explain better than what is in the wiki, so better to read it from there:

What is Font Fallback in OpenOffice.org 2?

Font-Fallback kicks in whenever a font is requested that is not installed on the system. (Not installed means: not available to OOo).
OOo then tries to use a different font from the ones that OOo knows about that matches the requested one as close as possible.

How does Font Fallback work?

For font-fallback to produce satisfying results, OOo somehow has to know about similarities of fonts. OOo must know that it can for example substitute Helvetica in place of Arial, but not Comic Sans. This task is not as easy as it sounds, since many fonts exist and OOo cannot know about all of them.

OOo uses several ways to find a suitable replacement:

Font alias information provided by the system (e.g., from a fonts.dir file)
Hard-coded list of fallback-fonts, from VCL.xcu (tried first)
Alternative font name spellings
Font-attributes (e.g., does it have CJK-characters, is it a Symbol-font) or style (serif/non-serif, proportional/non-proportional)

if all that fails as well:

use a default font

Not directly related but this TLDP document is a good read.


Window screenshot with Unity Global Menu enabled

Installing Shutter would work (as Mitch mentioned in the comments above), but you can also just use the default screenshot program.

One option is to hold down shift+alt, then let go of shift (but still hold alt) and finally hit PrtSc. Holding and letting go of shift prevents the menu or HUD from being invoked.

You can also just set a delay. Type screenshot into the Dash, then select Grab the current window with a time delay of your choice. One set, the settings will disappear and you can select the window you want an image of.


Can I bind a hotkey to a spanish character?

You can type this character in using: Ctrl+Shift+ U then type 00f1 and press enter.

Also we can use xdotool to bind a key for this character, if xdotool is not installed first install it (around 60kb) using:

sudo apt install xdotool

Go into keyboard settings, add a custom keyboard shortcut with this content:

sh -c "xdotool type ñ"

The best result I got was binding a Fx key.


Can't install Ubuntu on macbook1,1 2006 "This kernel requires x86-64 CPU, but only detected an i686 CPU"

It looks like you're trying to install a version of Ubuntu that's not compatible with your machine. There are many different types of processors (CPU), and an important distinction is between 32 bit processors and 64 bit processors. You can read more about the differences for example here or here.
The processor in your machine seems to be a 32 bit processor. i686 is a 32 bit architecture, and Intel Core Duo was a line of 32 bit CPUs. Today, most software is built for 64 bit processors, including the Linux kernel. Some companies or projects publish versions for 32 bit processors additionally, but those become less and less.
From a technological standpoint, the best action would be to get a more modern machine with a 64 bit processor. But that may not be realistic.
The "main" Ubuntu flavor isn't offered for 32 bit machines anymore. Also more light-weight flavors like Xubuntu or Lubuntu stopped building 32 bit relases three or four years ago.
There are a lot of others Linux distributions besides Ubuntu that maybe are still offering installation media for 32 bit machines. But I don't know enough about those to recommend one. It also depends on what exactly you'll need the computer for at school. Your best shot probably is to find a Linux user group near you and ask for their expertise.


Watchdog: BUG: soft lockup - CPU#4 stuck for 22s!

Hi I have exactly the same problem with my acer.

You can try the steps below:

Turn off the AMD settings on the 'Advanced' tab on the BIOS.
When installing ubuntu, highlight the 'install ubuntu' selection and press e.
Go to the line with 'linux' and at the end put space and add 'pci=noacpi'
Press F10 and the installation process will begin.

Hope it works out for you!


Upgrading to 21.04 from 21.10? Not sure if I should?

Ubuntu 20.10 will reach End Of Life in three months (July 2021). After that, you won't receive any security patches anymore.
So, yes, you should release-upgrade your system to 21.04 sometime during the three-month window.

Pro tip: DO NOT WAIT until the last minute. Once that window expires, it becomes much harder to release-upgrade your system.

Pro tip: A release-upgrade is a non-trivial event. The first step of a release-upgrade should be backing up your data. Just in case.

Non-LTS releases of Ubuntu release every six months in April and October (that's the .04 and .10 in the release number), so start marking your calendar. Each release has a life of only nine months; users of non-LTS releases expect to release-upgrade twice each year. In exchange for that 40-minute chore, users get newer software and bugfixes.
If you don't want to release-upgrade every six months, you can install an LTS release instead. Those are supported for five years (20.04 LTS is supported until April 2025).


Intel Wireless Dual Band 7260 keeps on enabling and disabling on its own repeatedly (Ubuntu v20.04)

Your wireless device shows as UNCLAIMED because, although the correct driver loads, it is no longer able to find the correct firmware file. You deleted it.
Please do:
sudo apt update
sudo apt install --reinstall linux-firmware

Reboot. I suspect that your wireless is working, albeit disconnecting all too frequently.
Your wireless may be dropping because of power management; that is, the feature where the card partially powers down to save battery power during periods of inactivity and then, ideally, powers back up seamlessly when activity resumes. Let's disable pwer saving to see if it helps. From the terminal:
sudo sed -i 's/3/2/' /etc/NetworkManager/conf.d/*

Your wireless may be dropping because the channel to which it was connected has suddenly changed.
Please check the settings in the router. WPA2-AES is preferred; not any WPA and WPA2 mixed mode and certainly not TKIP. Second, if your router is capable of N speeds, you may have better connectivity with a channel width of 20 MHz in the 2.4 GHz band instead of automatic 20/40 MHz, although it is likely to affect N speeds. I recommend a fixed channel, either 1, 6 or 11, rather than automatic channel selection. Also, be certain the router is not set to use N speeds only; auto B, G and N is preferred.
Your wireless may be dropping because there are two wireless access points with the same name and password. This is typical when you have a 2.4 gHz segment and a 5 gHz segment of the same router. Your wireless may be roaming, looking for a better connection. If this is the case, I suggest that you rename the access points; something like myrouter2.4 and myrouter5.
After making these changes, reboot the router.
Next, I recommend that your regulatory domain be set explicitly. Check yours:
sudo iw reg get

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

Of course, substitute your country code if not Iceland. Set it permanently:
sudo nano /etc/default/crda

Change the last line to read:
REGDOMAIN=IS

Proofread carefully, save and close the text editor.


/etc/openvpn/ is empty by default (ok, except for update-resolv-conf). The server.conf file is copied from /usr/share. From that page:

sudo cp /usr/share/doc/openvpn/examples/sample-config-files/server.conf.gz /etc/openvpn/
sudo gzip -d /etc/openvpn/server.conf.gz

Depending on your goals, this guide may also be of interest to you:

How do I setup OpenVPN so I can securely use the internet from an unsecured hotspot?


Ubuntu 18.04 different scaling for bulit-in and external monitor

I had the same question today, the answer from travis-wayland helped me Different display scale settings - 18.04

the xrand setting he gives is for 1600x900 monitor - you need to adjust for your resolution

here his answer:

Go to setting > displays > set scale to 200%

Connect to dell monitor, type xrandr to check for id of two monitors. Here I assume you have monitor 'HDMI-0' of 3840x2160, monitor 'HDMI-1' of 1600x900. Now I want to place 'HDMI-1' to left, 'HDMI-0' to right.

Run the following

  xrandr --dpi 276 --fb 7040x2160 --output HDMI-0 --mode 3840x2160 --pos
  3200x0 --output HDMI-1 --scale 2x2 --panning 3200x1800+0+0

(Note: 7040 = 3840+1600x2, 3200=1600x2, 1800=900x2)


How do you get sound working on a Windows 7 guest OS in KVM on Ubuntu 11.10?

This is a known bug with KVM, and there are several bug reports and potential work arounds.

Some people have reported using alternate sound drivers, the es1370 in particular.

If that does not work , try editing /etc/libvirt/qemu.conf and changing vnc_allow_host_audio = 0 to

vnc_allow_host_audio = 1

Restart libvirtd or reboot.

For additional information , see these links.

https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/591489/comments/11

https://fedoraproject.org/wiki/How_to_debug_Virtualization_problems#Audio_output


Install Ubuntu on USB Flash Drive or USB powered external HDD?

For running Ubuntu/Linux off of a external hard drive connected via USB then it's actually quite simple to do. Here are the steps, or rather, the steps I took.

Please Note: The following steps were tested using Ubuntu Version 9.10, but has not been tested with the later versions. Use at your own risk & discretion.

What You Will Need

A Computer with Internet access.
A LiveCD or LiveUSB with Ubuntu.
An external Hard Drive with USB capability.

What To Do

Open up your computer and remove the Hard Drive.
Plug in your external USB Hard Drive via the USB cable.
Stick in your LiveUSB or LiveCD and then boot up your PC.
Open up the boot menu, and choose to boot from the LiveCD/LiveUSB.
During the installation process you should your external hard drive listed, install Ubuntu to that.
Finish the installation process, turn off your PC, and put your other hard drive back into your computer.
Reboot your computer, go to the boot menu and select your external hard drive and attempt to boot from it. If it does congratulations, you now have an external hard drive with a full fledged Operating System on it.
Enjoy your external hard drive running Ubuntu/Linux!
Please do let me know if this helps you! If not let me know about that too. :)


How can I check Internet connectivity in a console?

Checking whether specific website is up

First, multiple good online monitoring services are available. To pick one, Pingdom includes free account for monitoring one target. (Disclaimer: I am not affiliated with Pingdom in any way).

Second, using wget --spider for your own script is a good idea. You'll get some false positives when your computer is down, or when your DNS server is not working. Checking the return code is straightforward way to do implement this:

wget --spider --quiet http://example.com
if [ "$?" != 0 ]; then
  echo "Website failed!" | mail -s "Website down" your_email@provider.tld
fi

Yet again, there are shortcomings in this approach. If your provider has cached your DNS record, but the DNS server is down, others can't access your site even though monitoring says everything is fine. You can write short workaround with host, for example host example.com <your dns server IP>. That will return error if DNS server is not responding, even if OpenDNS or your own provider's DNS server works fine.

Checking whether internet is working

There isn't really easy way to handle this in every case.

You can for example run ping -c1 on multiple well known sites (for example www.google.com, facebook.com and ping.funet.fi) and check return codes to determine whether any destination is reachable. You can automatically check return code by using variable $?. Parameter -c1 is limiting number of ping packets to one.

You may encounter problems with some public wifis when there is a login gateway that redirects all pings and HTTP requests. If so, you may get ping responses and non-error HTTP status codes, even when you can't access any other sites.

If you want to check cable state, you can use

sudo ethtool eth0

From output (excerpt):

Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
Link detected: yes

However, this is not telling whether you really have connectivity or not, just whether cable is connected and something is on other end.


I think the time machine volume is journaled. As I know Ubuntu cannot write on journaled format without some stuff. If you have your Mac available, plug in the Installer DVD/USB into and run the Disk Utilities from there and disable journaling on your time machine. Maybe this helps. Or you install some stuff to enable HFS+ Writing. (see this link from superuser.com)

I suggest the permission-error comes from ownership, cause you are not the owner of the folders and files. So you could try to run chown command?


vpnjantit.com features free ssh tunnel, thanks for the resource information
NO SHELL is available

You cannot log in to a shell, you can only create a tunnel
More info: https://www.ssh.com/ssh/tunneling


Saw this by accident. Check out those scripts I wrote a while ago while trying to write a Tox client for Ubuntu: https://github.com/nikwen/ubuntu-toxcore-cross-compilation-scripts

They will allow you to cross-compile toxcore from an Ubuntu desktop computer.

You will have just to adjust the SDK version number in the setup script and possibly the git repo in build-toxcore.sh.


How to start multi-threading multiple processes with one command

Please try sudo etherape & sudo wireshark

I hope this answer help you.


Ubuntu doesn't login after broken update

Considering every solution doesn't work at this point and that you want to keep your Windows files : I would probably recommend making a backup of important files (or those you want to keep) using a Ubuntu LiveUSB and moving the files to a cloud-based service (e.g. Google Drive or Dropbox)


I changed my PSU to cooler master msw white 650W this solved my graphic card and power issues. The main problem, which I thought was my Hard drive. Even after checking my hard drive using different software everything was showing fine. The problem was the SATA cable! I changed it to new one.


WiFi driver is not installed on Asus PCE AC68?

Sorry that I have to add this as an answer, as I don't have rep to comment yet.
Thanks to chili555 reply and racar comment I now have the PCE-AC68 working on my system, Ubuntu 15.04 on mobo ASUS A88XM-A by

sudo apt-get install bcmwl-kernel-source
sudo modprobe wl
sudo reboot

I wanted the card as I've upgraded my cable modem + wifi router to Telstra Gateway Max (rebadged Netgear) which supports dual band wifi. Link speeds specified as 216/292 Mbps. It's probably not ideally set up yet as I'm only getting about 30 Mbps - I note that it's 802.11abg connection from iwconfig:

wlan1     IEEE 802.11abg  ESSID:"Telstra226B"
          Mode:Managed  Frequency:2.437 GHz  Access Point: 40:5D:82:47:F4:66
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:on

But at least it is working now, and faster than my old Netgear WN111 usb plugin :) So thank you again.


gpointing-device-settings lost on reboot

In dconf-editor you can edit the settings like this:

Go to org/gnome/settings-daemon/peripherals/touchpad
There you can select e.g. two finger scrolling instead of boarder scrolling, disable while typing, tap-to click and all the other nice usability-enhancing features.

Maybe it's not as nice as gpointing-device-settings, but if they are not able to keep their tool updated, just forget about it and use dconf-editor.

this seems to affect hundreds or thousands Linux Users from many distributions it seems. https://bugs.launchpad.net/ubuntu/+source/gpointing-device-settings/+bug/489830


pgAdmin4 error "Failed to launch the application server, server thread exiting."

For me, when I run pgadmin like Thomas Landauer says, I got this error:

$ sudo python3 /usr/share/pgadmin4/web/pgAdmin4.py
Traceback (most recent call last):
  File "/usr/share/pgadmin4/web/pgAdmin4.py", line 58, in <module>
    exec(open(file_quote(setupfile), 'r').read())
  File "<string>", line 47, in <module>
  File "/usr/share/pgadmin4/web/pgadmin/setup/data_directory.py", line 29, in create_app_data_directory
    _create_directory_if_not_exists(config.SESSION_DB_PATH)
  File "/usr/share/pgadmin4/web/pgadmin/setup/data_directory.py", line 15, in _create_directory_if_not_exists
    os.mkdir(_path)
FileNotFoundError: [Errno 2] No such file or directory: '/var/cache/pgadmin/sessions'

The error says what is the problem, so I created the folders:

$ sudo mkdir -p /var/cache/pgadmin/sessions

And after restarting pgAdmin4, it first asked for user creation, then worked.


You should install CUDA 10.1. A clear instructin about how to remove any exsiting CUDA and how to install 10.1 could be found here:
https://medium.com/@exesse/cuda-10-1-installation-on-ubuntu-18-04-lts-d04f89287130


Open the hidden Network Connection Editor
There is a hidden app that does not show when you search for it. To open this app, open a terminal by pressing Ctrl+Alt+T and enter:
nm-connection-editor

This will open the Network Connection Editor as below:

Select your WiFi Network
Click on the Settings "cog" icon below

See the picture below for the next screen:

Select the General tab
Check the box next to Automatically connect to VPN when using this connecion
Select the VPN from the drop-down menu below.
Click the Save button below to save the changes.

Unhide Network Connection Editor
To make Network Connection Editor show up in applications searches in Gnome, do the following:
Go to /usr/share/applications and find the icon for “Network Connections”. Right click and edit as administrator. Comment out the line:  NotShowIn=KDE;GNOME; to:
#NotShowIn=KDE;GNOME;

Now it will show up in the “Show Application”
Hope this helps


One way would be by creating alias in your ~/.bashrc file:

alias l1='ls -1'

then by typing l1, ls -1 will be executed


What can be harmed by incorrect power off, and what can be checked?

The easiest way to check the ext4 file system is to add

fsck.mode=force

as a boot parameter.

It can be done in /etc/default/grub, or manually on boot.

For older systems that use upstart run

sudo touch /forcefsck

and reboot.

The command will create an empty /forcefsck file that will tell the system to check drives on boot.

On boot, before the file system is mounted fsck will run and show if there are errors.

Otherwise you will need to boot from some external device.


What can be done when my Ubuntu completely hangs and nothing works?

There are few things you can do :

restart the window manager (see here how to do it). This will forcefully log you out
switch to command console and kill or restart the problematic program (ctrl+alt+F1 (or F2-F6)).


Battery usage got very high after switching to Ubuntu (HP Pavilion G6-2348SG)

You should consider installing jupiter

You can select power modes with it, and it's very easy to control. It really saves out battery.

Open terminal and do this.

Add the repository

sudo add-apt-repository ppa:webupd8team/jupiter

Update

sudo apt-get update

Install jupiter

sudo apt-get install jupiter

And to other people reading this and are using an Asus EEPC netbook, install this asswell

sudo apt-get install jupiter-support-eee

Have a nice day :)


How to set environment variable before running script inside hooks/install?

HOME isn't set in the Juju hooks, only a few environment variables are.

You should be able to just run

COMPOSER_HOME="/path/you/want/to/be/home" php composer.phar install

which will set the environment variable before executing php.


Go to System Settings -> Mouse and Touchpad

There should be settings for pointer speed for both touchpad and mouse.


Screen brightness not changing Ubuntu 16.04 Dell Inspiron N7010

I used the terminal commands listed both in & below the following YouTube video, to successfully control the brightness in Ubuntu MATE 16.04, on a Lenovo G570 laptop:

"Brightness Indicator : Easily control screen brightness in Linux Mint (Ubuntu)"
https://www.youtube.com/watch?v=k5_HyOT519U

You can simply copy/paste them from below the video (running them one after the other), into your terminal window.

Alternatively, have you simply tried the FN key + Down Arrow ?


Problem installing network printer [Solved]

Answered by OP in question:

  I was not able to ping to the IP that the printer LCD was showing. I have changed the IP through the printer and reinstalled the printer on my computer. Things are working fine now.


Installing "joomla" problem, how to turn off "output buffering" on PHP?

fixed it by restarting apache2, i simply ran this command:

  sudo /etc/init.d/apache2 restart


Java Swing JFrame doesn't work in Ubuntu

Java should work everywhere. Try to download a simple Java application from Internet too see if it works or not.

I think you need to set the position of your JFrame. Try
frame.setLocation(x, y);


I bet it was Nautilus taking over !
If it happens again terminate nautilus in task manager. If you want to switch to xfce permanently get rid of Nautilus in favor of Thunar or maybe PCMan.


Embed web app into a desktop application

WebKitGTK+ is the port of the portable web rendering engine WebKit to the GTK+ platform. Random tidbits about WebKitGTK+ can be found at GNOME's Wiki.


This is more a workaround than a solution, since a solution isn't possible until we know what the problem is (hence the troubleshooting questions I've asked above).

Clearly, some of your settings are corrupted. Try doing this from a console (Ctrl+Alt+F1):

mkdir configuration_backup

# Get rid of any possible dotfiles that might cause trouble. You
# might not have all of these, and you might need to modify this
# list a bit. The files/directories will go to the newly-created
# configuration_backup directory so you can restore them if
# appropriate.
mv .config .dbus .gconf* .gnome* .gtk* .local .metacity configuration_backup

After this, you should be able to log in graphically. However, these steps will destroy many of your settings (unless you restore everything from configuration_backup. You'll have to redo them. If you can provide more details about your situation, there might be a solution that won't destroy your settings. Or, it might be easier to just accept this workaround and simply redo your settings.

If you later decide you want to restore your settings, look in the backup directory (~/configuration_backup) and find the name of the file or directory you want to restore. If you can't see what you want, use ls -A (command line) or Ctrl+H (Nautilus) to see the hidden files. I recommend that you first backup and delete the file/folder of the same name in your home directory. Then, copy one file/folder at a time to your home directory (e.g., cp -a ~/configuration_backup/.config ~), logging out and back in each time to make sure your old config files don't break your system.


Keyboard shortcuts not working after upgrading to Kubuntu 18.04

Ok, this time settings seem to be saved after reboot. So what I did it somebody will face the same issue:

reinstalled libkf5globalaccel-* and libkf5globalaccelprivate5, checked that kglobalaccel5 starts from console. Do not use kglobalaccel command.
replaced $HOME/.config/kglobalshortcutsrc with the default one from github
added kglobalaccel5 to autostart, rebooted.
fixed wierd shortcuts for Alt+F1, etc. via Global Shortcuts (Alt+Tab also needed reassigning).

Screenshots still does not work though. Custom Shortcuts -> Take full scree shot works. It does not launch Spectacle, shows popup notifying that screenshot was saved. Spectacle crashes when launched by hotkey somewhy (but works ok if launched manually).

UPD: Screenshots configured through Custom Shortcuts stopped working again, looks like a separate bug.


My mouse is detecing every button as button 1, what can I do?

hope this helps...I am currently in the same boat sorta.  I am using the M65 on raring ringtail. works fine except for the "sniper mode" button i think that is what it is referred to as.

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

i am learning this as i go...so sorry if this didn't help.


What's the normal temperature of a AAO751h?

I assume that is CPU temperature. That seems in line with other processors of its type. 75ºC should be the upper limit to what you ever see.

If it's getting above 80ºC for extended periods, you might have a problem. Above 100-110ºC and you need to turn it off and get it fixed.


To write an Image to a sdcard, you CANT write it on a partition (in that case sdb1) you've to put to the sdcard itself.

sudo dd if=sdcard.img of=/dev/sdb

Might works.


iptables on ubuntu desktop using android internet connection

Solved it. The ip i tried to whitelist made some problems, dont know what exactly. but the following whitelist seems to work with other ips.
Note that some websites require additional services like cdn or jquery etc to run.
#start fresh
iptables --policy INPUT   ACCEPT;
iptables --policy OUTPUT  ACCEPT;
iptables --policy FORWARD ACCEPT;

iptables -Z; # zero counters
iptables -F; # flush (delete) rules
iptables -X; # delete all extra chains

#this seems to be essential for dns
iptables -A INPUT -s 192.168.42.129 -j ACCEPT
iptables -A OUTPUT -d 192.168.42.129 -j ACCEPT

#whitelisted domain
iptables -A INPUT -s 77.247.84.129 -j ACCEPT
iptables -A OUTPUT -d 77.247.84.129 -j ACCEPT

# drop the rest
iptables -P INPUT DROP
iptables -P OUTPUT DROP
iptables -P FORWARD DROP`enter code here`


Newly installed Ubuntu 16.04 on AMD feels slow

Opening tabs on mine is in a milisecond to couple of milliseconds latency.  Instantaneous in other words.
Questions:

1) What sort of HDD do you have? SSD?
      A SSD will significantly increase the performance of your laptop if you have a mechanical one!  Sell you HDD if it is mechanical and use that to get a SSD.

2) sudo apt update && sudo apt install preload;
      Preload will learn what you open and run the most and preload them into volatile cache in ram.

3) Did you play around with swappiness by any chance?  Increasing swappiness can give the feeling of latency if stuff usually in ram is all of a sudden in the swap. If the swap is in a mechanical hdd and not a ssd, it would be even worse. Swappiness defaults are the best from my experience.

4) Don't shutdown but go to suspend instead. Doing so preserves stuff in memory (ram) for faster access when you restart your session including your cached application usage.

Try and address all of the above.  If not try point 2 at least.


First of all, sudo -i opens the root folder automatically. That's what -i does.

Second, on Linux you must use forward slash, not backslash to define a path. Use cd /folder.


Two Monitors, login does not show up - Ubuntu 14.04

One thing you can to do to begin troubleshooting is disable the quiet splash boot options. See this answer: https://askubuntu.com/a/477828/366932

Once you do this, you'll see system messages fly past as the system boots. When things freeze, take a look at the last few lines displayed -- that will hopefully give you some hint about where things are going wrong.


How do I theme the Nautilus background image?

Open the file /usr/share/themes/MyTheme/gtk-3.0/apps/nautilus.css
(Requires root permission).
Add this line:

NautilusWindow * {background-image:url("bg.jpg");}

where bg.jpg is the background image you want to display.
Run nautilus -q to kill all open file browsers.
Run nautilus.

This will apply background to all classes present inside NautilusWindow.You can identify the classes where you don't want to apply background and add background-image:none;
Example:

NautilusWindow .sidebar,
NautilusFloatingBar,
NautilusWindow .sidebar .view {
    background-image: none;
}


Accidentally copied files to wrong directory

Piece together solutions available in Stack Exchange.
If you do enough research you will find a solution by combining these five answers:

How do I compare file names in two directories in shell script?
How can I remove the first line of a text file using bash/sed script?
Command to prepend string to each line?
giving grep output to rm
How do I make rm not give an error if a file doesn't exist?

Trial Run
First run the command without rm (remove) option to ensure correct files are being found:
$ find /usr/local/bin/ /bin/ -printf '%P\n' | sort | uniq -d | tail -n +2 | awk '{print "/bin/" $0}'

/bin/.auto-brightness-config
/bin/auto-brightness-config
/bin/bell
/bin/bell/bell-select-menu
    ( ... OUTPUT SHORTENED ... )

How it works
find returns the filenames in Directory 1 (/usr/local/bin) followed by Directory 2 (/bin(:
Directory 1 Files in no particular order

bbbbb
aaaaa
yyyyy

Directory 2 Files in no particular order

echo
aaaaa
zcat
bbbbb
egrep
yyyyy

sort sorts the two directories' filenames alphabetically

aaaaa
aaaaa
bbbbb
bbbbb
echo
egrep
yyyyy
yyyyy
zcat

uniq -d reports only the duplicates

aaaaa
bbbbb
yyyyy

This gives us a list of Directory 1 filenames that were accidentally copied into Directory 2. But there is a blank line at the top of the list.
tail -n +2 removed the blank line at the top of the list.
awk '{print "/bin/" $0}' prepends /bin/ to each filename so we have:

/bin/aaaaa
/bin/bbbbb
/bin/yyyyy

Append the rm command to pipeline
Now that we've confirmed output is correct append the rm command via xargs. Note if you have filenames with special characters read the fourth link above for exceptional handling.
$ find /usr/local/bin/ /bin/ -printf '%P\n' | sort | uniq -d | tail -n +2 | awk '{print "/bin/" $0}' | xargs rm -f
rm: cannot remove '/bin/.auto-brightness-config': Permission denied
rm: cannot remove '/bin/auto-brightness-config': Permission denied
rm: cannot remove '/bin/bell': Is a directory
rm: cannot remove '/bin/bell/bell-select-menu': Permission denied

The Permission denied error appears because we must use sudo powers to run the command. Note the error '/bin/bell' is a directory.  Later we will have to manually removed the directory with rm -d command.
sudo powers required for /bin directory.
The reason permission denied errors occurred is because root owns the files in /bin we want to delete and our regular user ID isn't allowed to delete them.
Note depending on how you copied the files into the target directory you may not need need sudo powers to delete them. For example if you are defined as the owner of the files in the target directory.
Now lets run command with sudo powers:
$ find /usr/local/bin/ /bin/ -printf '%P\n' | sort | uniq -d | tail -n +2 | awk '{print "/bin/" $0}' | sudo xargs rm -f
rm: cannot remove '/bin/bell': Is a directory
rm: cannot remove '/bin/bell/sounds': Is a directory
rm: cannot remove '/bin/startup-scripts': Is a directory
rm: cannot remove '/bin/zap': Is a directory
rm: cannot remove '/bin/zap/Assembly-Intro-hello': Is a directory
rm: cannot remove '/bin/zap/Assembly-Intro-hello/BeOS': Is a directory
rm: cannot remove '/bin/zap/Assembly-Intro-hello/FreeBSD': Is a directory
rm: cannot remove '/bin/zap/Assembly-Intro-hello/Linux': Is a directory

75 files have been deleted but 8 empty sub-directories are left to remove. We use the -r recursive option with rm command to delete them:
$ find /usr/local/bin/ /bin/ -printf '%P\n' | sort | uniq -d | tail -n +2 | awk '{print "/bin/" $0}' | sudo xargs rm -rf

Nothing is reported so no more errors!
Summary
The objective of this answer is to not only solve the problem at hand but show the reader how a problem can be solved by checking multiple existing answers in Stack Exchange.


Don't know why it enables numlock on a laptop if you didn't tell it to do so.

Anyway, you can install the numlockx package. It should automatically stop numlock from being enabled since you have a laptop. If that isn't enough, open the /etc/default/numlockx file for editing and change the setting to NUMLOCK=off.


As a general rule, using env is more portable. It is unlikely but theoretically conceivable to find a system that has no bash at /bin/bash. It is also possible that the user running the script has their own  bash version that is somehow different.

Using env means that the first bash instance in the user's path will be chosen. This means that #!/usr/bin/env bash will always work with the user's chosen bash version and it should always evaluate to an available bash even in non-standard systems. This becomes much more important if you are using another interpreter, not bash. Perl for example, can be installed to different locations on different systems but env will find it regardless.

So, using #!/usr/bin/env PROGRAM is a good habit to get into since it makes your scripts more portable to different *nix versions.