matlab 2014b libxerces-c.so.27: cannot open shared object file: No such file or directory

As you said, no package for the supported Ubuntu versions contains libxerces-c.so.27

Therefore create a symbolic link

sudo apt-get install libxerces-c28
sudo ln -s /usr/lib/libxerces-c.so.28 /usr/lib/libxerces-c.so.27

An other idea, here you can download xerces-c-2.7.0, the archive contains libxerces-c.so.27

% find . -name '*.so.27'
./xerces-c-2.7.0/lib/libxerces-c.so.27
./xerces-c-2.7.0/lib/libxerces-depdom.so.27


Disable CTRL-SHIFT-U on 18.04.2. I uninstalled ibus and the combo still works?

There is a way Without making system-wide changes which may cause unwelcome side effects. Run IDEA with environment variable XMODIFIERS set to empty. There are a few ways to do that:

Run IDEA from command line or a script as follows:

XMODIFIERS="" /path/to/idea/bin/idea.sh

Edit idea.sh and add the following line at the top:

export XMODIFIERS=""

Edit Gnome desktop entry for IDEA at ~/.local/share/applications/jetbrains-idea.desktop and precede the Exec line like:

Exec=env XMODIFIERS="" "/path/to/idea/bin/idea.sh" %f

Either will do. The last one is for launching IDEA by clicking on its icon from the dock while the others would work from command line too. Just keep in mind if the first method is used with an intermittent script, the desktop entry created by IDEA wouldn't point to this script. So you may want to alter the path at the Exec line so it points to your script or use method 2. This method though would need be re-applied each time you install new version of IDEA.

My solution to do it once is:

Install IDEA into folder like some/path/idea/idea-IU-192.6817.14
Run IDEA and create desktop entry for it (menu Tools)
Link given IDEA version under current folder

ln -s some/path/idea/idea-IU-192.6817.14 some/path/idea/current

Edit ~/.local/share/applications/jetbrains-idea.desktop and change Exec line

Exec=env XMODIFIERS="" "some/path/idea/current/bin/idea.sh" %f

Whenever you download a new version of IDEA just link it as current and no need to repeat these steps. Obviously extracting new versions of IDEA always to the same folder and replacing the previous version would work as well without linking.


Ubuntu 18.04 update stuck at "Setting up redis-server (5:4.0.9-1ubuntu0.1) ..."

I uninstalled redis-server:

sudo apt-get purge redis-server

and installed it again from this repository.

sudo add-apt-repository ppa:chris-lea/redis-server
sudo apt-get update
sudo apt -y install redis-server

Now it works fine.


Does Canonical track Ubuntu usage? If so, how? Are there "official" figures? Where can I find them?

The simple tl;dr answer is No - Canonical does NOT track Ubuntu usage.

That has been recently confirm by no other than Dustin Kirkland who is part of Canonical's Ubuntu Product and Strategy team.

Dustin goes on to speculate about Ubuntu usage - the only real figures are from third parties like Docker by examining pulls from their repo.

Other figures are indirect - so speculate all you like - Dustin claims 1 billion Ubuntu users (both direct and indirect users via a Ubuntu provided service).

Basically - be proud - Ubuntu is used by lots and lots of users - you are not tracked; you belong to a massive and free community.


To use OpenSSL s_client with CRL verification you have to do various undocumented things, which I've described in https://superuser.com/questions/742231/s-client-not-failing-on-revoked-certifcate/742289#742289.

Apart from that I don't know if any application using OpenSSL does CRL checks at all, because I think you have to explicitly enable these checks in the API and then put the CRL at unexpected places. And of course there is no automatic downloading of CRLs.

If you think now that all this TLS stuff is broken you are probably right and this does not apply only to OpenSSL.


Running a Windows Startup Repair is definitely quite risky on Linux systems. You can mess up any number of things including the MBR and boot sector.

Fortunately, there is a tool out there designed to easily recover from this type of issue called Boot-repair. All you need is an Ubuntu Live CD or USB and an internet connection. See the Boot-repair guide in the Ubuntu Community Documentation to see how to install the tool in a live environment, and then just do a Recommended Repair. If you run into further issues, it will create a Boot Info Script link which you can paste back here.


Installation of SAP GUI 740 on Ubuntu 14.04

On Linux Mint 18 of the Ubuntu family with openjdk version "1.8.0_91"
installed, I installed SAP GUI for Java 7.40 rev 7. I ran into the same error when I tried to start the SAP gui. I simply looked for javafx in the software center and installed Javafx/openjfx 8 - rich client application platform for java. Now it runs like a charm.


Can I restore content of /var/spool for package defaults?

After you've unmounted, and got rid of the configuration to mount /var/spool as tmpfs by removing it from /etc/fstab, you can run the following commands to reinstall all the packages which own files in /var/spool:

dpkg -S /var/spool | sed 's/\:.*$//;s/,//g' | xargs sudo apt-get install --reinstall

The dpkg -S command lists all of the packages which own /var/spool or something under it. The pipe to sed strips off the end and then removes the commas from the comma-and-space-separated list of package names. And finally the xargs is to pass the list of packages on to sudo apt-get install --reinstall as the list of arguments, rather than the normal STDIN that a pipe sends to.


How/Where can i get the script file 'Virtualbox.run'?

On the official website:
https://www.virtualbox.org/wiki/Linux_Downloads

There is a downloading option **All distributions (built on EL5 and therefore do not require recent system libraries) ** at the bottom.

More specifically for 64-bit systems the script is here:
https://download.virtualbox.org/virtualbox/5.2.8/VirtualBox-5.2.8-121009-Linux_amd64.run


Where & how to edit very large video files?

Alright! After some trials I managed to find a functioning workflow for HD video editing using Blender and Avidemux.

Procedure:

Take the high-res footage and create additional low-res versions. What I do is use Avidemux to create .avi files encoded in m-jpeg format. Furthermore I also adjust the size of the low rez footage to 640x360px
Import high-res footage into Blender. Keep the project's import settings high-res, meaning the video settings you would like to export the project in.
When viewing the video sequencer timeline in Blender, select your high-res clips after importing them and press N.
Under each of the clips, find "proxy" and check it. Afterwards you check and select "proxy custom file," where you then select the corresponding low-res file.
And if you hover over the Sequencer View you will be able to press N, to see various render settings for that view. I like to select "proxy size 25%" under "proxy rend."

PS. You do not have to uncheck the proxies before exporting your finished project, Blender is smart enough to handle that automatically.

Cheers! :)


You should check the specific VirtualHost to find what is the document root directory, and then set the AllowOverride directive for that directory. For example:

<Directory /var/www/html/magento/>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
</Directory>

Where /var/www/html/magento is the document root directory of your domain name. You should also make sure that a .htaccess file is created in the same directory.


Turns out, the AddExternalAuth and SetExternalAuthMethod must be placed within the VirtualHost declaration. Hence the following config works just fine:

<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/html

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

    AddExternalAuth pwauth /usr/sbin/pwauth
    SetExternalAuthMethod pwauth pipe

    <Directory /var/www/html/sec>
        AuthType Basic
        AuthName "Restricted Area"
        AuthBasicProvider external
        AuthExternal pwauth
        Require user pat
    </Directory>
</VirtualHost>

I still do not understand why the scenario in which the declaration is done globally, hence directly in apache2.conf, doesn't work. Nonetheless, the initial issue is solved....


I suggest you follow the instruction in this link here

Don't install using the LAMP stack method, instead follow the instruction below it where you have to install Apache, PHP and Mysql one by one.

With this, you will pretty much get the general idea how the directories, Mysql services and all other stuff works. Good luck!

Btw, don't forget to remove your XAMP first.


Does Ubuntu have the ABNT2 Brazilian layout?

Try to type setxkbmap -model abnt2 -layout br, or alternatively, reconfigure the keyboard, following the instructions of the command dpkg-reconfigure keyboard-configuration.


how can we enable the fingerprint login in ubuntu 20.04?

There is no driver available for most fingerprint readers at the moment for most Lenovo laptops. But to be sure you can do a check.
1.Install this package sudo apt install hw-probe
2.Run this command sudo -E hw-probe -all (creates a File with all devices which is located in /root/HW_PROBE/LATEST/hw.info/devices.json)
3.Open the file from the last command: (first type sudo su) gedit /root/HW_PROBE/LATEST/hw.info/devices.json
4.Find the fingerprint reader somewhere at the bottom of this file and if you see "Status" : "failed" then there is no driver installed.
5.The first line of the fingerprint driver is something like this "usb:28ck-58dk" (example)
6.https://linux-hardware.org/index.php?view=search open this and write into DeviceID 58dk (example) and check if the driver in which kernel will be supported.


One way is to edit /etc/pam.d/login like this:

--- a/login 2015-06-15 03:35:17.422387358 +0200
+++ b/login 2015-06-15 03:36:41.535536201 +0200
@@ -50,7 +50,7 @@
 session       required   pam_env.so readenv=1
 # locale variables are also kept into /etc/default/locale in etch
 # reading this file *in addition to /etc/environment* does not hurt
-session       required   pam_env.so readenv=1 envfile=/etc/default/locale
+session       required   pam_env.so readenv=1 user_readenv=1 envfile=/etc/default/locale

 # Standard Un*x authentication.
 @include common-auth

Can't tell if it's 'the proper way', though.


Install Oracle Java JDK 8:

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

Then download and unpack Android Studio archive from:

https://dl.google.com/dl/android/studio/ide-zips/2.2.0.12/android-studio-ide-145.3276617-linux.zip

Using terminal go to unpacked directory called android-studio, then /bin and run ./studio.sh file


According this and this good explanation, there is possibility of frequency interfere caused 3.0 usb devices that affecting any of wireless mouse and keyboard.

So the possible solution is extending your usb port using usb extension cable (adjust to some range where there is not produce any frequency interfere any more. *Tips: place the receiver as close as possible to the wireless device)


Upgraded to 13.10 9 key layout is now upside down 7 8 9 is now 1 2 3

Launch or install gnome-tweak-tools, go to "typing" and disable "phone numpad style".


Access to directory through terminal - No such directory or file

Always quote the path that has spaces in it:

cd "/home/nico/.wine/drive_c/GOG Games/Fallout 2"


No wireless after resuming from suspend?

It doesn't help fix the bug, but here's a workaround.

Use lsmod to find out which wireless driver you're running.
Reproduce the problem.
Kill the module (sudo rmmod [your driver]).

4 Reinsert the module (sudo modprobe [your driver]).

If wireless begins working again, you can create scripts in /etc/pm to do this each time you suspend and resume. It'll add a couple of seconds to reconnecting on resume, but that's all.


First, In Terminal user change into root user.

Ubuntu - sudo su.
other - su

Second , you should ensure that your username is included in www-data group. If not, you can add your username as www-data group

sudo adduser $USER www-data

After that, you should change the ownership of /var/www to your username

sudo chown $USER:www-data -R /var/www

