Unable to either Restart or Shutdown my Install of Ubuntu 14.04 LTS ( No Dual Boot ) on Acer Aspire ES1-512

I spent a weeks with solving this problem on the same ntb as your without any progress. Yesterday I finally found the thread. In the bios you have to disable xHCI support (USB 3.0). After that my Acer works perfectly (shutting down, restart, sleep mode).

Here is the forum where I've found the help:

https://bbs.archlinux.org/viewtopic.php?id=195407


What does it mean that Lubuntu and Ubuntu Precise Pangolin have different "Supported until" dates?

Lubuntu 12.04 it's NOT the LTS and it will come to an EOL like the rest of non-LTS releases. Trusty Tahr 14.04 will be the first Lubuntu LTS release with five years of support.

From official website dedicated to Lubuntu documentation.

Please note that Lubuntu 12.04 is not an LTS (5 years support), but a standard release, supported for 18 months. This is simply due the fact there is insufficient 'man-power' to commit to 5 years of support.

*You will receive updates for 5 years, yet not for all of your packages including LXDE.

(for example packages by Canonical or Ubuntu One Team: Ubuntu One or Firefox won't be updated for Lubuntu) Yet if you curious about every single package, when you'll be on Lubuntu run:

apt-cache show packagename | grep ^Supported

and you'll see if it's supported yet or not on your current system.

P.S.

And it's actually 12.10 that is still supported. And Ubuntu 12.10 comes to an EOL this April 2014 and 12.10 it's not LTS either. And no you will not get support, fixes, security updates for an EOL version of Ubuntu/Xubuntu/Lubuntu etc...


xfce4-settings-manager don't show many configuration programs

I have found how to configure the xfce4-settings-manager to show the other settings applications. One package which has the correct files is the xubuntu-default-settings. Installing it and using the Xubuntu session made the menu work.

However, I did not wanted a Xubuntu session, but a xfce one. I started to search the files that xubuntu-default-settings install, and found the file:

  /etc/xdg/xdg-xubuntu/menus/xfce-settings-manager.menu

I read the files and, apparently, it is based on the configuration of the .desktop files.

This file is more sophisticated than the standard that comes with the xfce4-settings, being configured such way the applications not made specifically for xfce, but that serve to configure the system, are shown too. It's pretty interesting to see how the conditions are made on it, some search for additional informations and some are directly including or excluding the .desktop files.

User-wide, the configuration menu is at ~/.config/menus/xfce-settings-manager.menu. System-wide, it searches /etc/xdg/menus/xfce-settings-manager.menu. For the Xubuntu session it is used /etc/xdg/xdg-xubuntu/menus/xfce-settings-manager.menu.

So, to make the xfce session have the settings appearing, I have copied the file from the /etc/xdg/xdg-xubuntu/menus/ to /etc/xdg/menus/, so it becomes a "default" for the xfce session too. Looks like this file will persist, but another alternative is to copy it to /etc/skel/.config/menus/.

I could edit them to make them show specific entries, but the configuration of the Xubuntu's file is good enough to fit my needs.


What's a good ipsec client for ubuntu 15.10?

An answer about the title: I have been using StrongSwan for the client, and this page has been helpful to me:
StrongSwan config

About the "agressive mode", it is not as secure, so it is your choice. But on my netgear VPN I can choose from "agressive", "main" or "manual". I guess it is possible on your vpn server software version too.


Wi Fi Not working in ubuntu 16.04 HP Stream

Without any internet access nor the install DVD or USB, I suggest that you download the .deb file for bcmwl-kernel-source here: http://packages.ubuntu.com/xenial/bcmwl-kernel-source Be certain to download the 32- or 64-bit version as appropriate. Find out what you need from the terminal:

arch

If the command returns x86_64, then yours is a 64-bit system and you need the amd64 version. Likewise, download dkms: http://packages.ubuntu.com/xenial/dkms

Transfer the deb files on a USB drive or similar to the desktop of the Ubuntu computer. Next, in a terminal:

cd ~/Desktop
sudo dpkg -i dkms*.deb
sudo dpkg -i bcmwl*.deb

Reboot.


Why when I add a new network interface and try to use another interface it times out?

The screenshot you enclosed already contains the answer :)
default via 192.168.8.1 dev enx001e101f0000 proto dhcp metric 100
default via 192.168.1.1 dev wlp4s0 proto dhcp metric 600

Your system has two default gateways defined. In that case, your system will use mainly the gateway that has lower metric (in that case 192.168.8.1 which has metric 100) and switch to the second one only when the first one is unreachable. That's just how networking works.
So even if you force the packets to go out via 192.168.1.2, they will be sent to destination 192.168.8.1, which is not accessible from this interface, and the packets will get lost.


How to configure Kubuntu fonts to look line ones used in Unity - Ubuntu 12.04?

You can make chrome use it's own theme (without kwin borders) simply by changing some chrome configs (I do not remember exactly which ones, but I've done it before).

Furthermore you can look for kwin(and other) themes on kde-look.org.

AFAIK fonts in kubuntu are configured exactly the same as in ubuntu.
But if you would like exact match make your settings like:

All fonts(no including monospaced): Ubuntu
Monspace font: Ubuntu Mono 12, Regular
Window title font weight: Bold
Normal font size: 10
Small font size: 9
Hinting: Slight
Subpixel smoothing: RGB (or none)

As a result You'll get something like: http://img339.imageshack.us/img339/5948/ubuntufonts.png


GParted is pretty conservative about this, but it can be done with other tools; however, there are significant differences depending on the partitioning method (conventional partitions vs. LVM) and the filesystem in use. For instance:

You must distinguish between resizing partitions (which are simple data structures that identify the start and end points of filesystems or other data structures) and filesystems (which are much more complex data structures to help identify files, directories, and associated metadata). GParted presents one user interface for performing both actions, thus masking this important distinction.
When resizing a conventional partition that's used "raw," you need to either resize, or delete and re-create, the partition you want to change. You do this before increasing the size of a filesystem from its end or after shrinking the filesystem if you want to decrease the size of a partition. Because of the way the Linux kernel handles these things, it may be difficult to get the kernel to recognize the changed partition size of a partition with an active filesystem, so you may need to reboot after making a change to the size of a partition.
Moving a partition or resizing it by changing its start point requires re-writing significant amounts of the filesystem it contains. This is because filesystems are defined, in part, by data structures that are located relative to the start of the partition (or other container). GParted handles this more-or-less transparently, but if you want to do it with other tools, you'll need to be very careful to move the filesystem data structures and to get the resized partition to start at exactly the right point. This is a task for experts with nerves of steel; do not attempt such things unless you know what you're doing! Even an expert would do this only after making a backup.
Another data structure type is Logical Volume Manager (LVM), which is an alternative way to identify filesystems. LVM is typically layered atop ordinary partitions -- that is, you designate one or more partitions as physical volumes (PVs) in an LVM volume group (VG), then subdivide that VG into logical volumes (LVs), which are what hold filesystems. Despite the added complexity, LVM makes it easier to resize filesystems because LVs are more like files -- you don't need to be concerned with where they begin or end; you just need to know the LV's name and size.
If you use LVM, logical volumes (LVs) hold filesystems, and so you're normally concerned with resizing LVs, not partitions. Resizing LVs while they're in use is easy, and is done via lvresize; but the filesystems they contain may still need to be resized separately. (Sometimes the --resizefs option to lvresize will help with this task, though.)
If you want to increase the total space used by LVM, you can add a new partition as a PV and then resize LV(s) within the VG. If your LVM setup contains multiple PVs, you can reverse this process (although you may need to explicitly clear out one or more PVs with pvmove followed by vgreduce). If you've got one big PV, you'll need to resize it with pvresize and then adjust the containing partition's size with fdisk, parted, gdisk, or some other tool.
Different partitions support different methods of resizing. For the popular ext4fs (and its predecessors, ext3fs and ext2fs), you can use resize2fs to do this job. This tool supports increasing or decreasing the size of unmounted filesystems; but for mounted filesystems, the size can be increased but not decreased. For other filesystems, you must consult the filesystem's own sizing tools.
GUI tools like system-config-lvm can help with LV resizing when using LVM.

I don't use the Windows tools very often; however, my vague recollection is that, when you resize an in-use Windows partition, its tools require a reboot as part of the operation. If this recollection is correct, then the Linux and Windows tools actually aren't all that different from a low-level point of view; it's just that Windows helps automate the different steps involved, whereas you must explicitly do the different things yourself under Linux. In some cases, such as when increasing the size of an LV, Linux may actually be more flexible than Windows.

The why of it has to do with the way the data structures are created and otherwise manipulated by the kernel; the kernel tends to assume that partitions that are in use won't change in size. That said, I'm not familiar with the internal kernel details, just some of the system calls that partitioning tools can use to tell the kernel to update its partition-table data. There have also been changes to how the kernel handles this from time to time; but such changes require changes to userspace tools that may take a while to propagate. GParted is itself built on numerous other levels (most notably libparted, but also GUI libraries, the X Window System, etc.), so it can be slow to catch up to new features at the kernel level.

There are numerous questions and answers on this site that cover numerous specific resizing scenarios. Covering them all in a single answer would be tedious and impractical.


There are no netbook remix for 11.04 on the Official download page.

Same goes for their Release page.

So it seems like there are no official remix, but as far as I know the netbook remix was mainly focused on compatibility with netbook hardware, so if your computers hardware is detected ( webcam, cardreader, graphic card ) then you would not gain that much by using a netbook remix.

Slugishness can be the symptom of many things, my tips is to check if you have some zombieprocesses or some processes that hog the cpu.
This can be done with System Monitor.

One more reason might that your harddrive might be getting old/damaged, one way to check is to use Disk Utility and do a Benchmark and select Start Read-Only Benchmark. While in Disk Utility you can check the SMART Statusif your harddrive supports it, do not that S.M.A.R.T. isn't realy working for SSD as far as I know.


Hide log messages during startup on Ubuntu Gnome 15.10

The boot loader is using a piece of software called Plymouth.

To work correctly you need to use KMS compatible graphics drivers and sometimes just a bit of luck - in Ubuntu prior to 14.04 Plymouth hasn't really changed for 5+ years and is showing its age.  It is being updated in 14.04 and hopefully will work in a wider number of cases.

If you are using proprietary graphics drivers (often NVIDIA or AMD) then these are currently not KMS based and can be a cause of a very short/missing boot Plymouth picture.

One technique I use is to force Plymouth to run in a rather old but still useful technique called a framebuffer.

With this you'll get a longer display of the picture - you'll still get one TTY switch when moving from Plymouth to GDM.  This is not something you can workaround until the move to Wayland (assuming this promise is realised).

echo FRAMEBUFFER=y | sudo tee /etc/initramfs-tools/conf.d/splash
sudo update-initramfs -u


