Copy the files from your system to another directory.

Then delete the U1 program from Ubuntu Software Center and turn off other synch tools if you use them. That will kill the synching and free up your directory you used for synching without the risk of loosing data.


LXDE is not starting after upgrading to 3.5.0-26-generic kernel

If you have an SSD this might help:
In /etc/init/lightdm.conf add just above "exec lightdm":
sleep 2

If you find file ~/.Xauthority owned by root then do this:
rm -f ~/.Xauthority
sudo service lightdm restart


Where is the "Open with..." option in Ubuntu 11.04?

.desktop files do not have an 'Open With' option

Open Text Editor then drag the .desktop file onto the window and it will open it.

or

Use Terminal with the gedit command e.g. gedit ~/.local/share/applications/gedit.desktop


Lubuntu 20.04 (LXQt): Which file(s) assigns the preset bash Environment Variables?

most of them are defined in relevant files in the /etc directory. running grep -r ^[[:upper:]] /etc/* must list most of them.
a few particularly interesting files according to the Ubuntu documentation are:

/etc/environment: documentation states

"...This file is specifically meant for system-wide environment variable
settings. It is not a script file, but rather consists of assignment
expressions, one per line..."

files in the /etc/profile.d directory ending in .sh. documentation states:

"...An alternative is to create a file for the purpose in the
/etc/profile.d directory... Files with the .sh extension in the
/etc/profile.d directory get executed whenever a bash login shell is
entered (e.g. when logging in from the console or over ssh), as well
as by the DisplayManager when the desktop session loads..."


Wget like utility to download all images in mysite.com/img/ directory

The easiest solution is probably to use bash brace expansions

wget http://mysite.com/img/{1..500}.jpg

There is also the option of doing a loop, allowing you to put a bit of wait between each requests.

for n in $(seq 1 500); do
  wget http://mysite.com/img/${n}.jpg
  sleep 0.1
done

(The above can be ran directly in the shell.)


First of all, don't use sudo for this. This can cause permissions issues and, when used in combination with x which extracts the archive with the full path, might result in inadvertently overwriting important system files. Instead, just use unrar x file.rar.

Now, the error you are getting is most likley because you have saved the file in directory X but are running the command from directory Y. For example, you have saved the file in /home/superpajamarama/Downloads and are running the command from /home/superpajamarama/.

To avoid this kind of thing, always use tab completion for file names in the terminal. Start typing the name of the file, and then hit tab:

unrar x file<TAB>

That will give you the possible completions and will let you know that the file is there.

Anyway, you need to either move into the correct directory, for example:

cd /home/superpajamarama/Downloads
unrar x filename.rar

Or give the full path to the file:

unrar x /home/superpajamarama/Downloads/filename.rar

In your case, the problem is that your path has a space in it. You need to either escape that space with a \ or quote the path:

unrar x "~/Desktop/PS2 Games/Futurama.rar"

or

unrar x ~/Desktop/PS2\ Games/Futurama.rar


I found quite a simple solution for my case.
Just open Windows console (cmd), then:
wsl -u root visudo

And fix the file.
Note that visudo does not catch all errors.  To avoid getting locked out of sudo, keep a root shell (sudo -s) or visudo open until after you've thoroughly tested your new config.


I am not able to login to Ubuntu shell , because I am not given any chance to write my password

Try to change the password using passwd command and login again. If not again possible share me the screenshot of the problem.


Can I toggle word-wrapping on/off quickly in Gedit?

In gedit 3.18 text wrapping can be turned on and off from the status bar.


There was nothing wrong with the webserver's configuration. Instead, it was user error -- I was trying to visit https:// instead of http://.


How to find/search for text results only in the Outline/headers in PDFs open in Evince?

Just type the search directly without Ctrl + F
Ermmm, you just give focus to the outline, e.g. by selecting any random header, and  start typing your search term directly, without Ctrl + F, then a little search box appears at the bottom.
However, as of 3.38, unlike Okular the search, it:

only matches from the very first title character
does not filter matching headers only, you have to hit up/down arrow keys several times to navigate/find them
does not find in nested headers that are currently closed

These limitations make the feature mostly unusable for complex documents for me as mentioned at: https://gitlab.gnome.org/GNOME/evince/-/issues/1555#note_1032850 Here's a good test document: https://ia800404.us.archive.org/27/items/linux-insides/linux-insides.pdf


Securely erase hard drive using the Disk Utility

Yes, the disk utility uses a method similar to the one with dd you describe, or a faster and more secure one more like:

dd if=/dev/urandom of=/dev/sda bs=1M

This introduces a lot more fuzz to the overwriting pattern than zeros only, which should be more difficult to restore but not noticeably slower to perform.

Some people claim, this is not enough and one should overwrite hard disks multiple times and with more elaborate patterns (scrub(1) can do both of that as per the other answer), but most will say once is enough, if an attacker wants to restore more than a few bits with a significant chance.

Edit: Apparently /dev/urandom peaks at ~13 MiB/s on at least two systems including mine. Therefore simonp suggested a different approach using openssl(1):

head -c 32 /dev/urandom | sudo openssl enc -rc4 -nosalt -pass stdin -in /dev/zero -out /dev/sda


Change skype text alignment when language changes

You can install skype-translation-he from my PPA, which will add Hebrew to the list of languages. Some strings seem to be right aligned at least.


Read this: http://www.ubuntu.com/legal/terms-and-policies/intellectual-property-policy

Canonical’s Trademarks (registered in word and logo form) include:

UBUNTU
KUBUNTU
EDUBUNTU
XUBUNTU
JUJU
LANDSCAPE

You can use the Trademarks, in accordance with Canonical’s brand guidelines, with Canonical’s permission in writing. If you require a Trademark licence, please contact us (as set out below).

You cannot use the Trademarks in software titles. If you are producing software for use with or on Ubuntu you may reference Ubuntu, but must avoid: (i) any implication of endorsement, or (ii) any attempt to unfairly or confusingly capitalise on the goodwill of Canonical or Ubuntu.


I can confirm that you need to install ttf-mstcorefonts-installer.

If you start the application after installation you get the picture shown in your question.

However on logout and login the fonts in the application behaves correctly...


Mount and access encrypted LVM on second drive

Citation

sudo apt-get install cryptsetup            # Installs the tools we need to deal with encrypted partitions
sudo modprobe dm-crypt                      # Inserts a module we need
sudo cryptsetup luksOpen /dev/sda2 cheer   # Unlocks the partition sda2 and names it cheer
Enter LUKS passphrase:
key slot 0 unlocked.
Command successful.
#
# Now that we have unlocked the encryption, it's just dealing with the lvm
#
#
sudo apt-get install lvm2  # installs the tools we need
sudo modprobe dm-mod       # inserts a module we need
sudo vgscan                # Scans for all volume groups
  Reading all physical volumes.  This may take a while...
  Found volume group "Ubuntu" using metadata type lvm2
sudo vgchange -a y Ubuntu  # this made the VG Ubuntu active, if you don't give it a volume group as an argument it'll make them all active
sudo lvscan                # This command lists the logical volumes and their /dev path
  ACTIVE            '/dev/Ubuntu/Root' [15.00 GB] inherit
  ACTIVE            '/dev/Ubuntu/swap' [1.00 GB] inherit
  ACTIVE            '/dev/Ubuntu/home' [215.89 GB] inherit
#
# Now I mount them to do whatever it is I need to do, if you wanted to run a fsck on them you obviously wouldn't mount them.
#
sudo mkdir /media/root; sudo mkdir /media/home
sudo mount /dev/Ubuntu/Root /media/root; sudo mount /dev/Ubuntu/home /media/home
#
# Now to reverse the process and unmount everything
#
sudo umount /media/root; sudo umount /media/home
sudo rmdir /media/root; sudo rmdir /media/home
sudo vgchange -a n Ubuntu
sudo cryptsetup luksClose cheer

If both LVMs have the same name, you can change a name:

sudo vgdisplay
sudo vgrename oldUUID newName


VirtualBox 6.1.4 - shared clipboard does not work Ubuntu 18.04

Bug in Virtualbox Guest Additions 6.1.4. Fixed in test builds. https://www.virtualbox.org/wiki/Testbuilds (VBoxGuestAdditions_6.1.5-136807.iso for now)


Launcher and menu bar no longer visible after Mar 2/2018 update

Please try removing .cache directory on Home:

rm -rf ~/.cache


Can I download Ubuntu 12.04 on a notebook/laptop?

it is as web-e said:

there is an ubuntu-desktop dvd just to differentiate from the ubuntu-server dvd

I run ubuntu-desktop on my netbook just fine


How to install dlib for python3 in Ubuntu 14.04

Found solution by myself but thanks @edwinksl for his tip.
In order to install dlib for python3 it's better to use pip:

pip install dlib

You will need boost python. To get it:

sudo apt-get install libboost-all-dev

If you have  "Could NOT find PythonLibs (missing: PYTHON_LIBRARIES) (Required is at least version "3.4")" error make sure you have cmake > 2.8 (In my case it is 3.2.2). To install cmake > 2.8:

sudo add-apt-repository ppa:george-edison55/cmake-3.x
sudo apt-get update
sudo apt-get install cmake

That solved the issue for me.


Which process creates the 'Desktop' folder?

Try removing the package xdg-user-dirs.

From the package description:

xdg-user-dirs is a tool to help manage "well known" user directories
like the desktop folder and the music folder. It also handles
localization (i.e. translation) of the filenames.

The way it works is that xdg-user-dirs-update is run very early in the
login phase. This program reads a configuration file, and a set of
default directories. It then creates localized versions of these
directories in the users home directory and sets up a config file in
$(XDG_CONFIG_HOME)/user-dirs.dirs (XDG_CONFIG_HOME defaults to
~/.config) that applications can read to find these directories.

BTW: instead of removing it, you can of course also edit the user-dirs.dirs file and make it point to whatever directories you prefer...


Ext4 external HDD seems to be 10x faster than usual, can anyone explain this

Linux is more efficient with the linux file system ext4 compared to the Microsoft file system NTFS.

But there could be other reasons too for the speed difference.

The drive's hardware can be faster, including the electronics that connects the drive to the computer.
There could also be a feature that makes it look faster than it is. The write operation is buffered, and indicates that is has finished, when the program has written to the buffer. But it will take additional time to flush the buffer and finally write to the storage medium.

You can make the system flush the buffers (this one and also other buffers, if there are data waiting to be written to other drives too). Open a terminal window, run the command

sync

and wait until the terminal window returns to the prompt.


How to remove/edit program in gnome applications list?

If an application is (still) in the application list, it means that there is still a representing .desktop file of the application in either:
/usr/share/applications

or
~/.local/share/applications

The "orphan" .desktop file should be removed, to remove the application from the application list (or from Dash if you use Unity)
I suspect it is the last mentioned, since you mention wine, and wine sometimes installs (a lot of) .desktop files locally. Normally, when you uninstall an application (not wine applications), the corresponding .desktop files in /usr/share/applications is removed automatically.
Finding the right .desktop file
It can sometimes be a bit difficult to identify the right desktop file, since the file's name does not necessarily match the application's name. By making the (local) desktop file executable, it should be easier to identify, since the displayed name is then the same as the application's name, and the file also shows the application's icon once it is made executable.


Chromium freezes on start on Ubuntu 16.04

I have some solution too. Seems, the problem is with GPU acceleration. But, because Chromium freezes, you cant access Settings->Advanced settings to disable hardware acceleration.

So first you need to run browser with disabled GPU:

$ chromium-browser --disable-gpu

And then you can make settings permanent in Advanced settings.


Deleting duplicate files in installed from source?

don't try to delete anything inside / directory by your self there.  In linux file system hierarchy there is

/bin Common programs, shared by the system, the system administrator and the users.

/sbin it contains the executable which requires the root permission to execute

/lib contains the libraries required for the installed programs

/usr Programs, libraries, documentation etc. for all user-related programs.

/usr/bin contains all the programs you have installed and other programs

if you want to get some free space you can do

$ sudo apt-get autoremove
$ sudo apt-get clean

these commands will remove the cached packages and unused packages

After you have finished compiling and installing you can remove the source code of the program and other files in the same directory from where you have compiled the program


I assume you have downloaded the zip folder in your $HOME/Downloads/ directory.
cd $HOME/Downloads
gnome-extensions install gsconnectandyholmes.github.io.v43.shell-extension.zip

Refresh gnome-shell with Alt+F2 r enter method.
gnome-extensions enable gsconnect@andyholmes.github.io

Again Refresh gnome-shell with Alt+F2 r enter method.

Further, go through this post and concentrate on Installation Instructions. https://askubuntu.com/a/1232696/739431


ubuntu-bug and apport-bug are actually the same package Apport. When you initiate ubuntu-bug or apport-bug without any additional parameters, one of the following Apport user-interfaces is called, depending on the desktop environment:

Apport User interfaces for filing bugs

apport-gtk - GTK GUI for reporting crash-type bugs in Unity and GNOME.
apport-kde - KDE GUI for reporting crash-type bugs in KDE.
apport-cli - command-line front-end for reporting crashes and is intended for use on servers. You can also use it to report bugs if the crash happens offline.

Do note that Apport is NOT enabled by default. You have to manually enable it in order to report crash-type bugs:

How do I enable or disable Apport?

You can also report issues other than application crashes using any of the above tools with an additional parameter -f. It is not necessary to enable Apport for reporting non-crash issues. See manual page for apport-cli for more information.

Other Apport utilities

apport-collect - Used to collect and attach essential debugging data to an existing bug report. Generally used in case of bugs filed against Linux kernels. You should not be using this unless you are the original bug reporter or one of the kernel developers explicitly asks you to do so. See manual page for apport-collect for more information.

Whoopsie service

All 12.04 systems, including desktop and server, have an "Ubuntu Error Reporting" daemon called whoopsie. It, along with apport, is part of the Ubuntu error tracker project. While it isn't one of the tools that allow you to report bugs, it is part of the system that processes the bug reports.

See also:

What is the 'whoopsie' process and how can I remove it?
How can I track a bug that caused a crash and was reported via apport / whoopsie?

Debian bug reporting tools

There also exists reportbug which helps you file bug directly in Debian bug tracker from an Ubuntu system. However, reportbug is not installed by default in Ubuntu and can be installed by issuing this command in a terminal:

sudo apt-get install reportbug


you should sign up for the known bug here:

https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/993189?comments=all

Unity2d should work for you with no trouble at all


Problem installing and uninstalling Ubuntu

A recovery disc is what you need. If you don't have it, request one from your manufacturer.

For now,

type this in your terminal:

sudo apt-get update
sudo apt-get upgrade

However, you may get close with Ubuntu in the mean time, until you are able to recover your laptop's factory state.


I have a MacBook Pro Core i5 2.5 13" Retina 2012 and was in the same position, sound worked fine but no microphone.

Adding the following line to the bottom of /etc/modprobe.d/alsa-base.conf worked for me:

options snd-hda-intel model=mbp101

as per Microphone not working on Ubuntu 14.04 on MacBookPro10,2

I think I had done this in the past but a clean install of Xenial had removed the line.

After a reboot the mic was working again!


Upgrades to Lubuntu 16.04 when installing

If you are asked to download/install updates for your system, you should not be upgraded to 17.04, unless you explicitly set it to upgrade your computer.

As for not being able to run gksu, instead of running gksu gedit as specified in that answer, try sudo nano.

I hope this helps!


Installing freeglut3-dev on Ubuntu 12.04.4

I'm really not sure if this has anything relevant to do with your situation but figured I'd contribute a direction to pursue anyway, since your question has no other hits yet.

I just installed 12.04.4 fresh (no upgrade from previous version) and had no problem installing freeglut3-dev with apt-get, as you've tried unsuccessfully. You say in your OP that you follow directions for installing on a fresh ubuntu 12.04.3 install, but don't specify whether you have a fresh install yourself, or have upgraded from an older release.

That said, since my fresh install I have installed a range of related libraries as I'm also in the process of getting CUDA running. Perhaps something I did triggered a series of packages to be installed that resolved this issue in a proactive way. I did break and fix ubuntu-desktop, unity, and compiz a few times in the process, so a lot has happened.

However, in my tinkering the following linked information turned up in finding out exactly what the differences are in 12.04.4 from previous 12.04 releases. It relates to some optional components you may or may not have in your current install depending on how you arrived at 12.04.4

http://www.omgubuntu.co.uk/2014/02/ubuntu-12-04-4-released-new-kernel

Not sure if it'll help, or hinder, but worth a read-through anyway.

EDIT: Additional information might be found here https://launchpad.net/~xorg-edgers/+archive/ppa in the first few paragraphs. This is predominantly related to a ppa source for the most recent nvidia drivers, as opposed to installing from .run packages, but contains some other potentially relevant information.

In summary, I wonder if perhaps your problem is related to the fact that fresh installs of 12.04.4 have Precise X backport stacks, which I understand is an optional component of upgrading to 12.04.4 from an older release, as discussed in the first link I posted.

In other words, perhaps your issue is related to kernel version vs. mesa version. Maybe try a better package manager such as synaptic to see what version of these mesa packages is being fed to your system, upon which freeglut3-dev is dependent. My mesa packages are 8.0.4-0ubuntu0.7, and am running kernel 3.11.0-17-generic.


ifup cannot bring up eth0 after upgrading to 16.04

I ran into this on a fresh install of server 16.04 on a Raspberry Pi. For some reason, Network Manager wasn't installed by default, and after running dist-upgrade and then rebooting, I had no network.

I followed the steps at this blog to get it working again. Essentially, the mapping for eth0 had become corrupted. Normally, Network Manager can automatically fix this, but without it, you have to do it yourself. To do that, I first ran:

sudo networkctl

which showed me all my network interfaces like lo, wlan0 and something called enc238897s9879c3, which is actually supposed to be eth0.

To correct the mapping, I ran:

sudo ip link set enc238897s9879c3 name eth0
sudo systemctl restart networking

and that fixed it. Running ifconfig showed I had an IP, and running ping google.com showed I had Internet.


update-grub should automatically detect and add Windows partitions.  What's the output of this command?

This page is long, but the directions here should work for adding a custom menu entry:

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

It would be something like:

menuentry "Windows" {
set root=(hd0,2)
chainloader +1
}

You might need to twiddle the numbers to get the right partition.


Find particular index from the command line output

I think this is what you looking for,

$ var=$(pactl list short sinks | awk '$2=="alsa_output.usb-0d8c_C-Media_USB_Audio_Device-00-Device.analog-stereo" {print $1}')
$ echo $var
1


Sharing files between Ubuntu and Android-x86

Over the network. Maybe it is possible to add a network Adapter in VirtualBox and then download a FileExplorer-App in Android.
In Ubuntu you only have to make a Folder which is accessible over the network.
After that go to the explorer app and add a network share. Now you should be able to transfer files from Android to you host system.


Ubuntu TuxOnIce and uswsusp doesn't work

Not sure about the TuxOnIce problem, but I solved the "hang on resume" problem by inserting into /usr/share/initramfs-tools/scripts/local-premount/uswsusp at line 36 the following line:

[ -x /bin/plymouth ] && plymouth quit

According to this comment on Launchpad, plymouth needs to quit before resume can continue. Inserting the above line before /sbin/resume makes sure that happens.


Cannot Import VPN connection (Error: Key file contains line "client" which is not a key-value pair, group, or comment.)

Open the VPN file using an editor (my choice is nano) and uncomment the two lines starting with up and down.

then save the document and trying importing it from the VPN settings.


Switch pro controller disconnects and reconnects bluetooth. 19.04

Sorry for late reply, but just found out the answer.
You'll need to disable Ubuntu's Enhanced Re-Transmission Mode, which conflicts with how the controller works.
In order to do that, you'll need to add:

options bluetooth disable_ertm=1

to /etc/modprobe.d/bluetooth.conf and restart your PC.


'Place Windows' seems to be pretty buggy--when I had it on, it would make my windows jump to a screen-edge whenever they lost focus (or, with terminal windows, sometimes when I just hit return to the command line, which seems completely bizarre to me).

But with 'Place Windows' off, the start-at-0,0 issue is made worse when you have dual-monitors, with the one on the left below the one on the right; in that case, the 0,0 point is not actually on any monitor, so depending on the window size it might not appear at all.

If the window is visible, you can do a ALT-leftmousebutton on the window and drag it to where you want it.  If you have dual monitors, you probably want to ensure that the left one is positioned at least as high as the right one.

That was my solution--turn off 'Place Windows', redefine my left monitor position to be as high as my right, and just manually place all my windows.  I don't need to use the ALT-left thing because my panels are on my right monitor so I just grab the title bar.


How can I temporarily suspend Nautilus filesystem automounting, without making permanent changes to the system and user configuration?

You may use PROGRAM to check if your program is running to activate that UDEV rule, otherwise it is disabled because pgrep returns unsuccessfully.

  PROGRAM

  Execute a program to determine whether there is a match; the key is true if the program returns successfully. The device properties are made available to the executed program in the environment. The program's standard output is available in the RESULT key.

  This can only be used for very short-running foreground tasks. For details, see RUN.

source: man udev

Add new rules file

/etc/udev/rules.d/90-prevent-auto-mount.rules

ACTION=="add", KERNEL="sd[a-z][0-9]*", DRIVERS=="usb-storage", PROGRAM="/usr/bin/pgrep yourprogramname", ENV{UDISKS_IGNORE}="1"

Reload rules

sudo control --reload-rules

BTW, udisk2 is the one responsible for auto-mounting


Ubuntu 15.10
So far the only solution was to install indicator-systemtray-unity.

Github Project page: https://github.com/GGleb/indicator-systemtray-unity

there is an official ppa, so to install it just follow this instruction:

sudo apt-add-repository ppa:fixnix/indicator-systemtray-unity
sudo apt-get update
sudo apt-get install indicator-systemtray-unity

Once installed log out and log in.


Where can I find a driver for an Epson XP-424? What is the process to install the driver once I find one?

You can find the drivers at Epson Drivers Site

Search for your modelm download and install deb file according to your Ubuntu architecture.

If you have a 64-bit Ubuntu, you will need amd64 deb files.

For scanner driver you will need iscan_2.30.1-1~usb0.1.ltdl7 package, not ltdl3 one.


How do I install Ubuntu on an Asus GL552? Receiving various errors trying to install

I was able to get 15.10 installed by doing this:

  Modify /etc/grub.d/10_linux so that any subsequent updates don't
  overwrite the grub.cfg file and thus your modifications.

sudo -H gedit /etc/grub.d/10_linux

  Look for line 177. It should start with

linux    ${rel_dirname}/${basename}.efi.signed root=${linux_root_device_thisversion}

  After ro, add

nmodeset acpi=0 acpi_osi=linux acpi_backlight=vendor noalpic i915.preliminary_hw_support=1

  Save and close, and then update grub:

sudo update-grub

Based on a post at Ubuntu Forums.

Then for 16.04 I used these params instead:

i915.preliminary_hw_support=1 nouveau.modeset=0 acpi_osi=! acpi=0 acpi_backlight=vendor idle=nomwait


Please try re-installing the correct driver:

sudo apt-get install --reinstall bcmwl-kernel-source

If there are errors, please edit your question to report them.

Reboot.

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

Next, I recommend that your regulatory domain be set explicitly. Check yours:

sudo iw reg get

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

sudo iw reg set IS

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

gksudo gedit /etc/default/crda

Use nano or kate or leafpad if you don't have the text editor gedit.

Change the last line to read:

REGDOMAIN=IS

Proofread carefully, save and close the text editor.

Next, I'd set IPv6 to Ignore in Network Manager: http://docs.fedoraproject.org/en-US/Fedora/18/html/Installation_Guide/images/netconfig/network-connections-ipv6-ignore.png  This example is for ethernet, but you want wireless.

Is there any improvement?


You can make alias of the path to your script. Firstly, make your command executable by using chmod:

chmod u+x myvpn.sh

where u+x gives only the user(you) the permission to execute the script.

Then make an alias in your .bashrc to make it persistent:

alias myvpn='/path/to/your/script'

Now you can simply type myvpn from anywhere to execute the script.


Running the command netstat -tulpn | grep ':80\|:443' will display a list of processes running on ports 80 and 443. You can use that info to stop the processes, move them to another port or, alternatively, you could move your new XAMPP installation to a different port.


where can i get a free 12.10 ubuntu install disc

You can buy live CD's online for a couple of dollars/pounds. That is your best bet if you don’t want to download it. I would strongly suggest just getting some form of internet access and download it and put it on a pen drive or CD.

http://www.thelinuxshop.co.uk/catalog/index.php?cPath=21

This site above sells live CD's for really cheap.

Bill


Recent Document history for many Gnome 2 based applications are held in a file in your home folder called .local/share/recently-used.xbel

Either use the Launcher "Home Folder" - select the menu option "View - Show Hidden Files" and navigate to the .local/share folder and delete the file "recently-used.xbel"

Alternatively from the command line

rm ~/.local/share/recently-used.xbel

If you really want to stop recent document history from showing up for your login account then create a file with your favourite Text Editor called .gtkrc-2.0 and save this file in your home folder.

Alternatively from the command line

gedit ~/.gtkrc-2.0

In that file, include on a separate line

gtk-recent-files-max-age = 0


side bar or dock overlaps full screen request

Install dconf-editor, open it and go to /org/gnome/shell/extensions/dash-to-dock. You will find some buttons there to configure the dock. For example, autohide, switch off applications button, etc. Also autohide-in-fullscreen is there.

sudo apt-get install dconf-editor


TL;DR: rm -rf / doesn't remove bootloader itself, but everything that bootloader needs (and everything OS needs to function).

boot loader is permanently stored in the machine's ROM

Not quite. On most modern systems, bootloader can be either on Master Boot Record part of the disk - the first 512 B - or it can be on separate device  (see also). And to quote Wikipedia about linux kernel image:

...limitations on some i386 systems meant only the first 1024 cylinders of the hard disk were addressable.
To overcome this, Linux distributors encouraged users to create a partition at the beginning of their drives specifically for storing bootloader and kernel related files.

Embedded systems, such as Raspberry Pi, may in fact have a bootloader (or first stage bootloader) in ROM.

rm -rf / like any other command is loaded in memory and executed from there, so it removes recursively everything in / directory (/ filesystem), including its own original file /bin/rm. It generally knows nothing about MBR partition and operates only on all files/directories that can be found under /.
In other words, the first 512 B of disk that have the bootloader itself aren't removed, but /boot directory is removed, and that does contain configuration files for bootloader (typically GRUB) and temporary filesystem initrd.img which is loaded before the main / filesystem.  If you look at the Grub rescue article on linux.com, you'll see that even though bootloader itself might be working, it has to know the disk on which root filesystem is located, where kernel image vmlinuz is located, and initrd. That is, the example they give in grub's shell is
grub> set root=(hd0,1)
grub> linux /boot/vmlinuz-3.13.0-29-generic root=/dev/sda1
grub> initrd /boot/initrd.img-3.13.0-29-generic
grub> boot

where (hd0,1) identifies disk and partition with root filesystem.
Even though bootloader itself is not removed, when /boot alone is removed that does lead to problems. In case of rm -rf / you are removing everything from filesystem, including init - the very first process, the kernel


There are many unanswered questions in this scenario. Have you checked that the folders haven't been moved, perhaps into the Ubuntu One folder? If deleted, you may have to use file recovery software such as 'foremost' to recover your files. Foremost can be run from the command prompt and with the -t switch can be set to only look for certain file types. The general syntax is: foremost -t (filetype to find) -i (input, or disk to be searched) -o (output, or destination for found data)

So for example if you wanted to search disk B for lost jpeg files and store the recovered data on a third disk the command might resemble:
foremost -t jpeg -i /dev/sdb -o /dev/sdc/folder

As for remastersys running, it's supposed to make a backup of your system as an iso file. Did you have it running for a reason, perhaps on a schedule? If so you might be able to mount a recent iso and copy your files out of there.


Quick fix

sudo chmod o+x /run/user/1000/pulse

where 1000 - your user id


Can d-i (Ubuntu installer) configure bond, vlan and second network interface during the installation?

The only way I found out to configure VLAN, Network Bonding and second NIC is by tweaking last_command, which is not very straightforward.

I'm sad to see such common requests are not even implemented in d-i today.


How do I connect open VPN Ubuntu server with a windows client?

You can create a .ovpn file (with your appropriate ca.crt, client1.crt, client1.key) and use this file in your windows machine. For this purpose you need a windows client.

You can use openvpn client for windows as described here.

The downloads are in here.


Create a custom .iso

Graphical way to customize a clean iso (recommended)

Install the latest Ubuntu Builder from here
Choose "Select ISO > From local disk"
Choose 'Synaptic' to customize packages or 'Desktop' to run easily a VM with the ISO to make changes
Click 'Build ISO' to save your customized ISO somewhere

Guide here

To customize a clean .iso from the command line

You can use the 'Ubuntu Customization Kit' which can be installed like this:

sudo apt-get install uck

Launch it from the dash
Follow the instructions
Eventually, you will be given an option to run the console of the iso to install/remove packages and make customizations

You will need a pre downloaded ISO to be the base for your customizations

(source)

To create a copy of your existing Ubuntu installation

You can use the tool System Imager, available from here

  System Imager is a tool that images your running system and allows you to make a image of your running machine and install it on another. System Imager is based on the work of Remastersys.

This is probably easier if you aren't familiar with the command line. It'll be easier to make customizations

To test the ISO without writing to USB

Install qemu with

sudo apt-get install qemu

Run it with the command

qemu -cdrom /path/to/your/.iso -boot d -m 256

Finally

To write the iso to a USB and make it non persistent

Run "Startup Disk Creator" from the Dash
Choose your .iso and target USB drive
Set "documents and settings" option to "discarded on shutdown"

NOTE: This is only non persistent when booting from the USB, not in the final installed system


Can't assign script that takes control of mouse to shortcut

That problem might be caused by the environment variables which are defined before the Gnome-shell executes the program you've assigned a shortcut to. So you have two options :

Using the full path of the binary instead of just xcolor
Adding the xcolor to the list of system binaries by copy-pasting it to /usr/bin


Using Wubi to install Ubuntu Studio with pre downloaded image

Wubi doesn't support Ubuntu Studio... yet. There is a plan to support it from 13.04. It's possible to install it through some workarounds, but it's probably only for adventurous users. See ref here (which talks about installing Xubuntu but the same technique can be used with a caveat contained on the bottom of that post)

Another point - if you have Windows 8 preinstalled, or are booting via UEFI (i.e. using a GPT partitioned disk), Wubi won't work at all.

If you do want to try it out you could see whether there is a 13.04 version of Wubi.exe available but that would be off-topic for Askubuntu since it's a development release.


Anything Mouse Like Isn't Seen by Ubuntu 13.10

In a terminal use this command:

sudo dpkg-reconfigure xserver-xorg


change name of a service file when creating a package

At last I solved it with the following configuration:

package name is  thunder-buildout-prod
debian/oooctl.service as in question
in debian/rules:

%:
  dh  $@ --with bash-completion --with systemd --with python2

override_dh_systemd_enable:
  dh_systemd_enable -p thunder-buildout-prod debian/oooctl.service

override_dh_systemd_start:
  dh_systemd_start -p thunder-buildout-prod debian/oooctl.service

As a last note. Having a script in /etc/init.d/oooctl (note: same name as the service) that sources  /lib/lsb/init-functions, this is enought to make it just work as a call to systemctl start/stop/status oooctl.service ignoring the rest of the script


Run command on startup only after a certain time in day

Here is a script that will check to see if it is after 17:00 then perform a task of turning the backlight on.

#!/bin/bash
time=$(date +%k%M)

if [[ "$time" -ge 1700 ]];then
    echo "Backlight on"
    xset led 3
else
    echo "Backlight off"
    xset -led 3
fi

On a 24 hour clock, midnight 0:00 would be less than 17:00 so it would then become false and not run.

Or, if you want, anytime after 17:00 but before 08:00 could look like this as well:

#!/bin/bash
time=$(date +%k%M)

if [[ "$time" -ge 1700 || "$time" -le 759 ]];then
    echo "Backlight on"
    xset led 3
else
    echo "Backlight off"
    xset -led 3
fi

You could also add a cron job under root settings so all users will have it run twice a day, once at 17:00, the other at 08:00 in case the system is on during these times:

sudo crontab -e

add the following at the bottom of the cron file:

00 08,17 * * * /path/to/script_file


Count the number of /etc/passwd entries that have no password?

I think that to find entries with no password set, you will have to use /etc/shadow:

sudo grep -Ec '\!|\*' /etc/shadow

The ! and * characters indicate that there is no Unix password for the user, for example:

root:!:17092:0:99999:7:::
colord:*:17086:0:99999:7:::

The entries in /etc/shadow correspond to those in /etc/passwd

Instead of a count, you could get a clean list of just the usernames:

sudo grep -E '\!|\*' /etc/shadow | grep -o '^[^:]*'

You can use -v to invert the match and count or list users with passwords of course:

sudo grep -vE '\!|\*' /etc/shadow | grep -o '^[^:]*'

Notes:

-E use ERE so we can use | for alternation
-c return a count of the lines, not the lines themselves
-o just print the matched part
'^[^:]*' from the start of the line to the first :


Resetting GTK Settings: Ambiance Menu Colors

I had the same problem.

sudo apt-get install --reinstall libgtk-3-common light-themes gtk3.0
dconf reset -f /org/compiz
sudo reboot

And it was OK for me!

it is all those things, described in previous 2 posts!


Prevent command from stopping when pressing CTRL+C

CTRL + C sends an interrupt signal (SIGINT, which is signal number 2) to the job in the foreground. You can disable this by "trapping" the signal using the trap '' 2 command before starting Zork.

Re-enable CTRL + C (untrap SIGINT) with trap 2.

Tip: you could add something like this to your ~/.bashrc:

alias zork="(trap '' 2 && cd ~/path/to/zork/ && frotz ZORK1.DAT)"

This way you will never forget to disable and re-enable the signal and it's easier to start the game by just typing zork in the terminal.

Note: you can use the signal name instead of the number if it's more convenient for you, i.e. trap '' sigint or trap '' int. I'm just used to using the numbers, e.g. in kill -9 and such.


18.04 x11vnc failed to start and password problems

After more research this question lead me to the fix for the grey screen issue: VNC grey screen with Xubuntu 17.04

Between this and the .desktop file create from Edit 2 my questions have been answered.


How can I run Ubuntu inside a virtual machine on Windows 7?

You've downloaded a 64bit image and your processor can't handle 64bit (or, more likely your copy of Windows can't).

The fix is simple: download and use the 32bit version: go to the Ubuntu Desktop download page and select 32-bit below Choose your flavour.


Can't open .ods file I created and saved in Google drive - no application for "application/x-vnd.oasis opendocument.spreadsheet type" files

Right-click the file, select "Properties" in the menu that appears. Select the "Open with" tab, look for LibreOffice Calc in the application list and select it. Click "Set as default" to have this file type open by default in Calc.


$ type echo
echo is a shell builtin

meaning, the echo command is part of the bash program itself (assuming you use bash)

-n is an option, so let's see what it does

$ help echo
Write arguments to the standard output
...
-n  do not append a newline

So when we run the line:

zanna@monster:~$ echo -n "Today's date is: "
Today's date is: zanna@monster:~$

Hmm that doesn't look very good, because there's no newline after the printed text. We'll come back to this.

$ type date
date is /bin/date

ah so the date command is a separate program. What does it do?

$ man date
Display the current time in the given FORMAT, or set the system date.

The characters after the date command are format options (which must be preceded by +) - different parts of the date are specified (for example %A is the full name of the day of the week - see the rest of man date for the complete list of options)

$ date +"%A, %B %-d, %Y"
Tuesday, February 7, 2017

So if we put the commands together in a script and then run the script we will get

Today's date is: Tuesday, February 7, 2017

Nice! If you want the same effect in a terminal, you can use a semicolon to separate the two commands instead of a newline:

$ echo -n "Today's date is: " ; date +"%A, %B %-d, %Y"
Today's date is: Tuesday, February 7, 2017


Now that you have 14.10 installed, you can't go back to 14.04 or before(at least resonably practically). So we'll have a look at your other options to increase stability and security. They are in increasing stability and decreasing ease.

Use stable versions: You should try to use the stablest versions of softwares available. This would increase stability to some extent.
Use 14.04 in VM: A better option will be to use 14.04 in Virtual Machine for most work. If VM is stable, this should do very well.
Dual boot 14.04 & 14.10: You may as well dual boot the two versions and keep newer 14.04 until 14.10 becomes stable.
Clean install 14.04: Although a nightmare, this is the best option to get your computer in pre-upgrade state.


Says "Installing system" but not doing anything

If you enabled to download / install third party programs (one of the two options at the start of the installation) try to restart the installation without enabling any of the two options.


Why is it still not possible to shut-down the PC when LibreOffice-quickstart is active?

There is a bug report on Launchpad that includes a workaround:

Run gksu gedit /usr/lib/libreoffice/basis3.3/share/registry/main.xcd
Search for the key DocumentStoreUIEnabled in the first line and change it to false.

Have you tried that?


How to use time command in bash, to sum sys + user time, and output it as milliseconds?

Do this

Run your command using below script, substitute your_command.

$ ALL_TIME=`(time your_command) 2>&1 | grep -E "user|sys" | sed s/[a-z]//g`

now variable ALL_TIME store two values: `

$ echo $ALL_TIME
00.001 00.003

Now you need to summarize values. Use script below

Don't forget to set RUNTIME to zero.

$ RUNTIME=0
$ for i in $ALL_TIME; do RUNTIME=`echo "$RUNTIME + $i"|bc`; done
$ echo $RUNTIME
.004

Sources

How to grep from time

Redirect output of time command in unix into a variable in bash?


Your alsa-info output says that the Master volume meter is muted ([off]):

Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined penum
  Playback channels: Mono
  Limits: Playback 0 - 64
  Mono: Playback 64 [100%] [0.00dB] [off]

You have to unmute it in alsamixer by pressing M while that meter is selected.


Solution: Unlike I mentioned before my python3.5.1 installation was not removed by the update. It was still under /usr/local/bin/python3.5.

Tracing the Error: I wrote a few debug lines into /usr/lib/python3.5/_sysconfigdata.py:

print("python-version", sys.version_info)
print("python-gcc-version",sys.version)
print("python-executable",sys.executable)

The output was different between calling /usr/bin/python3 and rhythmbox, but the python-executable was in both ways /usr/bin/python3

Then I searched for the wrong installation  using whereis python3
and removed  /usr/local/bin/python3.5

Then I purged and reinstalled python3 and ran apt install -f.
So this Error disappeared.

Remember: never install stuff from source, if it might be in the repos sometime or, at least remove it before your package manager installs it.


18.04 and Nvidia GeForce GTX1050 - ASUS GL 503

I have an Asus GL503VD, I7/1050, i believe the internals are quite the same.

Install

On grub menu press e to edit boot config.
Add acpi_osi=! after quiet splash.
Press ctrl+x to boot.

Thats whats needed to boot. Maybe during install you also need nomodeset, i'm not sure.

After install edit the file /etc/default/grub/ and modify the CMLD_LINUX_DEFAULT line to: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi=!"

All works fine. Except touchpad and keyboard special keys. I'm still looking for a solution for these.

Update 30/05/2018

Working on ubuntu 18.04, kernel 4.17-rc6, nvidia 396.

Fixed on latest kernel 4.17.0-rc6 using nvidia 396 (installed from ubuntu graphics ppa).

No more black screen of death, works Touchpad (except for the (five finger tap freeze), brightness (but not keys) and everything else.

I believe in a long term the solution will be merged on kernel.

NVIDIA Driver Install

Boot with acpi_osi=!, add ubuntu graphics ppa:

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

Install nvidia latest graphics (current on post 396.X).

Kernel install

Go to: http://kernel.ubuntu.com/~kernel-ppa/mainline/ and look for latest kernel. Current on answer 4.17rc6

Download for amd64: linux-headers, linux-headers-XXXXX-generic, linux-image-XXXXX-generic, linux-modules-XXXX-generic.

Leave all inside a folder. Open in bash and run sudo dpkg -i *.deb

Boot with default boot parameters. acpi_osi=! is not needed anymore.


grive sync error, possibly google API shift

Yes, Grive is using the defunct Documents List API. As of around 9AM PST we stopped serving these API requests. This is why the Grive client is receiving '400 Bad Request' responses.

Looking at the project, it appears to be unmaintained for almost a year and definitely hasn't been updated (here & here) to the new API that was released in 2012 when Documents List was officially deprecated.


The error:

  ACPI: watchdog: Device creation failed: -16

means that the system failed to create the watchdog device because some of
the resources were already reserved (-EBUSY). see: Linux git commit

  platform wdat_wdt: failed to claim resource: 1

Although based on the the resource number, there is not enough information to figure out which resource range failed to claim. There is a Linux patch which can print the resource range if device failed to claim, based on which /proc/iomem or ioports should tell who already claimed this resource, and whether it's a driver bug or incorrect resource assignment which is running into this conflict, so it can be diagnosed further.

Some people suggest that it can be caused by some problem with your bootable disk. So you can try to disable USB 3.0 or try a different USB device instead (USB 2.0 instead). You may also to create the bootable USB again, but using different software, e.g. UNetbootin. Another workaround is just to burn disk a DVD instead and try again. see: USBlive fails to boot

Other things you can try is to enable or disable ACPI support in BIOS. Some other people suggest that it could be a video card issue.

To find more about the issue, try disabling quiet mode which may show more boot messages. So when you're on the grub menu while booting, press Tab or e , hit X to edit, then delete quiet and add nomodesetsee: linux.com (this instructs the kernel to not load video drivers and use BIOS modes instead until X is loaded).see: ubuntuforums


Is there any command to minimize windows?

you can do it.

Open your terminal and paste following command

sudo apt-get install xdotool

Then

execute below command in terminal

xdotool key <your_keyboard_hotkey>

To minimize all windows hotkey is Control-Super-D so

  xdotool key CTRL+Super+D

To minimize a window

 xdotool key Alt+Space+n

To maximize

  xdotool key Alt+Space+x

will minimize and one more thing is you can use alias and can give a name to call this command.

Hope it will works


Trying to install iSight webcam; following instructions but "module bcd_pci" not found - Google doesn't help

I did this a while ago and I did:
install the firmware tool
sudo apt-get install isight-firmware-tools
firmware file
file
Extract the firmware file somewhere and when the iSight-firmware-tool is done installing and it opens, go through the process and when it asks for a firmware file, give it the location of the file that you extracted before. Then if all goes well, reboot and boom, iSight.


sudo apt remove electrum
sudo purge electrum

You may still have a folder in your  home directory named .electrum which should be removed manually.


Use gnome-shell in Ubuntu Studio (or Ubuntu Studio functionality in vanilla Ubuntu)

I see two and a half paths:

Install Ubuntu GNOME (images, wiki), then install the ubuntustudio-audio ubuntustudio-audio-plugins linux-lowlatency metapackages
Install UbuntuStudio (web), then install the gnome-shell gnome-session metapackages
Install Ubuntu, then install the ubuntustudio-audio ubuntustudio-audio-plugins and gnome-shell gnome-session metapackages

I suggest 1 (Ubuntu GNOME), here is why:

3 (Ubuntu) is the easiest to eliminate because it represents one more setup step for you, and one more set of cruft you'll want to avoid. You know you want audio stuff, and you know you want Shell. Options 1 and 2 are each only one step away, while option 3 is two steps away, let's forget about it and the cruft it brings.
Then deciding between 1 (Ubuntu GNOME) and 2 (UbuntuStudio) is also easy in your case, because you want Shell and audio stuff. Well,

If you install UbuntuStudio, you will end up with XFCE, which you don't want
Just adding the ubuntustudio-audio ubuntustudio-audio-plugins linux-lowlatency metapackages will setup your lowlatency environment the same way than through a Studio install, without the additional Studio cruft (XFCE, additional video/etc. packages)

Finally, regarding the login manager, with Ubuntu GNOME you'll end up with GDM, which (provided you like GNOME Shell) will be fine for you (simple, efficient) and is not better or worse than LightDM.

To wrap up:

Install Ubuntu GNOME (images, wiki)
If you want to get the latest-and-greatest GNOME 3.8 hotness, add the official GNOME3 team PPA : sudo apt-add-repository ppa:gnome3-team/gnome3, and do a sudo apt-get update && sudo apt-get dist-upgrade.
Note: Do not add the staging PPA, it is for developers and will make your environment unstable.
Install the ubuntustudio-audio ubuntustudio-audio-plugins linux-lowlatency metapackages
Jam :)


How can I login to a display-less machine via ethernet?

When your server boots up, even if you don't log in, it should be connected to the local network.

To log in, you should be able to use ssh:

ssh username@yourmachinename.local

If you'd like to run graphical apps on the server you can add X forwarding:

ssh -X username@yourmachine.local


Navigate directory and move files one level up, recursively

Thanks to @Jos, this worked for me:

Create a file named movefiles.sh (and set it executable) with the following code:

#!/bin/bash
path=$1
echo "Now processing $path"
cd "$path"
if [ -d "./httpd-ack" ]; then
 cd httpd-ack
        mv * ../
        cd ..
        rmdir httpd-ack
    fi

Invoke find as follows:

find . -maxdepth 1 -type d -exec ./movefiles.sh {} \;

It worked like a charm...  (I didn't try @bac0n solution.)


How to delete all the things off a hard drive seperately

Rather an odd question but I'll bite:

Download and boot to Live CD
Choose "Try Ubuntu" when offered
Load up the Partition Editor (gparted) or the Disk Utility (palimpsest)
Format the drive.

If you are doing this for security reasons (you don't want the data recovered) see:

How to delete file(s) in secure manner?
(and this should be done from the Live environment)


"invalid pixel format string" when encoding a sequence of .pngs with avconv

At times, as pointed out by Jonathan Leaders, this is caused by the absence of the input file.

Make sure you have a list of files corresponding to the input you have given:

frame_%08d.png

which means

frame_00000001.png
frame_00000002.png
frame_00000003.png

etc.


clamtk does not work after update to latest gui

You need to update your clamav as well.  Click here to take you to the clamav download.  Go to the download folder that you downloaded it to, and type in the following from a terminal window:

tar zxvf clamav-0.98.7.tar.gz

then go to the folder that was just created

cd clamav-0.98.7/

Now, configure the source

./configure

Then make the source

sudo make

Then install the clamav

sudo make install

Hope this helps to get your clamav working with the new version of clamtk.


KioExec folder already exists, kdeconnect issue

I'm currently still trying to work through the problem and have made some progress. I don't want to redefine the original post because some of the problem is solved. But I still need help.

I made a backup and did something dangerous. I apt-get removed gnome-shell, gnome-desktop3-data, and gdm. Followed that up with:
    sudo dpkg-reconfigure lightdm
    sudo apt-get autoremove

On reset desktop stuff was real messed up. Pressed CTL+ALT F2
    sudo apt-get install gnome-shell, gnome-desktop3-data, gdm3
install of gdm3 automatically took me to dpkg configuration. I chose gdm3.
Now, pressing the browse phone button works for kdeconnect.

But now I have the issue of when I select a storage folder on the phone I am greeted by an error saying, "The file or folder /run/user/1000/[long number]/storage/[long number]/ does not exist."
Any idea what causes this issue?


With both Gnome 3 and Unity interfaces the current & possibly future directions of the newer linux distros, my advise would be not to look backwards, but to consider alternative desktop interfaces.

XFCE is such an example, with many of the application indicators you previously have used.

You can either try a brand new install of Xubuntu - or just search for XFCE meta package in the software center and install the desktop.

Logout and choose the XFCE session.


Ubuntu 18.04 Screen Flickering on Dell XPS 15 9570 GTX 1050 Ti

I experienced the same flickering problem. It was solved by upgrading the kernel to v4.17.14.
Kernel version 4.17.12 also seems to be fine as described in https://base64.co.za/ubuntu-18-04-on-dell-xps-9570/


I can't access a network connection / downloaded apt-offline onto a USB / IDK what to do from here

Based on your comments here you have good solution for your problem http://elrepo.org/tiki/wl-kmod


ubuntu 18.04, nm(Network Manager) is not able to manage network devices

I had this happen with an installation of Ubuntu Server 18.04 (Which uses netplan) and then adding a desktop window manager GUI (in our case, xubuntu-core^).

No Manner of re-configuring or nmcli would make these devices managed.

The solutions you tried were close, we found that if you follow the answer located here:  Ethernet device not managed
and note that the location of the 10-globally-managed-devices.conf is in the folder /user/lib/  you will be able to active those network devices by blanking the 10-globally-managed-devices.conf file with:

sudo mv /usr/lib/NetworkManager/conf.d/10-globally-managed-devices.conf  /usr/lib/NetworkManager/conf.d/10-globally-managed-devices.conf_orig

and

sudo touch /usr/lib/NetworkManager/conf.d/10-globally-managed-devices.conf

And restarting network-manager or rebooting.


Installation problem libssh2-php on Ubuntu 13.10

This is a bug.

As a workaround:

sudo mkdir -p /etc/php5/conf.d/
sudo apt-get install libssh2-php


cant get apache to run with php5 in Lubuntu

Now I found out what was the problem.
It was not any configuration problem with apache or php.

It seems, that the Value short_open_tag in default php.ini changed from On to Off.

All my php sources starts with <?

I did not come up with the idea that this could be the problem and I always tried out various configurations about apache.

I could not understand why to change values like this by default.


What tool can I use to monitor a network of PCs?

Nagios is considered one of the best monitoring tools on the market. They also offer an open source version "nagios core" (nagios3-core in the Ubuntu Software Center). Having said that, you might want to take a look at this directory of network monitoring tools.


How to add apache2 , php and mySql to eclipse?

You do not add these to eclipse - they run independently as servers (apache/php and mysql)

Download and install eclipse specifically built for web development from PHP Development Tools.


Surface Pro 4 won't wake up on Ubuntu 18.04

Upgrade the kernel to v4.16 With UKUU.

You should install Ubuntu Kernel Upgrade Utility (UKUU).

sudo apt-add-repository -y ppa:teejee2008/ppa
sudo apt-get update
sudo apt-get install ukuu

Run UKUU with this command:

sudo ukuu-gtk

In the UKUU GUI select Kernel 4.16 and install it. When the process finishes, you have to reboot.

Try it!

If after waking up, your Wifi is broken, you may tell to your system that, we want to explicitly unload on suspend and reload on the resume.

Create new dir /etc/pm/config.d

sudo mkdir /etc/pm/config.d

Create a new file in this dir

sudo touch config

Edit this file

sudo -H gedit /etc/pm/config.d/config

Add one line:

SUSPEND_MODULES="iwlwifi"

Save, close and reboot.


I have noticed this behaviour as well on my 12.04LTS and Skype version 2.2.0.35 Beta.
When you click on the orange circle with cross I get this behaviour.
When you use Ctrl+Q it closes correctly without leaving instance running in memory.


Error when upgrading to Ubuntu 16.04 LTS

If this can reassure you, the problem doesn't seem to come from your upgrade, rather from a very recent update. I'm on the 16.04 LTS since a couple weeks now, and I didn't encounter any problem like this. However, yesterday in the evening, I tried to do an update (which I didn't do for about a week or so), and this showed up:

sudo apt full-upgrade
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
Correction des dépendances... a échoué.
Les paquets suivants contiennent des dépendances non satisfaites :
 libgl1-mesa-glx : Dépend: libdrm-amdgpu1 (>= 2.4.83-3~x~padoka0) mais 2.4.82+git20170807.ceb70a6b-0ubuntu0ricotz~16.04.1 est installé
 libgl1-mesa-glx:i386 : Dépend: libdrm-amdgpu1:i386 (>= 2.4.83-3~x~padoka0) mais 2.4.82+git20170807.ceb70a6b-0ubuntu0ricotz~16.04.1 est installé
E: Erreur, pkgProblem::Resolve a généré des ruptures, ce qui a pu être causé par les paquets devant être gardés en l'état.
E: Impossible de corriger les dépendances

So even though this is in French (I'm sorry by the way), you can see it's quite the same error message.

After a few searches, it seems to be a problem with repository (e.g. an added repository conflicting with one of the official ones). Even though it didn't work for me, I give you this tip hoping it'll help: Go to "software and updates", in the first tab, make sure only "main" and "universe" are checked, and in the second tab, uncheck all third party repositories. Close the window and it might work. If it doesn't, well ... at least I'm not alone in this problem.


2 disks dual partitioning with Windows7 and Ubuntu

If my assumption is correct you are attempting to install Ubuntu alongside a existing Microsoft installation, and you would like a tutorial to show you how to do so.

The first link is a tutorial showing you step by step how it can be done, including the partitioning where you believe you may have gone wrong :
https://help.ubuntu.com/community/WindowsDualBoot

The second is less of a tutorial and more of an installation tool for Windows that eases the process of installing Ubuntu alongside an existing Microsoft installation:
http://www.ubuntu.com/download/ubuntu/windows-installer

Those links should get you started and assist with getting it right this time ;)

Regards,

milo


Wi-fi doesn't work without reinstalling after every restart - please help me - 14.04

First, let's be certain that the correct driver wl isn't blacklisted:

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

Use nano or kate or leafpad if you don't have the text editor gedit. If 'blacklist wl' is listed, remove it. Proofread carefully, save and close the text editor.

Next, let's ask wl to load automatically on boot:

sudo -i
echo wl  >>  /etc/modules
exit

Reboot and tell us if it's working as expected.


How to format a USB or external drive in 13.04?

Use gparted, like in this how-to. But don't use FAT32, or you will have a 4 GByte file size limit. Use NTFS instead.


How to replace LibreOffice with OpenOffice?

Starting with Ubuntu 11.04, openoffice.org packages are "transitional" packages facilitating migration from OpenOffice.org to LibreOffice. That is, they are packages that provide no actual files, but which have the corresponding LibreOffice packages as dependencies, so that LibreOffice gets automatically and smoothly installed.

Therefore, if you want to continue running OpenOffice.org instead of LibreOffice in Ubuntu 11.04 (or higher), installing Ubuntu's openoffice.org packages will not accomplish this. You will have to install OpenOffice.org from the packages provided at the official OpenOffice.org website. Before doing so, you should remove all the openoffice.org and libreoffice packages currently installed on your system, along with their global configuration files. The easiest way to do this is probably in the Synaptic Package Manager (as suggested by Uri Herrera). Mark these packages for complete removal. These packages' names are listed at https://launchpad.net/ubuntu/+source/openoffice.org and https://launchpad.net/ubuntu/+source/libreoffice (the lists overlap only partially, so check both).

Before you replace LibreOffice with OpenOffice.org, you should be aware that:

LibreOffice is currently a very close fork of OpenOffice.org. So any functional changes (including new bugs) you are seeing from the version of OpenOffice.org in Ubuntu 10.04 LTS or Ubuntu 10.10 to the version of LibreOffice in Ubuntu 11.04 are likely also to be present in the newer version of OpenOffice.org.
Once you install the upstream version of OpenOffice.org by running the installer obtained from the official OpenOffice.org website, OpenOffice.org will no longer be updated when you update the rest of your Ubuntu system in the Update Manager. Therefore, you will have to make sure it receives updates, and perhaps update it manually. It does have an automated mechanism for checking for updates, however. (I think this is in the Help menu.)


Try this:

find . -iname '*.psd' -print0 | du -ch --files0-from=-

find . -iname '*.psd' finds all files that end with an extension of psd
-print0 prints the file names followed by a null character instead of a newline
| du -ch --files0-from=- takes the file names from find and computes the disk usage. The options tell du to:

compute the disk usage of file names separated by a null character from stdin (--files0-from=-),
print sizes in a human readable format (-h), and
print a total in the end (-c).

Change .psd to whatever file type you want to find the disk usage for.


Assuming that you have two paritions, one for Windows and the other for Ubuntu, if your data is on the Windows 7 partition, and you're running update manager in Ubuntu, it shouldn't affect your NTFS partition at all. If running update manager, it will only affect the system files on your Ubuntu partition.

If you have data on the Ubuntu partition, it shouldn't affect those either, unless you decided to save your data in a system folder that gets deleted for some reason. As long as it's in your /home/xxxxx/ folder, it should be safe.


AMD Catalyst Installation on Ubuntu; No supported adapters detected

First change to discrete card by using this code:

sudo amdconfig --px-dgpu

Then do this:

sudo amdconfig --initial -f

Reboot.

Also you can activate trusty-proposed and try to install fglrx.


Try following this guide to change the IP manually, that will usually do the trick:

http://wiki.debian.org/NetworkConfiguration#Configuring_the_interface_manually

Regards,
Stefan.


You've encountered one of the reasons it's difficult to fully convert Ubuntu from one DE (desktop environment) to another: dependencies.  The request to remove ubuntu-release-upgrade-qt is most likely because it depends on something supplied by the kde-desktop meta-package (I'm guessing Synaptic package manager).

This is why it's almost always faster and easier to make a backup of the information you want to keep, and then do a clean install of a flavor you want to switch to.  Doing so will also do a much better job of removing the space-consuming pieces of KDE that you no longer need, but don't know about (so can't remove manually).


Why is the meta key is not working when using Emacs?

I fixed this in my Ubuntu Terminal app by going in the menu:  Edit -> Keyboard Shortcuts and deselecting the 'Enable menu access keys (such as Alt+F to open the File menu)'.


Open a terminal and issue the following commands:

apt-get purge mysql* mariadb*

apt-get install mariadb-client-10.0

apt-get install mariadb-server-10.0

source:https://github.com/fideloper/Vaprobash/issues/225


The problem seems to be with the outdated Ubuntu skins package:
mplayer-skins

The PNGs are not in the correct format.
The Ubuntu packages mplayer and mplayer-gui are quite old.
Ubuntu has the outdated skin package.
I got it fixed with the following command:
cd /usr/share/mplayer/skins/default; for FILE in *.png; do sudo convert $FILE -define png:format=png24 $FILE; done


unable to configure italian keyboard with ISO layout

My solution so far:

xmodmap -e "keycode 135 = less greater"

this changes the key mapping of the "menu" key to match the layout of my keyboard.

It's not clear to me if this solution is permanent and what happens if I mix this with the keyboard selection of ubuntu configuration.


how can I get rid of GPT if I want to install single boot Ubuntu

This problem is because of buggy BIOS firmware of the laptop I was working on, ThinkPad 440p. Downgrading its BIOS (to version 1.14) solved the problem as people pointed out in this link: problem with ThinkPad 440p


Ubuntu One can't sync folders through authenticated proxy

Make sure you install ubuntuone-client-proxy and configure your proxy settings in Network Manager.


real-time search in terminal output stream; after running a command

Try ctrl-shift-f to search in gnome-terminal. If you're using some other terminal, please specify which one.


How do I install signal so I can install Octave?

You can install signal by entering the following command in the terminal:

sudo apt-get install octave-signal

This will install signal-1.1.3, at least in Ubuntu Quantal. If you actually need signal-1.2.0, the following commands will help you.

Install dependencies from Ubuntu archives:

sudo apt-get install liboctave-dev octave-optim octave-specfun octave-control

Download the latest version of octave general package (>=1.3.2) and install it:

sudo octave --eval 'pkg install general-1.3.2.tar.gz'

Finally, install the signal-1.2.0 package:

sudo octave --eval 'pkg install signal-1.2.0.tar.gz'


After 61 days a window froze do I have to reboot?

Simply logout and login again

Powering off and on is the best way of cleaning your system out entirely and starting fresh. Rebooting comes very close to that.

However many times you can simply logout and back in to start with a fresh desktop without any frozen windows, lagging keyboard or mouse, etc. If problem persists then you can go the extra mile and reboot.

When you log back in you may receive a crash report like the one below. I've checked the box to show more details. Because this is a random error and it was 61 days in the making I'm not sending the crash report to the folks at Canonical (makers of Ubuntu). I don't want to waste their time on such a trivial issue.

To prevent sending crash report to Canonical, uncheck the box at the bottom titled "Send an error report to help fix this problem".


The output of ubuntu-drivers devices tells you to install the nvidia-304-updates recommended graphics driver for your NVIDIA GPU. If you haven't already installed nvidia-304-updates, the way to install it from the terminal is:

sudo apt-get install nvidia-304-updates
sudo reboot


alsamixer crashes with my asound.conf file, but is fine without it

Forget about that ctl device; to configure the mpd mixer, set its mixer_type and/or mixer_device. (If the device does not have a usable mixer controls, you might need to use the software mixer.)

The busy error is caused by some other program (probably) PulseAudio opening the device.
(You can check the PID in /proc/asound/cardX/pcm0p/sub0/status.)


sudo doesn't ask for a password, even after multiples reboots

Use visudo to edit your sudoers file and look for NOPASSWD: - that's the directive disabling the user password prompt (you NEVER have to enter the password of the target user, i.e. the root password). Simply removing that directive (including the colon at the end) should require you to re-enter your password to use sudo (unless you used it recently, then it's still cached, you can clear this using sudo -k)


Improve Screen Resolution in Ubuntu 11.04

1.Boot into your Windows VM spamming the f8 key and enter safe mode.

2.Once there install the VM guest addtions

3.Go trough the install Wizard and done. reboot


Only with Something Else manual install option do you get the choice on which drive to install boot loader into. So with multiple drives you always use Something Else.

You can use Boot-Repair's advanced options and choose an operating system and which drive to install its boot loader into. Or Windows into Windows drive and grub into Ubuntu drive. Or you can use Windows repair flash drive to repair Windows and when in Ubuntu install grub to sdb.

https://help.ubuntu.com/community/Boot-Repair

You did not want grub in sda, it that is 500GB drive but sdb the 60GB drive and only in the 60GB drive.

reinstall from working (not liveCD/DVD/USB) system - first find Ubuntu drive (example is drive sdb but use your drive not partitions):

sudo fdisk -l

if it's "/dev/sdb"  then just run:

sudo grub-install /dev/sdb

If that returns any errors run:

sudo grub-install --recheck /dev/sdb
sudo update-grub

How to restore the Ubuntu/XP/Vista/7 bootloader

https://help.ubuntu.com/community/RestoreUbuntu/XP/Vista/7Bootloader


What in Ubuntu swallowing ctrl+alt+p shortcuts?

Mentioned issue in ClipIt issue has been fixed recently.
ClipIt 1.4.5 is not in Debian or Ubuntu repos yet, but patched packages are available in ppa:
https://launchpad.net/~afelinczak/+archive/ubuntu/ppa


I found a workaround here: https://github.com/deadalnix/pixel-saver/issues/132:

cd ~/.local/share/gnome-shell/extensions/pixelsaver@deadalnix.me/themes
mv Ambiance Ambiance.bak
ln -s default Ambiance


target filesystem doesn't have requested /sbin/init. /bin/sh: 0 : Can't open splash - Ubuntu 15.04

It seems your /sbin/init file is corrupted as you were trying to force shutdown.

One thing you can do is:

Make a boot-able USB with the same 15.04 by using unetbootIn or Startup disk creator
Connect it in your PC boot into that USB
Select the option try Ubuntu without installing
Here search for the partition where your 15.04 installed, it might be /dev/sda1 to n. There we need to replace /sbin completely with our installation source's /sbin.

You can use sudo mv command for that, after replacing /sbin, reboot   your system.

It will work :)


Restore grub - possibility of using Gparted Live

Not sure how lightweight Gparted's liveCD is.

Install MBR from liveCD/DVD/USB, Ubuntu install on sda5 and want grub2's bootloader in drive sda's MBR:
Find linux partition, change sda5 if not correct:

sudo fdisk -l

confirm that linux is sda5

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

The above command should work but they now suggest this command for grub 1.99 with Natty 11.04 or later - uses boot not root.:

sudo grub-install --boot-directory=/mnt/boot /dev/sda

If that returns any errors run:

sudo grub-install --recheck --root-directory=/mnt/ /dev/sda

If no errors on previous commands reboot into working system and run this:

sudo update-grub

I unusually suggest Boot-Repair but do not know if it runs or not (it does work in several distributions) as it needs some standard utilities. It is not a huge download (mostly bash script) and does have a Lubuntu based version to download.

https://help.ubuntu.com/community/Boot-Repair


Transfer of Backup from Ubuntu16.04LTS to 18.04LTS

Good that you can access the old computer. The permissions issue can be solved.

If 'access' means 'read', the problem is permissions to write (in the new computer).

What files to write, and where

You should be able to copy the whole /home directory but be very careful, when copying system directories and files and do not copy any installed programs. It is better to install the program packages that belong to the new version of Ubuntu.

I would recommend rsync to copy the /home directory. See man rsync. The trailing slash is important.

First a 'dry run' to check that things seem to get copied correctly,

sudo rsync -Havn mountpoint-of-old-computer/home/ /mountpoint-of-new-computer/home

Then do it (remove the option n),

sudo rsync -Hav mountpoint-of-old-computer/home/ /mountpoint-of-new-computer/home

You can use rsync in a similar way for single files or limited directories, but do not copy system settings unless you know what you are doing, because things may not be compatible with the new version. For example, if you have special details in the old /etc/fstab, it is better to look at it and modify the corresponding file in the new computer manually.

If you have a separate data partition for your personal files, ownership and permissions are less important, does not disturb the Ubuntu system, and you can copy the files as you like (as long as you have write permissions).


Unable to disable Desktop Icons extension

The pre-installed system extension 'Desktop Icons' keeps its config files in the /usr/share/gnome-shell/extensions/desktop-icons@csoriano/ directory. If you're absolutely sure, you can disable the extension by removing this directory. It is highly recommended to just rename the directory so that if anything goes wrong you would be able to recover by reverting to the original name.

Note that this directory would most certainly be re-created after an upgrade to an associated package. So you would have to repeat the renaming part after each such update.


Access Windows Disks from Ubuntu LiveCD?

If you try to read a Windows disk (a partition formatted as NTFS) that is shut down incorrectly or hibernated, this error comes up.

It is displayed when you try to mount the partition in the live operating system because the filesystem NTFS is best altered by the Windows operating system itself. The easiest thing you can do, is reboot in Windows and let windows clean its own file system.

The answer to the following question may explain in a more precise way why the message is displayed: Unable to mount Windows (NTFS) filesystem due to hibernation


Empathy will not authorize facebook account

Facebook Chat will stop working in Empathy and other third-party desktop instant messaging clients from April 30, 2015
At some point after April 30 — Facebook say API deprecation may take a few weeks — trying to connect to Facebook Chat using an application like Pidgin or Empathy will no longer work and will throw a connection error.
Although the (seemingly sudden) loss of a popular chat service will surprise desktop users it is not news to developers.
Facebook announced it would deprecate the XMPP Chat API that lets third-party applications ‘connect’ to Facebook chat way back in April of last year.
A replacement API for accessing Facebook Chat (or Messenger) has not been announced.
Source: http://www.omgubuntu.co.uk/2015/04/facebook-chat-api-empathy-pidgin-stop-working
In the meantime, in security settings in Facebook you can generate a special password for Jabber that will allow Empathy and Pidgin to work.


Suspend doesn't happen when laptop lid closes - awesome wm

It no longer happens because power management is different between lightdm and the the session you log in to. Each session is expected to handle its own power management, for various reasons, and so you will need to run a power manager with your WM to get this feature to work as you wish.

A good power manager for the task would be xfce4-power-manager, which you can get in the repos. You can set it to suspend when the lid is closed. Then, just set it to start with your awesome-wm session and you'll be good to go.


Why don't I have ubuntu tweak setting to mute/enable ubuntu login sound?

Updating to a more recent version of Ubuntu Tweak (0.7.2) allows to you change settings for login sound.


"Apt configuration problem. An attempt to configure apt to install additional packages from the CD failed"

Firstly, I assume you are trying to install Natty on your HP desktop from a USB.

So, I looked up the error and reached Ubiquity bug 768239 where comment 11 is might be useful.

  Bug 768239 is
  11.04 Installer crashed, apt configuration problem:
  InstallStepError: >AptSetup failed with code 127

Notes in that comment suggest bug 658865 is the cause for this...

  When trying to install Ubuntu 10.10 from USB, ubiquity crashes with this message: "An attempt to configure apt to install additional packages from the CD failed."

  Root of problem
  The problem is that the file structure on the usb differs to what is on a livecd and apt-setup is unaware of this.

That bug goes on to discuss two alternatives.

Remove the script that causes the error, when installing from a Live setup ("Try Ubuntu"):

  sudo rm /usr/lib/ubiquity/apt-setup/generators/40cdrom
  Create the files as they are expected
  To resolve this, simply copy the contents of filesystem.squashfs on the iso into the usb stick.

You'll get more context in the two bug records.


Gigabyte RTX RGB fusion light(LED) control in Linux

OpenRGB is an open source app to control RGB devices.
https://gitlab.com/CalcProgrammer1/OpenRGB
In the releases page there are linux binaries in the appImage format:

download it
make it executable: chmod +x OpenRGB_<version>.AppImage (of course, <version> is a placeholder for the version info, replace it
run as sudo: sudo ./OpenRGB_<version>.AppImage


Setting Amarok as default music app doesn't work right

At your top extreme end of your screen,click on power icon and select 'System settings'. At 'System Setting' select System Info and move to 'Default Applications' and click on the drop-down menu and select  AmaroK among others players under 'Music'. There are lots of other applications you can set to default in that place.

NB: Should in case you couldn't find Amarok among the list in your System Setting; then you have to install it.


"apt-get: error while loading shared libraries: liblz4.so.1" in Ubuntu 16.04

The read-only problem is usually indicative of hard drive errors and, if it keeps occurring, it sounds like your hard drive could be dying.
I'm guessing liblz2.so.1 fell victim to some hard drive errors.  You can download the package manually from https://packages.ubuntu.com/xenial/amd64/liblz4-1/download (assuming you're running 16.04/Xenial) and extract liblz4.so.1 to /usr/lib/x86_64-linux-gnu/.  You can also install the .deb directly by doing dpkg -i /path/to/downloaded/liblz4-1_0.0~r131-2ubuntu2_amd64.deb


Your gnome-settings-daemon isn't starting on boot, for some reason. The workaround to that is to add gnome-settings-daemon to Startup Applications or add it as a .desktop entry, into /home/yourusername/.config/autostart/ directory. The .desktop entry could be named gnome-settings-daemon.desktop and look something like this:

[Desktop Entry]
Type=Application
Exec=gnome-settings-daemon
Hidden=false
Name=gnome-setting-daemon

This is my guess on why that daemon isn't starting: Ubuntu 15.04 , from what I've heard, has switched for different system for starting processes at boot - there used to be upstart and 14.04 (which is what I use) has that. Meanwhile 15.04 uses systemd . My guess is that this transition has broke some things, but hopefully by the time we get to next LTS release, everything will be fixed


mail expects a body either from stdin or after the command runs (in interactive mode). The simple way around this problem is to just echo into the command like so:

echo | mail -s "Test subject" "oli@example.com"

Note that's using mail from the heirloom-mailx package.


How do I stop system monitor from being transparent?

I ran into the same issue when I added the gnome3 ppa, so I had to remove the ppa and reinstall gnome-system-monitor from scratch

sudo add-apt-repository --remove ppa:gnome3-team/gnome3
sudo apt-get remove gnome-system-monitor
sudo apt-get update
sudo apt-get install gnome-system-monitor ubuntu-desktop


Error in terminal after installation of MariaDB

This might help.

It needs a public key to continue.


What is the output destination of enscript by default?

There is a manpage here.

From The Command Line

It looks like you just need to add the -p option:

enscript -B -PPDF code/bloom.c -p myfile.ps

NOTE: enscript only makes postscipt files, read on to learn how to convert to pdf

According to @PerlDuck:

  -PPDF sends the output to the printer named PDF, so I would drop that switch

Leaving us with this command:

enscript -B code/bloom.c -p myfile.ps

You can then convert the ps file to pdf with ghostscript:

sudo apt install ghostscript
ps2pdf myfile.ps myfile.pdf

From GUI

You can print any file to a pdf using the system print dialog.

Open the file you want to turn to a pdf in your favorite text editor (or whatever depending on the file) and print it (CTRL+P). From the CUPS print dialog -> destination, select print to file and you can make a PDF that way too.


Automatically get different terminal colors each time I open terminal

One option could be using xfce4-terminal. It's very similar to default Ubuntu terminal (which is gnome-terminal) and many of it's dependency packages use gtk component, which makes it a suitable alternative.
First install it with
sudo apt-get install xfce4-terminal

Then open it, Go to Edit -> Preferences , Select Colors Tab and check the option that says, Vary the background color for each Tab, and Now exit.
Make the default terminal xfce4-terminal or change the shortcut of Ctrl-Alt-T to open it.
Now, each time you open, you will be presented with different color palette.

Useful Links:

How do I change global hotkeys / keyboard shortcuts?


You change directories to locations on a CDROM the same way you change directories on your hard drive or any other media.

By default the cdrom will probably be mounted in your /media directory.  It appears from your image that you might have already noticed this and have gotten fairly close.

When changing to a directory you have to be very careful to the spelling as well as the case of the letters.  A directory that has an upper case letter would be different from a directory with a lower case.

You can use the facility of Linux's completion by typing some of the characters and hitting the Tab key to complete the characters.  This can serve to help you get the spelling exact.  It has to be exact.

You might also consider using copy and paste to be sure to get the spelling and upper/lower case conditions more accurate.

In the case of the image you have above, typing cd VB then hitting the Tab key should have completed the spelling for you, then you could press Enter.

Also, looking at your image, you can't prefix the directory with just a forward-slash.  The forward-slash alone would indicate the root directory.


Just use symlinks:

ln -s ~/Documents ~/Dropbox/

That will create a directory in your $HOME/Dropbox that is actually a link to ~/Documents. This means that any changes you make to ~/Documents will also be visible in ~/Dropbox/Documents since the latter is just a link to the former.

Symlinks are simple tricks. You can think of the symlink as a virtual copy of the link's target. Any operations done on the link are actually applied to the target. The two are exact copies of each other. Deleting the link will not affect the target in any way. To illustrate, here's a simple example:

$ mkdir foo
$ touch foo/file1
$ tree
.
└── foo
    └── file1

1 directory, 1 file

So, we have a directory called foo that contains a file called file. Now, what happens if we create a link to foo?

$ ln -s foo bar
$ tree
.
├── bar -> foo
└── foo
    └── file1

2 directories, 1 file

OK, let's see the contents of bar:

$ ls bar
file1

What if we delete the file?

$ rm foo/file1
$ ls bar
$

The bar directory is now empty because it is just a symlink to foo so deleting foo/file1 also deleted bar/file1 because the two were the same file.

Conversely, deleting the link itself will not affect the original in any way because the link is just that, a link.


Excluding some commands from getting stored in bash history only after terminal is closed

You can use sed to delete lines from your ~/.bash_history file, e.g.

sed -i -e '/ apt /d' -e '/^xterm/d' ~/.bash_history

to delete every line containing “ apt ” and every line beginning with “xterm”.

If you want to perform the deletion every time you open a new terminal, add the sed line to your ~/.bashrc file.  You can also use cron (crontab -e) to automate the cleanup, e.g. with the line

@hourly sed -i -e '/ apt /d' -e '/^xterm/d' ~/.bash_history

to perform the cleanup hourly.


Execute those commands:

xinput set-button-map 9 1 0 3
xinput set-button-map 10 1 0 3

Explanation (kindly donated by @Yehosef):

The first number is the identifier of the pointer (you'll often only have one, in this case there were two, 9 and 10).

The next numbers are what you do with the first, second, and third  (ie, left, middle, right) mouse buttons. 1 0 3 tells it that the left button should do a left click (action 1), the middle button should do nothing, and the right button should do a right click (action 3).  If you want to make the middle button also do a left click you could use 1 1 3. If you wanted to switch the right and left actions you could use 3 0 1.  See https://wiki.ubuntu.com/X/Config/Input for more info.


Command not found when trying to execute *.bin file

Solved by OP in Question

  I was trying to execute it from the directory I had it in which was in a different partition than my home folder.  I moved it to home and right clicked and selected Allow executing file as program from the permissions tab of the properties, followed the previous steps adding the directory I was in as the install folder, and it worked.  Which only opens up new questions for me...  Why couldn't I execute the file in the target folder, why couldn't I click Allow executing file as program in the original directory, and why did I have to move the .bin file to the home folder?


After Ubuntu upgrade to 20.04 PC boots directly to Windows

I found the solution:
Launch boot-repair-disk -> advanced options -> edit GRUB configuration file
This will view grub configuration file and show its location. Open an other terminal and edit grub file:
add the line
GRUB_TIMEOUT_STYLE="menu"

and remove the comment from line
#GRUB_TERMINAL="console"

Save the grub file and continue boot-repair-disk by clicking apply button.


Is there a way to move icons to edge of a screen

Please correct me if I am wrong, but just try this:

Right click on the desktop icons
You will find some choices regarding to icon alignment.
Do this for each icon, I am afraid.

Moreover, I found this page will be suitable for solving this problem.

http://computers.tutsplus.com/tutorials/how-to-customize-your-ubuntu-desktop--cms-21316


LibreOffice Writer Completely Crashes My Computer

Bug #1495097 is about LibreOffice crashes in Ubuntu 14.04 due to shortcomings in the libhunspell-1.3-0 package. The bug has just been fixed, and hopefully also your problem will be gone once you have installed version 1.3.2-6ubuntu2.1 of the package from trusty-proposed.


How to access unallocated internal HDD on Ubuntu 16.04?

You can't mount an empty disk, but only filesystems. Therefore you have to create a partition (/dev/sda1) on /dev/sda, make a filesystem in the partition and mount the partition /dev/sda1.

So use gparted to create a partition /dev/sda1, possibly covering the complete disk /dev/sda. Then sudo mkfs -t ext4 /dev/sda1 and sudo mount /dev/sda1 <your_mountpoint>.


Yes the 0.25 builds are built with both --enable-libx264 and --enable-libmp3lame (I've included the configure line below). You can see one of the build logs at https://launchpadlibrarian.net/127352145/buildlog_ubuntu-quantal-amd64.mythtv_2%3A0.25.3%2Bfixes.20130102.ff8c496-0ubuntu0mythbuntu4_BUILDING.txt.gz

cd mythtv && ./configure --compile-type=profile --prefix=/usr --runprefix=/usr --enable-crystalhd --enable-lirc --enable-audio-alsa --enable-audio-oss --enable-dvb --enable-ivtv --enable-firewire --enable-joystick-menu --with-bindings=perl --enable-ffmpeg-pthreads --enable-pic --enable-vaapi --perl-config-opts="INSTALLDIRS=vendor" --enable-libvpx --enable-libx264 --enable-libmp3lame --enable-libfaac --enable-libxvid --enable-nonfree --enable-opengl-video --enable-vdpau


dd is a cloning tool

dd always makes a 1:1 copy, writing exactly what it reads. Standard Ubuntu iso files are approximately 1.5 GiB and they are 'hybrid' iso files, which means that the same structure will boot from a DVD drive and a USB drive (or a memory card).

This structure has a special boot sector and the ISO9660 file system, which is read-only. So you can boot from the drive, but you cannot write to it (not use it for storage).

dd can clone any file to a USB drive or memory card, for example an image file of an installed system, for example for Raspberry Pi. The result depends more on the content of the file than on dd itself.

dd is a powerful but dangerous tool, because it does what you tell it to do without questions, even if you tell it to wipe the family pictures. There is no final checkpoint, where you can make sure that everything is correct, and a small typing error is enough to clone to and overwrite the wrong drive.

Therefore I would recommend other cloning tools, that are safer, because they help you identify the correct target drive and let you double-check, that you clone to and overwrite the correct drive.

Examples:

The Ubuntu Startup Disk Creator in Ubuntu version 16.04 LTS and newer versions
'Disks' aiias gnome-disks
mkusb (when cloning which is the standard mode for linux iso files)
Rufus (dd mode)
Win32 Disk Imager

Extracting tools

Other tools do not clone but extract the content from the iso file and modify it (copy to a read-write file system and fix the bootloader). This requires that the tools recognize the boot structure of the iso file, and when it changes, such tools will fail. An extracting tool will get problems with new versions of a linux distro, if the boot structure changes from the previous version, until the tool is modified to take that into account.

Examples:

The Ubuntu Startup Disk Creator in Ubuntu versions before 16.04 LTS
Unetbootin
Rufus (ISO mode)
mkusb (when creating Ubuntu persistent live drives or Windows install drives)

Restore to a standard storage drive

It is possible to restore a cloned USB boot drive with Ubuntu to a standard storage drive unless the drive hardware is damaged (for example by excessive wear). You can use several tools to do it, for example mkusb, which can

Clone from an iso file or a compressed image file to a live-only USB drive
Extract from an iso file and create a persistent live USB drive or a Windows install drive
Wipe a USB drive
Restore a USB drive to a standard storage drive (after it was used to install Ubuntu).


You can create a hex-dump of your file with xxd which is part of the vim-common package.

xxd file.csv | less

Then check the line endings:

0a => \n
0d => \r
0d0a => \r\n


Dell T330 Ubuntu 14.04 Server Installation

Managed to complete installation by mounting the iso onto a CD-R on a separate computer and loading the CD directly into the server during the OS deployment. Seems that the T330 Lifecycle Controller is finicky about bootable USBs!


You can use the quickly configure lp-project <your project> command to correct the Launchpad project Quickly will talk to
However, if you made a typo in the name of the app, I'd suggest to recreate the local Quickly project from scratch with the quickly create command, which is going to be easier. Otherwise, you'll have to search and replace the name in all text files in your project.
You can change the name of the https://launchpad.net/libereedit project in Launchpad. Simply use the 'Administer' link. Or you can do it with this direct link: https://launchpad.net/libereedit/+admin


Can I download the new version and burn it to a CD and install it without reformating the hard drive?

Yes

  Since Hardy it is possible to reinstall Ubuntu without losing the content of the /home folder (the folder that contains program settings, internet bookmarks, emails and all your documents, music, videos and other user files). This can be done even if /home is not on a separate partition.

From https://help.ubuntu.com/community/UbuntuReinstallation


the installed program have a  .desktop that have to be edited to be listed in nautilus's "open with list"
to do that,you first have to locate that file

ls /usr/share/applications/`

you should be able to guess the .desktop associated with your program.
let's say i want to add vlc to the list, i edit the desktop file with

sudo gedit /usr/share/applications/vlc.desktop

and change Exec=vlc to Exec=vlc %u

in your case you edit:

sudo gedit /usr/share/applications/AdobeReader.desktop

and change Exec=AdobeReader to Exec=AdobeReader %u


Transmission webui problem - Conflict 409

What is the URL you're trying to use?

Don't forget the trailing slash http://host:9091/transmission/web/ (it makes all the difference)


windows 10 not detecting other disk partions

That's to be expected.

Windows has no support for UNIX/Linux filesystems (ext4 in this case).

There is at least one program (for example, etx2fsd) that can be installed on Windows in order to read/write ext2/3/4 partitions, but I strongly recommend against trying it.

If you need to share data between the two OSes, then create a separate NTFS partition or use a cloud service.

There are no good reasons to be accessing the system partition of one OS from another in dual boot. It's usually a recipe for disaster.


18.04 Nvidia drivers installed but not used

Nothing indcates that nvidia driver is not used, since lspci says:

Kernel driver in use: nvidia

But maybe your PC uses integrated GPU instead. Have you tried to change your default GPU in BIOS? Or disable integrated graphics completly?


How to start Putty in a maximized window?

You can start putty with -geometry option. For example:

putty -geometry 1000x1000 hostname


libxml2 package installed but cannot include, building libaiml

You need to install the accompanying -dev package to be able to compile against a library. For libxml2 this would be libxml2-dev.


Ubuntu version for browsing pages on low-end netbook


Can't turn on wireless Lan on Lenovo E31-70 80KC! Key Problem?

dmesg | grep iwl

brings:

 dmesg | grep iwl

[    9.807507] iwlwifi 0000:03:00.0: PCI->APIC IRQ transform: INT A -> IRQ 19

[   10.259645] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-3160-15.ucode failed with error -2

[   10.259666] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-3160-14.ucode failed with error -2

[   10.462478] iwlwifi 0000:03:00.0: loaded firmware version 25.30.13.0 op_mode iwlmvm

[   10.932373] iwlwifi 0000:03:00.0: Detected Intel(R) Dual Band Wireless AC 3160, REV=0x164

[   10.933078] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled

[   10.933562] iwlwifi 0000:03:00.0: RF_KILL bit toggled to disable radio.

[   10.933587] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled

[   10.970474] ieee80211 phy0: Selected rate control algorithm 'iwl-mvm-rs'

[   11.008521] iwlwifi 0000:03:00.0 wlp3s0: renamed from wlan0


Ubuntu 14.04 - Jenkins User NOPASSWD configuration

Find the following line:
%sudo   ALL=(ALL:ALL) ALL

Replace it with this line:
%sudo   ALL=(ALL:ALL) NOPASSWD: ALL


I found this QA while researching options for my own disappointing Seagate HDDs. You've got pv, which operates like cat with additional bonus of progress reporting. cat is faster than dd. Even with optimal block size in dd, cat is 30MB/sec+ faster.

I have pv /dev/sdd > /dev/sdc running and its speed varies from 170MB/sec to 195MB/sec. On my 3TB drive, that's supposed to be 4.3 hours. Concurrently, I'm runniung cat /dev/sdb > /dev/sda in another terminal. When I queried it's speed via cat /proc/[pid]/io, I calculated it to be roughly 180MB/sec.

This simultaneous cloning is working using the motherboard RAID in JBoD mode.


Unfortunately, it seems that Intel's drivers do not support your the GPU for your CPU (Atom N2600) as per this post on OMG! Ubuntu!.

  The installer does not support the Ubuntu Linux low-latency kernel nor
  does it provide binary drivers for the Intel GMA 3600 (bundled with
  Intel’s Atom N2600 and N2800 chipsets).


I'ts a shot in the dark, but could you try setting up a static ip for your specific laptop? I know it does not solve the issue with your laptop and card, but it would at least allow you to game, or surf the web while you figure out another option. I'm not a networking person by any metric, just thought it might be a look from outside the box. Also, its probably sounds dumb to ask this, but have you looked for an update for the card in Intel's database of drivers? something like this https://www.intel.com/content/www/us/en/support/articles/000005480/network-and-i-o/ethernet-products.html It's just a random page I found for Intel NIC drivers, but it's a starting point.