A Question about LVM volume and storage management

I have a similar setup. I created two LVM groups, one for the SSD (actually I have a couple) and one for the HDD. I install Ubuntu on to the SSD. My system has a 100GB partition of /, and the rest as LVM. I have second SSD, all of which is the LVM. So:
SSD0:     /    100GB
Swap 30GB
LVM  PV (about 800GB)
SSD1:     LVM  PV (about 1GB)
These two are in the volume group: SSD-VG
I have a 6TB HDD in the volume group HDD-VG
Then in SSD-VG, I create logical volumes (LVs) for /home, /opt and /Tardis
(Tardis is a rsnapshot directory, because its bigger on the inside than the outside, and I can go back in time, get it?)
In the HHD-VG I have slowly changing stuff: /data, /Pictures, /Music, /Video, /ISO, /mail, /www
I have spare space in the volume group, so I can create ad-hoc volumes when the need arises. If I get the disk space wrong when I estimate it, I can use LVM to resize the partition.
LVM has a number of commands at the command line. I do use those, but sometimes I cheat. I have webmin installed, which allows me to manage the LVM in a graphical way. Once setup I don't generally paly with LVM at the PV or VG level very much, so I forget the commands. WebMin helps with this. And it allows me to create a new VG, format the new volume, mount it, all with a couple of click.


You should be able to see the result of the most recent self-test through the gnome disks utility (run sudo gnome-disks from the CLI). To run a new test on the root disk, you'll need to run the test from a live USB.


Should I use using "USB device" or "USB device (UEFI)" for a fresh install of Ubuntu 18.04?

Choose the USB device (UEFI) option. If the BIOS is set up to boot the Ubuntu live installation USB in EFI mode, then you will see the below screen.

You can choose any of the options in the GRUB boot menu, but don't select the OEM install (for manufacturers) option.
Then on the Installation type screen of the Ubuntu installer select the Erase Disk and install Ubuntu option. This will delete all your programs, photos, music and any other files in all operating systems, and install a fresh installation of Ubuntu 18.04 on the disk.


Can't boot Windows 7 after installing Ubuntu

Run fdisk -l on terminal to check the windows partition.

If you found it, then type update-grub

Then reboot

And you will able be able to choose your selected OS

If permission is denied on running fdisk -l alone, add administrator privileges by entering you password after writing this code into terminal sudo fdisk -l


I can't install Ubuntu 13.04 on a new computer

Try startx to start GUI from a terminal.


If you go: Edit-> Preferences-> Views tab, is show hidden and back-up files turned on?


Ampache-3.3.3.5-dfsg1-1 will be included into the Hardy release of Ubuntu and is available for download.

Ampache-3.4.1 will be included into the Intrepid release of Ubuntu and is available for download.

Due to Debian Release Freeze Ampache-3.4.3-1 will not be in the Lenny release. However a Feature Freeze Exception was granted for Ampache-3.4.3-0ubuntu1 to be included into Intrepid.

Due to a lintian error, Ampache-3.4.3-0ubuntu1 now depends on libjs-prototype. libjs-prototype is only available in Intrepid and Lenny. Currently libjs-prototype is not in the Hardy archive unless it is backported. So what this means is that Ampache-3.4.3-0ubuntu1 will not install on Hardy or Etch due to Unmet Dependencies.

The maintainer has been kind enough to make a version of Ampache-3.4.3-0ubuntu1 for Hardy and Etch. These are not official packages so please do not file bug reports against them, contact me directly.

The Hardy/Etch version of Ampache-3.4.3-0ubuntu1 can be found here

There is also the Ampache-Themes-3.3.3.5a-1 themes package available in the Hardy archives. Sorry, for those folks using Ampache-3.4 additional themes are not yet available due to the fact that Ampache-3.4 is still in development.

Now open a terminal and type

sudo apt-get update sudo apt-get install ampache mysql-server-5.0 phpmyadmin

Set up a mysql user account with root privileges

Point your browser to http://localhost/ampache orhttp://your.ip.address/ampache and follow the install instruction.

There is a very good install guide located on the Wiki or atAmpache For Debian And Ubuntu.


Is it possible to put a Windows 10 installation setup on the HDD from ubuntu and make it bootable

You can do it with grub:

Create extra partition
Format it as ntfs
Unpack iso file in root of this partition
Reboot, enter grub and press "C"
Enter commands:

root=(hd0,3)

Where "0,3" is your disk number and partition number (for example, sda4 would be hd0,4, sdb2 would be hd1,2)

insmod ntfs
ntldr /bootmgr
boot

After boot, the Windows installer will start.


Authentication Failure Switch to greeter

As per Michael Durrant's comment above and this post:

$ sudo apt install --reinstall lightdm
$ sudo service lightdm restart

Note: Running this command will log you out of your system. So, make sure to save your work before that.


It's important to quit or kill nautilus after the deleting the thumbnails:
naitilus -q
killall naitilus

Check failed thumbnail creation
The path for failed thumbnails (ubuntu 14.04 LTS or later) is ~/.cache/thumbnails/fail. So just check the folder and delete them:
rm -r ~/.cache/thumbnails/fail

Force thumbnail recreation
Try changing its modification timestamp, e.g. via:
touch -m YourFile.pdf

See
How to regenerate a specific thumbnail in Nautilus?
Thumbnail recreation mechanism
According to the freedesktop documentation Thumbnail Managing Standard . You can force nautilus to recreate the thumbnail if the mtime (modification time) in the thumbnail is lower than the mtime in the original file.
Thumbnail size restriction
If an thumbnail image is larger than 10 MB, no preview will be displayed, but only the default file icon.
To fix this behaviour you can increase this limit (doubling for example):
dconf write /org/gnome/nautilus/preferences/thumbnail-limit

Thumbnailer
You can try to create a thumbnail manually to see if a PDF can be properly converted to a thumbnail (first page [0] only):
convert  -thumbnail x300 YourFile.pdf[0] thumbnail.png


I noticed that this computer is not on the list of certified hardware, no advent computers are. Does this mean ubuntu won't work on it?

Means Advent has not taken the time to go through Ubuntu certification.

  Will I be able to put Ubuntu on it? If so, how? Just by buying a disk and booting off of the disk? Or is my hardware not supported? Thanks!

Either (1) Call Advent and ask them, or

(2) Prepare a LiveUSB (following these instructions which begin with Installing Ubuntu in UEFI Mode) and take it to the store which displays your machine of choice. Ask the clerk there to allow you to test. Insert the LiveUSB and try Ubuntu without installing. If it boots and shows you the Ubuntu graphical user interface, it will work just fine for you.


Is there a way to randomize my selected OpenVPN-servers?

A simple command line script could work like this:

#!/bin/bash
RANGE=200

number=$RANDOM
let "number %= $RANGE"
fname="us${number}.ovpn"
openvpn "$fname"

Assuming that:

Your OpenVPN config files are named following a scheme like us176.ovpn, i.e. a two-letter country code and a running number.
The available OpenVPN config files run from us1 to us200.

You would have to adapt the range, and add the directory where the config files are stored. Depending on the exact file name format, which I don't know for ProtonVPN, you may have to make other modifications, but you get the idea. Note that you would need to execute the script as sudo for OpenVPN to work like that.

EDIT: In case your VPN requests a username and password on connection, you can modify the last line of the script like this:

openvpn --config $fname --auth-user-pass /dir/to/userpass.txt

where userpass.txt contains the username and password on two separate lines, if you are comfortable with storing it like that.


How to keep the Master Boot Record when installing Ubuntu alongside Windows 10?

Not knowing the partition table on your hard disk where resides windows 10, i think you should take in consideration an installation of ubuntu in a usb stick with grub installed there (in the usb stick) and booting from that.
In that way your hard disk with windows 10 will remain untouched. Is not an elegant solution but is clean and painless.
In the meantime you will learn a lot of things of Linux using both operative systems and then with more confidence and practice in Linux you will decide what to do.
(My english is a litle rusty, pardon me).

Cheers.


Different icon themes for launcher and Panel

Use another icon set while keeping ubuntu mono panel icons

Press ALT+F2 and type "gksu nautilus /usr/share/icons".
Make a copy of the "ubuntu-mono-dark" or "ubuntu-mono-light" folder.
Rename the folder to a new name.
Open the index.theme file
Change the "Name" field to a new name ("Name=Ubuntu-Mono-Dark" to "Name=My-New-Icons")
Change "Inherits" field to the name of the icon theme you want to use ‘Inherits=Humanity-Dark,gnome,hicolor’ to the name of the folder of the icons you want to use.(This folder may be in ~/.icons or in /usr/share/icons)
Save the file and go to appearance preferences to set the new icon theme.

Good luck. You can view full source from this link


How to fix incorrect font in Eclipse IDE on wayland without installing GNOME settings daemon?

Install xdg-desktop-portal-gtk and relogin.


How to view list of downloaded programs on ubuntu?

Use apt in the terminal to get a list of all installed (downloaded) files:

[sudo] apt list --installed


Is it possible to do this if I don't have a domain name?

The short answer is Yes. You don't need a domain name to send email and my servers regularly send me emails (through postfix - you do need a MTA) about things from their hostname and my computer does the same. I'm constantly getting emails from root@bert (bert is my hostname).
The "problem" is that the emails might be blocked without a fully-qualified domain name because lots of anti-spam stuff relies on FQDNs to score emails' spamminess. I personally don't have any problems sending mail to myself on Gmail but you might have problems with Gmail or other providers.
The most professional solution would be to get a proper domain and set things up but if don't want to stretch the $10 or so, you can get a free email account with Google, Hotmail, etc. and most of them will let you send email via SMTP. And then postfix can relay those emails
The email sending is solved here: How to send mail from the command line?


Maybe this is a bad question to ask here... Was the card used on a Windows 7 phone?

They can make use of the secure aspect of a SecureDigital card.  The phone embeds a password into the card, bonding the two together.  After they are bonded, another phone, camera or PC should not be able to use it - even to format it.

That said, if you have other devices that can read the card, try formatting it there first.  Based on how complete that devices support for the SD device format is, you may be able to format it there, and then reformat it on the PC if needed.


How to search for a ppa for the non community version of cinelerra?

I would 1st start by going to the website of that software. In this case they have added a pretty nice download page with instructions. Here you pick the one you want (there are 3 versions, 2 have Ubuntu listed): https://cinelerra-cv.org/download.php and choosing Ubuntu for the community edition it shows you install it with

sudo add-apt-repository ppa:cinelerra-ppa/ppa
sudo apt-get update
sudo apt install cinelerra-cv

This will install "Cinelerra-CV" See the 1st link what features it holds.

And that is it.

That page also has a "Cinelerra-GG" (Good Guy). This version is updated more often. And it also has version specific installs:

sudo apt install software-properties-common apt-transport-https

For Ubuntu 14.04 (Trusty Tahr), run:

sudo apt-add-repository https://cinelerra-cv.org/five/pkgs/ub14

