Using conky as screensaver on dual monitors

I figured out my problem. I needed to comment out the following line in my conky config:

own_window_type = 'normal'

Once I did this, my lock screen shows the clock (on one of my screens).

I'm including links to my config file and lua script if anyone is interested:
.conkyrc_screensaver
.conky/clock_rings_screensaver.lua


Problem while Dual booting windows 8 pro with Ubuntu 13.10

Try to install grub on your / partition by running these commands on terminal(Ubuntu live disk),

sudo mount /dev/sda7 /mnt
sudo grub-install --root-directory=/mnt /dev/sda

It will install grub on your root /dev/sda7 partition.


WIFI not working on hp15 ab522tx machine

You can try changing to a newer kernel. Either by manually downloading and installing the .deb files or by using a gui tool.

http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.12/

Download depending upon your OS type i.e (64-bit/amd64 or 32-bit/i386):

linux-headers-4.12.0-xxxxxx_all.deb
linux-headers-4.12.0-xxx-generic(/lowlatency)_xxx_amd64(/i386).deb
linux-image-4.12.0-xxx-generic(/lowlatency)_xxx_amd64(/i386).deb

Install by the following command

sudo dpkg -i *.deb

This will install the latest kernel files. Restart ubuntu for changes to take effect.


14.04 Login incorrect ('Retry' placeholder in password field)

The problem was a broken package, repaired it through recovery mode -> repair broken packages.


Shortcut to change Launcher 'Hide' setting

You can run

gconftool-2 --type int --set "/apps/compiz-1/plugins/unityshell/screen0/options/launcher_hide_mode" 2

to set the launcher hide mode to "Dodge Windows", and

gconftool-2 --type int --set "/apps/compiz-1/plugins/unityshell/screen0/options/launcher_hide_mode" 0

to set it to never hide.

The mode numbers are:

0 - Never
1 - Autohide
2 - Dodge Windows
3 - Dodge Active Window

You can make this a switch by just calling (the value must be 2 or 0 before):

gconftool-2 --type int --set "/apps/compiz-1/plugins/unityshell/screen0/options/launcher_hide_mode" $((2 - $(gconftool-2 --get "/apps/compiz-1/plugins/unityshell/screen0/options/launcher_hide_mode")))

You then would create a new keybinding (Alt + F2 → gnome-keybinding-properties) with the command being:

/bin/bash -c "gconftool-2 --type int --set "/apps/compiz-1/plugins/unityshell/screen0/options/launcher_hide_mode" $((2 - $(gconftool-2 --get "/apps/compiz-1/plugins/unityshell/screen0/options/launcher_hide_mode")))"


Rhythmbox Music Player is getting opened when arrow Keys(up, down, right, left) are tapped

To me, this appears to be that Sticky Keys has been turned on whether by accident or design.

To check, open System Settings > Universal Settings (on the bottom row) > Typing tab and if Sticky Keys is turned on, turn it off.

You can also see what is happening when you press the arrow keys by opening a terminal CtrlAltt and tping xev. This will open a dialogue which will show you what is happening when you press keys from which you may be able to establish the problem and a solution.


At install screen press F6 and select nomodeset and install Ubuntu as usual.
On first boot after install, press e on getting the GRUB bootloader.
Using arrow keys navigate to and delete quiet and splash and type the word nomodeset in their place
Press Ctrl+X to boot
You should now be able to login to your Ubuntu as usual.


error: package architecture (amd64) does not match system (i386)

The answer lies hidden in the documentation of dpkg:

dpkg --print-architecture

will show you the architecture dpkg is willing to install packages for.

If the architecture amd64 is not listed, an amd package will be refused, even if all else seems fine. Now you can try to add it with the following command:

dpkg --add-architecture amd64

and show it by using the command:

dpkg --print-foreign-architectures

On a system that was clearly installed as amd64, I had success in making dpkg trying to install the package. Of course further problems may be detected, such as failed dependencies.


How to create animated GIF images of a screencast?

Peek

Is a new application that lets you easily record GIF's from your screen.

Anyway, keep in mind that GIF's have a very limited color palette so it's not a very good idea to use them.

Since Ubuntu 18.10 you can install Peek directly.

sudo apt install peek

For older versions of Ubuntu, you can install the latest versions of Peek from its PPA.

sudo add-apt-repository ppa:peek-developers/stable
sudo apt update
sudo apt install peek

Find more information in the GitHub repo.


Replace Ubuntu 12.04 on my USB Pendrive with latest Ubuntu version

Single boot USB pendrive

A cloned live-only Ubuntu system on a USB pendrive is the basic and standard system.

An alternative is a persistent live Ubuntu system, where you can install program packages, that survive reboot, and where you can store data files.

Such systems can be installed [almost] automatically, if you use mkusb to install Ubuntu into the pendrive. The previous content of the USB pendrive will be lost during that process, but some fragments might be possible to recover. If you want to remove all traces, you should wipe the whole drive before installing.

A live-only system can also be cloned with the built-in tool (in Ubuntu), Disks alias gnome-disks, and in Ubuntu 16.04 LTS and newer versions, the Startup Disk Creator, and with Win32 Disk Imager in Windows.

Multiboot USB pendrive

If you have/want a multiboot USB pendrive with several live operating systems, you can use another tool, for example MultiBootUSB.


it seems to be firmware bug (aka its implementation according MS Windows implementation instead ACPI standard – how typical and probably unavoidable until Ubuntu bug #1 solved  :( ). Solution found here:

http://forum.ubuntu.ru/index.php?PHPSESSID=giddkgurjnrsora9pgnvlfokh1&topic=170290.21

…just add:

reboot=efi

as boot parameter to kernel – tried on the same machine (differs only regarding slower CPU) and reboots are fine then :)

Enjoy your reboots! :D

P.


By Default there is a Software in Ubuntu, Remmina Remote Desktop Client Use it


Software Center shows the name of the software in a list, but install button does not work

I just had this problem when installing Chrome, and I got it to work.  If I remember correctly the source of the problems was a lack of dependencies.

The command I ran was sudo apt-get install -f, I think.

I came upon the solution when installing something through the command line -- Ubuntu told me dependencies were missing and gave me the commands to fix it.  Hope this helps, though my problem wasn't exactly yours.


I was just trying to get this to work, and after looking around a bit I found out what was going wrong for me.

I am running xampp (lampp) 1.80 for Ubuntu 12.04.

open /opt/lampp/etc/httpd.conf

See Line 488

# Virtual hosts
# Include etc/extra/httpd-vhosts.conf

remove the "#" from the include.
A new install does not load the httpd-vhosts.conf out of the box.


Ok I still don't understand why but I found a way to have it working:

Quit Steam
Install ds4drv: sudo pip install ds4drv
Pair your controller via Bluetooth by holding both the share and Playstation button for 3 seconds
When it is paired, the touch area on the controller move the mouse.
Run the following command: sudo ds4drv --hidraw
Start Steam & enjoy


As @N0rbert helpfully pointed out, pip had installed a local version of duplicity which the nasuser account was picking up and pip show duplicity showed this:

/home/nasuser/.local/lib/python2.7/site-packages

To remove this I used:

pip uninstall duplicity

Then duplicity --version returned the same thing for both users.


How to open magnet links from firefox with deluge

as of firefox 3.6 network.protocol-handler.external.* seems to no longer work

in about:config

network.protocol-handler.expose.magnet -> false

and 'reset' all other values to do with magnet.

once you click a magnet link you will be prompted to choose an application, navigate to and select /usr/bin/deluge

You might also try

$ gconftool-2 -t string -s /desktop/gnome/url-handlers/magnet/command 'deluge "%s"'
$ gconftool-2 -t bool -s /desktop/gnome/url-handlers/magnet/needs_terminal false
$ gconftool-2 -t bool -s /desktop/gnome/url-handlers/magnet/enabled true


ubuntu doesn't recognize windows on installation

While I'm not aware of the subject, you probably have a dynamic disk. Please use a Live CD and while you are in Ubuntu, open up a terminal and type:

sudo fixparts /dev/sda


MainThread unfamiliar process suddenly showing up 18.04

It is a change in recent firefox version (79+).
There is a bug about this.


Actually, I think I fixed the problem.  I was able to manually traverse the dependency tree
sudo dpkg --remove --force-remove-reinstreq cuda
sudo dpkg --remove --force-remove-reinstreq cuda-11-0
sudo dpkg --remove --force-remove-reinstreq cuda-runtime-11-0
sudo dpkg --remove --force-remove-reinstreq cuda-demo-suite-11-0
sudo dpkg --remove --force-remove-reinstreq nvidia-driver-450
sudo dpkg --remove --force-remove-reinstreq cuda-drivers-450
sudo dpkg --remove --force-remove-reinstreq nvidia-driver-450
sudo apt purge *nvidia*

So now I am able to remove all of the nvidia drivers. grrr


How do I solve Internet Time Sync Not Happening?

Done! Finally!
Done: timedatectl set-local-rtc 1 --adjust-system-clock
Also check (as was known) timedtectl shows us that I do use local time zone; then, rebooted. Checked and Windows time keeps fine. Up to Mate back again. Works!
Anyhow, appreciate the post from the following blog.
Appreciate you all who thought on helping out! See ya!


ExpressVPN disconnects the entire wired connection upon disconnecting

I have Ubuntu 20.04 and faced same problem
this solution worked for me:

Edit NetworkManager.conf sudo nano /etc/NetworkManager/NetworkManager.conf change managed=false to managed=true
Restart network manager sudo service network-manager restart

Reference


To reduce the size of your mp4 you have two good choices with FFmpeg:

Experiment with Constant Rate Factor (CRF) settings to find a match between video output size and video quality
Experiment with the set bitrate of your choice and use a 2 pass encode.

Details of both below:
1. Resize using FFmpeg's Constant Rate Factor (CRF) option:
In FFmpeg the CRF settings vary from 0-51 with 0 being lossless and 51 being shockingly poor quality. The default is 23 and you need to find the 'sweet spot' for your particular video of file size and video quality with some experimentation.
A sample command-line would be:
ffmpeg -i input.mp4 \
       -c:v libx264 -preset slow -crf 22 \
       -c:a copy \
       output.mp4

Note that in this command-line the video is re-encoded and the audio is simply copied across. Things to consider:

If the size is still too big and the video quality is still acceptable you would try -crf 24 and so on (incrementally increasing the crf integer) until you find an acceptable compromise between video quality and file size.
If the video quality is too poor you would try crf 20 and so on (incrementally decreasing the crf integer) until you find an acceptable compromise between video quality and file size.

