Give web sever directory full permission

You can change owners of folders and files with chown.

sudo chown $USER:$USER path/to/fileorfolder

After that make sure you don't create new files and folders as root in that folder, because then the new files and folders will be owned by root again.


Display screensaver clock without asking for password or turning the screen black

I don't think that this is possible when you use Gnome screensaver. Since Gnome 2 it has lost almost all its features and now it can only lock screen and blank it (Wikipedia even says that it should be called "screen blanker" rather than screensaver).

You can try XScreenSaver which is more powerful. To install it add the next packages: xscreensaver, xscreensaver-data and xscreensaver-gl. After the installation add it to your "Startup Applications". The command should be xscreensaver -nosplash. Check this link for the details and the pictures. man xscreensaver also contains valuable information.
Use xscreensaver-demo to start configuration window for XScreenSaver.

You have no need to uninstall gnome-screensaver, just disable it (you can revert all changes back later): sudo chmod -x /usr/bin/gnome-screensaver. Or rename it to gnome-screensaver.bak. You can also rename gnome-screensaver-command to .bak and make screen lock shortcut work with xscreensaver with this command:
sudo ln -s /usr/bin/xscreensaver-command /usr/bin/gnome-screensaver-command
Source

Then you can use the standard GLText screensaver, which can display current date/time. Or you can browse https://www.gnome-look.org for some alternatives. Here is nice flip-clock screensaver. There are more screensavers here and here.


Missing choice "physical volume for LVM" in custom partitioning

The official serverguide for LVM on 18.04 says at step 5

There are several installation options for LVM,

"Guided - use the entire disk and setup LVM" which will also allow you to assign a portion of the available space to LVM,
"Guided - use entire and setup encrypted LVM",
or Manually setup the partitions and configure LVM.

At this time the only way to configure a system with both LVM and standard partitions, during installation, is to use the Manual approach.

Follow the installation steps until you get to the Partition disks step, then:

At the "Partition Disks screen choose "Manual".

Select the hard disk and on the next screen choose "yes" to "Create a new empty partition table on this device".

Next, create standard /boot, swap, and / partitions with whichever filesystem you prefer.

For the LVM /srv, create a new Logical partition. Then change "Use as" to "physical volume for LVM" then "Done setting up the partition".

Now select "Configure the Logical Volume Manager" at the top, and choose "Yes" to write the changes to disk.

For the "LVM configuration action" on the next screen, choose "Create volume group". Enter a name for the VG such as vg01, or something more descriptive. After entering a name, select the partition configured for LVM, and choose "Continue".

Back at the "LVM configuration action" screen, select "Create logical volume". Select the newly created volume group, and enter a name for the new LV, for example srv since that is the intended mount point. Then choose a size, which may be the full partition because it can always be extended later. Choose "Finish" and you should be back at the main "Partition Disks" screen.

Now add a filesystem to the new LVM. Select the partition under "LVM VG vg01, LV srv", or whatever name you have chosen, the choose Use as. Setup a file system as normal selecting /srv as the mount point. Once done, select "Done setting up the partition".

Finally, select "Finish partitioning and write changes to disk". Then confirm the changes and continue with the rest of the installation.

If this does not work I would consider that a bug and create a bugreport on it.


Xfce Ubuntu internal crash - no programs are opened, such as terminal

Finally fixed. Removed vala-panel-appmenu, and it's ok now, but I'm wondered why? It has been a while I'm using appmenu as my global menu on xfce panel, but I rebuilt it because of some problems and this crash happened. Gonna open an issue on gitlab, for those who have my problem.

ctrl+alt+f3
$ sudo apt-get purge vala-panel-appmenu vala-panel-appmenu-common vala-panel-appmenu-registrar


How to grab characters before comma in a list and export to a script?

You could use cut to grab the first field and then pipe into a while loop to run commands with the names as input:
cut -d ',' -f1 file | while read line; do echo "$line"; done

obviously this script is not doing anything useful as it is - replace echo with whatever you want to do to each name, for example sudo useradd (after testing with echo)
Explanation

-d ',' use comma as delimiter (d)
-f1 the first (1) field (f)
while read line reading from the file, loop over each line as variable $line
do <command> "$line" execute <command> on the argument expanded from the variable (ie on each line of the piped output)


The PPA you have linked to has a dependency on Gnome 3 - so this is probably the key reason why it is not working.

I would recommend to clean up using ppa-purge i.e.

sudo ppa-purge ppa:telepathy/ppa

The linked question will give you advice on uplifting the version.  However I would caution against this.  Wait for a couple weeks until Oneiric is released - you will then have the very latest "stable" version automatically installed when you upgrade.

Linked Question:

How to install Empathy 3.x?


Should I report an old bug that is still present?

If the bug has already been reported on Launchpad, don't file a duplicate. Instead, you should click on "Does this bug affect you?" and then click on "Yes, it affects me". If you want to provide more details in the form of screenshots or logs, then make a post on the bug report with these details so that the devs have more useful information to work with.


Error while installing Node Js Legacy in ubuntu?

The nodejs-legacy package simply installs a symbolic link so that it can be executed using the node command.

curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs nodejs-legacy


After removing the latest kernel, how can I be notified of kernel updates again?

The metapackages that depend on the actual kernel packages got removed when you removed the actual packages. These metapackages are used to signal availability of new kernel versions. For the moment, install old versions:

sudo apt-get install linux-generic=<old-version>

You can find out the old version available using apt-cache policy linux-generic.

A sample output of the policy looks like:

$ apt-cache policy linux-generic
linux-generic:
  Installed: 3.13.0.34.40
  Candidate: 3.13.0.34.40
  Version table:
 *** 3.13.0.34.40 0
        500 http://mirror.cse.iitk.ac.in/ubuntu/ trusty-updates/main amd64 Packages        500 http://mirror.cse.iitk.ac.in/ubuntu/ trusty-security/main amd64 Packages
        100 /var/lib/dpkg/status
     3.13.0.24.28 0
        500 http://mirror.cse.iitk.ac.in/ubuntu/ trusty/main amd64 Packages

From the version table, I have 3.13.0.34.40 and 3.13.0.24.28 available, and the former is installed. So to get the metapackage for the older version, I can do:

sudo apt-get install linux-generic=3.13.0.24.28


To permanently remove acpi=offfrom the GRUB options, you have to edit the file /etc/default/grub.

You'll find a line like

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi=off"

or similar (the important part is GRUB_CMDLINE_LINUX_DEFAULT, and obviously there should be acpi=off).