D-Link DWA-130 rev E1 RTL8191SU Wont Connect to Network (14.04)

You can solve it by re-installing the driver and running

sudo update-initramfs -u

after that.


How to show mouse pointer location using a mouse click?

Please note first that changing to the left click isn't practical and may conflict with another key binding, like the menus.

But you can use ccsm to initiate another key for showing the mouse location:

If you don't have ccsm: Install From Here

You also need the package compiz-plugins-extra. You can find it in the Ubuntu Software Center.

Go to CompizConfig Settings Manager > Accessibly > Show Mouse:

Under Use This Plugin left menu: check Enable Show mouse.
Change the mouse Initiate key binding as below.

To determine the meaning of Compiz button numbers, check this answer.

Button 1 is generally the Left click
Button 2 is generally the Middle or Right click

To take effect, you might need to "restart" Compiz:

compiz --replace &


Is Yahoo Messenger, Gtalk, Hotmail Messenger now available on ubuntu 13.04?

Yes, you can chat using all these messengers on Ubuntu. However its not recommended to use their companies programs. Yahoo messenger looks like its from 1999.

What I suggest you do is install a 'messenger program'. There are a few to pick from so I am going to give you two options.
One is Pidgin, the other is Empathy (more can come in the comments).
Pick either one you like, that's really up to what you feel is comfortable to you (if you ask me I use pidgin, but that is only me. I also recommend it because it works on windows, so you can try it out before you move to Ubuntu).

You can install pidgin using the command:

apt-get install pidgin

and Empathy (if not already installed):

apt-get install empathy

Once you install a messenger application, you can add to it ALL your messenger accounts. Yes! This means you can access your contacts and messages from both gtalk, hotmail and yahoo from the same program!
It works smoothly, and is faster, because you don't have to open three different programs to do the same thing.


When you 'Browse' for an application, you can select any executable file. Almost all applications have their executable file in the folder /usr/bin, so navigate to there. Evolution, for example, has the executable file called 'evolution' in the /usr/bin folder, so select this.

You can then edit the name for the launcher, the comment and the icon to use. Normally it is clever enough to choose the icon for you but if not, icons are generally stored in /usr/share/pixmaps.

Another way to find out the commands to use is to use the 'Main Menu' program which edits the Applications, Places, System menus for Ubuntu Classic (GNOME 2.x).

Once launched, navigate to the application you want to find the command for and click properties.

You can then look at the command for that application. You can use this command when creating your own launcher.

There is another method you can use for pre existing applications. Open up a file manager and navigate to /usr/share/applications then right click on the launcher you want and select Copy to -> Desktop.


ok let's do this instead open the disk utility, now, turn the slide to off, select mount on startup or boot.
Now you have to add a line before the " x-gvfs-show " add " comment=" so it should be like this " comment=x-gvfs-show".

Now i selected the mount point /media/yourusername/Linux.

After that input your password and reboot.

Take a look to the image below.


How to automatically unlock private SSH key?

For reusage of encrypted key use ssh-agent. It prints some output containing environment variables that you have to export. Then add keys with ssh-add.

You have to unlock your key only once until ssh-agent is running.


Completely disable GNOME desktop right click

From the gnome shell source code: backgroundMenu and popupMenu.

I successfully disable background menu by using gnome-shell extension. Please do the following steps:

Download my gnome-shell-extension.
Place the metadata.json and extension.js to ~/.local/share/gnome-shell/extensions/disable-background-menu@git.wongwanchap.mo/ (create the folder if necessary)
Restart the gnome-shell by logout and login again.
open tweaks tool and go to extension and find Disable background menu extension and enable it.

I am not a expert, I have just recently learned about gnome-shell, and this is my first extension. (It is not even published to gnome-shell community yet.), currently it only works when dconf write /org/gnome/desktop/background/show-desktop-icons false.

For the other case, you need to do the same for nautilus menu.


Copy file from remote to local with Windows 10 Bash

Turns out scp was trying to connect to Windows 10 system directly, instead of the Linux subsystem; and that's why none of the passwords works, since user johndoe doesn't exist on my Windows system in the first place.

To resolve the issue, I installed OpenSSH for Windows. Then, instead of the Linux subsystem user name, I supplied my Windows user name (the one you get from typing whoami in Windows PowerShell or Command Prompt) to the command; scp still doesn't quite work (gave me lost connection error), but at least sftp does now:

sftp windows.user.name@my.ip.address


How to Clean Install on reformated disc?

You can install ubuntu from USB Stick.
If you have another computer with windows or ubuntu you can follow this instructions:

http://www.ubuntu.com/download/help/create-a-usb-stick-on-windows

or

http://www.ubuntu.com/download/help/create-a-usb-stick-on-ubuntu


I cannot open gnome-terminal on Ubuntu 18.04

Part of the problem might be because you are using a "new lab computer" and who knows what they've cooked up in the lab?

Try this for starters:

$ apt list | grep gnome-terminal

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

gnome-terminal/xenial,now 3.18.3-1ubuntu1 amd64 [installed]
gnome-terminal-data/xenial,xenial,now 3.18.3-1ubuntu1 all [installed]

If it doesn't say "[installed]" at the end of the last two lines then let's install it with:

sudo apt install gnome-terminal

Hopefully the problem is as simple to fix as that...

Reply to comment:

Sounds like you need to use:

sudo rm /usr/bin/python3
sudo ln -s python3.5 /usr/bin/python3

Source: Gnome terminal will not start


Updating the BIOS before installing Ubuntu

Generally you don't but it really depends, you can install Ubuntu first to see if it's running smoothly on it. Sometime BIOS upgrade can fix some issues in Linux.

For example, on Dell XPS 13 9343, user may experience some key repeat bug, and this one can be fix by upgrading the BIOS (AFAIK, this issue do exist across several Dell laptops).

So please check the vendor's website for the BIOS release note to determine if you need it.


Installing a NAS server with multiple hard drives

You can certainly do that.  After the server is up and running on the single hard drive, install the others using these instructions.

The tl;dr version is that you create a mount point for each drive and update /etc/fstab to mount the new drives.


Googling a bit lead me to sites talking about 200 lines kernel patch.

That was my immediate thought when I saw "cgroup". The patch was available as a bash-hack too so it might be possible that you've just applied that and it's not working now because the other setup (involving creating some boot-time scripts) isn't there on your new install.

You've got two options:

Remove the changes from ~/.bashrc. They look like this:

if [ "$PS1" ] ; then
   mkdir -p -m 0700 /dev/cgroup/cpu/user/$$ > /dev/null 2>&1
   echo $$ > /dev/cgroup/cpu/user/$$/tasks
   echo "1" > /dev/cgroup/cpu/user/$$/notify_on_release
fi

Repeat the whole setup process so it works again:

http://www.webupd8.org/2010/11/alternative-to-200-lines-kernel-patch.html


Ubuntu 16.04.01 - Kernel 4.4.0-31 does not load after Nvidia 367.35 installation

I have fixed these issues, at the cost of my data. Decided to do a fresh installation of Ubuntu 16.04.1. I didn't decided that I did not have important data.

This solution may have solved my issues, BUT it was at the cost of the data housed within. I don't suggest others jump to this solution for the reasons I did. Arup Roy Chowdhury suggested a better solution:

  Please install drivers via official Canonical ppa at
  launchpad.net/~graphics-drivers/+archive/ubuntu/ppa I have had no
  issues installing latest drivers via this method. The .run method is
  not recommended for Ubuntu as per Canonical norms.  – Arup Roy Chowdhury


Question about Ubuntu default partitions

What does the Ubuntu 18.04 installer do in terms of default partitions if you choose to wipe the whole disk?

1 partition for / and a boot partition.

  I am wondering if it would be better to manually create /, home and swap instead?

don't forget to create a UEFI from BIOS. Is a one time task for a disk.
we don't do swap on a partition anymore. The system will create and use a swapfile.
I use the following setup after a few years of experimeniting:

/ 25 Gb (SSD).
/home (Remainder of my SSD. When I had 1 disk I made /home/ 10Gb).
/discworld (ie a "data partition"; My whole 1Tb HDD).