2. Resize using FFmpeg's 'set bitrate' + '2 pass encode' options:
Another choice, which arguably will not produce as good results as the CRF example is to use the set bitrate of your choice and use a 2 pass encode. The following example of this is a single command:
ffmpeg -y -i input.mp4 \
       -c:v libx264 -preset slow -b:v 1000k -pass 1 \
       -c:a copy -f mp4 /dev/null && \
ffmpeg -i input.mp4 \
       -c:v libx264 -preset slow -b:v 1000k -pass 2 \
       -c:a copy \
       output.mp4

Again in this example the video is re-encoded and the audio is simply copied over. Things to consider:

Video still too big? Decrease the bitrate...
Quality too poor? Increase the bitrate...

Keep doing this until you find an acceptable compromise between video quality and file size.
References:

FFmpeg and H.264 Encoding Guide : FFmpeg's canonical guide to encoding to H.264


Not able to run commands over SSH (using Zsh)

Ctrl-J is the keyboard mapping for Linefeed. When you map ctrl-C to ctrl-J, it means that it will interrupt the command any time you push the return key over ssh, which is basically right when you run the command.

Try mapping interrupt to a different hotkey so that it doesn't overlap with another common key combination.


Ubuntu 16.04: Chrome login expires after every roboot

Perhaps your Google account has 2-step verification enabled, and it's messing up with your app login? Is it the same when you're just restarting Chrome? Or does it happens only when you reboot?


How can I make My external hard drive writable in ubuntu 18.04?

I've found this answer https://askubuntu.com/a/958491/830248 helpful to automatically mount other partitions in Ubuntu and to make the partitions writable.

I have Windows 10 and Ubuntu 18.04 on another partition of the same drive. If I hibernate Windows, or power-off the PC while Windows is booting, or Windows update pending, Windows fast startup feature may also cause this problem (as @Morbius1 pointed in a comment), then I cannot modify any Windows partition in Ubuntu. So please make sure you properly shut down Windows before booting Ubuntu.


Ubuntu server machine doesn't seem to be discoverable on network from another Linux machine

For Linux-to-Linux host discovery without the use of any Windows-specific adjustments made to smb.conf you need to install the following package on your Ubuntu server:

sudo apt install avahi-daemon

Ubuntu enabled the multicast dns register option in the version of samba in 18.04 which will "announce" the server to the network but it will only work if avahi-daemon is installed on the server.

The avahi-daemon package should already be installed on all your Linux clients and its equivalent has been part of macOS for years.


Grub Bootloader cause touchpad and trackpoint not working

Problem solved.

I edit the grub part as mentioned here:

Touchpad is not recognized

and here

Touchpad under 16.04 not working

And get positive result, the touchpad and trackpoint is detected and working more often after system boot. If it not, i found the workaround it is by put the computer to sleep, and repeat as suggested here:
https://www.sevenforums.com/hardware-devices/329195-touchpad-trackpad-inoperable-after-sleep-post3270196.html?s=35750b7293ab81e52bcb45428de94cec#post3270196

Problem solved :)). Thanks.

My Laptop:
Thinkpad x120e
AMD E350, Rodeon 6310
RAM 4 GB
SSD Evo 850 256 GB
Dual Boot:
Windows 10 64 bit
Ubuntu Mate 16.04 LTS


mp3 quality bad when running on virtualbox

Audio decoding and playback is quite a demanding job for any OS. Therefore you indeed may experience issues when doing so in a virtual machine, even more so if your hardware is at the lower end.

For a better performance you should try to give your VM more ressources such as memory, or CPU cores.

Please note that

you should leave enough memory for the host OS to run
if you assign all host CPU cores to a virtual machine you should also add an execution cap to avoid issues on the host.


Scopes are normally activated by DBus, which makes them a bit trickier to debug. But at the same time they’re normal processes and can be run manually so that any warnings or debug statements are easily visible.

The recommendation is to start your scope manually from the command line and use the traditional debugging tools, such as gdb, valgrind, strace etc. Since scopes use DBus for internal IPC, a DBus monitor tool (such as Bustle) can be handy if you suspect any problems in this area.

You can also use the libunity-tool debugger, simply executing it's GUI from the command line libunity-tool -g. Just execute your scope manually or from the Dash, find the DBus path in the initial drop-down box, submit a search query and watch the results.


How to detect Bluetooth, without rebooting

You should check to see if the USB bluetooth kernel module (driver) is loaded.

lsmod | grep btusb

If it doesn't return anything, then you need to load the kernel module with:

sudo modprobe btusb


Where are the CD label graphics and labels for the current release?

Here is a link to the official images on the Ubuntu wiki.


Krusader is a dual-window file manager for KDE which was inspired by other great file managers like Midnight Commander oder Total Commander on MS Windows Systems.

You can queue file copy/move actions without any problems - just select the files you want to copy, press first F5 and then F2 right afterwards to put the command in a queue.
Moving files functions accordingly by pressing F6 and F2 afterwards.

You can install Krusader by opening a terminal

Ctrl+Alt+T

and typing

sudo apt-get install krusader

I hope you like it - enjoy! :)


What is a repository key under Ubuntu and how do they work?

I found a nice explanation from Ubuntu Community Help Wiki.

What are Repositories?

  "Authentication keys" are usually obtained from the maintainer of the
  software repository. The maintainer will often place a copy of the
  authentication key on a public key server such as www.keyserver.net.
  The key can then be retrieved using the command.

Apt Authentication

  Apt-get package management uses public key cryptography to
  authenticate downloaded packages.

  Debian does an excellent job of explaining Secure apt on this wiki
  page.

  What follows is a short summary of the key acquisition and
  verification process gleaned from Debian's wiki page.

  Basic Concepts Public key cryptography is based on pairs of keys, a
  public key and a private key. The public key is given out to the
  world; the private key must be kept a secret. Anyone possessing the
  public key can encrypt a message so that it can only be read by
  someone possessing the private key. It's also possible to use a
  private key to sign a file, not encrypt it. If a private key is used
  to sign a file, then anyone who has the public key can check that the
  file was signed by that key. No one who doesn't have the private key
  can forge such a signature.

  gpg (GNU Privacy Guard) is the tool used in secure apt to sign files
  and check their signatures.

  apt-key is a program that is used to manage a keyring of gpg keys for
  secure apt. The keyring is kept in the file /etc/apt/trusted.gpg
  (not to be confused with the related but not very interesting
  /etc/apt/trustdb.gpg). apt-key can be used to show the keys in the
  keyring, and to add or remove a key.

  Each time you add another apt repository to /etc/apt/sources.list,
  you'll also have to give apt its key if you want apt to trust it. Once
  you have obtained the key, you can validate it by checking the key's
  fingerprint and then signing this public key with your private key.
  You can then add the key to apt's keyring with apt-key add <key>


How to automount HPFS/NTFS (exFAT) 64GB microSD card on 10.04?

in /etc/fstab this seems to work ok

/dev/sdb1   /media/sd        exfat-fuse    defaults,nobootwait,user

but it breaks normal automounting of any non-exfat SD card or USB thumbdrive
either there's a way to make it conditional on being an SD card I'm missing or we have to wait for an update in the normal automounting


setting up hard drive partition for windows xp

Just click on the partition, and do only one task at once.

No special settings, just remember to set the ntfs drive boot flag after it is created.


What does simply giving path in shell script means?

vhost.sh: line 22: /home/udhay-dev/work/udhay/bin/rm-vhosts: Is a directory

Shows there is directory named rm-vhosts inside /home/udhay-dev/work/udhay/bin directory.

vhost.sh: line 23: /home/udhay-dev/work/udhay/bin/vhosts: Permission denied

Shows there is file named vhosts inside /home/udhay-dev/work/udhay/bin directory.

vhost.sh: line 24: /home/udhay-dev/work/udhay/bin/apache: Is a directory

Shows there is directory named apache inside /home/udhay-dev/work/udhay/bin directory.

vhost.sh is the script name.line xx means the line number in the script which throws the above message.


How to get Pinta not crashing and Zoom working on 19.10

First, as Pinta runs with Mono, get the latest version of the runtime.

# Check current Mono version
mono -V
#
sudo apt install gnupg ca-certificates
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
sudo apt update
#
# Check the new Mono version
mono -V

Install Pinta from official Ubuntu repo

sudo apt install pinta

Disable localization
Simply make the .desktop launcher to start Pinta with LANG='en_GB.UTF-8' envar

sed -i.BACKUP 's|Exec=pinta %F|Exec=sh -c "LANG='"'"'en_GB.UTF-8'"'"' /usr/bin/pinta %F"|g' /usr/share/applications/pinta.desktop
# Or edit the file and replace
# Exec=pinta %F #by:
# Exec=sh -c "LANG='en_GB.UTF-8' /usr/bin/pinta %F"


How to restrict users on accessing my machine through ssh and VNC?

As for VNC, either don't install it or don't tell people that you don't want accessing it the password.  You might also leave the option checked to prompt you for authorization when someone tries to use connect.

As for SSH, either don't give people an account, or configure sshd such that only you are allowed to use it.  See the man page


How to set Pycharm as favorite in toolbar in ubuntu 18.10

Solution - 1

Just run the pycharm and on the dock you'll see the pycharm icon then just right click on it and choose the Add to Favourites. I hope this makes clear to you

You'll See Something Like this:

Solution - 2

start your pycharm through command-line like this ./pycharm.sh
Goto and select Tools -> Create Desktop Entry

Solution - 3

If these solutions are not working then try to install pycharm from snap store it has both community and professional edition in case you have license key so that your problem will be completely solved. In order to install pycharm using snap execute the commands

For Community Edition:

sudo snap install pycharm-community --classic

For Professional Edition

sudo snap install pycharm-professional --classic

Happy Ubuntu!


Try this to fix the issue:

$ sudo chown -R $USER $HOME/.composer

Good Luck


How to enable keyboard when yoga pad 2 is folded as a tablet?

You must disable the HID Sensor collection under Device Manager --> Sensors for this to work. I'm not sure exactly what this device controls but so far I've found that it does control the keyboard on/off when in tablet mode. So no, this is not hardware based.


How do I control the fan when running kernel 3.7?

I figured out that that the problems I encountered were merely caused by an invisible  mechanical contamination of the fan with dust which happened to become critical just after I installed the new kernel. Since I cleaned it no new thermal errors occured and sensors shows that temperatures stay within their bounds. The pages http://www.thinkwiki.org/wiki/Problem_with_fan_noise and http://www.insidemylaptop.com/replace-cooling-fan-lenovo-thinkpad-t61-laptop/ helped me identifying and fixing the problem.