For Ubuntu 16.04 (Xenial Xerus), run:

sudo apt-add-repository https://cinelerra-cv.org/five/pkgs/ub16

It also status you need to edit /etc/apt/sources.list and change the repo it added to: deb [trusted=yes] https://cinelerra-cv.org/five/pkgs/ub16 xenial main due to a more strict licensing.

Nothing on 17.04 so use the 16.04 version.  After adding it do a ..

sudo apt update
sudo apt install cin


Please help me kill nautilus on root window

You need to install gnome-tweak-tool  and then, under Desktop, you can disable "Have file manager handle the desktop".


Is the boot process longer when installed on a hard drive than from running on a USB stick?

Yep, Ubuntu installed on a hard drive starts under a minute or faster (this site reports 18 seconds). Installed on an SSD -- and I can tell this from my own experience -- it boots up in a few seconds. Furthermore, additional services loaded at boot time or applications loaded in a GUI session can be disabled to shave off a few seconds.


First, make sure the needed GTK engines are installed.

sudo apt-get install gtk2-engines-murrine

If that works after restarting the shell (Alt+F2 & r & Enter), great! Otherwise, disable the theme for now and continue.
You can then install it from source if needed  to get the latest version:

By using the package from here or the repoistory here.
By compiling from source the source on GitHub - read the README to find out what you need to do.

Enable the theme again, and restart the shell with Alt+F2 & r & Enter.


Mirror photo directories and reduce file size

You can use rsync for synchronizing files and folders structure and then mogrify to lower files quality.

#!/bin/bash

IFS=$'\t\n'

files=`rsync -rvu /srv/photos/ /var/www/album/ |grep -i jpg` && cd /var/www/album
mogrify -quality 50 $files

Mogrify is the same as convert but it is overwriting changed files (in this example after synchronizing in your album folder)
IFS is set for files and folders with spaces

rsync options:

-r be recursive - for folders structure
-v verbose - tell what you are doing
-u update - skip files that are newer on the receiver

When there are different file types in your photos folder you can tell rsync to synchronize only jpg files by adding this to rsync command:

--include '*/' --include '*.jpg' --exclude '*'


On the whole, yes.

That is not to say that all drives will, or that it will be universally simple. I say that last bit from direct experience. Several years ago I bought a Ocz Revodrive. This was two fast SSDs strapped together with a RAID-0 chip on a PCIe x4 card. It was super quick for its time. Anyway, the complications of software-aided [fake]RAID meant that I had to make sure that the dmraid module was included in initramfs. This was not immediately obvious to me, nor was it simple.

Mine worked, but there are some cards with complex setups like this that don't have Linux drivers (few and far between given storage on Linux is their primary business). I would advise you Google for model-specific issues on Linux before purchasing.

Should also point out that if the drive works but (eg) you can't get BIOS to point at it, you can always install /boot on another drive. Even if that's a dirty little USB stick in the back of the PC. You have options.

I have since upgraded to nice simple —and very much faster— m.2 NVME card. I mention it because it's still technically PCIe. It works perfectly as the primary boot disk.


Dell Inspiron m5030 boots to a black screen with a mouse pointer

When you turn on your pc wait for grub boot menu and hit e then look for the line that quotes quiet splash or something like that and edit those words to say acpi=off then hit ctrl+X

Hope this helps


"Pinch to zoom" gesture with Focaltech touchpad in Ubuntu 15.10

You do not need to install any drivers for Focaltech touchpads if you use kernels 4.1+.

That is why there is no package for Ubuntu 15.10 in focaltech-dkms PPA.

Your touchpad is fully supported and works OK. You do not need to do anything.

"Pinch to zoom" gesture is not implemented in unity desktop environment that is used in Ubuntu.


This works for me with the sound file 'test.mp3' in the same directory as the python script.

import subprocess

filename = 'test.mp3'
totem = subprocess.Popen (['totem', filename])


Google Chrome Kiosk screen does not maximize

Not sure why Chrome is doing this, but if you have a look at:

/home/{kiosk_user}/.config/google-chrome/Default/Preferences

-- you will see browser.window_placement and you should see a difference of about 20 pixels between bottom and work_area_bottom, and right and work_area_right.

I edited the values to be the full extents of the display size, and saved Preferences, then chown'd then to root:root and chmod'd them to 644 so that Chrome (running as the kiosk_user) cannot modify the settings.

I restarted the kiosk_user session and tada, Chrome was running full full screen.

Hope this helps you.


How can I submit a bug for Ubuntu installer?

The Ubuntu community page on Reporting Bugs also includes details of how report bugs when offline or using a headless setup, using apport.


from your configuration, you are using NAT however assigning the IP address manually from the range in your router. Usually the VMWare or VBox NAT has different IP Range Pool than the actual router's (192.168.x.x). As you are using the 192.168.28.12, you need to switch the network from NAT to Bridged mode. Your gateway is 192.168.28.2, how do you know? as per the output result for your vmware adapter the gateway is 28.1

If you really want to use the NAT then you need to add the routing entry. Can you paste the output of your routing table?
In addition, find out the NAT Pool IP range in your hypervisor.


Yes, and it's not much different from changing the color of the Nautilus-Elementary sidebar.

Add the following to your ~/.gtkrc-2.0 file (create one if it doesn't exist):

style "rb-sidebar"
{
    GtkTreeView::even_row_color   = "#F2F1F0"

}
widget_class  "*RBSourceList*"  style "rb-sidebar"

Then switch to a different theme and then back to your old one.

As you can see in the screenshot below, there is a border around the sidebar in Rhythmbox unlike in Nautilus-Elementary, but the color matching does improve how Rhythmbox looks, in my opinion.


Installing HP Printer on Crouton, HPLIP says CUPS is missing

I had the same problem, and I resolved it just by running the Cups service:

service cups start

It looks that the HP install script is actually checking if the service is started to infer if the package is installed.


How would I write a shell script to compress multiple images with imagemagick?

Change your script to something like this:

for PHOTO in "$1"/*.{jpeg,jpg};
do

    OUTPUT_FILENAME="$(basename "$PHOTO")"
    ORIGINAL_SIZE=$(wc -c "${PHOTO}" | cut -d ' ' -f1)

    convert "$PHOTO" $2 $3 "$4/${OUTPUT_FILENAME%.*}.cnvrt"
    COMPRESSED_SIZE=$(wc -c "$4/${OUTPUT_FILENAME%.*}.cnvrt" | cut -d ' ' -f1)
    echo "${OUTPUT_FILENAME%.*}.cnvrt | saved size: $(expr $ORIGINAL_SIZE - $COMPRESSED_SIZE)"

done

and execute it with these arguments.

./convert_multi_with_logging /path/to/source -quality 50% /path/to/destination


How to remove the Bubble Notification of Empathy from the Notification Area

This is solved by upgrading the system. It does not appear in all PC. For example in a HP DV6000 I tested did not appear but it did on a Intel Desktop PC.


Upgrading From 11.04 (32bit) to 12.04 (64bit)

Depending on your configurations, your PHP settings should be in /etc/php5/*.

I do not know where phpmyadmin stores its data on the system.

I also do not know where your website files are.  but your Apache settings should be in either /etc/httpd/* or /etc/apache2/*, where * is a wildcard meaning everything within that folder.

Those folders contain the files for your configurations, and should be saved.  As well, any relevant user data should be saved as well (/home/user/* for example, where user is your username.)


USB Keyboard and Mouse no longer work after GRUB boot

Although this may not be for everyone, here's what i did to solve this problem. I put a PS2 keyboard and mouse into my computer. It works just fine.

Additionally, i installed a Synergy client on my Ubuntu, so that after i log in, i use the shared mouse and keyboard.

I hope this helps.

Love and peace,

Joe


How to change default Microphone configuration on Ubuntu 16.04

There are a couple of ways in which you can configure those applications to work.  Some of them will have a settings option, of which you can go into the program and use their audio setting interface to test and choose the device which has the best performance.
I just checked and Google Hangouts does have this feature to choose the audio device by name.  That's basically a GUI interface to what you are using the aplay and arecord commandline to check and use.
Some programs may not have an easy to settings interface.  Those applications will use your system's default settings for input.  Even the ones that do have a user-configurable audio settings interface, they still default to the system's default audio input unless you have manually set it different for that program.
Setting your system default input Device
About the easiest way to get started with a new program is to set your system settings to use your preferred audio input device.  You can do this from Ubuntu's System Settings.  You can find it by clicking on:

System Settings (the gear icon at the top right of the screen) -> (click) Sound -> (click) Input.

(You can click on the Speaker Icon as a shortcut to get to this setting).
From this Input tab select the preferred device.  When you select it you can also adjust the input level (or mute the ones you don't want to use if you have more than one, to avoid conflict.).
The highlighted one will be your system's default.  That is the one that the applications you mentioned (Skype, Hangouts, Facebook Calling, ...) will use unless you go into those applications and specifically change them to something different than your system's default.


Boot Ubuntu live from a a flash drive and choose try Ubuntu without installing. Once inside open up a terminal and run sudo fdisk -l and find where Linux is installed (/dev/sda*) - * could be any number

Next create a directory in your media folder corresponding to where Linux is installed whether it's sda1,sda2,sda3....etc. by running the following command

sudo mkdir /media/sda*

(* being the number for the partition)

Then mount the hard drive to that folder by running:

sudo mount /dev/sda* /media/sda*

(again keep in mind the asterisk indicates where Linux is installed)

Once mounted run sudo chroot /media/sda*

Then finally passwd geek

You should be able to change your password now.


iMac 2017 (High Sierra) won't recognize USB install stick when pressing the option key at boot

Here is how I managed to boot Ubuntu 18.04 from usb stick on an imac 2017 21,5" (macOS 10.12 Sierra):

I downloaded Ubuntu 18.04 64bit (iso file) and put it to the usb stick from a Debian Stretch computer using the command:

sudo dd bs=4M status=progress if=/home/[username]/Desktop/ubuntu-18.04.1-desktop-amd64.iso of=/dev/sdx conv=fdatasync

Replace [username] with your current username.

Replace the x in /dev/sdx with the appropriate drive letter of your USB stick (find it out using the command lsblk).

Plug your USB stick in your imac 2017. The imac must be shut down (no power).

Plug a wired keyboard in one of the USB ports of your imac.

Hit the ALT key and hold it as you are powering the imac on and until the EFI boot manager shows two big drive icons:

Macintosh HDD
EFI Boot

Click on EFI Boot and then on the up arrow that has appeared as you clicked on the drive icon EFI Boot.

Wait several seconds, maybe about 30 seconds or a little more.

Ubuntu 18.04 should boot from USB stick.

For your information: my imac was completely unmodified as I did this.


GRUB 2 is version 1.98 or later.

Source


You need to forward UDP port 9 to the broadcast address in your network (192.168.1.255, or alike).


Download Netbeans from https://netbeans.org/downloads/
Make sure you have Java version installed:
Type this command in a Terminal:

java -version
You should get should get an output similar to this:

  java version "1.7.0_21" Java(TM) SE Runtime Environment (build
  1.7.0_21-b11) Java HotSpot(TM) 64-Bit Server VM (build 23.21-b01, mixed mode)

Next install Netbeans: chmod +x netbeans-7.3-javase-linux.sh;
Launch installer ./netbeans-7.3-javase-linux.sh
If you want to install it in /opt launch it with sudo:
sudo ./netbeans-7.3-javase-linux.sh

See also the instructions: Installing the Software


Can I install cadence on Ubuntu 12.04 LTS x86 Machine?

I have just done precisely that. I have not tested the result exhaustively but yes, so far it seems to work. The only thing I would suggest is, use the KX repositories only for the initial install of Cadence and its dependencies; once installed, disable those repositories. That will ensure that the Ubuntu Studio dependencies don't get shot to pieces by KX versions being out of step.


What exactly happens when ubuntu recovers from crash?

Ubuntu does nothing beyond normal filesystem checks when recovering from a crash. If you're seeing changes to configurations, perhaps the filesystem is not handling crashes very well (on a crash, it will just run a standard fsck). Try identifying which files are changing that are causing you the problem. (What commands do you run to save the settings, etc?)

If this is a public display system, you may want to investigate replacement hardware (crashing every few hours sounds like a more serious problem), or checking to see if whatever you're displaying is not leaking memory and triggering the Out-Of-Memory killer. (Keep an eye on the output of free between reboot and the crash.)


How can I make the login screen appear instead of logging me in automatically?

Just go to System Settings -> User Accounts and disable automatic login.

That way, you will always be prompted for the password and it's in that login screen you can choose which environment to login to.


Confused about how to compile modsecurity module for apache in Ubuntu 14

I finally did  compile "ModSecurity" apache module on ubuntu 14.4 and have had the *.so file.
Well, All what I have done is to install the  dependencies that the installation shell can't find.

Download APR1.5.2 zip file
CD APR1.5.2
sudo ./configure
make
make test
sudo make install (It wasn't allowed for me to install without sudo)

The system needed "curl" so I installed it.
git installation and clone ModSecurity:

sudo apt-get install git
git clone git://github.com/SpiderLabs/ModSecurity.git

After I failed couple of times to install it!
I explored that a number of libraries must be installed first
libtoolize|autoconf|automake|autoheader|libxml2-dev
sudo apt-get install build essential libtool libxml2-dev autoconf automake autoheader

And you are ready to go.

cd into the directory - $cd ModSecurity
Run autogen.sh script - $./autogen.sh
Run configure script - $./configure
Run make - $make
Run make install - $make install

You will find it in this path /usr/local/modsecurity/lib/mod_security2.so.

Thanks,


The easiest way is if you can get there from the filename. For instance, if the selected filename is /mnt/home/$USER/shell_logs/20140326.log, you could get to another file in the same directory with a different extension, or another file in another directory pretty easily.

Let's first look at stripping the extension off:

timings="/mnt/home/$USER/shell_logs/20140326.timing" # just for testing
log="${timings%%.*}.log"
echo $log

And here's how to strip the leading path to change to a different directory:

log="/mnt/home/$USER/timings/${timings##*/}"