Then I copy a backup of ~./config/users-dirs.dirsover the default one. My version was edited to replace$HOME/` with the mountpoint of the data partition.

If you run services like apache or mysql edit those respective configuration files to point to a sub directory in the data partition.  Keep / and /home clean from user related files so you can instantly decide to do a reinstall. Makes also for an easy backup: backup your partition and you have it all saved.


OrangeHrm 3.3.3 installation and configurations error

I had the same problem. Here is how to solve it:

First, generically speaking, you can tail the orangehrm.log file in your installation to check for errors. It will be inside your orangehrm folder, following the path ./symfony/log/orangehrm.log (e.g.: /var/www/html/symfony/log/orangehrm.log).

For me, it said:

  Uncaught Error: Call to undefined function mysql_connect()

Apparently, it is trying to use a deprecated set of functions, not available on php7.0. The article you posted uses php5, but in Ubuntu 16.04, for example, php7 is the default.

So, follow this article in order to remove the default php7.0 (if you have it installed) and install PHP 5.6:

Installing PHP 5.6 on Xenial (16.04)

Then restart Apache server (sudo service apache2 restart) and check you PHP version.

After that, you will need to change the default enconding for your MySQL installation too, if your have an up to date version (of MySQL or MariaDB), because OrangeHRM's installation will fail otherwise. This is a workaround, actually. Since version 5.5.3, the default enconding changed to utf8mb4, allowing less characters on keys, indexes, etc. If you don't change it back to utf8, you will see the error Specified key was too long; max key length is 767 bytes during OrangeHRM's install, failing to create tables, etc.

Edit the following file and specify the default char set for MySQL:

sudo nano /etc/mysql/my.cnf

Note that this file might be in different locations. If you don't find it, run: mysqld --help --verbose 2> /dev/null | grep -A1 'Default options' to get other possible paths.

The result should look like this, after editing the file (this is just a subset of the file contents):

# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.

#
# This group is read both both by the client and the server
# use it for options that affect everything
#
[client-server]

[client]
default-character-set = utf8

[mysql]
default-character-set = utf8

[mysqld]
init-connect='SET NAMES utf8'
collation_server=utf8_unicode_ci
character_set_server=utf8

Other locations/files to look for this configuration:

/etc/mysql/conf.d/*.cnf

And if you're using MariaDB:

/etc/mysql/mariadb.conf.d/*.cnf

Look for any line defining default-character-set = utf8mb4 and change it to default-character-set = utf8

Execute the following command to make sure you got them all:

mysql --print-defaults

And then restart MySQL (sudo service mysql restart).

Connect to MySQL:

sudo mysql -u root -p

Run the following to check your current char set values:

SHOW VARIABLES WHERE Variable_name LIKE 'character\_set\_%' OR Variable_name LIKE 'collation%';

Now, provision the database itself (replace your_db_name, your_db_user and password by your actual values):

create database your_db_name CHARACTER SET utf8 COLLATE utf8_unicode_ci;
grant all privileges on your_db_name.* to 'your_db_user'@'localhost' identified by "password";
show databases;
flush privileges;
exit;

One last thing: make sure you have the extension/module php5.6-xml. Install it if you don't (sudo apt-get install php5.6-xml), otherwise you're going to see the error PHP Fatal error:  Call to undefined function simplexml_load_file() on your logs and you won't be able to login to OrangeHRM after the installation is done.

Finally, try the installation again. Make sure you use an "Existing Empty Database".

This is how my page looks like:

OrangeHRM database install page

And here are some more references:

https://dba.stackexchange.com/questions/59126/set-value-of-character-set-client-to-utf8mb4
https://dba.stackexchange.com/questions/76788/create-a-database-with-charset-utf-8
https://dev.mysql.com/doc/refman/5.7/en/charset-connection.html


How to get Dell B1165nfw scanner working in 18.04?

This website maintains Samsung drivers for Linux.

They feel their installer package is better than the Samsung official release; they offer this help page for scanners.


Edit: Disclaimer - I don't have much experience with Python or duplicity's code so I cannot say if this modification will or will not cause any detrimental effects. For me, I was able to complete my restore by adding the line of code below.

Solution: I was able to move past this inserting a key check for the volume_name_dict object.

New line: if vol_num in backup_set.volume_name_dict.keys():

In duplicity 0.7.06, you can replace this method at line 752:

def get_fileobj_iter(backup_set):
    """Get file object iterator from backup_set contain given index"""
    manifest = backup_set.get_manifest()
    volumes = manifest.get_containing_volumes(index)
    for vol_num in volumes:
           if vol_num in backup_set.volume_name_dict.keys():
               yield restore_get_enc_fileobj(backup_set.backend,
                                             backup_set.
                                             volume_name_dict[vol_num],
                                             manifest.
                                             volume_info_dict[vol_num])
               cur_vol[0] += 1
               log.Progress(_('Processed volume %d of %d') %
                            (cur_vol[0], num_vols),
                            cur_vol[0], num_vols)
if hasattr(globals.backend, 'pre_process_download'):
    file_names = []
    for backup_set in backup_setlist:
        manifest = backup_set.get_manifest()
        volumes = manifest.get_containing_volumes(index)
        for vol_num in volumes:
            file_names.append(backup_set.volume_name_dict[vol_num])
    globals.backend.pre_process_download(file_names)

fileobj_iters = list(map(get_fileobj_iter, backup_setlist))
tarfiles = list(map(patchdir.TarFile_FromFileobjs, fileobj_iters))
return patchdir.tarfiles2rop_iter(tarfiles, index)

If you are not familiar with Python (I'm not) you can validate the code here: http://pep8online.com/ - the indentations must align properly.


In fact there's no hostpd package in ppa:nilarimogard/webupd8 even for 14.04

Try to install it this way:

sudo apt-get install ap-hotspot hostapd dnsmasq iw

Ap-hotspot depends on those three packages listed as followed in a command above.


Ubuntu 16.04 no devices shown in nautilus

I'm really sorry but it seems my mistake.

I have some CIFS mounts in fstab, so if the CIFS server is down, it affects nautilus and it doesn't display local devices, even local unmounted hard drives and USB thumb drives connected after boot.

Theese are the lines of my CIFS mount in fstab

//localserver/storage /media/storage cifs x-systemd.automount,_netdev,credentials=/etc/samba/credentials,uid=martin,gid=martin,iocharset=utf8,file_mode=0644,dir_mode=0755 0 0

//localserver/server  /media/server  cifs x-systemd.automount,_netdev,credentials=/etc/samba/credentials,uid=martin,gid=martin,iocharset=utf8,file_mode=0644,dir_mode=0755 0 0

I think that x-systemd.automount is messing with autofs or something, preventing displaying the other connected drives if the CIFS server is down.


Eclipse Consolas Font Rendering in Ubuntu

Finally found how to do it! Set Ubuntu font Hinting FULL and infinality to the debug.


What does docker-ce-cli & containerd.io installation packages install?

Is docker-ce an installation package for docker
daemon/server/engine(only)?
Is docker-ce-cli an installation package to install docker
client(only)?
Is containerd.io an installation package to install containerd
component in below architecture?

Yes to all of those. The architecture diagram is pretty clear. Docker itself used to implement all of this into a single binary, but overtime they decided to embrace the Open Container Initiative (OCI).
containerd is one implementation that follows the OCI. It uses kernel features to provide a runtime environment for containers.
dockerd talks to containerd and also provides more features to Docker users in the form of the easy commands like docker build, docker network, docker volume and docker inspect.
docker-cli provides the docker binary client that talks to the dockerd API, on a local socket or remotely. Even without this client, you could still build and run containers by just using the API.


UUID of a partition changes when you format it.  The UUID of the deleted swap partition in your fstab is not valid.  Change it to the current UUID of the partition.


System tray icons and dconf-editor in 14.04

Try this:

sudo apt-add-repository ppa:gurqn/systray-trusty
sudo apt-get update
sudo apt-get upgrade


In the end, the solution for me was to use:

sudo -i gedit /etc/default/grub

And then edit this line to add nomodeset:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"


How do I install serviio 1.4 on Ubuntu 12.04?

Other media servers are not needed. Here is the link to step by step guide on how to install Serviio 1.4 on Ubuntu 12.04.It may be useful for someone else just starting with this installation.

The summary of the involved steps for installing Serviio 1.4:

You need to install the Serviio pre-requisites:
a. Install the building environment for the packages
b. Build & install video codecs (including X264, Yasm, libvpx)
c. Build & install FFmpeg  with the specific audio and video codecs support
Build and install Serviio

The detailed instructions for each step are provided in the link above.

Cheers,
Tomas


Perhaps, if you use gdm it should be GNOME.
With ubuntu-desktop correctly more using of lightdm and Unity.

I haven't experience with server version. But it looks like popular trouble with home folder permissions.

Once I was it done by just running Guest session, unlock administrator account, remove it, and create new one.

Other alternative:

sudo apt-get install --reinstall -f -m -u gdm
sudo dpkg-reconfigure gdm

Select gdm

sudo restart gdm

Same way appropriate also for lightdm ((use lightdm instead gdm))


Upstart does not correctly start service (or kills it instantly)

Display Name :0 is referring to an X display. It works in your GUI terminal because $DISPLAY is set to :0.

If you want the service to start on your GUI, then you should do

env DISPLAY=":0"
exec /start/my/daemon


You can modify your .xprofile or you can change /etc/X11/xorg.conf.  This is well documented in the wiki at https://wiki.ubuntu.com/X/Config/Resolution#Four_methods_of_setup and also https://wiki.ubuntu.com/X/Config/Resolution#Setting_XRandR_changes_persistently


Update April 2020: Cliqz will not be maintained anymore.
A 64-bit Debian compatible package is provided that you can install from the custom ppa/repository, tested in Ubuntu 16.04 and 18.04:
Add the Cliqz repository signing key to be able to verify downloaded packages
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 4E0C443A

Add the Cliqz repository
echo deb http://repository.cliqz.com/dist/debian-release stable main | sudo tee /etc/apt/sources.list.d/cliqz.list

Update the list of available packages
sudo apt-get update

Install Cliqz
sudo apt-get install cliqz

Alternatively, you can download and install the deb package manually, but be aware that you will not benefit from updates:
Disclaimer: They do not officially support Cliqz for Linux, this means that:

Cliqz for Linux is not as well tested as for other operating systems.
User support will not give priority to requests about Cliqz for Linux.

Source: Cliqz.com


can you try, below command and see if it comes back. to do so press ctrl+alt+T key combination together and command window will open and type below command

gsettings set org.gnome.settings-daemon.plugins.cursor active false

see if this brings backs your mouse.


mount permissions from Windows to Ubuntu

So i found the answer here. I did not do enough digging/google fu was weak!


Difference between `gnome-shell --replace` and r in Alt+F2

Running r in the "Enter a Command" command dialog that appears after using keybinding Alt + F2 restarts GNOME Shell:

while gnome-shell --replace "replaces the running window manager".
In the first case Gnome Shell is already running. In the second case there may be another window manager running before.


Mouse scroll up not working in some applications

It turned out that this was due to the following lines in ~/.xbindkeysrc.
"xte 'keydown Control_L' 'key t' 'keyup Control_L'"
b:4

The problem is solved after commenting these out.


SSH login using Ubuntu's terminal - Permission denied (publickey)

Check .ssh folder permission (run ls -laR ~/.ssh):

.ssh folder should have 700, while private key 600 and the public one can have 644.

Moreover, you can have more information about the problem running ssh with full debug logs

ssh -vvv ...


Did Unity disable keyboard shortcuts changes?

I've noticed that with 12.04, all previous shortcuts that I set after upgrading were lost. Also, resetting the Unity plugin for Compiz also disrupts this.

But, I would recommend using the Compiz Config Settings Manager. You can install it by running this in Terminal:

sudo apt-get install compizconfig-settings-manager

These shortcuts seem to override those set in the actual Keyboard shortcuts in Ubuntu Settings, and those set in MyUnity and UbuntuTweak.

This might not be exactly what you need, but I figured that it would be worth a shot.


Oracle has released Java SE 14 already.

To install it add this ppa to the system:

sudo add-apt-repository ppa:linuxuprising/java
sudo apt update
sudo apt install oracle-java14-installer


Yes, you can. You can follow the guide posted here to install your system:
How to use manual partitioning during installation?

Follow the guide with an empty disk first, and simply leave space at the end of your disk (i.e. after creating your / partition, or /home partition if you are separating them).
After the first OS is installed, you can then proceed to install the second one at the end of the disk.

If after installing the second system the first one does not show up in grub (or grub doesn't get used at all), you can either boot from Ubuntu's live disk and install and use boot-repair - the recommended settings should do the trick - or you can use a dedicated boot-repair disk found here.


Ubuntu 12.04, Intel Centrino 1030 Wireless-N 1030 not able to connect to wireless

This bug has been showing up in various versions of KDE4 since 2009, and across many distributions (Debian, RedHat, and SuSE-based) as far as I can tell. There are a lot of janky solutions that involve manually running commands in the shell, editing config files by hand, etc. The KDE team has not paid much attention to it and has done things like marking it "medium" priority, saying nothing in response to it for months/years, etc. It's a thorn in the side of many KDE laptop users, unfortunately.

If you have access to your router, the easiest way to get around this is to temporarily enable SSID broadcasting. The network will show up - add it. Now turn off SSID broadcasting and reboot. It "should" pick it up.

If you DON'T have access to your router, try using wicd or the Gnome network manager (I forget what it's called.)


It is quite simple, in the main menu before opening a project there is a quick setting which will add IntelliJ as shortcut in Ubuntu. Go to "Configure" in the lower right corner and then select "Create Desktop entry".


Installing updates for Mathematica 9 on Ubuntu 13.10

Mathematica is a proprietary application and not part of Ubuntu, and not available on the Ubuntu store. If it provides updates to itself, it does it completely outside the realm of the Ubuntu archive and packaging framework. You didn't install it using that framework, so there's no reason it would be updated through it.

If you want specific details about how it works, you should contact Wolfram for support on the product.


if you decide to quit upgrade i would recommend to install aptitude with sudo apt-get install aptitude and run sudo apt-get safe-upgrade or sudo apt-get update -f and sudo apt-get -f install.Once i upgraded from 10.04 to 12.04 and it took almost 2.5-3 hours.If system is full of files and setting that can be a reason why it took to upgrade for so long


Can't get BCM4331 wireless working right

I had the same problem. It was so annoying.

Finally, I resolved my issue by installing Ubuntu 13.04 (daily build, 20. March). Now, I am writing this answer on Ubuntu 13.04. The wireless issue is solved completely. Other hardware is working perfectly fine.

By the way, the wireless driver is installed by default and works out of the box. The driver is "wl" and not b43.


MATLAB R2014a on Ubuntu 14.04 Install Issue

Yes, I just installed Matlab 2014a from .iso file on Ubuntu 14.04, both 64 bits.

I see there are still issues regarding mounting and installation procedures. My simple experience was just downloading the iso file and extract it there (not mount).

Then chmod +x ./install replied permission denied. This needed making the java file in /matlab-extracted-folder/sys/java/jre/glnxa64/jre/bin/ executable using chmod +x ./java.

Now come back to the matlab extracted folder and install as sudo ./install.


NVIDIA GPU-based graphics cards with a TV-Out connector can use a television as another display device (the same way that it would use a CRT or digital flat panel). The TV can be used by itself, or in conjunction with another display device in a TwinView or multiple X screen configuration. If a TV is the only display device connected to your graphics card, it will be used as the primary display when you boot your system (i.e. the console will come up on the TV just as if it were a CRT).

Ubuntu Forums Configuring and Enabling TV out on Nvidia

Configuring TV-Out Nivdia


From my knowledge, this might be a problem with 19.04, I haven't encountered this problem on xubuntu 18.04 or Ubuntu 18.04. If you're using 19.04 as a normal computer and not a test station, or something like that, I highly suggest using 18.04, as 19.04 is not considered a stable build while 18.04 is LTS (Long Term Support). Unfortunately if this doesn't work, I'm not too sure what to do.


du (disk usage) reports 6.1M but directory is empty

You're looking at a result of how Ext2/3/4 filesystems work. The list of files (inodes) in the directory is kept as the directory 'file', represented as the . in the listing. After removing the files in the directory, the disk usage does not shrink.

Therefore, I assume you had a lot of files in the directory before (or you're omitting them in the ls output in your question). The only solution is to remove and recreate the directory to free up this space.

See also: Why could the size of the “dot file” /. exceed 4096?

For as to what the total 6228 means, see ls command: what does the first line mean?


How do you setup system email to send to a Gmail account?

See this:

  Users can control their own mail delivery by specifying destinations in a file called .forward in their home directories.

So, when you do this:

echo "yourmail@example.com" > ~/.forward

the mails should be forwarded to the e-mail you've specified (in this case, yourmail@example.com)


How do I to resolve unmet dependencies to uninstall and reinstall package

You just have to install dependencies, all of them at once, once you figure them all out. From that alone I see you need to sudo aptitude install allvideodownloader-bin libaprutil1-ldap allvideodownloder and if that errors it will show more dependencies and you just add those to your command and try again.


Ubuntu 17.10 lid close: different behaviors on AC or battery?

OK, this is a known issue apparently, and a working patch (at least for me) can be found here:


Passwords missing from Seahorse (Passwords and Keys)

I have found the solution, the question is related to this bug: https://bugs.launchpad.net/ubuntu/+source/gnome-keyring/+bug/1689825

The last fix found is to execute: sudo apt autoremove --purge dbus-user-session.

dbus-user-session is installed with flatpak.


How to enter a folder with name # from the command line in Ubuntu?

You simply need to escape the # with a \

For example I created a folder called #test in my home folder

warren@VBox:~$ ls
a.out  bad.c.save  Desktop    Music     share      #test
bad    bad.s       Documents  Pictures  src        Videos
bad.c  crap        Downloads  Public    Templates

As expected cd #test does not work because everything after the # is a comment

warren@VBox:~$ cd #test
warren@VBox:~$ ls
a.out  bad.c.save  Desktop    Music     share      #test
bad    bad.s       Documents  Pictures  src        Videos
bad.c  crap        Downloads  Public    Templates

But cd \#test does

warren@VBox:~$ cd \#test
warren@VBox:~/#test$ ls
hjjhk.txt  #test1
warren@VBox:~/#test$


Laptop battery draining fast after moving to Ubuntu

Is your graphic card, Nvidia? If yes, it can help:

Go to Settings > Details , and see what 'Graphics' is your computer using. If it is Geforce, then open terminal and write

nvidia-settings

On opened window click 'PRIME Profiles' and select 'Intel (Power Saving Mode)'.

Restart your laptop.


Boot failure on PowerPC Mac with encrypted LVM

Typing Linux nomodeset rather than simply Linux at the yaboot prompt (or just pressing return, which in my case defaults to Linux) worked for me.

Thanks to L3top from Freenode/#ubuntu for suggesting nomodeset.


Where is the Countdown Timer Image for ubuntu 11.04


Ubuntu SDK, Ubuntu touch app: "Error: Error opening shm."

Not an answer, but I can't comment yet.

Can you share any more code? Curious as to why there are so many focus changes. What image are you using on your Nex7?


How is my language exposed when im on the web?

Your web browser submits your preferred languages to web servers.

You can configure that e.g. in Firefox in the "General" ("Allgemein" in German) page in the "Language and Appearance") ("Sprache und Erscheinungsbild") section, paragraph "Language" ("Sprache"), with the "Choose..." ("Wählen...") button.

Other web browsers should have similar settings.


pen drive unmounts and remounts as readonly

open terminal and type dmesg  & insert your pen drive and check the Log of it .dmesg contains the system log .

for more info , look at here https://help.ubuntu.com/community/Mount/USB#Device_become_suddenly_read_only


You should put -e at the end of the options list: grep -rne coll *


How to tunnel and browse the web on remote network

ssh -p 22 -i /home/path_to_privkey -L 12666:localhost:80 -l username xx.xxx.xxx.xxx

This command connects you to xx.xxx.xxx.xxx server, and binds your local port 12666 to the remote localhost port 80. So, if you type http://locahost:12666 in your browser, the result should be the same as opening http://localhost:80 on the remote (xx.xxx.xxx.xxx) machine.
Changing the 80 to any other remote port, allows you to access (almost) any other remote service.
Keep in mind, the tunnel exists only as long as the ssh connection.

For a full access, I would suggest setting up a VPN connection.


Yes, it is correct. To verify that you're using a patched version of bash, test using the package management tools (or using the sample test command):

$ apt-cache policy bash
bash:
  Installed: 4.3-7ubuntu1.3
  Candidate: 4.3-7ubuntu1.3

The bash version string remains unchanged as the patches were applied by the package maintainers, and not by upstream.


How to ensure that wireless Logitech keyboard is encrypted?

There is a graphical tool called Solar. It can also show many details of logitech devices. If it shows you an unencrypted connection, you can (if your keyboard is supported) use it to pair them properly.

Please check first if your keyboard is supported. There is a list and instructions on the website. Generally, Solar supports all unifying reciever devices and some of the others.

https://pwr.github.io/Solaar/


after I boot my USB stick with ubuntu 12.04 on and click install on hard disk the installer freezes

Try downloading the minimal installation image from the community help wiki. https://help.ubuntu.com/community/Installation/MinimalCD


Increase and decreasing screen brightness crashes Minecraft

I fixed my issue. I figured that Minecraft was running via the Intel integrated graphics card. I used optirun to fire up Minecraft and my issue was solved.


Error getting access to LLVM Debian/Ubuntu nightly packages

Each one of these repositories has it's own key which you should add before updating your lists. See https://apt.llvm.org/

E.g: if you add this one to your sources:

deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty main

Then you should also add the related key to this component, which is:

wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -

So, if you add all lines for trusty, then you should add all three related keys to them, It will make your error goes away.

For stable brunch (V3), source:

 deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-3.9 main

 wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -

For qualification branch (V4), source:

deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-4.0 main

wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -


Can I shorten the timing in the Alt+Tab dialog?

Once you're on the application of interest you could use Alt+` to switch between windows in that application.