Next step, you should change permission to 755, not recommend changing permission to 777 for security reason

sudo chmod 0755 -R /var/www
sudo chmod g+s -R /var/www

Hope it helps...


Stuck in terminal at Configuring Secure Boot

I did Ctrl + 'mousewheel down' (Ctrl + PageDown for those without mice) and a screen for typing password appeared.

I then typed password pressed Enter,

retyped password pressed Enter

and the installation continued.


Xfce themes look ugly after HDMI cable is unplugged

I used to see problems similar to this on old Gnome 2 while playing with compiz, the window manager would need to be restarted sometimes, logging out & back in works, or restarting the window manager might work too. Xubuntu / XFCE uses the xfwm4 window manager, and it's got an option --replace that might work. Try:

xfwm4 --replace &

in a terminal window & see. I just tried it on my linux mint xfce and it seems to work, though I didn't have any problems so it just flickers the screen & then looks about the same. And running it  without the & keeps it in the terminal foreground, a ctrl-Z suspended the window manager and seemed to mess things up pretty good, but a kill -CONT from another console (ctrl-alt-F5) got it going again.

Running it in an ALT-F2 "Launch" window might be best.

And like aquaherd's comment mentions, restarting xfsettingsd might work, it's got a --replace option too so I'd try:

xfsettingsd --replace &

It seems to work good without needing the & at the end, probably telling a daemon to run in the background is redundant? With all the different desktop environments, window managers, and settings programs it's hard to keep track.


install kernel version 4.1.1 on ubuntu 16.04

Grub always loads the latest kernel. You need to manually select the 4.1.1 kernel from advanced options of grub menu.

If you want the 4.1.1 kernel to be default, you will need to remove all newer kernels from your system.

Please note that the 4.1.1 kernel is not supported, and questions about problems with it are off-topic at this site.


Problem at Downloading from Ubuntu Software Center?

Go to your preferences and set up your proxy from there (if you are using one this is). Make sure the system (not the internet browser is connected) to the outer world, then try it over again.


the message

new full speed USB device number xx using ehci_hcd

Only is information... but the message

unable to enumerate USB device on port 7

