Unable to install "Terminator" in ubuntu 12.04

apt may give you an older version, which may be incompatible, so to install the very latest Terminator:

sudo apt-get remove terminator

sudo add-apt-repository ppa:gnome-terminator
sudo apt-get update
sudo apt-get install terminator

Source: official terminator page's install instructions


How do I insert value after match within a loop

Some remarks, not only concerning your original question, but hopefully helpful:

cat $2 | grep $element is a useless pipe. You can directy do grep $element $2
whether grep $element |grep css makes sense is up to whether $element and css appear in a fixed order in the line. In this case it would be better to combine them to something like "$element.*css" or the other way round
grep css | wc -l can be replaced by grep -c css (grep -c returns the number of matching lines)
Look at your quoting: ':'"$element"': a '"$actual_count"'' consists of five elements with altering quoting (with the last one empty!). You could put everything together in double quotes to achieve the same: ":$element: a $actual_count"
What do you expect the sed script to do? Let's look at the script after expansion: :this/is/the/first.html: a 2 is supposed to do what? It's just a label (jump mark) and does nothing. But actually I see no need for sed here.

To get your given output the inner part of the loop just need to output the $element and in the following line the number of matching lines:

    echo $element
    echo $(grep -c "$element.*css" $2)


how to print on both the sides of a page using libre office

First of all you need to have a printer that supports double side printing, and have its corresponding driver properly installed.

Then using LibreOffice Writer (I am using it as an example), go to

File --> Printer Settings, select the right printer here, then go to its Properties

If you printer supports double side printing, you must find a Duplex option there. From the drop-down choose Long-edge or Short-edge as you like. Execute print command, and there you go.


How are the default user folders in the home created for a new user?

The defaults can be examined using:

$ cat /etc/xdg/user-dirs.defaults
# Default settings for user directories
#
# The values are relative pathnames from the home directory and
# will be translated on a per-path-element basis into the users locale
DESKTOP=Desktop
DOWNLOAD=Downloads
TEMPLATES=Templates
PUBLICSHARE=Public
DOCUMENTS=Documents
MUSIC=Music
PICTURES=Pictures
VIDEOS=Videos
# Another alternative is:
#MUSIC=Documents/Music
#PICTURES=Documents/Pictures
#VIDEOS=Documents/Videos

If you don't want a specific subdirectory created put a # in front of it to comment out the line.

The sub-directories aren't created until the user logs in with a GUI: Create default home directory for existing user in terminal


Why can't I see jpg images in kijiji upload?