Are there any fast ways to compile and run/show .tex file using gedit?

There is a gedit plugin gedit-latex-plugin

sudo apt-get install gedit-latex-plugin

Use the external tool plugin to create access to envice.

To install the plugin, go to Edit -> Preferences -> Plugins -> External Tools.
To configure the plugin, go to Tools -> Manage External Tools.... A dialog will appear and you can start adding tools.
To run tools, go to Tools -> External Tools or use (if applicable) associated shortcut keys.

The dialog then looks like this:

Then you can start evince directly or write a shell script for all steps together and execute.


Missing movie thumbnail in Dolphin Kubuntu 15.10

Thank you Palantir! There was indeed a workaround. This is what I did :

 sudo apt-get install git build-essential cmake extra-cmake-modules kio-dev pkg-config libavformat-dev libavcodec-dev libswscale-dev

Downloading/compiling/installing:

git clone git://anongit.kde.org/ffmpegthumbs
cd ffmpegthumbs
git checkout origin/frameworks
mkdir -p builddir
cd builddir && cmake .. -DCMAKE_INSTALL_PREFIX=$(kf5-config --prefix) -DCMAKE_BUILD_TYPE=Release -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
sudo make install

And when I restarted Dolphin I found this :

So it works :)


How to prevent users from installing non-free software?

Tell them don't install non-free softwares. If this doesn't work, try:

Create user group powerusers, users in this group can only install certain type of softwres.

# addgroup powerusers

Edit /etc/sudoers, grant powerusers the privilege to sudo apt-get only:

%powerusers ALL = (ALL) /usr/bin/apt-get

Now, users in powerusers group can only sudo apt-get ..., but can not sudo dpkg -i <downloaded.deb>, or edit file /etc/apt/sources.list. Only you can determine which sources to include.
Remove non-free, restricted, multiverse sources from sources.list files.

Done!


After a lengthy discussion in the comments...

It doesn't have an EFI boot partition, it has a legacy boot partition. If it was me, I'd make sure UEFI boot is enabled in the BIOS, wipe the entire disk, reinstall Windows (to a much smaller partition), reinstall Ubuntu (to a larger partition).