Just remove the acpi=off part (GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"), save, exit and run

sudo update-grub


Avoid replacing spaces when renaming files

Do not parse filenames with sed! The output of echo "$file" may not be reliable.

Use rename. On 17.10 you need to install it first

sudo apt install rename

Then:

rename -n -- 's/[^-A-Za-z0-9_ .]/_/g' *

Notes

remove -n after testing to actually rename the files
-- end-of-options in case any file begins with -
[^-A-Za-z0-9_ .] characters we do not want to replace - put - first or last so it can't indicate a range (it is treated literally in these positions).
Spaces can be included in the class
. is treated literally (in other regex contexts it stands for any character and needs to be escaped).

This also works in sed:

$ echo 'trip: hill' | sed 's/[^-A-Za-z0-9 _.]/_/g'
trip_ hill

If I add a space to the end in your version, I get an error:

$ echo 'trip: hill' | sed -e 's/[^A-Za-z0-9._- ]/_/g'
sed: -e expression #1, char 22: Invalid range end

But with - at the end, it works:

$ echo 'trip: hill' | sed -e 's/[^A-Za-z0-9._ -]/_/g'
trip_ hill

So perhaps the position of the hyphen caused your problem when you added the space. But the advice not to parse filenames stands!


The problem in your choosing the network type.

So what you have to do is choosing bridged as network type for your VM.

then give it an IP in same range of your host.

And that's


Bad behavior of activities overview when workspaces span displays

As written as an edit in the question, a bug report actually exists on launchpad.

A bug fix currently does not exist. As a workaround, however, you can use this gnome extension.


Getting Started Tutorial
Full Documentation

Getting started with a Amazon AWS account is very simple, or there is also directions to deploy test instances to local lxc containers, a third more in-depth option is to setup a MAAS (Metal As A Service) first as described also in the docs.

The Getting Started section tells you how to install it and where to input your AWS access-key and secret-key. If you choose the easier AWS route, which go in your ~/.juju/environments.yaml file, if not those are not required but the other keys mentioned are.

After that, start with the tutorial to deploy a sample Wordpress instance and it will be fully up and running in a matter of minutes if your successful.


Please try this.  Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command below.

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


dmesg | grep -i ahci

[    1.971970] ahci 0000:00:1f.2: version 3.0
[    1.972034] ahci 0000:00:1f.2: irq 41 for MSI/MSI-X
[    1.972071] ahci: SSS flag set, parallel bus scan disabled
[    1.986971] ahci 0000:00:1f.2: AHCI 0001.0300 32 slots 6 ports 6 Gbps 0x7 impl SATA mode
[    1.986974] ahci 0000:00:1f.2: flags: 64bit ncq sntf stag pm led clo pio slum part ems apst
[    1.986980] ahci 0000:00:1f.2: setting latency timer to 64
[    2.003333] scsi0 : ahci
[    2.003408] scsi1 : ahci
[    2.003473] scsi2 : ahci
[    2.003536] scsi3 : ahci
[    2.003596] scsi4 : ahci
[    2.003658] scsi5 : ahci


How to avoid horizontal scrolling in "systemctl status"?

You could use the --no-pager option in conjunction with the --full option, which will force the lines to wrap:

systemctl status --no-pager --full

If you want to preserve the paging functionality, you can just pipe the output of systemctl status to less / more directly, since connecting the command's STDOUT to a pipe will force the command to print a raw output:

systemctl status | less


save the following two lines in a file called for example /usr/bin/amixer_script.sh

/usr/bin/amixer -c 0 cset iface=MIXER,name='Headphone Playback Volume' 100% /usr/bin/amixer -c 0 cset iface=MIXER,name='Headphone Playback Switch' 1+ toggle

make it executable with sudo chmod +x /usr/bin/amixer_script.sh
add /usr/bin/amixer_script.sh to System->Control Center->Startup Applications

There. Your script is launched at each bootup and you have sound.


How can I speed up the graphic display on an HP Mini 110 series?

I have a similar device and I do the following:

Disable Session Applications:

GUI: System Menu -> Preferences -> Session Applications
CLI: gnome-session-properties

Disable things that you dont use or like, such as Visual Assistance, Remote Desktop, Verify New Drivers and so on.

Disable Session Graphics (like chris said)

GUI: System menu -> Preferences -> Appearance -> Visual Effects -> Select 'None'
CLI: gnome-appearance-properties -> Visual Effects -> Select 'None'

Disable unused daemons (install application rcconf).

CLI: sudo apt-get instal rcconf

Run it: sudo rcconf and disable daemons by pressing "Space".
Some daemons to disable are: brltty, bluetooth


No operating system found after installing ubuntu 13.10

Turn off Secure boot by changing UEFI mode to Legacy mode in bios and then try boot-repair disk.


Why Won't Supertux Level Editor Compile on Ubuntu 13.04?

You can install the latest GIT of supertux-editor from the ppa:landronimirc/supertux-git.


reinstall previous version on dual boot system

1 . Have you checked the ISO for errors ?  if not check it by using this https://help.ubuntu.com/community/HowToMD5SUM

2.Make sure about boot priority one more time .

12.04 have gnome-classic too which you can choose from the session button of your login screen , it will be at the username input box .
20GB SWAP means its huge , really HUGE . swap= 2xRAM. please follow .


According to the fail2ban Wiki you might want to try setting protocol = udp instead of protocol = tcp. www.fail2ban.org Wiki

Your banaction 'iptables-multiport' will create a new iptables chain with all banned ips and add this chain to iptables INPUT chain.
You can check if this chain is being created correctly with iptables -vnL. Look for a 'f2b-openvpn' chain at the 'Chain INPUT' section at the top of that output and then a 'CHAIN f2b-openvpn' section with all the banned IPs further down that output.

Also consider obfuscating your mail address from you config example.


Typed "yes, do as I say!", need to repair now

Luckily for you, there are apt log files at /var/log/apt/ . The history.log file will contain the last packages which were removed. Look for the last part of the file and try to reinstall the files that were removed or purged.

You need to do a sudo apt-get install <package-names> for all the removed packages. Note that you can specify more that one package name in this command.


How to install a specific version of g++?

Download the g++-4.1 version from here. g++-4.1 is not available in the recent Ubuntu repositories. So you need to download the package from the link provided.

Install/compile the download package alongside with the current version of g++.

Then use update-alternatives to switch version

sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.3 10

Change the default version by choosing the appropriate version:

sudo update-alternatives --config g++


Since you just said you found it while searching, I'll give a generalized definition. Easter eggs are generally hidden things in either games, websites, programs, or even inside the code of websites or anything. I've never known an easter egg to really gain you anything. Occasionally when playing a game and find an easter egg, you might get an achievement of some kind. But most true easter eggs are very deeply hidden and the reward is mainly from the satisfaction of finding it and being able to show your friends

The old style eggs were mainly a kind of inside jokes between the programmers of games, and people that first played the game and found them rarely knew what they were, but still thought they were funny. Lately most games either don't have easter eggs, or are relatively easy to find and either don't have any inside joke factor at all, or arn't that hard to get after thinking about it for a bit. They still try to be funny with them, but mainly are there for a neat thing for the gamer to find. Easter eggs on websites and in programming code (as far as I know) aren't nearly as prevalent.


Unity application menus and title bar issue with Wine applications

Ad title bars: this is a known bug.
What works for me: drag the window to the top edge to trigger Compiz' Grid plugin, which then maximizes the window.

Ad application menus: I don't think that's supposed to work right now.


Cannot figure out how to change username through recovery mode or terminal?

Changing the name of a user is not such an easy task as it may seem, especially when the user should have administrative privileges. Depending on how experienced you are on the command line you could try the steps outlined in answers to this question:

How do I change my username?

But be warned. In case some references to the old username could not be resolved hard to track down issues may result.

Therefore I would go with a much safer approach:

Create a new user "nolan" with User Accounts from System Settings (unlock to be able to).
Make this account an "Administrator".
Log in as "nolan" to copy all data files or settings you want to keep from /home/allie/.
Then disable (do not delete) the old account allie by clicking on the password in User Accounts settings (also needs to be unlocked first).

Let your brother use the laptop for a while to see if there are any issues.
If all is fine (and only then) you can safely delete the old home directory /home/allie.

Most if not all applications you had installed will be installed system wide. That is your new user will also have access to these. Only the individual settings for each application will have to be adapted either manually or by copying settings from your old account (look out for the hidden "dot-files" in your home directory or for files in ~/.config).


change permission folder and underliyng folders chmod 553 to 555

Use the -R option:
chmod -R 555 main_dir_name

From chmod manpage:

-R, --recursive
change files and directories recursively


Not available in the current versions of Ubuntu

Usbfs has been deprecated for a long time already. It was disabled since Ubuntu 9.10 (but you could recompile the kernel to get it -- CONFIG_USB_DEVICEFS=y). In the Linux kernel it was completely removed in 3.5 so it is completely missing since Ubuntu 12.10.

So the bad news is that you cannot enable usbfs in Ubuntu 13.04 if you do not replace the kernel for an older or patched one.

Alternate solution

It seems that the similar content as was in /proc/bus/usb/devices is now available in /sys/kernel/debug/usb/devices. Other interesting places to check for the content from former usbfs are: /dev/bus/usb, /sys/bus/usb and /sys/kernel/debug/usb.

See also for example Where is usb/devices file in Ubuntu 9.10?


How to jump to a file by name Gnome 3 Files App

In many ways, the current search behavior is more powerful than the old system where you could quickly move to the files starting with the letters you typed. It does not require you to know the first letters. Knowing part of the file name is good enough. It allows to quickly retrieve a file several folder levels deep, without having to subsequently scan the list and open a sequence of folders. Of course, many users prefer the old way.
To search in the current folder only, head to "Preferences" - "Search & Preview" tab and set "Search in subfolders" to "never". The search will then be in the current folder only. When you select the file and  press Esc, you will return to the regular folder view with your file selected.
Too keep the context more consistent, you could set "Search" to match the view you commonly use (icon-view or list-view). "Search" defaults to list-view. Use dconf-editor or the following command to set Search to use icon-view:
gsettings set org.gnome.nautilus.preferences search-view 'icon-view'

Use list-view to set to list view, or just reset to default (replace set by reset and leave out the last argument).
Just jumping to a matching file is not possible in Files. There used to be patches that re-implemented that feature, but there are not common anymore.If this is very important to you, only more pervasive options are available. You may consider switching to another file manager that supports that feature. However, that is not trivial because a file manager is strongly tied to the desktop environment. Changing desktop environments of course also remains a possibility.


Keep following 2 tips in mind when using threads and PyGTK:

Make sure to call GObject.threads_init() as soon as possible in your program to enable threading in your PyGTK app.
If you are doing any GUI tasks in your thread, wrap it inside GObject.idle_add(callable), always.

Here is a full working example, adapt to your code as needed:

import time
import threading

from gi.repository import Gtk, GObject
GObject.threads_init() # Don' forget!

class WorkerThread(threading.Thread):
    def __init__(self, callback):
        threading.Thread.__init__(self)
        self.callback = callback

    def run(self):
        # Simulate a long process, do your actual work here
        time.sleep(4)

        # The callback runs a GUI task, so wrap it!
        GObject.idle_add(self.callback)

class MyWindow(Gtk.Window):
    def __init__(self):
        Gtk.Window.__init__(self)
        self.connect('delete-event', Gtk.main_quit)
        self.resize(400, 400)

        vbox = Gtk.VBox()

        button = Gtk.Button("Let's spin!")
        button.connect('clicked', self.on_button_clicked)
        vbox.pack_start(button, False, False, 0)

        self.spinner = Gtk.Spinner()
        vbox.pack_start(self.spinner, True, True, 0)
        self.add(vbox)
        self.show_all()

    def on_button_clicked(self, widget):
        self.spinner.start()
        thread = WorkerThread(self.work_finished_cb)
        thread.start()

    def work_finished_cb(self):
        self.spinner.stop()

if __name__ == "__main__":
    app = MyWindow()
    Gtk.main()


As @bodhi.zazen said in the comments, the tor command is working fine; it's just that Tor is already running. If you read the output from the tor command, you'll see that this is indeed the case.

This is similar to how you can't have to instances of Audacity running at the same time.

If the tor command were really not working, you'd get this output:

user@ubuntu:~$ tor
The program 'tor' is currently not installed. You can install it by typing:
sudo apt-get install tor


"System Policy prohibits use as a Hotspot" when trying to turn on WiFi hotspot (option grayed out)

reported here, try switching to another settings panel (ie "Network") and then back, it seems to enable the option again for most.


Ubuntu 20.04 LTS - Touchpad detected but not working

Turns out the problem was a BIOS setting. In particular, there's an option called "touchpad mode" which can be set either to "advanced" or "basic". The system tells you that a certain driver is required to use advanced mode, so I switched it to basic and now it runs smoothly. I don't know which features I'm missing though.


How do I convert my Blackberry contacts to a standard format?

I just got this working so figured I'd document it for posterity.

sudo apt-get install barry-util barrybackup-gui barrydesktop

Then use the backup utility GUI to make a complete backup of your database.  We'll call it backup.tar.gz.

Unfortunately the desktop utility seems to only export one record at a time.

Instead, use the command line:

btardump -d 'Address Book' -V backup.tar.gz > address_book.mime

That's it.  The .mime file should have a bunch of VCards inside.


Plex won't enter my home directory or other partitions

Plex is run under plex username, so you may encounter the following permission issues:

Ubuntu restricts access to /media/$USER through ACL (that's the "+" when you ls -l /media). Solution below.
Your drives may not be mounted to allow plex user to read it. Check it with ls -l on the drive or folder that cause issue, to see the group owner, group permissions and user permissions. Solution below.
Your folder may not allow plex user or group to read it. Use sudo chmod -R u+r FOLDER to allow all users. Or add flex user to the folder group (see below) and use sudo chmod -R g+r FOLDER.

Fix permissions to allow Plex to access /media/$USER

Check which group you and plex belong to:

groups
groups plex

Now, add plex user to your user group, and allow this group to access /media/$USER:

MYGROUP="$USER"
sudo usermod -a -G $MYGROUP plex
sudo chown $USER:$MYGROUP /media/$USER
sudo chmod 750 /media/$USER
sudo setfacl -m g:$MYGROUP:rwx /media/$USER
sudo service plexmediaserver restart

Fix permissions of NTFS partitions

NTFS partitions must be mounted with appropriate read rights in /etc/fstab:

Check your user and group id (1000 and 1000 in example):

id

Edit /etc/fstab to mount the drive with read permissions for your user group and for all users (cf. umask, which is 777 less the desired "chmod" number):

UUID="XXXXXX" /media/USERNAME/MOUNTPOINT ntfs rw,nosuid,nodev,allow_other,default_permissions,uid=1000,gid=1000,umask=002 0 0

Fix permissions of mdadm RAID disks

If you're using mdadm, this may be needed in /etc/mdadm/mdadm.conf:

CREATE mode=0775


How do I kill a runing fortran code from inside a shell script that access the same code?

I'm assuming you are using bash though this works for the sh and csh too.

First: Set the ulimit core to non-zero (so that you can create a core dump). man bash and search for ulimit. ulimit -c <max size of core dump>.  The bash default is NO core dump and it must be re-entered every time a new window is opened or new session is started.

Second: Run your program and in another window kill -3 <pid> to see if the programs is still running and and get a core dump.  See man 7 signal and the "SIGQUIT" or "-3" option.

Third. Use gdb to see the statement that caused the problem.  You will have to compile the program using with the "-g" option. gdb <fortran executable name> core.  gdb can be used to debug interactively.  (And is way beyond the question you asked).

From what you mentioned in your question, you are not handling the EOF correctly for "< input" or stdin and is not exiting out of command loop and stopping.  Or you are in an endless loop or waiting for input in a submenu. The kill -3 <pid> finally kills the process EXACTLY where it is hung.

Ctrl+z is suspending the running fortran program. The executable is still running when it hangs.  If you enter the command fg for foreground, the fortran program would continue from where it was before the Ctrl+z.


There's likely a problem with the Flash plugin.

Try Firefox. Do YouTube videos have sound in Firefox?
Visit chrome://plugins/ in Google Chrome. Do you have multiple Adobe Flash Player plugins? Try disabling one or the other.
Try YouTube HTML5 video.

My flash player works. Here are my chrome flash plugin settings:


You want RabbitVCS: http://rabbitvcs.org/ It's a program that integrates with Nautilus and is even inspired by tortoise svn. There is news it will support git in the future, although no news on bzr support (which is what Ubuntu developers like to use)


Why I get different from my system language in debian console?

You should not have other languages after en_US in the LANGUAGE list. Replace

LANGUAGE=en_US:ru:he

with

LANGUAGE=en_US


You should be able to boot from the xubuntu CD in live CD mode - then you can mount the / or /boot file system and make the changes you need to make.

Alternately you can boot the system rescue CD (http://www.sysresccd.org/) and do the same.

The tricky part of this is working out which disk partition has /boot on it.

Once you have started xubuntu in Live CD mode open a terminal and use sudo to get a root shell. Alternately, boot the system rescue CD and it will drop you in a root shell.

Then look in /dev for files like sda1 sda2 sdb1 etc.

Try mounting each in turn:

# mount /dev/sd1 /mnt
# ls /mnt
# umount /mnt

If mount gives an error, ignore that partition. If ls /mnt shows a directory called boot, then look in there for the files you have to change to reconfigure grub.


Problem installing Ubuntu in a laptop with Intel Optane

you should disable optane in windows (with the intel program in windows).
then you will be able to install ubuntu in dual boot.

Then any time you want to use ubuntu, you have to disable optane in windows (wich will run slowly then) before booting ubuntu.

this works fine with me


How do I clean up after multiple installations

How do I safely remove the installation on the non-SSD drive?

Boot into the OS you want to keep.
Install and start gParted (sudo apt-get install gparted if not already available).
Remove the partitions that point to the 2nd install. gParted will show you labels that identify the operating system. As a bonus: you can not delete mounted partitions so using the OS you want to keep locks those partitions.

From the list you posted I would say: remove sdb or (if you want to use it in this OS) format as ext4 and create a mountpoint.


Any file download in Chrome keeps popping up Open xdg-open?

Finally I have solved my problem by removing Fake (unofficial) IDM (Internet Download Manager) Chrome Extension https://chrome.google.com/webstore/detail/idm-integration-extension/beobjkkhmebdklhjedacliojimbibppm

Note that it was installed when I was on Windows, and it got its way where via Chrome Sync.

Thanks.


Packaging a CMake project (libRocket) into a .deb, but build script is in a sub folder

The debian/rules file is the script that runs the build process. You can tell it that the build script is in a sub folder by passing --sourcedirectory=Build So your's might look like:

#!/usr/bin/make -f

%:
    dh $@ --buildsystem=cmake --sourcedirectory=Build

See the manpage for the dh command  for more information.


Actually I realized that with the kernel 3.19.0-xx-generic upstart everything works fine (except for a very slow log out).
At boot, you should have for 1 or 2 seconds a screen with the list of kernel you can use, to stop it, enough to press for example the down button. If you do not have the kernel list, I think there is a key (maybe F5) or a combination of keys.

The explanation, if I well understood, is that there are now 2 boot tecnologies, the old "upstart", the new "systemd", the kernels following 3.19 (4.4...) use systemd only, the 3.19 and before make you choose.
In the upgrade from 14.04 to 16.04 program there is an error and you can boot only with 3.19... upstart. If you absolutely need/want to use the latest kernel, for the moment, I found around as solution only reinstall : (


Put this line in ~/.bash_aliases. You may need to close the terminal and reopen it for the new alias to function:

alias myscrot='scrot ~/Pictures/Screenshots/%b%d::%H%M%S.png'

This will create a file like May15::110346.png in ~/Pictures/Screenshots
You can use some other way of timestamping your screenshot but I like this. See man scrot and man date for more options.
I purposely used myscrot so that the original scrot is still functional but you can use just scrot if you wish!


Ubuntu boots to "Read Only Filesystem" after Upgrading

Start the computer with a live-dvd/usb.

After the load open a terminal,Press Ctrl+Alt+T

Run it:

$ sudo -i
# fdisk -l

Fdisk will inform your partitions as they are called, something like:

Disk /dev/sda: 74,5 GiB, 80032038912 bytes, 156312576 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xab6eab6e

Device     Boot    Start       End   Sectors  Size Id Type
/dev/sda1  *        2048  54750094  54748047 26,1G 83 Linux
/dev/sda2       54751230 156311551 101560322 48,4G  5 Extended
/dev/sda5       54751232  56702975   1951744  953M 82 Linux swap / Solaris
/dev/sda6       56705024 156311551  99606528 47,5G 83 Linux

For each of the Linux partitions, run the following commands:

# umount /dev/sda?
# fsck -y /dev/sda?

In the example would:

# umount /dev/sda1
# umount /dev/sda6
# fsck -y /dev/sda1
# fsck -y /dev/sda6

Then continue running, assuming that / is /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
# mount --bind /etc/resolv.conf /mnt/etc/resolv.conf
# chroot /mnt
# dpkg --configure -a
# apt-get -f install
# apt-get update
# apt-get dist-upgrade
# apt-get autoremove
# apt-get clean
# umount /mnt
# exit
# reboot


Well you can try of course mentioned approaches. One more simple thing is to install Ubuntu just without swap partition at all. Linux will not block you from this, it can work without swap.


It looks like one of your partitions contains file system errors.

Luckily you can still use your booted system to try to repair it.
Run the tool that helps to fix the errors:

  fsck /dev/sda6

After that, you can remount your home by:

  mount /dev/sda6

If it mounts with no more errors or warnings, it should remount again after reboot too.


How do I stop Banshee from playing random tracks when it finishes a playlist/album?

I think the behaviour described by the OP is caused by the gapless playback option. Disabling that option stops this very annoying glitch.

I appreciate this is an old question, but people may still find it while googling for this problem, as I did.


Backlight does not work on Toshiba portege and LTS 12.04

maybe this works. It adds a couple things more to you grub file.
http://www.gaggl.com/2012/05/intel-ultrabook-tweaks-on-ubuntu-12-04/
The GRUB_CMDLINE_LINUX line should end up like this

  GRUB_CMDLINE_LINUX="quiet splash pcie_aspm=force i915.i915_enable_rc6=1  i915.lvds_downclock=1 acpi_osi=Linux acpi_backlight=vendor elevator=noop"

And of course you should run sudo update-grub

Hope it helps.


Easiest way to navigate across tabs within terminals

Ctrl<.kbd>-PgUp and PgDn and should do the trick

-- peter


What is a activity in KDE and what can I do with it?

I had exactly the same issues and questions with "Activities" as you.  I found the video Wicky posted to be instrumental in filling in gaps in my understanding of how Activities are suppose to improve upon traditional virtual desktops.  The most important thing I took away from watching the video was that activities are just another type of virtual desktop that allow for more fine tuned control over your experience.  Interesting examples of one or more features that could potentially be enabled in any activity are as follows:

Changing your power settings - say a presentation mode actvity - such that your screen never times out
Changing your default language / default keyboard to a different locale
Changing your default permissions; all apps launced run as root root - or - contrarily all apps have read-only access (sort of a super "incognito" mode I can't wait for this)!!
Changing your default printers
Changing you default email and calendar (from personal to work etc)
Restoring the most commonly used apps for that activity.  Moreover, apps are not launched, and thus memory not allocated until you actually use that virtual desktop, and could all be stopped when you decided to press the stop button for that activity.  Yes, currently the document you had open last isn't necessary launched, but that is a likely future feature.
Changing the default folders / widgets displayed on the desktop
Changing the way that scrolling and different button mouse clicks work

Aside from power-settings, mouse clicks, and basic application restoration, I'm not sure any of these other features have yet been implemented.  Indeed, my desire to figure this out came from someone else’s ask Ubuntu question where they were trying to write the app for language switching upon virtual desktop changes.

Overall I think the thing most holding back progress is a nice GUI tool to configure activities to execute commands or apps, and seems a likely next step.


How to Create Text Files with user execution bit set automatically

Is there any way to create files with the execution bit set, at least
  for the user section (ideally -rwx-r-x-r-x = 755)

Yes.

setfaclcommand will do what you want. See man setfacl for a complete manual.

sudo setfacl -Rdm g:groupnamehere:rwx /base/path/members/
sudo setfacl -Rm g:groupnamehere:rwx /base/path/members/

  R is recursive, which means everything under that directory will have
  the rule applied to it. d is default, which means for all future items
  created under that directory, have these rules apply by default. m is
  needed to add/modify rules.

  The first command, is for new items (hence the d), the second command,
  is for old/existing items under the folder. Hope this helps someone
  out as this stuff is a bit complicated and not very intuitive.

source


Can I make a Ubuntu distro and distribute it?

I think the user is asking if it is legal to do so. In that case: sure! thats why its free and open source. The only condition is that any changes or additions to the source code that you make, should also be free and open source. There are however some exceptions to that. They are related to some specific packages that are governed by different licences

This link should tell you what you need to know about that.


Change Icon of Wine Application in Unity Launcher

Workaround on Ubuntu 12.04 LTS and up

Note
This workaround requires a working launcher for your Wine application. Here's a tutorial on how to create one. The workaround also applies to applications installed with PlayOnLinux scripts. More recent versions of PlayOnLinux automatically add the StartupWMClass line to their launcher.
Instructions
Open your .desktop launcher in your favorite text editor and append this line to the file:
StartupWMClass=application.exe

where application.exe is the base name of the executable you want to launch in Wine.
Don't use the the full path, only the base name. And make sure it's unqoted (a general rule you should follow with desktop files).
Result
Application icons and descriptions should be rendered fine now:

Source: https://bugs.launchpad.net/unity-2d/+bug/702452


You can overwrite your USB drive with a new OS or data, and you can also reformat the USB. Keep in mind that installing a new OS on the USB drive or reformatting it will overwrite any data that is currently stored on the USB drive, so make sure to backup whatever you want to keep first.


Is there a workaround to view Adobe Access (DRM) flash videos on any browser?

You could try pipelight which is a special browser plugin which allows one to use windows only plugins inside Linux browsers. It uses WINE the achieve this. It is usually used for silverlight, but it can be also used for flash. Launchpad page of pipelight.

Please follow the installation instructions on the developer's webpage, and the instructions for flash on the same page.


Mounting cifs network shares when logging into user account?

You can perform mounts at login by using pam_mount.

First install the required packages with:

sudo apt-get install cifs-utils libpam-mount

Then edit the "/etc/security/pam_mount.conf.xml" configuration file to declare your mounts.

See my post for an example configuration and "man pam_mount.conf" for the general syntax.

It will mount all shares every time a user logs in (except those already mounted) and unmount them when all users have logged out. This will even enable you to mount password-protected shares, provided your Ubuntu login credentials are the same as the ones on the CIFS server(s).

However, as mentioned in my post, be aware that it will introduce a delay in the login process in case the shares are not accessible.


"PHP Startup: odbtp: Unable to initialize module" module API doesn't match

Either:

You have compiled ODBTP with old PHP.  Please check that you have correct version of php5-dev package installed and you don't have any extra (old) installation of PHP on your system
Or you have compiled ODBTP module before you have upgraded your system PHP to 5.4
Or the ODBTP build system is broken (less likely)

Anyway it's not the PHP you need to recompile, but the ODBTP module.


how to install windows 8.1 under virtualbox in ubuntu

What I did was installing windows after installing Ubuntu. Problem is that you can't boot Ubuntu anymore after that, but you can fix this using boot repair.

Ubuntu and many other Linux distributions use the GRUB2 boot loader. If GRUB2 breaks — for example, if you install Windows after installing Ubuntu or overwrite your MBR — you won’t be able to boot into Ubuntu.

You can easily restore GRUB2 from a Ubuntu live CD or USB drive. This process is different from restoring the legacy GRUB boot loader on older Linux distributions.

Graphical Method – Boot Repair
Boot Repair is a graphical tool that can repair GRUB2 with a single click. This is the ideal solution to boot problems for most users.

If you have the media you installed Ubuntu from, insert it into your computer and restart. If you don’t, download a Ubuntu live CD and burn it to a disc or install it on a USB flash drive. You can also download a dedicated Boot Repair live CD.

After booting into the live Ubuntu environment, open a terminal from the Dash and run the following commands to install Boot Repair:

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

The Boot Repair window will appear after you run the boot-repair command. After it scans your system, click the Recommended repair button to repair GRUB2 with a single click.

The Boot Repair window will appear after you run the boot-repair command. After it scans your system, click the Recommended repair button to repair GRUB2 with a single click.

You can also click the Advanced options header to customize GRUB2’s options without learning its command-line syntax.

Restart your computer after using the Boot Repair tool. Ubuntu should boot up normally.

Source:
http://www.howtogeek.com/114884/how-to-repair-grub2-when-ubuntu-wont-boot/


Frozen window carcass that doesn't want to leave

You could try using xkill and clicking on the empty spot to see if it goes away. If it does, perhaps look at a system monitor and see which process got killed.


First of all it might be wise for you to download/re-download (just to make sure) the Ubuntu distribution again. If you do so, depending on your Mac Book specifications you either choose 32bit or 64bit! Actually it might be, that you choose the wrong architecture in the first place!!!

After downloading either ubuntu-11.10-desktop-i386.iso or ubuntu-11.10-desktop-amd64.iso you open up terminal.app and use this command to burn the image. hdiutil burn Imagename.iso

Make sure you replace Imagename.iso with your path and imagename, like so:
hdiutil burn ~/Desktop/ubuntu-11.10-desktop-i386.iso

You could also burn your Ubuntu-image with either DiskUtility.app or Toast.app

If you now restart you Mac with the new image-cd inserted, you can hold down the altkey after the chime and choose "cd-option"!


How to speed-up boot by disabling few dev-loox.device?

This is the output from my history file, thats why the numbers are shown. It includes the errors I may have made. Your snap list looks a lot longer than mine was, but you follow same process for all of them.

  34  snap list
   35  sudo snap remove gnome-logs
   36  sudo snap remove gnome-calulator
   37  sudo snap remove gnome-calculator
   38  sudo snap remove gnome-characters
   39  sudo snap remove gnome-system-monitor
   40  sudo snap remove core
   41  snap list
   42  sudo snap remove gnome-3-26-1604
   43  sudo snap remove core
   44  snap list
   45  df
   46
   47  snap list
   48  sudo snap remove core
   49  sudo umount /snap/core/4407
   50  sudo umount /snap/core/4571
   51  sudo umount /snap/core/4327
   52  sudo umount /snap/core/4571
   53  snap list
   54  df
   55  sudo umount /snap/core/4571
   56  ls -l /snap/core
   57  sudo systemctl stop snapd
   58  sudo umount /snap/core/4571
   59  sudo snap remove core
sudo apt remove --purge snapd
sudo apt purge gnome-software-plugin-snap


You might consider Darik's Boot and Nuke aka DBAN.

It automatically deletes the contents of any hard disk that it can detect. This method prevents identity theft before recycling a computer. DBAN is also a commonly used solution to remove viruses and spyware from Microsoft Windows installations.

You can download the .iso here: https://downloads.sourceforge.net/project/dban/dban/dban-2.3.0/dban-2.3.0_i586.iso?r=&ts=1487775316&use_mirror=svwh

Use any disc burning utility to burn an image of the .iso. Next, set the computer BIOS or UEFI to make the CD/DVD drive the first bootable device. Restart and it should start wiping all the discs it can recognize.


Problem while installing Canon LBP 3300 printer in Ubuntu 18.04.3 LTS

Download and install the driver from here:

https://www.canon-europe.com/support/consumer_products/products/printers/laser/i-sensys_lbp3300.html?type=drivers&language=en&os=linux%20(64-bit)

To Install:

make sure you have the build essentials package installed.

sudo apt-get install build-essential

Change to the directory of the downloaded driver:

tar xvzf PACKAGENAME.tar.gz

cd to the extracted folder and then :

make && sudo make install


How can I install drivers and other applications without an Internet connection?

There are some answers for offline installation of packages here = How can I install software or packages without Internet (offline)?

There is a manual for ubuntu here = http://ubuntu-manual.org/


What does the following dmesg output means?

The ACPI tables (DSDT, SSDT) are provided by the BIOS. These ACPI tables allows the OS the control the hardware through an abstraction layer (ACPI). Manufacturers can use the ACPI _OSI method (Operating System Interfaces) to query the OS for certain capabilities.

Through this mechanism, ACPI can detect the OS (and version) and apply some quirks if necessary. This is especially useful for Windows machines as newer features of a machine may not be supported by older Windows versions. However, in Linux, the philosophy is that if a feature is not supported by the Linux kernel, exclusions should not be made by the BIOS manufacturer. Instead, the community (kernel developers) have to add code to support those features from newer machines.

In the past, some BIOS manufacturers removed features if they detect a Linux system. While a feature may not be supported at the time of the BIOS release, in the future, it could. Because of that, queries for "Linux" are ignored.


libmapi is part of the openchange project from openchange.org.  You can get the required version from there.

It depends on Samba 4 to compile.  I'm not sure if that's available in Ubuntu or not.  You may end up compiling your way down the dependency tree.  :)  Checkinstall is your friend in that case.

Additionally, libmapi-2 appears to be available in Debian unstable.  You could try grabbing that directly and see if it's compatible with Ubuntu.  If it is not, then you could grab the source package and build that to get it.  I can't guarantee that will work, but it does about 90% of the time in my experience, although occasionally you end up having to do the same with some dependencies.  Backing up your system before you start is highly recommended.

Hopefully this works for you.  Sadly I can't give you exact steps since I'm not trying to do this on Ubuntu myself, but it should be what you need to know to figure it out from here.


How do I uninstall applications from my applications window

Installations that you installed using the Software Center or using "apt" or "apt-get" from the command line can be seamlessly removed again using these tools. If you installed software in other ways, i.e. by downloading an installation program from the internet, or compiling yourself, then you are responsible yourself for checking how the program is installed and how you eventually can remove it. There is no general advice possible here on how to remove such software, and you need to check the documentation of the program if any is available.

If removal proves to be difficult, you still could get rid of the application icon in the dock. That way, you do not remove the software itself with a risk of breaking your system if it is software not from the repositories, but at least you are not anymore bothered by the icons.

To that aim, locate the launcher files for these applications. These launchers will usually reside in /usr/share/applications, but may also be in the hidden folder .local/share/applications.

Now copy .desktop files you want to hide from /usr/share/applications to .local/share/applications. With a text editor, edit the .desktop files so that they include a line

NoDisplay=true

This way, these icons will not anymore show up in the menu for your user. The change takes effect immediately.

To have the icons not show up for any user, you will need administrator rights. Either you can edit the .desktop files in /usr/share/applications in a similar way as root, or merely delete the .desktop files in order for them to disappear from the application menu for all users.


Can Ubuntu get just a little more annoying? Please?

In short, yes it could. That being said, without problem reporting there would be a lot more problems. What would you know what to fix if you don't know what's broken?

If there is a serious problem here is the best place to resolve it. You should care because the whole ethos of ubuntu is spirit of community. If you have a problem, share it, help is always at hand.


Why is there no 20" HP LCD information in Raring?

For the HP S2031 monitor I created a ~/.xprofile patch containing these 3 lines.

xrandr --newmode "1600x900R" 97.50 1600 1648 1680 1760 900 903 908 926 +hsync -vsync
xrandr --addmode VGA-0 1600x900R
xrandr --output VGA-0 --mode 1600x900R

The lines are executed when X starts and causes an ugly display glitch for a few seconds, but the end result is a crystal clear 1600x900 display.  Hopefully this oversight gets rectified in 13.10.


It seems that my problem disappeared. I am not sure what happened. Only major thing that is different is the correct installation of NVIDIA drivers. It seems that something with nouveau drivers or nvidia/intel dual gpu system was the problem.


Black screen, kernel panic and 'cannot enumerate USB' when installing Ubuntu on Lenovo ThinkStation P700

I successfully installed Ubuntu 13.04 using the acpi=off nolapic nomodeset options. Then, to upgrade to newer versions and update the software of the clean install of the old and no longer supported one, I followed the instruction from the answer here: How to install software or upgrade from an old unsupported release?

Once I got to Ubuntu 15.10 I removed the kernel options by doing sudo gedit /etc/default/grub & and then sudo update-grub.

Hope this might help :D


I would like to suggest you change the default repositories aka "Software Sources", to a repository closer to you with more bandwidth, and retry it, preferably at a low-traffic time of day.

One method is to go through the "Ubuntu Software Center". Open the software center, then from the Edit menu select "Software Sources". Note: You will have to enter your password to change settings in this window.

Running this command will show you the four fastest for you:

sudo netselect -v -s4 -t10 `wget -q -O- https://launchpad.net/ubuntu/+archivemirrors | grep -P -B8 "statusUP|statusSIX" | grep -o -P "(f|ht)tp.*\"" | tr '"\n' ' '`

However, may I be so bold as to note 14.04.5 will reach end of life in April? You may wish to consider 16.04 or 18.04 if long term usability is a concern.


How do I prevent domains from resolving to a specific address?

The solution is to use /etc/hosts entry on your Ubuntu.

Make sure in /etc/nsswitch.conf on dns line the first option is files.
Add line in /etc/hosts:

 abcdefghijklmo.com    ip_address


Broken libsdl2-2.0-0 packages prevents software/kernal updates

Great news everyone! I was stuck on the solutions on the internet, until I completed the package. sudo apt remove libsdl2-dev:amd64 Don't worry, I immediately reinstalled it using sudo apt install libsdl2-dev:amd64. I also realized I had some extra packages so I did sudo apt autoremove. So yeah, I hope I answered your problem idf you have a similar one. (Just in case, do sudo apt-get if install. To ensure you have dependencies.)


Further automating Ubuntu-Nginx-WordPress server environment establishment script?

You could tell curl to directly write to /usr/local/bin/wp:

curl https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar > /usr/local/bin/wp && chmod +x /usr/local/bin/wp

add-apt-repository in 17.04 and newer has a -u option, allowing you to skip the explicit apt-get update:

-u, --update After adding the repository, update the package cache with
             packages from this repository (avoids need to apt-get update)

You can also combine the apt-get upgrade and install steps:

apt-get upgrade zip unzip tree unattended-upgrades sshguard postfix nginx python-certbot-nginx mysql-server php-fpm php-mysql php-mbstring php-mcrypt -y

Combined:

add-apt-repository ppa:certbot/certbot -yu
ufw enable && ufw allow 22/tcp 25/tcp 80/tcp 443/tcp 9000/tcp
apt-get upgrade zip unzip tree unattended-upgrades sshguard postfix nginx python-certbot-nginx mysql-server php-fpm php-mysql php-mbstring php-mcrypt -y
sed -i 's/# gzip_/gzip_/g' /etc/nginx/nginx.conf
sed -i 's/max_size = .M/max_size = 200M/g' /etc/php/*/fpm/php.ini
sed -i 's/;cgi.fix_pathinfo=1/cgi.fix_pathinfo=0/g' /etc/php/*/fpm/php.ini
curl https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar > /usr/local/bin/wp && chmod +x /usr/local/bin/wp


I have created a swap file in /home partition.

Install pm-utils and uswsusp.

sudo apt install pm-utils uswsusp

Create swapfile and give necessary permissions:

fallocate -l 8G /home/swapfile && chmod 600 /home/swapfile && \
mkswap /home/swapfile && swapon /home/swapfile

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

cat << "EOF" > /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla
[Re-enable hibernate by default in upower]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes

[Re-enable hibernate by default in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.handle-hibernate-key;org.freedesktop.login1;org.freedesktop.login1.hibernate-multiple-sessions;org.freedesktop.login1.hibernate-ignore-inhibit
ResultActive=yes
EOF

Get swap offset:

swap-offset /home/swapfile

Get UUID of /home/swapfile:

findmnt -no SOURCE,UUID -T /home/swapfile

Edit /etc/default/grub and add

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=861920c2-557d-4910-9b3e-b8a7be8f4fae resume_offset=12900352"

Edit service systemd-logind.service:

systemct edit systemd-logind.service

and add

[Service]

ProtectHome=read-only

Update the GRUB using update-grub
Reboot


How can I prevent Ubuntu One from displaying the same notification over and over?

I think it seems to be solved:

One of the folders I share via Ubuntu One, is the pictures folder in the user directory. Inside this pictures folders, there was a hidden folder called .trash-info or .trashinfo. Inside this folder were two sub-folders, called "info" and "files". the files folder contained the file, which seemed to be synchronized on and on.
(I think the .trash-info folder was created by moving some pictures in the trash in shotwell.)

So I deleted the .trash-info folder. But what happened? It re-appeared instantly!
I had to delete the .trash-info folder several times on my local computer and in the Ubuntu One webinterface before it finally really disappeared.

From that on, I got no further useless notifications. :-)


Having VERY difficult time trying to print any color at all on a picture (16.04)

For future reference, try googling your problem. I searched

  Cannon MX330 USB ubuntu

And found this. First, check to see if your printer is on the compatibility list (in your case, it is). Since yours is, follow the steps below to install drivers for your printer (Note below steps came from above site.)

To get started, open terminal, and run the following:

sudo add-apt-repository ppa:inameiname/stable

This will add the PPA repository into your system.
After that, open Synaptic Package Manager from the Unity Dash. If you don’t find it, search for and install it from Ubuntu Software Center. Click the Reload button to refresh your system cache.
In Quick filter box, type in cnijfilter.
Select a package in the result list that matches your device. Right-click on the package and select “Mark for Installation.”
Finally click on the “Apply” button to install the driver.


ubuntu 16.04: Error when importing gtk - libharfbuzz.so.0: undefined symbol: FT_Reference_Face

FT_Reference_Face is a freetype's library.
I uninstalled freetype and the command ccsm did work.
Go to the build directory and run:

sudo make uninstall

Then try ccsm again.
Hope it works.


How to configure ubuntu to use bluetooth U2F key?

I had the same desire, found that the BLE key is only intended for use with Android or iOS devices over Bluetooth at this time. The key will work when hard connected.

More information at https://support.google.com/titansecuritykey/answer/9115487?hl=en.


To configure PPTP please see this guide:
https://torguard.net/knowledgebase.php?action=displayarticle&id=54
Make sure that your username and password are correctly entered, and that encryption algorithms are selected correctly. These have to exactly match settings that are on your Windows Server.
If that doesn't help, please provide (redacted) syslog file output using command below
tail -n 50 /var/log/syslog


Is there any easy way to trace a route in ubuntu?

The Traceroute tab in "Network Tools" - hit the super key, enter "Network Tools", or enter gnome-nettool in a terminal.

On the whole, the Network Tools should fulfill most of your network-related needs - ping, finger, whois,...


-bash: syntax error near unexpected token `(' for multiplication of numbers

Try passing that argument as following:
-max_shard_size $((500 * 1024 * 1024))


Ubuntu 18.04, am trying to update ffmpeg from 3.x to 4.x, but keeps saying "ffmpeg is already the newest version (7:4.2.2-1build1~18.04.sav0)"

There are differences between installing a package using snap and installing it directly. If you have a pre-snap version and the snap version is newer, then remove the old package and install the snap version

sudo apt-get remove package-name
sudo snap install package-name

Remember, to update non-snap packages

sudo apt-get update package-name

but to update a snap package,

sudo snap refresh package-name


GRUB boot to run Clonezilla on a server with LVM (Ubuntu 20.04 Server)

I do not know nor use LVM. But have this in my notes for booting Fedora from LVM. You need to adjust for your path & ISO.
menuentry "Fedora 21 Live M6600" --class fedora {
    insmod part_gpt
    insmod lvm
    insmod ext2
    set vg='m6600'
    set lv='F21Live'
    set root="lvm/${vg}-${lv}"
    search --no-floppy --fs-uuid --set=root --hint=${root} 95e4eec8-c1de-4802-b821-5753de990cbe
    set isofile="/Fedora-Live-Workstation-x86_64-21-5.iso"
    echo "Using ${isofile}..."
    loopback loop $isofile
    linux (loop)/isolinux/vmlinuz0 iso-scan/filename=${isofile} root=live:CDLABEL=Fedora-Live-WS-x86_64-21-5 rootfstype=auto ro rd.live.image quiet rhgb rd.luks=0 rd.md=0 rd.dm=0 rd.auto=1
    initrd (loop)/isolinux/initrd0.img
}


Have you tried to run the previous version of Ubuntu on your system? If not, then try to do so when your system starts up and select it from Grub. If it's not there, then enter the advanced options for Ubuntu and select the previous kernel version of Ubuntu.


Pulseaudio can not automatically connect to a headset that may or may not be present on startup. It will always try to connect to the next available device, which usually would be "internal analog".

To ovecome this we may load a pulseaudio module that allows autoconnecting to an additional sound device as soon as it was connected with:

pactl load-module module-switch-on-connect

If it does what is expected we can load it everytime pulseaudio starts by adding the following line to our /etc/pulse/default.pa (or ~/.config/pulse/default.pa if we had defined it locally):

load-module module-switch-on-connect

After an edit of default.pa pulseaudio needs to be restarted with pulseaudio -k for changes to take effect.

Above module only works on plugging in the headphones. In case it was always plugged in we may add the following line to the end of the default.pa:

set-sink-port <name|index>  analog-output-headphones

The name or index of the active sink, and available ports can be displayed with pactl list sinks.


I would always recommend reading the release notes for the release you are wanting to move to, for Xubuntu the release notes are

https://wiki.xubuntu.org/releases/20.04/release-notes#updates

They however do not have Xubuntu specific release upgrade notes, they instead refer you to the Ubuntu 20.04 release notes which are

https://wiki.ubuntu.com/FocalFossa/ReleaseNotes

which includes the terminal command (see upgrading servers)

sudo do-release-upgrade -d

but I'd recommend you read the release notes first, rather than copy/paste this command into your system (starting with the Xubuntu notes first). Release notes include a list of known issues which were encountered by testers of the system providing warning of issues you may encounter.

If you're willing to wait, you will be offered the opportunity to upgrade your system (with fewer issues expected) after the upgrade path is normally opened a few days after the Xubuntu 20.04.1 official release.


Can't find files from my Windows partition

Your files can be found at the "XX GB Filesystem" disk on the left panel of Nautilus (the folders browser). Click it, wait for folders to appear and then look for the "Users" folder and, inside it, your user account's name on Windows. If you were on XP, look for "Documents and Settings" instead.


Copying VBoxAdditions to usr/share/virtualbox folder

Try this:

Open terminal and type in gksu nautilus and hit enter.  It might ask you to enter your password.

Browse to usr/share/virtualbox and copy the Virtual Box Guest addtion iso to the folder


Volume and brighness adjustment OSD delay and screen freeze on Ubuntu 18.04

The accepted answer to this other question of mine https://askubuntu.com/a/1163929/834984 also solved this problem.

Copied below the relevant part of the answer:
"After some digging i found out the culprit is the ScrollLock key and that can be fixed by editing the layout file, which in my case is found at /usr/share/X11/xkb/symbols/br. The only modification i did was to remove or comment the line: modifier_map Mod3 { Scroll_Lock }; After that, set the language and layout back to Portugues (Brasil) and the problem was gone!"

Thank you Gustavo Silva


How do I get the Xorg folder so I edit my mouse?

Just simply kill Xorg server for this session? :)

sudo xkill -a

to start Xorg server after configuring Your mouse acceleration:

sudo xinit.


Utilizing Both Windows 10 Pro and Ubuntu

To switch back and forth without rebooting, the only way is through a Virtual Machine.   When you dual boot, you have to reboot to switch between them.


I know this question was asked a while ago, but I will try to answer it anyway for future users:
About mask in file system:
The use of masks in linux filesystem is to control - read, write, and execute permission among different users/groups for specific files and folders. I emphasize the word 'control' because masks are not same as giving permission. Just the opposite; they are to control or limit permission. So, if you want to set 777 for a file as permission, then you have to use 000 as mask for that file. For permission 655, mask will be 122 (i.e: for permission xyz mask will be (777-xyz)).

What is umask,dmask, and fmask?

umask = user mask (folder and directory!)
dmask = directory only mask
fmask = file only mask

How To Set Executable Permission for NTFS Partition files?
Run this command to get UUID (Universally Unique IDentifier) for every NTFS drive:

$ sudo blkid

You will get output like this:

/dev/sda6: LABEL="Software" UUID="FEDC5DB5DC5D6943" TYPE="ntfs"
/dev/sda7: LABEL="Works" UUID="585AD06A35149024" TYPE="ntfs"

Now edit the fstab file:

$ sudo vim /etc/fstab

In the fstab file add/edit every drive specifying line with the following options (remember to use other option carefully, as adding any other option may cause problem):

defaults,auto,umask=002

So after edit/adding nfts drives your portion of fstab file will look something like this:

#<file system>           <mount point>   <type>  <options>                  <dump>  <pass>
UUID=FEDC5DB5DC5D6943   /media/software   ntfs    defaults,auto,umask=002      0      0
UUID=585AD06A35149024   /media/works      ntfs    defaults,auto,umask=002      0      0

Above umask will set permission equal 775, i.e read-write-execute for admin user (that is you) and admin user group and read-write permission for other users.
For samba share you might need to use gid=YourGroupID,uid=YourUserID in the option set. You can find YourGroupID and YourUserID values using the following command:

$ id YourUserName

Now Unmount your drives if already mounted:

$ sudo umount -a

Then mount by this command:

$ sudo mount -a

After mount you can use the drives in whatever way you want.


So, as steeldriver pointed out and I proved to myself, the kernel-space syscall rename is different than the 'rename' command. It turns out the real issue was that I had an incorrect audit rule that saying to never audit rename (and may others) before the rule that audit rename. Thanks for the responses, they helped me change my focus and find the real problem. Sigh!


Enabling equation editor in kingsoft wps office suite

Equation is not supported in WPS office currently so there is no way to enable this function.


I've fixed it, It works if you do this:

sudo dpkg --add-architecture i386
wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key
sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main'
sudo add-apt-repository ppa:cybermax-dexter/sdl2-backport
sudo apt-get update
sudo apt-get install --install-recommends wine-staging


How to adjust symbols-file in a package for a shared lib

The Debian KDE team has a guide to dealing with symbols files:

  After building a new version of the library, symbols may have been
  added or removed, and in both cases you need to check and update the
  symbols file. During the build, a diff between the current symbols
  file and the one that should be there instead will be printed in the
  output. So, as a first step, you need to save the build log in a file.
  You can do that by piping the output of your build command through
  tee, for example:

  dpkg-buildpackage -j4 | tee buildlog

  In case you forgot to pipe the
  output and you want to avoid rebuilding, you can also copy-paste the
  part of the output that contains the diff in new file.

  After saving the diff in a file, you can patch the symbols file by
  executing:

  pkgkde-symbolshelper patch -p libfoo1 -v 1.8 < buildlog

  Here we suppose that your libfoo1 package was updated to version 1.8, so "-v
  1.8" in the command is the switch to specify the new version.

You'll need to install pkg-kde-tools


Check also

Applications → Settings → Xfce 4 Settings Manager → Appearance → Settings → Event sounds → [x] Enable event sounds

for some kind of sound support


According to the code you posted it is searching for linux.iso in "C:\Program Files\linux.iso". Your iso should be in a directory deeper, inside the vmwareplayer folder or whereever you installed vmwareplayer. You will need to click the cd icon on your VMware player screen and browse for the iso file yourself. Then you can proceed with the VMware Player Tools installation proceedure.


Monitors not Found After Nvidia Driver Update (situation details included)

Turns out, the problem was hardware related.

Took the card back to the shop, they quickly determined that its memory was damaged. Got a new one (same model), plugged it in, and it immediately worked with the same drivers and xorg configuration.

I have now learned to check the screen for artifacts, and to remember that sometimes the error really isn't yours.


Cannot update using Update manager because "Package operation failed"

It seems to be HDD failure (I/O error). Check your disks first, then do a sudo apt-get clean && sudo apt-get update && sudo apt-get upgrade.


How to investigate a slow boot time after a hdd removal

Just to let people know, the issue has gone away at some point. I reboot about once every 3 month, so it's hard to say what fixed it. My guess is on a regular update of the OS.


What program manages the Ubuntu desktop?

Your right-click result looks like this formatting?

It's GNOME desktop, the default for 18.04 and 19.04.


Anacron doesn't run as a daemon, it's run from /etc/cron.d/anacron. It's there to handle longer time frames, not hourly events. The regular cron takes care of those.

If you want something to happen every hour, dump it in /etc/cron.hourly/, or schedule it via your crontab.

It's not started from root's crontab, because that's a single file, hidden in /var/spool, rather than a .d directory in /etc


vncserver in rc.local start-up password?

I've used two different techniques that allow a user to connect using their ID.  XRPD provides more flexibility in desktop sizing, as the size is specified at connect time, but requires an RDP client.  Running XDMCP provides a fixed desktop size (per port), but works with VNC clients.  I've documented my process in my block posting on Remote Desktops with VNC and RDP.

If I remember correctly from experimenting with your setup, you may need to specify the location of the password file.  You also need to do some extra configuration so that the desktop is not running as root.

If you want to use the techniques you have found, the password(s) should be in the $HOME/.vnc/password.  $HOME is the home directory of the user you are starting VNC as.  Try man vncpassword, man vncserver and man Xvnc for more details.  You can alter the password file location with the -rfauth.  Directory permissions must be 700 and the directory owned by the user running the vncserver.

Try to get the server running from an ssh session before starting it automatically. This should allow you to get some better diagnostics.


2 pc, 2 monitor: Switching between extended screen and two separate screens

If monitor 2 is a TV, that is absolutely no problem: just use the "Input" button to switch between input signals. (or use the remote)

If Monitor 2 is a real computer monitor, the easiest (and safe) way is to add a piece of hardware called a KVM switch.  Not only will that allow you to use the 1 monitor on 2 computers, but it will also allow you to use 1 mouse and 1 keyboard with both computers (if not desired, just keep these separate and don't hook them up)


Force mount sd card partitions after `dd`

I figured out that using eject -t re-mounts everything, as if the card has been ejected and re-inserted:
sudo eject -t /dev/sdc


sudo apt-get install linux-headers-$(uname -r) git build-essential
git clone https://github.com/lwfinger/rtlwifi_new.git
cd rtlwifi_new
make
sudo make install

cd ~
git clone -b troy https://github.com/lwfinger/rtl8723au_bt.git
cd rtl8723au_bt
make
sudo make install

Reboot and test, we may have to blacklist the rtk_btusb


LVM on encrypted partition drops me to initramfs root missing

The cryptsetup modules are only added to the initramfs image "when there is a device that needs to be unlocked at initramfs stage (such as root or resume devices)" (See: conf-hook). But this currently only works (reliably) if the root device is not in an (encrypted) LVM.
To force the cryptsetup modules to the initramfs image you have to set CRYPTSETUP=y in /etc/cryptsetup-initramfs/conf-hook.
You can also remove the cryptopts grub/kernel parameter when adding the initramfs option in /etc/crypttab:
sda5_crypt  /dev/sda5  none  luks,initramfs
I just answered a similar question at Unix & Linux, you might want to have a look there too.


LiVES hangs during initial configuration

What version of LiVES are you using ? This may be related to a bug which was fixed in version 1.6.3. (LiVES hangs on install if pulseaudio is not installed).

A workaround is to install pulseaudio before running LiVES for the first time. You can then remove pulseaudio after the LiVES configuration process.


Ubuntu boot with Windows 8.1, can't get Windows back

Did you define a partition. If not it will take some work. I tried installing Ubuntu with out making a partition and it took me a week to fix it.


Ubuntu 18.04.3 does not offer a graphical control for disabling touch on these kinds of tablets. It is, however, possible to disable touch through xsetwacom or with a custom xorg.conf.d configuration.

xsetwacom

You can use the xsetwacom command to immediately enable or disable touch. The setting will only persist for your current login session. See man xsetwacom for more details.

xsetwacom set "Wacom Intuos5 touch S Finger touch" touch off

xorg.conf.d

You can use an xorg.conf.d file to change the default touch setting for your tablet. See man wacom and man xorg.conf.d for more details. The following snippet should be saved as a file inside the xorg.conf.d directory (e.g. /etc/X11/xorg.conf.d/90-wacom-touchpad.conf)

# Disable touch on all Wacom touchpads by default.
# https://askubuntu.com/a/1190357/736425

Section "InputClass"
    Identifier "Wacom Touchpad Disable"
    MatchDriver "wacom"
    MatchIsTouchpad "true"
    Option "Touch" "off"
EndSection


Open a terminal (Ctrl+Alt+T) and type sudo apt-get update && sudo apt-get upgrade

sudo apt-get update refreshes your sources, basically it refreshes the sources from where the packages are going to be downloaded from and looks for new updates and so on.

sudo apt-get upgrade will download updates, if there any.


How do I deploy a juju charm using juju-deployer from a private git repository?

For git, the branch: string should:

begin with 'git', or
contain 'github.com', or
contain 'git.launchpad.net', or
be a local path to a git repo

If the string contains an '@' symbol (optional), everything after the '@' will be treated as the revision to checkout after the clone.


New battery in Asus laptop drops suddenly from 50%

I will guess that your new battery is broken or bad quality. Get a replacement if it is under warranty, or buy a new high quality one.


The mv command do not use its stdin, so you have to translate the stdin to a parameter, and for this can be used xargs:

find ./ -type f -name '*.mp3' | xargs mv -t /home/mitch/Desktop/Music/$ARTIST

Also, you can directly use the -exec action of find:

find ./ -type f -name '*.mp3' -exec mv {} /home/mitch/Desktop/Music/$ARTIST ';'

Edit

As pointed out by @geirha, the first command do not work if you have filenames containing spaces. In such a case it should be as follows

find ./ -type f -name '*.mp3' -print0 | xargs -0 mv -t /home/mitch/Desktop/Music/$ARTIST


Created hotspot in ubuntu 16.04 is not able to connect

This problem may occur because the driver of your wi-fi card does not support the AP (Access Point) mode. Because your WAN interface name is "wlo1" I assume you use Broadcom proprietary driver "wl", which does not support the AP mode.

You should use another wi-fi card driver with AP mode support to avoid this error.


Problems with plasma KDE desktop, Desktop Grid not working

I have the same problem. The solution for was to activate the option 'Enable compositor on startup' in 'Settings' -> 'Display and Monitors' -> 'Compositor'.
I have Kde Plasma version 5.16.3.


Build up a bash script to loop through your list of URLs and perform the curl command.

#!/bin/bash
file="filename"

while read line
do
  outfile=$(echo $line | awk 'BEGIN { FS = "/" } ; {print $NF}')
  curl -o "$outfile.html" "$line"
done < "$file"


It sounds like you're running the script with sh instead of bash. Make sure the first line of the file is:

#!/bin/bash

with no space before the #.


That's probably Nouveau DRM and without more info, it sounds like a corrupted file/sector.

Try putting your USB drive into another computer and run a scan on it to ensure it's not going bad, then reinstall Ubuntu on it and try booting to it again.

Edit: Given your comments, I'd venture to guess your computer's USB controller is going bad. You mention that it tries to detect the mouse and keyboard but eventually skips them. Can you tell if it actually finds the mouse and keyboard (sometimes, there's a [okay] or [fail] on the line in question)? If they're not being detected, then it's possible the USB controller is going bad. If they are, then go to Edit 2.

If the USB controller is going bad, that means the motherboard as a whole is going bad, and while you could keep it running for a while, it's only a matter of time before it gives out completely. Now would be a good time to start shopping for a new computer (or digging up your warranty information if your computer is new enough).

Edit 2: Now that you've posted an image, I found this forum topic that may be of use to you. In short, it may be an issue with your graphics card. You can adjust your settings at boot when at the Grub boot menu. The ubuntuforums has a good tutorial on how to change boot time settings.

Specifically, it says this about nomodeset and nVidia drivers:

  nomodeset
  The newest kernels have moved the video mode setting into
  the kernel. So all the programming of the hardware specific clock
  rates and registers on the video card happen in the kernel rather than
  in the X driver when the X server starts.. This makes it possible to
  have high resolution nice looking splash (boot) screens and flicker
  free transitions from boot splash to login screen. Unfortunately, on
  some cards this doesnt work properly and you end up with a black
  screen. Adding the nomodeset parameter instructs the kernel to not
  load video drivers and use BIOS modes instead until X is loaded.

  Note that this option is sometimes needed for nVidia cards when using
  the default "nouveau" drivers. Installing proprietary nvidia drivers
  usually makes this option no longer necessary, so it may not be needed
  to make this option permanent, just for one boot until you installed
  the nvidia drivers.


GRUB_DISABLE_LINUX_UUID=true in /etc/default/grub forces GRUB to not use UUIDs. If it is present in yours, delete it or comment it out and rerun update-grub.


How can I install grub customizer without using any command?

open your Ubuntu Software Center > Edit > Software Sources. Then, on the "Other Software" tab, click "Add" and enter the PPA under the same

 ppa:danielrichter2007/grub-customizer

then updating cache will be done automatically  .now open your software center and type

grub-customizer in your search box . it will be there to install .

All the best.


How can I embed a terminal widget on my desktop?

Maybe you want to give a chance to Yakuake (KDE based, running natively on Gnome), which embeds a drop down terminal emulator at the very top of your screen, and this can be invoked by pressing a custom key (ussually F12).

Yakuake, similar to Guake, runs in the background and it's available and ready when you need it in a key press. You can configure if you wish it in the foreground or it can lose focus as a common window.

I personally prefer the usage of Yakuake instead of Guake as I find it fully configurable and easy to set my preferences. It also features "terminal-splitting" on which you can create your custom layout for several terminals running different processes at once, like these shown in this screenshot:

Additionally, you can have an unlimited number of terminal sessions running at once, each one with its own custom layout.

Good luck!


installing 12.04 LTS on dell inspiron n3521

The heating issue is mainly caused due to excessive CPU usage. The fact is Ubuntu is a Desktop OS, so heating is not a big issue. So, the solution we can apply here is install a Power Management module (it worked for me).

Install TLP on Ubuntu

TLP is an advanced power management command line tool for Linux that tries to apply these settings / tweaks for you automatically, depending on your Linux distribution and hardware.TLP applies these settings automatically on startup and every time you change the power source.

Before proceeding with the installation, there are a couple of things you need to do:

First, if you've added any power saving settings / scripts (e.g.: in /etc/rc.local), remove them or else TLP may not work properly:

sudo apt-get remove laptop-mode-tools

Ubuntu (and Linux Mint, etc.) users can install TLP by using its official PPA. Add the PPA and install TLP using the following commands:

sudo add-apt-repository ppa:linrunner/tlp
sudo apt-get update
sudo apt-get install tlp tlp-rdw

TLP will automatically start upon system startup, but to avoid having to restart the system to get it running for the first time, you can start it (required only the first time) using the following command:

sudo tlp start

There are some optional packages you can install for some extra features:

smartmontools - needed to display disk drive S.M.A.R.T. data;
ethtool - needed to disable wake on lan.

Install these tools using the following command:

sudo apt-get install smartmontools ethtool

While the default TLP configuration should be enough to provide optimized power saving out of the box, you can modify the TLP settings and access some advanced features by editing the TLP configuration file called "tlp" located under /etc/default/. To open this file as root with Gedit, use the following command:

gksudo gedit /etc/default/tlp

Make any changes you like, then save the file and to apply the changes, either reboot the system or simply run

sudo tlp start

For Ubuntu 14.10, you can use Linux Thermal Daemon (thermald) which is a tool developed by Intel's Open Source Technology Center which monitors and controls the CPU temperature, preventing it from overheating.


Here is how I managed to install raspi-config on the Pi 3 B running Ubuntu 18.04 server for ARM64:

wget https://archive.raspberrypi.org/debian/pool/main/r/raspi-config/raspi-config_20160527_all.deb -P /tmp
apt-get install libnewt0.52 whiptail parted triggerhappy lua5.1 alsa-utils -y
apt-get install -fy
dpkg -i /tmp/raspi-config_20160527_all.deb

After these commands, raspi-config (albeit seemingly an older version) was installed on the Pi. It does give a warning that it's only meant to work on Raspbian, but it seems to have done the job for me. After installing raspi-config, I had to mount the boot partition:

sudo mount /dev/mmcblk0p1 /boot

And then use sudo raspi-config, following the prompts to enable i2c (in Advanced Settings->i2c). Then ls /dev/i2c* responds with /dev/i2c-1, indicating that i2c is enabled. I then managed to detect my i2C device using sudo i2cdetect -y 1. I found the instructions for installing raspi-config in a script here.


How to set password for grub bootloader?

Username and password are added to the /etc/grub.d/40_custom file. Use your favorite editor and add the following line:

password <<username>> <<password>>

Example:

password john johnP123

If you want to add a hashed password, use the *grub-mkpasswd-pbkdf2 utility to generate a hashed password. Add this hashed password to the /etc/grub.d/40_custom file like this:

password_pbkdf2 <<username>> <<hashed-passwd>>

Save the file and run sudo update-grub.


No precision specified for (float), WebGL

This is not a limitation of your hardware, but relates to no precision having been set for the float data type in the shader. See http://code.google.com/p/glsl-unit/issues/detail?id=9

It's entirely possible that WebGL works for you. Have a look at the demos from http://www.khronos.org/webgl/wiki/Demo_Repository


Looks like you are trying to install with pip3. The problem might be that pip3 is installing for python3.5. I think you want it for python3.8. For installing a library, say numpy with python3.8, do this:
python3.8 -m pip install numpy

or if you want to install it for all your users
sudo python3.8 -m pip install numpy

This should do the trick.


Impossible to select glossy paper when printing

In my case I fixed it by selecting Gutenprint as driver.


fullscreen VNC window on a specific workspace

Have you considered using the native Windows Remote Desktop instead? In my experience it's very much superior to VNC.

The rdesktop client has a range of options that suit it being used this way. My setup at home is that my work laptop stays closed on a podium next to my desk and all my interaction with it is via an rdesktop session stretched across both screens of my top-right workspace. Rather than using the full-screen option, I instead set the geometry of the window to be the size of my dual-screen, minus the menu bar at the top, and use the -D option to hide the window decoration. I can continue to switch between workspaces with the shortcut keys, although currently alt-Tab doesn't propagate to Windows, I put up with that.

It also permits you to redirect resources like disk folders and sound, which is very convenient for exchanging files ; my home folder is automatically available on the Windows box at \\tsclient\adrian\


You can use syncevolution to sync your contacts by installing it from repo

  sudo apt-get install syncevolution syncevolution-provider-uoa


Wifi problem in ubuntu using macbook pro when it restart

Is the code you enter:

sudo modprobe b43

If so, let's get the system to load the driver b43 automatically:

sudo su
echo b43 >> /etc/modules
exit


Where could I find/download/install Ubuntu application software?

Please take a look at the wiki for further documentation onto how the main repositories work: https://help.ubuntu.com/community/Repositories/Ubuntu

The location of these settings may vary dependent on your flavor of Ubuntu and desktop. It is recommended that you install Synaptic via the Software Center or via aptitude (sudo apt-get install synaptic) after enabling the "Universe" repository.

Enabling the "Universe" repository will allow you to install third party open source software which includes the Evolution email client and Synaptic.

If you are not using these repositories on purpose, you may be missing out on updates and dependencies via the repositories. The direct deb downloads for Evolution can be found here: https://pkgs.org/download/evolution

Select your Ubuntu version and either select the Ubuntu Universe amd64 package (For 64bit Computers) or the Ubuntu Universe i386 package (For 32bit Computers)


Open a terminal (Ctrl + Alt + T) and paste the following code :

sudo apt-get install ubuntu-restricted-extras

Or install using Ubuntu Software center :

It will install proprietary codecs needed for reading audio and video files.

Alternatively you can use VLC Media Player which can play most of the audio/video formats :

sudo apt-get install vlc


Can Startup Disk Creator make a bootable CD/DVD?

For burning the DVD, Startup Disk Creator is the wrong tool for the job. Startup Disk Creator will not burn DVDs--its purpose is just to write bootable ISO images to USB flash drives and SD cards.

You said you have K3b. That will burn DVDs, so you may wish to use that. Burning an Ubuntu ISO image with K3b is covered in the Burning from Kubuntu section of "BurningIsoHowto" in the Ubuntu help wiki.

  Insert a blank CD [or DVD] into your burner. Open K3b from the KickOff menu.
  On the near bottom of the application where it says "Welcome to K3b - The CD and DVD Kreator" click "more actions..." and then pick "Burn Image".

  Start the burning process.
  You can use the default settings.
  After burning completed, verify that your CD contains multiple files and folders and not just the ISO file. This way you will know
  the process was performed correctly.

— BurningIsoHowto by "Contributors to the Ubuntu documentation wiki", reproduced here (with slight modification) as permitted by the CC-BY-SA 3.0 license under which both Ubuntu help wiki and user-contributed Ask Ubuntu content are provided. This is only part of that wiki page. I have altered its formatting and spelling slightly and removed a broken link.

For more information on burning an Ubuntu ISO image to a DVD in Ubuntu, see:

How to burn a DVD on Ubuntu
"CdDvd/Burning" in the Ubuntu help wiki
"burn as file or burn content" Which should I choose?
How to burn an ISO-image into a DVD on Ubuntu?


ASUS GL753VD-GC003 Baclight Keyboard Colors

I don't know how to change the backlight (yet) but if you update to the latest kernel (I have 4.12) the function keys will work (you have to press FN though). Hope it partially helps you.


To deploy from CLI a node with hostname=maas-1.maas

maas maas node commission <node-uuid> # will change to commissioning and then ready
maas maas nodes acquire name=maas-1.maas # will change to allocated
maas maas node start <node-uuid> # will change to deploying and deployed


I'm guessing you are using python2 on the command line and python3 in the ide, try installing matplotlib in both enviroments.

apt-get install python-matplotlib python3-matplotlib


How to transfer files from windows to Linux

Your windows files will be on a separate drive or partition.

You should see this drive/partition under the device section of your file browser.  Clicking on it from there should either open it or mount it and open it.

If for some reason you don't see it there automatically, you can check your connected drives and partitions by running applications such as gnome-disk-utility.

From the Ubuntu Launch button type disk in the search field.  The left panel will display all your connected drives.  You can select a drive by clicking on it.  Then on the right you'll see the GUI of the partitions.  You can select the desired partition.  Once selected (mouse clicked) you'll have an option to mount it by clicking the play button (it looks like a triangle).  Once mounted you'll see it listed in your file browser.

You can unmount it by clicking on the stop (square associated with it).


trying to clamscan my drive, error in permissions

You are missing that Unix/Linux cares about case (UPPER,lower) and that environment variables have an initial $, and their values. See echo "$HOME"; echo "$USER".
--log=$HOME/infected/clamscanlog


during final part installation I get the message ' root' not defined go to partioning. Where can I find partioning?

Press the super-key (the Windows key) and in the search box type 'Gparted'. This is the partitioning tool. If it doesn't show up, then you need to install it from the Ubuntu Software Centre. Come back to us when you have Gparted working. The fix is easy from there. Good Luck. Update: there is some more help here, with a screenshot too (@Srinivas Gowda). If you want more help just ask again.  Ubuntu 12.04 installation problems


How to create a Bookmark that opens a Network shared folder

A link to a network folder will only work immediately if it is mounted automatically at startup; you need to edit fstab, create a folder to mount the network folder in and set credentials.

I am trying to find a good manual, will post it back...

OK, couldn't find it, but it is not that complicated:

Install cifs-utils.
create a folder to mount the network share into (can be in your personal folder)
create the credentials file: gksu gedit /root/.cifscredentials, add the following:

user=your_username
password=your_password

add a line to fstab, to give you an impression, this is mine: the first section is the network share, the second is the folder you created to mount the share into

//192.168.0.104/werkmap_documenten/documenten_Jacob /home/jacob/Netwerkmap cifs auto,iocharset=utf8,uid=jacob,gid=users,credentials=/root/.cifscredentials,file_mode=0775,dir_mode=0775 0 0

I hope I did not forget anything, but I think not. Good luck!


How can I install and use gcc 6 on xenial?

Looks like there is a gcc 6 package available for Xenial Xerus in the Toolchain test builds PPA:

Publishing details

Published on 2016-09-04

Changelog
gcc-6 (6.2.0-3ubuntu11~16.04) xenial; urgency=medium

  * Build for 16.04 LTS.

 -- Matthias Klose <email address hidden>  Sun, 04 Sep 2016 14:19:52 +0200

Install the PPA and the compiler as follows:

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-6 g++-6

This installed nicely on my Xenial system:

andrew@athens:~$ gcc-6 --version | head -n 2
gcc-6 (Ubuntu 6.2.0-3ubuntu11~16.04) 6.2.0 20160901
Copyright (C) 2016 Free Software Foundation, Inc.
andrew@athens:~$

Note that this does not make gcc 6 your default compiler and this is probably best at the moment until this most recent version matures a little...

References:

Xenial Packages: “PPA for Ubuntu Toolchain Uploads (restricted)” team


When you see the 'redirect' characters -> in the file list, it is symbolic links, made by ln -s xxx yyy. That is is soft links (also called symbolic links) is also shown by the first 'l' in the access-rights.

The other link option is hard links. The number just after the access-rights show how many hard-links there are to a file or directory. To find the other(s) you have to look for files/directories with same inode-number in the same filesystem.

Hard links can only be within the same filesystem. Soft links can cross filesystem borders.


I am getting a motd header syntax error and I need help enabling motd

The "line 31: syntax error: unexpected end of file" happens because you have an odd number of "paired" characters. By "paired" characters, I mean characters that MUST appear with amatching character, possibly with stuff in between. For example, ", ', (, [, {, etc. Count your quotes:

files="/etc/update-motd.d/00-header /etc/update-motd.d/01-sysinfo /etc/update-motd.d/02-footer"
grep --color=always -E "\"|'|\(|\[|\{|\}|\]|\)" $files


After shutdown, Ubuntu fails to start with fsck prompt

fsck

Let's first repair your file system...

at the (initramfs) prompt, type: fsck -f /dev/sda10
repeat the fsck command if there were errors
type reboot

NCQ

Then we stop the NCQ errors...

Native Command Queuing (NCQ) is an extension of the Serial ATA protocol allowing hard disk drives to internally optimize the order in which received read and write commands are executed.

Edit sudo -H gedit /etc/default/grub and change the following line to include this extra parameter (ignore any warning messages). Then do sudo update-grub to write the changes to disk. Reboot. Monitor hangs, and watch /var/log/syslog or dmesg for continued error messages.

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash libata.force=noncq"

bad blocking

Then we test for bad blocks on the disk...

Note: do NOT abort a bad block scan!

Note: do NOT bad block a SSD

Note: backup your important files FIRST!

Note: this will take many hours

Note: you may have a pending HDD failure

Boot to a Ubuntu Live DVD/USB in “Try Ubuntu” mode.

In terminal...

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

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

or

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

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

The -fccky parameter...

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

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

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

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


Search for and launch Printers in Dash.
Right click on your printer, and select Properties.
Select Job Options.
Check the Scale to fit option.
Click OK.


There is no way to neatly downgrade a package in Ubuntu. However, in your case, you can just change GTK theme. System Settings - Application Appearance - GTK and change themes there. If it works, there are less ugly themes in separate packages, like QtCurve-GTK.


Duplicity Restore Failure under Ubuntu 18.04

I/O errors are usually bad news. What's the health of your device?

Example:

sudo smartctl -a /dev/yourdevice

If "smartctl" does not work, you may need this:

sudo apt-get install smartmontools


How do I get a Tata photon VME-102 USB modem working?

in case you haven't figured it out yet then
here you go....

Steps 1. plug in the modem
      2. run lsusb in terminal
modem is connected as Bus 00x Device 00z: ID 22f4:0021

 3.type -    cd /etc/usb_modeswitch.d
 4. type-    sudo gedit

 5. paste the following script

#

#############Tata Photon+

#

#############Contributor: Nirbheek Chauhan

DefaultVendor= 0x22f4
DefaultProduct=0x0021

TargetClass=0xff

MessageContent="555342439f000000000000000000061b000000020000000000000000000000"

         6. save it as:     /etc/usb_modeswitch.d/22f4:0021
         7. type       cd /
         8. type     sudo usb_modeswitch -c /etc/usb_modeswitch.d/22f4:0021
         9. type     sudo usb_modeswitch -c /etc/usb_modeswitch.d/22f4:0021
         10. type    sudo usb_modeswitch -c /etc/usb_modeswitch.d/22f4:0021
         11.type     sudo usb_modeswitch -c /etc/usb_modeswitch.d/22f4:0021

open network manager and new cdma broadband connection would be listed there

steps 10 & 11 are repeats of 8 & 9 but that is a way i devised for getting olive v me102 modem to be recognized by ubuntu.

also note that the modem replugging would require the steps 8 and 9 to be performed everytime.

username and password both are internet

P.S. i am just a fellow user not a geek ! pardon me for the above format.


Changing the Grub menu does not change booting

With these two parameters in your /etc/default/grub:

GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=true # note the difference

it'll remember the LAST chosen OS. So select Ubuntu, and it'll default to Ubuntu on the next boot.

You must do a sudo update-grub after making changes to /etc/default/grub for this to work.


What is the package name for editing keybindings in gnome/budgie?

The app is known as "Settings" and is provided by the package gnome-control-center

You can install it if it has gone awol via

sudo apt install gnome-control-center

You can also launch the keyboard binding section via:

gnome-control-center keyboard

You could wrap that command into a .desktop file an place in ~/.local/share/applications to ensure it appears in the menu.