Running a command in a new terminal instance in a bash script

Try like this instead:

port=1234
remote=username@host
proxy off && ssh -fND $port $remote && proxy socks

The -f flag tells ssh to go into the background and the -N tells to not execute commands, just forward ports. This way you can continue working in your current terminal.


The quickest way is via an alias. They look as simple as this:

alias vdm='wine "C:\Program Files\The VDM++ Toolbox Lite v8.3.1\bin"'

After you plumb that in, you can run vdm (as long as it's from a bash shell) and your Wine command will run. You may need to play around with the syntax of the Wine statement a little.

For that to persist, you'll need to save it to one of your bash configurqation files. My original post suggested just adding that line to ~/.bashrc but as root54 points out, you should probably use ~/.bash_aliases if you're on a relatively new install. If it doesn't exist, don't worry, just create a new file and stick that line in.

After you make changes to either of those files, you need to run  source . to reload bash's config.

Alternatively you can create a bash function, again in ~/.bashrc:

function vdm {
    wine "C:\Program Files\The VDM++ Toolbox Lite v8.3.1\bin"
}

Again, after putting this in, you'll want to run source .

And finally, if you need something more meaty (you don't for this simple command) you can write a full script and stick it in ~/bin.

mkdir -p ~/bin
touch ~/bin/vdm
chmod +x ~/bin/vdm
nano vdm

And copy in something like this:

#!/bin/bash

wine "C:\Program Files\The VDM++ Toolbox Lite v8.3.1\bin"

The advantage of bin scripts over anything else is they're slightly more portable. You don't have to hack apart or replace your .bashrc if you want to take them to another computer. But they're a bit more fuss to create.


Where do I find the Google Talk plugin once it is installed?

If you downloaded the .deb file, you can use the same file to install on another Ubuntu installation and if you installed it using a repository, the file is in /var/cache/apt/archives/.

To remove the Google video plugin on Ubuntu from the command-line:

sudo apt-get purge google-talkplugin

You will still have to kill the process manually:

ps auxw | grep Google | grep -v grep

The first number displayed is the process identifier for the Google Talk Plugin. Kill it with:

kill -9 #

Where # is the process identifier.


The problem to solve is to get the Music player Daemon to play properly with pulseaudio

You can check that your copy of MPD includes PulseAudio support by running mpd --version and making sure "pulse" is in the list of supported outputs. this is the case on Ubuntu now so it is just a matter of getting mpd to work well with pulseAudio.

Read more here;

http://mpd.wikia.com/wiki/PulseAudio

Hopefully you will be pointed to something that can help you to configure MPD with pulseAudio.


I could not figure out why the following did not fix grub:

sudo update-grub
sudo grub-install /dev/sda

So I downloaded boot-repair based on an answer from Persist commands typed to GRUB rescue post. That seemed to do the trick after I picked the "Recommended Repair (repairs most frequent problems)" option.

I have also used Grub Customizer to customize the order of boot entries.


If you go to http://linux.dell.com/ (the 1st part of your URL) you will see it is the official Dell website (or subsite of dell.com).

That's for 12.04 though and the site only has maverick besides precise.

So yes it is the Dell image for OEM installs but it is old.


How to set default terminal to tilda or yakuake when using "Open in terminal" from folder

You could try this:

sudo update-alternatives --config x-terminal-emulator

Have you tried this?

https://askubuntu.com/a/76747/164073


Can flashcache be added to an existing drive without data loss?

Yes, it's designed that way.

That's in my opinion the main advantage of flashcache and enhanceIO (see also: What are the advantages/disadvantages of different SSD to HDD cacheing options (dm-cache, flashcashe...)?)

I would still make a backup before the operation, just in case.


How to see name of installed command using APT?

I don't know if there are other ways or apt-query method to show binary which belongs to a package.
A simple solution would be

 dpkg -L python3-pip | grep -ai bin

dpkg -L python3-pip lists all the contents of the installed package.

For more info check out dpkg


How to add panel applets to classic gnome panel?

Hold Alt and Right Click. I had the exact same problem actually, but more with the clock in the middle of the screen driving me batty. :)

See: How do I move the clock in GNOME Classic?

If you are using gnome-classic (with effects), you actually have to hold Meta + Alt + Right Click.


How can I install Ice SSB on Ubuntu 16.04?

This utility is not built with Ubuntu in mind.  The GitHub repository you linked to is the core package data necessary to build the application and package, and it's entirely possible that this could be built for Ubuntu, however it is not part of core Ubuntu, and therefore not in the repositories.

The Original Poster of this question fond the following through research in a comment on this answer:

  Huh, turns out the Peppermint OS team already has a repository. https://launchpad.net/~peppermintos/+archive/ubuntu/release. And on a forum they said that they don't recommend installing ice using the PPA, they said to download the .deb and install it that way.

Since the answer is theirs, this answer is marked as Community Wiki, to avoid inaccurate rep gains.


The SDK can be used for desktop development, that is part of the overall convergence strategy that Ubuntu is taking.  You can run any app written with the Ubuntu SDK on your desktop or Ubuntu Touch device.

At the moment, the SDK works better for mobile touch-enabled apps than for desktop keyboard and mouse enabled ones, but there is work already underway to improve it on the desktop.


Why did Bionic kernel update to 4.15.0-24 get removed from the repos?

See the bug report: https://bugs.launchpad.net/ubuntu/bionic/+source/linux/+bug/1779827

Once this Critical bug was reported with enough detail, Canonical engineers and community volunteer testers bisected the problem and had a patch within 36 hours.

Note that this bug was critical, and worthy of pulling because booting at GRUB from previous kernels wasn't a viable workaround. Some folks reporting had to reinstall to restore functionality.


installation of drivers for easypen i405x for ubuntu14.04

The EasyPen i405x is supported in Ubuntu as of Kernel 3.4 which is available in Ubuntu 14.04. If it is not working, you can obtain the driver directly from the DIGImend project. Building and installation instructions are available there.

You will need to obtain the appropriate headers for your kernel with the command sudo apt-get install linux-headers-$(uname -r)

Then, after downloading the source code package from the DIGImend project, you can build and install it with

make && sudo make install

Please refer directly to DIGImend documentation in case they ever change.


Access computer on internal network from Internet

Let's solve:

the ports under 1024 (like 554) are reserved to the Administrator (root), so any software which uses them must be executed as root (or safer with the sudo software). It's a safety measure.
the ports you want to use should be opened, execute those commands:

sudo ufw default deny
sudo ufw enable

...to enable the ufw iptables wrapper. Then execute:

sudo ufw allow <port number>

...for any port number you want to open (81,8000 and 554) to any type of connection from any host (the sintax may vary from version to version, always read man ufw).
The sintax to control the ufw interface is reported here, I suggest to read it.

After that you need to open the ports on your default gateway (a router or a switch) if it features an hardware firewall (like the Netgear and Belkin routers).
Now you have the desired remote access. :-)

Let us know by commenting down here if it's all ok & have a nice experience.


Run sgdisk -Z on sdb and sdc and rebuild the array with mdadm --create /dev/md0 -v -l1 -n2 /dev/sd[bc].


ubuntu 14.04 LTS 64 - bit not working on bootable usb

I use Linux Live USB Creator to make my linux bootable USB. It is pretty intuitive and works fine. You can get it for Windows at Linux Live USB Creator.


Ubuntu Chrome `www.apple.com` video quality problem

This is because videos on apple.com are streamed in a format you can't decode very well without quicktime. Now, quicktime is only supported for windows and mac os x, that's why it's appearing so blurry on your ubuntu desktop.


How do I change xterm's menu background color?

You can try to add the "AntiqueWhite" color for the 3 menus (Main,VT Options & VT fonts).

1) Edit your .Xresources file with your favorite editor:

gedit ~/.Xresources

2) Add the following lines:

XTerm*mainMenu*Background: AntiqueWhite
XTerm*vtMenu*Background: AntiqueWhite
XTerm*fontMenu*Background: AntiqueWhite

3) Load the changes with the following command:

xrdb -merge ~/.Xresources

Hope it helps.


Change keyboard shortcut for page up and page down in Evince

Firstly, just in case you don't know, you can use Space and Shift-Space instead of PgDn and PgUp.

If you still want to change the keybindings, then unfortunately I think that for evince the keybindings are hard-coded. Three possible solutions are:

Switch to atril which is the MATE fork of evince and which allows the customisation of keybindings, at least via an accels file (at ~/.config/atril/accels). For comparison, you could look at, say, ~/.config/nautilus/accels.
Use something with AutoHotkey functionality (for some possibilities, see this stackexchange question).
(If you're feeling adventurous) patch the source of evince and recompile:

To get the source used by Ubuntu:

apt-get source evince

If this doesn't work, uncomment the deb-src lines in /etc/apt/sources.list.

The offending lines, responsible for the bindings in evince are:

add_scroll_binding_keypad (binding_set, GDK_KEY_Page_Up, 0, GTK_SCROLL_PAGE_BACKWARD, GTK_ORIENTATION_VERTICAL);
add_scroll_binding_keypad (binding_set, GDK_KEY_Page_Down, 0, GTK_SCROLL_PAGE_FORWARD, GTK_ORIENTATION_VERTICAL);

in shell/ev-view.c. (See here on GitHub. GitHub link provided for convenience, but preferably don't get the source from there, but via apt-get as described above.)

The lines need to be changed to:

add_scroll_binding_keypad (binding_set, GDK_KEY_Up, GDK_CONTROL_MASK, GTK_SCROLL_PAGE_BACKWARD, GTK_ORIENTATION_VERTICAL);
add_scroll_binding_keypad (binding_set, GDK_KEY_Down, GDK_CONTROL_MASK, GTK_SCROLL_PAGE_FORWARD, GTK_ORIENTATION_VERTICAL);

Note, however, that you won't get security fixes to evince automatically if you compile it yourself.

For reference, if somebody wishes to modify other keyboard shortcuts in evince, some of the action (as opposed to motion) bindings are specified in shell/ev-application.c in the definition of const gchar *action_accels[] (here on GitHub).


How can i remove entries from the messaging menu in 12.10?

For 12.10 and newer:
Go to dconf-editor and then canonical > indicator > messages and remove the app you don't want to see.


Compiz makes CPU run at 100% when in suspend mode in 12.04

What video card do you have?  What driver are you using?

There's a number of bugs that a Google search turns up.

https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/771238
https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/773564
https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/969860

For the 2nd one, a possible solution is to disable the file watcher plugin in ccsm. However, this plugin is not enabled by default, so that solution may not apply.

For the 3rd one, a suggested workaround is to enable either the "Force full screen redraw" or "Vertical synchronization" options in ccsm.

Do any of those bugs seem related?


Add Dropbox’s repository key
  sudo apt-key adv --keyserver pgp.mit.edu --recv-keys 5044912E

Add Dropbox’s repository
  sudo add-apt-repository "deb http://linux.dropbox.com/ubuntu $(lsb_release -sc) main"

Update and install Dropbox
  sudo apt-get update && sudo apt-get install nautilus-dropbox

Follow the steps When dropbox prompted with the screen
For Ubuntu 12.10
Add repository key
sudo apt-key adv --keyserver pgp.mit.edu --recv-keys 5044912E

Add repository
sudo add-apt-repository "deb http://linux.dropbox.com/ubuntu precise main"

Update your system and install Dropbox
sudo apt-get update && sudo apt-get install dropbox

When prompted with the screen, click "Next"

Then click "Start Dropbox" to continue.

On Ubuntu 20.04
Add repo
sudo add-apt-repository "deb http://linux.dropbox.com/ubuntu bionic main"

Import Dropbox GPG key
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1C61A2656FB57B7E4DE0F4C1FC918B335044912E

If the above failed to receive keyserver, use below:
sudo apt-key adv --keyserver pgp.mit.edu --recv-keys 1C61A2656FB57B7E4DE0F4C1FC918B335044912E

Update and install
sudo apt update

sudo apt install python3-gpg dropbox


Ubuntu 13.04 has reached it End of Life(EOL) and its repositories have been moved to an archive server. Use this link to change your sources to the archive server.

However, I would advise you to install a supported version, ie Ubuntu 14.04 or 14.10.


how can i get plugins for gedit for zooming the text file?

If gedit has missing plugins, make sure you have the gedit-plugins installed.

sudo apt-get install gedit-plugins

After that, (you probably need to restart gedit) you will have a plugin called "Text Size".
Make sure the plugin is enabled, and you will be able to "zoom" (i.e. change font size) using Ctrl + Mouse Wheel.

This is the list of plugins available in the gedit-plugins package

$ apt-cache show gedit-plugins
[...]
 The following plugins are included:
  * Git: Git differences
  * Bookmarks: Easy document navigation with bookmarks
  * Bracket Completion: Automatically adds closing brackets.
  * Character Map: Insert special characters just by clicking on them.
  * Code comment: Comment out or uncomment a selected block of code.
  * Color Picker: Pick a color from a dialog and insert its hexadecimal representation.
  * Color Scheme Editor: Source code color scheme editor
  * Commander: Command line interface for advanced editing
  * Dashboard: A Dashboard for new tabs
  * Draw Spaces: Draw Spaces and Tabs
  * Git: Git differences
  * Join/Split Lines: Join several lines or split long ones
  * Multi Edit: Edit document in multiple places at once
  * Smart Spaces: Forget you're not using tabulations.
  * SyncTeX: Synchronize between LaTeX and PDF with gedit and evince.
  * Embedded Terminal: Embed a terminal in the bottom pane.
  * Text Size: Easily increase and decrease the text size
  * Word Completion: Word completion using the completion framework
[...]


How to change wingpanel background color

I think editing the CSS of the GTK theme for the wingpanel/gnomepanel should work. It worked for mine, but I did a lot of messing around and only wanted to change the opacity by 15%.  Also, I am using a regular Gnome shell theme, don't know if that makes any difference, as there may be multiple files telling the panel how to look.


Grails installation error: Err http://ppa.launchpad.net saucy/main amd64 Packages 404 Not Found

Ubuntu 13.10 is no longer supported because it reached its end of life.
You should upgrade to 14.04 or use 12.04, the currently supported LTS versions, to get the newest (security) upgrades.

You are getting the 404 error because the ppa is no longer maintained, most likely because the eol of 13.10.


Unmet dependencies using aptitude to install bind9

The problem is rather simple, somehow you installed a superior version of some of the bind dependencies that are not in the main repository. The way to solve it is to make aptitude to downgrade the packages.

sudo aptitude update
sudo aptitude install bind9=1:9.8.1.dfsg.P1-4 libbind9-80=1:9.8.1.dfsg.P1-4 libdns81=1:9.8.1.dfsg.P1-4 libisc83=1:9.8.1.dfsg.P1-4 libisccc80=1:9.8.1.dfsg.P1-4 libisccfg82=1:9.8.1.dfsg.P1-4 liblwres80=1:9.8.1.dfsg.P1-4
sudo aptitude safe-upgrade

If you want to make aptitude solve the dependencies himself, you only have to say n to the question:

  Keep the following packages at their current version:

  1)     bind9 [Not Installed]

  Accept this solution?

Then aptitude will offer another solution, being the important where it says "downgrade". As you can see the solution offered keeps bind9 uninstalled, that's why you end without installing it.

  how did you reached at conclusion that the packages I have are not in repositories is it because of .dfsg.P1 extensions or some thing else?

apt-cache policy lists the origin and version of any packages, which in your case were only in /var/lib/dpkg/status, which is interpreted as that the package only exist locally and in no other repositories. A example of a package that indicates is in both the repositories and locally:

apt-cache policy aptitude
aptitude:
  Installed: 0.6.8.1-2ubuntu2
  Candidate: 0.6.8.1-2ubuntu2
  Version table:
 *** 0.6.8.1-2ubuntu2 0
        500 http://archive.ubuntu.com/ubuntu/ raring/main amd64 Packages
        100 /var/lib/dpkg/status

As you can see, the same version is in /var/lib/dpkg/status and in the Ubuntu repositories.


You can use Compiz Settings Manager for this.
 sudo apt-get install compizconfig-settings-manager

Run it from the Dash and navigate to  Enhanced Zoom Desktop.
Enable it by putting the tick. You can put the keys bindings for Zooming in and Zooming out.

For Ubuntu 16.04

Press Ctrl + Alt + T
The terminal opens, type
apt install compizconfig-settings-manager

Go to Ubuntu icon on Top Left corner of desktop

Click on it and type compiz

Click on the compiz icon that appers in the window
The following window opens:

Click on OK
Go to Accebility --> Enhanced Zoom Desktop --> Tick the box

Click on Enhanced Zoom Desktop

Click on Zoom In Key --> Disabled

Tick the box Enabled

Click on Grab Key Combination

Press together
Ctrl + F7

Click on OK

Click on Zoom Out Key --> Disabled

Tick on the box Enabled

Click on Grab Key Combination

Press  together
Ctrl + F6

Click on OK

Close the window

From now on
to Zoom In press
Ctrl + F7
and to Zoom Out press
Ctrl + F6


You can find Ogre3D 1.9 in OpenMW launchpad PPA. Go to terminal and call each command (you will have to confirm addition of new PPA, wait for repositories database to update and then confirm the installation of new packages):

sudo add-apt-repository ppa:openmw/openmw
sudo apt-get update
sudo apt-get install libogre-1.9-dev libogre-1.9.0 libboost1.54-dev libboost-thread1.54-dev

Works in Ubuntu GNOME 13.10, it probably will work in earlier versions as well but might require to install more dependencies - just add every package it complains about in sudo apt-get install call.

In Ubuntu GNOME 14.04 package is already in repositories so all you need to do is:

sudo apt-get install libogre-1.9-dev


Run Bash scripts in folder all at the same time

GNU parallel is perfect for this sort of thing. Install with sudo apt install parallel and then:

parallel -j0 ::: my_folder/*sh

The -j controls how many processes t run in parallel, and -j0 means "all of them". Set it to another value (e.g. -j20) to run the scripts in batches instead.


would you be open to a more modern (and more akin to 18.04/19.04) solution ?

if so then run  (this will reboot your system when it's done) :

sudo apt-add-repository ppa:alexlarsson/flatpak -y && sudo apt update && sudo apt install gnome-software-plugin-flatpak -y && sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo && sudo reboot

then open up the software center and type "HydraPaper" and install what comes up.

then you may run HydraPaper and :

for future reference you can check (and always should check) the date of a question/answer like so :

the "Dec '13'13" in that rectangle translates to "the 13th of december in 2013"

the user states he is using ubuntu 13.04 right after his diagram.


Ubuntu 18.04 LTS (dual booted with Windows 10) is stuck at "Started Hold until boot process finishes up"

Boot a live USB/recovery CD and run gparted, then while your Ubuntu partition is unmounted you can add the unallocated drive space to it. You should backup essential files and probably ~./config to your Windows partition, preferably even an external HDD, in case something goes wrong.

https://serverfault.com/questions/509468/how-to-extend-an-ext4-partition-and-filesystem

https://help.ubuntu.com/community/HowtoPartition


VM Player cannot connect to Windows10 Host virtual device sata0:1

Here it is- dont really know what is the cause of the issue, but the Solution is it is a non-issue. I do not have a CD/DVD Drive on my host at all so I don't know what sata drive it is trying to connect and why. The error gives me an option of 'Don't try connect next time' - picking yes - eliminates the error next time. Also I removed the CD/DVD Drive from the configuration.

Also my Share folder host/guest was always working fine.


Unable to boot after Ubuntu upgrade from 18.04 to 20.04

in the grub menu you can edit/read the commands grub's going to execute.
There are 3 commands that are important:

set root='hdX,msdosX'
linux /boot/vmlinuz-5.X root=Y ...
initrd  /boot/initrd.img-5.X

you can remove quiet splash behind the linux command, so you will get more infos, what's happening during the boot.


skype 4.3 cannot connect to account on ubuntu 14.04 LTS

Skype has some issues today, wait some time and check later again.

http://heartbeat.skype.com/2015/09/skype_presence_issues.html

In the meantime you can use skype web service as a workaround.

Open web.skype.com in your browser and log in to skype service.

Updated information from Skype :

"We have identified the network issue which prevented users from logging in and using Skype today. We're in the process of reconnecting our users, and focused on restoring full service."

Recommendation to ubuntu users :

As this problem is close to being off-topic : first check  http://heartbeat.skype.com/  in the future !


Introduction

The simple script bellow allows taking a file as argument and sets the launcher to have whatever shortcuts to programs appear in the file (one per line).

Basic idea is that the launcher icons are actually links to .desktop files (wherever they may appear) , and canonical method to set the launcher items is to run the following command:

gsettings set com.canonical.Unity.Launcher favorites  "[ 'item1.desktop' , 'item2.desktop' , . . . 'item3.desktop;  ]"

This can get tedious if you want to add many items and quoting can become a pain. One can always open a desired program and right click on the icon to invoke the "Lock to launcher" option, but that also is not practical when you're dealing with large amount of items.

The approach taken here is to simply read a file, with 1 time per line, build up the command text , and execute it. This is no different from running the gsettings set command above, except that the hard work is done for you.

Usage:

To run the script , save it to a file, make it executable with chmod +x /path/to/script and run as

python /path/to/script /path/to/file

The input file should contain full path to the items you want added to the launcher, such as /usr/share/applications/firefox.desktop , but it's not necessary , a line with firefox.desktop is OK too.

Demo

Before running the script

After running the script

Note that the order is exactly the same as the entries appear in the input file

Script Source

#!/usr/bin/env python
# Author: Serg Kolo
# Date: April 22, 2016
# Purpose:  programmatically set Unity launcher items
# by reading a file
# Written for: http://askubuntu.com/q/760895/295286
# Tested on: Ubuntu 14.04 LTS
import sys
import subprocess

command="""gsettings set com.canonical.Unity.Launcher favorites """

def run_command(cmd):
    p = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE)
    output = p.stdout.read().strip()
    return output

items=""
with open(sys.argv[1]) as file:
  for line in file:
      temp = "'" + line.strip().split('/')[-1] + "'"
      items = ",".join([items,temp])

items = '"[ ' + items[1:] + ' ]"'

print run_command(command + " " + items)


Ubuntu 18.04 fails to mount SD card while Windows 10 reads it perfectly

Have you tried this help: https://help.ubuntu.com/stable/ubuntu-help/hardware-cardreader.html.en  ?

Summary: open the Files app in the Activities list, and look under Other Activities for your sd card.

See also my question: internal sd card reader works, but without automount


Should I be concerned about COMRESET errors with my SSD?

The COMRESET line is simply a side-effect of the previous line in the log:

ata1: link is slow to respond, please be patient (ready=0)

If everything seems to be working fine, all that means is that the device (SSD) takes a few seconds to "wake up", and impatient Ubuntu spits out warnings.

The very next line shows that the device wakes up half-a-second after the warning:

ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)

All in all, no problems and nothing to worry about. Cached reads are a synthetic benchmark and your rate is certainly speedy enough; naturally, at 5 GB/sec you may be limited by the full disk encryption. The buffered reads are what matter and they are way up there :)


Resize partition using Gparted without losing data

The comments say it all. Your answer is, when it comes to resizing partitions, there is no guarantee that you will not lose data. Tools like Gparted are going to do their best to prevent data loss, but nothing is 100% guaranteed.

When you use Gparted to resize (it's actually going to use other command-line tools) it will do it's best to move all of the data out of the space being reclaimed before actually shrinking the partition.

Kev Inski is right, you should back everything up first. Then, and only then, should you attempt to resize the partition. If shrinking happens to cause a loss of data, it's not really lost because you backed it up first!


apci pcc probe failed after upgrade from 14.04 to 15.04

From this topic:
https://askubuntu.com/a/605455/101797

Try this solution:

  Restart your computer, as it boots up hold the Shift key so as to
  get grub boot options.
  Select Advanced Options from the grub menu and boot into the system.
  Enter your login details and run the commands below

  Commands:

sudo systemctl enable sddm.service -f
sudo reboot

  After this your computer should be able to boot up normally.


I want to setup Active directory in Ubuntu server for mix environmet (Windows/linux) to authenticate

Here are some resources I have found that may be of help to you. According to these, there are several different options but most of them center around the use of Samba4 with OpenLDAP.

http://linuxdrops.com/install-samba-4-on-centos-rhel-fedora-debian-ubuntu/

http://www.ittables.com/2013/06/samba-4-active-directory-configuration.html


Is it safe to run the upgrade process even though it says many packages will be removed?

With ubuntu upgrade there are pretty much ALWAYS discarded programs and libraries, usually replaced with some new tools. this is what installer is telling you about.
Please be aware no configs are removed for those programs, so if you miss the program you should be able to install it manually and reuse the configs you have in your /home dir.
I would still advise a backup and full fresh install :) Dell laptops work very well with default ubuntu installation (multiple dells user here)


Ubuntu wiped the entire hard drive after selecting reinstall ubuntu option

The data recovery process of partial files requires a professional forensic support if the file is very important.
If the file is not very important (ex. it's not a bank code) you can try to use Open Source software like PhotoRec Digital Picture and File Recovery which is a friendly and unobtrusive alternative to TestDisk.
To start the RECOVERY procedure on your Linux system follow the Official PhotoRec guide.
Always make backups of your data before and after using any file recovery tool.
Every time you or the system write on the HD/SSD a deleted chunk of file may be overwritten; after 7 overwrites many files will not be recoverable without forensic support.
NOTE: do not recover your files on the partition where you previously deleted them.
To backup your personal files use any application from the repository; to backup your system use professional Open Source tools like Relax-and-Recover. Do not make backups on USB media, use a DVD or a cloud-based system (I suggest Ubuntu Cloud partners for an Open solution).


Error when using "ubuntu-vm-builder" command to create Ubuntu11.10 guest on Ubuntu11.10 host

I was building a 10.04 image on a 11.04 server and had to do the following to get it to work:

Edit VMBuilder's dapper.py (even if you're not building dapper).  Mine was located at /usr/lib/python2.7/dist-packages/VMBuilder/plugins/ubuntu/dapper.py
Search for "def unmount_dev(self):" and add the two 'sleep' and 'chroot' commands to match the following:

def unmount_dev(self):
    self.context.cancel_cleanup(self.unmount_dev)
    run_cmd('sleep', '10')
    run_cmd('chroot', '%s' % self.context.chroot_dir, '/etc/init.d/cron','stop')
    run_cmd('umount', '%s/dev' % self.context.chroot_dir)

See https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/879710 for more info.


Change the delay that occurs after entering an incorrect password in the gdm3 login-screen?

After a lot of digging into the gnome-shell and gdm source code, the problem seems to have been fixed by these two commits:

f4d90bc127ececb653ee399493839f17932b7622 - "polkitAgent: Reset the session request timeout when removing it"

8d139bbd95a5d62e0ba20b711a10a8b669cb9e9d - "authPrompt: Grab key focus when making entry sensitive"

These fix the issue where the input box doesn't get focused for 3 seconds after the shaking stops.
These changes are there in Gnome 3.36.2, and updating to that version fixes the issue. Now you can type even while the box is shaking.
To disable the shaking see @PRATAP's answer.


Networking stopped working on Ubuntu 10.04

type the command ifconfig and post the information out here, then try to up your ethX via command: ifconfig ethX up (X depends on your own network adapter number, eth0 for me).

ifconfig ethX down # this command can bring your ethX down

I just propose this potential answer to make other specialist to focus on your question, hope it helps. :D

UPDATED ANSWER:

Possible reasons I can tell:
1) your ethX is down by default, so ifconfig can't print it out. Try ip link show to find out your X number, and bring it up.

2) make sue your network adapter is properly inserted on your mainboard. (you mentioned it's ok for windows, so it's not the point of this issue :D

3) ethX is a virtual device, refer to no /dev entry, so if the system can't detect your ethX, it means that your need to add network card support to the kernel if you recompiled it!!!(since you mentioned you fixed a issue of your graphic card, so I think you may recompile your kernel or replaced a new one which may not support network card?)

4). SORRY, i've no idea, need other specialists' support :D


Define a compose key. Then you should be able to do:
Compose followed by < followed by < => «
This page shows other combinations which are available out of the box.


Can I cleanup "passphrase-ssh-key" folders in /tmp

It's generally not a good idea to delete files in /tmp since they may be in use by currently running processes or part of active connections.  Doing so probably wouldn't cause any major damage but it could disrupt the stability of the running system.

I'm sure you know that /tmp gets cleaned out on reboot.

If this isn't hyperbole, several million files in /tmp would be somewhat worrisome to me.


How to print the directory tree in terminal

You can use tree to print the directory tree in terminal. Install tree from terminal,

sudo apt-get install tree

To see the directory tree, use

tree /path/to/folder

Or navigate to a directory and just use

tree

It has some advanced options too. You can see owner's username, groupname, date of last modification of a file/folder and so on using tree. It supports directory colors of ls so you can see colourized outputs.

See man tree for more.


Where are packages stored installed with APT in Ubuntu 16.04?

If you use apt instead of apt-get, the default is not to store debs anywhere if the apt install is successful.

From /usr/share/doc/apt/NEWS.Debian.gz:

  apt (1.2~exp1) experimental; urgency=medium

  [ Automatic removal of debs after install ]
    After packages are successfully installed by apt(8),
    the corresponding .deb package files will be
    removed from the /var/cache/apt/archives cache directory.

  This can be changed by setting the apt configuration option
      Binary::apt::APT::Keep-Downloaded-Packages to true. E.g:

# echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' \
> /etc/apt/apt.conf.d/01keep-debs

  Please note that the behavior of apt-get is unchanged. The
    downloaded debs will be kept in the cache directory after they
    are installed. To enable the behavior for other tools, you can set
    APT::Keep-Downloaded-Packages to false.


Keep saved wifi spots when reinstalling Ubuntu

There is a folder on your filesystem that keeps all the network profiles.
That folder is

/etc/NetworkManager/system-connections

If you copy that onto a USB stick, you should be able to paste the content of it into the new install's system-connections folder.

Similar question here.


It's a good idea to make sure that your device is safe from spyware viruses and anything that can harm it and preferably before the damage done, you can schedule regular scans once a week or check if your antivirus gives full protection.
In any case, a virus in Windows can affect the functionality of the system and Ubuntu.
If you do not feel safe with the defenses on your device, you can replace an anti-virus for your safety.
 to know more about recommended antiviruses that can protect your device for better use at Ubuntu, this might help you.
https://www.safetydetective.com/best-antivirus/linux/


During install your are prompted on what to do. Choose 'manual configuration'. Select the 30Gb disc (probably called sdb1; but check the size for it being around 30Gb) and create partitions on that disc. One of these needs to be called /, you also 'need' a swap and preferably a /home and this will be used as the start up disc.

The 160 Gb disc you can mount with a mount point (example /documents or /pluto.) The system will create a directory inside the root system with that name where this disc is accessible (after you set the correct permissions) for you to store documents on.

Permissions (from terminal): chown $USER:$USER /{mountpont} Just change the {mountpoint} and the $USER will be dealt with by the system.


How do i convert .dwg to .dxf with free software?

ODA File Converter
(Formerly known as Teigha File Converter)
This is 'free as in beer' software however I have no other alternative.
There is a DEB package for installing on Ubuntu 32-bit.
However, for Ubuntu 64-bit users, like myself, you are relegated to downloading the Windows installer and using Wine to install it. Note that you will need Wine version >= 1.3.5 otherwise MSVC++2010 installer crashes.


Install Ubuntu in another partition (if you are in doubt, just choose a partition to swap and another to /). Grub will be installed and windows 10 will be identified automatically resulting in dual boot option on boot.


Offline Dictionary Extension to run in background

Stardict used to do this, but hasn't been developed in years.

Maybe one of these will work, they mostly seem to require internet access, though.: http://alternativeto.net/software/stardict/


Error in a build plan for Docker with MQ

A member of my team (Darren) came up with a solution.  Docker uses a default of 2g.  Changed the docker command so it had parameters -m 4g  to get extra memory.


Ok actualy its fine running the perf against debug kernel when only normal kernel is loaded.

Btw the kernel was installed with this tutorial for systemtap:
https://wiki.ubuntu.com/Kernel/Systemtap

I noticed few things - the debug kernel is already extracted - the name is vmlinux not vmlinuz and its big..

the second thing when I load it into gdb I see the exactly same number and the time of build is same as my loaded non-debug kernel:

uname -a
Linux delo 3.13.0-55-generic #94-Ubuntu SMP Thu Jun 18 00:27:10 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

and the gdb (based on this:

(gdb) print init_uts_ns.name
$1 = {sysname = "Linux", '\000' <repeats 59 times>, nodename = "(none)", '\000' <repeats 58 times>,
release = "3.13.0-55-generic", '\000' <repeats 47 times>, version =
"#94-Ubuntu SMP Thu Jun 18 00:27:10 UTC 2015", '\000' <repeats 21 times>,
machine = "x86_64", '\000' <repeats 58 times>, domainname = "(none)", '\000' <repeats 58 times>}

I mean the part #94... is the same.

When I run the recorded perf with :

perf report -g -k /usr/lib/debug/boot/vmlinux-3.13.0-55-generic

it actualy works fine - I see the kernel symbols translated to real functions(-g is just for calltrace):

- 3,18%  app  [kernel.kallsyms]  [k] copy_user_enhanced_fast_string
 - copy_user_enhanced_fast_string
  - 98,98% system_call
     -syscall
       68,60% 0xbeef0100
       31,40% 0xbeee0100
  + 0,54% generic_file_aio_read

someone told me that when the kernel booted and kernel used by perf wouldnt align then I would definitely see it - the functions to kernel samples wouldnt make sense (just some random data instead of real name).


For some reason I had to change my wi-fi security from WPA and WPA2 to only WPA2... With that I can find my home wi-fi with no problems..


Xubuntu 14.04.1 LTS - Thumb drive not auto-mounting

I saw a suggestion elsewhere about using KDE partition manager to recreate the existing filesystem on a usb stick, tried that on mine as I was not able to automount. It erases the drive but now it works! I also had to go into system settings and check the boxes for automount, but that was only accessible after the filesystem recreate.


What can cause "Missing Package: header, Problem with MergeList, The package lists or status file could not be parsed or opened" errors?

The file /var/lib/apt/lists/XXX-amd64_Packages contains different sections separated by blank lines. Each sections consist of multiple fields that look like

 KEY: VALUE

If VALUE contains more than one line each line has to start with a whitespace character.

For example (I removed some lines here):

Package: rapid-photo-downloader
Priority: optional
Section: graphics
Description: Photo and video importer from cameras, memory cards and other devices
 Rapid Photo Downloader is written by a photographer for professional and
 amateur photographers. It can  download photos and videos from multiple
 cameras, memory cards and Portable Storage Devices simultaneously. It
 provides many flexible, user-defined options for subfolder creation,
 photo and video renaming, and backup.
Python-Version: 2.7

Each section describes a package and needs to have a Package: field that contains the package name.

You get this error because one of those sections doesn't have a Package: field.

Find this invalid section and try to find out why the field is missing:

Check the corresponding Packages.gz or Packages.bz2 file on your server
Check the debian/control file in the corresponding .deb package and its source

My first guess would be a Description: field in debian/control containing a blank line.


Can I mount an ISO without administrative privileges?

To mount an ISO without administrator privileges you can use fuseiso:

fuseiso image.iso ~/mountdir

Unmount the image using fusermount:

fusermount -u ~/mountdir

If you don't have fuseiso you will have to install it from the repositories:

sudo apt-get install fuseiso

You will need administrator privileges to install.


What does this specification mean --> Graphics card and monitor capable of 800x600?

Your video chipset is listed as an Intel i945GM, that should work fine in 11.04.


How to "reset" python installation in ubuntu 14.04?

As stated here you can remove packages installed by pip with this command:

pip freeze | xargs pip uninstall -y


How can I lock application windows to a certain virtual desktop?

Here is how I do it in 11.04. I hope it would be same for you.

Go to compiz settings manager-> Window managment -> Place Windows -> Fixed Windows placements. In the section of "Windows with fixed viewport" click New. Click on "+". Click on Grab and then click the window you want to be placed on specific descktop. Click "Add". Set the value of "X Viewport Positions" to the desired desktop number. That's all.


Display files permissions in number format i.e "0755"?

You can display the octal permissions for a file using the stat command:

stat -c %a [filename]

Or by using find:

find [path] -printf '%m %p\n'

Note that find is recursive, and will print all files in all subdirectories as well. You can use options like maxdepth or prune to stop it from recursing.


Wireless n-networks in Ubuntu 13.04 and WICD

Please verify that your driver is iwlwifi.

lsmod | grep iwl

If you wish to disable N speeds in order to connect seamlessly, add to one file:

gksudo gedit /etc/modprobe.d/iwlwifi.conf

At the end of the file, add a new line:

options iwlwifi 11n_disable=1

Proofread, save and close gedit. After a reboot, you should be all set. If you are able to connect to home and work networks without any issues, this is not necessary.


Just went through exact same problem. Synology site explains how to do this on some ancient ubuntu, but on current version with unity "places->connect server" doesn't exist.

Anyway, just now I managed to get access using this in 5min. It kinda assumes you know how to use basic command line and file editing. If you have problems ask.


Remove calculator from snap and install calculator using apt:

sudo snap remove gnome-calculator
sudo apt install gnome-calculator

Or, if you want to do it using snap and stable version does not work for you, you could try --candidate channel:

sudo snap install gnome-calculator --candidate

To get a list of available package channels:

$ snap info gnome-calculator

channels:
  latest/stable:    3.36.0+git4.51b0dc05  2020-04-24 (730) 2MB -
  latest/candidate: 3.36.0+git6.ce3683c7  2020-04-26 (734) 2MB -
  latest/beta:      ↑
  latest/edge:      3.36.0+git11.84df8faa 2020-04-26 (733) 2MB -
installed:          3.36.0+git6.ce3683c7             (734) 2MB -

As an alternative, you could install and try different calculator applications:

sudo apt install qalculate
sudo apt install kcalc

The next command will show you a list of some available calculator applications you could choose from:

apt-cache search calculator | grep calculator


fatal error while using Java3d on newer ubuntu version than 11.10

I found a solution!

Update to java3d 1.6. as seen here:
https://gouessej.wordpress.com/2012/08/01/java-3d-est-de-retour-java-3d-is-back/

BTW it is very important to clean up/uninstall  your old java3d before.

Hope this helps.


You have a space between HEAD: and refs/for/BR_PS_1109 which souldn't be there. Remove the space and it should work:

  git push gerrit HEAD:refs/for/BR_PS_1109


nginx.service: Can't open PID file /run/nginx

Just stumbled across your question and thought to leave a short answer:

Systemd does NOT create PID files by itsef. It expects the executables to create it (usually within the /run, or specifically for Ubuntu within the /var/run folder). Systemd only checks, if it has been created after the service started. It also deletes the PID file when killing the service. Reference

Nginx server as forking process does support creating a PID file. To change its location, you may use the pid directive in its nginx.conf file, which you may find in the /etc/nginx folder for the standard package. This pid directive defaults to logs/nginx.pid. Reference

When manually creating the Nginx service, you need to make sure, that both locations within your Systemd nginx.service file and within your Nginx nginx.conf configuration file match.


Your shell script uses Windows line endings(CR+LF). You need to convert it to Unix line endings (LF), for example using dos2unix.


Install Ubuntu to USB Flash Drives Automatically

Create a script doing all the necessary steps and execute it after installation.

For example:

#!/bin/bash

set -e

apt update
apt install -y \
    vlc \
    curl \
    git \
    filezilla \
    ... others to be installed

apt purge -y \
    thunderbird \
    ... others to be uninstalled

gsettings set org.gnome.shell.extensions.desktop-icons show-trash false

apt upgrade -y
apt autoremove -y

You can even put the script somewhere online and run it via

wget -qO- https://example.com/script.sh | sudo bash


How to create a local calendar on Ubuntu Phone

The easiest way to create a second calendar is via the commandline on the Ubuntu Phone:
syncevolution --create-database backend=evolution-calendar database=Hollidays
'Hollidays' is the name of the new calendar


Problems with Psychonauts and the Ubuntu Software Center?

You only course of action is to re-download the game. If you continue having the problem you should contact Ubuntu Payment Service support.

The error you describe in your note means that you had another application open that was working on the package management (like update manager or USC). You can only use one at a time.


How do I get Nvidia graphics working with kernel 5.10 on Ubuntu 20.10?

the latest https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.10/amd64/ seems to work properly with drivers from PPA (455.45.01).


"mei_me 0000:00:16.0: no destination client found 0x00002285" spamming logfile, fix?

I had the same case as above, with Ubuntu 14.04, Lenovo Thinkpad (W540), and huge syslog and kern.log files (which were eating my root partition free space). The logs were rotating, as seen in /etc/logrotate.d/ (grep helps). After analysing the log files (check out this related answer), the line .0: no destination client found 0x00000585 was repeated zillions of times in both logs. Following the suggestions found above, I did the following in the BIOS:

Disabled Wake on Lan Ethernet
Disabled Ethernet Lan Opt ROM
Changed Network Boot from PCI Lan to my first internal HD
Disabled Intel Smart Connect Technology

I deleted the content from both logs (again, check out this related answer) and after monitoring the logs the message of "no destination client found" is not appearing again.


NFS Share - trying to mount my Synology 1511+ NAS

Unlike NFSv3, NFSv4 hides the prefix of the exported path (the NFS root). The prefix is configured in the exports on the NAS.

Try:

mount -t nfs4 -o proto=tcp,port=2049 192.168.1.139:/magneto/ ./test

Or:

mount -t nfs4 -o proto=tcp,port=2049 192.168.1.139:/ ./test


403 is for forbidden access. Is the content there readable by apache (its owner should be www-data)?

sudo chown -Rf www-data:www-data /var/www


Have you tried something like this:

network:
    version: 2
    renderer: networkd
    ethernets:
        ens1: {}

    vlans:
        vlan2:
            dhcp4: no
            dhcp6: no
            accept-ra: no
            id: 2
            link: ens1
        vlan3:
            dhcp4: no
            dhcp6: no
            accept-ra: no
            id: 3
            link: ens1

    bridges:
        br2:
            dhcp4: no
            dhcp6: no
            interfaces: [ vlan2 ]
        br3:
            dhcp4: no
            dhcp6: no
            interfaces: [ vlan3 ]

This would essentially create a switch attached to ens1, "trunking" for vlans 2 & 3.


Subscribe to mail folders with evolution-ews on an EWS server

Via Edit - Preferences - Mail Accounts - Edit


it might sound obvious, but it might be good to first check the simple solutions. have you tried to disconnect your keyboard or to plug in an other keyboard (if you have one laying around). If it for some reason sends a alt-t signal it could explain the problem.


Apply display settings to all user accounts?

Depending on the way you've set up your system, it might be as easy as copying the monitors.xml file from the correctly set-up user to all users:

To test this for one user:

cp --preserve=timestamps /home/CorrectUser/.config/monitors.xml /home/TestUser/.config/

then log off TestUser if already logged in, log back on and see whether everything is correct.

The command for all users:

cp /home/CorrectUser/.config/monitors.xml /tmp/
for szUser in /home/* ; do sudo cp --preserve=timestamps /tmp/monitors.xml $szUser/.config/ ; done

The command for the login screen:

sudo cp --preserve=timestamps /home/CorrectUser/.config/monitors.xml /var/lib/lightdm/.config/

The command for all future users¹:

sudo mdkdir -p /etc/skel/.config
sudo cp --preserve=timestamps /home/CorrectUser/.config/monitors.xml /etc/skel/.config/

Note¹: All users you'll be creating in the future


How to restart Ubuntu upgrade from command line?

I'm not very much sure about how to restart the packages, I would advice you to download the Ubuntu image from here or from torrent and install it from a CD or flash drive.

12.04 has got a very good set of options to Install 'Freshly' or 'Upgrade it from 11.10'. This way it would be a lot more stabler without any interruptions and moreover it will be quick.


Did that upgrade include the kernel? If that's the case, try running the older kernel version from the grub boot screen.

Reboot your PC and when you see grub choose advanced options for Ubuntu and select the previous kernel version from the list, if you can't see grub at boot, press the left Shift key after the bios screen.

You should also look at the output of the terminal command dmesg for any hints at what may be going wrong.


Can I have Ubuntu, Xubuntu and Lubuntu desktop sessions installed without having the applications from the one in the other?

If I understand you correctly, you maybe referring to multiple entries for the same program. Evince would be a good example because it is common to Lubuntu, Ubuntu and Xubuntu.

What you could do is to go into /usr/share/applications and hunt down "common" .desktop files. Sudo edit the "Name" lines to make them distinct if you wish or add NoDisplay=True to the end of whichever .desktop file you don't wish to see as an entry.

Based on your comment, it appears that if you're using KDE (for example, since you mentioned Konqueror in the comment), you don't want to see Firefox or Chromium in KDE menus.

There are two possible entries you can add to the relevant .desktop file. Use:

NotShowIn=KDE;

to prevent an app from being seen in a specific desktop environment, KDE, in this case.

Or, you could go the other way and add

OnlyShowIn=XFCE;

or

OnlyShowIn=Unity;

to restrict an app's visibility to a specific desktop environment, XFCE or Unity, for example..

In any case, do look at http://standards.freedesktop.org/desktop-entry-spec/latest/ for detailed information.

Just to be clear, I don't know of any way to do what you want automatically without the hassle of sudo editing each file.


There is really no need to uninstall. You can simply press Ctrl+Alt+F1 or open Terminal. Log in there with your username and password.

Now, on the terminal, type:

sudo apt-get install xubuntu-desktop

to get Xubuntu, or

sudo apt-get install lubuntu-desktop

to install Lubuntu.

You will be prompted for your password. Enter it and press Enter. If will not be shown, not even asterisks. Let the commend finish(it may take quote a while as it downloads packages). You can then pick the desktop environment as follows:

When you get to the logon screen, there will be a little white circle to the right of your username. Click it, and you will get a choice of environments. IIRC once you pick one it will remain until you change it.

Screenshot below:

Click the circle:

and select the DE you want:


Your driver needs upgraded let's do:

wget http://de.archive.ubuntu.com/ubuntu/pool/restricted/b/bcmwl/bcmwl-kernel-source_6.30.223.248+bdcom-0ubuntu1_amd64.deb
sudo apt-get install build-essential dkms linux-headers-generic
sudo apt-get remove --purge bcmwl-kernel source
sudo dpkg -i *.deb

If wget is not installed you will need to install it.
If you still have issues after the new driver is installed post fresh information from the script so we can take a close look at your router settings.

Change your encryption in your router to wpa2 AES CCMP only not mixed mode and not TKIP.

You may want to try different channels in your router and see one works better then the other.

Set IPV6 to ignore in network manager.


Upgraded Lubuntu 14.10 to 15.04, now get "Kernel Panic: not syncing VFS: Unable to mount root fs."

sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer

Then pick Ubuntu, with Linux 3.16.0-36-generic to be the default boot (since it works for you). After this go to the following file:

sudo gedit /etc/default/grub

Then change the grub timeout

GRUB_TIMEOUT=0

Save and reboot.


Kubuntu 16.04: WiFi authentication recently stopped working

Run in a terminal

sudo tee /etc/modprobe.d/iwlwifi-opt.conf <<< "options iwlwifi 11n_disable=8"

and reboot.


Missing CD Quality, Lossy profile in Preferred Formats in RhythmBox

I found the answer.  Evidently, some of the values in the GStreamer pipeline string were not just right.  I found the default setting and set it to that and it is now showing in the list.


How do I determine the path to a binary of a process?

The /proc way would be to inspect the exe link in the directory corresponding to the pid.

Let's take an example with update-notifier:

Find the pid, which is 15421 in this example:

egil@gud:~$ ps x | grep update-notifier
 2405 pts/4    S+     0:00 grep update-notifier
15421 ?        Sl     0:00 update-notifier

Look up the symbolic link:

egil@gud:~$ file /proc/15421/exe
/proc/15421/exe: symbolic link to `/usr/bin/update-notifier'


mount.nfs: Failed to resolve server /: Name or service not known

Check that you started NFS server and exported the DataStore location on the //10.95.176.67 server.  If it was using cifs/samba before then maybe nfs isn't enabled and configured.


Festival text-to-speech ignores `current-voice` defined in `.festivalrc` in 20.04

This is very much a hack, and while it solves my immediate problem, I don't consider it a solution.

It is possible to override the call to set_voice_default, by (sudo) editing the /usr/share/festival/voices.scm file and adding the (set! voice_default 'voice_en1_embrola) near the bottom of that file like so:

--- a/usr/share/festival/voices.scm
+++ b/usr/share/festival/voices.scm
@@ -437,4 +437,5 @@

 (set_voice_default default-voice-priority-list)
+(set! voice_default 'voice_en1_embrola)
 (provide 'voices)


It sounds like you just want to start with a basic terminal and go from there. Fortunately, Ubuntu has a couple versions that are designed for practically exactly this:

Ubuntu Server Edition
Ubuntu Server can be installed on non-servers just fine, as a matter of fact. You'll get full UEFI support out-of-the-box and the capability to install X and whatever DM you want without the standard overhead.
Ubuntu Minimal Edition
If you want to go even lighter, you can use the Minimal Edition, which is specially designed to only include the absolute core of Ubuntu. However, you lose the capability to run stuff like UEFI boot and other features, but they can be added if you want/try enough.

Both of these will give you just a shell (with Ubuntu Server giving you a bit more of a full stack if you don't want to mess around with things), and will allow you to install X and do whatever you please with a DM if that's the way you want to go.


Anything you do on your server to secure it can be discovered and undone by someone with physical access.
This is a losing battle. Restrict physical access.


Do i need to install a driver to fix unstable wireless connection?

I had the same  problem. I tried many solutions but never worked. In my search I found out various reasons for the problem

You need to disable ipv6 in your browser.
Update the kernel.
Switch your router to G mode from N mode(or the vice-versa).

But after failing in all these attempts and a few more other. I formatted with 10.10 and configured the desktop(which was the main reason I upgraded to 11.10)

P.S: I would advise you to downgrade to 10.10 and give ubuntu sometime to improve on these issues. I'm sure they will.


You can't anchor a given process line to the top but htop can follow a process if you press Shift+F. From the man page:

   F    "Follow" process: if the sort order causes the currently  selected
        process  to  move  in  the list, make the selection bar follow it.
        This is useful for monitoring a process: this way, you can keep  a
        process  always  visible  on  screen. When a movement key is used,
        "follow" loses effect.

Here I'm following my Firefox process:

Note that if you're only interested in one particular process, the -p <pid> will do what you want (12352 is the pid of Firefox on my system):

$ htop -p 12352


Is the memory empty after power off ubuntu

If you turn off your machine, power (or refresh cycles) that are needed to allow RAM to keep its contents are gone so it will soon lose it's contents and become meaningless (or random).

In theory RAM can survive up to ~15 seconds after power is cut (depends on a lot of factors, hardware & esp. temperature -- you can super-cool chips to prolong the loss up beyond 15 mins if you're lucky) - but you need physical access to the machine of course to take advantage of this.

Yes once power is cut, memory will lose contents, but it's not instantaneous, but we can usually ignore these extreme cold-hacks.

ROM is read-only memory, and doesn't need power to keep it's value.

BIOS is either stored in ROM, EPROM (erasable programming ROM used on really old hardware) or flash-memory (allowing you to change its contents with programs for update purposes) - none of these require power, so values don't get lost with power.


How can I convert an iTunes WAV music library to FLAC from the command line?

To simply convert files from Windows WAV to FLAC on the commandline the official tool flac  would be the obvious choice.

flac ~/Music/*.wav

would convert all WAV files from the Music directory in your HOME to flac. By using the option:

flac --keep-foreign-metadata ~/Music/*.wav

even non-flac metadata will be preserved in your resulting *.flac file. However if - as you say - your files are not tagged there is not an easy way to achieve correct metatags. Some tools like metaflac from the flac package can import metatags from file but these files need to meet specific criteria for appropriate tag recognition involving conversion of your XML file.

Therefore I would rather recommend one of the graphical solutions like Ex Falso  or
Musicbrainz Picard  that offer the creation of metatags from filenames (in case they are appropriate).

Picard also has a tool to auto-recognize a not tagged song to look it up in the Musicbrainz library and create appropriate metatags.

Before playing around with tags it is strongly recommended to backup your original files in case something goes wrong. I speak of own experience when tagging of multiple files resulted in entirely wrong and bad tags that led to almost unretrievable originals as these files were listed with a (random) wrong name in my library.


You can make shortcuts for folders by running the below command,

ln -s /path/to/the/original/directory /path/to/the/directorry/in/which/you/want/to/put/the/shortcut/file

Example,

ln -s ~/Pictures ~/Desktop

It will create shortcut for Pictures directory on your Desktop.


How to copy the recovered data from Photorec to an external HD

Most likely you haven't set the location to save the files to correctly - I seem to remember it defaults to an unfortunate place.

You need to select your mounted external hard drive at this step:
http://www.cgsecurity.org/wiki/PhotoRec_Step_By_Step#Select_where_recovered_files_should_be_written


My hard disc or pndrive is detected by ubuntu but it is not appearing on the computer

They might not be automatically mounting because there's a setting that needs to be done. First, unplug your external hard drive/USB stick, then type the following in a terminal:

gsettings set org.gnome.desktop.media-handling automount true
gsettings set org.gnome.desktop.media-handling automount-open true

Now, plug the device back in and see if it automounts. If it does, then that's it.

If it doesn't, then follow the below:

sudo umount /dev/sdc1 && sudo umount /dev/sdd1.

This will unmount your pendrive and external hard drive first.

sudo mkdir /media/externalHDD /media/pendrive

This creates the mount points for your external disk and pendrive. You can change the names to anything you want.

sudo cp /etc/fstab /etc/fstab.bak1

This will backup the file that we're going to edit now.

sudo nano /etc/fstab

This will open up the fstab file for us to edit.

Add the following two lines to the end of the file (you can paste in the terminal by Ctrl+Shift+V):

/dev/sdc1   /media/pendrive       auto    defaults,umask=003   0    0
/dev/sdd1   /media/externalHDD    auto    defaults,umask=003   0    0

Save and close the file by Ctrl+X, then Y, then Enter.
sudo mount -a

Your drives should magically be accessible.

If the drives are not appearing on the desktop, try executing the following command:

gsettings get org.gnome.nautilus.desktop volumes-visible

And see if they appear.


How to make graphics / video appear on websites that use Adobe Flash?

You can download and install the Adobe Flash Player from the Ubuntu Software Center.

Click on your Dash icon,(topmost left icon on your MenuBar) type in Ubuntu Software Centre. Inside the applicaion you could search for Adobe Flash Plugin.

Alternatively I am providing this link, just click on it.

Adobe Flash Player

The Flash player plugin is present in the following package.You can have a look at it

ubuntu restricted extras

Thank You!


Save yourself the misery & switch back to 12.04 -

From your comments I understand that you have a project using PHP 5.3, from my experience, I had the same issue when I moved to 14.04. All my CakePHP projects failed to work. All the suggestions given here do work, I was able to install PHP 5.3 by manually building it as answered by @raaz. But trust me even if you successfully install PHP 5.3 it will have a lot of dependency issues with other packages & services like apache, mysql etc. I wasted 2 days in trying to make things work, but finally I switched back to 12.04.

Note:- For the question that you have asked i.e how to install PHP 5.3 in Ubuntu 14.04, the above methods will help you do that. But it won't solve your purpose i.e of making your application work seamlessly.

Also Refer - Installing PHP 5.3 in Ubuntu 14.04


Ubuntu 14.04 no cursor after fresh instalation

I was having a similar problem after switching users. I was able to get the touch pad to work by reloading the kernel module:

sudo modprobe -r psmouse
sudo modprobe psmouse


Should I stop services when performing release upgrade?

No, you don't need to do that. If an service is up and you upgrade they will be restarted automatically once they are done.


Sounds like a bit of a predicament you're in. If you've given your root account a password, su may allow you to elevate privileges and add your user to the group "sudo" or "admin".

If not, have you tried running a live CD? You should be able to mount your root partition from the Ubuntu live CD fairly easily, say to /mnt/tmproot/, and add this line somewhere in /mnt/tmproot/etc/sudoers:

username ALL=(ALL) ALL

where "username" is whatever your username is.


What is the name of this window and how can I change it?

The Input Source chooser shows the input sources you have enabled in Region & Language. Just add and/or remove sources to your liking.

https://help.ubuntu.com/stable/ubuntu-help/keyboard-layouts.html


Sorry I can't comment, but I think that wlan0 is not configured(no inet address shown in ifconfig result). what do you have for it in /etc/network/interfaces?


I changed the driver from xserver-xorg-video-nouveau to nvidia with the driver manager and after the restart the card was claimed by stub.


unable to install software due to pyconfig.h missing

The file is part of various packages:

libpython2.7-dbg: /usr/include/python2.7_d/pyconfig.h
libpython2.7-dbg: /usr/include/x86_64-linux-gnu/python2.7_d/pyconfig.h
libpython2.7-dev: /usr/include/python2.7/pyconfig.h
libpython2.7-dev: /usr/include/x86_64-linux-gnu/python2.7/pyconfig.h
libpython3.4-dbg: /usr/include/python3.4dm/pyconfig.h
libpython3.4-dbg: /usr/include/x86_64-linux-gnu/python3.4dm/pyconfig.h
libpython3.4-dev: /usr/include/python3.4m/pyconfig.h
libpython3.4-dev: /usr/include/x86_64-linux-gnu/python3.4m/pyconfig.h
pypy-dev: /usr/lib/pypy/include/pyconfig.h

In your case, I would say, you need

sudo apt-get install libpython2.7-dev


Set custom shortcut keys for brightness on iMac 2011 Ubuntu 20.10

Thank you Harry! These two commands worked :)
Step up:
gdbus call --session --dest org.gnome.SettingsDaemon.Power --object-path /org/gnome/SettingsDaemon/Power --method org.gnome.SettingsDaemon.Power.Screen.StepUp
Step down:
gdbus call --session --dest org.gnome.SettingsDaemon.Power --object-path /org/gnome/SettingsDaemon/Power --method org.gnome.SettingsDaemon.Power.Screen.StepDown


Can't copy directories from mac over network

Sorry, maybe I am sidetracking, but... I have never been able to reliably configure Samba :) FTP is insecure and very slow, so you should avoid it entirely.

The best way to connect two computers, in my opinion, is SSH.

SSH does have a mode that is called SFTP, which allows you to interact with files in a very natural way. In linux, most of the file managers embed an stfp protocol, so you can interact with such a service by typing sftp://remote-username@remote-ip-address/

To connect to your Mac, you will need to enable the SFTP server. I found a few (old) guides, I can't test them now, but you should get the idea:

http://osxdaily.com/2011/09/29/start-an-ftp-or-sftp-server-in-mac-os-x-lion/
http://www.maciverse.com/how-to-turn-on-your-macs-sftp.html

If you want to access Linux from the Mac, you will need to configure the ssh server first. Macs don't have a built-in client for SFTP but you can easily install a tool like Cyberduck. Or if you want to get fancy, you can install MacFuse, which will enable to to mount a remote SFTP folder and manage it via finder.


AMD / Intel switchable graphics problem in Ubuntu 14.04

Have you tried removing the aticonfig?

  sudo aticonfig --uninstall

If it persists...I had a similar problem last week and this worked for me:

  sudo apt-get remove --purge fglrx fglrx_* fglrx-amdcccle* fglrx-dev*

  sudo rm /etc/X11/xorg.conf

  sudo apt-get install --reinstall xserver-xorg-core
  xserver-xorg-video-intel libgl1-mesa-glx libgl1-mesa-dri
  libgl1-mesa-glx:i386 libgl1-mesa-dri:i386

  sudo dpkg-reconfigure xserver-xorg

  sudo shutdown -r now

I hope you can fix it... I know how annoying it is =/
Good Luck!


Blender stops receiveing some keyboard & mouse input after TouchEgg actions

To anyone else experiencing this : you can try changing the shortcut for switching between keyboard layouts, or disabling it altogether.
To do this : go to System settings → Text entry, and change the shortcut for "Switch to next using" to something else. Disabling it is done by pressing Backspace.

I had a similar issue to what OP is describing and it was driving me crazy. Turns out I had the shortcut set to both Shift keys, which for some strange reason made Blender think I was pressing the Alt key sometimes while I wasn't. I also tested other desktop environments, and it seems that Unity is the only one where this happens.

This may or may not work in OP's case, but it's worth giving a it try. If the issue still persists then I suggest booting from a live CD and testing if the problem is there. This would confirm if it's something related to your hardware, or simply some third party program interfering with Blender.


High CPU usage while using Chrome/FF or playing Youtube video in Ubuntu 18.04

I am also using Ubuntu 18.04 and I have the exact same quad core processor  only I have Intel® HD Graphics 620 (Kaby Lake GT2) which is probably a fraction of the speed of your NVIDIA graphics card.

In a nutshell, "I can confirm that the System Monitor is the most accurate compared to top since it can display usage of all CPU's in real-time simultaneously, whereas the top command only displays the CPU usage as a percentage of a single CPU by default.  Though if you read on I came to the conclusion its more likely that htop is the most accurate of the three"

To elaborate on that, If you run your scenario again and while playing your YouTube video you will see top shows Web Content high (When I ran your scenario my CPU was at 97%), but if you press SHIFT+i in the terminal window where your top command is running, to turn OFF Irix mode (which is ON by default), you will see the Web Content CPU usage will drop significantly.

The thing about top its been around since UNIX came about and way before multi-cpu's came about and it will only ever show the percentage of the CPU time that the process is currently using.  I never use htop and I thought it looked like top with some nice enhancements judging by the description in the man page which doesn't really describe what it does well, it just says in the description "It  is  similar  to top, but allows you to scroll vertically and horizontally." but after using it I can see it also shows each CPU usage for multi-cpu systems and when I ran your scenario I was getting the same CPU usage for each CPU in htop as per the System Monitor and could see no discrepancies between them.  Correction after performing several further tests it would be more accurate to say that htop and System monitor CPU% usage is roughly the same at times, but can vary and it appears there is no manual for the Gnome-System-Monitor, though I found that htop is written in c and uses the n-curses library so it is likely that htop is more accurate because it runs within a terminal and therefore it doesn't have the additional overhead of loading and running a GUI, whereas the System Monitor does and uses GTK+ (Gimp Toolkit), so that fact should in theory give htop the edge,since we are talking about displaying realtime information these things matter, but I don't know enough about how the Gnome-System-monitor works under the hood, I only know its one of the Gnome Core Applications which could be written in (Vala, C, C++, Scheme, JavaScript, Python), but even if it was written in the most efficient language which is likely (C/C++) it still has the GTK+ overhead and evidently by comparing htop versus Gnome-System-Monitor both running in htop it is clear that htop is using significantly less resources especially in terms of CPU and Memory than the Gnome-System-Monitor is using:

Also take a look at the man pages for the top command specifically the following information under the CPU section:

  %CPU   The task's share of the elapsed CPU time since the last screen  update,  expressed  as a percentage of total CPU time. ... Also  for  multi-processor environments, if Irix mode is Off, top will
  operate in Solaris mode where a task's cpu usage will be divided by
  the total number of  CPUs.   You  toggle Irix/Solaris modes with the
  `I' interactive command.

Finally also remember that top, htop and Gnome-System-Monitor each all consume resources and so running all three at the same time is going to impact performance, so I would recommend only using one or the other.

Also with regards to web browsers Chrome loads a new process for every new tab, where as Firefox Quantum limits the number of processes to four and so this means FFQ should in theory at least be more memory efficient.


Wifi configuration: what do those variable mean?

The command modinfo rtl8723be gives a brief explanation:

parm:  swenc:Set to 1 for software crypto (default 0) (bool)
parm:  ips:Set to 0 to not use link power save (default 1) (bool)
parm:  swlps:Set to 1 to use SW control power save (default 0) (bool)
parm:  fwlps:Set to 1 to use FW control power save (default 1) (bool)
parm:  msi:Set to 1 to use MSI interrupts mode (default 0) (bool)
parm:  aspm:Set to 1 to enable ASPM (default 1) (int)
parm:  debug_level:Set debug level (0-5) (default 0) (int)
parm:  debug_mask:Set debug mask (default 0) (ullong)
parm:  disable_watchdog:Set to 1 to disable the watchdog (default 0) (bool)
parm:  ant_sel:Set to 1 or 2 to force antenna number (default 0) (int)

I suspect that the parameter you are most interested in is ant_sel as antenna selection is a known issue for your device: Unable to connect wifi ubuntu 14.04 LTS HP Pavilion Network driver rtl8723be


Just boot on a liveCD or liveUSB, mount the partition, and edit the value to a suitable one. Then, reboot on hard disk.


Vim 8 on 16.04.2 will not use system clipboard in gnome-terminal

Try installing vim-gnome. That's what made it work for me.


On Ubuntu, you can...

use Samba to act as a file server in a Windows environment integrated into Active Directory.
set up a DHCP server.
use iptables, an advanced firewall built into the kernel.

The first step is to install Ubuntu, then configure the services you need. If you have any trouble along the way, search the questions here on AskUbuntu or ask one yourself.


Problem with sound in Ubuntu 13.10 : sometimes is fine but sometimes is not work

Fast Startup is incompatible with dual-boot configurations. It basically turns a shutdown operation into a suspend-to-disk operation, which leaves disks in an inconsistent state. At best, Linux will ignore such partitions. At worst, data corruption can result. Thus, I strongly recommend that you disable Fast Startup in Windows, as described here.

Note that the Windows Fast Startup feature is different from the firmware's feature with a similar name. Any "fast boot" or similarly-named firmware feature bypasses certain types of hardware setup. This is usually fine from a Linux perspective, although it can result in an inability to boot from an external medium like a USB flash drive. Thus, it may need to be disabled when installing Linux. Details vary greatly from one computer to another, though.


Native clients

GRAMPS Genealogical Research and Analysis Management Program

sudo apt-get install gramps

LifeLines  Console based genealogy software to help with family history research

sudo apt-get install lifelines

Web

PhpGedView Web-based genealogy viewer and editor. To download

GeneoTree  Genealogy software in PHP / MySQL. To download

GeneWeb   Uses very efficient techniques of relationship and consanguinity computing. To download

Java

GenealogyJ    Full-featured viewer and editor for genealogic data. To download


You are lacking the proper codecs. You must install libavcodec-extra-53, gstreamer0.10-plugins-ugly and gstreamer0.10-plugins-bad so you can get most advanced (and don't know who assumed less used) codecs available. Those allow you to reproduce almost any kind of video. If you aren't sure, normally ubuntu-restricted-extras should include them all.


Cannot rm or chown /var/log/snort as root

Yes, root has rights to do anything on the system, at least if nothing important is seriously broken. To become root:

sudo su

If the given directory in not empty, a recursive remove needs to be used:

rm -r /var/log/snort

However if any of the files in that directory are open, the operation still may be refused.

To change owner, simply use:

chown root /var/log/snort

If all of this doesn't work, boot in with an Ubuntu CD/USB installer and run fsck on the filesystem. Even if it seems clean, it might be easier to remove the directory with the live system.

By the way, Ubuntu 11.10 is not supported anymore, please dist-upgrade or install a newer distribution (12.04 LTS or 13.04).


How do I Uninstall a Program and Dependencies from a tar.bz2?

sudo make uninstall is usually defined and removes most, if not all, files that were installed.


Right, it's not available after Trusty, and I would guess the reason is that there are so few translations.


How can I change country in Amazon WebApp?

First log in to your account. Under "your account" tab, select the "manage your content and devices" option. Then select "settings" tab and change the country settings.


Ubuntu 18.04 stuck at startup and keyboard turns off

In Ubuntu 17.10 and later and also in Ubuntu GNOME restart GNOME shell. Open the terminal and type:

setsid gnome-shell --replace

Press Enter again before you close the terminal.

Also customization of the Ubuntu 18.04 desktop may be an issue that's worth looking into. Maybe Ubuntu will not get stuck at startup if you undo the desktop customizations and revert back to the default vanilla Ubuntu 18.04 desktop environment.


How to find all volumes that btrfs df prints out?

You have different disk sizes. The difference is 1 GB.

That is why there is 1GB "single" entry.

The effect of this IMO will be that when the RAID is full, some data may be stored as "single".

If you want to avoid this you can create a partition table on /dev/sdb and create there a partition exactly same size as /dev/sda3.


I think someone logged into my computer at work

The log file indicates that someone logged on as guest from the login screen.

The guest account in Ubuntu is created dynamically when someone selects it from the login screen. By default Ubuntu is (or should be) configured so that you cannot access other users' documents or perform any administrative tasks while using the guest account. The log file shows what you always see when you log in as a guest--the account is created dynamically and the login screen runs su to change the user's identity from root (which the login screen runs as) to the limited guest account.

If you want to prevent other people from using the guest account, you should disable guest sessions.


Can't save VPN passwords in Network manager (Xubuntu 16.04)

In Ubuntu 18.04 and previously in 16, you can allow saving of the VPN password by clicking the question mark

This lists your options including:

Store the password only for this user
Store the password for all users
Ask for the password every time
The password is not required

If you choose one of the first two it should save the password for you.

The changes will also show in: /etc/NetworkManager/system-connections/{VPN Connection name} file


Qt Creator kept warning about "Cannot create file ... : Permission denied"

You have an incomplete installation of Qt Creator, but you can also install Qt Creator (qtcreator) from the default Ubuntu repositories instead of manually downloading Qt Creator and installing it. In all currently supported versions of Ubuntu open the terminal and type:

sudo apt install qtcreator cmake g++ git qt5-default

After you have installed qt5-default you can run the following command to list other available Qt5 packages:

apt search qt5-*


Someone has submitted an official Launchpad bug = https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1692235


How can I get access to the folder that I've copied to /opt?

If this is to access /opt/lampp/htdocs I would start with

sudo chown -R $USER:$USER /opt/lampp/htdocs

Then you should be able to do a cd /opt/lampp/htdocs and acces the files there.

Try to refrain from changing /opt since some software depend on being owned by root.
This is a fairly common 'problem' and understanding permissions is fundamental to understanding Linux and even more so fundamental to understanding how to protect your software. I would read up on permissions for Linux based file systems if I was you.
I know it is just a directory name you used but lamp != xamp ;)


You can resize the root partition like described in this SO answer.

But another, maybe easier way is:
Create a new partition and create a symlink to it. In your case

  resize partition 2 to for example 35 GB

and create a new partition in the free space, e.g. named /dev/sda9. Then format it with ext4, create a directory bytecoin/ on it and move all data from ~/.bytecoin/ on your old partition to bytecoin/ on the new partition. Finally remove the old folder and create a soft-link in its place

ln -s /dev/sda9/bytecoin ~/.bytecoin/

The philosophy behind this is to differentiate programs from data.


How do I run C++ code in Geany on Ubuntu 12.10

You didn't build the file, you just compiled it.

In your screenshot we can see the compiling command g++ -Wall "-c",
http://bakhtiar.web.id/wp-content/uploads/Screenshot%20from%202013-04-01%2013:15:02.png

which means "Compile and assemble, but do not link".


Redirect stdout to file and stderr to file and to screen

You're looking for the tee command. Unfortunately there's some trickery regarding redirecting stderr and stdout. The following should work:

valgrind --tool=memcheck ./a.out 3>&1 2>&3 >output | tee grindout

This redirects standard output to output, moves standard error to a new file descriptor 3, which points to stdout. tee takes this stdout-ified stderr and prints it both to your screen and to gridnout.


I am trying to setup bCNC and can't open the ./dev/attyACM0 port

You need to log out and log in for the group changes to apply. (other solutions might be possible)

Lets walk trough this. I am currently not member of dialout

getent group dialout
dialout:x:20:

Now I add myself

sudo usermod -aG dialout myUser

and verify

getent group dialout
dialout:x:20:myUser

However getent just looks at the configuration not at the current state (which is not updated). You can see this by looking at groups

groups
myUser adm cdrom sudo dip plugdev lpadmin sambashare docker

no dialout here. After relogin it will work


Turns out that the Undo feature is hidden in the drop-down menu used for folder appearance settings, i.e. the downward arrow next to the hamburger menu.
Very hard to discover considering it has nothing to do with appearance.


Enlightenment DE 'Add Bryce' button adds toolbar that I seemingly can't remove?

Press Alt and do a right-click on the Bryce menu.
A context menu will appear.
Choose delete Bryce from the menu.


Ubuntu upgrade to 20.04 broken by sudden restart of system

For anyone facing such issues in the future.

I used sudo rm -rvf /var/lib/apt/lists/* to release all the held packages, followed by sudo apt-get install -f. Note in the second step, depending on which of your packages had unmet dependencies, it's possible that you might be deleting some of the very essential packages like settings and log in.

This is the most important step. Your system has now several packages that need to get installed (as you have cleared the row of broken packages). For this following 3 commands will do.

 sudo apt-get update
 sudo apt-get upgrade
 sudo apt-get dist-upgrade

Following this, your computer might need a restart, and then everything should get fixed. Hope this helps someone!


build-essential not installing because of unmet dependencies in Ubuntu 18.10

I suspected (now proven) you were using a mirror that was badly out of date, eg. if you checked https://launchpad.net/ubuntu/+archivemirrors I believed your chosen mirror would have listed last update unknown (counter overflowed as too long ago) thus your package woes.

I suspected this as your results didn't match up with expected packages on https://packages.ubuntu.com/

The fix is to switch to a maintained mirror (from aforementioned list) or the main archive.


Cannot solve your problem.  But, you can save some time by putting
setxkbmap -option terminate:ctrl_alt_bksp in /etc/profile.  Then, logout and login.
The next time you have a freeze, restart the desktop by entering Ctrl-Alt-Backspace, assuming your X is not frozen.


-bash: cd: Desktop: No such file or directory

The /root directory is the home directory of the root user. This user doesn't have a Desktop by default since root isn't supposed to log in graphically, so you are getting that error simply because you are trying to cd into a directory that doesn't exist.
If you want to cd into your desktop, try:
cd ~/Desktop

Although, if you are in /root, you are probably logged in as root, so that won't work either.


How to Make Ubuntu look like Windows Vista?

To make Ubuntu 12.04 look like Windows Vista would take a bunch of time and effort, and you might break your system doing all those changes. As an alternative you can install Kubuntu that is the KDE (Desktop Environment) specifically modified for Ubuntu, it looks a little like Windows.

To install Kubuntu (KDE + Ubuntu) type the following command at the Terminal:

$ sudo apt-get install kubuntu-desktop

If you prefer a graphical interface to install it you can use Synaptic.

But the recommended way to do that is downloading the Kubuntu ISO. it's like downloading Ubuntu, but instead of using the Unity shell interface it will comes with KDE installed by default. To download the ISO file access Kubuntu.org to get more information about it.


Monitor Resolution problem in Xubuntu 15.04

Create a xorg.conf file in \etc\X11 with the the following contents:

Section "Screen"
    Identifier   "Screen0"
    Device       "Device0"
    Monitor      "Montior0"
    DefaultDepth 24
    Subsection   "Display"
        Depth      24
        Modes      "1024 x 768" "1440 x 900"
    EndSubsection
EndSection

Section "Monitor"
    Identifier  "Monitor01"
    VendorName  "Monitor0"
    ModelName   "Model0"
    HorizSync   30 - 300
    VertRefresh 30 - 500
    Modeline    "1440x900_60.00"  129.00  1440 1528 1680 1920  1080 1083 1087 1120 -hsync +vsync
EndSection

Change the Modeline part so that it contains the output of your cvt 1440 900 command.
Reboot and try your xrandr commands again.
If you boot into a TUI, you can remove the xorg.conf file with:

sudo rm /etc/X11/xorg.conf

NOTE: The ideal situation would be to google the name of your monitor, get the horizontal sync and vertical refresh rates and replace the default values above.


I would recommend that you upload the files in question via sftp or scp.  This has the advantage of being able to use your existing SSH credentials.  There's a great guide on how to do so at http://www.inmotionhosting.com/support/website/ftp/connecting-scp-sftp  Once you have the files uploaded, I would sudo cp the files to their respective locations, and then adjust the ownership with chown, and the permissions with chmod to the necessary settings.


Unity does not have applets, as you suppose. They are separate applications which show indicators, and there is no central place to manage them, reason being that they are meant to manage themselves.

If you want to add or remove indicators, you either run or quit the application(s) as needed. Some applications also provide the option to disable the application indicator.


Installing Old PHP Version (5.3.1) on Ubuntu 16.04 Using PHPBrew

You can install PHP as a part of XAMPP package. The XAMPP contains Apache, PHP, MySQL and  Perl. The XAMPP 1.7.7 is the most updated XAMPP with PHP version 5.3.

You can find more information on Stackoverflow


SimpleScreenRecorder records only one side of communication

That's because you're just recording a single stream -- what's going to your speakers or headphones, or what's recording you. You need to choose a "source" that has access to both sources of audio. For example, a webcam mic -- if you are using speakers, it can "hear" what you're saying as well as what's coming out of the speakers (i.e. what the other party is saying).
The application has to cancel out what you're saying so that it doesn't play that back to you, which would cause a feedback loop, but that should happen downstream of the screen recorder.


How to copy data between Virtual machines

The answer should be complex, I hope not too much complicate, but more you read down more it is complex:

You can copy few (or more) lines with copy & paste mechanism.

For this you need to share clipboard between host OS and guest OS, installing Guest Addition on both the virtual machines (probably setting bidirectional and restarting them).
You copy from guest OS in the clipboard that is shared with the host OS.
Then you paste from the host OS to the second guest OS.
You can enable drag and drop too with the same method (Click on the machine, settings, general, advanced, drag and drop: set to bidirectional )
You can have common Shared Folders on both virtual machines and use one of the directory shared as buffer to copy.

Installing Guest Additions
you have the possibility to set Shared Folders too. As you put a file in a shared folder from host OS or from guest OS, is immediately visible to the other. (Keep in mind that can arise some problems for date/time of the files when there are different clock settings on the different virtual machines).
If you use the same folder shared on more machines you can exchange files directly copying them in this folder.
You can use usual method to copy files between 2 different computer with client-server  application. (e.g. scp with sshd active for linux, winscp... you can get some info about SSH servers e.g. here)

You need an active server (sshd) on the receiving machine and a client on the sending machine. Of course you need to have the authorization setted (via password or, better, via an automatic authentication method).

Note: many Linux/Ubuntu distribution install sshd by default: you can see if it is running with pgrep sshd from a shell. You can install with sudo apt-get install openssh-server.
You can mount part of the file system of a virtual machine via NFS or SSHFS on the other, or you can share file and directory with Samba.
You may find interesting the article Sharing files between guest and host without VirtualBox shared folders with detailed step by step instructions.

You should remember that you are dialling with a little network of machines with different operative systems, and in particular:

Each virtual machine has its own operative system running on and acts as a physical machine.
Each virtual machine is an instance of a program owned by an user in the hosting operative system and should undergo the restrictions of the user in the hosting OS.

E.g Let we say that Hastur and Meow are users of the hosting machine, but they did not allow each other to see their directories (no read/write/execute authorization). When each of them run a virtual machine, for the hosting OS those virtual machine are two normal programs owned by Hastur and Meow and cannot see the private directory of the other user. This is a restriction due to the hosting OS. It's easy to overcame it: it's enough to give authorization to read/write/execute to a directory or to chose a different directory in which both users can read/write/execute.
Windows likes mouse and Linux fingers. :-)
I mean I suggest you to enable Drag & drop to be cosy with the Windows machines and the Shared folders or to be cosy with Linux.
When you will need to be fast with Linux you will feel the need of ssh-keygen and to Generate once SSH Keys to copy files on/from a remote machine without writing password anymore. In this way it functions bash auto-completion remotely too!


Sending UDP packets with `logger` command

I lost some sanity trying to figure out why I couldn't log across different machines to test our remote logging yesterday

It turns out the util-linux/bsdutils core package which contains "logger", has version 2.20.1 installed and that version silently ignores the -n  switch. This is what I found out:

All newer versions of logger from 2.21 to 2.24 build and work fine.
Version 2.20.1 builds fine but ignores the -n switch just like the installed version.
All Ubuntu from 12.04 up to including "trusty" all contain 2.20.1 :(

SOLUTION:

Get the latest util-linux from: ftp://ftp.kernel.org/pub/linux/utils/util-linux/

Unpack, ./configure, make, and copy the binary from ./misc-utils/logger to /usr/local/bin/logger.

You may have to refresh your shell such as "source ~/.bashrc" for the /usr/local/bin version to bite. Confirm the new logger is installed with "logger -V" where it should NOT say "logger from util-linux 2.20.1" anymore.


Why can't I shut down after installing ubuntu-desktop from minimal CD?

Missing power button indicator:

Solution for me after sudo apt-get install --no-install-recommends ubuntu-desktop was:

sudo apt-get install indicator-session

Thanks to Shutdown and User button missing in panel


How to disable IPv6 when connecting to an OpenVPN server using Network Manager on a dual-stack system?

Add this to your kernel line in your boot loader to disable IPv6 altogether:

ipv6.disable=1

If you're using Grub (if you haven't installed your own boot-loader, then you are using Grub), your kernel line should look something like this:

linux /boot/vmlinuz-linux root=UUID=978e3e81-8048-4ae1-8a06-aa727458e8ff ipv6.disable=1

The recommended approach, for adding something to the kernel line, is to add the desired kernel parameter to the GRUB_CMDLINE_LINUX_DEFAULT variable in the /etc/default/grub file:

GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1"

Once you've added that to /etc/default/grub, run the following command to regenerate your grub.cfg:

sudo grub-mkconfig -o /boot/grub/grub.cfg

Alternatively, adding ipv6.disable_ipv6=1 instead will keep the IPv6 stack functional but will not assign IPv6 addresses to any of your network devices.

OR

To disable IPv6 via sysctl, place the following into your /etc/sysctl.conf file:

net.ipv6.conf.all.disable_ipv6 = 1

Don't forget to comment out any IPv6 hosts in your /etc/hosts file:

#::1        localhost.localdomain   localhost

NOTE

a reboot may be required for the sysctl method, and a reboot is definitely required for the kernel line approach.

OR

To temporarily disable ipv6:

sysctl -w net.ipv6.conf.all.disable_ipv6=1

To temporarily enable it:

sysctl -w net.ipv6.conf.all.disable_ipv6=0

So if you need to disable ipv6 on a given condition, then write a bash script somewhere along these lines:

#!/bin/bash
ipv6_disabled="$(sysctl net.ipv6.conf.all.disable_ipv6 | awk '{print $NF}')"
if (connected_to_vpn &> /dev/null); then
  (($ipv6_disabled)) || sysctl -w net.ipv6.conf.all.disable_ipv6=1
else
  (($ipv6_disabled)) && sysctl -w net.ipv6.conf.all.disable_ipv6=0
fi

NOTE

You might need to disable any ipv6 hosts in your /etc/hosts file for this method too, just as I recommended in the previous method.


18.04 machine doing nfs mount of file on 19.10 machine

The problem is in the setup of the 19.10 machine. It is not starting the nfs server. I am working on that but have not managed to get it to start at boot time yet.


Hybrid Drives using conventinal platters combinded with a (small) SSD have the advantage of using the SSD as a rather large non-volatile and fast cache for improving data transfer rates. Access to this SSD part is done entirely by the hard-disk's firmware.

  Because of this there is no way to partition the drive to exclusively use the SSD as a /boot partition.

Neverthelesss there is some benefit as compared to a conventional drive. All disk access  can be cached by the SSD. Other than a combination of a convential hard drive together with a separate SSD you will (in theory) then also have a better access to data that would not be stored on the SSD.


Changing read-write permissions on my external Seagate hard drive

I found the answer to my issue by opening a terminal and

sudo apt-get install ntfs-3g

Worked for me and restored my access to my USB stick.


Cant boot Ubuntu, shows GRUB command shell

This should work...

Boot into a Ubuntu Live Media.

Use lsblk -f or Gparted to identify your root and boot partitions.

Let's chroot into your existing root,

Mount your Linux root partition at /mnt

 sudo mount /dev/sdbX /mnt/

If you have sepearte boot partition

 sudo mount /dev/sdbX /mnt/boot/

Bind directories, so grub can detect other operating systems.

sudo mount --bind /dev /mnt/dev
sudo mount --bind /dev/pts /mnt/dev/pts
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys

sudo chroot /mnt

Reinstall Grub

grub-install

More detailed guide: http://www.linuxdeveloper.space/install-windows-after-linux/ (See under the Reinstall/Restore Grub)

Replace sdbX with the correct device ids.


You should only use pynotify if you are using Gtk2.  If you are using Gtk3 (which is the default for Quickly), you would use from gi.repository import Notify.


How to change unity launch application to wiggle?

No, you can only choose between "pulse", "blink" and "no animation".


Why do KDE Wallet Service keeps asking for password after changing user password?

So I was able to get rid of the popups, however this has a side affect. Note that if you use this solution that you will lose any saved password in the system, e.g. Wifi, Google Chrome users,...etc. however you can always save them again.

Solution: delete, rename or move KDE Wallet Service folder which will create automatically a new fresh wallet

mv ~/.local/share/kwalletd ~/.local/share/kwalletd.old


Ctrl+Alt+O (Organize Imports) not working on Intellij IDEA

The problem was that I had ClipIt 1.4.2 installed and Ctrl+Alt+O is set by default to the Off-line Mode hot-key.

As @mounir indicates in its comment, gpaste gnome-extension also has the same shortcut.


Gparted is not installed by default. To install it, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt-get install gparted

OR


How to install Psychonoauts through software-center?

USC doesn't show progress occasionally when the download size is large. It could be still downloading in the background.

If there is network activity wait for it to finish and look for icon on Unity Dash.

You can see if there is network activity by opening System Monitor and going to the Resources tab.


You're doing df /*. Note the /* - that means every file and directory in the top level of / (nitpicks aside). So, in effect:

df /bin /boot /etc ...

And df for a given directory, prints the details of the filesystem on which that directory is, so you get multiple entries.

Just do:

df


Is there a solid howto for replacing MySQL with Maria in the LAMP stack?

This article/tutorial may be of some help.

http://kb.askmonty.org/en/building-mariadb-on-ubuntu

According to Monty, (the creator), all php mysql libraries should work without any changes.


use zip,gunzip or tar command to unzip.

To install

if the file extension is .deb .Use:

sudo dpkg -i file name

if it is bash script  then use this command:

bash  filename

if it python then use:

python3 filename.py


You haven't created a large enough partition to hold a Ubuntu installation. Some might say that you need a minimum of 20G. Probably 30-60G is better for larger installations. It all depends on how/where you're going to configure /home.

DiskSpace Comunity Help