Cheers, Al


How to install gnuplot 5.4 at ubuntu20.04

For gnuplot 5.4.1 with qt terminal:
sudo apt install qtbase5-dev qtbase5-dev-tools libqt5svg5-dev qttools5-dev-tools

cd ~
wget https://jaist.dl.sourceforge.net/project/gnuplot/gnuplot/5.4.1/gnuplot-5.4.1.tar.gz
tar -xvzf gnuplot-5.4.1.tar.gz
cd gnuplot-5.4.1

./configure --with-qt=qt5
make -j # uses more jobs for faster compiling and linking
make check # make a test before installing
sudo make install # a better method would be to use checkinstall -> creates a deb

cd ~
rm -rf gnuplot-5.4.1*


Running Debian Wheezy I installed the following packages to successfully configure:

libqt4-dev (4:4.8.2+dfsg-11)
libqt4-dev-bin (4:4.8.2+dfsg-11)
libqt4-opengl-dev (4:4.8.2+dfsg-11)
libqtwebkit-dev (2.2.1-5)
qt4-linguist-tools (4:4.8.2+dfsg-11)
qt4-qmake (4:4.8.2+dfsg-11)


Audio Issues with Adobe Flash Player in Ubunti 14.04 LTS

It doesn't matter that you already have adobe flash player . also install Pepperflash.

sudo apt-get install pepperflashplugin-nonfree

well i feel this works more perfectly than adobe in Ubuntu.

Note: I'm not a pro but actually i ha the same problem back. and this fix my problem ;P.


Fresh install of 12.10 and many icons not showing on the Launcher

My icons are working fine, but I can get something like what you're describing by deleting stuff out of /usr/share/icons/Humanity/apps. I would try changing themes to see if that makes it work. Otherwise, look around /usr/share/icons to see if anything is missing.

For example, my Terminal icon is found in /usr/share//apps//utilities-terminal.svg.


Workspaces missing in ubuntu 16.04. No appearance preference in settings.

Hi i figured out what to do in this case.
I did a

sudo apt-get install --reinstall ubuntu-desktop

and it came back. But while doing this some of the unwanted softwares that in uninstalled earlier also came back (like thunderbird, libreoffice math etc)


Sysvinit alternative of systemd-analyze and systemctl?