How to install Ubuntu in my pc when i don't have enough space in C:\ drive?

You can use the utility gparted within a live USB or CD install to resize your disk offline. It should come preinstalled however if it is not you can run 'sudo apt-get install gparted' to install it.

I happen to find the 'Universal USB Installer' the easiest to use on Windows whenever I try to make a bootable USB key.


This is a bug of Gnome Shell. The default shortcut will not work. But a new shortcut will work as usual.

Go to Keyboard > Shortcuts > Custom Shortcuts. Click on  + to add a new shortcut,

At the place of Name use Gnome terminal. In place of Command use the following string,

gnome-terminal --profile=Default --geometry=95x35+250+60

Now assign the key combination (Ctrl+Alt+T) on clicking on it. Afterwards the shortcut should work.


You can run rsnapshot as any user. You will need to copy the /etc/rsnapshot.conf file to somewhere that you can edit it eg ~/rsnapshot/ . You will need to change the lockfile directive as you most likely wont be able to write to write to it's default as a standard user.

lockfile        /home/patrick/rsnapshot/rsnapshot.pid

You then invoke rsnapshot thus

rsnapshot -c /home/patrick/rsnapshot/rsnapshot.conf hourly

Do you have access to cron as a standard user on the server ?


Ubuntu Version for Toshiba Satellite Model No.: C850-I0012

Your computer is powerful enough to support the standard version of Ubuntu 64 bit.

Test a liveDVD or liveUSB before installing.


Start python script with keyboard shortcut

It worked for me (ubuntu 18.04 with Gnome)

I wrote a simple script to move my mouse to a random point, just to see some action.

In keyboard settings you can see all gnome shortcuts, at the bottom there's a button to add your own shortcuts. So just add the full path to python and the script, give it a name and set the keys you want to trigger.

In my case:

/usr/bin/python3 /home/myuser/scripts/myscript

as:

Ctrl + F10


boot-repair it not detecting windows and hence no grub menu item for booting windows

EFI partitions are your friend, one per drive:

FAT32 format
About 200-400MB
"boot" flag

Windows usually handles this itself.

With *ubuntu, create/verify it manually on your disk in GParted in the Ubuntu Live USB/CD before entering the Ubuntu installer.

Not sure if that helps this specifically, but that's how I would have tried to avoid/solve this. It may help others with a similar problem.


How do I fix "missing operating system" when Windows partition was marked as biosgrub?

You should be able to solve an issue like this with Boot-Repair.  It will scan for "lost" operating systems and add them to GRUB.


What do I need for remotely accessing my Ubuntu 14.04 desktop?

This is a late reply but there is a way to use Vino without encryption which may benefit others.

install dconf-tools:

sudo apt-get install dconf-tools

start dconf-editor from the command line and go to org->gnome->desktop->remote-accessand toggle the require-encryption item to unchecked.

If desktop sharing was enabled prior to changing the setting, then execute the following from the command line:

gsettings set org.gnome.Vino require-encryption false

If desktop sharing was not enabled prior to changing the setting, then enable desktop sharing.


I also face same problem today. Here is how I solve this:
remove xdebug 3.0.1  first
sudo apt purge php-xdebug
sudo apt remove php-xdebug

Prerequisit:
sudo apt install php7.2-dev

Now clone xdebug repo and compiled:
git clone git://github.com/xdebug/xdebug.git
git checkout xdebug_2_9
phpize
./configure --enable-xdebug
sudo make install
sudo service apache2 restart

Now add following to your php.ini
zend_extension=xdebug.so
xdebug.remote_enable=1
xdebug.remote_port=9000

Best of luck!


"/etc/X11/X not executable" error when startx

you have to try this

 sudo dpkg-reconfigure -phigh xserver-xorg


If there is some trouble with installing downloaded files, try to get packages over the command line:

Open a new terminal.
Set this command: sudo apt-get install icedtea–7-plugin openjdk–7-jre

Done.


16.04 LTS server. Trying to use zfs but it is not auto mounting after reboot

First check to make sure it's really not mounted

sudo zfs get mounted

Then check if the mountpoint is set for the

sudo zfs get mountpoint storage

Then finally set the mountpoint

sudo zfs set mountpoint=/data data

Zfs works a bit differently than all the rest of the filesystems we are used to.

I think I created the pool without having a mountpoint already created with the same name.  I'm not sure if that's why it failed to automount.


Is it possible to access c drive (Windows installed) from kubuntu?

Two part answer.
Part #1
Although not recommended, you can directly get to files on your Windows C: drive by mounting that partition in Nautilus (by clicking on the disk icon in the Unity launcher). You need to properly prepare Windows for this to happen.
You'll need to do this in Windows:

open the Power control panel
click on change what the power buttons do
click on change options that are unavailable
uncheck fast start
close the Power control panel
open an administrative command prompt window
type powercfg /h off (turns off hibernation)
type chkdsk /f c:
approve that chkdsk runs at next boot time
reboot Windows

Part #2
A better way is to create a NTFS partition on your hard disk that can be shared in both Windows and Ubuntu. This NTFS partition can be auto-mounted in Ubuntu by editing /etc/fstab and adding lines similar to this:
# shared ntfs disk
UUID=0C0F93CE58153D42  /media/your_username/Shared_Data  ntfs-3g  defaults  0  0

changing the UUID to the correct value.


"Failed to spawn mysql main process: unable to execute: No such file or directory"

Check that mysql-server-5.1 package was uninstalled, seems it might persist after upgrade.  I had the same error and had to purge MySQL server 5.1 and 5.5 then re-install.

First make a backup of your /var/lib/mysql/ directory just to be safe.

sudo cp -R /var/lib/mysql/ ~/mysql

Next purge MySQL (this will remove php5-mysql and phpmyadmin as well as a number of other libraries so be prepared to re-install some items after this.

sudo apt-get purge mysql-server-5.1 mysql-common

Remove the folder /etc/mysql/ and it's contents

sudo rm /etc/mysql/ -R

Next check that your old database files are still in /var/lib/mysql/ if they are not then copy them back in to the folder then chown root:root

(only run these if the files are no longer there)

sudo mkdir /var/lib/mysql/
sudo chown root:root /var/lib/mysql/ -R
sudo cd ~/mysql/
sudo cp * /var/lib/mysql/ -R

Next install mysql server

sudo apt-get install mysql-server

Finally re-install any missing packages like phpmyadmin and php5-mysql.


What php version does ubuntu 14.04 officially support?

I guess I found an answer right after asking question and pasting exactly the title in the google of this question :)

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

So it is 5.5 as I understand.


You'll have to do some manual editing using nano, or your editor of choice:

sudo nano /etc/default/ntpdate

and change the NTPSERVERS="ntp.[your-server-here]"

If you restart your computer this change will be made active. If you're feeling impatient and don't want to wait for the server to automatically update you can do it manually:

sudo ntpdate-debian

I can't see a GUI option for this, but I could be wrong.


How to prevent Xubuntu 16.04.3 to hang on ESXi 6.5?

I've solved this problem (sort of) by migrating the VM to another ESXI (5.1) in the company and on this server it has not given me any problems so far. Thus, most probably the problem relies in ESXI 6.5.


The calendar shown on your screenshots is created by hijra-applet.

If you want to remove it - use

sudo apt-get remove hijra-applet
sudo apt-get autoremove


How does sources.list for Hirsute Hippo (21.04) looks like?

#deb cdrom:[Ubuntu 21.04 _Hirsute Hippo_ - Release amd64 (20210420)]/ hirsute main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ hirsute main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ hirsute main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ hirsute-updates main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ hirsute-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ hirsute universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ hirsute universe
deb http://us.archive.ubuntu.com/ubuntu/ hirsute-updates universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ hirsute-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ hirsute multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ hirsute multiverse
deb http://us.archive.ubuntu.com/ubuntu/ hirsute-updates multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ hirsute-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ hirsute-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ hirsute-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu hirsute partner
# deb-src http://archive.canonical.com/ubuntu hirsute partner

deb http://security.ubuntu.com/ubuntu hirsute-security main restricted
# deb-src http://security.ubuntu.com/ubuntu hirsute-security main restricted
deb http://security.ubuntu.com/ubuntu hirsute-security universe
# deb-src http://security.ubuntu.com/ubuntu hirsute-security universe
deb http://security.ubuntu.com/ubuntu hirsute-security multiverse
# deb-src http://security.ubuntu.com/ubuntu hirsute-security multiverse

# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.


I think the best way to display a file type is using this command:

file <filename>

If you want to list the types of all files in a directory, just use:

file *

For more details about the arguments, see:

man file


im looking for a gui based app to add encryption to select files for local and uploads to google drive

If you install gnupg and create a gpg key you can use thunar to add some custom actions to the right-mouse button menu (Add Encrypt GPG and Decrypt GPG actions to thunar)... e.g.

Encrypt files:

/usr/bin/xfce4-terminal -e "/usr/bin/gpg-zip -e -o %f.zip.gpg -r KEY %f"

where KEY = email_address from gpg-key

Decrypt files:

/usr/bin/xfce4-terminal -e "/usr/bin/gpg-zip -d %f"

see https://imgur.com/a/QY7Ax for example.


Acer Aspire One usb linux cannot find CD / try again

Ubuntu 12.04 LTS should be fine.

How much RAM?

Can you obtain/borrow a 'USB startup disk' created on Ubuntu 12.04 (or 12.10)? (eg. Ask a friend.)

Some of the alternate methods (on Windows, other Linux, earlier kernel, etc.) may have the boot device as a 'CD/DVD drive', so it will fail looking for a brand/model of CD/DVD matching your USB device. Alternatively, try burning a DVD (on Windows, other Linux, Mac).


Ubuntu MATE 16.04 Bluetooth sudden failure

Please update your question by adding output of lspci -knn | grep -i -A3 "wireless\|bluetooth\|network".

Also please add output of rfkill list.

If it shows Soft blocked: yes or Hard blocked: yes - try to unblock devices with rfkill unblock all.

Try to run Bluetooth Manager from System->Preferences->Hardware* (or blueman-manager command) and check adapter from Adapter->Preferences.

Also you can try to search around devices with Search button.


How to build application without sudo privileges?

If your users use

./configure --prefix=/home/user/opt/

Or for cmake projects

cmake -D CMAKE_INSTALL_PREFIX:PATH=/home/user/opt/ ../source/