Workaround for the xfce indicator plugin

You could always remove the indicator and use the native XFCE notification area... I've found the indicator plugin under XFCE to be a pain to work with.


You can give the kernel your desired run-level on boot by  pressing C with your boot-entry selected and add init=<your-runlevel-number> to the kernel parameter passed on boot and press F10 to boot with that edited line once.

Or you can edit your grub.cfg to edit the parameters permanent (not recommended for Ubuntu and other distributions that check for change of important configuration files).
@videonauth suggest in chat and is right about that you have to update the /etc/default/grub and the files in /etc/grub.d/ instead followed by a sudo update-grub to update your installation properly.


Ubuntu not detecting NTFS partition on second HDD. How do I make it detect it?

It looks like Windows 10 has fast boot enabled.

Read these for info:
http://www.tenforums.com/tutorials/4189-fast-startup-turn-off-windows-10-a.html
https://superuser.com/questions/957081/how-to-enable-disable-fast-startup-in-windows-10
http://www.windows10update.com/2015/05/windows-10-tutorials-66-how-to-enable-or-disable-fast-startup/

I would paste instructions, but they are quite lengthy.  The tenforums guide should be exactly what you need.


NMCLI and IWCONFIG show very different signal levels

I suggest that you disable power saving in Network Manager. From the terminal:

sudo sed -i 's/wifi.powersave = 3/wifi.powersave = 2/' /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf

Restart NM:

sudo service network-manager restart

Does this fix the problem? If not, try a better driver:

sudo add-apt-repository ppa:hanipouspilot/rtlwifi
sudo apt-get update
sudo apt-get install rtlwifi-new-dkms linux-firmware

Reboot and let us hear your report.


How to see photos shared in a folder in a sequence

In Image Viewer, select View > Slideshow. Edit > Preferences > Slideshow to configure how long each image appears; 5 seconds by default.


Users can be added by the administrator explicitly by logging into the Eucalyptus web interface at https://<cloud-controller-ip-address>:8443/

As an administrative user, clicking the 'Users' tab, clicking on the 'Add User' button, and filling out the same user form that a user would fill out if they applied themselves.

The user will be automatically 'approved' using this method, but their account will not be active until the user clicks the link that is sent via email similar to the above method. If you'd like to use the cli, there is a command euca-add-user for that. Hope that was useful


Is it possible to install OpenOffice and LibreOffice in parallel?

There is nothing wrong to have OpenOffice and LibreOffice installed at the same time. Moreover, you can have more than one version of  OpenOffice and more than one version of LibreOffice without any conflict.

LibreOffice can be found in the Ubuntu Software Center. If you want the latest version, you can find it at http://www.libreoffice.org/download/.

To install OpenOffice (now known as Apache OpenOffice), open the terminal and run these commands:

sudo add-apt-repository ppa:upubuntu-com/office
sudo apt-get update
sudo apt-get install openoffice

Source: How To Install Apache OpenOffice 3.4 Via PPA On Ubuntu


Cannot install Ubuntu 15.10 on Dell Precision M6800

I had the same problem: Dell M6800, nvidia graphics, and 512 GB SSD, but 16GB RAM, and no extra hard disks.

I have tried booting ubuntu 14.04.03 and kubuntu 15.10. I have found that if I use CTRL-ALT-F1 to switch to the text console at the right moment, the system will survive for however long. As soon as I let it get to Gnome or KDE desktop, the system hangs.

Once I managed to switch back to text console, and the console was displaying error messages about CPU stalls.

What helped was this: When you boot from the CD (or USB key, same procedure), first press shift to interrupt the automatic boot.

You get asked to choose language, then you are at the screen where you can choose "try without installing", "install", etc.

Use arrow keys to move to "try without installing", press F6, you get a list of kernel options.

Press escape, this closes the list, but now you have the boot line listed.

Move to the end of the line, erase the "quiet splash --" part.

Add the words "nomodeset nouveau.noaccel=1".

Press enter, and the system should now boot and the GUI will work.

Note that you will need to go into settings->Software & updates -> Additional drivers and enable the broadcom driver to get the wireless working.

You will need to use the proprietary Nvidia driver to get accelerated graphics. Nouveau opensource driver causes CPU stall when it is accelerated. If you insist on using the opensource driver, you will have to permanently use noaccel=1, and I assume that will slow everything down.


Why are there 2 Clementines on the Ubuntu Software Center?

No, there's nothing shady going on. The first one is a snap package, deployed by a new package management system called snappy built by Canonical (the Ubuntu company). You can try any of them.


Although GNOME Shell integration extension is running, native host connector is not detected

First install this (its what appears in your error popup):
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install chrome-gnome-shell

However, on a new OS install you will still get errors until you also install these:
#  Ubuntu 20.04
sudo apt-get install libproxy1-plugin-networkmanager gnome-shell-extension-system-monitor

# Ubuntu 19.10
sudo apt-get install gir1.2-nm-1.0

Or:
# pre Ubuntu 19.10
sudo apt-get install gir1.2-gtop-2.0 gir1.2-nm-1.0  gir1.2-clutter-1.0

Then bounce your GNOME Shell by typing:

Alt+F2, type r then Enter.

or bounce from a terminal by running
killall -3 gnome-shell

Now go back to

https://extensions.gnome.org/extension/120/system-monitor/

and turn on the monitor extension. The resource monitor widget will now appear on desktop top status bar.

UPDATE  On Ubuntu 20.04, after doing the above, if it errors out, run the following in a terminal:
wget https://raw.githubusercontent.com/paradoxxxzero/gnome-shell-system-monitor-applet/fac6b7646346264bd75813a9d606dd5ba5152d6b/system-monitor%40paradoxxx.zero.gmail.com/extension.js -O ~/.local/share/gnome-shell/extensions/system-monitor@paradoxxx.zero.gmail.com/extension.js

Then bounce your GNOME Shell using:

Alt + F2, type r then Enter

I have run fresh installs of Ubuntu 20.04 on a handful of laptops and some work others fail to run this so the mystery continues...
UPDATE2 Apparently if you are running Chromium as a Snap in Ubuntu 20.04, this is a known bug. Using Firefox one can circumnavigate this issue and it should work.
PS and yes this also works for Ubuntu 21.10 ( as of May 21 2021 )


Download php 5.6 from http://in3.php.net/downloads.php
untar/unzip the package.
In package type ./configure
type make
type make install

Notice: after ./configure they might ask you to install some other packages clearly written on error log. php 5.6 has major patch which supports more than 2Gib file uploads.


Is there a command to print all the terminal processes run by a user?

Do you mean something like this:

cat ~someUser/.bash_history


Restore screen brightness automatically at boot

In Ubuntu 20.04.2 LTS I solved this problem by creating a cron job:
sudo crontab -e

and including this line at the end of the file:
@reboot (sleep 2 ; echo 80 > /sys/class/backlight/nvidia_0/brightness) &

I found that 2 seconds was enough time to override Nvidia's reset timing at boot. You can adjust the brightness level (80) to your own preference.
PS: Just found out that an additional fix is needed: even though the code above fixes brightness at boot, it won't do it when the computer wakes up from sleep/hibernation, Nvidia resets brightness to max again. To fix this, create in addition the following script in a file in the /lib/systemd/system-sleep/ folder:
#!/usr/bin/env bash
 action="$1"
 case $1 in
   post)
     echo 80 > /sys/class/backlight/nvidia_0/brightness
     ;;
 esac


Software Update stuck in the middle. 13.04

Kill it / Force restart the system. Then, in a terminal:

sudo apt-get install -fy
sudo apt-get dist-upgrade -y
sudo reboot now


problems maintaining interent connection with static IP

This answer concerns the part of your question dealing with resolv.conf.

The "lockfile creation failed" problem has nothing to do with the contents of resolv.conf.