Systemd commands    and    Sysvinit commands
Systemd Command  ------------------------------- Sysvinit Command
systemctl start fooserv ------------------------ service fooserv start
systemctl stop fooserv ------------------------- service fooserv stop
systemctl restart fooserv ---------------------- service fooserv restart
systemctl reload fooserv ----------------------- service fooserv reload
systemctl condrestart fooserv ------------------ service fooserv condrestart
systemctl status fooserv ----------------------- service fooserv status
systemctl list-unit-files --type=service ------- ls /etc/rc.d/init.d/
systemctl enable fooserv ----------------------- chkconfig fooserv on
systemctl disable fooserv ---------------------- chkconfig fooserv off
systemctl is-enabled fooserv ------------------- chkconfig fooserv
systemctl list-unit-files --type=service ------- chkconfig --list
ls /etc/systemd/system/*.wants/fooserv.service - chkconfig fooserv --list
systemctl daemon-reload ------------------------ chkconfig fooserv --add
systemctl isolate multi-user.target ------------ telinit 3
systemctl halt --------------------------------- halt
systemctl poweroff ----------------------------- poweroff
systemctl reboot ------------------------------- reboot
systemctl suspend ------------------------------ pm-suspend
systemctl hibernate ---------------------------- pm-hibernate
journalctl -f ---------------------------------- tail -f /var/log/messages

systemd-analyze is a new command to check boot time
systemctl mask is a stronger version of systemctl disable. This will link these units to /dev/null, making it impossible to start them.
Source


If you are fine with using a lightweight and so more ugly display manager, try LXDE or XFCE. Maybe even GNOME works better. If it still runs slow with lxde, then something in the system is really slowing... but I have no idea what...

In case you don't know:

Install lxde with minimal adaption:

sudo apt-get install lubuntu-core

...or only the lxde package:

sudo apt-get install lxde

To install xfce:

sudo apt-get install xfce4

And for the pure gnome:

sudo apt-get install gnome-core


I resolved by reinstalled the OS. Got no support here and cant wait forever.


Ubuntu desktop disk image (16.04.4 -desktop- amd64.iso) could not be opened

I think you didn't install Ubuntu, you just downloaded the ISO. You don't usually open .iso files, you need to burn them to an USB drive. To do this, I recommend Etcher. It's compatible with Mac OS X (which you are probably using). You'll need a 2 GB USB Drive to put the Ubuntu ISO on it, but I would use an 4GB one, for extra space.

1. Download Etcher and burn the ISO to the Flash Drive

Download Etcher and open it. You'll be greeted with it's GUI. Just click on "Select Image" button and browse your file system and click on the ISO you want to burn (Ubuntu).

Next, Select the Drive where you want to burn it. It should be selected as your USB, if not, plug in the USB Device where you want to burn it. (This will erase ALL data on the drive, so backup your data if you have any!)

Now, just click the "Flash!" button and wait. After some minutes it should show "Flash complete!" and you can close the program.

2. Boot in to the USB drive

Reboot your machine, and hold Alt during the boot process, right after hearing the Mac startup sound. It now should show "EFI Boot" (it should be the option to the most right) Now you just press "Enter" at the screen that shows you GRUB.

3. Install Ubuntu

Now you just click "Install Ubuntu 16.04.4 LTS" icon on the desktop. Follow the on-screen instructions. There is a step that asks you where to install Ubuntu. You can dual boot OS X or replace it entirely, as it shows on the screen. If you choose to replace it, ALL your data will be gone on your disk, which will leave you only with Ubuntu installed. If you are going to do this, Backup your data on OS X, and restore it later!

4. Enjoy!

Now enjoy your newly installed system. I also wanted to say that, if you want to install Proprietary NVIDIA drivers, you should try this article.(if you use EFI, which you probably use). If you don't do this workaround, you're probably getting a black screen after X starts. In my case it worked. But do this at your risk!


Are there any alternatives to KRunner for Kubuntu?

A desktop environment independent option is Synapse.

  Synapse is a graphical launcher enabling you to start applications and
  also to quickly find and access relevant documents and files (by
  making use of the Zeitgeist engine).

I didn't try it in KDE, but I believe it works. After installation press Ctrl+Space to start searching.


The simpliest way is to download and unpack modern 4.6 version suited for SLES 12 (lsprepost-4.6-sles12-19Feb2019.tgz).

I have just tested it on my Ubuntu 18.04 LTS.

For previous 4.5 version you need to do many manual steps (see revisions of this answer if you really need it).


Dell Stylus 750-AAHC not working on Dell Inspiron 17 7000 series

I have the exact same laptop model, and the short answer is no, the Active Stylus, or any stylus for that matter, will not work.

The reason is very simple. This model features a touchscreen, and not an active digitizer. A stylus requires an active digitizer to be able to read the various pressure levels and fine tips.

With a touchscreen, the stylus you are using is no better than using your finger.


how to host git repository via ssh on ubuntu 14.04?

Common approach to organize ssh repo on a server. Just create a folder /git in root folder, then assign a group to it with write permissions, and all the users, which be able to read or write to the repo, assign to the group. So a user can create git repo:

$ cd /git
$ mkdir project-1
$ cd project-1
$ git init
$ touch README
$ git add README
$ git commit -m "Initial commit"

Of course you should have the properlt setup users account on both local and remote PCs. So for example, we create the user account user1 on local PC, and user2 on the remote one:

$ sudo useradd user1
$ ssh sudo useradd user2
$ sudo remote_pc -c 'sudo useradd user2'

Then we should be able to issue git commands: clone, pull, and push:

$ git clone git+ssh://user2@remotepc/git/project-1
$ cd project-1
$ git pull
$ git push

Ypu also should know on how to configure passwordless access to remote git repo via ssh, and to setup git-shell.


I've found that proprietary ATI drivers induced more lag on my laptop than the open-source drivers. They were also crashing Xorg from time to time - I have no idea why though.

If you're not going to play 3D games that require graphics acceleration, then I don't think you should bother with installing proprietary drivers. However, it is up to you and your hardware, so I don't think anyone here can give a 100% correct advice on what is best. Try it out yourself and see which suits your needs.


Which Canon flatbed scanners are supported in 12.04?

You can check the Ubuntu HardwareSupport wiki page. You find a list of Canon scanners there, but the one you mentioned is not listed there - which does not automatically mean that it wouldn't run, though.

On this (German) weblog I read that Ubuntu supports Canon LiDE 110 since 11.04 - so it should run.


To use the license of Ubuntu Font face, what specifically i have to cite in my website?

I've read the licence you link to and I think you're quite okay to use the font freely on your website. The following parts of the licence are relevant:

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

I would say that for the purposes of this clause, your website is a 'document'.

Next relevant part:

  The Ubuntu Font Family is presently distributed under the Ubuntu Font
  Licence. This means you can use the font in much the same way as you
  would use any other font (open or proprietary).

This is pretty much self-explanatory - note the explicit reference to using the font as you would any other.

Last up is this:

  You are most welcome to use the Ubuntu Font Family, in your documents,
  graphic designs, logos, or company stationary. We'd like as many
  people as possible to have a better quality reading experience
  everyday.

Again, I would class web pages as 'documents'. Support is lent to this interpretation by the fact that there's no exclusion of web pages from the lists given in the extracts above.

In conclusion, I think you're free to use the font on your website.

PS: I am a lawyer.

EDIT: you don't have to put a reference to the licence on your website. You might want to attribute the font to Ubuntu, but you're not obliged to.


No internet connection during install - Manually run updates (12.04)

Click on the Dash Icon on the upper left of the screen, type up to search, and select Update Manager.  Click on the Check button, then Install updates.  From the command line, just type

sudo apt-get update


Very old Ubuntu release., want to override

i have never done that, but i found an instruction for you :

installation from USB


UFW blocking 169.254.0.0 (link-local / apipa) addresses?

You may be mis-reading what iftop is telling you.  When you run iftop, it puts the interface in promiscuous mode and thus will receive every packet visible on the wire, regardless of where those packets are addressed, particularly broadcast packets.

The 169.254.. packets are being transmitted by any devices on the same network which failed to get a DHCP response and ended up using the self-assigned IP range instead.  Generally these packets are un-routable anyway.

UFW/IPTables is only going to log blocking a packet when that packet was specifically addressed for that specific host and then rejected by UFW.  There is likely a rule in your table that either discards or accepts broadcast traffic without logging about it.

If you launch iftop with the -F cidr options, you can get it to ignore the broadcast packets and focus the display on just the traffic to/from your host, for example:

iftop -F 192.168.1.10/32

Packets with that one IP address (192.168.1.10) in either the dst or src field will get displayed, the others will be silently filtered out of the display.


Broadcom wifi 14e4:4464 adaptor not found

Installing Broadcom Wireless Drivers
is the most in depth
No wifi adapter found Ubuntu 20.04.1 LTS bcm4352/14e4:43b1
is the thread i made when i fixed my problem.
disable secure boot
and install/update your bcmwl-kernel-source
chili555s comments worked for me


Are my other partitions safe from harm from an alpha/beta release?

If you installed 12.10 to a new partition on your drive it should not touch your other data. The only partition that would be shared is if you have a swap partition which should not create issues.


/tmp folders keep popping up on ubuntu desktop?

I assume that you mean that new folders are created at /home/user/Desktop/tmp. Or do you mean that the create folder is /home/user/Desktop//tmp? Or do you mean that a window pops up to show the content of /tmp?

In any case, did you recently install an application after downloading it? Something like Dropbox, ... Not after searching in the package manager. These packages often run things on session start and can have unexpected behaviour.

Try disabling your suspects in Startup Applications (System > Preferences).


Slow startup and shutdown after upgrading ubuntu from 14.04 to 16.04

According to file in your pastebin link problem was with /etc/fstab file not being configured correctly. It is looking for partition with UUID ef630b6f\x2dae8c\x2d463c\x2d836a\x2dcd18e4f2fe21

Easy way to solve is open your /etc/fstab and check which partition is under problem. After that run command "sudo blkid".
Update the partition UUID with the correct partition that you have.

Your problem should be solved after this.


How to substitute expression globally with bash bracket substitution syntax?

You can try this syntax which gives output:

$ A=aa
$ echo ${A//a/b}
bb

${A//a/b} replaces all the matches of a with b. Whereas, ${A/a/b} will replace only 1st match of a.

More details about Bash Strings Manipulation can be found here.


After 18.04 install, actions formerly requiring two sequential taps ('double-tap") on a trackpad now require three taps

Alternatively You could download the "GnomeTweakTool" and tune or deactivate it under Mouse & Keyboard > Click Emulation


Resize images, keep ratio, with size constraints

mogrify -resize '300x200^' *.jpg

make sure you run this on a copy of your images as it replaces them.


find : /home/user/.local/share/gvfs-metadata : Permission Denied

You shouldn't be getting that error, as the directory should be owned by you. I guess you have been running graphical applications with sudo.

While logged in as yourself, correct the ownership (please always be careful when using chown with sudo).

sudo chown -R $USER: ~/.local/share/gvfs-metadata

Now you will not need sudo to search this directory.

In general, permission errors with find occur because you don't have read permission on the directory, which is the case for many system directories owned by root. You can use sudo find (be very careful before adding and actions to the command) or if you don't want to search as root, just discard the errors to de-clutter results by appending 2>/dev/null to your command...

find /some/path -some_test some_condition 2>/dev/null


How do I repair Ubuntu 12.04 64-bit on a laptop with water damage?

DVD's are perfectly fine to burn ISO's to here is the full guide provided by Ubuntu, it says there that:

''To install Ubuntu from a CD, you first need to burn the downloaded ISO image onto a CD or DVD.''- So regardless of what you have CD/DVD you'll be able to burn the image and run it off the Disc and there's nothing special to do with it being a DVD or not.

Also as an alternative if ever you're interested in doing it from a USB you can also check here.

As for preserving your data as will all re-installations and upgrades: Back up your data, external hard-drives have huge amounts of space and you can copy all your files and copy them back later.

If you download Ubuntu off the site you will have 12.04 but none of the applications you had before. There is a way to customise your live CD so that you have all the apps you had before as explained in this post about customisation of live CD's it's always nice to have a live CD with all your apps pre-installed, however if you're not planning on reinstalling more than once a year, it may not be worth the time seeing as new versions of Ubuntu will be released (or unless you stick to LTS releases) it's up to you to decide whether you feel like making one or not, as they do take some time.

Having said that if you have application data such as contacts/emails to import from Thunderbird for example, they are stored in your home folder so if you back-up your home folder you will be able to retrieve the exact configurations of your old thunderbird in your new install (it's a hidden file in there). So not everything will be from scratch and Ubuntu Software Centre is relatively quick for most apps, so the main issue would be the apps not there, installed via terminal.

If you need to compile a list of all the apps you've installed because you don't remember check out this post which lists all apps and packages installed, all you have to do is copy the list and save it somewhere.

So your main options:

Fresh install from live CD (in your case DVD, works the same)
Fresh install from a USB
Some sort of repair (I tend to always re-install entirely so I can't give you any advice on this unfortunately)

Hopefully after this Unity won't be a problem anymore seeing as your hardware seems to be for the most part in perfect shape, however if your graphics card can't handle unity anymore, it may be that even though it works, it isn't running as smoothly as it should and you may have the same issue, although the only way of finding out (that I know of) is re-installing.

So to answer your question, yes you are right, the best option to know whether the hardware or software is causing the issue is a complete repair/re-installation. Unfortunately I've never heard of anything that can 'repair unity' though so unless someone else posts below I think re-installation is your best bet.

Hope this helps!


Ubuntu 17.10 - Can't change Bios settings, and can't boot into Bios from Grub

A workaround I ended up using for a similar issue (warning, ugly): Turn power off. Remove hard drive. Power-on. In my case the BIOS defaulted to looking for a USB boot in the absence of a hard drive. Then, as soon as USB starts to boot, plug the hard drive back in to stop it throwing a "No HDD!" fit.

Told you it was ugly. Worked though.


maybe installing codecs trough follow this guide can fix it http://www.ubuntugeek.com/install-mplayer-and-multimedia-codecs-libdvdcss2w32codecsw64codecs-on-ubuntu-12-04-precise.html#more-13171


Check my image carefully. There is a typo in codename oneiric is correct not oneric.

sudo gedit /etc/lsb-release

and correct this error.

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=11.10
DISTRIB_CODENAME=oneiric
DISTRIB_DESCRIPTION="Ubuntu oneiric"

Now everything is working fine.


Inside the directory of the drives you want to be visible. Clicking on the menu icon there is an option to Bookmark This Location.

This will allow the drives or whatever folder to visible form Files main window.


Where is Firefox's auto-fill information stored?

The form history is saved in a SQLite database file named formhistory.sqlite (replace $HOME by your Ubuntu home directory, and XXXXXXXX.default by your Firefox profile name):

$HOME/.mozilla/firefox/XXXXXXX.default/formhistory.sqlite

Instead of reinstalling add-ons, bookmarks, etc., you can just copy your Firefox settings to your new system. Make your file browser show hidden files and copy the .mozilla folder to your new home folder.

Alternatively, close existing Firefox instances and run Firefox with the old profile folder:

firefox -profile /path/to/old/home/.mozilla/firefox/XXXXXXXX.default


How do I cross-compile my application for Ubuntu 12.04 armhf architecture on a Ubuntu 12.04 i386 host?

https://wiki.linaro.org/Platform/DevPlatform/CrossCompile/UsingMultiArch

https://wiki.ubuntu.com/MultiarchCross

Ubuntu has a cross-toolchain, apt-get install gcc-arm-linux-gnueabihf but work on the next-gen toolchain is discussed here: http://gsoc.sitedethib.com/posts/apt-get_install_gcc-4.7-arm-linux-gnueabihf/

There are a number of workarounds that are necessary at this point. For example, if you use indirect linking (covered in the linaro wiki page.) You also should avoid running foreign binaries right after compiling them.

Also, its really most mature with autotools.

I got my package to cross-compile fairly quick.

apt-get build-dep -aarmhf foo-pkg
apt-get source foo-pkg
cd foo-pkg-*
dpkg-buildpackage -aarmhf


It went into oblivion. 14.04 does not have a unity-2d session so also no Launcher.qml to start unity-2d. It was removed when 12.10 got released and so was all the code in the repositories.

If you need lighter version than Unity consider lUbuntu or xUbuntu or the GNOME Flashback.

From omgubuntu.co.uk:

  Install GNOME Flashback in Ubuntu 14.04 LTS

  To get the best of the modern desktop but with the simplicity offered by that old school two panel vibe the GNOME Flashback session available in Ubuntu 14.04 LTS is well worth giving a go.
  session-chooser-ubuntu-lightdm

  Select the session at the Unity Greeter

  Flashback is available to install from the Ubuntu Software Centre (unlike Cinnamon) and is styled like the Ubuntu desktop of old. It offers everything you need to get work done without putting strain on system resources or your muscle memory!

  It might not be as forward-looking or ‘academically efficient’ as Unity, but if you’re more interested in getting things done than having things get in the way, it’s by far an easier option than opting for an entirely different OS.


Intellij Idea community edition commercial?

The button says Buy because it is an application being distributed via the store side of software-center, even though it is free. Simply because the button does say Buy doesn't mean you have to pay for it. If the price is $0.00 as it is in this case, you will not have to pay, or enter any payment details, to purchase the software. You can simply click the button, and it will go through the process to install it.


Use Postfix to dump mails to local folder using regex

The following recipe tells how to use regex to rewrite envelope recipients' addresses using regexp: https://superuser.com/questions/353488/regex-multiple-catch-all-setup-in-postfix
You may use the above method to rewrite remote email addresses into local email addresses.

Regexp table man page shows how to copy parts of lookup key to lookup result:

/^(.*)-outgoing@(.*)$/   550 Use ${1}@${2} instead


Xubuntu 17.04 Different keyboard layout for each window

On XFCE, you have to add the Keyboard layouts plugin to a panel.  On Xubuntu it is installed by default.  If it's not, install it using: apt-get install xfce4-xkb-plugin and add it to a panel.

Right-click on it afterwards, and go to Properties to configure what you want.


I have no icons or even launcher in ubuntu desktop

Be sure to have dependencies for the packages you are about to compile & install.

Now, try to reinstall your Graphic User Interface by writing this on a virtual terminal (press CTRL+ALT+F1 and login):

sudo apt-get purge gnome
(confirm)

...and after it has finished:

sudo apt-get install gnome

If it still can't work, issue from a virtual terminal (the same):

sudo apt-get dist-upgrade

The password asked is always your account password.

You will need a working internet connection. This is a really generic answer because your question has very few details. If you need more help comment under here and I will answer soon.

Good evening.

Edit: let's make some controls to solve your problem:

Open a terminal (Gnome terminal or xterminal are OK) and execute whoami. It should output your current user and NOT root or any other user. If the user is different, login as Your user to the graphic interface.
Execute sudo apt-get check gnome and verify the absence of errors. If there are errors correct them with aptitude.
Be sure to be prompted for login at the system startup, otherwise install a login manager.
If you still have troubles, logout and in the login panel select a different session type and then login. Continue until you find the right session type.
Use less /var/log/syslog from a terminal to check for errors.
Last hope, run cat /var/log/Xorg.0.log|grep WW and report here any error.

Last note, in the mid time you solve, the "source files" are the text files used to compile a program (are the source code written by a programmer), and the binary files are the executables. Use the file command to see the file type or run ls -lh to have a colored output dependent on the file type. Never install untrusted software from exeternal repositories.


Help identifying "unknown USB device" in powertop

8087:0029 is the Bluetooth adapter:

/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/16p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
    |__ Port 4: Dev 2, If 1, Class=Wireless, Driver=btusb, 12M
        ID 8087:0029 Intel Corp.
    |__ Port 4: Dev 2, If 0, Class=Wireless, Driver=btusb, 12M
        ID 8087:0029 Intel Corp.

It's a wireless controller, but not WiFi. If you google the ID, you get indications that it is a bluetooth adapter, and the fact that the btusb driver is used underpins this.


Installing JDK

To install JDK, you can refer to help.ubuntu.com/community/Java.

If you want to install openJDK,

sudo apt-get install openjdk-7-jdk

If you want to install Oracle JDK, you can use PPA from webup8 team.

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer

Installing IntelliJ IDEA

[Updated Answer]

Download IntelliJ IDEA CE from www.jetbrains.com/idea/download/.

Extract ideaIC-XX.Y.Z.tar.gz using

tar -zxvf ideaIC-XX.Y.Z.tar.gz

Run idea.sh in bin directory inside the extracted folder.
To create command-line runner, Tools > Create Command-line Launcher
To create a desktop entry, Tools > Create Desktop Entry

That's it. Now, you can launch IntelliJ from Ubuntu dash.

[Old Answer]

Download IntelliJ IDEA CE from www.jetbrains.com/idea/download/.

Extract ideaIC-XX.Y.Z.tar.gz using

tar -zxvf ideaIC-XX.Y.Z.tar.gz

Become root.

sudo -i

Move the extracted folder to /opt/idea

mv ideaIC-XX.Y.Z /opt/idea

Create a desktop file and install it:

gedit idea.desktop

and copy the following to the idea.desktop file.

[Desktop Entry]
Name=IntelliJ IDEA
Type=Application
Exec=idea.sh
Terminal=false
Icon=idea
Comment=Integrated Development Environment
NoDisplay=false
Categories=Development;IDE;
Name[en]=IntelliJ IDEA

then execute the following command to automatically install it in the unity:

desktop-file-install idea.desktop

Create a symlink in /usr/local/bin using

cd /usr/local/bin
ln -s /opt/idea/bin/idea.sh

For idea icon to be displayed in dash, idea icon can be added as

cp /opt/idea/bin/idea.png /usr/share/pixmaps/idea.png

That's it. Now, you can launch IntelliJ from Ubuntu dash.


There's a package called xdotools which can do this. The command to be used is;

xdotool search --onlyvisible --name '.*' windowactivate %@

You can add this to a shortcut and place it on the toolbar so a single click opens everything.


Now there is no the 367 Nvidia driver in Ubuntu repos.

The nvidia-367 package still exists, but it points to nvidia-375.

A possible option is to install nvidia-367 from ppa:graphics-drivers/ppa, but since there is a "newer" package in the official repos, you will need to use Synaptic to pick a version.


Can i check nForce405/geforce6100 MCP temperature on linux?

I would suggest that one of the three temp* temperatures shown in the sensors is your "MCP" temperature. lm-sensors isn't very good at labelling things. It just stacks the I²C monitoring interfaces up as it finds them.

But short of holding a blow-torch to your MCP and watching the output, I'm not sure how to confirm that one way or the other.

For graphics cards I have had limited success with lmsensors in the past. What I find works really well is nvidia-smi (from a package of the same name). This might not work for integrated chipsets very well but here's what I see on a discrete card:

$ nvidia-smi
Thu Jul  3 09:48:44 2014
+------------------------------------------------------+
| NVIDIA-SMI 340.17     Driver Version: 340.17         |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 580     Off  | 0000:03:00.0     N/A |                  N/A |
| 36%   50C   P12    N/A /  N/A |    520MiB /  1535MiB |     N/A      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Compute processes:                                               GPU Memory |
|  GPU       PID  Process name                                     Usage      |
|=============================================================================|
|    0            Not Supported                                               |
+-----------------------------------------------------------------------------+


Changing file permission for NTFS format

Yes, NTFS doesn't support file permissions like Linux partitions.

See this for a workaround: Any way of maintaining permissions when using NTFS mounted drive in Ubuntu?


$ clamscan -ri | sed -n '/FOUND/s/: .*//p'
/home/folder/public_html/wp-content/uploads/2015/07/HB006_Hyalobarrier-Product-training-MASTER-10-07-15.ppt
/home/folder/public_html/wp-content/uploads/2015/02/Tech003_HA_HYAFF_technology_MASTER_presentation_RevB.ppt
/home/folder/public_html/wp-content/uploads/2015/02/HM006_Hyalomatrix_PA_product_overview_training_RevB.ppt
/home/folder/public_html/wp-content/uploads/2014/10/HG010_Hyaloglide_product_overview_training_RevC.ppt