This will install the program in that prefix (instead of the default /usr/local/) and your users should then be able to run the program like this:

/home/user/opt/bin/program

If you want them to be able to run the programs by simply using the name (without full path) you need add /home/user/opt/bin to the path environment variable, edit the users .profile and add the following line:

export PATH=/home/user/opt/bin:$PATH

Note that programs installed in this way will be private to the specific user, but it's a way to do it


Help installing vendor software in ubuntu

If you want to install matlab: it should be inside Ubuntu SoftWare center: https://apps.ubuntu.com/cat/applications/precise/matlab-support/

There is also a community faq on matlab.


How to make touch-screen scrolling work in Firefox Quantum?

The same solution for Firefox 50 and Ubuntu 16.xx still works for Firefox Quantum 57 and Ubuntu 17.10: Ubuntu 16 and touchscreen scrolling in FireFox

The solution is to launch firefox using:

env MOZ_USE_XINPUT2=1 firefox

You can make this permanent by modifying the launcher using the following:

sudo sed -i "s|Exec=|Exec=env MOZ_USE_XINPUT2=1 |g" /usr/share/applications/firefox.desktop

To undo this change, use:

sudo sed -i "s|Exec=env MOZ_USE_XINPUT2=1 |Exec=|g" /usr/share/applications/firefox.desktop

Comparing touch scrolling in Firefox Quantum, using this solution. with touch scrolling in Chrome:

Scrolling is one finger only; two finger scrolling causes the web page to zoom.  This is different from Chrome, where you can scroll using two fingers, but still pinch to zoom or un-zoom.
You can only scroll vertically or horizontally, depending on which direction your initial motion is in; this is different from Chrome, where you can scroll horizontally or vertically (or in circles) without lifting your finger(s).


I have the strangest display bug on Lubuntu 16.10. Can someone help me fix it? Screenshot and details attached

Ok, I figured it out. It was really dumb on my part to not double check the theme I was using. I figured it out after I deleted the GTK section from /home/sisir/.config/lxsession/LXDE/desktop.conf and logged back it.

Turns out lubuntu-dark-panel theme is broken and that was causing my problems. Really odd since it's a theme supplied by the Lubuntu folks, but whatever, it's fixed and life is happy again


How do I install Ubuntu with encrypted root, home, and swap partitions?

Ideally that setup would have /boot on another media along with the keyfiles in an encrypted partition. Very similar to this: http://wiki.ubuntu.org.cn/UbuntuHelp:FeistyLUKSTwoFormFactor

This is something I have been trying to make work on 12.04 LTS, which if finished would nicely solve your problem.


Transmission daemon: permission denied even if debian-transmission has root group

Try this:

mkdir /your_path/progress
mkdir /your_path/completed
sudo usermod -a -G debian-transmission your_user
chgrp debian-transmission /your_path/progress
chgrp debian-transmission /your_path/completed
chmod 770 /your_path/progress
chmod 770 /your_path/completed
sudo service transmission-daemon stop
sudo adduser your_user debian-transmission
sudo nano /etc/init.d/transmission-daemon
sudo chown your_user -R /var/lib/transmission-daemon/info/
sudo chown your_user -R /your_path/progress
sudo chown your_user -R /your_path/completed
sudo chown your_user -R /etc/transmission-daemon/settings.json

And change in the file:
    sudo nano /etc/transmission-daemon/settings.json

"rpc-whitelist": "127.0.0.1" > "rpc-whitelist": "*.*.*.*",
"rpc-password": "password" > "rpc-password": "your_password",
"download-dir": "/var/lib/transmission-daemon/downloads" > "download-dir": "/your_path/completed"
"incomplete-dir": "/var/lib/transmission-daemon/downloads" > "incomplete-dir": "/your_path/progress"

Just restart the daemon:

service transmission-daemon start


Keyboard and touchpad stopped working after messing up with drivers

See if you can get to a tty by pressing CTRL+ALT+F3 and if you can't, follow these instructions on how to boot into recovery mode This should allow access to run commands before the drivers even load.
Once you boot into recovery mode and after you run the command to switch to read-write mode, run the following command to reinstall synaptic:
sudo apt install --reinstall xserver-xorg-input-synaptics

As for your touchpad problem (after you reinstall synaptics), you can modify the parameters of your touchpad device by using xinput commands or by modifying your synaptics configuration file.
xinput list

should list your devices and each device will have an "id" number.
For example, your touchpad may be listed as device id=12.
Then, you would run:
xinput list-props 13

This will list available parameters. Each parameter will have a number in parenthesis followed by setting values like 1,1 or something like that. To change the setting values, you would run a command like this (to set device 13, parameter 282, to a value of 1):
xinput 13 282 1

Search for xinput and libinput commands and settings for more information. Also, this won't be persistent so you'll have to run this as a startup script or locate the default settings file.

EDIT:
If you need to connect to a network, you can startup NetworkManager:
sudo systemctl restart network-manager

and if you don't have a network setup, you can follow these instructions to set up a new wireless or ethernet connection.


How to increase touchpad speed beyond 'Accel Speed' maximum on Ubuntu 18.04

List all properties in your mouse/touchpad using xinput --list-props 11 (MY TOUCHPAD ID IS 11, yours will be different) and see the id of the property Device Accel Constant Deceleration. Now type the command xinput --set-prop 11 268 0.3 (MY TOUCHPAD DECELERATION PROPERTY ID IS 268, yours will be different) to decrease your mouse/touchpad deceleration.
Since it's pretty tedious to type these two commands everytime you Log in, put these two commands in the end of the /home/{your user name}/.bashrc file so that these get executed automatically whenever you Log in.
This solution has a minor error though. With time, you'll notice that your mouse/touchpad ID will often switch between a couple of values. You may also have seen that. Instead of using the device ID you can use its name as shown in --list-props. You may then use xinput --set-prop "SYNA8005:00 06CB:CD8C Touchpad" 268 0.3 instead of using the ID.


Any Recommendations, Guidelines around Preparing an Ubuntu 18.04 - cloud-init enabled on vSphere?

Here are some of the resources I found Answering my own question

https://ubuntu.com/engage/cloud-init-whitepaper
https://debconf17.debconf.org/talks/164/
https://cloudinit.readthedocs.io/en/latest/
https://events.linuxfoundation.org/wp-content/uploads/2017/12/Cloud-init-The-cross-cloud-magic-sauce_Smith_moser.pdf
https://www.youtube.com/watch?v=RHVhIWifVqU


What monitor do you have? May be it's monitor setting, that after 4 or 6 hours it turns black, because for example LG monitor (I don't remember which model) have an option, that is set by default to turn screen black after 4h - it's monitor power saving mode.


.vimrc does not appear when I 'ls', but I can open it when it type 'vim .vimrc' in same directory. why?

Any file that is preceded by . is a hidden file.
ls will not show hidden files by default.
You can use the -a(all flag) to display ALL files.
$ ls -a
.
..
00001ea3_medium.jpeg
video.mp4

Using the  -l (long listing flag) will display more information regarding the files:
$ ls -al
-rw-rw-r--   1 za   za             7275 Apr  7 00:59  .xboardrc
-rwxr-xr-x   1 za   za              131 Apr 20  2017  .xinputrc
-rwxr-xr-x   1 za   za             8099 Apr 19  2017  .xscreensaver
-rw-------   1 za   za             3569 Jun 13 03:51  .xsession-errors
-rw-------   1 za   za             3569 Jun 12 22:28  .xsession-errors.old

You can read more about the ls command by reading the manpage online or from terminal:
man ls

To filter the results you can use grep in combination with ls.
$ ls -al | grep vim
drwxr-xr-x   2 za   za             4096 May 15 02:53 .vim
-rwxr-xr-x   1 za   za            15049 May 25 21:51 .viminfo


tftp-hpa won't register tftpd-hpa service on Ubuntu 20.04

You missed d while installing the package, i.e., tftp-hpa is TFTP client while tftpd-hpa is the server.
If you run apt show tftp-hpa and read description, you'd see
Description: HPA's tftp client
 Trivial File Transfer Protocol (TFTP) is a file transfer protocol, mainly to
 serve boot images over the network to other machines (PXE).
 .
 tftp-hpa is an enhanced version of the BSD TFTP client and server. It
 possesses a number of bugfixes and enhancements over the original.
 .
 This package contains the client.

On the other hand, apt show tftpd-hpa would return
Description: HPA's tftp server
 Trivial File Transfer Protocol (TFTP) is a file transfer protocol, mainly to
 serve boot images over the network to other machines (PXE).
 .
 tftp-hpa is an enhanced version of the BSD TFTP client and server. It
 possesses a number of bugfixes and enhancements over the original.
 .
 This package contains the server.


It's not the right command, build-dep donwloads the build dependency required to compile the Nautilus source code but they are NOT Nautilus sources.

To get them type:

sudo apt-get source nautilus

It will download and extract nautilus in the same folder where you launched apt-get source.

On a 13.10 system I now have a nautilus-3.8.2 with a src subfolder.

Alternatively, you can get Nautilus source from the Ubuntu package page.


Settings Crash when trying to add Google Account

I was having the same problem. Tried other version (xubuntu 20.04, ubuntu 20.10..), and the problem persist.
The same problem is adding PPA.
The solution i found is disabling IPV6 and restart the PC.


Remapping both mouse and keyboard to a gamepad

Following Grumbel's answer, I tried xboxdrv solution with the support of his link and specially this page:

 1.  Install xboxdrv 0.8.2 from Ubuntu Software Center.

Install also uinput and joydev if needed.
I did it this way sudo modprobe uinput + sudo modprobe joydev

 2. Need to know the event of the gamepad:

Launch udevadm monitor --udev and then plug the game pad :

$ udevadm monitor --udev
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing

UDEV  [6722.377700] add      /devices/pci0000:00/0000:00:1d.3/usb5/5-1 (usb)
UDEV  [6722.383264] add      /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0 (usb)
UDEV  [6722.383333] add      /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/0003:046D:C218.0003 (hid)
UDEV  [6722.383389] add      /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/0003:046D:C218.0003/hidraw/hidraw1 (hidraw)
UDEV  [6722.387123] add      /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/input/input10 (input)
UDEV  [6722.399284] add      /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/input/input10/event8 (input)
UDEV  [6722.412128] add      /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/input/input10/js0 (input)

I conclude that my gamepad's event is /dev/input/event8

 3. Display names of every keys, axis, buttons of the gamepad.

The idea is to launch xboxdrv and test every buttons and note the result on paper.