Your resolv.conf contents look correct, assuming that the two nameserver addresses are correct and the domain name in the search option is correct. If the nameserver addresses are not correct then that needs to be investigated. Since eth0 is configured via DHCP, presumably those addresses are provided by the DHCP server to the local DHCP client and submitted to resolvconf which puts them into resolv.conf.


Installed application keeps disappearing - Notion/Lotion

I am assuming you are using GNome.
If you are reporting that the application is disappearing from your 'Favourite' bar, it maybe due to the item not being added to gnome favourite bar.
Step 1 :
Make sure you create a .desktop file with the appropriate exe/icon :

[ECLIPSE]
Name=Eclipse
Exec=/absolute/path/of/executable
StartupNotify=true
Terminal=false
Type=Application
Icon=/absolute/path/of/png

Step 2 :  You can use this to get the current list :
gsettings get org.gnome.shell favorite-apps
Step 3 :  Depending on your need, copy the desktop file to either
/usr/share/applications/(if you need this available for other users) or ~/.local/share/applications(if you need this available only for your user).
Step 4 :  Get the current favourite apps :
gsettings get org.gnome.shell favorite-apps
Step 5 :  Add the new app into the favourite app list. Here is an example :
 gsettings set org.gnome.shell favorite-apps "['firefox.desktop', 'Terminal.desktop', 'Eclipse.desktop', 'EMACS.desktop']"


JS script to inhibit sleep when lid is closed not working. File descriptor managing problem or else?

Ok, I was right that the FD was being closed at function end, releasing the inhibit. I couldn't find a way to keep the FD open, but I was able to keep the function running using it asynchronously.
Next step is to integrate this into my extension.
This is the the new code:
/*jshint multistr:true */
/*jshint esnext:true */
/*global imports: true */
/*global global: true */
/*global log: true */
'use strict';

const Gio = imports.gi.Gio;
const GLib = imports.gi.GLib;
const GObject = imports.gi.GObject;
const Mainloop = imports.mainloop;
const Atk = imports.gi.Atk;

const DBusInterface = '<node>\
  <interface name="org.freedesktop.login1.Manager">\
    <method name="Inhibit">\
        <arg type="s" direction="in" />\
        <arg type="s" direction="in" />\
        <arg type="s" direction="in" />\
        <arg type="s" direction="in" />\
        <arg type="h" direction="out" />\
    </method>\
    </interface>\
  </node>';

const DBusProxy = Gio.DBusProxy.makeProxyWrapper(DBusInterface);
let proxy = new DBusProxy(
    Gio.DBus.system,
    "org.freedesktop.login1",
    "/org/freedesktop/login1"
);

var inhibitor = {loop:''};

/* Inhibit remote starts the inhibitor asynchronously and locks itself with
   a GLib.MainLoop assigned to inhibitor.loop.
   To release the inhibit just quit the loop at inhibitor.loop
*/
proxy.InhibitRemote('handle-lid-switch', 'lidsleep-inhibitor',
                    'el diego de la gente lo quiere', 'block',
                    (fileDescriptor) => {

                        if (fileDescriptor) {
                            let loop = new GLib.MainLoop(null, false);
                            inhibitor.loop = loop;
                            log("Inhibitor added to array");
                            loop.run();
                            log("Shutting down completed");
                            return;
                        }
                        else {
                            logError("Inhibit returned null");
                            return;
                        }
                    });

/* A ten second timer function */
Promise.timeoutSeconds = function(priority = GLib.PRIORITY_DEFAULT, interval = 10) {
    return new Promise(resolve => GLib.timeout_add_seconds(priority, interval, resolve));
};

/* A function that calls a timer and wait for it to finish. Then, if the arg
   cont is true it releases the inhibit and return false. Otherwise it quits
   the main loop.
*/
async function asyncCall(cont) {
    try {
      log('Waiting 10 sec');
      await Promise.timeoutSeconds();
      if (cont){
        log('10 sec completed, inhibitor shut down starting');
        inhibitor.loop.quit();
        return !cont;
      } else {
        log('Quitting main loop');
        loop.quit();
        return;
      }
  } catch (e) {
      throw e;
  }
}

let loop = new GLib.MainLoop(null, false);

/* asyncCall is called twice.
   The first run releases the inhibit.
   The second run quits the main loop.
*/
asyncCall(true).
  then(asyncCall);

log("Starting main loop");
loop.run();


Create applications that performs keyboard shortcuts

You can achieve such an effect using a small and very useful command line tool, xdotool. For example, the command

sleep 0.3s; xdotool key ctrl+x

will trigger a Ctrl+x keypress when executed.

Include these command in a custom launcher file to obtain a clickable item.

The sleep command introduces a small 300 ms delay before executing the command. This will decrease the chance that the keypress is discarded by the keyboard buffer. To have this work directly in a .desktop file, write your Exec= line as:

Exec=sh -c "sleep 0.3s; xdotool key ctrl+x"

In the .desktop file, you also can specify your icon.


Easing entry of sudo password for remote hosts?

It's in the nature of sudo to require typing in the password at login and after the password cache expired. If you keep your sudo password in an unencrypted text file (and even in an encrypted it's a bad idea) and want to manage it with kdewallet you don't have to worry about sudo -i because it's a much more secure alternative for your use case.

Ah, and learn your sudo password by hard and delete the text file (consider using shred for the file) :) It's an immense security risk!


The Ubuntu One service has been discontinued for some time, and is no longer available for use.  Registering for the service may simply register you for Single Sign On, but will not enable Ubuntu One.


My newly added user cannot write to folder

"The folder has permissions 755"

Change that to 775.


Ubuntu 14.04 No Dash No Menu on an User Account

Follow this :
Ctrl+Alt+F1 login there by user name and password
Just try this :

sudo service lightdm restart

If lightdm fails to get back at normal,then Type:

sudo apt-get update
sudo apt-get install --reinstall ubuntu-desktop
sudo apt-get install unity

Note : IT Will Terminate Your ACTIVE SESSION


How to get Compaq Presario CQ62 brightness keys to work?

They do work with Ubuntu 10.10 Maverick. Do not use Fn with F2, instead just press the F2 key by itself to reduce contrast. Press F3 by itself to increase contrast. Some idiot must have thought that the Functions keys are hardly being used, and set the secondary function of the keys to be ALWAYS ON - ie. they are reversed.

So if you want to do an Alt F2 to run a program, you need to do an ALt Fn F2 to do it. If you want to do a F7 you need to do a Fn F7.

If you want your keyboard to act like a normal keyboard you need to go into Bios and change this silly setting. Restart the machine, and press the ESC key followed by the F10 key to get into Bios. Look for Action Key Mode and change the setting to disabled. Save changes and exit f10.

If you want to use the lock symbol key that is on the upper row on the keyboard. On the menu bar, Go to System>Preferences>Keyboard Shortcuts. Scroll down the list and find Lock Screen, it will be set to CTRL+ALT+L, click on the shortcut, it will get cleared, press the lock symbol key, and the shortcut will be changed to Mod4+L, click the close button. Now you can lock your computer just by pressing one key.

You can re-assign the other keys, to start your favourite applications. The key with a wired globe has been set to open your home folder by default. I'm thinking of changing the calculator key to start up LibreOffice Calc spreadsheet instead of the calculator.

Merlin2525


How to reformat Windows 7 and install Ubuntu

Well , here you don't need any special actions.

Just make a Live CD/USB and boot into Ubuntu Live session as usual.While you reached to partition step choose the option as Something else. I mean 2nd choice in the image shown.

After selecting that select continue and then it will take you into partition step. There select your Windows partition ( C in your case) and then click at - symbol to delete. that will delete your partition. Now again select that free space and click at + to add the partition.

Choose the mount point as / and format as ext4 and select ok. Now go forward for the installation process.


How do I update all computers in my home from my computer on a routine schedule?

There are two options:

A. Manually configure the /etc/apt/apt.conf.d/50unattended-upgrades file and the /etc/apt/apt.conf.d/10periodic via the unattended-upgrades package which you can check if its installed with:

apt-cache pkgnames | grep unattended-upgrades

if its not installed, install:

sudo apt install unattended-upgrades

B. Using the Softwware and Updates tools

Option 1:

Edit /etc/apt/apt.conf.d/50unattended-upgrades to suit your needs:

configure unattended-upgrades(other configurations are present in the file):

Unattended-Upgrade::Allowed-Origins {
    "Ubuntu xenial-security";
    "Ubuntu xenial-updates";
};

Certain packages can also be blacklisted and therefore will not be automatically updated

Unattended-Upgrade::Package-Blacklist {
     "vim";
     "libc6";
     "libc6-dev";
     "libc6-i686";
};

To enable automatic updates, edit /etc/apt/apt.conf.d/10periodic and set the appropriate apt configuration options:

APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Download-Upgradeable-Packages "1";
APT::Periodic::AutocleanInterval "7";
APT::Periodic::Unattended-Upgrade "1";

Meaning:

1: updated everyday,
7: updated every week

Note: The results of unattended-upgrades will be logged to /var/log/unattended-upgrades

Option 2:

Access the Software and Updates tools from dash:
In the Updates tab:

In the When there are security updates select: DOwnload ans Install Automatically option

when asked for password, supply it

Information: Option 1 gives you more fine grained control of the whole process.

Source:

https://help.ubuntu.com/lts/serverguide/automatic-updates.html


How can I give myself permission to edit files in /var/www without having to use the root account or sudo?

To give only your user permission to /var/www. You want to change the group owner to your primary group. If your username is joe this is how you would do it.

sudo chgrp joe /var/www

You then need to chmod the directory so its writable by the group joe.

sudo chmod 775 /var/www

after that you can write to /var/www

If you want to be able to edit and delete existing files. You need to take ownership of them.