The problem is that filenames in Linux (and, therefore, Ubuntu) are case-sensitive. Kijiji requires the filename to end with .jpg or .JPG (can't remember), and the images on your desktop probably have the opposite case.

Rename the files with the same case as Kijiji and... voilà!


Can we have both 32 bit & 64 bit architecture on a single machine

Yes.  Ubuntu has what it calls multi-arch support in it's 64 bit versions.

All it means is that the 32 bit and 64 bit libraries exist on the same system in different directories.  The software knows how to locate and load the correct version.

By default, the 32 bit libraries may not be installed but you're able to do so using apt.

"Some high end software?"  Do you release that most software is 64 bit now.  The 64 bit architecture has been around for quite some time now and is not limited to what you might be calling "high end software".  Even bash is 64 bit.


Want to install Windows 10 Pro as VitrtualBox guest system under Ubuntu

Since you don't need and can't use vendor drivers/softwares under VM, the easier way round is that:

Grab a Windows ISO from Microsoft, freely. https://www.microsoft.com/en-us/software-download/windows10ISO
Acquire the Windows Pro OEM license key from you computer BIOS.  For example, run sudo strings /sys/firmware/acpi/tables/MSDM | tail -1 under Ubuntu command line.
Install Windows, using the Microsft ISO, under VM using this OEM key.
As far as I know, this will not violate any Microsoft License since you're only running one copy on the same computer.

For me it's a lot faster than converting images.


command line tools for various internet services

Let's assume that we use plain/dumb terminal as on Ctrl+Alt+F1.

You can use console/terminal web-browsers:

elinks (advanced text-mode WWW browser);
links (Web browser running in text mode);
links2 (Web browser running in both graphics and text mode);
lynx (classic non-graphical (text-mode) web browser).

You can use console e-mail clients:

alpine (Text-based email client, friendly for novices but powerful);
mutt (text-based mailreader supporting MIME, GPG, PGP and threading);

You can use console RSS-clients:

rsstail (console RSS reader that monitors a feed and outputs new entries);
olive (console RSS reader).

You can view weather forecast with:

ansiweather (Weather in your terminal, with ANSI colors and Unicode symbols).


This happens because Ubuntu provides this version of node js by default. When I installed I got a similar version.

Then I followed this guide. I able to install latest versions. The best way is to download the binary from the official node site. Then extract the package and add it to a system path location.


How do I open .jar files without using terminal in manually installed java?

Install Ubuntu Tweak.

Go to the 'admins' section, open the File Type Manager, Select 'All' file types, find and select Java Archives in the long list, choose edit, choose the Add button, click on the 'custom command' twisty at the bottom and type the custom command you need it to use to open the file the way you desire.

Here's a picture I did for another question


A separate hard drive partition will be created by you during installation for just Ubuntu, so it will not be on C or D in your case.


How can I check which JRE version I have?

You need Oracle Java which you can install like this

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

and then setup like this

sudo apt-get install oracle-java8-set-default

Right now you have OpenJDK and as per your question you need Oracle Java.
In case the JAVA_HOME is not setup properly you can do:

sudo vi /etc/environment
export JAVA_HOME=/path-to-java-before-bin-dir
source /etc/environment


I assume that you have downloaded Java in tar.gz format in Download folder.

Extract the downloaded package by running the commands below.

tar -xvf ~/Downloads/jdk-7u3-linux-i586.tar.gz

create a folder for Java JDK files and folders

sudo mkdir -p /usr/lib/jvm/jdk1.7.0

Move all the JDK files and folders to the new location

sudo mv jdk1.7.0_03/* /usr/lib/jvm/jdk1.7.0/

sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.7.0/bin/java" 1sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.7.0/bin/javac" 1 sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/lib/jvm/jdk1.7.0/bin/javaws" 1

create a Mozilla plugins folder in your home directory

mkdir ~/.mozilla/plugins/

create a symbolic link to your Mozilla plugins folder. For 64-bit systems, replace ‘i386’ with ‘amd64’.

ln -s /usr/lib/jvm/jdk1.7.0/jre/lib/i386/libnpjp2.so ~/.mozilla/plugins/


~/ stands for your "Home" folder. So you'll have to go to Home > .local > share > vlc > lua > extensions folder.

Open Files (or Nautilus, the file manager), it should open your home directory by default.

But you won't be able to see the .local folder there, it's hidden by default (as it starts with a .). You'll have to press ctrl+h first to unhide hidden folders. Then you'll see the .local folder there.

Then you'll be able to navigate to your target folder.

Once you're done you may press ctrl+h again to hide those folders starting with a ..


Where is the "physicial volume for RAID" partition type in the Ubuntu 18.04 installer ? Trying to use RAID1

You need the non-live 'alternative' image from here: http://cdimage.ubuntu.com/releases/18.04.2/release/

Images with 'live' in the name have fewer advanced options which is why the tutorials seem to not apply. They're for the non-live version. It's not obvious from landing at the download page from search engine, that's for sure.


I do have the same behavior: nautilus and even the image viewer (I think its name is EyeOfGnome) weren't rendering anything else than black and white.

I played with the SVG file and I found the problem: those software don't interpret CSS. So all styles applied with CSS aren't rendered. Change <style>.myClass { fill: #aaa; }</style> <myElem class="myClass" /> by <myElem fill="#aaa" /> and you will see the colors in Nautilus.

Note: if you plan to use those images only in web browsers, you don't need to do that, they have a CSS engine and will render them just fine.


Swap encrypted with ecryptfs : on which partition is it?

sudo blkid | grep swap
/dev/sda5: UUID="blah-blah" TYPE="swap" PARTUUID="more stuff"
/dev/mapper/cryptswap1: UUID="blah-blah-blah" TYPE="swap"

From what I gather, since you have cryptswap1, you have an encrypted swap area.  Now, /dev/sda5 still exists, but isn't used, so my thought is no, it isn't used.

An older answer:

Is my swap encrypted or not?

also brings this issue up.


Unable to Boot: error couldn't read file

Having the same error message on an old PC after a kernel update; 3.2.0-69 still works, 3.2.0-70 does not.

I suspect it is caused by the fact that the 3.2.0-70 files in folder /boot are located above the 128 GB limit imposed by many an old BIOS.

I used filefrag to get an idea about the physical location on disk of the files involved.
Just guessing here: with a block size of 4KB, a value of 32,000,000 in column physical suggests the file is located near the 128 GB boundary.
Notice how the 3.2.0-69 files are well below that value, whereas the 3.2.0-70 files are above.

$ filefrag -v /boot/*{69,70}*
Filesystem type is: ef53
File size of /boot/abi-3.2.0-69-generic-pae is 805150 (197 blocks, blocksize 4096)
 ext logical physical expected length flags
   0       0  7548416             197 eof
/boot/abi-3.2.0-69-generic-pae: 1 extent found
File size of /boot/config-3.2.0-69-generic-pae is 147622 (37 blocks, blocksize 4096)
 ext logical physical expected length flags
   0       0  7542592              37 eof
/boot/config-3.2.0-69-generic-pae: 1 extent found
File size of /boot/initrd.img-3.2.0-69-generic-pae is 16593585 (4052 blocks, blocksize 4096)
 ext logical physical expected length flags
   0       0 26466304            4052 eof
/boot/initrd.img-3.2.0-69-generic-pae: 1 extent found
open: Permission denied
open: Permission denied
File size of /boot/abi-3.2.0-70-generic-pae is 805201 (197 blocks, blocksize 4096)
 ext logical physical expected length flags
   0       0 38547712             197 eof
/boot/abi-3.2.0-70-generic-pae: 1 extent found
File size of /boot/config-3.2.0-70-generic-pae is 147652 (37 blocks, blocksize 4096)
 ext logical physical expected length flags
   0       0 38550848              37 eof
/boot/config-3.2.0-70-generic-pae: 1 extent found
File size of /boot/initrd.img-3.2.0-70-generic-pae is 16592761 (4051 blocks, blocksize 4096)
 ext logical physical expected length flags
   0       0 38588416            4051 eof
/boot/initrd.img-3.2.0-70-generic-pae: 1 extent found
open: Permission denied
open: Permission denied

So how to relocate the files to a safer zone? You might try these steps:

Clean up your HDD; delete some big, old files in an attempt to make room for the boot files.
Copy each boot file.
Delete the original boot files.
Rename/move the copied files to match the names of the original files.

A more reliable and structural solution is to repartion your HDD; make sure folder /boot is in a partition that is located below the 128 GB boundary.


I've managed to mount the image from this answer. You can use this link to download it.
For some reason I wasn't able to read the image directly using tools like parted, cfdisk or fdisk. I had to flash the image into a 16GB (or more) USB drive, and then copy the root partition using dd, or the GNOME Disk utility.
So, I copied the root partition to ~/ubuntu.img and set up the chroot environment:
cd # go to the directory where the root filesystem image is located
mkdir ubuntu
sudo mount -o loop ubuntu.img ubuntu
sudo mount -t proc /proc ./ubuntu/proc
sudo mount -t sysfs /sys ./ubuntu/sys
sudo mount -o bind /dev ./ubuntu/dev
sudo chroot ./ubuntu

I can even access USB devices from the chroot environment.
You've probably noticed that the internet connection works only partially - you can ping any server if you specify the IP address, but domains can't be resolved. This command should fix it:
echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf

The downside of this method is that you always have to prepare the chroot environment if you need to access USB devices. But, that can be simplified by writing a shell script.
To clean up after you leave the chroot environment (and no processes are running there):
sudo umount ./ubuntu/{proc,sys,dev}
sudo umount ./ubuntu

I think there's a way to manually install Ubuntu on top of a base system. There are tools like debootstrap, but I didn't try that. Feel free to post another answer with that :)


Why is Ubuntu font being used in my browser when it's not even installed in my PC?

Because this site embeds the font itself; the canonical site just requests it, perhaps?


I'm the author of the application you referenced.

The taskbar icon (nowadays referred to as "indicator" in the Ubuntu world), is set within the code itself. The application tries to pull a generic "indicator-stickynotes.png" icon file. The system usually searches for this in the current icon theme or (if that fails) in the hi-color theme. You will notice that PPA package installs a monochrome icon in ubuntu-mono-*, and a multicolor icon in hi-color.

If you don't like the icon, you can either change the source code or replace the icon.

If you do either, you might prefer forking the git repository so you can merge your changes with any changes in the upstream code.

I believe the other effects you are describing are achieve by changing the icon, but I am not sure. You will want to read about Ubuntu indicators for that.


Virtual machine using natively installed windows

In vmware workstation you have ability to create VM from a real system. I did that before and now this system is working in the vmware player. However, this is not a partition, but the big file with system. I don't think that this even possible, because virtualized systems can use only their own hardware components (that is virtualized) and when you'll change them in real system (when you launching windows in ubuntu) - you won't be able to login back to the real system. Because registry of the windows system will have modified drivers for hardware devices (that can be used in vm).


Strange Behaviour working in netbeans IDE 7.0.1 on java swing

Same problem, netbeans 7.2 solves the problem, but I cant connect mysql on that version, so   it's not a solution.

If I undestand correctly the design window wont load, just freezes on loading... state. That's my problem too.


How can I delete Utilities folder in application menu?

get the folders with below command..
gsettings get org.gnome.desktop.app-folders folder-children

Example:
[admin@localhost ~]$ gsettings get org.gnome.desktop.app-folders folder-children
['Utilities', 'YaST']

Remove the 'Utilities' from the above output with below command..
gsettings set org.gnome.desktop.app-folders folder-children "['YaST']"

Exmple:
[admin@localhost ~]$ gsettings get org.gnome.desktop.app-folders folder-children
['Utilities', 'YaST']
[admin@localhost ~]$ gsettings set org.gnome.desktop.app-folders folder-children "['YaST']"
[admin@localhost ~]$

How to take backup of the Utilities folder before removing it and further reading..
How do I create app folders in the GNOME application menu?


if ["$SHLVL" =1]: then

the SHLVL variable tells you the number of shells deep you are (i.e. how many shells inside shells)
example:
$ echo $SHLVL
1

$ bash

$ echo $SHLVL
2

$ exit

$ echo $SHLVL
1

[-x /usr/bin/clear_console] &&

checks if /usr/bin/clear_console exists and is executable.

/usr/bin/clear_console -q

runs /usr/bin/clear_console, which just clears the terminal. See http://manpages.ubuntu.com/manpages/focal/man1/clear_console.1.html.

fi

ends the if condition


Python 3.8 scripts suddenly won't run, but Python commands run fine when invoked directly

Since you are able to run the script using python3 hello.py, it is evident that the issue isn't with the Python installation or the symlinks. Instead the issue is with the script itself.

The shell (here, zsh) didn't really recognize the shebang as such because of some alien characters before #. It tried to execute the whole script with the default shell/interpreter, thus producing errors.

You can use the -e option of cat to check the actual contents of the script. -e is basically the combination of v and E. v uses ^ and M- notation, and E displays $ at the end of each line.

After observing the output of cat -e hello.py, it seems the script contains a byte order mark near its shebang/hashbang which may have been inserted by some Windows software. This prevented the script from actually loading the Python interpreter, so it instead got executed by zsh, thus causing the error.

You can remove BOMs and other DOS-specific characters using dos2unix.

dos2unix hello.py  # Install using `sudo apt install dos2unix` (if not already installed)

dos2unix will take care of all Windows/DOS type characters/line endings and convert them to Unix-like ones.

Or you can also use sed to remove BOMs. Since BOMs were present in UTF-8, their hexadecimal representation is EF BB BF.

sed -i '1s/^\xEF\xBB\xBF//' hello.py


@Rinzwind so you didn't understand what I said :

the point here is to put all the nfs share of the network in one point then to dispatch them!
so Debian nfs HQ will be the system where all the nfs shares will be re-unite into one.

To put it simply, I don't want 15 lines in the /etc/fstab of each machine which need the nfs share and as I stated, we have multiple nfs shares from multiple sources!!!!!


Monitor Out of frequency when installing os from DVD

When you boot to your Ubuntu LiveCD you can add optional boot parameters that make small modifications for precisely situations like this.

Boot to your CD and you will see an icon of a small "man figure" at the bottom - when you see him press any key on your keyboard. You will be given some options - your mouse should work.

See if any of the options allow you to choose a resolution. If not you will need to append your own option by typing it in:

Type this: vga=791

This will give you a 16-Bit 1024x768 resolution that should work on almost all modern graphics cards.


USB boot problem in HP Pavilion G6 (32-bit)

There is not a way to install without usb/cd unless you use pxe boot, or a more advanced install.

Copying the iso to the usb drive will delete everything on it. It must be imaged, not copied. Use 'dd if=/path/to/iso of=/dev/sd?' where sd? is the dev path of your usb drive. Wait a while, it will output nothing. Once it returns, the usb will be imaged and you will be able to boot it.


Ubuntu 20.04 LTS Problem with WIFI repeater/extender

In /etc/wpa_supplicant/functions.sh you have to modify parameters:
init_wpa_cli () {
    [ -n "$WPA_ACTION_SCRIPT" ] || return 0

    local WPA_CLI_OPTIONS
    WPA_CLI_OPTIONS="-p bgscan='simple:30:-70:3600' -B -P $WPA_CLI_PIDFILE -i $WPA_IFACE"

bgscan parameter is required. I found that on archlinux forum https://wiki.archlinux.org/index.php/Wpa_supplicant#Roaming


Windows wont boot when external HDD not connected, how can I fix this?

You say:

I believe that the Ubuntu Grub is using my External HDD to run the Grub menu

Yes, it is indeed.

The Grub 2 user-configurable settings are contained mainly in /etc/default/grub.

The files in /etc/grub.d.

And when update-grub is executed the results are input into the /boot/grub/grub.cfg file.

How can You fix this?

Test this:

Boot into the Windows 8.1 with Your external HDD plug into usb.

Unplug Your external HDD.

Open the Command Prompt

Run it:

bcdedit /set {default} device partition=c:
bcdedit /set {default} osdevice partition=c:
bcdedit /set {bootmgr} device partition=c:

Now, Ubuntu wont boot, only boot Windows.

Download EasyBCD, latest build from here:

http://neosmart.net/forums/showthread.php?t=642

Install Easy BCD and then run it

Click External Devices, then external HDD

Browse to the path of the /boot

Give it a name, then click Create Entry.

Next time you boot you will have the option of booting to your External HDD.


Which version of Ubuntu will work on my PowerPC?

See: http://cdimage.ubuntu.com/releases/13.04/release/ and all the options that have powerpc in the name.

Desktop:

ubuntu-13.04-desktop-powerpc.iso Desktop image for Mac (PowerPC) and IBM-PPC (POWER5) computers (standard download)
ubuntu-13.04-desktop-powerpc.iso.torrent Desktop image for Mac (PowerPC) and IBM-PPC (POWER5) computers (BitTorrent download)

Server:

ubuntu-13.04-server-powerpc.iso. Server install image for Mac (PowerPC) and IBM-PPC (POWER5) computers (standard download)
ubuntu-13.04-server-powerpc.iso.torrent. Server install image for Mac (PowerPC) and IBM-PPC (POWER5) computers (BitTorrent download)
ubuntu-13.04-server-powerpc.jigdo. Server install image for Mac (PowerPC) and IBM-PPC (POWER5) computers (jigdo download)

Optional:

Ubuntu 12.10 can be found here: http://cdimage.ubuntu.com/ubuntu/releases/12.10/release/
Ubuntu 12.04 LTS can be found here: http://cdimage.ubuntu.com/releases/12.04/release/
lUbuntu 13.04 can be found here: http://cdimage.ubuntu.com/lubuntu/releases/13.04/release/ and 12.10 here: http://cdimage.ubuntu.com/lubuntu/releases/12.10/release/
xUbuntu 13.04 can be found here: http://cdimage.ubuntu.com/xubuntu/releases/13.04/release/ and 12.10 can be found here http://cdimage.ubuntu.com/xubuntu/releases/12.10/release/

And if you want to be even more adventurous:

All releases can be found here: http://cdimage.ubuntu.com/

Just make sure you pick a download that has "powerpc" in it. All of those will work on your system so it is basically your choice in what you desktop you want (or even no desktop).


Fully functional, architecture-agnostic portable USB Ubuntu installation?

Maybe the easiest solution for you is to install mkusb and let it do the job for you. It creates a casper-rw partition for persistence automatically.

You can decide how much of the available drive space to use for persistence. The rest (of the available drive space) will be used for a usbdata partition, available also from Windows.

See these links

help.ubuntu.com/community/mkusb

mkusb/persistent

Questions - Answers:

debian/ubuntu based (no time to relearn yaml or RedHat architecture) - Yes, mkusb is developed for and works best with Ubuntu (all current versions and flavours) and Debian Jessie.
root access (in particular package manager) (mandatory) - Ubuntu has a policy to use sudo (no direct login as root), and it works well. Debian allows direct login as root, and provides sudo too.
persistence of everything, especially installed software on the said usb (mandatory) - Well, a persistent live system cannot upgrade the kernel and drivers and other things, that are started before the overlay for persistence is started. If you want to be able to update and upgrade like an installed system, then you must install a system to your external drive like you would into an internal drive and I suggest with some extra tweaks for this particular case.
full access to hardware on which it is being run (mandatory) - Well, there are limits. You cannot install a proprietary driver for your graphics card in a persistent live system, but you can add some boot option to make it work, for example 'nomodeset'.
system-agnostic, i.e. can boot on any modern machine and autoconfigure network, etc., '''regardless''' of the settings of the machine on which persistance was enabled (highly desirable). - Yes, to all Intel/AMD PC computers with 32 and 64 bit architecture unless the manufacturer has installed an UEFI/BIOS system that locks the system to what is installed. (But avoid proprietary drivers (relevant for an installed system).)
encrypted partitions (at least /home) support (highly desirable) - Yes, you can create a new user with encrypted home in a persistent live system.


Ctrl+V is possible in the latest Ubuntu Web Browser oxide-qt 1.8, not yet included into Ubuntu but you can use the phablet ppa: https://launchpad.net/~phablet-team/+archive/ubuntu/ppa


How to automatically launch new instance of a program in differenet workspace?

There is an officially supported extension, "Auto move windows", that will move applications to a specific workspace. Install the package "gnome-shell-extensions" to have this and other officially supported gnome shell extensions available for all users on the system. Alternatively, you may install extensions from the Gnome Shell extensions website, but that way is not as such officially supported by Canonical, the maker of Ubuntu.

A more traditional way, that will work on a multitude of desktops running on the Xorg display server, is to use devilspy. With devilspy, you can, among others, define that windows belonging to a specific application, or having a specific window title, should be moved to a specific workspace when they are created.


One virtual audio cable (VAC), that's free, open source and works on Linux, Windows and OSX is jackaudio.
You can download the source code from here on the jackaudio website
You can install it via apt-get:
sudo apt-get install jack

A GUI tool to use with it is qjackctl
sudo apt-get install qjackctl

See also this blog post for more information


Try these commands on terminal,

cd /path/to/the/directory/which/contains/install.sh
sudo chmod +x install.sh
sudo ./install.sh


How do I get wi-fi to work on my iMac G5?

I found how to fix this on https://help.ubuntu.com/community/WifiDocs/Driver/bcm43xx

In my case, because jockey-gtk always crashes, I had to also install the firmware-b43-installer because I couldn't activate the driver from System Settings.

Depending on what wireless card you have you choose from that list.

In my case the commands were:

sudo apt-get install b43-fwcutter

and

sudo apt-get install firmware-b43-installer

Reboot and works perfectly ever since!!!


How to update tor browser from Terminal?

The general solution is to get the latest version of the Tor Browser Bundle (TBB) from the download site and extract it to a new directory. You can start TBB from this directory and use the new version. There is no other update mechanism.

Sometimes it also works to extract the new archive over the old directory, but it is not guaranteed that this will work.

If you extract the archive into a new directory you'll loose bookmarks and other information. So you might want to export your bookmarks from the old TBB and import it to the new one. Furthermore you should copy the file Data/Tor/state. It contains information about your Tor guard nodes. There was Q&A at Tor.SE why this should be done. The question How do I keep my Tor Browser Bundle current? provides also some insights.

A nice way to use always the latest version is the torbrowser-launcher. When you start the software it checks for new versions of TBB and updates it in a secure way. IF there is no update, it justs starts the currently installed TBB.


installing ubuntu alongside win7(multi partition), cant get windows to boot

Problem solved, after talking with some other people, it turned out I selected the wrong place for the "device for boot loader installation"
I first selected the windows partition(red arrow in bottom image) where I should just have chosen the drive itself(black arrow)

Both linux and windows boot now, so I'm off to explore the wonderful world of Linux :)

Maybe this will be useful for someone else in the future


Ubuntu 14.04 and above
The apt tool on Ubuntu 14.04 and above makes this very easy.
apt list --installed

Older Versions
To get a list of packages installed locally do this in your terminal:

dpkg --get-selections | grep -v deinstall

(The -v tag "inverts" grep to return non-matching lines)
To get a list of a specific package installed:
dpkg --get-selections | grep postgres

To save that list to a text file called packages on your desktop do this in your terminal:
dpkg --get-selections | grep -v deinstall > ~/Desktop/packages

Alternatively, simply use
dpkg -l

(you don't need to run any of these commands as the superuser, so no sudo or any other variants necessary here)


How to tell Wine that I have changed CD when mounting them virtually on a netbook with no CD drive?

I found this thread because I was having the same issue. This may not work for everyone, but it did for me. (I made a folder in home called /virtualdrive/Drive0) Also, I had the problem with a different game, but I think it applies.

Mount iso # 1

  sudo mount -o loop AOMG_D1.iso ~/virtualdrive/Drive0

Run game installer, hit install. It loads to 32% or something, then asks for iso # 2. Don't try to eject or unmount first iso, just use the same command to mount iso # 2. I think this creates a random drive letter and automatically maps the mount path in wine.

Mount iso # 2

  sudo mount -o loop AOMG_D2.iso ~/virtualdrive/Drive0

You should wait 5-10 seconds at this point, and it should continue the installation. If not, try pressing "OK" to the prompt about inserting next disc.

I was actually QUITE surprised this worked.


You must add the paths of platform-tools and tools folder to the .bashrc file.

sudo gedit ~/.bashrc

Add the following lines at the bottom,

export PATH=$PATH:/home/rahul/android-sdks/platform-tools
export PATH=$PATH:/home/rahul/android-sdks/tools

You must also add java path to the .bashrc file,

cd /usr/lib/jvm
ls

In my case,it appears like this

avinash@avinash-Lenovo-IdeaPad-Z500:/usr/lib/jvm$ ls
java-7-oracle

so add below lines to the .bashrc file,

export JAVA_HOME=/usr/lib/jvm/java-7-oracle
export PATH=$PATH:$JAVA_HOME

Note,

java-7-oracle folder(in mycase) inside /usr/lib/jvm only appears if you installed java on your Ubuntu pc.To check java installed on your pc run java -version command.If the output like this,

java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)

shows you installed java.If not try to install it.


dd is not specific to copying data from one kind of media to a file on your disk. Its job is to copy (part of) the contents of one file into (parts of) a different file.

dd if=/dev/sda of=/mnt/image.img copies the contents of your hard drive (if it's /dev/sda which it probably is) into the file /mnt/image.img.
dd if=/mnt/image.img of=/dev/sda copies the contents of /mnt/image.img onto your hard drive. Note that you probably don't want to do this if /mnt/image.img isn't an old image of your hard drive you want to restore (and that you should always do this in a live session, same regarding the previous command).
dd if=~/Documents/someFile of=~/Documents/copyOfThatFile creates a copy of the file someFile in your Documents folder.
dd if=/dev/urandom of=/dev/sda copies the contents of /dev/urandom (which spits out pseudorandom data, as much as you want) onto your hard drive.
dd if=/dev/sda1 of=/dev/sda copies the contents of the first partition of your hard drive onto your hard drive which is probably the worst idea of all.

Whether the storage medium you use is a CF card, a CFAST card, a HDD, an SSD, a random thumb drive you picked up, or something virtual like a RAM disk or a RAID doesn't matter. The medium merely has to be supported by your system.

Note that you probably should specify the block size to something bigger than the default size to speed the process of copying up. You can do this by adding bs=8M to the command to set the block size to 8 MiB. The default block size of 512 Byte is very small for modern hardware and only that small for historical reasons.


Banshee starts a song in a random section

Problem solved:
The problem was caused by the gapless playback option.
Disabling it made the problem disappear with instant effect.
There seems to have been a good amount of problems with this feature throughout history when I searched it up.
The reason why it happens is hard to understand off the bat, but it's most probably a bug.


Can I replace the Windows bootloader with GRUB?

Unfortunately, you cannot use GRUB2 to replace NTLDR because GRUB2 cannot load itself from an  NTFS partition.

You should understand that installing Ubuntu via Windows does NOT create it's own partition, but creates a flat file on the NTFS partition which is loop-mounted and then formatted as ext3. Thats why this partition will only be detected by tools running from within the Ubuntu install -- neither Windows nor a LiveUSB/LiveCD will detect it.


cannot find "Enable Wireless" option in Ubuntu 12.04 network drop down

There is the same discussion :
I recommend to you to follow it, to resolv your problem !

"Enable Wireless" option is disabled in network settings


Go into /etc/default/grub and add "acpi=off" after "quiet splash" in the GRUB_CMDLINE_LINUX_DEFAULT variable. Mine looks like this:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi=off"

Be advised, this might not work. I fixed my issue with this at first but I think issue started again after I ran "sudo apt-get update" or upgrade at some point. I still haven't fixed mine. Just might work for you. I'd really appreciate the answer to this problem as well. Cheers!


Ubuntu 12.10 doesn't boot after fresh install

Please read here how it is solved: (I haven't tried yet, I'm just posting someone's solution)

https://askubuntu.com/a/211040/101867


Try using this :

sudo /etc/init.d/apache2 stop

then try starting your xampp

sudo /opt/lampp/lampp start


How do I make Ubuntu a NetBIOS WINS server?

Have you added

[global]
wins support = yes
name resolve order = wins lmhosts hosts bcast

To your smb.conf?

You may not need anything but

name resolve order = wins

But the rest is explained in link below

For more info see This section

If you still can't get wins to work, you should be able to define the shares in

usr/local/samba/lib/LMHOSTS

An example LMHOSTS file

192.168.220.100 hydra
192.168.220.100 simple
192.168.220.101 phoenix

Its just like the /etc/host file, but instead of using hostname, your defining netbios shares


how to change permission of user using GUI

You'd need to run the file manage using gksudo, see this question  for details as to why you should use gksudo

For example, if you're interested in running nautilus, you need to use:

gksudo nautilus

Although this does require opening a terminal, I tend to use XFCE so have a shortcut to use for running commands (Alt+F2) I can't remember if Unity has a similar shortcut.

You should be more than careful when using a file browser as root however, because of the possible damage you can cause. I'd recommend not doing it


In Xubuntu 14.04 with the default Xfce desktop environment the results of running lsb_release -a are:

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04 LTS
Release:    14.04
Codename:   trusty

This Xubuntu installation has the default Xubuntu desktop system (xubuntu-desktop) package installed and Xfce is the only desktop environment installed on it. The xubuntu-core package is not in the default Ubuntu 14.04 repositories, and it is not installed on this system. If you are using 14.04, Xubuntu core system would not be installed by default on your system either. The xubuntu-core package is available for installation in the Ubuntu Software Center in 14.10 and later releases.

For more information about Xubuntu core, including the instructions for  installing the Xubuntu core version of Xubuntu, see the official Introducing Xubuntu core website.


Calibre is very good reader for .epub documents.

To install calibre from terminal:

sudo apt-get install calibre

Or click the icon: calibre


Ubuntu itself will run , but not the unity desktop environment.

you may want to consider the minimal iso or maybe Xubuntu or Lubuntu as they are designed to run with lower system specs.


downloaded a file unzipped it and its a .15 file

You can determine the filetype of the downloaded file with file utility.

It reports:

$ file Debian_Jessie_for_Netgear_Stora_MS2000_MS2110+Kernel-4.2.5.xz
Debian_Jessie_for_Netgear_Stora_MS2000_MS2110+Kernel-4.2.5.xz: gzip compressed data, last modified: Fri Nov  6 13:45:21 2015, from Unix

So the file is really gzip compressed and you need to rename it to .gz and extract with gunzip:

mv Debian_Jessie_for_Netgear_Stora_MS2000_MS2110+Kernel-4.2.5.xz Debian_Jessie_for_Netgear_Stora_MS2000_MS2110+Kernel-4.2.5.gz
gunzip Debian_Jessie_for_Netgear_Stora_MS2000_MS2110+Kernel-4.2.5.gz

As the result you will get unpacked ext4 file:

$ file Debian_Jessie_for_Netgear_Stora_MS2000_MS2110+Kernel-4.2.5
Debian_Jessie_for_Netgear_Stora_MS2000_MS2110+Kernel-4.2.5: Linux rev 1.0 ext4 filesystem data, UUID=33dbfa63-f902-4501-b0bc-da04484525b2 (extents) (large files) (huge files)

I can even mount it:

$ sudo mount -o loop Debian_Jessie_for_Netgear_Stora_MS2000_MS2110+Kernel-4.2.5 /mnt/
$ head -n1 /mnt/etc/os-release
PRETTY_NAME="Debian GNU/Linux 8 (jessie)"


r8168 not negotiating gigabit speeds in 18.04

Just experienced the same exact thing. Nothing worked until I started messing with ethtool & noticed I could set it to do 1000 there. Looked at network manager & it was set to 100/half. I changed it to auto negotiate & it works perfect now.


Cannot run logrotate utility automatically from cron

As steeldriver said, the solution was to add full path to logrotate in cron:

* * * * * /usr/sbin/logrotate -f /etc/logrotate.d/adraw; touch /ADraw/Data/Logs/test.txt


Unity 2D icons in upper-right, click-and-hold

This does appear to be a bug, I've seen the same behavior myself intermittently.  I don't see any currently open bugs that appear to be related to this, so I'd suggesting going ahead and filing against unity-2d for the time being and see if someone has suggestions for how to provide more information when the bug is triaged.


Install postgresql. Why is initdb unavailable?

You will find initdb under /usr/lib/postgresql/x.y/bin/.  See also /usr/share/doc/postgresql-common/README.Debian.gz for more information on the setup on Debian and Ubuntu.


How can I resize the volume OSD in Gnome3 (Shell)?

I could not find an extension, so I built one that let the user determine size, position and delay for the OSD window:
https://extensions.gnome.org/extension/1345/better-osd/

Source code:
https://github.com/hajdbo/Better-OSD-GNOME-Extension/blob/master/README.md


How to get a HDD running status led monitor in the taskbar

Yes, you can!

The System Load Indicator is in the Universe repository and can be added to your system easily, then configured following these instructions to give you a blinkenlight for your drive. Start by running this in a terminal window:

sudo apt-get install gir1.2-gtop-2.0 gir1.2-networkmanager-1.0  gir1.2-clutter-1.0

Then, open Ubuntu Software. Look for ‘system monitor extension’ and install it.

Once installed, click on it to show its drop-down menu, then pick Preferences and change the applet appearance to give you the LED-like look for drive activity.


Dell XPS 15 9570 Thermal Shutdown while Gaming

There might be a simpler solution than heatsinks or undervolting.  TLP is what I'm using.

I have a somewhat similar Dell as you but it has a 10th-gen CPU.  I haven't had any thermal shutdowns but I don't game (just work).  When I first got it, I noticed that if I load it down then it would get really hot, really quickly.

It might not be the same on your 9th-gen CPU but on this one I noticed that the CPU advertises 3.9Ghz but it actually only supports that for 1 core and for a limited time.  It's for single core bursts but Linux was basically trying to run all cores at 3.9Ghz when I loaded it down making it super hot.  The real stable max speed for mine is 3.5Ghz.

So I just used TLP to throttle it down to 3.5.  It would still get a little hotter than I wanted when loaded down like that though so I shaved 5% off to make it 3.325Ghz and now I can run it fully loaded down for as long as I need to and it doesn't get overly hot.  :)


Where can I find ubuntu one contacts for android?

Ubuntu one for Android website and the application can be found at this web-location.

The ubuntu one contacts app is visible only if you are running 2.x as described in the ubuntu one wiki.

The contacts app is provided by Funambol - if you are having problems then have a look at the support blog for updates


How to protect Ubuntu12.10 from Viruses, Spywares, Spamware and Intruders?

It seems your problem is more about adware and malware than a virus, and blocking such sites could be the solution you require.

You can try using a utility like hostsblock to prevent all connection between your computer and such sites. There is a deb file that can be downloaded as well. If the blocklists are not blocking those sites you complain about, you can also add them manually to the list. It also includes a script (hostsblock-urlcheck.sh) to identify the URL addresses involved so that you can add them easily to the block list.


Download the same release of wubi.exe, save it in the same directory as the ISO, then run wubi without mounting the ISO (it's not necessary). You can copy the wubi.exe off the ISO instead of downloading, but if you do download it make sure it's the same release... i.e. from the site you downloaded the ISO from - so it will be here: http://ubuntu.cs.utah.edu/releases/10.04/wubi.exe


To install the latest vlc version :

sudo add-apt-repository ppa:djcj/vlc-stable

sudo apt-get update && sudo apt-get install vlc


Is it possible to execute a .desktop file from a quicklist?

Desktop file can not be launched by directly from Exec. So, use gtk-launch as follows in your second file Exec option:

[Desktop Action fav-teamviewer]
Name=TeamViewer
Exec=gtk-launch teamviewer.desktop /usr/share/applications
OnlyShowIn=Unity

By this way you will be able to launch teamviewer.desktop by launching this file.

From man gtk-launch:

NAME
       gtk-launch - Launch an application

SYNOPSIS
       gtk-launch [APPLICATION] [URI...]

Reference of Use for desktop file:-

DESCRIPTION
         gtk-launch takes at least one argument, the name of the application to launch.
The name should match application desktop file name, as residing in /usr/share/application,
with or without the '.desktop' suffix.


How to install gnome-tweak-tool in Gnome Shell GIT?

First you need to get the build dependencies of gnome-tweak tool

sudo apt-get build-dep gnome-tweak-tool

Then get the repo

git clone git://git.gnome.org/gnome-tweak-tool

Then go inside the directory and run configure

cd gnome-tweak-tool
./autogen.sh
make
make install

Please avoid --prefix or else it will overwrite the version present from the PPA.

Then start the tool using

/usr/local/bin/gnome-tweak-tool


Really strange question...

Kubuntu does NOT have such directory unless your username is "ubuntu" (or "kubuntu")!


Check this guy out, [How To] Upgrade Ubuntu 12.04 to Ubuntu 12.10.


Problem installing libva (VAAPI), vainfo fails

OK, fixed it after some googling, turned out "sudo apt-get install i965-va-driver" was also needed. vainfo now says

libva: libva version 0.32.0
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/dri/i965_drv_video.so
libva: va_openDriver() returns 0
vainfo: VA API version: 0.32
vainfo: Driver version: i965 Driver 0.1
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileH264Baseline           : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointVLD


Try switching the terminal (CTRL+ALT+F1) and then remove the configuration file ~/.config/dconf/user like this :

(this action will remove your gnome 3 settings)

sudo service lightdm stop
rm ~/.config/dconf/user
sudo service lightdm start

Hope this helps!


Lowering graphics card power consumpution

Answered by OP

Able to resolve many power issue by installing the latest Graphics drivers from AMD


It seems you have not installed libxcb-xrm which is built from the source package xcb-util-xrm. In Ubuntu 16.4 you have to install xcb-util-xrm from source.

cd /path/where/you/want/the/repository

# clone the repository
git clone https://www.github.com/Airblader/i3 i3-gaps
cd i3-gaps

# compile & install
autoreconf --force --install
rm -rf build/
mkdir -p build && cd build/

../configure --prefix=/usr --sysconfdir=/etc
make
sudo make install


Problems installing Ubuntu 12.04 LTS using USB and bootable DVD - Mac

It can't be done, based on how I wanted it installed - I tried various options and none of them worked. The only alternate is to install Virtual Box and use it to run Ubunut


Workspaces serve this purpose for me: When I'm supposed to be working on homework but have other plans in mind, I keep my homework on the first workspace and my play on the second. Then, when parent comes by, Quick! Ctrl + Alt + Left Arrow! Wow, William, you've made great progress! Keep up the good work! Then I feel guilty and actually do my schoolwork. Thought I should share a specific situation for using workspaces.


How to set anaconda as a default python?

I have the same setup as you desire. In my case the anaconda installer added an entry in my ~/.bashrc file. I don't know why yours did not. So to get to do what you want, add this to your ~/.bashrc file:

export PATH="/home/yash/anaconda3/bin:$PATH"

You need to refresh your env variables after this by opening a new terminal or using source ~/.bashrc

With this:

$ which python
/home/yash/anaconda3/bin/python

And python -v returns: anaconda

To get back to the former default, I comment out the entry setting the pathbin the .bashrc file and get these results:

$ which python
/usr/bin/python
$ python -v
python 2.7.*


I was thinking about make a complete dump of the databases and import it on the new DB

I do not know of any other easier method; just use mysqldump and the commandline mysql to import the dump.

MariaDB is a fork of MySQL so all the normal tools work and also work between the too.
In there is a problem when importing (like when you use the new "json" datatype and the other system does not support it) the import will tell you about it. In my experience this hardly ever occurs and when it does it is pretty clear what to do: directly alter the import or make the import again with different export parameters.


How to build all my installed package from sources?

Is is possible to build Ubuntu from source to get the same kind of benefit?

I am not sure about the benefits if you have fairly new hardware components but for the "Ubuntu from source" part of the question the answer is YES, you can build not only your favorite applications from source, but the entire operating system.

Here is how:

You need to install apt-build. Its a comandline tool like apt-get, but instead of downloading and installing the binary package, apt-build downloads the source code of the package, compiles it and then installs it to your system.

After you install it with

sudo apt-get install apt-build

you will be asked for an optimization level (medium is ok), whether you want to create an apt-build repo for APT (Yes) and a question about processor architecture (my intel i7 is considered core2 ). Of course all options can be reconfigured in this way:

dpkg-reconfigure apt-build

The above command offers two additional options for the gcc compiler and make builder. Their descriptions can be found in system manuals: man gcc and man make.

For a manual and available command options check

man apt-build

But the most useful are:

apt-build update — updates repo list, (like apt-get update)
apt-build upgrade — updates operating system, (like apt-get upgrade)
apt-build install program — installs an application,(like apt-get install)
apt-build world — something for hard-core users, it recompiles whole system!

For example:

Lets say you want to compile/install Gedit. Instead of apt-get install you just do

sudo apt-build install gedit

Apt-build makes use of deb-src entries contained in the /etc/apt/sources.list file so the compilation and installation processes are fully automatic (similar to emerge found in Gentoo). Apt-build downloads sources of the main application and its dependencies, compiles them, creates a deb package, and finally installs the package.

Some notes about apt-build world.

In my opinion don't attempt it, unless you have 24 or more hours available !

If so first thing you should, remove/disable/uninstall any third party applications (it better to do in a fresh install of Ubuntu) and then do :

sudo su
dpkg --get-selections | awk '{if ($2 == "install") print $1}'> /etc/apt/apt-build.list
exit

The above command will copy your full list of system packages to apt-build.list so that they can be compiled from source.
Open that file

sudo gedit /etc/apt/apt-build.list

and remove any GCC/G++ entry

Then you can do :

sudo apt-build world

I suggest to add two options — --yes and --force-yes — to make the rebuilding process fully automatic.


Can't upgrade old Ubuntu, error processing package fontconfig

SOLVED!!! Downloaded fontconfig.deb package from DEB PACKAGE HERE  and reinstalled with

dpkg -i fontconfig_2.10.1-0ubuntu3_amd64.deb

Now apt-get is working fine and I can upgrade my OS. Thanks guys!!


When accessing the emails in Gmail it takes some time to download and sometimes Google will kick you out and you need to reconnect. If you make to many requests it may even quick you out for a full day.

You can use Thunderbird to download the messages. It archives the emails in mbox format. Here's the part you are going to love:

  All messages in an mbox mailbox are concatenated and stored as plain text in a single file. The beginning of each message is indicated by a line whose first five characters consist of "From" followed by a space (the so named "From_ line" or "'From ' line" or simply "From line") and the return path e-mail address. A blank line is appended to the end of each message

Thunderbird does use a slightly modified version (more info here.)

Hope it helps :)


Google Talk account not working with Empathy

If you have two-factor authentication enabled, you need to create a application specific password. You can do so here


Try to delete the monitors config file or edit it, but deleting it is the easier choice and should hopefully solve your problem:

rm ~/.config/monitors.xml

Hope that helps.


Ubuntu doesn't work on my mac, what can I do?

The tool that you believed "repaired" the disk in fact created a hybrid MBR. This is a dangerous hack that Apple uses to help support dual-boot configurations of OS X and Windows. Although hybrid MBRs are required in some configurations, they're overused, and playing with them without understanding them is like giving a toddler a flamethrower. I've seen far too many reports of people who've trashed their systems because of hybrid MBR weirdness. I strongly recommend that you read the page I linked to earlier so that you'll be better able to understand the risks and avoid figuratively burning your disk to the ground.

Although it's possible to boot Linux in BIOS mode on a Mac by using a hybrid MBR, IMO it's generally better to boot in EFI mode without using a hybrid MBR. My Web page on this topic provides information on doing this, but it's a bit outdated and it uses a very old Mac as a reference. It's actually easier to get working with some more modern Macs, but the procedure is somewhat different, and I don't have a reference to documentation on doing it.

The icon you describe in your last paragraph is a generic icon for launching a BIOS-mode OS from rEFIt. It appears because rEFIt believes it's found an unknown bootable BIOS-mode OS on the hard disk. It might or might not have done so. Chances are it appeared because you created a hybrid MBR on the disk, and chances are that hybrid MBR is doing nothing useful.

As to your main problem, booting external disks on Macs has always been a hit-or-miss proposition, especially in BIOS mode. It's likely that your sister's Mac's firmware just doesn't work for this job. You might have better luck by upgrading from the no-longer-maintained rEFIt to my fork of it, rEFInd, which supports booting Linux kernels (3.3.0 and later) in EFI mode. In fact, if you know what you're doing, you should be able to install rEFInd on the external disk so that it will launch on any Mac when you hold down the Option key and select the external disk when you power on the computer. To do this, you'll need to install rEFInd to the external disk's EFI System Partition (ESP) as EFI/BOOT/bootx64.efi. (That's likely gibberish to you now. If you read the rEFInd documentation and my page on EFI boot loaders for Linux you should better understand how to do it.) In any event, once rEFInd is running, it should be able to detect and launch Linux on your external disk without using GRUB or relying on the hackish BIOS-mode tricks that you're using now to launch Linux.


How do I convert one monolithic vmdk to split vmdk(s) using qemu-img

VirtualBox  with the tool VBoxManage can convert image between format

So in your case :

VBoxManage clonemedium agl-demo-platform-crosssdk-qemux86-64.wic.vmdk  new-agl-demo-platform-crosssdk-qemux86-64.wic.vmdk  --format VMDK --variant Split2G

em444-mbp:tmp em444$ ls -la
total 15128328
-rw-r--r--   1 em444  wheel  3861708800 May 18 15:40 agl-demo-platform-crosssdk-qemux86-64.wic.vmdk
-rw-------   1 em444  wheel  2084241408 May 18 15:46 new-agl-demo-platform-crosssdk-qemux86-64.wic-s001.vmdk
-rw-------   1 em444  wheel  1776812032 May 18 15:46 new-agl-demo-platform-crosssdk-qemux86-64.wic-s002.vmdk
-rw-------   1 em444  wheel      393216 May 18 15:46 new-agl-demo-platform-crosssdk-qemux86-64.wic-s003.vmdk
-rw-------   1 em444  wheel      458752 May 18 15:46 new-agl-demo-platform-crosssdk-qemux86-64.wic-s004.vmdk
-rw-------   1 em444  wheel         835 May 18 15:46 new-agl-demo-platform-crosssdk-qemux86-64.wic.vmdk

The only drawback is that the disk will be register in the virtualbox registry .

If you want do repeat again the operation you need before to run

VBoxManage closemedium /private/tmp/tmp/new-agl-demo-platform-crosssdk-qemux86-64.wic.vmdk


UBUNTU 20.04lts - No Sound through speakers but audible in headphones

Check your output device selection in settings/sounds and then choose a device for the sound output.sound


I know I might be late but I just found the solution to this.
I read the solution on this site https://forums.linuxmint.com/viewtopic.php?t=42052.

Basicly you have to navigate to your /.config folder, open the nautilus folder and edit the metadata file. Delete everything after custom-icon= and then log out and log back in and your trash icon will be the same.
If you edit the file and move the icon before logging out you will have to redo it.


Is it possible to change the package management system?

The reason you can not use yum on Debian/Ubuntu is because of incompatibility of the packages.

Lets assume for a minute you removed apt and installed yum from source code. Where then would you get a package to install ? You could no longer use the Ubuntu repositories as all the packages are .deb.

Look at the packaging guides

https://wiki.ubuntu.com/PackagingGuide/Complete

http://fedoraproject.org/wiki/Packaging:Guidelines

The structure is completely different and there is no reliable tool to convert a .deb to a .rpm

So if you are going to then use the Fedora repos, why not just install Fedora ?

And if you are going to go with source code, better off with Arch, gentoo, or Linux from scratch.


I have a similar issue, and did not find a proper solution yet too.

For now, I have temporarily blacklisted nouveau module and now living with i915:)

See here about blacklisting:
How to blacklist kernel modules?


How to get libstdc++ with C++17/filesystem headers on Ubuntu 18 (bionic)?

Whenever a C++ compilation error says the <filesystem> header is not found it is because GNU libstdc++ prior to 9.1 and LLVM libc++ prior to 9.0 have not implemented std::filesystem yet.
EASY SOLUTION:
With this solution the code will compile but it won't support older C++ standard libraries.
The easiest thing you can do is update to a newer C++ standard library. The version of the C++ standard library is the reason that Ubuntu 20.04 Focal Fossa works but Ubuntu 18.04 Bionic Beaver doesn't.
As for clang 10 on Ubuntu 18.04 not compiling is because you are still using the system's older libstdc++ that doesn't contain the <filesystem> header. You must install g++ 9 that contains a newer libstdc++ so you can compile with clang 10.
On Ubuntu 18.04 do the following :
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install gcc-9 g++-9

Now clang 10 will compile correctly.
DIFFICULT SOLUTION:
With this solution the code will compile and it will support older C++ standard libraries. The downside of this solution is that an extra  compilation flag will be needed that is different between GNU libstdc++ and LLVM libc++.
If you absolutely need to compile with GNU libstdc++ prior to 9.1 and LLVM libc++ prior to 9.0 you have to modify the code from OpenVPN3. Since OpenVPN3 is open source if you change their code you can then send a pull request and they may accept your contribution.
FIRST PART OF DIFFICULT SOLUTION - CODE CHANGES :
You need to modify OpenVPN3 code so it chooses between the std::filesystem and std::experimental::filesystem namespaces depending on what header is available.
#if __has_include(<filesystem>)
  #include <filesystem>
  namespace fs = std::filesystem;
#elif __has_include(<experimental/filesystem>)
  #include <experimental/filesystem>
  namespace fs = std::experimental::filesystem;
#else
  error "Missing the <filesystem> header."
#endif

Now you have to use the namespace fs namepsace instead of std::filesystem.
The code before :
std::filesystem::path file("document.txt");

The code after :
fs::path file("document.txt");

Be careful because there are some differences between std::filesystem and std::experimental::filesystem.
SECOND PART OF DIFFICULT SOLUTION - COMPILATION FLAGS:
For GNU libstdc++ before 9.1 with gcc or clang you need to use the flag -lstdc++fs as the last flag. The order is important.
g++ -std=c++17 your_code.cpp -lstdc++fs

or
clang++ -std=c++17 your_code.cpp -lstdc++fs

To do the above with CMake add the following after add_executable():
target_link_libraries(project_name_here stdc++fs)

For LLVM libc++ before 9.0 with clang you need to use the flag -lc++fs as the last flag.  To use libc++ do not forget to install the libc++-dev and libc++abi-dev.
clang++ -std=c++17 -stdlib=libc++ -lc++abi your_code.cpp -lstdc++fs

To do the above with CMake add the following after add_executable():
target_link_libraries(project_name_here c++fs)


Can not do apt-get update, says Could not resolve 'wcdh-dc-wg01'

You have Internet connection problem.

Make sure you have an Internet connection (wire, wireless)

It seems your DNS server config can't resolve http://us.archive.ubuntu.com.

Try this $ sudo echo "nameserver 8.8.8.8" > /etc/resolve.conf
This solution only works temporarily, after you reboot, it's gone.

I propose 2 solutions for you :

You can change your DNS resolver/server permanently per Internet network by using Network Manager to setup your DNS server for that network . For example : you have an wireless network named "Lily", in Network Manager you can statically set your DNS server( at your top right of your screen bar)
You can change your DNS resolver/server permanently for every Internet network by doing this in Ubuntu : $ sudo echo "nameserver 8.8.8.8" >> /etc/resolvconf/resolv.conf.d/head

@RE Donald French 2nd comment : There is nothing is returned to apt-get. apt-get requests a (HTTP) connection to http://us.archive.ubuntu.com/, and before doing that it needs to ask DNS server first. Since your server is not allowed to connect to Internet -> your DNS request can't be done -> apt-get cannot connect to http://us.archive.ubuntu.com/

Could not resolve 'wcdh-dc-wg01' indicates that DNS request can't be done.


There's a guide on how to change the login screen background here: http://maketecheasier.com/change-login-and-boot-screen-in-ubuntu-lucid/2010/05/13 and it's also possible to do this using Ubuntu Tweak

I'm not sure if it's possible to revert completely back to the 9.04 login screen since it worked in a different way to the one in 10.10 and 11.04, but it is possible to make it require you to type your user name like in 9.04 by going to Login Screen Settings and unselecting "Show list of users"


No video on built-in display after installing 14.04

You could install arandr.
Use arandr to set up your screen.
Then save the screen configuration to a script.
Create a new Application Autostart item and copy the command from the script there or you could set the script to run at startup.


How can I select a word or phrase with my cursor and have it defined?

Here's what you need to do:

Install GoldenDict:

sudo apt-get install goldendict

In GoldenDict, click Edit->Preferences and choose the second tab titled "Scan Popup". On that page, you need to select "Enable Scan popup functionality" and its subfield "Start with scan popup turned on".

Then choose the first tab titled "Interface" and select "Enable system tray icon" and both the sub fields.

Reboot!

At this point in time, everytime you select a word or phrase, goldendict is going to pop-up a helpful window showing some text. If you select a word, it will show you the meaning.

Do you need access to offline dictionaries?

Install a few offline dictionaries:

sudo apt-get install dict-gcide wordnet

Get GoldenDict to rescan the dictionaries available Edit->Dictionaries->Sources and choose the rescan button.

Having said all that, let me also say that GoldenDict, being a NON-INTEGRAL piece of Linux-distro goes crazy and pops-up a window any time you select some text. That can be annoying. So, in that way, this dictionary app on Linux is NOT the same as the dictionary app on OS X. (That's coming from a recent Mac convert! :D )

HTH!


Wireless firmware on late 2011 macbook pro. Can't connect to wireless

Try packages listed here: http://philatwarrimoo.blogspot.com.au/2012/09/ubuntu-1210-quantal-on-macbook-pro-81.html

ie.

b43-fwcutter
linux-firmware (probably already installed)
linux-firmware-nonfree
firmware-b43-lpphy-installer

You may not need last one, then reboot.


How do I install Google Earth Pro on 14.04?

I can't say this will work for everyone obviously but I did get Google Earth PRO to launch on Ubuntu 14.04 after following a few suggestions already posted so thought I'd summarize. In the end not all of this seems like it was necessary but just saying what I did in case some part is actually necessary.

First you can download the GoogleEarth Pro binary installer

When I first ran the installer GoogleEarthLinux.bin it complained it couldn't find some libraries and refused to install at all. So then I followed the advice at the following link to install the i386 binaries, but not the google-earth deb package:

http://www.webupd8.org/2014/04/install-google-earth-in-ubuntu-1404.html

When running the GoogleEarthLinux.bin installer it now installed but complained about 3 missing libraries (libxml2.so.2, liboverlay-scrollbar.so & libunity-gtk-module.so). Progress but the binary still wouldn't launch ('googleearth-bin': No such file or directory').

So then I installed libglide3:i386 (just reported as suggested when installing all the other libraries above), libxml2:i386 & unity-gtk2-module:i386. Tried installing overlay-scrollbar:i386 package but it apparently doesn't exist. Ran the GoogleEarthLinux.bin installer again. Installer reported overlay-scrollbar missing (expected) and a bunch of GTK-Warning's, but the installer completed again...still no love launching googleearth-bin.

So lastly I installed lsb-core as recommended by another answer above & this link:

http://www.coyotus.com/viewtopic.php?pid=6396#p6396

And THAT finally resulted in Google earth launching. To summarize I really just think the following two actions 'fixed' my problem (I don't really think the other installations I did likely mattered but your mileage may vary).

Install the i386 packages according to the first link then lsb-core according to the second link.

Hope this helps.


Please try adding the Banshee's stable PPA:

 sudo add-apt-repository ppa:banshee-team/ppa

Or from the unstable PPA:

 sudo add-apt-repository ppa:banshee-team/banshee-daily

Update the repositories:

 sudo apt-get update

NOTE: Please add only one PPA.

Next, please remove all banshee packages and configuration files:

sudo apt-get remove banshee* --purge

Install banshee:

 sudo apt-get update && sudo apt-get install banshee && sudo apt-get upgrade


I updated to ubuntu 20.04 and now I can't type spaces in fish terminal

I fixed it by reinstalling Fish, there probably was something wrong in one of the config files deep down. I got it working now!


What audio players can use winamp skins?

Audacious
This lightweight and highly configurable XMMS fork can be extended with many plugins. It can be customized using "classic" Winamp skins. Different to QMMP which uses Qt Audacious comes based on GTK per default.
Audacious GTK:

Classic XMMP view

Winamp iTunes skin

To install skins download the .wsz files and put them into ~/.local/share/audacious/Skins (affect your user only) or /usr/share/audacious/Skins (affects every user). To change between skins, go to View/Interface preferences.

Qmmp
can use 2x winamp skins, most of them fit very well.
Under Settings/Appearance - Add

or copy the .wsz files to ~/.qmmp/skins


Where can I find the "default numeric numpad keys" option in 14.04?

The same wiki page you linked to says:

"""
Enabling NumLock from lightdm configuration

In Ubuntu 14.04 the above methods of running numlockx don't work. It can be run by changing configuration of LightDM display manager. Edit /usr/share/lightdm/lightdm.conf.d/50-unity-greeter.conf file and add the following line at the end:

greeter-setup-script=/usr/bin/numlockx on

This defines running numlockx command when starting the Unity Greeter. (See more info in /usr/share/doc/lightdm/lightdm.conf.gz).
"""


Is there any way to install Ubuntu 20.04 on iMac 5.1 late 2006?

So I've finally made it work by installing it from eternal dvd drive (internal seems to be working but it wasn't accepting my dvds). I took the 16.04 image from Matt Gadient's website burned it, loaded it with the help of rEFInd, installed the OC and upgraded right to 20.04. Got a few bugs with gdm3: login screen is a distorted mess and my standard backgrounds are just a black color, but rather than that everything works pretty good for almost 15 years old computer.


How to install Xubuntu complete version from the terminal?

You would install xubuntu-desktop

xubuntu-desktop is a metapackage

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

Or a list of all the packages contained in the xubuntu-desktop, which is xfce + additional packages / customizations , same as on the xubuntu CD.

For sfce vs xubutnu-desktop see also

Xubuntu desktop minimal installation

You will keep the additional packages included in ubuntu, so you will have more then would be included with the xubuntu cd.


Ubuntu 12.10 showing incorrect size of already existing Windows partitions

There are several things going on here.  You are correct in seeking clarification before proceeding, since your Windows partition is the same size as your target partition, and a mistake on your part will wipe out your windows installation.  The sda1 is probably some sort of recovery partition, and not of interest, except that it takes up one of the four primary slots.  Looks like the sda2 (10G=F) is a primary, and sda3 (157G=?) is the third primary, and it is probably the windows C, but lets not guess.  Since you have more windows "disks"=partitions that cannot all be primaries, they must be "logical", so the last primary slot is made into an extended partition to hold many (256?) logical partitions.  So sda4 is probably this extended partition, holding two logical partitions (E and C or D).  The small difference in the number of G is a result of different measuring systems one based on 10 and the other based on 2 (2 to the 10th power is 1024, almost 10 to the power of 3). The simple fact is that the windows disk letters may be in any order, and even the sda partitions may not actually be in increasing sector order on the disk.  The safest way to proceed is to examine your disks from the windows side (where you have D identified), Note where D appears, (I'd guess it's the 4th or 5th one listed), and free up its space right there in windows.  Then the Ubuntu installer will see the free space, and try to use it.  If not, at least you should know which partition from its position is D.


Try this:

sudo apt-get purge bluez # remove old versions
sudo add-apt-repository ppa:vidplace7/bluez5
sudo apt-get update
sudo apt-get install bluez

This adds the PPA for Bluez 5 and installs BlueZ.


How to install without compiling
Execute this command in your Terminal:

  sudo apt-get update
  sudo apt-get install aircrack-ng


My guess is that:

you generated ssh-key as user 'user' (ssh login working from bash/cli debug1: Offering RSA public key: user@ubuntucomputer)
there is /home/user/.ssh folder with ssh keys.
the servise is executed as 'service' user with home directory '/root'.

Possible quick way to make password less authentication working is:

cd ~; sudo cp -R .ssh /root/


How to remove ubuntu from dual booted system?

Windows 7 and 10 have a utility to create a "rescue" disk. Usually you write it to a DVD.
have a look at the steps here:
https://www.howtogeek.com/131907/how-to-create-and-use-a-recovery-drive-or-system-repair-disc-in-windows-8/

I prefer to write mine to a DVD instead of a USB drive. I do use an external USB HD to backup the entire system image.


How can I change the owner of VirtualBox shared folders on Ubuntu 18.04 guest VM?

For mi work this. There're some post but not work fine with scenario of your question

On Host create shared folder XXXX form local path /xxx/xxx/ full access NOT automount and mount in /virtual/mount/folder
sudo usermod -aG vboxsf yourusername
Read you userid usually 1000 cat /etc/passwd|grep yourusername
Add to /etc/fstab mount point sharedname_on_host /xxx/xxx/ vboxsf defaults,dmode=755,fmode=644,gid=1000,uid=1000 0 0  ## gid and uid from point 3

After this reboot.


How can l use ffmpeg to extract frames with a certain fps and scaling

Join simple filters with a comma:

ffmpeg -i video.avi -vf "scale=320:240,fps=25" frames/c01_%04d.jpeg

fps

When using the fps filter to extract frames be aware that if the input frame rate:

is the same as the fps value then the filter is doing nothing and you can remove it.
is higher than the fps value then some frames will be omitted to match the fps value. If this is the case then use fps before scale and the process will be faster.
is lower than the fps value then some frames will be duplicated to match the fps value.

If you want to simply extract all frames then remove the fps filter.

scale

Consider declaring just width or height and using -1 as the value for the other, such as 320:-1 or -1:240. Doing this will allow the filter to automatically choose the proper value while preserving the aspect ratio. This will prevent stretching of the output image aspect ratio.

jpeg

Use -q:v or -qscale:v to control quality.


How to configure mail (mailutils) to use Maildir schema by default?

Afaik "mail" utility checks mails at the location given with the MAIL environment variable. Try this command: MAIL=/home/USER/Maildir/ mail (for sure, replace USER with something meaningful & valid). If that works, it seems that you should set MAIL variable you can do it in your bash profile / rc file for example. You can check the content of your current MAIL variable with: echo $MAIL


I would not worry so much about your backup partition. In windows booting from a repair disk/install disk has the same effects as booting from your backup partition.

Also if you did a normal installation of ubuntu then I would say the partition already is unrecoverable. Ubuntu usually, when given the permission to install the partition, erases the entire partition and rewrites Ubuntu files to it. I'm sorry if you really wanted the recovery partition.

Here is how to recreate one though!


How comes I can't use Unity with the propietary nVidia driver for my Geforce 410M?

try the steps in this blog - installing-hardware-drivers-in-ubuntu and if its still not working get unity-2d from software centre (its almost like unity-3d but based on qt and is most likely will be the default in 11.10) and login using unity-2d!


Not sure if something like that is around ...
You could test if a TCP socket is up by connecting to it with telnet [IP] [port] see the open ports on a server with netstat -an and scan a server for open ports with nmap.


How to output the linux command and the returned result in the same text file?

The redirection operator command > file will redirect the STDOUT of a command, or STDERR of a command if used like command 2> file or both if used like &> in bash or in any shell by portable command > file 2>&1 way. I am not aware of any direct method using redirection that can achieve what you need.

Although it is possible using the script program. It will basically save everything printed on the terminal in that script session.

From man script:

script makes a typescript of everything printed on your terminal.
It is useful for students who need a hardcopy record of an
interactive session as proof of an assignment, as the typescript file
can be printed out later with lpr(1).

You can start a script session by just typing script in the terminal, all the subsequent commands and their outputs will all be saved in a file named typescript in the current directory. You can save the result to a different file too by just starting script like:

script output.txt

To logout of the screen session (stop saving the contents), just type exit.

Here is an example:

$ script output.txt
Script started, file is output.txt

$ ls
output.txt  testfile.txt  foo.txt

$ exit
exit
Script done, file is output.txt

Now if i read the file:

$ cat output.txt

Script started on Mon 20 Apr 2015 08:00:14 AM BDT
$ ls
output.txt  testfile.txt  foo.txt
$ exit
exit

Script done on Mon 20 Apr 2015 08:00:21 AM BDT

script also has many options e.g. running quietly -q (--quiet) without showing/saving program messages, it can also run a specific command -c (--command) rather than a session, it also has many other options. Check man script to get more idea.


Can Phantom Dust for Windows 10 install and run on Ubuntu 16.04?

To access apps, games, or content from the Microsoft Store, you must run Windows; WINE will not suffice. You can, if your PC supports virtualization, install a virtualization app and then install Windows as a Virtual OS.


If the USB was once writable and is now no longer, this suggests 3 things in my mind:

A hardware switch on the device has been toggled.

If this is the case, the simple fix would be to find that hardware switch (they can be really subtle), and toggle it.
An "unclean" unmount occurred, such as pulling the USB out of the slot before the OS finished writing data to it

To save the life of devices, and to improve performance, writes to most storage mediums are buffered -- including USB drives.  In essence, this means then unless you tell the operating system to eject/unmount the USB drive, you have no guarantee that all data has been written.  Further, most filesystems have flags to indicate when they've been mounted and unmounted: always tell the OS you're going to remove the drive ("eject", "unmount", "turn off") before you pull it out of the slot.

Consequently, if simply checking and fixing the filesystem does not work, then you could try the ham-fisted approach of copying your data temporarily somewhere else, reformatting your USB drive, and then copying your data back.  By reformatting, you're completely overwriting what was there, so the OS/filesystem will have no recollection the USB drive/filesystem was readonly before the format.

One detail on repairing the filesystem.  Make sure it's not mounted first.  Your set of commands implies it's mounted.  So:

sudo umount /dev/sdb1

sudo dosfsck -a /dev/sdb1
The USB disk itself is dying, and the embedded firmware is protecting you from losing any data.

If the USB uses flash-based storage, it's possible that you have written to the device enough times that it is now unable to write anymore.  Writing to flash-based is a destructive process, and each sector can only take so many rewrites.  Many drives will "hide" this fact, by internally having much larger storage (say 16G of total write space), but only present to the OS as a smaller amount (say 2G).  As each sector begins to wear out, the firmware will automatically move the data to a new unused sector.  After too many writes, however, there will be no more usable storage, and smart firmware implementations will lock the drive to prevent data loss.  At that point, your only option would be to copy the data to a new flash drive.


How can I build a link for a directory aside from one file?

If you install the xutils-dev package, the lndir command will create a bunch of symbolic and hard links, for the files and directories, respectively. You can go inside the linked directories and remove any of the file links you don't want. However, removing some may break the game.

As for whether the .exe files are safe to link, I don't see a problem with it, unless you need to maintain different patch sets of the game for each version. If the only difference you need is the config file, everything else can be links on the Ubuntu partition, to the Windows partition install, with just the config file being a real file. If you need to run lndir again to update links for new files, the existing files won't get overwritten.


Xorg increase virtual screen size past 8192 x 8192

I was able to fix this with the following steps to generate and modify an xorg.conf file and put it in /etc/X11/xorg.conf.

I am on Ubuntu 16.04 with gnome-session-fallback using metacity and whenever I would try to make all three full resolution I got an error about virtual size unable to go past 8192x8192.

I am not sure it will matter if your on gnome unity metacity or not.

Before rebooting - generate an xorg.conf.new file.

$ sudo X :2 -configure
# will make a file /home/$USER/xorg.conf.new or ~/xorg.conf.new

$ cat ~/xorg.conf.new |grep Screen|more
Screen      0  "Screen0" 0 0
Screen      1  "Screen1" RightOf "Screen0"
Section "Screen"
Identifier "Screen0"
Section "Screen"
Identifier "Screen1"

I have two Screen Sections for example and I am trying to utilize 3 monitors - I don't think you need three Screen Sections whatever is generated.

Monitor 1: 3840x2160 x 32 in
Monitor 2: 3840x2160 x 32 in
Monitor 3: 1920x1080 x 22 in

Check that your glx can handle above 8192x8192 if you need it above this size.

glxinfo -l | grep GL_MAX_TEXTURE_SIZE
GL_MAX_TEXTURE_SIZE = 16384
GL_MAX_TEXTURE_SIZE = 16384

Modify the xorg.conf.new file in your /home/username directory and add the size from the glxinfo command Virtual 16384

sudo nano ~/xorg.conf.new

Under Subsection Display with Depthof 24 on both Sections Screen add Virtual 16384

 Section "Screen"
 Identifier "Screen0"
 Device     "Card0"
 Monitor    "Monitor0"
 SubSection "Display"
    Viewport   0 0
    Depth     1
 EndSubSection
SubSection "Display"
    Viewport   0 0
    Depth     4
EndSubSection
SubSection "Display"
    Viewport   0 0
    Depth     8
EndSubSection
SubSection "Display"
    Viewport   0 0
    Depth     15
EndSubSection
SubSection "Display"
    Viewport   0 0
    Depth     16
EndSubSection
SubSection "Display"
    Viewport   0 0
    Depth     24
    Virtual 16384 16384  <-- ADD THIS.
 EndSubSection
 EndSection

 Section "Screen"
 Identifier "Screen1"
 Device     "Card1"
 Monitor    "Monitor1"
 SubSection "Display"
    Viewport   0 0
    Depth     1
 EndSubSection
SubSection "Display"
    Viewport   0 0
    Depth     4
EndSubSection
SubSection "Display"
    Viewport   0 0
    Depth     8
EndSubSection
SubSection "Display"
    Viewport   0 0
    Depth     15
EndSubSection
SubSection "Display"
    Viewport   0 0
    Depth     16
EndSubSection
SubSection "Display"
    Viewport   0 0
    Depth     24
    Virtual 16384 16384 <-- ADD THIS.
 EndSubSection
 EndSection

Copy the xorg.xonf.new to /etc/X11/xorg.conf then reboot.

  sudo cp /home/user/xorg.conf.new /etc/X11/xorg.conf
  sudo shutdown -r now

When you log back in set your monitors in gnome, metacity or unity or whatever you use.

Update:

After rebooting, logging out or unlocking I found that the monitor settings are not saving.

This possible gnome issue might be related to this bug:

https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1292398

This fix was found from parts of multiple answers in this posting:

https://askubuntu.com/questions/6137/saving-monitor-settings

I prefer to run this script from a terminal since I open one first after login.

First login with the bad configuration - monitors not placed correctly:

cd ~/.config
mv ~/.config/monitors.xml{,.bak}

Now set your monitors with system settings to create a new ~/.config/monitors.xml file with proper settings.

Copy Nicolas Bernaerts's fixed script from my repo: https://raw.githubusercontent.com/alextomko/monitors/master/monitors and put it in a path to run from terminal.

$ ls -l ~/bin
# if you don't have this directory then create it - do not be logged in as root here.

$ mkdir /home/$USER/bin

$ echo $PATH
# should show /home/username/bin if the dir existed or if you had to create.

$ wget -P ~/bin https://raw.githubusercontent.com/alextomko/monitors/master/monitors
$ chmod +x ~/bin/monitors

# Log out, lock, reboot or whatever it takes to make monitor settings lost for you and run the script.
$ monitors


auto-mount another user's encrypted /home at login

Steps to decrypt a user folder can be found in this discussion thread:

http://ubuntuforums.org/showthread.php?p=11107254

Once you have the encryption key for the second directory in your keyring, you could execute this on login:

sudo mount -t ecryptfs /home/user/.Private /home/user/Private

and the second directory would be available at /home/user/Private


Firefox doesn't follow the system locale

As stated in this question on support.mozilla.org:

The preferred way would be to download and install the Firefox version with the language you need. But there is also a workaround for using different languages. Check the link for more info.


Sysctl IPv6 disable autoconfig for all interfaces not working

TL;DR
for sInterface in /proc/sys/net/ipv6/conf/*; do sysctl --write $(echo $sInterface.autoconf=0 | sed "s#/#.#g" | sed "s/.proc.sys.//g"); done

should do it.
The long version:

sysctl actually changes file contents in /proc/sys
net.ipv6.conf.all.autoconf is thus physically located in /proc/sys/net/ipv6/conf/all/autoconf
so we iterate over /proc/sys/net/ipv6/conf/
we change all /  to  . using sed using the # separator
we remove .proc.sys. from the string again using sed using the standard / separator.
we add .autoconf=0 to the interface
and apply with sysctl --write $()

Note: If you're not running as root you should do a sudo sysctl --write $() instead...


Or if that still doesn't work and returns Package acroread is not installed, so not removed you can try sudo apt-get purge adobereader-enu && sudo apt-get autoremove.

(Taken from http://ubuntuforums.org/showthread.php?t=1453166#5)


If you're having a problem with Network Manager it's likely a problem with the driver. Since it's been a few years then you're probably better off with sticking with the default unless you have a problem.

There are two ways to fix wireless problems in Linux. Fixing the driver or working around it.

As Dan Williams (who is one of the main developer's for network-manager) has chronicled in his blog, sometimes it takes a long time; there are many moving parts, the kernel, the applet, and talking to the manufacturer of the hardware (if they even care) and then getting all that shipped to users. This takes longer than working around the issue, but in the end is a more sustainable model and gets everyone better drivers in the end. Network Manager and WICD don't exactly have the same feature set yet. WICD tends to deal well with wireless and basic ethernet connectivity, but doesn't yet support VPNs, DSL, 3G/CDMA and many other features which are becoming more and more popular.

This isn't meant as a slight towards the WICD folks, it does help people get online and that's great, but fixing it all the way down the stack is a better overall for Linux. Bottom line is, you can choose whichever application you happen to prefer, but if NetworkManager works for you, sticking to the default is probably what will get you the best results in the long run, since you will be able to benefit from the other features if you end up needing them. Network Manager, as the default network tool in Ubuntu is also supported by the Ubuntu team.

The linux wireless project maintains a page of wireless cards and chipsets and what features they support, and is a good guide to supporting manufacturers that maintain good drivers.


Which ubuntu version works fine with sis driver 671 771

I've just finished loading Ubuntu onto a Dell fx160 thin client that has the SiS 771/617 video adapter as standard. I originally loaded 16.04 and it acted like a dog, you could see the interlacing and the whole system was slooow.

Looking through Xorg.0.log I noticed that the Sis driver native in Xorg wasn't rated for the 771/617, and the only driver I could find for the 771/671 was noted here: https://sites.google.com/site/easylinuxtipsproject/sis
One developed by Antonio J. de Oliveira, most of whose work is now missing from the internet. Pity, coz he's the only guy who seemed to do much with the SiS cards. And maybe due to the age of his driver, it was compiled against the kernel used in Ubuntu 12.04.1. (note the ver 1.  I loaded 12.04.4 which I had handy, and it didn't work. I had to go back in Ubuntu archives and get v1).

Bunged sis671_drv.so into /usr/lib/xorg/modules/drivers edited xorg.conf so that Section Device had sis671 as driver and fired it up.
No problems! and plenty of resolutions to choose from in display settings.

For some reason settings can't detect the monitor and insists on calling it a laptop, and I cannot get dual monitors to work. They did work as desktop in one test iteration, so it can be done, but the two monitors were different resolutions and I couldn't find the way to alter them independently. The larger monitor, on dvi, wasn't lined up properly and it's resolution was awry. I tried a virtual monitor definition in xorg.conf, but that just made it lock up and I'd have to go back to root cli to rename xorg.conf so that it would start on defaults not conf.
The fx160 has a vga and a dvi on the one SiS card. In the end, I had to put the main monitor on the vga output. I don't know if sis671_drv has the functionality for dvi or dual monitors. I know it makes the xorg log ten times normal length, so there's a lot going on in there. After all the driver is over 500kb.

If anyone gets dual head on a Ubuntu FX160 I'd be interested to hear.


Installing Flocker on Ubuntu 14.0.4.1 server

You need to setup your computer and/or your network so that you can establish https-connections.

PIP can't access https://storage.googleapis.com and https://pypi.python.org/simple/ . And thus pip can't install anything.

There are many possibilities why this is the case. It has most probably something to do with your network configuration. Either on your computer or on the network/firewall/gateway.


Booting randomly changes device nodes of HDDs, problem with munin

This is not a full on how-to but it might point you in the right direction.

If you migrate your fstab from using device names (sda,sdb,etc) and to using UUID's that should solve your problem of random devices changing.

http://www.softpanorama.info/Commercial_linuxes/Devices/managing_your_disks_by_uuid.shtml

This URL should help http://wiki.debian.org/Part-UUID

Hope this helps get you on the right track!

[edit]
In that case you will want to use udev rules:

http://www.rootninja.com/persistent-naming-of-a-block-device-in-linux

[/edit]


GNU Octave Command Window unreadable text

A workaround for this problem is to switch from the Courier font to some other font in the preferences settings under Edit - Preferences - Terminal - Font.  I went with the DejaVu Sans Mono font and the problem went away.


change document root on xampp 7.2.7 in ubuntu 18.04

I know it has been 8 months since you've asked this but for posterity reasons and because I couldn't find an answer elsewhere, the DocumentRoot tag that you're looking for is under /opt/lampp/etc/httpd.conf


It might be your BIOS not getting along with Ubuntu, that's what was wrong with my Compaq. Go on your model's support page and try several BIOS firmwares (even older ones), see if they fix the problem. For example, mine only works with release 1.3, and fails to sleep with release 1.5 (the latest one).


first see if you can see the eth0:

:~ # ip link list

maybe you can see something like this?

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000
    link/ether 48:5b:39:f0:67:8f brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000
    link/ether 54:e6:fc:81:f6:8a brd ff:ff:ff:ff:ff:ff

then add an ip to the eth0

:~ # ifconfig eth0 <yourip> netmask 255.255.255.0

and add a default gateway

 :~ # route add default gw 10.100.202.2

or or you can edit your /network/interfaces (vi /etc/network/interfaces) to have in dhcp mode...

auto eth0
iface eth0 inet dhcp

somebody please emprove my poor english =D


What does it mean when a CVE is termed as 'retired'?

It actually says:

  As issues are fixed the CVEs are updated and retired.

Fixed means that the vulnerability has been closed (usually by a patch), and the the patched package has been uploaded to the Ubuntu repositories.

Updated means that the CVE/USN record on the tracker at https://security.ubuntu.com is updated to reflect the final disposition.

Retired means that the CVE is considered resolved, no further work will be done on it. There are several possible resolutions to a CVE: Fixed, Won't Fix, Not Applicable, etc.

If a bug is discovered in a CVE patch, the CVE is not reopened. A new bug report and/or CVE is opened.


How can/Can I run the game Garry's Mod on Ubuntu 14 via Wine?

Wine does not work well with games, seeing as they are complexly written. Instead you should use PlayOnLinux, a better alternative that's also free.


Start ppp(Mobile broadband) connection automatically when eth0 gets down

Network-manager will do this for you, so why are you not using it? I'm using it in exactly this way to prioritize wired over wifi and wifi over 3g.


mount an [IPADDRESS]/dir on 12.04 in terminal

I'm not sure if this is exactly what you are looking for or not.

If you open Nautilus (the default file manager in Ubuntu) and go to Go -> Network.

Then press Ctrl+L.  Then you can enter a network address.

Please correct me if this doesn't help.


How can I remove a mainline kernel and move back to a supported kernel?

How did you install it? If you just grabbed a load of deb files and installed them, getting rid of it is as simple as just finding the packages and running apt-get remove for each of them.

I've just had a cup of coffee so you get to bare the full brunt of my bashfu this morning... This should tell you what kernels are installed:

dpkg -l | awk '/linux-[^ ]+-[0-9]/ {print $2}'

Go through those and note the versions you want to nuke. Take care to also note your current install (uname -a) or any new kernels you have installed since booting. You don't want to remove the newest ones.

Anyway when you've got an idea, you can bulk-remove them by adapting this command:

sudo apt-get purge linux-{headers,image,image-extra}-3.5.0-{7,8,9}.*

The words and numbers in the braces will be expanded at runtime so the packages this will actually target are:

linux-headers-3.5.0-7*
linux-headers-3.5.0-8*
linux-headers-3.5.0-9*
linux-image-3.5.0-7*
linux-image-3.5.0-8*
linux-image-3.5.0-9*
linux-image-extra-3.5.0-7*
linux-image-extra-3.5.0-8*
linux-image-extra-3.5.0-9*

You can mess around with this but for cleaning up I find this much safer than a wide-wildcard (as I currently on a 3.5.* kernel).

Either way, read what apt-get is going to do before you say yes. Removing current kernels and all kernels is a surprisingly common predicament that Ubuntu users find themselves in. It's not unfixable but yeah, don't do it!

Be especially careful with wildcards and apt-get. If you don't believe me run apt-get -s remove linux-image-3.4* and see what it selects (yeah - all the kernels). Don't worry that command is in "simulate mode" so it won't do anything (and so doesn't need root).


Kubuntu - How to remove ALT+F# keybinding to switch ttys

Credit for the answer goes to DK Bose who linked the answer by none other than Alan Pope here: https://askubuntu.com/a/929115/248158. But for completeness, I'm putting the answer here as well. The keyboard was set to unicode mode, and by setting it to raw mode, these key sequences were then interpreted as expected.

sudo kbd_mode -s

This is persistent across reboots. And to restore it to how it was before:

sudo kbd_mode -u


Edit /boot/grub/grub.cfg and comment out the initrd line from the entry you want to fail.  Without the initrd the kernel will panic trying to locate the rootfs by uuid.


Encryption of swap space is used to protect sensitive information. Consider an application that deals with passwords. As long as these passwords stay in physical memory, these passwords will not be written to disk and be cleared after a reboot. If the OS starts swapping out memory pages to free space for other applications, the passwords may be written to the disk platters unencrypted. Encrypting swap space can be a solution for this scenario.

Swap partitions are not encrypted by default and should be cleared of any sensitive data before continuing.

The swap partition can hold a lot of unencrypted confidential information and the fact that it persists after shutting down the computer can be a problem.

To encrypt SWAP, see Encrypted swap partition on Ubuntu

Extra Reading:Swap encryption, and Ubuntu - How to encrypt swap partition

Source:C. Brüffer


Screen Stuck with ubuntu 12.04 on DELL optiplex 7010 with biolinux

Have you tried using the proprietary drivers for your video card?

If not, try it.

Go to your dash, type in additional drivers, and then open additoinal drivers. If you see a driver that ends in (proprietary) try it. I was experiencing similar problems on my dell optiplex 7010 and this resolved them.

Good Luck!


What are the original default files contained in the /usr/share folder?

Install Ubuntu in a virtual machine, or on a cheap virtual private server, then look.


Signatures couldn't be verified because the public key is not available

The ppa:webupd8team/java is discontinued. So there is no way to install anything from there.

Remove that PPA from your software sources.

If you don't have any other problems then I see no reason of any other steps.


Can bonding two NIC give me double speed on LAN?

Gmorning, i know this is a older thread but might be found by others also...

I aGree with MDilmore that in case you setup bonding you will gain more Speed.

The other option would be:

S has 2 Nics and you have 2 IP's
Sofar we can you 2 Nics with 2 IP's with each seperate IP to get in touch with the Clients. Might not be usefull at all but it works also to transfer 200mbit through your 100mbit Switch

For Example:
 - S1: 192.168.2.20
 - S2: 192.168.2.30

 - A contact S1 100mbit
 - B contact S2 100mbit

Each Contact has seperated full 100mbit.


How to escape '<' character for use within php echo command

You can use the PHP function htmlentities to replace any HTML special characters using HTML escape characters.
To use it you would change you code to look something like this:

<?php
$output = shell_exec('/var/www/bin/fortune -a -o -s | /var/www/bin/cowsay -f eyes');

$encoded = htmlentities($output);
echo "
", $encoded, "
";

As per this  demo - http://codepad.viper-7.com/VZOI5u

Explanation

Whenever PHP output contains characters like < the webrowser will (correctly) presume its HTML - e.g. the browser will assume the < is the beginning of a HTML code sequence like hello.
the htmlentities function will replace those special characters with escape sequences - which the browser knows to simply display to screen and not interpret as being "special" HTML characters. so for example hello becomes &lt;b&gt;hello&lt;/b&gt;


I had the same/similar problem on my lenovo ideapad laptop.
The touchscreen worked before (kernel 3.11), but after updating the kernel, when touching the touchscreen seem to invoke a 'click and hold' mousebutton effect (mouse also dissapeared) and only for the first time touching the screen. A second attempt touching didn't register anything.

But my touchscreen started working again with the latest kernel 3.17rc4. Maybe it will work for you.


Nautilus uses natural scrolling, while everything else doesn't

So this seems to do the trick: Turn off "Natural Scrolling" in Mouse&Touchpad, then edit the file ~/.Xmodmap to contain "pointer = 1 2 3 4 5 6 7 8 9 10 11 12". Save, logout, done.


Ubuntu One FIles running on Android 2.3 won't auto-upload pictures

Most probably Droid X has a lowercase /mnt/sdcard/dcim (instead of standard "DCIM") folder name. If that's the case, it was the issue stopping the pictures from auto-uploading. (If that's not the case, please let me know :) .)

Please follow this bug report:
https://bugs.launchpad.net/ubuntuone-android-files/+bug/872021

The fix has been committed, we should be releasing Ubuntu One Files 1.0.4 shortly :)