How it works

Each file appears on two lines of the input.  To avoid duplicates, we need to select just one of those lines.  This code selects the first appearance, the one with the word FOUND at the end of the line.  It then removes everything after the : and prints the line.

In more detail:

-n

This tells sed not to print anything unless we explicitly ask it to.
/FOUND/ s/: .*//p

This selects the lines that contain the word FOUND.  The substitute command, s/: .*//, removes everything after the colon-space.  The suffix p tells sed to print these lines.

Making the output into a bash array

To make a bash array of the file names:

IFS=$'\n' cl_scan=($(clamscan -ri | sed -n '/FOUND/s/: .*//p'))

Because we set IFS=$'\n', this will work even for file names that contain spaces or tabs.  This will not work for file names that contain newlines or colon-space.

To verify that the array is as desired, run:

$ declare -p cl_scan
declare -a cl_scan='([0]="/home/folder/public html/wp content/uploads/2015/07/HB006 Hyalobarrier Product training MASTER 10 07 15.ppt" [1]="/home/folder/public html/wp content/uploads/2015/02/Tech003 HA HYAFF technology MASTER presentation RevB.ppt" [2]="/home/folder/public html/wp content/uploads/2015/02/HM006 Hyalomatrix PA product overview training RevB.ppt" [3]="/home/folder/public html/wp content/uploads/2014/10/HG010 Hyaloglide product overview training RevC.ppt")'


Solution

Install Oracle Virtualbox [Its Free]
Install windowx xp / 7
Install Photoshop in virtual machine

Sugesstion

Photoshop and alot of big softwares does not works well in wine so use vbox (Virtual Box)


cannot access ‘/sbin/udevd’: No such file or directory

/sbin/udevd isn't longer available in Wily. But the removal scripts of the packages in your question seem to depend on it. Try the following

sudo touch /sbin/udevd; sudo apt-get autoremove --purge; sudo rm /sbin/udevd

If that does not work, run

sudo dpkg -r --force-all libboost-iostreams1.55.0 libhiredis0.10 libhogweed2 libicu52 libnettle4 libregexp-common-perl


Is an ACPI GPE storm normal in an Ubuntu session?

No, an ACPI GPE storm is not normal.

Here's a line-by-line explanation of the messages you saw, along with inline solutions which may help you:

ACPI FADT declares the system doesn't support PCIe ASPM, so disable it

The FADT is an ACPI table containing power management info.
All the message means is that your computer doesn't support PCI-Express Active State Power Management, one of the ways to slightly reduce power usage when a PCI-e device isn't being actively used.
This shouldn't cause stability problems.

[Firmware Bug]: ACPI: BIOS _OSI(Linux) query ignored

In trying to identify the OS, the BIOS asked the kernel "Are you Linux?" and the kernel did not respond (this is normal behavior).
BIOSes can use this query to enable or disable functionality based on the running operating system, but they shouldn't.
You can try adding the boot parameter acpi_osi=Linux to make the kernel respond with "Yes", and see if this helps your GPE storm problem. (More info)

ACPI: Deprecated procfs I/F for battery is loaded...

This is a harmless notification that the old, backwards-compatible /proc/acpi/... interface is also present, along with the new sysfs interface.
If you think that your manufacturer-specific kernel modules (e.g. sony-laptop, etc.) are somehow mis-handling the legacy /proc/acpi interface, you can try disabling it, but the only way to do so is to build a custom kernel with the ACPI_PROCFS_POWER option disabled.
Scroll down to the end for the complete description from the kernel docs.
Removing this may have some minor side effects, e.g. the powertop utility won't fully work.

ACPI(VGA) defines _DOD but not _DOS

The BIOS uses the _DOD to tell ACPI if it has more than one display, and if so, how many.
_DOS is used to tell ACPI that the BIOS supports video switching, i.e. from one display to the other.
So ACPI is confused when your computer tells it it has two or more displays, but that it can't switch between them!
This warning appears in varied contexts -- can you try these boot options and see if stability improves: acpi=off, noapic, nolapic?

Full description of ACPI_PROCFS_POWER

Deprecated power /proc/acpi directories (ACPI_PROCFS_POWER)

CONFIG_ACPI_PROCFS_POWER:

For backwards compatibility, this option allows
deprecated power /proc/acpi/ directories to exist, even when
they have been replaced by functions in /sys.
The deprecated directories (and their replacements) include:
/proc/acpi/battery/* (/sys/class/power_supply/*)
/proc/acpi/ac_adapter/* (sys/class/power_supply/*)
This option has no effect on /proc/acpi/ directories
and functions, which do not yet exist in /sys
This option, together with the proc directories, will be
deleted in 2.6.39.

Say N to delete power /proc/acpi/ directories that have moved to /sys/

Symbol: ACPI_PROCFS_POWER [=y]
Type : boolean
Prompt: Deprecated power /proc/acpi directories
Defined at drivers/acpi/Kconfig:59
Depends on: ACPI [=y] && PROC_FS [=y]
Location:
-> Power management and ACPI options
-> ACPI (Advanced Configuration and Power Interface) Support (ACPI [=y])


You can use egrep with -o switch (Show only the part of a matching line that matches PATTERN.) For example: echo page.html | egrep -o ".+" | sed s!!! | sed s!! > output.txt


Realtek ethernet driver compilation errors - kernel 5.3 - Ubuntu 18.04

This means that the driver version is incompatible with the 5.3 Linux kernel.

But most likely you don't need this driver at all, because the r8169 kernel module is supposed to drive the network adapter well.

You can remove this driver by

sudo apt remove r8168-dkms

if it was installed using apt.

After you remove this moduke, reboot and your NIC should ve driven by r8169.


Shrinking file system taking a lot of time, is this normal?

It's quite normal for dynamic resizing operations--and particularly shrinking--to take a long time. Files are spread across much, and perhaps most, of the original partition. They have to be re-pieced together to fit them in a smaller space, and the information about where their pieces exist has to be updated. If you are also having the partition automatically converted from FAT32 to ext2, that may take a while as well, as the files are stored somewhat differently.

If it takes more than a day, then I would start thinking there was something wrong.

As for whether or not it's OK to run your hard drive at near its maximum capacity for reads and writes, for hours at a time: yes, this is fine. Your hard drive is, among other things, a mechanical device, so the more it's used, the higher the likelihood of mechanical failure. But all hard drives fail eventually, and there's no reason to expect this one will fail any sooner, just because it runs heavily for hours.

Of course, if it's getting too hot, that is a problem. A properly constructed computer should never allow this to happen, even if the hard drive is reading and writing at 100% capacity for days, weeks, or months without interruption. (Depending on what hard drive you've purchased, running it like this for months might or might not bring about very early failure.) But if you find it is hot, and you're able to cool it with externally applied ventilation, that should be fine.

  I don't mind losing the data,but the hard disk is really important.

If you have to cancel the operation, click Cancel. Really anything except cutting power to your computer or to the drive, won't physically damage the drive. Shutting down the operating system, using any method of harshness less than or equal to REISUB, will not be a problem. Even cutting power to the machine is unlikely to cause any real damage, although I would definitely avoid it when possible.

However, you may want to rethink the value you put in a single drive. All hard drives fail eventually, you can't prevent them from failing, and you can't prevent some of them (essentially selected at random) from failing long before you would expect them to fail. Some drives last longer than others (for some uses), and some drives are less likely to fail "early," but hard drives are replaceable (even in laptops) for a reason.

To put it another way: Hard drives' lifetimes are limited, so much so that in any computer where some other component fails first, the computer's craftsmanship should be questioned.


wmii - How do I get TightVNCServer to start the WMII desktop environment instead of default Xsession?

I found the solution and it turned out to be much simpler than what I tried when I added my question. It was simply the following:

wmii &

Much simpler than I thought. :)


I'm not terribly experienced with this, so I'm not sure what the rough edges are, but fbterm works for me on the rare occasion I don't boot into X. It comes with fairly basic gpm-like mouse support, meaning you can select and paste text, but I haven't succeeded in making Vim read the mouse like it would in an xterm.

Basically you use a framebuffer driver for your video adapter; see this U&L question. Then install fbterm and run it; it is available in Ubuntu and is basically an improved console terminal with 256-color support.

It works best when it has unfettered read/write access to /dev/fb0, so make sure your user is in the group video; and its keyboard support also works best with the SYS_TTY_CONFIG capability, which means you have to run sudo setcap 'cap_sys_tty_config+ep' /usr/bin/fbterm. I'm guessing this capability goes away if the fbterm binary is replaced; hopefully someone can suggest a way around this. You could instead run it as root; the program's man page claims it drops root privileges soon after launching.

Make sure to run Vim using TERM=fbterm so Vim doesn't get confused (fbterm uses 256-color codes that differ from xterm's). You can then use 256-color themes, or even GUI themes if you use something like CSApprox.


In that case, do you use VLC?
VLC comes with its own codecs and might conflict with others.
Try uninstalling VLC and retry.


Why does shim/mokmanager allow to circumvent _ALL_ protections of SecureBoot? And how to fix it?

This is an official response posted by Thomas Ward (while wearing his server team / dev hat) on behalf of the Ubuntu Security Team itself, relaying from their IRC channel with direct quotes

The Ubuntu Security Team, in response to me triaging this to the Security Team, has gotten back to me regarding this issue.  I am going to direct-quote Alex Murray from the Security Team (amurray in #ubuntu-hardened on the Freenode IRC network):

This is an intentional choice to allow the user to be able to enrol their own cert since they have resigned grub/shim anyway - if they want to use their own certs etc then they should rebuild shim without this or just remove the mokmanager binary itself - since we don't do TPM-backed full-disk-encryption there are a number of ways to still do evil maid style attacks currently and this is just one of them
-- amurray, #ubuntu-hardened, Freenode IRC, April 26, 2020 22:25:28 UTC-4

As such, the Ubuntu Security Team acknowledges that this is an risk, but that it is an intentional choice to leave this as is.
If you want to protect against this, remove mokmanager binaries or rebuild shim without the ability to adjust the certs.
In either case, Ubuntu does not do any TPM Backed Full Disk Encryption, so there are a number of ways to do this 'evil maid' style attack.  While the Ubuntu Security Team acknowledges this, they do not consider this as something that needs immediate action given that this was an intentional choice.
Keep in mind also - mokmanager gives the user the warning about the keys, and as such it's up to the user or the admin who set the system up to accept the risk - this is fixable by simply removing mokmanager entirely thereby hardening the system and NOT providing a mechanism to change those keys via this vector.  However, there's still ways to do this kind of attack in other ways.


I wanna change my Google drive permission. Root have permission and other user can't access it

I believe running the below command will fix your issue.

sudo apt-get install mtp-tools

http://packages.ubuntu.com/search?keywords=mtp-tools


nautilus freezes on copy action (not during transfer)

Rename 'kdeconnect-cli'

I think this problem is facing by who installed KDE Connect on their system. I have Ubuntu 16.04 and I was also facing same problem with nautilus-3.20.3 while ctrl+c or right-click => copy. I analyzed system monitor, /var/log/syslog and found that when we press ctrl+c, a process name 'kdeconnect-cli' appear in system monitor.

So I renamed this file like '__kdeconnect-cli' in the directory /usr/bin and the problem solved but now I am not able to send files to my Android device with right-click.

'kdeconnect-cli' is a KDE Connect CLI tool that is responsible for sending files with right-click to your Android device using KDE Connect tool, I guess.

Now you have to use kdeconnect-indicator icon in your status bar to send files to your Android.
kdeconnect-indicator


Ubuntu Software doesn't open in Ubuntu 20.04

The Ubuntu Software Center (software-center) has been upgraded to GNOME Software (gnome-software) in Ubuntu 16.04 and later. The software app has also been renamed to Software in Ubuntu 20.04 and later.
If the Software app doesn't open run the following commands:
sudo apt clean # clean list of cached packages so Ubuntu Software can read them
sudo apt update && sudo apt upgrade
sudo apt autoremove gnome-software && sudo apt install gnome-software


How to zip a directory without zipping the parents directories?

The zip utility stores paths relative to the current working directory, so you have to use cd or pushd/popd to go to ~/Projects first:

cd ~/Projects
zip -r Klox.zip Klox

or when you want to return to the original working directory afterwards:

pushd ~/Projects
zip -r Klox.zip Klox
popd


Ubuntu 14.04 freezes when running project in netbeans 8 with jdk 7

Install Oracle Java 8 for Ubuntu. From the terminal run the following commands:

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

The installation also includes JRE8 and the Java browser plugin. The installer requires you to accept the Oracle license before the installation begins.

For more information visit Install Oracle Java 8 in Ubuntu via PPA repository (JDK8).


the solution should be like this:

#!/bin/bash
gpg2 --decrypt --no-tty $GEDIT_CURRENT_DOCUMENT_NAME

It is necessary to use gpg2 as command instead of gpg. So you will receive the prompt from the gpg-agent / pinetry to decrypt the text. The 2.nd missing part was to get the filename of the current document which ist determined by the $GEDIT_CURRENT_DOCUMENT_NAME-Environment-Variable.

Picture: gedit with gpg decrypted text

https://wiki.gnome.org/Apps/Gedit/Plugins/ExternalTools


Possible to Install Lubuntu 12.04 over an existing dual boot Ubuntu 13.04?

I'm not shure is there a downgrade option, but I'd recommend that you reinstall Lubuntu.

When you start installation of Lubuntu/Ubuntu, and you get to the "Instalation type" part choose option "Something else". There will be partition with Ubuntu on it (the one with ext4 format), just delete that partition and add new one on your free space. When you create new partition set the Mount point to "/". And that will format Ubuntu and install Lubuntu on same disc space. If you need to back-up files you can always copy them into Windows disc and get it back once you install Lubuntu.

I hope this is helpfull, here is a link to a simular video if you get lost:
http://www.youtube.com/watch?v=ba9Wv-XU_4M


pop-theme causes gnome-control-center segmentation fault

I fix it.
I have third party repository ppa:system76/pop
It was added during pop-theme installation.
After update gnome-control-center from system76/pop replace original gnome-control-center.

What I've done:

remove pop-theme
remove system76/pop repository and GPG key from /etc/apt/*
remove apt cache
remove broken gnome-control-center from system76/pop
install original gnome-control-center

Now everything is working fine.


Deleted drivers. How to get them back with LiveUSB?

Yeah you can mount another installation and trick it into thinking you're using it. It's called chroot. Boot to your Live environment and open a terminal. We need to start by finding out what the real installation partition is called. It'll look like /dev/sdb1 but use sudo fdisk -l to find out for certain.

sudo mount /dev/sdb1 /mnt
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
sudo chroot /mnt

You're now root on your real installation. We've cross-mounted the live deives and kernel stuff so everything should Just Work™ Lite®*.

Run whatever it is you want now and then reboot.

* DKMS —the thing that compiles driver modules dynamically— might not compile accurately because you're running a different kernel, but it should allow you to get the system into a state where you're just running on open drivers to boot for real and then reinstall whatever you like.


If you're using static IP in your LAN, you can add the following to your /etc/hosts file

192.168.1.2    myhost.org


This is not a GUI way of doing this, but should work: https://help.ubuntu.com/community/AptGet/Howto#APT_configuration_file_method


How do i set the values of a List key through gconftool-2?

You should build your command line like this:

gconftool-2 --type list --list-type string --set /the/key/to/modify '[value1,value2,value3]'

As you see, you need to specify also the type of list elements, with --list-type.


Why does ls -lh give me ls: invalid option -- 'h'

I expect you're dealing with the SHV5 rootkit.

Please run RootKit Hunter to check for rootkits.

Keep me informed.


Bash script not creating file from crontab

Ok so, based on the input given by @steeldriver, we managed to obtain a solution.

The bash script is located on a mount which has been mounted by the noexec type. Meaning the bash files cannot be executed straightforward.
This was found using the command:

mount | grep ssd

The solution however is simple: add bash in front of the crontab -e command:

* * * * * bash /mnt/ssd/test.sh > /mnt/ssd/cron.log 2>&1

The 2>&1 part is added in this line as well so the error logs are also placed inside the cron.log file.


Is it possible to run laptop over direct supply and turn off battery charging?

This is a hardware option and not software. That said the answer is almost 100% no. Even the "dell" laptops don't really turn off charging. At a hardware level LiON battery need a very small charge 100% of the time or they will discharge (or worse, burn out). Most charging circuitry will handle this by discharging and recharging the battery in a tiny increment.

Even Dell laptops would be subject to this requirement if there running LiON batteries.