sudo chown -R joe /var/www/*


In Nautilus, type CONTROL-L to show the pathbar.

In the pathbar, type:

ssh://192.168.0.11

and press Enter.

Enter your WD login id and password to connect.

This will mount the network drive.


Installing NVIDIA 720M driver in Ubuntu 12.04 with VERIFICATION

You should run:

sudo nvidia-xconfig
sudo modprobe nvidia
sudo restart lightdm

This will activate the installed driver.

Actually, xorg.conf is anachronism. Newest X drivers do not need it. But NVIDIA wants it to be written to work properly. Example /etc/X11/xorg.conf:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 304.108  (buildmeister@swio-display-x64-rhel04-06)  Wed Jul 31 20:47:43 PDT 2013

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection


I want to use Ubuntu as a firewall and wireless AP, with some external traffic passing through openVPN, and the rest just through a firewall

This kind of setup is very complex and fragile during updates if you aren't experienced with the ins and outs of networking in Ubuntu. Sadly there haven't found any good tools for performing these functions on vanilla Ubuntu install but there are lots of Ubuntu dirivatives that offer the functionality you describe. You may want to checkout Untangle, or my personal favorite pfSense (FreeBSD based has many advanced features). They are both great solutions but I recommend pfSense because it has some more advanced networking features that require a support license to use in Untangle. Both install and function very well inside Virtualbox for testing so that might be a good place to start.

If you really want to go through with this the hard way, I would strongly recommend this book http://www.amazon.com/gp/aw/d/0137081332 . It has lots of great information and will help you get started.

Update: one other thing I would recommend if doing it by hand, learn how to use a version control system and track your configuration files with it. Git, Murcurial, SVN, doesn't matter; it will save your life if you need to roll back a change that breaks something or track changes made to your configuration by an overzealous update package.


HP EliteDisplay S140u USB Monitor not working

There is a version 4.2 now.  I originally downloaded 4.1 (which produced the same error).  4.2 worked without a hitch.

Don't forget to sudo apt-get install dkms.


Alsa works in virtual console but not in X Windows

After adding myself to the audio group I can use Alsa in X Windows:

$ sudo usermod -a -G audio august

The question remains though, how come I'm able to use Alsa in a virtual console without being root or in the audio group?


Select all text and select a paragraph format.

Or use Ctrl+Shift+V to Paste Without Formatting. This option is available also on right-click as well as Edit menu.


KDE 4.9 is available in the Backports PPA from Kubuntu!
This is the "official" Kubuntu Team PPA.
To install/upgrade, open a terminal and:

sudo apt-add-repository ppa:kubuntu-ppa/backports -y
sudo apt-get update
sudo apt-get upgrade


Open the parent folder of a symbolic link via right-click?

Save this script as Open symlink's parent dir in your ~/.gnome2/nautilus-scripts/. On right click you will have an option under "scripts", "Open symlink's parent dir".

you can open the parent directory of any symbolic link from it. symbolic link may be of any file or folder. If it is not a symbolic link you will get a notice.

#!/bin/bash

if [ -h $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS ]; then
    var="$(readlink $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS)"
else
    zenity --info --text="$(basename "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS") is not a symbolic link"
    exit 0
fi
if [ -d "$var" ]; then
    var2="$var"
else
    var2="$(dirname "$var")"
fi
nautilus "$var2"

If there is more than one soft link

You can use readmultilink from this answer by Radu Rădeanu . Then the script will be able to reach to parent directory navigating through multiple soft link at once.

You need to copy paste the function in your code and use readmultilink instead of readlink.


How to run Angular 2 apps with Node on Ubuntu?

try using

sudo su

check the version of node and npm

  Verify that you are running at least node 6.9.x and npm 3.x.x by
  running node -v and npm -v in a terminal/console window. Older
  versions produce errors, but newer versions are fine.

then use

npm install -g @angular/cli

create new folder

ng new my-dream-app

change the current directory to the newly created folder

cd my-dream-app

start the angular server with

ng serve

I recommend you to use 16.04 lts ubuntu verion


Is there flash support for a Radeon hd 4650 agp video card in ubuntu 12.04?

Allow me to answer my own question. I stumbled upon a thread that says gpu hardware acceleration has long since ended with Adobe Flash Player in Linux. Everything after 10.2 or 10.3 does not have the feature. Adobe should go die somewhere.


Is there a command to get the location of a file which is selected in nautilus?

If you want to get a file name into a terminal program, you should be able to use either mouse drag'n'drop or Ctrl-c and Ctrl-(Shift-)v to copy/paste it into an editor/terminal.


xrandr not showing my VGA port, instead it lists DP1

Your hardware actually doesn't support native VGA output.
See: http://www.anandtech.com/show/9483/intel-skylake-review-6700k-6600k-ddr4-ddr3-ipc-6th-generation/4

This means that the VGA you see and use, is an adapter, an internal adapter.
This could explain why xrandr reports DP1 instead VGA1


Brother MFC-J870DW network printer drivers

I have the same printer and installed two .deb files to get it to work with Ubuntu (both 12.04 and 13.04).  Ubuntu does not have the printer driver by default so I had to go to the Brother Website, download the LPR driver (.deb file) and the Cups Wrapper driver (.deb file) for this printer.  Here is the link Brother Printer Driver Download Page
 (I found the link by.....
     - Searching for brother linux printer drivers
     - Clicking on Download Link under Brother Solutions Center : Brother Driver for Linux Distributions Link
     - Under MFC clicking on the MFC-J870DW Link which will simply scroll you down to the MFC-J870DW
        Once you scroll down you will see table format, make sure you select from the files under the MFC-J870DW section, you will see other sections for other printers above and below the MFC-J870DW section

  MFC-J870DW

LPR driver                           rpm
cupswrapper driver  rpm
LPR driver                            deb
cupswrapper driver  deb

Now you will need to download and install the LPR driver before you install the Cups Wrapper Driver otherwise. Make sure you download the two deb files for the correct printer, NOT the rpm files.

NOTE: You must first install the LPR driver BEFORE you install the Cups Wrapper Driver. If you try to install the Cups Wrapper Driver first, you will get "Dependency not satisfiable".

If you run the .deb files by double clicking in Nautilus (The File Viewer) it should open the file in Ubuntu Software Center and allow you to install. When you install, you will get a message that the Package "is of bad quality", CLICK ON the "Ignore and Install" button.

After you install both, under printers, you will probably not see a printer icon, click on the Add Button, you should be able to see the the Printer under Network Printers since it is a Wifi Printer, you will see it listed twice, at least one of them will work.

If neither of them work.. ON THE PRINTER ITSELF..
- Touch the Wi-Fi Button on the Screen Display (If the screen display is black, touching it should light it up).

 - Touch the TCP/IP Button
 - Write Down the IP Address which will be a set of four numbers with dots between them
 - Go back to Ubuntu and click on Add Button under Printing

 - You can enter the Pritner IP Address in the  URI Section and then continue to setup the printer for Ubuntu.

I hope I gave you enough information to get setup.


18.04: Connect a Brother DCP-1610 through an Orange Livebox?

Would you consider bypassing the Orange Livebox and printing directly to the WiFi transceiver of that Brother printer? If you, you may download the .DEB driver file from Brother, and install it.

If your OS does not have a 32 bit library as standard, install ia32-libs or lib32z1

Install the LPD/LPRng driver and the CUPS driver using the --force-architecture option.

If the /usr/lib64 directory exists, check whether the "br (printer name) filter" file exists under /usr/lib64/cups/filter. If not, copy it from the /usr/lib/cups/filter directory.

Set up the printer using "http://localhost:631/printers".

=

Alternatively, if you use a desktop sans WiFi and she uses a Windows laptop, you could reconfigure her PC to print to the WiFi from Windows 7, and connect directly to the Brother from your PC, instead.


How to install autotrace in Ubuntu 18.04?

Sadly I haven't found a ppa or replacement for this on Bionic (18.04) and Cosmic (18.10), but I just now compiled from source without issues (on both) as follows:

sudo apt update
sudo apt install intltool imagemagick libmagickcore-dev pstoedit libpstoedit-dev

git clone https://github.com/autotrace/autotrace.git
cd autotrace
#unnecessary command for clarification should bugs be introduced later
git rev-parse HEAD
#6468859336870a663106d8179578867caf2cfced

./autogen.sh
#put everything into /usr/{bin,lib,share,include}
LD_LIBRARY_PATH=/usr/local/lib ./configure --prefix=/usr
make
sudo make install

PSTOEDIT SUPPORT IS WORKING. Ming (swf support) is the only thing disabled as the libming-dev package is also unavailable. No need to link anything.

which autotrace
/usr/bin/autotrace

autotrace -v
AutoTrace version 0.40.0.

uname -rvm
4.18.0-15-lowlatency #16-Ubuntu SMP PREEMPT Thu Feb 7 12:28:15 UTC 2019 x86_64

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.10
Release:    18.10
Codename:   cosmic

You can safely uninstall (should a .deb become available) by redoing the exact same install process once again and add:

sudo make uninstall

If this isn't working for you I'm guessing it's a missing .deb on your system. Comment with your issue and ill update the apt syntax accordingly.


Ubuntu 13.04 gets blocked while running VirtualBox

As it may be needed for some virtual machines to perform at the ultimate maximum, and modern CPU's do have an intelligent use of virtualization technology indeed, but for optimum stability of the host we need to leave it at least some resources.
Give the host a CPU

Leave at least 1 core running for the host (i.e. maximum 3 cores for the VMs on a quad-core system).

or

If we do have to assign all cores to the VMs we need to define an execution cap to leave some reserves for the host.

Spend some RAM to the host
Virtual Box Manager gives you a warning as soon as you assign more than 50% of available RAM to a VM. It may however be safe to

leave at least 512 MB (better more) of RAM for the host to avoid excessive swapping. Take virtual graphics RAM in account too.

This may considerably increase stability of the host OS. In case we run more than one VM in parallel we may have to further reduce the resources assigned to each as then the CPU cores and the RAM reserved for the VMs sum up.
Update
After a fresh installation it may also be a good idea to perform a software and kernel upgrade (sudo apt-get update && sudo apt-get dist-upgrade) for bugfixes, and for the same reason get the newest release of our virtualization software.


Make directory and copy some file on a path which is parent of home directory

Once logged in, make sure you are in your home folder by typing the following command:

cd ~

The "~" is a representation for your home folder.

From here, just type the following command to create a directory.

mkdir tracker

To check if this has been successful, you can type the following command:

ls

This will give you an output of all the folders in your current folder. If you need to check the permissions on them, you can type the following command:

ls -l

which will give you a list of all the folders along with their permissions.


I need help making sure all necessary drivers are installed and working Help?

having issues with making sure all the drivers for sound and graphics work

You can try Checkbox

Press the Super key, type Checkbox and run it.


vagrant cannot start VirtualBox VM after moving from 18.04 to 19.04

In my case, virtualbox-dkms installation was broken. My fix was:

apt purge virtualbox-dkms && apt install virtualbox-dkms

choose a password on reistallation and reboot the system. You will be asked to do the MOK again, choose to do so and choose the first key, enter your passwor and reboot.

now:

$ dmesg |grep vboxdrv
vboxdrv: Found 8 processor cores
vboxdrv: TSC mode is Invariant, tentative frequency 1799998716 Hz
vboxdrv: Successfully loaded version 6.0.6_Ubuntu (interface 0x00290008)
vboxdrv: 0000000000000000 VMMR0.r0
boxdrv: 0000000000000000 VBoxDDR0.r0

$ dmesg|grep 'UEFI:MokListRT '|grep -i ubuntu
Loaded UEFI:MokListRT cert 'kubuntu Secure Boot Module Signature key: ..............' linked to secondary sys keyring

$ service virtualbox status
● virtualbox.service - LSB: VirtualBox Linux kernel module
   Loaded: loaded (/etc/init.d/virtualbox; generated)
   Active: active


SVN server only allows commits when run as root

You're having a classic permission issue. Your repository is possibly located at a location like /some/dir/repos with /some being svn not being able to access /some because svn does not own /some and:

svn is in the group of /some, but the permissions are set like 700
svn is not in the group of /some and the permissions are set like 750

In both cases, svn cannot descend in /some because the execute-bit is missing on /some.

Two solutions are possible:

add the other execute bit to /some so the permissions look like 751
add the group execute bit to /some and make sure the user svn is a member of the group

You need to check all directories above your repo. So if your path looks like /i/am/very/long/repos, you need to check /i, /i/am till /i/am/very/long/repos.


I was able to solve this doing the following:

Run strace dotnet run
find the following line in the output mknod("/tmp/clr-debug-pipe-8216-6278628-in", S_IFIFO|0700) = -1 EACCES (Permission denied)
Give all users the same permissions on the /tmp folder that the owner has


Opening new application windows in foreground, as usual?

I went to Gnome Tweaks/Windows/Window Focus. I switched to the other settings (Focus On Hover, Secondary-Click) and returned the setting back (Click to Focus). And it started to work normally again.


Google Chrome for 64 bit does not come with Flash (see bug report).  Chrome (64 bit) will try and use the Flash it finds on your system, but if you don't have it, then you need to install it.


Grub rescue - error: unknown filesystem...tried everything

My first instinct with GRUB problems is to restore GRUB from a live CD/media. For this you will need some sort of live media with Ubuntu installed upon it.

Boot into the live media
Open a terminal
Run the following commands, each line is a new command

sudo apt-add-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair
boot-repair

Follow the instructions in boot repair and Select 'recommended repair'
Allow the repair to complete and then restart ensuring you remove your live media

For a more indepth explanation of boot repair see here


This post is a bit old, but I was having a similar issue, and it seems the OP never got an answer which helped.  Like I said, my situation was similar, but my monitor reported that it was not optimal, and displayed nothing.

The menu was there, I know because I could arrow down and press Enter and the boot up would be different (i.e. 4 down was Windows on my PC).  I did a little research and ended up updating /boot/grub/grub.cf setting the line as follows:

FROM (was):

set gfxmode=auto

TO:

set gfxmode=1024x768

Saved and rebooted. The menu now shows. Hope this helps.

Note: You have to sudo to edit the file.


How do I activate full screen mode when using Skype?

Double-click into the video window. This should do it! (As it commonly does with many video players.)


Trust GXT18 Keyboard not working (HID_MAX_USAGES)

Unfortunately there is no way around (at least that I know of) other than installing a newer kernel until Ubuntu uses a 3.6 kernel.

See this page for more information: Linux support for the Trust GXT 18 keyboard


On your router you need to set port forwarding. Let's say you Ubuntu machine has IP 192.168.1.10. In your router you set port 22 to be forwarded to address 192.168.1.10 and you are set, you can access your SSH from outside using your outside address. To find out what is your outside address, go to http://whatismyipaddress.com
This will work till your outside address changes. Then you will need to find out again what is your address, or have static address or use dynamic DNS. But first set the basic thing in step 1, access via IP.
Hope this helps


Having some issue while setting virtualhost in apache2

If no matching virtual host is found, then the first listed virtual host will be used.

Use the virtual host in 000-default.conf to configure the behavior for domains that don't match one of your other virtual hosts. For example use a non-existing document root.


Ubuntu 12.04 + XBMC Direct to HDMI Workspace

There is an option in xbmc Settings > System > Video output where you can set which screen xbmc should appear on by changing DisplayMode to Full Screen #2. This controls where full screen happens.

For your sound question, you need to set xbmc's sound settings from PulseAudio (default) to PulseAudio (specific hdmi output) and make sure to set your laptops speakers as the default output so all other sound applications will come out of the laptop speakers.


Touchscreen on Ubuntu 18.04 does not work - X201 Tablet

Solution found!

sudo inputattach --daemon -w8001 /dev/ttyS4

Voila!


Unable to execute .jar file from terminal despite having Java installed

When you install JDK manually you must check the setting of the following variables in your environment:

JAVA_HOME=~/jdk1.8.0_151
PATH=$JAVA_HOME/bin:$PATH

And you have to change the values if you move the JDK folder.


You could try appending a dash to the end of the package you don't want installed, as in apt-get install kde-plasma-desktop sddm-. From man apt-get:

  If a hyphen is appended to the package name (with no intervening space), the identified package will be removed if it is installed. Similarly a plus sign can be used to designate a package to install. These latter features may be used to override decisions made by apt-get's conflict resolution system.


PHPStorm favorite not working after changing version

I tried Run Tools —> Create Desktop Entry in top menu of IDE as suggested here https://askubuntu.com/a/223833/247771
However, this was not creating a new favorite or desktop icon. I also tried to reboot, but that didn't help.
However, when I now save the current favicon on the sidebar while the new program is open, it points to right EAP program.


Partitioning the Rigid Disc to install Ubuntu alongside with Windows 7

Yes it is. Although you can only have 4 primary partitions you can have as many logical partitions as you want. Logical partitions are basically the same as primary you can install Ubuntu on those.
Just create logical partitions for your Ubuntu.
Primary Partitions
When Microsoft developed it's 'new' partition table type around the 1980s it restricted the number of partitions a hard-drive could have to only 4. These have become known as "Primary Partitions". It would be inaccurate to think of this as the main episodes on a Dvd because these could be shorter than the bonus features.
Extended Partitions
Some clever people managed to make one of these a new type of partition that could hold a large number of other sub-partitions. This new type of partition became known as an "Extended Partition" (it should have been "Extending" not "Extended" but nevermind). Perhaps think of this as the bonus features menu on a Dvd. When you select "bonus features" it doesn't play anything, it just gives you another menu.
Logical Partitions
The sub-partitions became known as "Logical Partitions". When people quote the number of partitions on a drive they usually exclude the Extended Partition. Perhaps think of these as the the bonus features on a Dvd. However, the bonus features could be a lot longer than the movie or the episodes.
Also more relevant information can be found here and here


Radeon RX 560x graphics card doesn't have a driver for Ubuntu

So there are 2 problems that you must be facing.
1.) Wifi Not Working(adapter not found) 2.) Graphic Drivers not working.(bcoz AMD drivers are not installed)

DO ALL THIS while booting using NOMODESET

The first one requires you to install the wifi drivers. The current Tuf laptop you are using has Realtek 8821CE whose drivers are yet not officially released by Ubuntu.To tackle this follow steps in the given link
How to install Wi-Fi driver for Realtek RTL8821CE on Ubuntu 18.04?. You will have to connect your laptop with a wired connection for this.

After Wifi Problem is fixed you will have to install the necessary graphics driver for your particular system specification from here https://www.amd.com/en/support/previous-drivers/graphics/radeon-500-series/radeon-rx-500-series/radeon-rx-560.

Also follow the advice given on this link Ubuntu 18.04.1 LTS R9 390X amdgpu guide / testing summary


Lost ZFS bpool on 20.04 production system still running

One by one I detached drives in the rpool. I repartitioned so I had 4 partitions for efi, swap, bpool, rpool.   Then just attached the rpool partition back to rpool and waited resilvering to complete before doing the next drive.
Then I followed the instructions here for making efi and bpool:
https://openzfs.github.io/openzfs-docs/Getting%20Started/Ubuntu/Ubuntu%2020.04%20Root%20on%20ZFS.html
But skipping parts of instructions for rpool as that was already ok.


polipo E: Sub-process /usr/bin/dpkg returned an error code (1)

The problem might with your config file. I would recommend you to back the original config file /etc/polipo/config and download the config file provided by torbrowser.

Here is the steps

sudo mv /etc/polipo/config /etc/polipo/config.orig
sudo wget https://gitweb.torproject.org/torbrowser.git/blob/ae4aa49ad9100a50eec049d0a419fac63a84d874:/build-scripts/config/polipo.conf \
-O /etc/polipo/config

Now try to rerun the command

sudo apt-get install polipo

Hope this helps


Epson V500 Photo + Kubuntu + iscan plugin package

That maybe because some other Software Center widows are opened.

Place that deb file to your Home folder and run in terminal

sudo dpkg -i iscan-plugin*.deb

And you need to make sure that it is a package for your platform (i386 or amd64).


Ubuntu 14.04LTS on windows 8.1 virtual machine unable to login to GUI with correct password

Finally following worked for me

I installed XFCE sudo apt-get install xubuntu-desktop then after reboot selected this option and problem solved.


Every time I connect to the internet zenity says "downloading wine-unity3d-installer"

Its just because the plugin db provided with Pipelight 0.2.4.2 isn't up-to-date anymore. To update it manually:

sudo pipelight-plugin --update

sudo pipelight-plugin --create-mozilla-plugins

(clear plugin cache (only necessary for using Firefox))

Afterwards it should work.

[[source: http://fds-team.de/cms/pipelight-installation-comments-1.html ]]


Error message when opening the terminal "-bash: /usr/bin/tclsh: No such file or directory"

Thanks @bac0n
All I had to do was to sudo apt install tcl and this error doesn't show up any more. This was based on what I found on Bug #1797345 "Evaluation of modulecmd.tcl is not escaped properl..." : Bugs : modules package : Ubuntu and Errors upon opening terminal on tclsh and module - Stack Overflow


Ubuntu 14.04 mouse and keyboard focus different windows

I found a solution to similar focus problem. A part of it was that mouse focus remained locked to one window but keyboard focus was in another. I fixed it by running:

sudo apt install wmctrl
xfconf-query -c xfwm4 -p /general/click_to_focus -s true
wmctrl -R WindowName
xfconf-query -c xfwm4 -p /general/click_to_focus -s false

Here are the links to original answer and bug report


where to add code for disabling OPTIONS method in apache

If you have configured vhosts for your site you can add inside your required vhosts. If not you can simply add to httpd.conf if not exists add to apache2.conf file.


Trying to dual boot Ubuntu 14.10 with Windows 10, last one not detected

I wasn't able to get the boot repair to work so I manually added a Windows 10 boot option.

The first step is to edit /etc/grub.d/40_custom (using SUDO) and add the following lines to the bottom of the file:

menuentry 'Windows 10' {
set root='(hd0,msdos1)'
chainloader +1
}

In this case my bootloader was in /dev/sda1 hence the 1 at the end of msdos. After this run sudo update-grub2 and you should be good to go.

Worked for me, advice taken from here:
http://technologytales.com/2010/11/21/manually-adding-an-entry-for-windows-7-to-an-ubuntu-grub2-menu/


youtube-dl not working signature algorithm

The copy of youtube-dl in the Ubuntu Repositories is often quite old and Youtube frequently changes the way it serves files rendering older versions of youtube-dl ineffective. Use the following to get a modern copy:

sudo apt-get remove -y youtube-dl
sudo wget https://yt-dl.org/latest/youtube-dl -O /usr/local/bin/youtube-dl
sudo chmod a+x /usr/local/bin/youtube-dl
hash -r

You should find that your error will no longer appear. Routinely update your installation (every week or so) by running:

sudo youtube-dl --update

In fact it will be mandatory for you to update / upgrade in this way as youtube-dl will not be a standard Ubuntu Repository package.

Reference:

How do I update youtube-dl?


How to add a custom shape in the beginning of terminal command-prompt?

save whatever ascii art you want to add as a text file and name it say "ascii".

Open your home folder in nautilus and copy this file to your home folder.

Now if you press ctrl-h you will be able to see hidden files.

There will be a file .bashrc

Open it and add the following line at the end of the line...

cat ascii

Now save it and close it.

Run your terminal.

If every thing goes well, you should see what you intend to see...

there is a nice illustration with photos at the following link...

http://iloveubuntu.net/fancify-your-gnome-terminal-ascii-art


Is it safe to use a USB external drive without a valid partition table?

Curious that you mention that case. I have the same case here. Let me add that I have tested this hard drive since 11.10 all the way to 13.04 right now. Keep on reading to see everything the hard drive has gone through with the no problems at all.

To start, doing sudo fdisk -l brings me the following:

Disk /dev/sdd: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/sdd doesn't contain a valid partition table

Now, I have used this drive internally and in an USB External enclosure. It works perfectly and is detected correctly with no problems in other Ubuntu systems. Note that I am talking about working correctly for any general intent and purpose (files, movies, text, music, etc.. ). In it I have many movies and tv series. I even ran Disk Utility on it and got the following:

Now here is the only problem I have found. When checking the Drive with Gparted I get the following message for it:

And even though it looks like an "OMG ITS GOING TO DIE!!", it has been like that for little over a year. Which means, it lasted the use I gave it on Ubuntu 11.10, 12.04, 12.10 and right now 13.04.

I can actually run fsck on it and it would say everything is perfect.

I can even check how it is mounted using mount. When I mount the unit using the Nautilus file manager it shows like this:

/dev/sdd on /media/cyrex/stuff type ext4 (rw,nosuid,nodev,uhelper=udisks2)

So with a year of a lot of copying, pasting, deleting, executing stuff from it, changing it from one PC to the next and basically doing anything to it, it still works, the data is safe and I love Linux. I also invite you to read this question which should set your mind at ease.

Additional Information regarding Gparted (Thanks to chaskes)

As an aside, the error messages from gparted just mean what you already know: there's no partition table. When providing information, gparted calls programs in e2fsprogs (if installed). These programs require the device name to be passed in. The problem is that gparted is a partition editor. When it sees /dev/sdd by itself in /proc/partitions, it assumes there must really be a partition 1 and passes /dev/sdd1. (Note the path gparted reports.) e2fsprogs can't find the superblock since the device name it has been given doesn't exist. But, if you run the e2fsprogs from the cmd line using the actual device name /dev/sdd, they work fine. In other words, despite the anxiety the gparted errors may cause, the filesystem and it's superblock are just fine.


can i install and run an older kernel (3.10) within a latest ubuntu release (14.04)?

Yes, it's possible. Normally the system will use the latest kernel available. You can change the default kernel by configuring GRUB, or at each computer start-up press SHIFT and keep it pressed until you see the GRUB menu where you can choose the kernel you want.


HELP Creating customized version of Ubuntu

Ubuntu Customization Kit (UCK)

Install Ubuntu Customization Kit (UCK) from the Software Center. UCK does everything in the Install CD Customization Wiki for you (https://help.ubuntu.com/community/InstallCDCustomization).

To use UCK, you will also need the package libfribidi-bin.

From the command line, install these using...

sudo apt-get install libfribidi-bin uck

UCK starts off with a GUI interface, but you do have to make your personalizations using the command line.  Be sure to select "Run console application" which will give you a command line window in which you can modify your new iso and use apt-get to install software; remember this is a root shell in a chroot environment, so you don't need sudo  (I'm not sure if you can run GUI applications out of there, but you can try; you might have to export your display).

Personalization / Customization

Here are some tips to personalize your iso from the UCK command line terminal:

Common File Locations

If you don't use apt-get to install your themes, backgrounds, or icons, you can

Place new backgrounds inside /usr/share/backgrounds/.
Place new icons inside /usr/share/icons/.
Place new themes inside /usr/share/themes/.

After installing them, you can select specific themes, backgrounds, or icons as defaults in the next step.

Default Settings

If you want to set default themes, fonts, icons, etc. you can create a file called 11_ubuntu-settings.gschema.override and place it in /usr/share/glib-2.0/schemas/.  Here is an example file.  The items in brackets correspond to schemas found in dconf Editor. Install dconf Editor in your current, non-UCK environment, using sudo apt-get install dconf-tools and copy your curent settings.  This takes a little digging, but is not hard to do, especially if you use the Find feature of dconf Editor.

I think the examples below are self explanatory and should be enough to get you started, but you can research the specific settings you want.  These settings will be applied during installation from your new iso and to all new users created after Ubuntu has been installed using your new iso.

[com.canonical.unity-greeter]
xft-hintstyle = 'hintfull'

[org.gnome.desktop.background]
show-desktop-icons = true

[org.gnome.desktop.interface]
icon-theme = "fs-icons-ubuntu-mono-dark"
document-font-name = 'Liberation Sans 10'
font-name = 'Liberation Sans 10'
monospace-font-name = 'Liberation Mono 9'

[org.gnome.desktop.wm.preferences]
titlebar-font = 'Ubuntu Bold 10'

[org.gnome.nautilus.preferences]
click-policy = 'single'
show-image-thumbnails = 'always'

[org.gnome.settings-daemon.plugins.xsettings]
hinting = 'full'

After creating this file inside the UCK environment, you must run the following command inside the UCK console terminal.

glib-compile-schemas /usr/share/glib-2.0/schemas/

Other Customizations

The above were just some examples, based on your original question. You'll have to research what other changes you want to make, and where to make them within the file structure in the UCK command line window. For more information, you can read through the Install CD Customization Wiki (https://help.ubuntu.com/community/InstallCDCustomization).

Create Live USB

Type exit to close the UCK command line window and use the UCK GUI to complete creating the .iso file.  Note, there is a small bug in UCK (https://bugs.launchpad.net/uck/+bug/1245981) where the remastered iso will have a home directory with your user id in it.  This is probably inconsequential to you.

UCK will create your new remastered Live iso image in

~/tmp/remaster-new-files

Once your iso is complete, you can create a bootable USB using Startup Disk Creator. Install it from the Software Center, or using

sudo apt-get install usb-creator-gtk

If Startup Disk Creator has a problem writing to your USB, first format it to fat32 and set the "bootable" flag using gparted.  Install gparted from the Software Center, or using

sudo apt-get install gparted


I'm running with the limited info you're giving us here.

You need to create a bootable USB using one of the official images. Then setup your motherboard to boot first from USB and just follow the installing procedure. Don't run from Live USB, explicitly say you want to install Ubuntu.


Removing Ubuntu 15.1 and installing Windows 7 Ultimate

See first of all if you want to uninstall Ubuntu and install windows then just put your disk which contains Windows into your disk driver and then reboot your system. When the windows installer asks you for disk selection select the disk in which you want your windows to be installed. And then format all the other partition into either FAT32 format or NTFS format. Let the windows installation complete. Your system will restart automatically with the version of Windows you have installed and Ubuntu will be removed from your computer.


i'm not going to add anything to Jacob comment but just inserting some screenshots to help:

Open your file manager and go to your home(it will open there by default).

Show hidden file by pressing CTRL+h

Now you can find many hidden files/dirs search for that named .config

Now open that directory and search for directory called libreoffice

Now remove this dir by pressing Delete  or rightclick --> Move to Trash

Now log out and log in again then try to open libroffice again


Computer is always frozen while running massive Python programs

Note: If you've overclocked your CPU or RAM, reset it.

Possible swap issues...

Unless hibernating, excessive swap partition size.

Try this temporary tweak and see if it helps... in terminal, type sudo sysctl vm.swappiness=10

Update your BIOS...

Your current BIOS is 1002

BIOS 1203 from 11/1/2019 is available here. "Improve system performance".

confirm correct download page and BIOS versions
download the newer BIOS
backup important files
install newer BIOS

Test your memory...

Go to https://www.memtest86.com/ and download/run their free memtest to test your memory. Get at least one complete pass of all the 4/4 tests to confirm good memory. This may take many hours to complete.


You can do so by pressing Super/Windows and choosing the workspace on the right hand side of the screen (see screenshot) (or respectively Ctrl+Alt+PageDown/PageUp/→/←  in VirtualBox, the 3rd key in the keyboard shortcut sequence depends on which workspace is currently selected).


I would not normally link to a page that was not an ubuntu wiki or information source as they often go missing.

However this is by the user on the forum who deals with an enormous amount of wubi threads.

http://ubuntu-with-wubi.blogspot.ca/2012/04/how-to-upgrade-wubi-install.html

Summary:

Wait a while for latest fixes to exist.
Do a backup.
Do a full backup.
Really. Do a complete backup!!
Ensure there's at least 3GB free space. Even more is even better.
Consider removing any PPA's first (reinstall them later).
Let Ubuntu upgrade itself.

This usually works. You did make a backup, right?


How to set up a linux server as a router with QoS

I think all you want to do can be done using a combination of iptables and iproute2.
Please have a look at the  Iptables-Tutorial and the advanced router howto.


A non-LTS release gets updated for the following nine months only. An LTS is updated for five years.

If you go for a non-LTS release you would usually update to a new release every six months - for example from 10.04LTS to 10.10 to 11.04 and so on until you get to the next LTS.

The choice is stick with an LTS, update to every new release or pick and choose which you are going to update and which you will skip.

If you aren't likely to be interested in the technical details of each release and want a stable environment, stick with 12.04 LTS until next April when 14.04 LTS is out and that will be supported for five years too.

Otherwise if you want to try out all the new stuff as it is developed, update for every release and install 13.10 the latest development release.


Most desktop programs today use the Shared MIME-info Database to determine file types.

The MIME type definition for .desktop files is in the file /usr/share/mime/application/x-desktop.xml. In Ubuntu 16.04 the relevant lines are at the end of the file:

<glob pattern="*.desktop"/>
<glob pattern="*.kdelnk"/>

So most desktop programs will recognize a .desktop file only if it has a .desktop or .kdelnk extension, and the file content actually doesn't matter for that (but of course it will not work as a starter if the content is wrong).

There may be some cases where just a [Desktop Entry] line is enough but in general it's not.

It doesn't matter how you create a .desktop file. You can just use a normal text editor if you want.


Screen flickers / goes black for 1-2 seconds when redrawing on 16.04 - single monitor, R9 380

I am in the lucky situation to answer my own question:

Though the symptoms described in the question posted by Zacharee1 are different, I tried installing both Oibaf's drivers (did not change anything - still showed "radeon" after reboot, and still had the same issues) and amdgpu_pro (would not render anything but the desktop background - I had to uninstall it using a text shell).

What solved the problem for me in the end was updating the kernel:

mkdir tmp && cd tmp
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.6-yakkety/linux-image-4.6.0-040600-generic_4.6.0-040600.201606100558_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.6-yakkety/linux-headers-4.6.0-040600-generic_4.6.0-040600.201606100558_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.6-yakkety/linux-headers-4.6.0-040600_4.6.0-040600.201606100558_all.deb
sudo dpkg -i *.deb

And rebooted (using advanced options and picking the 4.6 kernel since my default grub entry was not updated). No more issues. I installed and ran glmark2 and scored 11872 points, with 890 FPS in the slowest test (and a few above 15k FPS), so I guess that means my graphics drivers are working. They still show up as radeon btw.

I did see Chrome having weird rendering issues though, we I could fix by disabling hardware acceleration for it in the settings. I will monitor if any other programs have such issues, and report here if I find a better solution for Chrome.


Why is Samba Access from Windows So Slow?

Try configuring your server without setting SO_RCVBUF and SO_SNDBUF. Ie:

socket options = TCP_NODELAY

and nothing else. Or comment out socket options entirely and use Samba's default.

I had a similar problem with Ubuntu 12.04 and a Mac client on gigabit ethernet. Reading a file was getting about 100kbytes/second, or 300 times too slow. In Ubuntu 11.10 I was setting both buffers to 8192 as you tried. But when I upgraded to 12.04 I found I had to remove that setting to get performance back to where it should be (about 30mbytes/second, the disk speed).

Another solution I've seen suggested is to set max protocol = NT1. I tried that first and it didn't help me.


The problem is not related to the kernel image version.
Looks like you have enabled zstd compression on the rootfs recently.
All new files will be compressed using this algorithm, but old ones remain unchanged.
Grub currently doesn't support zstd as btrfs compression algorithm.
Workaround:

# recompress existing images with zlib format
btrfs filesystem defrag -rc /boot

# disable compression for newly created files
chattr -Rc /boot

You can find more information by following the link below
https://forum.manjaro.org/t/bug-grub-cant-boot-zstd-compressed-filesystem/52577


How to sync iPhone 4S/iPod (iOS6.1.3) on 13.04

As of writing there is no available way to sync music on iOS versions > 4. This is by far my number one pet peeve of Ubuntu.

  Over at the libimobiledevice.org website, it states

Latest Release: 1.0.7 Development/Unstable Release: 1.1.5

Tested with iPod Touch 1G/2G/3G/4G, iPhone 1G/2G/3G/3GS/4/4S/5, iPad 1/2/3rd Gen and Apple TV running up to firmware 6.1.3 on Linux,

  Mac OS X and Windows.

You need to scroll all the way down to the very bottom of that page, because what that says is misleading. At the bottom of that page you will read this:

  Music/Video Synchronization   DBVersion <= 4  4.3.5   Rhythmbox, gtkpod
  and Amarok sync with latest libgpod >= 0.7.90. The iPhone 4/4S, iPod
  Touch 4, iPad 1/2/3rd Gen and Apple TV do NOT work. Any device with
  DBVersion > 4 does NOT work. To check your DBVersion run "ideviceinfo
  -q com.apple.mobile.iTunes -k DBVersion". WIP.

Roughly translated: syncing music will not work on iOS versions > 4.

Also, if you try to sync on an unsupported version of the iOS you can potentially corrupt the music library db and your device will require a full restore or reset.

Also see what is the current state of apple device (iPhone, iPod, etc.) support?


Bash sed to read auth into debconf-set-selections for Vagrant VM

I found the solution to my problem. I'll post it here so anyone who has the same problem won't get stuck.

mypass=$(sed '2q;d' .auth)
debconf-set-selections <<< "mysql-server mysql-server/root_password password "$mypass
debconf-set-selections <<< "mysql-server mysql-server/root_password_again password "$mypass

I didn't pass the type to be expected which was password. That is why the script was complaining about the password.

I've also seen a similar answer here


Screenshot of active window doesn't work

Try this. Change the delay from 0 sec to 4 or 5 seconds and then try.

Hope you got the reason why it was not working.


Movemail report error "cannot open: Invalid reply from the remote host"

Please try without the port number at the end of the url like this:
movemail -v imap://abst.proc.do@imap.qq.com nivfguessmecii ~/RMAIL

It worked for me.
You might then want to check with --debug-level='mailbox.prot'


Ubuntu 14.10 dual monitors not working (display port & VGA)

It could have something to do with your drivers.
Open the dash and search for Proprietary Driver and see if you have to update your drivers for the Intel Graphics card


In KDE the cursor is always huge after rotating screens even when settings is not resolution dependent

I was on Kubuntu 16.04 and I just updated to 18.04 and that seemed to fix the issue.


Adding Play Framework directory to my system path on Ubuntu 12.04 LTS

Please place those lines -

  export PATH=$PATH:/to/path/play

, in .bashrc file in your user directory and restart the system OR just execute the following command:

  source ~/.bashrc


Multiply all columns of a csv table with a constant extracted from another table

You could do something like this
while read -r sampleID read_count; do
  # skip header line
  [ "$sampleID" = "SampleID" ] && continue

  awk -v read_count="${read_count}" 'FNR>1 {$2 *= read_count} 1' "${sampleID}.genefamilies.csv"

done < read_count.csv

Obviously this is very basic - you may wish to add some error handling for files not found, values non-numeric etc.


Finding hard drives on fresh Ubuntu 18.04 install

External USB drives are automatically mounted in /media. In order to mount internal drives automatically, you need to follow the instructions at https://www.cyberciti.biz/faq/debian-ubuntu-linux-auto-mounting-windows-ntfs-file-system/

Hope this helps,
Larry


Yes lens available in 14.04.

You can install it by :

sudo apt-get install unity-lens-applications


Unable to install latest LTS / GRUB2 install issue

I tried a few more things

Used Gparted to delete all partitions with 16.04.4 LTS
Read that this issue could be resolved if I booted from CD, so burned a DVD and tried to install. As per USB all well except the same boot error messages.
Repeated #1 above and then tried using USB boot and selected the option to update 12.04 to 16.04.4 - still got the boot error except this time system completely broke and I was unable to login.
Final attempt was to go for the complete disk erase prior to install - this worked cleanly - so just need to perform a restore of information created using Aptik before I started to perform updates.

So it took a while but I think issues are now all resolved.


Keyboard shortcuts for each input language

Go to System Settings      -  Keyboard - Shortcuts. Click on "Add" button.

(See here for how to create a custom shortcut: http://web.archive.org/web/20150705203244/http://bigknol.com/create-custom-keyboard-shortcuts-in-ubuntu-for-launching-chrome-firefox/)

For the name write,for example name of the input language - "English".

For the command write

gsettings set org.gnome.desktop.input-sources current 0

Here 0 indicates the number of the input language. (0 for the first one, 1 for the second one, etc.)

Then press on create a shortcut button and press the key combination you want.

Change the number according to the order of input languages.
For example write

gsettings set org.gnome.desktop.input-sources current 1

for creating a shortcut for the second language.


How to mount a whole disk image formatted in UFS filesystem

My command trys to mount the image as read/write, however you should read this before using it: Mounting ufs partition with read/write permissions on ubuntu

First assign your image to a loop device:

$ sudo losetup -f $HOME/path/to/disk.img

You might want to use -P option as suggested in comments too.

Find in which path your image has been assigned:

$ sudo losetup -j $HOME/path/to/disk.img
/dev/loop0: [xxxx]: (/home/path/to/disk.img)

So it's on loop0.

Check and see if ufs module is loaded:

$ lsmod | grep ufs

If it's not, load it using:

$ sudo modprobe ufs

Then mount your partitions like:

$ sudo mount -t ufs /dev/loop0p1 /mnt

You might need to mount it with -o ufstype=ufs2:

$ sudo mount -t ufs -o ufstype=ufs2 /dev/loop0p1 /mnt

The device is:

/dev/loop0

And partitions are:

/dev/loop0p1
/dev/loop0p2
...


Experiencing delays on Ubuntu startup on an irregular/random basis

You are having an intermittent issue with your CD/DVD drive:

[    4.657430] ata5: COMRESET failed (errno=-32)
[    4.657491] ata5: reset failed (errno=-32), retrying in 8 secs
[   12.429716] ata5: limiting SATA link speed to 1.5 Gbps
[   14.645801] ata5: COMRESET failed (errno=-32)
[   14.645864] ata5: reset failed (errno=-32), retrying in 8 secs
[   22.750123] ata5: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[   22.752136] ata5.00: ATAPI: MATSHITADVD-RAM UJ8A7AS, 1.00, max UDMA/100

It could be that the drive does not power up quickly enough (if it only happens on power up, but not on reboot).
It could be that your cable connecting the DVD drive is a bit iffy.
It might be helped with a BIOS update ... or changing a BIOS setting (boot order, power, etc.)
I recommend googling with:   ata comreset failed (errno=-32)


Can I install multiple copies of a Snap package?

It is possible to do parallel installs from version 2.36 of snapd (snap --version), which includes the version on Ubuntu 18.10.

# Enable parallel instances
sudo snap set system experimental.parallel-instances=true

# First instance - normal install (not required)
sudo snap install myapp

# Second or more instances
sudo snap install myapp myapp_two
sudo snap install myapp myapp_three

Not that the instance name must match <snap-name>_<instance-key> - it can't have an arbitrary name.

Documentation: https://forum.snapcraft.io/t/parallel-installs/7679


Boot Windows from USB on an Ubuntu laptop

after you press the power button , you hold the "esc" key down.
than it will show you options either to start from the usb stick or the hard disk , you choose to start on the usb stick and it will run perfectly.
there is no problem with the version of Rufus you just create the boot stick  with the default settings and it will be fine.


How To Use Key Authentication With More Than One User

Have a look at your current users by typing cat /etc/passwd. The parameters on each line are separated by a colon : the second-to-last parameter is the users home dir. The last parameter is the users shell (or it might be something like nologin or false if the user has been configured to disallow a login).

You can add users via the useradd and usermod to modify users. Take a look at the man pages for those commands.

Sometimes when an installer is run it may add a user but that user is not intended to be used to login (say for for security reasons) so you may need to modify the home dir or shell or just add other different users for allowing remote login. It depends what you want to do or what users or access you want to give.

What you are trying to do should work so maybe something wrong with the keys file or something wrong with file ownership permissions.

Check that the SINGLE line from your source machine id_rsa.pub is on the target machine ~/.ssh/authorized_keys file. Double check that if you cut/pasted this line it hasn't pasted as multiple lines. It is a single line.

Check that the target user (your Minecraft or Terraria users) has access to the .ssh dir and the authorized_keys file.

If that does not work, have you confirmed you can remote login to those users without authorized_keys? e.g. by giving a password?


For one reason or another I could not get the terminal to allow me to enter a password and make the mount stick.

I solved this by storing my key on the target server.

ssh-keygen
ssh-copy-id user@server.com