is one error with the SO and the device, olds devices in old ports cause many errors. But example, i have two computers... my beauty old G41 Chipset based with ubuntu 13.1 and my Work PC with i5  under ubuntu 12.04 LTS... on my old pc with olds ports fail mounted my tablet like USB Device... :(


There are no touchpad settings in Ubuntu 18.10 installed in VirtualBox

VirtualBox has limited direct access to hardware.

That is why your touchpad can't be managed by a full-feature driver with multitouch capabilities.

You need to install Ubuntu directly for a full-feature touchpad. But that doesn't guarantee that the specific touchpad is fully supported by Linux kernel.


Upgrading an Ubuntu localrepo from trusty to xenial

Welcome to Ubuntu. Please do not be sorry for being "new" to Ubuntu. Everyone has been at some point for it has not existed since the dawn of ages.

Here is my configuration for xenial to come : the file is /etc/apt/mirror.list

############# config ##################
#
set base_path    /home/your/path/apt/ubuntu/
#
set mirror_path  $base_path/mirror
set skel_path    $base_path/skel
set var_path     $base_path/var
set defaultarch  <running host architecture>
set postmirror_script $var_path/postmirror.sh
set run_postmirror 0
set nthreads     1
set _tilde 0
#
############# end config ##############

deb-amd64 http://archive.ubuntu.com/ubuntu xenial main restricted universe multiverse
deb-amd64 http://archive.ubuntu.com/ubuntu xenial-security main restricted universe multiverse
deb-amd64 http://archive.ubuntu.com/ubuntu xenial-updates main restricted universe multiverse
deb-amd64 http://archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse

clean http://archive.ubuntu.com/ubuntu

Note : I set set nthreads 1 because my internet connection is allergic to aggressive downloading and when apt-mirror is doing its "thing" the whole rest of the house looses service. You could set at anywhere between 5 to 20 and it could do it for you.

And in /etc/cron.d/apt-mirror , I have

0 4    * * *   apt-mirror      /usr/bin/apt-mirror > /var/spool/apt-mirror/var/cron.log

Remember the official repo is not out yet. This will be working when the time comes.

Here is an example of the command line output when I call apt-mirror (for trusty as of now) from the command line :

pi@bananapi:~$ apt-mirror
Downloading 152 index files using 1 threads...
Begin time: Mon Mar 28 23:34:49 2016
[1]... [0]...
End time: Mon Mar 28 23:39:01 2016

Processing tranlation indexes: [TTTT]

Downloading 213 translation files using 1 threads...
Begin time: Mon Mar 28 23:39:01 2016
[1]... [0]...
End time: Mon Mar 28 23:40:09 2016

Processing indexes: [PPPP]

68.5 GiB will be downloaded into archive.
Downloading 26918 archive files using 1 threads...
Begin time: Mon Mar 28 23:42:24 2016
[1]...

Hope it helps you.

Regards.

Marc


A community ppa has been set up for the most recent stable release of mesa, but you will have to be the most recent development version (16.10 as of this post), or the most recent LTS.

sudo add-apt-repository ppa:paulo-miguel-dias/pkppa
sudo apt-get update


Yes you do need to install a boot loader. Otherwise the mbr will contain windows loader code which runs straight into windows. Please take a look here and here for the proper procedures absically all you need is to do is install a new boot manager.


How do I set a pulseaudio card profile persistently across reboots

To make default settings for the pulseaudio daemon we can edit /etc/pulse/default.pa (as root) to give a default source or sink in the last section by uncommenting the corresponding lines and give in the name of our output sink and input source:

### Make some devices default
set-default-sink <name_of_sink>
set-default-source <name_of_source>

In case your sound card needs a specific profile we can also add the follwing line:

set-card-profile <cardindex> <profilename>

Please make a backup of this file before editing to be able to restore the default setting.

In case you are unsure what name your sink has you can issue the following command in a terminal to list all sinks presently active:

pacmd list-sinks

To test if the sink is correct we can issue

pacmd set-default-sink <nameofsink>

in a terminal before we change the default.pa. Open Audio Settings to see the effect (but this will not actually change the sink with default settings - see this answer!)


To allow chfn to add Real Name in /etc/passwd, open /etc/login.defs (as root) and look for the line containing CHFN_RESTRICT. Change whatever is followed to frwh. This will allow changing Real Name from KDE System Settings.


Is there any way of getting description of processes in linux?

I use Kubuntu 18.04 and 20.04.  The process monitor (accessed by Control-Esc) shows me this.  Is that what you want.  You can then sort by cpu, process etc.
Some commandline alternatives like cat /proc/{PID}/status are listed in the answers and comments of this question.


The path where php file should be stored should be correct.
Store your php file of /var/www/html/yourdirectory/filename.php
follow above path and then in the browser type:

http://localhost/yourdirectory/filename.php


Ubuntu 16.04 guest on Virtualbox not getting IP from host

I had the same problem with my Intel adapter, here's my quick workaround:

In the host environment (e.g Windows -> Device Manager) turn the Intel adapter off and then turn it on again. After 5...10 seconds check the guest again,

ifconfig -a

...it should get the IP without restarting the host system.


It's a little late, but I faced this problem with Firefox 51.0.1 after updating it from 44.0.2.

Problem: The new Firefox seems to have the menu bar as part of the window itself and does not use the top menu bar of Unity.

Solution: If you can't see it then it is probably hidden, key in F10 to make it visible and (optionally) check View -> Toolbars -> Menu Bar to keep it visible.

Note that the usual Alt key for this purpose brings up the application specific launcher in Unity, hence the F10 alternative.


Startup Disk Creator is not showing the ISO image

Try doing it another way. First, determine what device node your USB stick is (usually /dev/sdb unless you have another storage device plugged in or multiple hard drives).

(To verify, you can open the Disks application that comes with Ubuntu, find your disk and click it, then look right under it for the device node.)

All you have to do now is open a terminal with Ctrl+Alt+T and run

sudo  dd  if=/path/to/ubuntu.iso  of=/dev/sdX  bs=8M

where /path/to/ubuntu.iso is the actual path to the Ubuntu ISO and /dev/sdX is your USB stick device node. That never failed me.


Make bat file available everywhere for the terminal?

if you want to shortcut the program, and leave it where it is you can either use sym. links or the alias command.

(note this assumes you've made it executable, chmod +x [script file])

sym links allow you to create a shortcut that behaves like the file in question.

sudo ln -s [script start-up file] /usr/bin/[name]

despite being in /usr/bin it will start in the directory you call it from.

alias allows you to give an name to a command, or series of piped commans, that you use regually, for example its fairly common to have the update/upgrade commands combined into a single, alias'd, one.

alias [name]="sh /path/to/script/[file name]"

assuming that your script runs with sh, (this could also be bash, for more complex tasks there is a difference).


You would have to write your own drivers/kernel. There isn't proper accelerometer or 2-in-1 support on Ubuntu, yet. Unity 8 is supposed to bring all those new features.

Touch works pretty well though.

On my Pavilion x360, the accelerator doesn't work properly, and only the keyboard is disabled on flip.

See this thread to enable an onscreen keyboard/rotate on flip:

Switch into tablet mode (in Gnome)
Oh, btw, its in Gnome.

--upvote if this helped :)--


What is the name of "Software" app in Xubuntu

The terminal name for this app is gnome-software. The full name is GNOME Software


Ubuntu Server 15.10 VirtualBox Bridged and NAT don't work together

The solution from this question worked for me.

So what I had to do is remove the gateway 192.168.56.1 line.


That message appears to come from the accomplishments daemon. It uses the gnome-session process to make sure a user is signed on and if so to find the the environment of those users. From that environment it can find the socket address of the session's dbus.

I don't know if there are further dependencies on gnome-session.

I'd say the package just isn't far enough along yet to support non-gnome sessions.


How to set up cloud image in VirtualBox?

Perhaps this is useful?
http://en.wikibooks.org/wiki/QEMU/Images#Exchanging_images_with_VirtualBox


What to do about Black Screen w/ white cursor after desktop login, Ubuntu 14.04 LTS 64 Bit

It could be the case that your configuration file for X is not configured properly for the proprietary nVidia driver. Try executing sudo nvidia-xconfig. This will automatically create a file /etc/X11/xorg.conf with suitable defaults and will backup any existing configuration file using the original name with .backup appended to the file name.


How to mount a host drive as a hard drive in Windows 8 when running inside VMware

Once you’ve installed the guest additions, enable shared folders by adding a folder from your host machine in the settings for the guest machine. To do this, first make sure the guest machine is powered off. Then, select the guest machine in the list on the left of the VirtualBox Manager and click Settings on the toolbar.

check link below

http://www.howtogeek.com/187703/how-to-access-folders-on-your-host-machine-from-an-ubuntu-virtual-machine-in-virtualbox/


When you want to write file paths, you have to write them in a relative way. So in Glade you have to write

../media/icon.png

With the two dots (.) you go back into the /data folder. Then you say to go into /media and open icon.png. You have to do so because the Glade .ui files are stored in /projectname/data/ui/ - from here you have to go back by 1 and then into the /media folder.

When writing the .desktop.in file (the desktop/application entry) for example for including the icon, you have to write it like this:

./data/media/icon.png

Take care to write only one point.

Oh, what I forgot: The application does not need root access to write into files and quickly does all important packaging (the thing with /opt/) automatically. You do not have to take care of /opt/.

I hope I could help you with your questions.

PS: Note that the Ubuntu App Developer Showdown is over!


When I try to upgrade to PHP 7.4, it says I already have the newest version... but I don't

In addition to the steps I mentioned in my question, it looks like these are the steps I needed to upgrade from php7.0 to php7.4...
update-alternatives --set php /usr/bin/php7.4
a2dismod php7.0
a2enmod php7.4
systemctl restart apache2


Unable to install Ubuntu 16.04.2 on XPS 13-grub-install /dev/nvme0n1 failed

Try this:

Download the USB flash drive or CD-R version of my rEFInd boot manager. (Download links for both are on that page.)
Prepare a boot medium from that.
Boot with the rEFInd disk. You should see the rEFInd menu appear, with options to boot both Windows and Ubuntu.
Test both boot options.
If both boot options (Windows and Ubuntu) work, boot to Ubuntu.
Install either GRUB 2 or rEFInd....

You should be able to install GRUB 2 by installing the grub-efi package and then running sudo grub-install, possibly followed by sudo update-grub. This procedure is a bit of a shot in the dark, though, and the installer should be doing basically this, so there's a good chance this won't work -- or at least, you may need to intervene with tricky custom configuration.
You can install rEFInd using the Debian package or PPA. This should work automatically, but if it fails, you might need to follow the manual installation instructions.

FWIW, I've been seeing a number of reports of problems like this. There are this bug might or might not be the issue in your specific case. I've seen other bug reports, but most of them have been marked "invalid" because of misconfiguration of the target system. It's also possible that this is the root cause of your problem, but I can't be sure of that. If the preceding procedure doesn't help, please run the Boot Info Script. This will generate a file called RESULTS.txt. Post that file to a pastebin site and post the URL to your document here. This will give us more details about your configuration.


What does the command-line option "-A" in the ssh command do?

From man ssh, which for me lists this option as the fifth:

-A  Enables forwarding of the authentication agent connection.
    This can also be specified on a per-host basis in a configuration file.

    Agent forwarding should be enabled with caution. Users with the
    ability to bypass file permissions on the remote host
    (for the agent's UNIX-domain socket) can access the local agent
    through the forwarded connection.  An attacker cannot
    obtain key material from the agent, however they can perform
    operations on the keys that enable them to authenticate
    using the identities loaded into the agent.

See man ssh_config for the config file option names, without having dug into it I think you want ForwardAgent here.


kernel: imklog Error return from sys_sycall: 1

The solution/workaround that my co-worker who ran into this issue used was to disable the imklog module by running
sed -i -e 's/^\$ModLoad imklog/#\$ModLoad imklog/g' /etc/rsyslog.conf
as suggested here: https://bugs.launchpad.net/ubuntu/+source/rsyslog/+bug/523610/comments/49


Installing GRASS GIS 7.0 on Ubuntu 14.04

Unfortunately, GRASS GIS development version package for 7.0 is not in a good shape now. I would suggest to compile GRASS GIS from the source code. (Edit: GRASS GIS 7.0 was released, so situation is different; this was valid for September 2014, however the compilation can be advantageous anyway.)

You need to install compile tools and dependencies, download source code using SVN, configure, compile and install.

The steps are described here:

http://grasswiki.osgeo.org/wiki/Compile_and_Install_Ubuntu

Go through the sections:

Dependencies
Using pre-compiled dev Packages for PROJ.4, GEOS and GDAL
Compile from source, subsection GRASS GIS

Here are the actual steps (partially mine, partially extracted from the wiki page):

sudo apt-get update && sudo apt-get upgrade
sudo apt-get install \
  build-essential \
    flex make bison gcc libgcc1 g++ cmake ccache \
    python python-dev \
    python-opengl \
    python-wxversion python-wxtools python-wxgtk2.8 \
    python-dateutil libgsl0-dev python-numpy \
    wx2.8-headers wx-common libwxgtk2.8-dev libwxgtk2.8-dbg \
    libwxbase2.8-dev  libwxbase2.8-dbg \
    libncurses5-dev \
    zlib1g-dev gettext \
    libtiff-dev libpnglite-dev \
    libcairo2 libcairo2-dev \
    sqlite3 libsqlite3-dev \
    libpq-dev \
    libreadline6 libreadline6-dev libfreetype6-dev \
    libfftw3-3 libfftw3-dev \
    libboost-thread-dev libboost-program-options-dev liblas-c-dev \
    resolvconf \
    libjasper-dev \
    subversion \
    libav-tools libavutil-dev ffmpeg2theora \
    libffmpegthumbnailer-dev \
    libavcodec-dev \
    libxmu-dev \
    libavformat-dev libswscale-dev \
    checkinstall \
    libglu1-mesa-dev libxmu-dev

More dependencies:

sudo apt-get install libproj-dev
sudo apt-get install libgeos-dev
sudo apt-get install libgdal-dev
sudo apt-get install python-gdal

Navigate to the directory where you want the code and GRASS GIS to be compiled (e.g. ~/dev or ~/bin or /usr/local/src or /opt/, ...).

Then to get the latest code for 7.0 release use:

svn co https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0 grass70_release

Go to the directory which was created by svn:

cd grass70_release

Configuration:

export CFLAGS="-O2 -Wall"
export CXXFLAGS="-O2 -Wall"
export LDFLAGS="-s"
./configure \
    --enable-largefile=yes \
    --with-nls \
    --with-cxx \
    --with-readline \
    --with-pthread \
    --with-proj-share=/usr/share/proj \
    --with-geos=/usr/bin/geos-config \
    --with-wxwidgets \
    --with-cairo \
    --with-opengl-libs=/usr/include/GL \
    --with-freetype=yes --with-freetype-includes="/usr/include/freetype2/" \
    --with-postgresql=yes --with-postgres-includes="/usr/include/postgresql" \
    --with-sqlite=yes \
    --with-mysql=yes --with-mysql-includes="/usr/include/mysql" \
    --with-odbc=no \
    --with-liblas=yes --with-liblas-config=/usr/bin/liblas-config

Compile:

make -j2

The number after -j is number of cores which should be used for compilation (this may speed up the compilation, it does not influence the result).

Install:

sudo make install
sudo ldconfig

You can optionally not install but then you have to run GRASS GIS using full path to the source code directory (../grass70_release), subdirectory bin, file grass70.

To update the source code later, use:

svn up

And then compile again.

Time to time, you need to recompile everything, so do

make distclean

and then start with configuration and continue with compilation and installation.


Trying to install Ubuntu 19.10 with dual boot alongside windows 10 but there is no space available

My guess is your recovery partition on the PC is preventing Ubuntu from accessing that available space since its between 2 Windows partitions. I suggest to first image the drive if you can to an external HDD (I like Marcium on Windows), then nuke the recovery partition, and see if it installs. If you don't have a spare external drive, try to adjust the default installation target, may even be possible to create a small 1 GB partition in your 300 GB unallocated, using a clone tool like Macrium or dd in Linux to save the Recovery Partition over. That said Windows recovery is not something I would expect to work if partitions change, so still strongly suggest an image backup to an external drive.


Restart wireless connections with command?

Instead of directly restarting the network service , try

    sudo service network-manager stop
    sudo service network-manager start


Create Multiarch package with prebuild binaries

What you are asking seems to me weird, as it looks you had jumped over the regular workflow.

Developer: Have source code
Developer: Add build & install script (make, automake, cmake, ..etc)
Packager: Get source archive
Packager: Make Debian package
(3. Could be skipped when building native Debian package directly from source tree)

It is more convenient to handle multi-arch installation at 2nd step while installing. So you get a generic installation way. Then move on to clean Debian package. This will make maintaining it more easier too.


ubuntu 12.04 (64bit) wine midi has no output

If you want to synth MIDI in apps under Wine you need a MIDI synth in Ubuntu:

sudo apt-get install timidity freepats

Sources: http://www.earmaster.com/community/topic.html?p=1638#p1638 ; http://wiki.winehq.org/MIDI


Complete Removal of Thunderbird 45.5.1 from Ubuntu 16.04 LTS

The stuff in /usr/share/app-install is actually part of the package app-install-data as you can see in the output of dpkg-query -S /usr/share/app-install/*thunderbird*.
/var/lib/app-info is generated by or for the same package.
/usr/share/icons/HighContrast/scalable/apps-extra/thunderbird-icon.svg is part of gnome-accessibility-themes.
/var/lib/apt/archives/ contains package archive files you downloaded in the past via Apt and that haven't been cleaned out yet.

You can remove all of these without serious consequences because they're either

program icons or launchers related to Thunderbird though not owned by Thunderbird packages or
cache data that will be re-downloaded or regenerated on demand,

though I don't think it's wise to corrupt packages to free a few meagre kilobytes and inodes. If you want to clear the Apt archive either manually or automatically there are cleaner, more elegant ways to achieve that (which is a topic for a different question).


Is it possible to access the files stored in the cloud from the U1 client in Unity?

If you open Ubuntu One from the Launcher or the Dash, the Cloud Folders tab will list all your cloud folders, and you can tick them to say that you want them synced with the machine you're on.


As your pendrive is visible in "Disk Utility" and

mount /dev/sdb /mnt

command returns

mount: /dev/sdb is not a valid block device

Therefore, your OS can detect the pendrive.

Now, open up terminal (Ctrl+Alt+T) and type in the command:

sudo su

to get root privileges.

Next, type:

mkfs.xfs /dev/sdb1 && mount /dev/sdb1 /mnt -t auto

This got to solve the problem. But if it doesn't please comment below. Thank You!


Problems setting up Java on Ubuntu 19.10

openjfx and openjdk-14-jdk are available for install through APT. To install them run the following command in the terminal:

sudo apt install openjdk-14-jdk openjfx

Then set openjdk-14-jdk as default by runnibg the following command in the terminal:

sudo update-alternatives --config java

You will see an output like this:

  Selection    Path                                            Priority   Status
------------------------------------------------------------
  0            /usr/lib/jvm/java-14-openjdk-amd64/bin/java      1411      auto mode
  1            /usr/lib/jvm/java-11-openjdk-amd64/bin/java      1111      manual mode
  2            /usr/lib/jvm/java-14-openjdk-amd64/bin/java      1411      manual mode
* 3            /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java   1081      manual mode

Press <enter> to keep the current choice[*], or type selection number:

Please, enter the number in front of java-14-openjdk under Selection column and press Enter


Run the below command on terminal to upgrade php5 package,

sudo apt-get install php5


"E: Unable to locate package update" when I try to update my system, why?

APT tool apt-get has simple commands that you need to know before hand what they do, and in what circumstances use it.

If what you want is update your packages list, the correct command is:

sudo apt-get update

just that! You don't need to write anything else before nor after. Is just sudo + apt-get + update. Done.

To install packages or programs in your system, you first need to know the package name. If you don't know the package name is recommended you use a GUI (like Ubuntu Software Center or packagekit), search and install your program using it. If you know the package name then you only have to:

sudo apt-get install package_name

Replace package_name your package name. You can install several packages at once, just write them with an space between them. If you are still getting:

  E: Unable to locate package package_name

Then try updating your list or reviewing the instructions you are following, maybe is just a typographic mistake. If name of that package is unknown for apt-get that is the error you will get.

For upgrading the packages that you already have installed, aka update all your system, you need to do:

sudo apt-get upgrade

Nothing else. It will upgrade all the packages that you have installed in your system.


How to use two different fonts for Chinese and English in Firefox?

First of all, make sure you have installed the required fonts properly. You can install fonts by following steps:

Open Home folder,
Select View->Show Hidden Files
Create a new folder and name it as .fonts
Open .fonts folder and copy font files here

Now selecting fonts in Firefox:

Open Firefox->Edit->Preferences->Content (tab),
Under Fonts & Colors click Advanced,
In Fonts for list-box select Chinese language,
Select Wenquanyi font in Serif, Sans-Serif and Monospace list-boxes,
Now repeat step 3, this time select Western for English,
Then repeat step 4 with Palatino font for English.

You can also uncheck Allow pages to choose their own fonts, instead of my selections above check-box.

Also try by changing Character Encoding, unless Western (ISO-8859-1) (which is default) or Unicode (UTF-8) does work.


Run application in specific X server or VNC port

I have successfully accomplished this. Here's how.

Install the necessary software.

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer xvfb x11vnc vnc-java blackbox xterm

Set a password for the VNC connection.

x11vnc -storepasswd

Create a script file to run with cron.

sudo nano /sflowtrend.sh

These are the contents of the file.

#!/bin/bash

log="/sflowtrend.log"

echo "Closing existing sFlowTrend windows gracefully." > $log
DISPLAY=:1 wmctrl -c "sFlowTrend"
sleep 5

echo "Killing all existing instances of java, Xvfb, and x11vnc." >> $log
for i in {1..3} ; do
        killall -q java
        killall -q x11vnc
        killall -q Xvfb
        echo "Iteration $i of kill cycle complete." >> $log
        sleep 2
done

echo >> $log

Xvfb :1 -screen 0 1200x800x24+32 -ac &
echo "Fake X launched." >> $log

x11vnc -display :1 --nocursor --httpdir /usr/share/vnc-java --httpport 6789 --usepw --forever --quiet --shared &
echo "VNC launched." >> $log

DISPLAY=:1 blackbox &
echo "BlackBok launched." >> $log

DISPLAY=:1 javaws /home/administrator/Downloads/sFlowTrend.jnlp &
echo "sFlowTrend (Java) launched." >> $log

echo >> $log

echo "Sleeping for one minute." >> $log
sleep 10
echo "Sleeping for fifty seconds." >> $log
sleep 10
echo "Sleeping for forty seconds." >> $log
sleep 10
echo "Sleeping for thirty seconds." >> $log
sleep 10
echo "Sleeping for twenty seconds." >> $log
sleep 10
echo "Sleeping for ten seconds." >> $log
sleep 10

echo >> $log

DISPLAY=:1 wmctrl -r "sFlowTrend" -b add,fullscreen
echo "sFlowTend now running in fullscreen." >> $log

echo >> $log

echo "Have fun!" >> $log

Edit root's crontab.

sudo crontab -e

Add the following line to the end of the crontab.

@reboot bash /sflowtrend.sh

Reboot, and try connecting to your server, port 6789

http://ubuntu-hostname:6789

This worked for me, and I wanted to share.

Have fun!

Sources

Remote X applications on Headless Ubuntu Server
Arranging windows from the GNU/Linux command line with wmctrl
Are PPA's safe to add to my system and what are some "red flags" to watch out for?


How to Change Folder Icons visibility mode?

You can see visible as a text files,Because You can't owner your files.

you can see here.https://help.ubuntu.com/community/FilePermissions

See also

chmod

chown

You can try .I can solve this way.


I've faced the same problem on a similar Asus laptop and ended up writing my own fancontrol config, since I was unable to get pwmconfig working.

Here's what I ended up using.

/etc/fancontrol

INTERVAL=2
DEVPATH=hwmon3/pwm1=
DEVNAME=hwmon3/pwm1=
FCTEMPS=hwmon3/pwm1=hwmon3/temp1_input
FCFANS=hwmon3/pwm1=hwmon3/fan1_input
MINTEMP=hwmon3/pwm1=50
MAXTEMP=hwmon3/pwm1=100
MINSTART=hwmon3/pwm1=60
MINSTOP=hwmon3/pwm1=30
MINPWM=hwmon3/pwm1=30
MAXPWM=hwmon3/pwm1=255

With this config I could start fancontrol by running sudo fancontrol and as a deamon with sudo service fancontrol start

I found it useful to run watch sensors and stress --cpu 4 when tweaking the config to confirm that fancontrol keeps the temperature at a ok level, even when all cpu cores were running at 100%.


Which ATI/AMD, or Intel, or NVIDIA Graphics for Unity?

I recommend them in the following order according to problems found, how the "out of the box" experience feels to end users, how compatible it is and how it will feel once you have it set up:

Intel - Works out of the box PERFECT. Most if not all will just work with no problems. Great for using a Video Beam or another video output. Just plug and done. Feels good also. Of course the benefit relates to how fast the Intel card is. I would not recommend an Intel old 440 to a more recent Core 2 Duo and up versions. In general you should not have any problems with them.
NVIDIA - Great Performance with Unity. It works out of the box for most Nvidia cards by using Nouveau and if you install the easy to install proprietary drivers it will feel perfect. Has little problems that can be quickly solved if you happen to have some of the cards that have small details (Which can also be solved if you update 12.04 with the latest updates). Most cards work excellent with Unity. I have tested cards starting from a Geforce 4600 TI 128MB up to a 560 TI 1GB.
ATI - Also great performance with Unity. It works out of the box although not most as mentioned with Nvidia. If you install the proprietary drivers you will get a good jump in performance but again, this is not as generally mentioned as Nvidia. My curiosity lies in that ATI is more open to the open source environment than Nvidia and yet has a bit more problems with video.

So in general if I had 3 laptops to choose from and they all were the same except for the video card, I would definitely choose Intel over Nvidia, and Nvidia over Ati.

In the case of 3 Desktop PCs that are the same except for the video card I would choose Nvidia over Intel and Intel over Ati.

This is just from several years of good, neutral and bad experiences.

For cases where you have 2 integrated video cards (Nvidia and Intel or Ati and Intel). The performance benefit is not as important as how well the video cards behave on Low power, high heat situations. For information regarding this I always point to Bumblebee or Ironhide?

In general, Ubuntu will work without problems or at least with a minimal of tweaking. The performance gain in the past months for all 3 video card types and the amount of fixes they have received just lets us know that there will be fewer problems for each new version of Ubuntu.


i installed ubuntu 15.04 in legacy boot mode. want to dual boot laptop in uefi mode

Booting a 32-bit OS in EFI mode on a system with a 64-bit EFI is difficult, but not impossible. Since it's a fresh installation, though, and since it's a hassle to do the cross-bit-depth booting, I recommend you re-install using a 64-bit Ubuntu.

To reduce the odds of making the same mistake, go into your firmware and disable the BIOS/CSM/legacy support. This support is normally disabled by default, but a lot of sites provide the misguided advice to enable it as a matter of course when installing Linux. The result is problems like yours. If your boot medium is prepared correctly, it should boot fine in EFI mode and you should be able to re-install with few or no problems. (Note that some tools omit EFI boot loaders when preparing USB flash drives. Rufus tends to do a decent job, provided you pick the option to prepare an EFI-bootable disk.)

As to your video problem, that's probably (but not certainly) unrelated to your EFI-boot problem. I recommend you try a 64-bit EFI-mode installation and, if you continue to have problems, search for questions on this topic. Video problems are not uncommon, and chances are your problem has been encountered before and overcome. Knowing the video chipset may be critical for finding a solution, so if you need to post another question, be sure to include that detail.

One final point: non-LTS releases are supported for just nine months. The 15.04 release you're trying, in particular, will reach end-of-life (EOL) in January of 2016. Thus, I recommend you try either the latest 15.10, which will reach EOL in July of 2016; or 14.04 LTS, which will reach EOL in 2019. If your video hardware is brand-new, 15.10 may be a better bet, since it's got a more up-to-date kernel and X server; but of course the extended support period for 14.04 is generally desirable.


Switch between internal and HDMI speakers automatically

Background

I had a similar problem during suspend/resume when sound would switch from HDMI TV to laptop speakers. Upon resume sound would stay on Laptop speakers and I would have to manually reset output device to TV in System Settings -> Sound.

This was one of my first annoying experiences with upgrade from Ubuntu 14.04 to 16.04 and the root was upgrade to PulseAudio 8 that comes with 16.04 LTS

After much searching I created a script called TV-sound. Although I don't plug and unplug the TV like yourself, I did some google searches and create a variation of the script to work in your situation. I've tested it and it works.

Step 1: Create script to switch audio between connected devices

We'll create a script called hotplugtv which udev calls. This same script can be called in many places though. For example, during testing I used it in lock-screen-timer where sound reverted back to Laptop during screen lock.

cd /usr/local/bin
sudo touch hotplugtv
sudo chmod +x hotplugtv
gksu gedit hotplugtv

When the editor opens with a blank screen, copy and paste the following into it:

#! /bin/bash

# NAME: hotplugtv
# PATH: /usr/local/bin
# DESC: Update pulseaudio output device when HDMI TV plugged / unplugged
# CALL: called from /etc/udev/rules.d/99-monitor-hotplug.rules
# DATE: Created Nov 26, 2016.
# NOTE: logs output using log-file
# UPDT: Dec 14, 2016 - Sometimes /sys/class/drm/card0 & sometimes /sys/class/drm/card1
#       so use /sys/class/dmcard* instead.

if [[ $(cat /sys/class/drm/card*-HDMI-A-1/status | grep -Ec "^connected") -eq 1 ]]; then
#        log-file "HDMI TV connected" ~/bin/log-hotplugtv;
        /bin/sleep 2;
        export PULSE_RUNTIME_PATH="/run/user/1000/pulse/";
        sudo -u rick -E pacmd set-card-profile 0 output:hdmi-stereo;
else
#        log-file "HDMI TV disconnected" ~/bin/log-hotplugtv;
        export PULSE_RUNTIME_PATH="/run/user/1000/pulse/";
        sudo -u rick -E pacmd set-card-profile 0 output:analog-stereo;
fi

exit 0

You will need to replace the two occurrences of rick with your own user id, ie UTF-8, etc.

I know this can be more professional with user name automatically set to a bash variable but I'm not that skilled yet :( Anyway, save the file and exit gedit.

Step 2: Create udev rules

udev monitors hotplug events when you plug in and unplug your HDMI monitor. Type the following to create a new rule.

cd /etc/udev/rules.d
sudo cp 70-persistent-net.rules 99-hotplugtv.rules
gksu gedit 99-hotplugtv.rules

NOTE: If the file 70-persistent-net.rules doesn't exist in your directory copy any other file there. We don't need the file contents,
just the file permissions to ensure ours are the same.

The editor will show a bunch of irrelevant text, highlight it and delete it.  Then highlight the code below and paste it into the editor:

# NAME: 99-hotplugtv.rules
# PATH: /etc/udev/rules.d
# DESC: Update pulseaudio output device when HDMI TV plugged / unplugged
# CALL: automatically called on system events
# DATE: Created Nov 26, 2016.
# NOTE: in future may requre systemd service hooks

ACTION=="change", SUBSYSTEM=="drm", ENV{HOTPLUG}=="1", RUN+="/usr/local/bin/hotplugtv"

Save the file and exit.

To enable the rule (without rebooting) we need to reload udev:

sudo udevadm control --reload-rules

Now you can plug and unplug your HDMI monitor / TV and the sound switches appropriately.

Caveat

On my system the sound automatically reverts to the Laptop speakers when HDMI is unplugged. On your system it did not. Further enhancements to the code may be required if sound doesn't go to your Laptop speakers when HDMI is unplugged. Please reply via comment below how things work / don't work out.

Quick testing in CLI

You can quickly test the code at the terminal by using:

    export PULSE_RUNTIME_PATH="/run/user/1000/pulse/";

Switch to HDMI / TV:

    sudo -u rick -E pacmd set-card-profile 0 output:hdmi-stereo;

Switch back to built in speakers:

    sudo -u rick -E pacmd set-card-profile 0 output:analog-stereo;

Remember to replace rick with your user name.
The initial export line probably isn't necessary but I've included it just to be safe.
If you have multiple sound cards, or something other than hdmi-stereo tweaks are obviously needed to find out the correct parameters before writing your script.

Deciphering your device name within PulseAudio

The code below uses the same command twice. Once when the sound is set to external HDMI TV. A second time when the sound is set to the Laptop's built in speakers. Each time you see the name PulseAudio uses:

$ pacmd list-sinks | grep -e 'name:' -e 'index'
  * index: 28
    name: <alsa_output.pci-0000_00_1b.0.hdmi-stereo>
───────────────────────────────────────────────────────────────────────────────
$ pacmd list-sinks | grep -e 'name:' -e 'index'
  * index: 30
    name: <alsa_output.pci-0000_00_1b.0.analog-stereo>

When you have multiple sound cards

Use the command aplay -l to see if you have cards greater than number 0. If so you will need to use appropriate card number in your scripts. For example:

$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: 92HD91BXX Analog [92HD91BXX Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 0/1
  Subdevice #0: subdevice #0

In the above example all card numbers are 0 with different output sources. If you have USB speakers they can have a different card number than 0.

Edit December 2, 2016

For some unknown reason the script was broken today. Above code used to read: "$(cat /sys/class/drm/card0-HDMI-A-1/status" but I had to change card0 to card1 and the code above has been revised as such. I can't explain what changed on my system other than regular Ubuntu updates since November 26, 2016.

Edit December 14, 2016

Above code needed to be switched again back to: "$(cat /sys/class/drm/card0-HDMI-A-1/status". Instead of revising code between card0 and card1 depending on boot, revise program to reference card* to capture both scenarios.


From Version 0.8 of newrez you can run:
newrez-v

From the newrez website:

  When you unpack this version, you will also get "newrez-v" which is an
  entirely different approach. For those who cannot run newrez due to
  driver issues, or because the latest Xrandr package traps the mouse in
  a small rectangle (like my system), here is a solution while we wait
  for these things to get fixed!


Permission denied problems after rsync with sudo on the remote

I can't comment yet, and I am not sure I understand the problem but I'll give it a shot.

Set the directories as executable for all users (source)
add the user you login as to the www-data group if the directories are executable for the group

(Or do you not want to change executable permissions either?) then, assuming the directory has enabled execute for the user, you would have to login on the remote server as www-data (or are you doing that already? you don't mention..)


Ubuntu 11.10 is based on Gnome 3, which means it uses GTK 3 and the theme you want to apply is GTK 2. This means that even if you do apply it will only affect GTK 2 apps and not GTK 3 apps, which will create a major rajor theme inconsistency.
I suggest you use a GTK 3 theme. You can find a lot of themes here:

http://gnome-shell.deviantart.com/gallery/29380653

Or you can add the following PPAs:

https://launchpad.net/~kokoto-java/+archive/omgubuntu-stuff
https://launchpad.net/~webupd8team/+archive/themes
https://launchpad.net/~satyajit-happy/+archive/themes

If you don't know how to use PPAs please read this:
What are PPAs and how do I use them? and if you don't know how to install themes manually in Ubuntu 11.10 read this: How to change GTK+ theme?


Some people seem to be referring to it as the "Gnome-Panel" icon, while others call it the "start-here" icon.
I believe this may be what you are looking for, though.

NOTE: I am currently running CentOS and am not near a Ubuntu box to test this. Proceed at your own risk and please report back your findings. Also save and close anything with files open, in case you need to force a restart.

To prevent dead linking:

Backup and replace the file at /usr/share/icons/themename/24x24/places/start_here.png. The post says it needs to be 24x24 but this may change over time. I would recommend you match whatever size icon is already there.
Update the cache with sudo gtk-update-icon-cache /usr/share/icons/Human/
Restart Gnome Panel weith killall gnome-panel


Is there any need to install nvidia graphics drivers if I am running Ubuntu Server?

You would have no need for nvidia drivers on a server, and the server version of the OS (so long as you are not using a graphical mode) will handle power well enough.

For your information as well, you do not install the drivers with wget, but rather with apt-get install.


How do I install the lastest Mesa driver in 11.10?

You can always download the packages individually and install them on your system.

Here is the link for the latest build for i386, and the link for the amd64 build.

The way to download files individually is to visit the PPA, click on View package details, select a package that you might be interested on downloading and the maintained builds will show allowing you to download the created package from that build.


Sometimes it reboots automaticlly because of updates. It happened to me and later I found out it was because of updates.

To have a look at logs, look at /var/log.

To see the boot log, go to /var/log/boot.log.

If you need any more log locations, go here to find them.

Hope this helps!!!


how to get this adapter to work with aircrack-ng?

First try to install bt5 R1 which has all the wireless drivers patched and check then with (double check if you have any AP in your range):

aireplay-ng -9 wlan1

If it displays 0 AP, then read from rt2870 and then on the forums.

Note: aircrack works for 100% on WEP but with WPA/WPA2 only with a dictionary which is a waste of time IMHO.


Searching google for "Agent admitted failure to sign using the key." suggests that logging out of your current session and then back in, or using ssh-add should solve the problem

Rationale: Ubuntu uses ssh-agent program:

 ssh-agent is a program to hold private keys used for public key authentication (RSA, DSA, ECDSA).  The idea
 is that ssh-agent is started in the beginning of an X-session or a login session, and all other windows or
 programs are started as clients to the ssh-agent program.  Through use of environment variables the agent can
 be located and automatically used for authentication when logging in to other machines using ssh(1).

If you just generated a key, ssh-agent does not know about it so it can't sign using the key - exactly what the error message says.

To add the key, you either need to restart ssh-agent (i.e. log out and log back in) or to use ssh-add to re-scan the keys.

See man ssh-add and man ssh-agent for more info


Try this guide, since the Raspberry Pi has extra packages that are normally not available on default Ubuntu or Debian. (Side note: I also have a Raspberry Pi 3B+ myself)


I recently saw about this excellent post Ubuntu 10.10 Maverick Meerkat Netbook Edition (Unity) with a lot of graphics and comments.

However, if you are looking for a press release, look at this Canonical page. And for more technical details, look at this Mark's post or visit the project page. Thanks!


What version of package is shipped with each ubuntu version?

You can use packages.ubuntu.com for that.

Example: http://packages.ubuntu.com/precise/perl at the top shows Package: perl (5.14.2-6ubuntu2). http://packages.ubuntu.com/lucid/perl shows Package: perl (5.10.1-8ubuntu2.1).

This works for other software too.

You can also search for perl and get a list with all releases like so: http://packages.ubuntu.com/search?suite=default&section=all&arch=any&searchon=names&keywords=perl

This will show:

hardy (perl): Larry Wall's Practical Extraction and Report Language
5.8.8-12ubuntu0.5 [security]: amd64 i386
hardy-updates (perl): Larry Wall's Practical Extraction and Report Language
5.8.8-12ubuntu0.5: amd64 i386
lucid (perl): Larry Wall's Practical Extraction and Report Language
5.10.1-8ubuntu2.1 [security]: amd64 i386
lucid-updates (perl): Larry Wall's Practical Extraction and Report Language
5.10.1-8ubuntu2.1: amd64 i386
oneiric (perl): Larry Wall's Practical Extraction and Report Language
5.12.4-4: amd64 i386
precise (perl): Larry Wall's Practical Extraction and Report Language
5.14.2-6ubuntu2: amd64 i386
precise-updates (perl): Larry Wall's Practical Extraction and Report Language
5.14.2-6ubuntu2.1: amd64 i386
quantal (perl): Larry Wall's Practical Extraction and Report Language
5.14.2-13: amd64 i386
raring (perl): Larry Wall's Practical Extraction and Report Language
5.14.2-14: amd64 i386


Why do which and whereis provide different locations and how can I prefer one path over the other?

The root cause of this problem was cached (hashed) entries in the bash lookup table. bash hashes command paths to avoid expensive lookups.

My thanks to @muru for pointing me in the right direction. What I did to resolve the problem was to use the command export $PATH$ which worked for me.

Further research indicates that you can find out if the path is cached (hashed) by using the command type - type diff (in my case) which returns the full path of the command similar to diff is /usr/bin/diff

You can take the surgical approach and remove the cache (hash) for a single command with the command hash -d *command* or in my case hash -d diff which reports success with output of bash: hash: diff: not found

you can also take the less elegant and just as successful approach of dumping the entire cache (hash) table with hash -r which reports nothing.

Sources:

Experience

How get rid of -bash: /usr/{package}: No such file or directory

https://unix.stackexchange.com/questions/5609/how-do-i-clear-bashs-cache-of-paths-to-executables


Ubuntu 18.04 Gnome hangs on login screen

Same issue. Even though Ubuntu was released last week, you can not use 18.04 on Dell XPS directly. I installed in several ways but each time laptop freezes as soon as I enter password on login prompt.

I got it working by pressig Ctrl-Alt-F2 at the login prompt and then:

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

And restart the laptop


You don't say what command you're using, so do it this way...

To check the file system on your Ubuntu partition...

boot to the GRUB menu
choose Advanced Options
choose Recovery mode
choose Root access
at the # prompt, type sudo fsck -f /
repeat the fsck command if there were errors
type reboot

If for some reason you can't do the above...

boot to a Ubuntu Live DVD/USB
start gparted and determine which /dev/sdaX is your Ubuntu EXT4 partition
quit gparted
open a terminal window
type sudo fsck -f /dev/sda4 # replacing 4 with the number you found earlier
repeat the fsck command if there were errors
type reboot


Ubuntu 15.04 suspends ~30 seconds after resume

I'm seeing the same problem on my Sony Vaio. Once I manage to get logged into the Lubuntu desktop, it stops suspending every 30 seconds. I think this is because xfce4-power-manager is taking over.

However, if I switch to a console, it immediately suspends, and resumes its "suspend after 30 seconds" behavior. I also see the "suspends after 30 seconds" behavior on the default Unity desktop.

I've found I can put an end to this behavior by making /sys/power/state non-writable (chmod 444), and I can get this to persist between boots by adding the chmod command to /etc/rc.local, before the "cgroup" commands.

Now that I have made /sys/power/sleep non-writable, I'm seeing evidence in syslog of what's going on. Every 30 seconds, I see this:

Apr 28 11:08:48 socrates systemd-sleep[8831]: Failed to open /sys/power/state: Permission denied

I'm also seeing other writes to syslog every 30 seconds related to whatever is trying to put the system to sleep, starting with:

Apr 28 11:31:10 socrates NetworkManager[825]: <info> sleep requested (sleeping: no enabled: yes)

After the "Permission denied" error, there are a bunch of messages from NetworkManager waking back up, named reloading its configuration, etc.

These writes to syslog only occur when I'm on the virual console, and stop when I switch back to the Lubuntu desktop.

Update: Issues mostly resolved by switching back to Upstart, as detailed here: https://wiki.ubuntu.com/SystemdForUpstartUsers

Still seeing this every 30 seconds in syslog:

Apr 28 12:45:51 socrates dbus[775]: [system] Activating service name='org.freedesktop.systemd1' (using servicehelper)

This is followed by anacron running. This only happens when using the virtual console.

Update: If I make /sys/power/sleep writable, problem resumes, even after switching from systemd to upstart.

Update: Bug reported. https://bugs.launchpad.net/ubuntu/+source/dbus/+bug/1450013

Update: Problem completely solved by setting "HandleLidSwitch=ignore" in /etc/systemd/logind.conf.


Remove orphan-language-icon from menu bar

So with Gunnar's suggestion, I realize I can use following command to reset keyboard input setting.

gsettings set org.gnome.desktop.input-sources sources "[('xkb', 'us'), ('ibus', 'libbopomofo')]"

where string (within double-quote) are the input methods I want to keep.

Again, thanks Gunnar.


I don't think you know what you are talking about, because you describe something that is very different from how this technology was initially supposed to work.

Turbo Boost, glitter for standard clock speed

Turbo boost will not automatically overclock your CPU if both of your cores are already constantly at 80-100% load. Some later variations (depending on the CPU model) will boost under full load for very short intervals to then cool down with negligible long term performance impact. All in all you won't achieve a constant overclocking boost, because as I said, this is not how this feature is designed.

Themal design and cooling

Also one should first provide a better cooling solution before trying to mess with the  thermal thresholds that the system designers and engineers carefully defined during the product development. In general, you should never even think about modifying temperature limit for laptops (as the other question initially asked for).

Possible traps: the wrong monitoring tool

There was some confusion when Turbo Boost was introduced, because some tools that monitored the frequency and/or changed governors interfered with Turbo Boost and prevented it from properly working.

  Some hardware monitoring applications or panel-applets that allow to display or modify processor clock speeds bring disorder into the fragile arrangement, hence one should stay away from these when in doubt [if turbo boost is working correctly].

Original citation in German:

  Einige Hardware-Monitoring-Programme oder Panel-Applets zur Anzeige
  oder Konfiguration der Prozessor-Taktstufen bringen dies fragile
  Gefüge aber durcheinander, daher lässt man von diesen im Zweifel
  besser die Finger.

Heise: Turbo Boost unter Linux (probably better known for its English site The H)

Conlusion

While you can try the link (which is not about Turbo Boost but P-States, which is more technical and about power management) posted in an answer on the other question, you have to realize Turbo Boost is not about constant overclocking under constant heavy load, but improving performance for short bursts, which won't reduce workloads like video editing significantly.

Also you have to realize that marketing (deliberately conf-)uses higher specs that are only achieved in certain boost conditions (or sometimes never, like on some ultrabooks), instead of the standard clock speeds. (This is not very new, the Pentium 4 processors have been known for clocking lower due to overheating, it just got more complicated and made its way to graphics cards, tablet and smartphone processors.)

Simply speaking, if you bought a product with a 2 core CPU at a clock speed of 2.4 GHz and thought you get a 4 core CPU with 3 GHz clock speed or something in between, then realize that you have been fooled or the one who sold you the product didn't know any better.


Sounds the same as this problem: Wireless lost ability to use 5GHz (PCE-AC68)

The answer there says:

  I had the same problem as you, and I just found the problem. The 5Ghz
  network was set to choose automatically the channel, one day it
  changed to a channel with an high number and my card wasn't able to
  find the network anymore.

  So just check in your router if the network has an high number channel
  and change it back to a lower one (now I'm with channel 40 and it's
  working fine) and check if you can now find again the network.

  I've also open a bug report in the bcmwl package page, if this is the
  problem click on the "This bug affect you" button in this page

  I hope I have helped you.


Unable to Expand Ubuntu Partition using Gparted Live USB

When trying to resize internal disk linux partition ALWAYS use a LiveCD/USB, because all internal partitions must be unmounted (not blocked by the installed Ubuntu). You are doing that, which is very good.
In GParted, right-click on the swap partition and choose swapoff. You can't resize or move it if it's not off (unused). Then move it out of the way, reposition it before or after the ext partitions.
When trying to merge (any) partitions, make sure they are of the same kind: both either primary, or both logical. To make sure you won't run into trouble, i suggest you first delete one of the two ext partitions, and expand the other to encompass the unformatted space resulted from the deletion.


WinZip through Wine
In case we do not have access to a Windows or OSX box where WinZip is installed and running we can also install WinZip through Wine where it is rated Gold or Platinum. ZIPX is supported from version 12.1.
My own tests on Wine (Ubuntu 12.04) running WinZIP 15.5 and the most recent version 17.5 lets you compress, and extract ZIPX archives but of course Ubuntu permissions will not be preserved by doing so.
For some files (here tested with PNG images) we may still be able to extract them with the Ubuntu Archive Manager, but on most of the files extraction will fail.
In case we need to extract ZIPX files more than once we will have to buy the full version but just a single extraction (or compression) will work just fine when running the free 45 day evaluation version.


mysqldump "Access denied" error on ubuntu with mariadb (login informations are correct)

With error "Access denied for user 'db_user-backups'@'localhosts'. You can connect to db and grant permission for user 'db_user-backups' with command example:

Connect to Mysql: mysql -u root -p:

GRANT ALL PRIVILEGES ON *.* TO db_user-backups@'localhosts' IDENTIFIED BY 'password' with grant option;

flush privileges;

After you can reconnect with mysqldump.


Can't add Online accounts in ubuntu 16.04

I have exactly the same problem trying to use the flickr plugin for Shotwell. Googling around I had no useful answer to this.

If I launch the account manager from terminal with sudo online-accounts-preferences I have indeed no errors.

Solution in my case: launch the synaptic package manager, search for "flickr", you will see an item "account-plugin-flickr", install that one and restart the application or the PC.

Depending what online account your are trying to install, a similar procedure should fix your problem.


There's nothing you preventing you from creating separate partitions for your data using gparted or the partitions tool in the Ubuntu/Elementary installer. You can't prevent yourself from overwriting a partition, but you can give it a helpful volume label so you know what each partition is. If you'd like applications on the other OS to not be able to access your data, you can use the "Encrypt my home folder" option when prompted by the OS installer - just keep in mind this also means if you ever forget your password, you won't be able to recover your data without the key provided during setup, so proceed with caution.


Dual boot problem Windows 8 & Ubuntu 12.04

Your Boot Repair output shows a GRUB configuration for Windows as on a BIOS-based computer, but you seem to be running in EFI mode. That's the root source of your problem. One solution is to create a manual GRUB stanza, like this:

menuentry "Windows 8" {
    insmod part_gpt
    insmod chain
    set root='(hd0,gpt2)'
    chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}

You can place this directly in your /boot/grub/grub.cfg file, but it will be temporary. A better long-term solution is to put that in /etc/grub.d/40_custom and then run update-grub. This will create a new entry that will (perhaps) work.

One complication is that you seem to be using Secure Boot. I'm not sure about the version of GRUB that ships with Ubuntu 12.04 (presumably 12.04.2, actually), but some versions of GRUB have problems launching Windows in EFI mode with Secure Boot active. Thus, the preceding solution might not work unless you disable Secure Boot. You'll need to rummage about in your firmware settings to find how to disable Secure Boot; the details vary greatly from one computer to another. Even then, launching Windows from GRUB seems to be hit-or-miss; what works on one computer fails on another.

An entirely different option is to install rEFInd, which supplements or replaces GRUB. This also might require you to disable Secure Boot; and if you don't, you'll need to enroll rEFInd's key the first time you reboot; see rEFInd's Secure Boot documentation for details. (I'm assuming that Ubuntu 12.04.2 has an updated version of shim that supports MOKs. If it doesn't, Secure Boot becomes even trickier, since you'll need to install a new version of shim.) Ideally, though, simply installing the rEFInd Debian package should get things working correctly, especially if you first disable Secure Boot.


Is there any way to go to the old switcher behavior?

Alt+` (the key above tab) does the same as hitting down and only requires one hand.


How can I temporarily disable my screen lock settings during video playback?

Totem has a setting for that at least in 14.04 under  Edit->Preferences->Display.


This database has nothing to do with MySQL or MariaDB. apt keeps an internal database of the packages that are available from the repositories it knows about. When you use apt update (or the older version apt-get update), apt checks the repositories for changes and updates that internal database.

In Ubuntu (in fact, in computing in general), there are a whole lot of databases in a whole lot of different shapes and forms. Relational databases like MySQL or MariaDB (or PostgreSQL, or Oracle, or...) are one type that's fairly prominent, but they're far from the only type.


How to uninstall OpenBLAS on Ubuntu14.04

Within the source directory for OpenBLAS you may be able to make an uninstall file using the same Makefile that came with OpenBLAS:

  sudo make unistall

And then you would just run that uninstall.

This is somewhat similar to the answers here: If I build a package from source how can I uninstall or remove completely?


Grub does not see second operating system

I got it working by accident. I installed all updates, which apparently fixed it. I did it because not all (german) language files were installed, so some applications were still in english. Probably there were also other parts missing, which caused my problem.

As far as I know those parts are missing so Lubuntu still fits on a single disk.


dnsmasq sometimes resolves things, sometimes it doesn't

I have this inside my internal network, and I solved it by disabling the local forwarding nameserver controlled by NetworkManager (dnsmasq).

To do that, you need to edit /etc/NetworkManager/NetworkManager.conf and comment out the “dns=dnsmasq” line in the "[main]" section.

Open a terminal, and run

sudo nano /etc/NetworkManager/NetworkManager.conf

Then make sure that the line

  dns=dnsmasq

is commented out like this:

  #dns=dnsmasq

Now, restart network-manager with the following command, and everything should work properly.

  sudo restart network-manager


Can I assign custom keyboard shortcuts to custom (non-default) unity lenses?

It appears that lens package is installing using a pre-existing shortcut, a, why I don't know. (a bug should be filed, at least for 12.04

To check & edit, make sure you use something not in use, here I used l

sudo -H gedit /usr/share/unity/lenses/recoll/recoll.lens

change Shortcut=a to a letter of your choice

Noting again that this is what I found on 12.04


HDMI is not displayed in the "Sound" settings on Ubuntu 14.04 LTS

I follow the below workaround whenever I connect laptop to a TV:

Connect HDMI cable to TV and switch on the TV.
Run the below command on a console (It worked without sudo)

pulseaudio -k

Open Sound settings, you should see "HDMI/Display Port" entry under Output tab.


How to install hipchat on ubuntu 14.04 32 bit OS?

I believe they do not support 32 bit OS for Ubuntu.

But you can chat online using their web platform:

https://www.hipchat.com/sign_in


Using ACL to control read and writes by specific groups

Make sure the user is in the correct groups with the

groups

command.


That file is not available anymore on Xenial and other Ubuntu versions more recent than Trusty (also in Wily is not present).

Since Matlab is a proprietary software you should report the error to their developers, so that they can update the package and make it compatible with the new versions of Ubuntu and Debian.

In the meanwhile you can probably manually install an old version for Trusty, but probably it will also break other packages and dependencies in your system.

EDIT: The Matlab version that you are using is 2010b, so many things have changes since then. I strongly suggest that you use a recent version of the program (maybe 2016a, since we are here), in order to maintain compatibility with the systems you are using. In details, that version R2010b supports officially only Ubuntu 9.10 and 10.04.


Why cant I find the programs I had on windows on ubuntu?

Point 1:
Ubuntu and Windows are different Operating system. The softwares that work on One operation system may or may not work on another operating system (OS).
Generally, If two OS can run and recognize same binary program/files, both of them can run that software. But, those files/programs need to be binary compatible. But, programs for Windows and Ubuntu's are not binari compatibles and hence they are different. So, You can't run your Windows programs on Ubuntu (except with the help of some emulation software such as WINE).
Point 2:
Even if You install another copy of Windows in another parititon in the same Computer, you will not find your installed programs (except the default programs automatically installed by Windows). Because, You have done installation in a new partition. Also, installing Windows again on the same drive will not help.
So, It is clear, If you install Ubuntu, you can't find the Windows programs in it. If you installed in another partition (other than Windows), You can still boot on Windows. If you installed Ubuntu on the same partition as Windows, You replaced Windows and you will never find those old Windows program.

See these links to get an idea about OSes, Difference between Windows and Ubuntu.

Operating system
Ubuntu - Operation System
Windows - Operation System

And also see these to get a general introduction to Ubuntu and Linux:

Ubuntu Linux Resources
Linux Newbie Guide

See these links to get help on Using both Windows and Ubuntu on the same computer:

How to dual boot with Windows 7 on an Ubuntu-only system?
Dual boot Ubuntu and Windows 7


Qemu: dual display with VGA passthrough AND virtual display device?

My question had some poor assumptions.

The code 43 is NVidia's way of preventing you from emulating CUDA performance with commodity hardware.
I haven't yet found a way to run QXL/Spice and a passed-through GPU, but xfreerdp has done a pretty good job of meeting my needs.

EDIT:

Looking-glass doesn't precisely answer the question, but it solves the underlying problem nearly perfectly  -- providing GPU-accelerated VM graphics on the host desktop.  In alpha as of Dec 2017, but appears stable enough for everyday use on a single display.


18.04 Cannot install driver for D-Link DWA-172

You can see in the README that the correct command to install this driver using dkms is
sudo make dkms_install

https://github.com/aircrack-ng/rtl8812au#installation-of-driver


cpu power mode occasionally changing to performance

Install this,

CPU frequency scaling indicator, and set to lowest or desire frequency.


Why is my system only looking in /snap for binaries?

Your shell doesn't constantly search for binaries once it's found one-- to do so would be a waste of time in most cases. It caches the result. That bites hard if you end up removing a binary after it's already cached where it found it, though.
You can fix this by simply starting a new shell, or clearing the cache in an existing shell with hash -r.


Monitor won't display at native resolution.

Try setting a lower frequency and/or updating drivers. I've used to have this problem with old (up to this July) drivers and the workaround was to set an external monitor to 60 Hz (by default it was set up to 75 Hz). While lowering resolution as you do is not a pleasant solution, lowering frequency usually makes no visible difference unless you use a CRT display.


I s there an equivalent to the Netspeed Applet?

I'm using netspeed applet on Ubuntu 11.10 with Unity. The real fact is that even though using Unity I run the gnome-panel. I only have the bottom-panel with the window list and netspeed applet. So I'm using the global Unity menu-bar (the default with indicators,...) plus the old gnome-panel for bottom-panel, where I can continue using previous applets such as netspeed:

i   netspeed                        - Traffic monitor applet for GNOME
i   gnome-panel                     - launcher and docking facility for GNOME

I can't live without bottom-bar with window list.

NOTICE: The way to open "properties" menú on gnome-panel --to add applets, configure panel, etc--  is a little tricky (at least in my case). I have to press ALT+Left_Mouse_Btn+Right_Mouse_Btn.

Note: I configure gnome-panel as startup application in Unity to load it each time Unity starts.

Hope this helps!
Gerard.


If you want to combine the two hard drives into one single volume it is LVM (Logical Volume Management) you are looking for.

Check out this post: LVM setup advice

Lets say you have 2 SSD drives with 250GB each. You can then create one volume that is 500GB large and partition it as you wish.

You can also read more about LVM here: https://wiki.ubuntu.com/Lvm


update-manager crashes when I upgrade to 18.04

Did you do a distribution upgrade first ($ sudo apt-get dist-upgrade) and do you have update-manager-core installed. The dist-upgrade will not upgrade you to a new version (16 to 18). It manages the more complicated upgrades in your current version where things may have changed in the background. Maybe then you can upgrade to a new version.


Grab a field without a fixed position via awk

In either list format you should be able to just search it. I'm not sure what you're trying to do past simple lookups but thanks to their relative formats, MAC addresses are always going to contain :, IPs . and netbios should be clean of both.

What doesn't grep '1.2.3.4' mylist do?

And you could be really bashy about this and do something like:

source <(grep '1.2.3.4' mylist)
echo "$netbios $ip"


Is it Possible to know when files were deleted?

If by delete, you mean "moved to the trash bin", yes and no. You'll always know who moved the file to the trash, because it'll end up in their trash bin. You won't know when it was moved to the trash, because move operations don't update the file's timestamp.

If by delete, you mean rm or "Empty trash", no. The ext2/3/4 file systems don't intend undeletion as a feature, and so don't store meta info like you're looking for.

Of course, if you perform regular backups, you can extrapolate a time window for the deletion.


Samba share unavailable on Windows 10 after copying file

For guests access.

Give read/write permissions:

sudo chmod -R +rwx /var/lib/samba/usershares/storage

Change owner:

sudo chown -R nobody:nogroup /var/lib/samba/usershares/storage

Make a backup of your /etc/samba/smb.conf file then modify your configuration file putting there the lines if not present:

[global]
    guest account = nobody
    usershare allow guests = Yes

[storage]
  path = /var/lib/samba/usershares/storage
  comment = sambashare on Ubuntu
  directory mask = 0755
  create mode = 0777
  read only = no
  available = yes
  browseable = yes
  writable = yes
  guest ok = yes
  public = yes
  locking = no
  strict locking = no


Upgrade 12.04 to 12.10 not showing up with update manager

Maybe you should have a look in the settings section, it has a drop down box that asked when you want to be notified about distro upgrades, set it to "for any new version" it might be set default to "for long-term support versions".

Hope this helps you.


Automatic Mute Speakers When Headphones are Unplugged

Just had the same problem and made a small script for it, really late but I thought I'd share it anyway

in /etc/acpi/events/ make a file headphone-plug with contents:

event=jack/headphone
action=/usr/local/bin/headphone-plug.sh %e

this will run the script in 'action' when a plug event occurs

create /usr/local/bin/headphone-plug.sh with content:

#!/bin/bash
case "$3" in
    unplug)
        su [USER] -c "DISPLAY=:0 xdotool key XF86AudioMute"
    ;;
esac

and make it executable.

It's a bit of a hack, as this will only work for a single user on a single x session. But it's enough for me


Execute permission while creating shell script

Not sure if I understand you correctly, but if you want a script file that sets its own execution permission, you have to include this command:

chmod +x -- "$0"

The shell variable $0 always holds the name of the running script. Note the double quotes and double dash to protect misinterpretation of special file names.

However, to launch that script the first time, you need to call the interpreter with the script file as argument, like this:

bash example.sh


Difference between `grep '\' coco.txt` and `grep 'hi' coco.txt`

In grep, \< stands for beginning of word and \> stands for end of word.

From man grep:

The Backslash Character and Special Expressions
   The symbols \< and \>  respectively  match  the  empty  string  at  the
   beginning and end of a word.  The symbol \b matches the empty string at
   the edge of a word, and \B matches the empty string provided  it's  not
   at the edge of a word.  The symbol \w is a synonym for [_[:alnum:]] and
   \W is a synonym for [^_[:alnum:]].

So, grep '\<hi\>' will match any line containing the word hi and grep 'hi' will match any line containing the sequence of characters hi:

$ grep '\<hi\>' <<< "hi"
hi
$ grep '\<hi\>' <<< "chimes"
$ # no output since no match
$ grep '\<hi\>' <<< "hi-fi"
hi-fi
$ grep '\<hi\>' <<< "high voltage"
$ # no output since no match


How to escape backticks in a .bash_aliases file?

yes, the work-around of:
root:~#
root:~# alias clean
alias clean='docker rm $(docker ps -aq)'
root:~#

works.


Is it really possible to run Linux applications within Windows using Wubi?

Technically you are not running Wubi inside of Windows, what Wubi does is install Ubuntu as a "virtual drive" and creates a "loopback" when you boot, this allows you to choose between Windows, or Ubuntu.

So in short your answer is no.


How can I add new window to my project in using quickly?

The command is quickly add dialog dialogname and needs ran from the app directory. Note, the word "Dialog" is automatically added to the dialog name.


How not to show Universal Access menu Icon in task bar in Ubuntu 18.04?

Edit: as of Ubuntu 19.10, the "Remove Accessibility" extension is not anymore included in the Ubuntu Software Center. Despite not being updated for some time, the extension can be installed from the Gnome Extensions website and also works in 19.10. See second answer.

Open Ubuntu Software Center, click search sign at the right upper corner of the window and type in the search field "Gnome shell extensions Remove Accessibility" phrase. You'll see the "Remove Accessibility" Gnome shell extension.

Install the extension and "Universal Access" icon has to disappear.


I agree with StarNamer's comment. The bad blocks are substituted by the firmware on the drive, so ideally the operating system doesn't know about the bad blocks (except through S.M.A.R.T.) The number of reallocated sectors does seem high to me for a disk as young as yours.

Disk throughput depends upon the size of the data reads and writes and its location on disk.

You may wish to Run the self-test in the main window above to see how it does.

It may be prudent to find tools that access S.M.A.R.T. under Windows and quote its findings should you resume the conversation with your vendor. That will show the remapped sectors. The S.M.A.R.T. data is information from the disk controller and therefore will be the same for Ubuntu and Windows.


How do I install Ubuntu on one drive and store data and programs on another?

This should be relatively simple to accomplish simply by analyzing an existing installation and adjusting accordingly. By mounting /home on a seperate drive or partition, the user data will be stored there. As far as programs go, it's pretty simple to determine where those are stored.

Consider this snippet:

me@zippy-64bit:~$ which ls
/bin/ls
me@zippy-64bit:~$ which fdisk
/sbin/fdisk
me@zippy-64bit:~$

As you can see the majority of your programs are by default installed in /bin/ and /sbin

Placing the content of these directories on a separate drive or partition should be simple to do when booted from live media, and adjusting your fstab to mount the appropriate drive/partition at the desired location isn't difficult.

Personally, I prefer to have my programs on my SSD as launch speed is at least as important to me as boot speed.

You may be getting a grub rescue screen for a number of reasons which have likely already been answered here.


How to find out what device a file or folder is on?

You can use:

df /path/to/filename

It will show the path base mount point.


How to install Ubuntu and uninstall Windows 10 without losing my data,when I have already partitioned my PC?

No matter what you are going to do, you should back-up your data before you do it!

Yes you can. Its called dual boot and shouldn't be a problem (it is problematic if you install Windows after Ubuntu, but not the other way around)
I dont know for sure, but i think this would only work if you'd make another partition in C: (but you can do that with onboard tools or e.g. Gparted)
The safest and easiest approach of these imho is the first one.
But the safest and easiest way in general is to back up your data and nuke your harddrive, install Ubuntu and afterwards restore your data from the backup.
I guess your partitions are formated in ntfs, then yes, you need to format at least one partition as swap space and one in e.g. ext4 so that Ubuntu can run on it.

That being said i would suggest you just run the ubuntu installer and follow these instructions until 3. step, where you choose "something else".

Until you hit the install button no changes are made to the filesystem, so its fairly safe.

Then you have to figure out what corresponds to F: and nuke everything else (or whatever you dont need) to make room.

There are extensive internetguides on how to properly format a disk to put linux on it. And you should read them before trying to do this (and have a smartphone or another computer at hand to reference them while partitioning).

here is an example link where you could start your research

But the easiest solution by far is to just back the files up, let ubuntu do the partitioning for you and put them back onto your computer later.

If you want to keep Windows for dualboot, Ubuntu should recognize that there is already a system installed and install itself alongside it.

TL;DR make a backup!


Latex problems upgrading from 15.10 to 16.04

Look at the error more closely. You need to use

sudo apt-get install -f

to resolve any unmet dependencies. So try this then upgrade to 16.04.


kwin does have a DBUS interface, but it doesn't do what you're describing.

To take a look at the calls that are available to you, run qdbusviewer (which be available in your distro's repository), choose the Session Bus tab, and search for kwin in the search box. From there, choose org.kde.KWin on the left panel, and on the right panel, you'l see KWin -> org.kde.Kwin.

From there, you'll see methods like "killWindow", "nextDesktop", etc. Those are the methods KWin has exposed, but unfortunately I'm not seeing methods for actually doing things with individual windows from a list.


Apache server starts automatically. How to disable it?

Normally Apache server is not installed by default with Ubuntu. However, if it was installed somehow and you decided that you no longer need Apache server, you can completely remove it from the system using:
sudo apt purge apache2

If you need to temporarily disable Apache (without deleting it from the system), you can use:
sudo systemctl stop apache2.service
sudo systemctl disable apache2.service

So that later, if you decide to re-enable it, you can run:
sudo systemctl enable apache2.service
sudo systemctl start apache2.service

Information about the current run status of the Apache server can be obtained by:
systemctl status apache2.service


Arduino 1.6.6 Splash Appearing then immediatly Dissappearing on launching from UNITY

Dashes and dots (periods) in filenames, foldernames and paths confuse the UNITY launcher.

Here is the contents of arduino.desktop:

[Desktop Entry]
Type=Application
Name=Arduino IDE Atmel
GenericName=Integrated Development Environment
Comment=An IDE for Arduino-compatible electronics prototyping platforms
Exec=/home/benoit/arduino-1.6.6/arduino
Icon=/home/benoit/arduino-1.6.6/lib/arduino.png
Terminal=false
MimeType=text/x-arduino
Keywords=embedded electronics;electronics;avr;microcontroller;

Look at the Exec=PATH/arduino and Icon=PATH/arduino. They contain dashes and dots (periods) and this caused the problem.

The solution I found is to rename the folder which contains the extracted Arduino package in which among other files the arduino.desktop and executable arduino file reside. I did this by using a text editor, opening the arduino.desktop file and making the proper corrections to it to become like this:

[Desktop Entry]
Type=Application
Name=Arduino IDE Atmel
GenericName=Integrated Development Environment
Comment=An IDE for Arduino-compatible electronics prototyping platforms
Exec=/home/benoit/arduino/arduino
Icon=/home/benoit/arduino/lib/arduino.png
Terminal=false
MimeType=text/x-arduino
Keywords=embedded electronics;electronics;avr;microcontroller;

Now the Exec=PATH/arduino and Icon=PATH/arduino do not contain dashes and dots (periods) anymore.

I also made sure arduino.desktop is allowed to be executed as program via right clicking its name, choosing 'properties', then 'permissions' and setting the option 'Allow executing file as program.' below.

This solved my own problem.


overheating problem in samsung np300e 4a

Install TLP this will fix the heating issue.

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

Once installed, type

sudo tlp bat

This will make a huge difference in temperature.


Lexmark provides a driver, and the way to install it for the x2650.  You can download the file, and follow the instructions given to install it.  The file can be downloaded Here

There's no supported driver for 64-bit Ubuntu versions, and Ubuntu 13.04 is not listed, but I would go ahead and try the driver anyway.


I will take a guess here, taking the OP's remark as granted that the problem can be reverted by changing swappiness back to 60.

The Linux kernel will usually overcommit memory availability. If you reduce swappiness, you tell it to use the swap space to a lesser extent for RAM which programs need, as balanced against using the RAM for cached file data. If you set swappiness to 0, you request that your swap space should not be used at all.

However, even with a swappiness of 0, the Linux kernel will change its behaviour once it estimates that it is close to an "out of memory" condition. Before that, it will simply not cache any file data in RAM. But once it figures that it is running out of memory, it will change its strategy and use any available swap area despite the swappiness setting (unless certain special conditions apply).

You report that you see this phenomenon during boot. This is a situation where many processes are started in parallel, start to analyse their config, allocate memory on demand, etc.

While changing swappiness from 60 tp 30 does not change the total space for execution, maybe it does change the amount of memory which the kernel reports to be available. Or it could change the behaviour regarding the point in time when the OOM condition is determined.

So if you happen to have only just about enough RAM and swap for everything that is going to start, the effect you see might be an unfortunate behaviour when the kernel transitions from overreporting to actually providing memeory, or when it starts to believe that an out of memory condition is becoming more likely. The code in vmscan.c for example (responsible for freeing memory in RAM) will abruptly change its behaviour depending on such drastic change of conditions.


Applications emitting desktop notifications freeze for some time

It turns out I somehow broke the autostart of the notification implementation. In Unity's case that's /usr/lib/x86_64-linux-gnu/notify-osd. That thing should be running. If it's not, the applications freeze.

So the solution is to add that executable to the startup applications.

There is some useful additional information here: https://wiki.archlinux.org/index.php/Desktop_notifications


After running this command switch immediately to  the tty where the screen is black, and after 5 seconds the screen should show up.

sleep 5 && xrandr -d :0 --output LVDS --auto

The xrandr command will turn on your main screen. It only seems to work if you're currently on the tty where your display manager is run, hence the sleep to give you some time to be able to switch.


yes you can... i found out that the sdcard is already mounted so all i had to do was bind it to the home folder. i did this with adb so connect your phone via usb and type :

$adb shell
#su - phablet
$sudo mkdir ~/Mount
$sudo mount --bind /userdata/media/0 ~/Mount
$sudo chmod 777 ~/Mount

and now your content are visible from the file manager in ubuntu touch. you can add it to fstab to make it mount your files automatically at boot


What is the default username and password for Ubuntu 12.04 via Startup Disk Creator?

Try your ubuntu username and password in which you created the .iso


LibreOffice Writer runs slow when openning huge 1000-page docx or odt file

There are a memory settings buried deep in the menu structure of LibreOffice which you might wish to experiment with at your own risk.

Specifically, in Options → LibreOffice → Advanced, click Open Expert Configuration; in the dialog, navigate to org.openoffice.Office.Common/Cache.

Then in the search box enter org.openoffice.Office.Common/Cache to navigate to the screen below:

after which you will be able to adjust the settings. Note that these values are in bytes.

LibreOffice themselves say that

  There's no "acceptable" values, only trial and error may help you. Or
  may not: the settings control very specific area in memory management.
  In most aspects, LibreOffice doesn't need any adjustments to just
  consume all available

Reference

Adding more memory may well be the best option in this case.

Alternatively if changing the memory settings in LibreOffice has no effect, it may be necessary (with v16.04) to consider the size of your swap partition.

the table below may give some guidance here:

For your 8Gb Ram it recommends a swap size (without hibernation) of 3Gb and if you are using hibernation 11Gb.

2nd Reference - swap size