$ sudo xboxdrv --evdev /dev/input/event8 --evdev-debug
Your Xbox/Xbox360 controller should now be available as:
/dev/input/js1
/dev/input/event9
Press Ctrl-c to quit, use '--silent' to suppress the event output
EV_ABS ABS_X 128
EV_ABS ABS_Y 128
...

In my case the result is:

 4. Set the config file

Create a xboxdrv-mouse.ini file to set X Y axis and left and right mouse button.
Here I set gamepad buttons 2 for left mouse button and 3 for right mouse button:

[xboxdrv]
evdev=/dev/input/event8
silent=true

[evdev-absmap]
ABS_X=x1
ABS_Y=y1

[ui-axismap]
x1=REL_X:10
y1=REL_Y:-10

[evdev-keymap]
BTN_THUMB=a
BTN_THUMB2=b

[ui-buttonmap]
a=BTN_LEFT
b=BTN_RIGHT

# EOF #

Note that value for REl_X and REL_Y seems to define the speed of the mouse, and by defining a negative value it invert the axis (see here for REL_Y)

An other example with more button definition

[xboxdrv]
evdev=/dev/input/event8
silent=true

[evdev-absmap]
ABS_X=x1
ABS_Y=y1
ABS_HAT0X=x2
ABS_HAT0Y=y2

[ui-axismap]
x1=REL_X:10
y1=REL_Y:-10
x2=KEY_LEFT:KEY_RIGHT
y2=KEY_DOWN:KEY_UP

[evdev-keymap]
BTN_TRIGGER=x
BTN_TOP=y
BTN_THUMB=a
BTN_THUMB2=b
BTN_PINKIE=rt
BTN_BASE2=rb
BTN_TOP2=lt
BTN_BASE=lb
BTN_BASE3=back
BTN_BASE4=start

[ui-buttonmap]
x=KEY_KPENTER
y=KEY_SPACE
a=BTN_LEFT
b=BTN_RIGHT
rt=KEY_KP8
rb=KEY_KP2
lt=KEY_KP6
lb=KEY_KP4
back=KEY_LEFTSHIFT
start=KEY_RIGHTCTRL

# EOF #

 5. Launch it

sudo xboxdrv --config xboxdrv-mouse.ini

To avoid launching it with sudo, create a udev rule.

CONCLUSION

It works fine, it's the best solution for me.


Problem installing ubuntu 12.04 desktop on sony vaio duo 13

A youtube video : https://www.youtube.com/watch?v=QeNTtn231cU dealing with a vaio pro 13 has the following in the comments:

“I was going to install the current Long-Term Support release of Ubuntu, 12.04 LTS (Precise Pangolin), but as others have noted, this version of Ubuntu has trouble with the wifi hardware on the VAIO Pro. So I ended up using the latest release, 13.10, which supports the wifi.”


There's currently no way to configure the appearance of the lock screen.

However, there is work in progress to improve the appearance of the lock screen by replacing it with the same software that powers the login screen.

Completion of that work is contingent upon development for the next version of Unity and the Mir project, which is planned to drastically revamp the underlying systems behind the login screen, graphical login sessions, user switching, and the lock screen.

A preliminary version of the next version of Unity with an improved lock screen is scheduled to be available for use by developers next month, and the finished product with Mir is planned to be included in Ubuntu 14.04.


Intel 9260 slow wifi download speed in Ubuntu 17.10, but not in Windows 10

Your wireless info report shows that you are connected to the SSID Syntive. There are no less than four instances of Syntive within scan range. We suspect we'd also see, in your message log, that the wireless disconnects to roam to another instance of Syntive hoping for a better connection. Sounds like my old girlfriend!

Unfortunately, you are connected to an instance at 67% signal strength when another instance is available at 89%. I suggest that you scan and find the MAC address of the instance with the highest signal strength and bind Network Manager to it like this: Ubuntu connect drops. Worked for a while then started dropping again

I'd also experiment binding NM to the srongest 5 gHz instance. My Intel 7260 is remarkably faster, as you'd expect, connected at N and AC speeds.

Then set your regulatory domain explicitly. Check yours:

sudo iw reg get

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

sudo iw reg set IS

Of course, substitute your country code if not Iceland. Set it permanently:

sudo nano /etc/default/crda

Change the last line to read:

REGDOMAIN=IS

Proofread carefully, save and close the text editor.

EDIT: Please check the settings in the router. WPA2-AES is preferred; not any WPA and WPA2 mixed mode and certainly not TKIP. Second, if your router is capable of N speeds, you may have better connectivity with a channel width of 20 MHz in the 2.4 GHz band instead of automatic 20/40 MHz, although it is likely to affect N speeds. I also have better luck with a fixed channel, either 1, 6 or 11, rather than automatic channel selection. Also, be certain the router is not set to use N speeds only; auto B, G and N is preferred. After making these changes, reboot the router.


How to connect to db4free database using 'mysql' command from the terminal

Use this command

mysql -u <username> -p -h db4free.net


Does adding a "." to a name make it unreconizable?

If you add a . , you are changing the name of your ~/bin so it will no longer be in the path. Scripts may or may not work depending on how you call them, and since it isn't in your path anymore, you cannot just type scriptname.sh and expect it to work. You can do it if you change your path to include /home/myusername/.bin


Change manually the icon of a nautilus place item

you will have to change the icon in the system folder and name your new one the same as the old it would be a good idea to keep your old icon incase you wanted to change it back

icons are stored in

/usr/share/icons/

then there are a few more folders first 1 will be your icon theme then the next are icon sizes

also you may be able to change the icon path in the .desktop file these are usually in

/usr/share/applications/

or in

~/.local/share/applications/


Where is the memusage command in Ubuntu?

This script is not included into the binary package, but exists in the source code form.
To compile it from the source code use:
sudo apt-get install git
sudi apt-get build-dep libc6

cd ~/Downloads
apt-get source libc6
cd glibc-2.27/
dpkg-buildpackage -uc -us

Then go to malloc directory and try to find the script here:
cd malloc
ls memusage*

Optionally move it to /usr/local/bin.


How do I use a network connection after I have created it in network manager GUI?

If you are already connected to a wifi network then try disconnecting from it first. Or if you have created a wifi network from your computer itself then you've to turn it off. After you've disconnected, select your newly created network. If the configuration parameters are right and the you are in range of the wifi network then your new network will be connected.


update-grub is setting a wrong linux root partition

Ever since grub2, menu.lst is not really used any more, so chances are you need to look elsewhere if you're having a problem with grub.

However, menu.lst is still sometimes used with the Cloud version of Ubuntu. If that applies to you, read on.

The auto-generated root (hd0) entries are actually configured by modifying the /boot/grub/menu.lst file. You need to find the lines that look like:

## default grub root device
## e.g. groot=(hd0)
# groot=(hd0)

And change the last line to point to the new root, for example:

## default grub root device
## e.g. groot=(hd0)
# groot=(hd0,5)

Notice that the groot=… line still begins with a #. Do not uncomment the changed line! I don't know what genius thought of having configuration parameters in commented out lines, but that's how it works.

Once you've made the change, regenerate menu.lst by running:

sudo update-grub-legacy-ec2

All the root entries in menu.lst should now be updated to point to (hd0,5) (or whatever you configured it to).


How do I get an Intel Ultimate 6300-N working?

If you have modprobe parameters you already know work:
If that modprobe parameter works for you, as root add a file in modprobe.d that makes the setting persist, like this:

As root with your text editor of choice make a new file:
 /etc/modprobe.d/customintel6300N.conf

In that file add the line:
 options iwlagn bt_coex_active=0

Save and reboot.

Wireless N can be finicky on a lot of cards, but if you found modprobe settings that work for you...just make them persist.  It doesn't solve the slow problem, but it does get you running consistently.
If you don't:
Disabling hardwarecrypto:
Some users have reported that N support gets much more reliable using software you might try
options iwlagn hwcrypto=0

instead of the coex option.
Disabling n:
As was already suggested by Jorge Castro:
options iwlagn 11n_disable=0


I think that

sudo apt-get install texlive-latex-extra fonts-arabeyes fonts-kacst

would be enough.


You do not have realpath installed.sudo apt-get install realpath did the job for me.


how to direct php version to php in LAMPP to set default?

The problem is that you have two php executable: one located in /usr/bin and another in /opt/lampp/bin.

When you type php in your terminal, bash search it in $PATH directory list, and it found php in /usr/bin, so /usr/bin/php is executed.

If you want to exec /opt/lampp/bin/php, open you .bashrc and at the end add this line:

      PATH=/opt/lampp/bin:$PATH

Once saved .bashrc, exec:

      source .bashrc

or close/open your terminal and try re-do your php command.


How to recover data after a failed Ubuntu update from 14.04 to 15.04

You can always boot with an Ubuntu LiveUSB, start the file manager with sudo -H nautilus and copy your important data to some external media.


Error creating kit for Nexus 4 when creating Click target

Following this previously answered question, I used the commands at the bottom which appear to create the Click targets themselves outside the Ubuntu SDK.

$ sudo add-apt-repository ppa:ubuntu-sdk-team/tools-development -y

$ sudo apt-get update

$ sudo apt-get install ubuntu-sdk-ide ubuntu-sdk-api-tools

$ sudo apt-get install ubuntu-sdk-api-15.04-armhf ubuntu-sdk-api-15.04-i386

The armhf Click target is now appearing in the Ubuntu SDK options.


Is that possible to reinstall apache 2 without losing websites content?

Altough I don't think that uninstalling apache will remove the content of /var/www/, if you want to make sure that you won't lose anything upon reinstallation do the following:

Backup the content of the /var/www/ folder before reinstalling:

tar pcfz <path_to_backup>/www_backup.tar.gz /var/www/*

*<path_to_backup> = path to where to store the backup;

This way, after reinstalling, if the content of /var/www/ has been deleted, you can just restore it from the backup:

sudo tar pxf <path_to_backup>/www_backup.tar.gz -C /var/www/

*<path_to_backup> = path to where the backup was stored;

Notice that the p option in tar pcfz [...] and tar pxf [...] is required to preserve the permissions of /var/www/'s content upon backup / restore.

If you don't have physical access to the server, you can backup the content of /var/www/ through SSH:

ssh <username>@<host> 'tar pcfz - /var/www/*' > <path_to_backup>/www_backup.tar.gz

*<username> = username on the server; <host> = host name / host address; <path_to_backup> = path to where to store the backup;

And to restore, if needed:

< <path_to_backup>/www_backup.tar.gz ssh <username>@<host> 'tar pxf - -C /var/www/'

*<path_to_backup> = path to where the backup was stored; <username> = username on the server; <host> = host name / host address;


How to map keyboard keys to joystick buttons using joy2key?

You can use antimicro, it is a fork of joy2key and has a GUI, use this PPA for 12.04 to 15.10

sudo add-apt-repository ppa:ryochan7/antimicro
sudo apt-get update
sudo apt-get install antimicro

For 16.04 to 17.10 use this PPA

sudo add-apt-repository ppa:mdeguzis/libregeek
sudo apt-get update
sudo apt-get install antimicro

Source


NVIDA video adapter detected as 3D controller instead of VGA controller

Nvidia is detected as a 3D controller in case it is a discrete adapter in addition to an integrated one. That's not a problem.

It means that the output is done through the integrated controller and Nvidia is used only for acceleration.


Ubuntu Install with Win10 - Disk space is Unavailable

Your problem is, that your drive contains four primary partitions already and the MBR can not hold more than four primary partitions.

You would have to convert one of the partitions to a logical partition. This will automatically create an extended partition which holds the logical partition. Then you increase the size of the extended partition and can create more logical partitions in the extended partition up to your needs.

Don't convert the windows-system-partition C: to logical, take the Recovery-partition D:.

You can create the logical partitions for Ubuntu during install. You have to install in legacy-mode. To do that make sure that you boot the installer in legacy-mode, how you boot is how you install.


not able to compile java program shows some files are missing

You should install Java Development Kit to your system:

sudo apt-get install default-jdk

and then retry.


HP Spectre x360 Disable Touchpad in Tablet Mode - Ubuntu 15.10

Ideally there is an event that we can respond to and have this happen automatically, but it looks like this is still an open issue:
https://bugs.launchpad.net/ubuntu/+source/udev/+bug/1535008
Also see: https://askubuntu.com/a/732830/519324

So I'm going to combine the following answers:

https://askubuntu.com/a/766150/519324
https://askubuntu.com/a/485685/519324

1. Find keyboard & trackpad IDs
Find the IDs for your keyboard/trackpad or what ever you want to disable using the following command. Mine is 12 for keyboard and 13 for Touchpad. Write it down.

xinput list

2. Find your display ID

Run the followiing command to find the connected screen, it's the ID that's followed by "connected". Mine is "eDP1".

xrandr

3. Write tablet mode script

sudo nano /usr/local/bin/tablet-mode.sh

Fill with the following script. Change 12 and 13 to your keyboard/trackpad IDs and change eDP1 to your display ID.

#!/bin/bash
xinput set-int-prop 12 "Device Enabled" 8 0 #Disable Keyboard
xinput set-int-prop 13 "Device Enabled" 8 0 #Disable Pad
xrandr --output eDP1 --rotate inverted #Rotate screen
onboard & #Turn on onscreen keyboard

Give it executable rights:

sudo chmod +x /usr/local/bin/tablet-mode.sh

4. Write laptop mode script

sudo nano /usr/local/bin/laptop-mode.sh

Fill with:

#!/bin/bash
xinput set-int-prop 12 "Device Enabled" 8 1 #Enable Keyboard
xinput set-int-prop 13 "Device Enabled" 8 1 #Enable Pad
xrandr --output eDP1 --rotate normal #Rotate screen back
killall onboard #Turn off onscreen keyboard

Give it executable rights:

sudo chmod +x /usr/local/bin/laptop-mode.sh

5. Create tablet mode icon

sudo nano /usr/share/applications/tablet-mode.desktop

Fill with:

[Desktop Entry]
Type=Application
Terminal=false
Name=Tablet Mode
Icon=/usr/share/icons/Adwaita/32x32/actions/media-playback-stop.png
Exec=/usr/local/bin/tablet-mode.sh

6. Create laptop mode icon

sudo nano /usr/share/applications/laptop-mode.desktop

Fill with:

[Desktop Entry]
Type=Application
Terminal=false
Name=Laptop Mode
Icon=/usr/share/icons/Adwaita/32x32/actions/media-playback-stop.png
Exec=/usr/local/bin/laptop-mode.sh

You probably need to re-login to get the icons.


13.04 is still in development and will be unstable with some packages not yet supported so yes 12.10 or 12.04 LTS would be more functional.


How to launch GUI app (in Ctrl+Alt+F7) from tty (Ctrl+Alt+F1-F6)

You can specify DISPLAY environment to specify display for launching apps (see Graphical Environment) as follows from tty:

DISPLAY=:0 <app-command>

Example:

DISPLAY=:0 gedit
DISPLAY=:0 gnome-terminal

This will launch GUI applications in GUI mode (Ctrl+Alt+F7) from tty (Ctrl+Alt+F1-F6).


Additional keyrings for APT in trusted.gpg.d

Keys downloaded from repositories should be joint into a new GPG keyring so you can drop them into '/etc/apt/trusted.gpg.d/*.gpg', like this:

gpg --no-default-keyring --keyring ./Opera.gpg --import Opera.key
sudo cp Opera.gpg /etc/apt/trusted.gpg.d/Opera.gpg


Docker containers running, but not showing up in docker ps

In your case you have both an apt and snap package of docker installed. Remove the snap package with this command:
sudo snap remove docker

Then you might have to restart your containers.


Your question is a bit ambigous. If you want to install ubuntu without any keyboard/monitor present, then you need to automate the installation. You'll generally find a lot of information about that if you look for "preseed" file and netinstallation. Please be aware that this may require some pre-existing infrastructure, depending on the exact method chosen (such as DHCP, TFTP services). You also want to do this with ubuntu server.

However please note that even KVM guests generally do have (virtualized) keyboard, mouse and monitor outputs and the KVM host on which the KVM guests run on generally have the ability to give you access to those via VNC connection. The end result is that you have a "headless" server but still console control over it remotely via VNC and you can perform the installation as if you had a monitor and keyboard on a real physical server.

Unless you really want to learn to automate an ubuntu server installation with no questions asked I strongly suggest investing time to see how you can get the console of KVM guests to appear whereever it is you are working from.


How should I go about testing a backported kernel when I am running ZFS on root?

Using zfs-dkms should be fine.  As the maintainer of ZFS I can't see why this should be a problem.  Ensure zfs-dkms is removed if you revert back to an official Ubuntu supported kernel just so that you don't need to rebuild ZFS on kernel updates.


You should use XML parsing tools for XML data. xmlstarlet is a good choice. Regular expressions are just not powerful enough (canonical reference)

If your data looks like:

<root>
  <foo>
    <active>true</active>
    <codePool>private</codePool>
  </foo>
  <foo>
    <active>true</active>
    <codePool>community</codePool>
  </foo>
</root>

Then

xmlstarlet ed --update '//active[.="true" and ../codePool="community"]' -v false file.xml

produces

<?xml version="1.0"?>
<root>
  <foo>
    <active>true</active>
    <codePool>private</codePool>
  </foo>
  <foo>
    <active>false</active>
    <codePool>community</codePool>
  </foo>
</root>

Here's an awk program that does what you request. Keep in mind that it's fragile: if the input changes, this code will stop working. It does just use plain string operations.

awk '
    BEGIN {
        marker = "<codePool>community</codePool>"
        srch = "<active>true</active>"
        repl = "<active>false</active>"
    }
    index($0, marker) {
        i = index(prev, srch)
        if (i > 0)
            prev = substr(prev, 1, i-1) repl substr(prev, i+length(srch))
    }
    {
        if (prev) print prev
        prev = $0
    }
    END {if (prev) print prev}
'


Is there any reason that the 64-bit ATI drivers would be better?

AFIK, 64 bit Ubuntu has been as easy to use as 32 bit ubuntu for several years now. If you have the hardware you should start with 64 bit Ubuntu and if you have a specific problem with a specific 64 bit package fall back to 32 bit.

Such a problem would be unexpected and it has been a long time since I have seen 64 bit fail. If I said never, someone would post a counter example.

tl/dr ;

I see no reason not to use 64 bit Ubuntu / 64 bit ATI driver and in theory it should be faster then 32 bit, but I do not have the benchmarks to prove it.


Is it possible to view the notifications' history on Ubuntu 18.04?

The NotifyOSD in Ubuntu does a good job in providing a growl like notification bubble when new event arrive. This is useful if you are always on your computer. If you leave your PC and new notification appears and gone, you won’t be able to know that what you have missed when you return. Recent Notification is a useful applet designed to solve this problem.
Recent Notification works hand in hand with NotifyOSD. It records down all the events notified via NotifyOSD. With a single click, you will be able to view the list of all the past events.
To install in Ubuntu,
  sudo add-apt-repository ppa:jconti/recent-notifications
  sudo apt-get update
  sudo apt-get install indicator-notifications

To use it, you have to right click on the panel and select “Add to Panel” From the window that pops up, select “Recent Notification”.
notification-add-to-panel
You should now see a new applet in your Gnome panel.
notification-applet
Simply click the applet and it will show a window with all your past notifications.
notification-window
Viewing, sorting and managing your notification.
In addition to viewing your recent notification, you can also get it to only show notification from a particular application. For example, I have notification coming from both Pidgin and CloudSN. In the Recent Notification window, I can select from the dropdown list to get it to show only notification from CloudSN.
notification-select-app
For each notification, you can also right click to copy the text or to blacklist the application (so that it won’t appear in the list).
notification-copy-text
Wrapping up
Recent Notification applet is simple, and useful application designed to do what the NotifyOSD can’t. It might not be suitable for everyone, especially those who hate the idea of cluttering the taskbar with yet another applet. For those who like to keep track of the notified events, this is definitely a nifty app to have. Things that I hope to see is the availability of an indicator-applet (rather than a panel applet), or better still, integrate with the messaging menu.


Can I have only one program access my VPN?

You can use a virtual box as replacement for the "vpn computer". In this box, you just install vpn again and it's very uncomplicated for you, as the usage is just the same as before!  VirtualBox usage in wiki


Turn off built-in display ubuntu 18.04 LTS

Use the Single display tab instead of Join displays tab.


From the DEBIAN SPECIFIC section of man cron:

   As  described  above, the files under these directories have to be pass
   some sanity checks including the following: be executable, be owned  by
   root,  not  be  writable  by  group or other and, if symlinks, point to
   files owned by root. Additionally, the file names must conform  to  the
   filename  requirements  of  run-parts: they must be entirely made up of
   letters, digits and can only  contain  the  special  signs  underscores
   ('_')  and  hyphens  ('-').  Any  file  that  does not conform to these
   requirements will not be executed by run-parts. For example, any  file
   containing  dots  will  be  ignored.  This is done to prevent cron from
   running any of the files that are left by the Debian package management
   system when handling files in /etc/cron.d/ as configuration files (i.e.
   files ending in .dpkg-dist, .dpkg-orig, and .dpkg-new).


How to remove and install new version of Easyeda in Ubuntu

Let's assume that it was not downloaded.

So we need to download the installer:

mkdir -p ~/Downloads/easyeda
cd ~/Downloads/easyeda
wget https://image.easyeda.com/files/easyeda-linux-64bit-latest.zip

Extract it:

unzip easyeda-linux-64bit-latest.zip

as the result you will get installation instruction as a text file:

$ unzip easyeda-linux-64bit-latest.zip
Archive:  easyeda-linux-64bit-latest.zip
 inflating: How to install and uninstall.txt
 inflating: easyeda-linux-x64.zip
 inflating: install.sh
 inflating: uninstall.sh

To install use:

sudo bash install.sh

To uninstall use:

cd ~/Downloads/easyeda
sudo bash uninstall.sh

As far as I can understand this application in 95% a web-browser to the website, so your problem may be a networking issue.


With Unity, Evolution calendar alarms are not persistent. How can I make them so?

To answer my own question: the workaround is to whitelist evolution-alarm-notify using the method described here:
How do I access and enable more icons to be in the system tray?

I filed a bug on launchpad, here:
https://bugs.launchpad.net/ubuntu/+source/evolution/+bug/773896
(please use the 'this bug also affects me' option on the page if you want to attract attention to this bug)


You could use the following PPA:

sudo add-apt-repository ppa:brightbox/ruby-ng-experimental
sudo apt-get update
sudo apt-get install -y ruby2.0 ruby2.0-dev ruby2.0-doc

Optional:

sudo apt-get install -y mysql-server mysql-workbench
sudo gem install rails

Now you can go ahead and download your preferred IDE and start having fun with Ruby 2.0 and Rails 4.

Just so you know, I find this one here very cool: http://www.jetbrains.com/ruby/

Note: you can use any other database and IDE, these are just my personal preferences.


What happens when I drop a file on archive in Nautilus?

As a note on point one, as a far as I can tell, the tar terminal command cannot append files to a compressed archive (ex. your .gz archive), and hence needs first to uncompress the archive, then add the appended file, and recompress again.
A workaround could be mounting your compressed archive using archivemount (instructions here), which allows you to mount your compressed archive, append files, and unmount it. Whether this is speedier than uncompressing, appending and recompressing, I cannot say.


I assume when you installed php you used something like

sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt

Did you remember to modify Apache so it looks for .php before .html?

 sudo nano /etc/apache2/mods-enabled/dir.conf

It should look something like this:

 <IfModule mod_dir.c>
 DirectoryIndex index.php index.html index.cgi index.pl index.xhtml index.htm
 </IfModule>

Note that index.php should be the first.

Once change has been made you just need to restart the server

 sudo service apache2 restart


You installed the wrong driver for your NVIDIA Quadro FX 3500 graphics card. The driver you installed is for the NVIDIA Quadro 4000 graphics card which has 2GB built-in memory. Your NVIDIA Quadro FX 3500 graphics card has only 256MB built-in memory, so you need to uninstall the NVIDIA 304.88 driver and install the NVIDIA Legacy driver.

Uninstall all proprietary NVIDIA drivers from your computer, but don't uninstall the default built-in nouveau driver.
Download the NVIDIA Linux Display Driver Version 71.86.15 from here.
Using the cd command, change directories to the directory containing the NVIDIA-Linux-x86_64-71.86.15-pkg2.run driver that you downloaded from the official NVIDIA website.
Run the following commands:

sudo chmod a+x NVIDIA-Linux-x86_64-71.86.15-pkg2.run
sudo ./NVIDIA-Linux-x86_64-71.86.15-pkg2.run
sudo reboot


Is there an equivalent to Google Sketchup?

The Art of illusion

Art of Illusion is a free, open source 3D modelling and rendering studio. Many of its capabilities rival those found in commercial programs. Highlights include subdivision surface based modelling tools, skeleton based animation, and a graphical language for designing procedural textures and materials..

K-3D (Available in the software center )

K-3D's interface uses your platform's look-and-feel, and it's consistent with the applications you already know. New artists will find K-3D easy to understand, and professionals feel right at home. K-3D is intuitive, consistent, and discoverable.

For a  more advanced program you can try
Blender (Available in the software center)

Blender is a free open source 3D graphics application, available under the GNU General Public License for the Linux, Mac OS X, FreeBSD, OpenBSD and Microsoft Windows operating systems.
Blender's features include 3D modeling, UV unwrapping, texturing, rigging, water and smoke simulations, skinning, animating, rendering, particle and other simulations, non-linear editing, compositing, and the ability to create interactive 3D applications, video games, animated film, or visual effects. More advanced tools include rigid, realistic body, fluid, cloth and softbody dynamics simulation, modifier-based modeling, character animation, a node-based material and compositing system, and embedded scripting in Python.


Did you convert your disk to MBR style before installing Ubuntu?  Did you need to change any BIOS setting to install Ubuntu?  If yes, then you may need to restore that setting to be able to boot into Windows.

I had a GPT drive and I had to clean it (erase everything) and then convert it to MBR style, then repartition it for Windows and Linux separately and then re-installed Windows and Linux.  I used Fedora then.


Is it possible to use to use two wifi connections in Ubuntu?

What you are looking to do is called LINK BONDING
Can be done with software or hardware (additional to your PC)

Simplest way would be to get a router with multiple WAN ports - something like the TP-LINK R480T. It has 4 WAN ports so you can actually connect 4 different ISP modems and then use the router to balance and share what goes over which WAN port in order to improve your performance. Your PC (or any number of PC) connect to the router like normal.....and the router does all the work for the bondng and load-balancing. Last I checked that unit sold for around $50 US
On that router setup just remember Un-check both “Application Optimized Routing” and “Balanced Based Bandwidth Routing”. Otherwise you won’t get combined download speed

Other way is using WINDOWS 8 or 10 load-balancing abilities (built-in) but since we are talking Ubuntu here..I wont go there...

Last is to find a software for Ubuntu that does link bonding and load balancing....then all you need to do is equip your wip with multiple LAN adapters (wireless or wired) and you are off and running.
3rd party software like this can be a bit unreliable so I have always opted for the hardware option personally


Bugzilla stopped working after upgrade to 11.10

Solution:
I couldn't make it work. I had to backup my DB, and reinstall V4.0.2.

Mainly folloewed a great step by step guide here

Downloaded the Version from Bugzilla site

Also, had to add the following in apache2.conf

<Directory /usr/local/apache2/htdocs/somedir>
    Options +ExecCGI
</Directory>

And

AddHandler cgi-script .cgi .pl

All is working now.


One way to use a screensaver as a background is by changing the output of the screen saver program to display in the desktop window, but you need to know what the window id is of the desktop first. Run the following command in a terminal window and click on your desktop area:
xwininfo | grep "Window id:"

The window id will start with "0x" and include a long number after that. Copy this window id then is it as an argument to the -window-id option in most xscreensaver visuals like this:
/usr/lib/xscreensaver/skyrocket -window-id 0x2400007

Replace 0x2400007 with whatever window id is shown in your output.
You should probably first see what visuals are available by running
ls /usr/lib/xscreensaver

Usually the screensaver visuals are in that directory. If not, you should first of all find out if you have xscreensaver installed and where the visuals are located. You can just run those commands to see what is available and by default they will run the screensaver in a separate window.
Some other programs like command line video players can have their output changed to a specific window id. For instance, the mpv video player can do this using the --wid option
mpv -wid 0x2400007 ~/Videos/aquarium.mp4

Some other programs have options like this to redirect the output of the program to another window.
Once you stop any of these programs though your desktop environment will overwrite the desktop background with whatever it was set to before.


How to remove Cinnamon etc. and leave just Ubuntu?

Genrally I would do (replace cinnamon with the other desktop enviroments, e.g. kde4):

sudo apt-get remove cinnamon

then:

sudo apt-get autoremove

Go to https://help.ubuntu.com/lts/serverguide/apt-get.html and https://help.ubuntu.com/community/AptGet/Howto for more info.


Installing a java application on Ubuntu/Linux

I worked for around 8 months on Installshield way back in 2004. Also tried installj for one of the Java products that we were shipping to our end partners.
But i am not aware of opensource or free Installer kind of programs. May be you can refer to this thread which has a good comparison of lots of options available


That behavior is perfectly normal for Ubuntu 17.10 as it contains no python 2.7 by default anymore

  Python 2 is no longer installed by default. Python 3 has been updated to 3.6.
  (from Release Notes)

The right line to use is:

python3

Beside that you can install pip for python 3.6 with the following command

sudo apt install python3-pip

This will install pip for python 3 which you can call with pip3 <command> or pip <command> (which does not seem to work in your case no clue why).

And for python 2.7 including its pip if you so wish with the following command:

sudo apt install python2.7 python-pip

To call pip for python 2 you need to use pip2 <command>.


If you right click on any icon in the file browser, you'll see a 'Make Link' option. That is the equivalent of 'Create Shortcut' on windows.

If you want to create a link for a program on the desktop or the panel, you can drag and drop it from the applications menu to either one.

The top panel (or wherever you put it) has several types of options you could use for different types of tasks. The easy way is to drag any files you want quick access to, and drop them on the panel.

If you right click on the panel while holding 'super+alt' buttons, you will see a drop down menu with several options to edit the panel or to create additional panels.


Changed properties of application by accident what is default: FireFox

Are you sure you edited the original file? It would have asked you your sudo password.

A. If it did asked you, and you're talking about /usr/share/applications/firefox.desktop that was modified, here's a lesson:

  Don't use your sudo password if you're not sure of what you're doing

B. If you never needed sudo admin password, then the original file should be accessible (read-only) in /usr/share/applications/firefox.desktop, you should copy that file's content in ~/.share/applications/firefox.desktop

C. If none of the above is right, you might just make a "default typical" desktop file:

[Desktop Entry]
Comment=Browse the web
Name=Firefox
Exec=/usr/bin/firefox
Icon=firefox
StartupNotify=false
Categories=Network;
Type=Application

D. Ultimately, you could save your profile, purge firefox, and reinstall it clean.


I can't put icons on Ubuntu 16.04 gnome-fallback desktop

Open Terminal and type this text for each icon you want visible on the desktop, if you're using gnome.

For home folder:

gsettings set org.gnome.nautilus.desktop home-icon-visible true

For computer icon:

gsettings set org.gnome.nautilus.desktop computer-icon-visible true

For volume icons:

gsettings set org.gnome.nautilus.desktop volumes-visible true


Upgrading Xubuntu from 14.04 to 16.04.1 hangs at kernel panic

OK, I made my computer back to life again, but I don't really understand "how", so this is more of a follow up, but I think I'll post it anyway in case someone else encounter similar situation and want a hint.
Short story:
I used a Live USB to boot, followed this instruction to get into command line, dpkg --configure -a and apt-get autoremove, reboot into upstart mode, (sort of) finished the upgrade process.
Long story:
When I did the distribution upgrade I found my Internet connection was quite slow, so I mindlessly switched server to cn99 (China), which I think is where the damage came from.
The upgrade is fast, but when it went into first reboot (or I think it was the first reboot), the error in question appears.
Luckily I have another computer around, so I made a Live USB and used it to boot. It doesn't seem to work at first, showing errors like:

Undef symbol FAIL: __syslinux_shuffler_size
Failed to load libcom32.c32
Failed to load COM32 file gfxboot.c32
boot:

Following this solution, I pressed Tab, enter "live" and successfully booted into Xubuntu Live.
Then I followed this instruction:

Press Ctrl-Alt-F1
sudo mount /dev/sda1 /mnt
sudo mount --bind /dev /mnt/dev
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
sudo chroot /mnt
apt update

This was when I was told that my repository was corrupted and need to run dpkg --configure -a to correct it.
I also run apt-get autoremove since some other Google results suggested to do so.
Then I reboot and tried default (systemd) first, still failed, but upstart work.
I then check for software update, nothing new, and for some reason (thank god) I switch server back to main, and loads of update appears, and even a "Partial upgrade" window appeared.
I did the Partial upgrade, and at the end of installing it still shows error and just stopped, but the system was responsive, so I reboot (skipping the "Cleaning up" part) using systemd and this time it worked.
There's still some minor flaws in my system, but at least it work again.


unable to install wifi drivers from rtlwifi_new git repo

The https://github.com/lwfinger/rtlwifi_new.git has been removed.
Use https://github.com/lwfinger/rtw88.git instead.
To install them run:
sudo apt update
sudo apt install git dkms
git clone https://github.com/lwfinger/rtw88.git
sudo dkms add ./rtw88
sudo dkms install rtlwifi-new/0.6


Instead of opening the folders one by one, you can also use the Search feature of Nautilus. Navigate to /usr/share/icons, and press the Search icon on the right of the toolbar.

Search for . (all images have an extension with a dot before it) and press Enter. On a default installation, this yields about 17.5k images. That's not much of an "overview", but it includes all files in /usr/share/icons.

If you wish to avoid searching each time, you could make use of symbolic links to the images: all images are accessible from one big folder.

Open a terminal
To check the number of files that can be created after creating the links:

expr $(df /home -i | tail -1 | cut -d'%' -f1 | rev | awk '{ print $2 }' | rev) - $(find /usr/share/icons -type f | wc -l)

You should not continue if the number is lower than 1000 and a negative number will cause the operation to fail after some time.
Make an folder named icons-all by running: mkdir icons-all
Go into that folder: cd icons-all
Run nano /tmp/make-icons-link
Paste:

#!/bin/bash
if [[ $1 == *.* ]]; then
        ext=".${1##*.}"
else
        ext=
fi
name="$(basename "$1" "$ext")"
extra=
while [ -e "$name$extra$ext" ]; do
    ((extra++))
done
ln -s "$1" "$name$extra$ext"

Press Ctrl + X, followed by Y and Enter
Now generate the links, this may take a while:

find /usr/share/icons/ -type f -exec bash /tmp/make-icons-link {} \;

After the command has completed, no output is shown.
Close the terminal by running exit
The images are now visible in ~/icons-all. Loading this directory may take a while


The unix shell scripts are quite different from DOS bat files in a sense that they are executed as separate processes, not just loading commands into current command prompt, as it is with windows cmd.exe

What you really want, is actually bash alias or function.

Both alias cd..='cd ..' and cd..() { cd ..; } will do the trick, first one defines alias, second a shell function.

In order to make it available in succeeding shells as well, it should be written in to .bash_profile, .bashrc or .profile file in your home directory. Which file exactly, depends on your distribution settings, check man bash, /etc/profile and /etc/*bashrc for details.

man bash will help you further with available commands.

If you are looking for more user-friendly shell than bash, then I suggest you to look into zsh package.


Rsyslog filter for logging router events (syslog server)

I figured it out!  These links helped:
http://www.rsyslog.com/tag/udp/
http://www.rsyslog.com/doc/multi_ruleset.html
Here's what I did:
Opened up /etc/rsyslog.d/50-default.conf and at the top of the file, before other all of the default filters, I added:
# process remote messages
# define new ruleset and add rules to it:
$RuleSet remote
*.*           /var/log/linksys.log
# only messages not from 192.168.2.1 make it past this point

# bind ruleset to UDP listener
$InputUDPServerBindRuleset remote
# and activate it:
$UDPServerRun 514

# switch back to the default ruleset:
$RuleSet RSYSLOG_DefaultRuleset


How do I install Landscape on an existing server?

Landscape requires a dedicated install; Like most management systems, it is not made to "share" a web server with other workloads.

If you are using it just to manage a few machines for home use and load is therefore not an issue, you could run it within a virtual machine.  This is not a best practice for production, but it may work in your case - or you could simply use a cloud instance.


How do I run 640x480 only games in Wine properly?

Run the command winecfg from Terminal. In the Wine Configuration window- click on Graphics tab, check the option Emulate a virtual desktop. Now input your native display resolution in the boxes under that option. Click Apply and then Ok.


Is there a way to recover files from a storage device partially overwritten with dd?

When a drive has been accidentally overwritten you will need Data Recovery Tools to restore the remainders of your data. When this has occured from running dd for a 135 MB image then those parts of your drive are definitely gone and can not be rescued.

By installing

TestDisk

you may be able to recover part of your files. Included in the TestDisk suite you will also find the tool PhotoRec that helps to recover individual files even in the case the partitions can not be restored by testdisk or the drive itself has a hardware defect.

TestDisk/PhotoRec can also be run on an image of your drive (as was also suggested by this answer)


Disable trackpad and trackpoint via command line

From SynapticsTouchpad - Community Ubuntu Documentation:

Determine the device id:

xinput list

Disable it (e.g. here the device id is 15)

xinput set-prop 15 "Device Enabled" 0

Or see:

[SOLVED] Temporarily disable TrackPoint? - Ubuntu Forums
How to disable the touchpad?


Using a digital camera ( Canon) as webcam

Here's another solution.

List of gphoto2 supported cameras: http://gphoto.org/proj/libgphoto2/support.php

You need install gphoto, v4l2loopback-utils and ffmpeg.

Then

sudo modprobe v4l2loopback

and

gphoto2 --stdout --capture-movie | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video1

Now you have webcamera from your digital camera.


So both are found (as lsusb shows), but don't seem to react (most of the time)... Maybe you can have a look at this page on the ArchLinux Wiki.
Over at Phoronix the mouse seems to work without problem, so maybe give it a try without the keyboard connected (if you haven't already done so).


First remove your old version

sudo apt-get remove --purge libreoffice*

I am going to assume that you have the file in your Downloads folder, if not, please change to the correct folder.

In a terminal change to Downloads and then extract the package

cd ~/Downloads
tar -xvzf LibreOffice_5.2.2_Linux_x86-64_deb.tar.gz

This will make a folder called LibreOffice_5.2.2.2_Linux_x86-64_deb/DEBS, so now change to that folder

cd LibreOffice_5.2.2.2_Linux_x86-64_deb/DEBS

Now we can install all those debs with this command

sudo dpkg -i *.deb


How can I list last updated packages from terminal?

Command to list recently installed packages that were installed via any method (apt-get, Software Center...):

cat /var/log/dpkg.log | grep "\ install\ "

Example output:

2010-12-08 15:48:14 install python-testtools <none> 0.9.2-1
2010-12-08 15:48:16 install quickly-widgets <none> 10.09
2010-12-08 22:21:31 install libobasis3.3-sdk <none> 3.3.0-17
2010-12-09 12:00:24 install mc <none> 3:4.7.0.6-1
2010-12-09 23:32:06 install oggconvert <none> 0.3.3-1ubuntu1
2010-12-09 23:34:50 install mpg123 <none> 1.12.1-3ubuntu1
2010-12-09 23:34:52 install dir2ogg <none> 0.11.8-1
2010-12-09 23:34:53 install faad <none> 2.7-4
2010-12-09 23:34:54 install wavpack <none> 4.60.1-1
2010-12-10 11:53:00 install playonlinux <none> 3.8.6

Command to list history of apt-get (NOTE: this doesn't list dependencies installed, it simply lists previous apt-get commands that were run):

cat /var/log/apt/history.log | grep "\ install\ "

Example output:

Commandline: apt-get install libindicate-doc
Commandline: apt-get install googlecl
Commandline: apt-get --reinstall install ttf-mscorefonts-installer
Commandline: apt-get install valac libvala-0.10-dev
Commandline: apt-get install libgtksourceview-dev
Commandline: apt-get install python-sphinx
Commandline: apt-get install python-epydoc
Commandline: apt-get install quickly-widgets
Commandline: apt-get install libreoffice3* libobasis3.3*
Commandline: apt-get install mc


How do i type special character like ' " : or ; when typing in Indian keyboard

This link enlists all the symbols used in Devanagari writing system. You won't find some of the characters on the keyboard.

To type such special characters  you need to remember alt code for Windows OS. To do the same in Linux based OSs, you need to remember hex code or OS X option code.

For example: the hexcode of Sanskrit symbol OUM is 950. So in order to type it in Linux you need to "press ctrl+shift+u and release u but don't release ctrl+shift, now type the code 950. After you have finished release ctrl+shift, you will see the desired symbol ॐ".

Now coming to your problem, you are typing in Hindi but want insert ' and " since Devanagri don't have such symbols because these symbols came from latin script. So to insert it in our document we need to remember hex code of this character that come from latin so we first find code of this character and then press ctrl+shift+u, release u + desired code. You can see hex code of latin from here

This method works in any languguage doesn't matter what language you are typing. I have found that hex code of these characters codes are 27 and 22. So I am writing it using shortcut ctrl+shift+u-u+code, ' and " OK.