Unable to login after upgrading to 14.10

With same issues, I could simply use Alt + CTRL + F1 (terminal mode, use your ID and password to login) after reaching log in option, and get myself to install Cinnamon desktop (somehow Ubuntu Unity won't install and same with gnome 3 and flashback) using commands

sudo apt-add-repository ppa:gwendal-lebihan-dev/cinnamon-nightly
sudo apt-get update
sudo apt-get install cinnamon

Switch back to GUI mode using ALT + CTRL + F7 and use normal log in method.

do-release-upgrade

gave the following result

Checking for a new Ubuntu release
No new release found


apt-get does not have this functionality, as it really does not (and IMHO should not) care about this. It will use your default gateway, you can change this in a few ways, one is the route command:

sudo route add default gw [gateway IP] dev [device name]


I get the Scale option to downscale the printed output

...and also "Shrink to printable area"

PS: This is on Mate 18.04, by the way.


If it works in Gnome as it does in Xubuntu, you need to have the Greybird theme for the bar to show.

sudo apt-get install dconf-tools

Then press ALT+F2 and run: dconf-editor, navigate to org > gnome > desktop > wm > preferences and change the "theme" value from "Adwaita" to "Greybird"


ssh: connect to host 192.168.57.1 port 22: Connection refused lost connection

Typically, when this error happens, it means that the SSH client can not establish a successful connection to the SSH server because something refused the connection's ability to exist.

Be sure any firewalls on your computers allow communication both in and out on port 22. If you're using ufw, this command is simply ufw allow 22.

Furthermore, it may be possible that your SSH server is not running. Try to run this command on the server:

sudo service ssh restart

Be sure to pay attention to any errors or the like that are returned (if any).

Also, check your SSH config at /etc/ssh/sshd_config to make sure that the server is actually listening on port 22 and is bound to allow connections. If these are not the case, change the settings appropriately and save the edited file. Restart the SSH server with the command given above.


postfix is what I'd use and it can accomplish what you're after but I'm not sure it checks all your criteria.

As far as simple goes, I'm not sure there's on MTA that's even slightly simple. Postfix isn't insanely hard to understand and you will get a nice installer to create the default configuration (that you can call again after installation from sudo dpkg-reconfigure postfix), but it's not something "just anybody" should be setting up.

Relaying email isn't hard but you can run into problems with some SASL issues if you don't install the right packages (libsasl2-2 libsasl2-modules ca-certificates).

Security is mainly a case of firewalling things so external people can't connect. Again, not hard. Either do it with your router or ufw on the server (sudo ufw deny smtp).

Basically, you all you need is Google on your side.


Network icon suddenly disappeared from the notification area on Ubuntu 13.04

Try this;

search for Startup Applications from the dash menu and do below on the dialog box which is appearing.

Simply add below details, then restart back to see whether its appearing.


The slide show is not working in LibreOffice

Actually problem was a bit complex. I had installed certain packages using freshubuntu (something similar)repository. Later on i purged that repository. Because of this my certain packages got somewhat locked, i.e. couldn't update which created such issues.
Solution:
open synaptic
look for obsolete packages.
find the packages for those packages from launchpad
replace them.


External monitor Ubuntu 11.04 64 bit not working

Do you have a Nvidia graphic-card? There is a special tool for Nvidia called disper. It should work with other cards too.

You can install disper from ppa:disper-dev/ppa

Then type

disper -c

This should clone the desktops on internal an external monitor. See here on launchpad.


AVI playback terrible - Ubuntu 11.10 on a old Thinkpad T42

This could be to do with the X.org server working in EXA mode, as opposed to the older XAA mode, and compositing being enabled (by metacity probably). On my laptop, EXA mode (which is intended to make compositing better), causes video performance to suffer if compositing is on and videos to tear whether it is on or off. Under XAA, my videos playback smoothly without tearing and I don't have performance issues under compositing.

    XAA is  the  traditional  architecture  and support for it is very stable.  EXA is a newer acceleration architecture with better performance for the Render and Composite extensions.  The default is EXA.

To test:

1) you can change the mode back to XAA (temporarily) by disabling Kernel Mode Setting (KMS) for the radeon module. Reboot, and press 'e' at the OS list in Grub. At the end of the 'LINUX=...' line add the string radeon.modeset=0 and press F10

2) you can also check metacity compositing is disabled (though if the above works, you don't need to). run gconf-editor /apps/metacity/general and uncheck the setting compositing_manager

If none of the above works, it may be a problem with video acceleration under 11.10. Try disabling video acceration (overlay) in the VLC video preferences. Or do what I did and switch to Xubuntu.


You'll have to actually check for the packages first.

sudo apt-cache search php7.0- |more

mhash

apt-cache search php7.0 | more
libapache2-mod-php7.0 - server-side, HTML-embedded scripting language (Apache 2 module)
php-all-dev - package depending on all supported PHP development packages
php7.0 - server-side, HTML-embedded scripting language (metapackage)
php7.0-cgi - server-side, HTML-embedded scripting language (CGI binary)
php7.0-cli - command-line interpreter for the PHP scripting language
php7.0-common - documentation, examples and common module for PHP
php7.0-curl - CURL module for PHP
php7.0-dev - Files for PHP7.0 module development
php7.0-gd - GD module for PHP
php7.0-gmp - GMP module for PHP
php7.0-json - JSON module for PHP
php7.0-ldap - LDAP module for PHP
php7.0-mysql - MySQL module for PHP
php7.0-odbc - ODBC module for PHP
php7.0-opcache - Zend OpCache module for PHP
php7.0-pgsql - PostgreSQL module for PHP
php7.0-pspell - pspell module for PHP
php7.0-readline - readline module for PHP
php7.0-recode - recode module for PHP
php7.0-snmp - SNMP module for PHP
php7.0-sqlite3 - SQLite3 module for PHP
php7.0-tidy - tidy module for PHP
php7.0-xml - DOM, SimpleXML, WDDX, XML, and XSL module for PHP
php7.0-xmlrpc - XMLRPC-EPI module for PHP
libphp7.0-embed - HTML-embedded scripting language (Embedded SAPI library)
php7.0-bcmath - Bcmath module for PHP
php7.0-bz2 - bzip2 module for PHP
php7.0-enchant - Enchant module for PHP
php7.0-fpm - server-side, HTML-embedded scripting language (FPM-CGI binary)
php7.0-imap - IMAP module for PHP
php7.0-interbase - Interbase module for PHP
php7.0-intl - Internationalisation module for PHP
php7.0-mbstring - MBSTRING module for PHP
php7.0-mcrypt - libmcrypt module for PHP
php7.0-phpdbg - server-side, HTML-embedded scripting language (PHPDBG binary)
php7.0-soap - SOAP module for PHP
php7.0-sybase - Sybase module for PHP
php7.0-xsl - XSL module for PHP (dummy)
php7.0-zip - Zip module for PHP
php7.0-dba - DBA module for PHP

As you can probably see in the list there is no openssl or mhash. Thus you can safely assume they are installed by default or does not exist for that version of php.

And according to this https://github.com/roots/trellis/issues/501 Php7.0 doesn't come with mhash but you might use it following php guidelines : http://php.net/manual/en/mhash.requirements.php

OPENSSL

Comes installed under libapache2-mod-php7.0

  sudo apt-get install libapache2-mod-php7.0

To check it out you'll have to build a phpinfo() and search for openssl.


Rebooting the router and wifi, then rebooting the machine seems to have cleared it up.


How do I make the calendar stay open after it loses focus?

I don't believe that it worked that way in 11.04, and if it did, that was a bug.  The menu itself is designed so that when you click outside of it it disappears like a normal menu.  It is not a window, but a menu.

I think there is a good use case for a small and light calendar that can be used like you suggest, and I believe that there are some people in the GNOME project working on such a thing.  Unfortunately, I don't know of one in Ubuntu today.


How to install proprietary Nvidia driver in 12.04?

Your question does not have nearly enough details for anyone to give a meaningful answer. First of all, your headline indicates that the installation program crashes. Where does it crash? What happens? You can install the proprietary driver very easily when Ubuntu is installed, a popup will appear saying that "proprietary drivers are available", but let's ignore that for a second.

If you are having issues with installing Ubuntu graphically I can recommend trying the minimal Ubuntu install ISO instead. Put that iso on a USB stick and boot from it, make sure your computer is connected to the Internet (via ethernet cable if possible) and choose what packets to install. Most likely "Ubuntu Desktop" will do fine. This installer is graphically very simple so you should get no driver problems during installation.

There might be a way to run a "text installer" with the normal installation media, but I'd recommend trying the minimal ISO first.

If you encounter any problems, update your question and comment here and I'll update my answer :)


Find and delete a line that starts with a certain string in a file

You can use the command sed with syntax like as:

sed "/^\t$name/d" in-file

Where:

we must use double quotes when inside the regular expression need to pass a shell variable - $name in this case.
^ will match to the beginning of the line.
\t will match to a single tab.
the command d at the end will delete each line that match to our regexp /^\t$name/.

You can add -i (or -i.bak) to create the changes in place of the file (or and create a backup copy). Or you can Blueirect the output of the command to anotger file, etc.:

sed "/^\t$name/d" in-file -i.bak

sed "/^\t$name/d" in-file > out-file

More examples:

$ name='Blue'                       # assign a value to the shell variable $name

$ cat in-file                       # output the content of the input file
first line
second line
    Blue
    fourth line
Blue

$ sed "/^\t*$name/d" in-file        # remove the lines that begin ^ with 0 or more tabs followed by the value of $name
first line
second line
    fourth line

$ sed -r "/^\t+$name/d" in-file     # remove the lines that begin ^ with 1 or more tabs followed by the value of $name; enable extended regexp -r
first line
second line
    fourth line
Blue

$ sed -r "/^\t{0,1}$name/d" in-file # remove the lines that begin ^ with 0 or 1 tabs followed by the value of $name; enable extended regexp -r
first line
second line
    fourth line

$ sed -r "/^\t?$name/d" in-file     # remove the lines that begin ^ with 0 or 1 tabs followed by the value of $name; enable extended regexp -r
first line
second line
    fourth line

$ sed -r -e "/^(\t|\s|\s\t|\t\s)?$name/d" -e 's/^\t//' in-file # remove the lines that begin ^ with 0 or 1 tabs, or spaces, or spaces and tabs, or tabs and spaces`; remove the tabs in the beginning of the rest lines
first line
second line
fourth line

Edit: Here is how to substitute a whole line from the example provided in the updated question. Here is used the sed's substitution command s/regexp/replacement/.

First let's assume we have defined the following sets variables:

old_name='Jack.' old_address='L.A.' old_phone='1435672'
new_name='Tom.' new_address='F.l.' new_phone='875632'

If we need exact match of the line and want to keep the exact format, we can use the following command, that uses capture groups option: (...) -> \1, etc.; additionally the option -r (use extended regular expressions) is applied to simply the syntax (check this question as reference):

sed -r "s/^(\t*|\s*)$old_name(\t*|\s*)$old_address(\t*|\s*)$old_phone(\t*|\s*)$/\1$new_name\2$new_address\3$new_phone\4/" in-file

In this way we capturing the field separators (that in this case cold tabs and/or spaces) and output them in their place within the replacement string.

If we do not need to be so accurate we can use something more simple as the follow (where in the place of the capture groups our regex will expect 0 or more * characters of any type .):

sed -r "s/^.*$old_name.*$old_address.*$old_phone.*$/$new_name\t$new_address\t$new_phone/" in-file

Or even more simple:

sed -r "s/^.*$old_name.*$/$new_name\t$new_address\t$new_phone/" in-file

Example:

$ cat in-file
Name.   Address.  Phone number
Jack.   L.A.      1435672
John.   L.A.      1465432
Nick.   F.l.      1489756

$ old_name='Jack.' old_address='L.A.' old_phone='1435672' new_name='Tom.' new_address='F.l.' new_phone='875632'

$ sed -r "s/^(\t*|\s*)$old_name(\t*|\s*)$old_address(\t*|\s*)$old_phone(\t*|\s*)$/\1$new_name\2$new_address\3$new_phone\4/" in-file
Name.   Address.  Phone number
Tom.    F.l.      875632
John.   L.A.      1465432
Nick.   F.l.      1489756


No Operating System Found after install of 16.04.1 LTS from live USB

When Windows is installed in legacy-mode (BIOS-MBR)and you install Linux afterwards, you should install Linux in legacy-mode as well even if you install the Linux-distribution on a separate drive, it just keep things simple.

It is not that Xubuntu wants to install in UEFI-mode, it is the way you boot the installer. if you boot the installer in UEFI-mode it will install in UEFI-mode, if you boot the installer in legacy-mode it will install in legacy-mode.

Installing in legacy-mode you don't even need to overwrite the Windows-boot-loader with Grub when you install Xubuntu on it's own drive, you can install Grub to the MBR of the Xubuntu-drive.

Changing boot-order in UEFI-BIOS to Xubuntu-drive would boot to Grub where you can choose to boot Xubuntu or Windows. If you set boot-order to Windows-drive it would boot directly to Windows.

I have a very similar system, Windows and Ubuntu installed on separate drives,
both operating-systems installed in legacy-mode. Windows-drive is untouched by Ubuntu-installation, so if one of the drives fails I will be able to boot to the other drive...

But it seems you have a working solution already, if everything works fine, keep it as it is...


What you are trying to do does not work from within a running system ... so follow these steps :

Boot from a GParted Live media, either GParted Live or Ubuntu Live media.
Right click the swap partition and select swap off in case it is mounted.
As there is no data on sda2 and sda5, first delete sda5 and then sda2.
Resize sda1, right click the partition and select Resize/Move to increase it.
Now create a new linux-swap partition from the unallocated free space.

You have to update the UUIDs of the partitions in the /etc/fstab file afterwards.

Open a terminal and execute : sudo mount /dev/sda1 /mnt

To correct the UUID entries in the fstab file execute : sudo blkid

Open another terminal and execute : sudo gedit /mnt/etc/fstab

Replace the UUID entries of sda1 (in case it is different) and sda2

(with those entries of the output given from the blkid command).

Shutdown, remove the Live media and boot the operating system ...


How do I get to the shell on ubuntu tablet?

I got my Aquaris M10 today as well and figured our how to start the shell:

slide in the Launcher bar by swipe in from the left and click the big
orange icon
slide in "Manage" by swipe in from the bottom
click on Apps and there you'll find the "Terminal"

To make Terminal icon sticky in Launcher bar, tap and hold Terminal icon until a sub menu opens and stickt it.

I also struggled with sshd and all solutions I found in Internet were too hacky and didn't work. But I found out, how to get sshd running:

To start sshd in Aquarius M10 enter these commands in Terminal:

sudo su
ssh-keygen -A
mkdir /var/run/sshd
/usr/sbin/sshd

Then connect from a computer in same network to your Aquarius M10 by typing:

ssh phablet@192.168.1.153

...and you should be connected. Replace the IP address above with your M10's IP address.

Edit: I figured out, that the tablet only accepts ssh connections while Terminal is the active application on tablet. But the good thing is, even when in standby, sshd works.


Problem with propietary nvidia driver and glmark2

Well, it is a known bug:
https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-319/+bug/1248642

It says a solution has been release but I still get the error. I will post again as soon as I am able to test what they propose or just my system gets fixed by an update.


How can I disable asus-nb-wmi when using battery power mode?

I have a similar asus laptop. However, on mine it's called "asus_nb_wmi".
I just use

sudo rmmod asus_nb_wmi

to disable, and then

sudo modprobe asus_nb_wmi

if i want to reenable it and be able to use function keys to control the volume level again.


Dual Boot Windows 8 and Ubuntu, partitioning small SSD and HDD

Don't do it! Leave the SSD alone and install on the HDD.  Then use bcache to use the 24GB HDD as a cache for the HDD just like Windows uses SRT!

Follow this advice: Installing Ubuntu Alongside a Pre-Installed Windows with UEFI instead.


Upgrade to Ubuntu 19.04 on HP Elitebook 840 G1 results in blinking cursor after bootloader

This is not a proper answer, but I didn't get anywhere. What I tried and failed:

reinstall GRUB
reinstall graphics card

I ended up switching back to Ubuntu 18.04 (reinstalled 18.04 from stick onto the partition of the "broken" 19.04). Now I have a GUI. Will wait for 20.04.


How do I create Unicode databases in PostgreSQL 8.4?

The template it is referring to is template1, which is implicitly used if you don't specify another template.

The quickest workaround is that you create your database from template0 instead, using the createdb --template=template0.

You may wish to drop and reinitialize your entire cluster with a more sensible locale.  You have probably had your operating system set to use the C locale by default.  You can reinitialize the database system with these steps:

sudo pg_dropcluster --stop 8.4 main
sudo pg_createcluster --locale=en_US.utf8 --start 8.4 main

Use whatever locale you like, of course.


Is it safe to download most desktop environments?

There is nothing really stopping you installing multiple desktop environments.  It is safe to do so.

However - the key issue is that every environment comes with its own set of default applications.  This can leave your menu very cluttered with applications from each environment where the application hasn't been specifically limited to one particular desktop.

I personally have multiple virtual guests, each with a single desktop distro and all linked with common folder to enable sharing of files.  I can then hop between distro's very quickly all from one desktop without logging out and in.


Unable to open Adobe Reader I installed through Wine

Do not use adobe reader. It uses a lot of system resources. There are plenty of alternatives in Ubuntu. Foxit reader, PDFTK.


I can't run application/x-executable files in Ubuntu 14.04

I had an equivalent issue with an executable file called myExecutable. To work, you need the both following conditions :

The file permission / right must be set as executable :

One way is to run the command : chmod +x myExecutable
Another way is to do it graphicaly with right clic on the file, property, permission
You can check it by looking at x with : ls -l

The mounted file system / partition must allow to run an executable.

Eg. the file system must be mounted with exec parameter instead of noexec. Look at the file /etc/fstab or check the mounted partition with mount command

Then, you will be able to run the file :

With double clic on it
Or in running in a console : ./myExecutable


Error authenticating some Adobe packages, how to proceed?

I had the same error, and had to manually remove these packages

sudo apt-get remove adobe-flash-properties-gtk adobe-flashplugin

After this, I was able to complete the upgrade:

sudo do-release-upgrade

Once your system is upgraded, you can worry about getting flash working again, which shouldn't be too hard.


Lexmark Printer stop working after Upgrade to Ubuntu 14.04

I got my Pinnacle Pro working with the following page:

http://daywalker313.blogspot.com.es/2012/07/lexmark-pinnacle-pro901-linux-driver.html

You need to save the ppd file mentioned there:

https://docs.google.com/open?id=0B1TfEz4GUYOmQXF2Q2pudUdJZ1U

Somewhere on your compulter, This file has the settings for the printer.

First of all make sure Cups (Common Unix Printing Service) is working, you can check this by opening following page in your browser:

http://localhost:631

If it displays a page with the title "CUPS" and some blurb:
"CUPS is the standards-based, open source printing system developed by Apple Inc. for OS® X and other UNIX®-like operating systems."

Then CUPS is properly installed.

Then:

Plug in your printer
Turn on wifi or networking on your computer
System Settings > Select Printers > Add
Select Network Printer
Then select "Find Network Printer" wait a while it should come up
with some options and then eventually an option "Lexmark
Pro800-Pro900 (ip address)" Select that Lexmark printer, then on the right
hand side select the option: "AppSocket/JetDirect network printer via
DNS-SD"
Click "Forward"
A Box comes up saying "Searching for Drivers"
If you are then prompted give them the location for the ppd file you
saved previously on your computer
Then it may come up with "Installable Options" "Tray 2", I didn't check this box
"Describe Printer" Put in a Name, Description and Location for your printer
Print Test Page

And then hopefully happy printing, I tried many different ways the stuff on the Lexmark site gave me bad quality package errors.  Eventually I found the page mentioned, many thanks to Daywalker's Blog!

Good luck


Sir try following this link. Your Wifi has probably been blacklisted by Ubuntu. I am not sure why they allow this, but they have given us the solution. See here for more details.

my track in the woods as follows....

james@james-HP-Pavilion-g7-Notebook-PC:~$  sudo lspci -nn
[sudo] password for james:
00:00.0 Host bridge [0600]: Intel Corporation 2nd Generation Core Processor Family DRAM Controller [8086:0104] (rev 09)
00:02.0 VGA compatible controller [0300]: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller [8086:0116] (rev 09)
00:16.0 Communication controller [0780]: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 [8086:1c3a] (rev 04)
00:1a.0 USB controller [0c03]: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 [8086:1c2d] (rev 05)
00:1b.0 Audio device [0403]: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller [8086:1c20] (rev 05)
00:1c.0 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 [8086:1c10] (rev b5)
00:1c.1 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 2 [8086:1c12] (rev b5)
00:1c.2 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 3 [8086:1c14] (rev b5)
00:1d.0 USB controller [0c03]: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 [8086:1c26] (rev 05)
00:1f.0 ISA bridge [0601]: Intel Corporation HM65 Express Chipset Family LPC Controller [8086:1c49] (rev 05)
00:1f.2 SATA controller [0106]: Intel Corporation 6 Series/C200 Series Chipset Family 6 port SATA AHCI Controller [8086:1c03] (rev 05)
00:1f.3 SMBus [0c05]: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller [8086:1c22] (rev 05)
01:00.0 Network controller [0280]: Broadcom Corporation BCM4313 802.11b/g/n Wireless LAN Controller [14e4:4727] (rev 01)
02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller [10ec:8136] (rev 05)
03:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5209 PCI Express Card Reader [10ec:5209] (rev 01)

james@james-HP-Pavilion-g7-Notebook-PC:~$ sudo apt-get install linux-headers-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  linux-headers-3.5.0-23 linux-headers-3.5.0-23-generic
The following NEW packages will be installed:
  linux-headers-3.5.0-23 linux-headers-3.5.0-23-generic linux-headers-generic
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 13.1 MB of archives.
After this operation, 70.0 MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Abort.
james@james-HP-Pavilion-g7-Notebook-PC:~$

Installing Broadcom Wireless Drivers
How to Install Broadcom / STA Wireless card (BCM43XX)

up vote 7 down vote favorite
21
I'm having serious problems installing the Broadcom drivers for Ubuntu. It worked perfectly on my previous version, but now, it is impossible. I'm a user with no advance knowledge in Linux, so I would need clear explanations on make, compile, etc. I was following the instructions on the following blog, with no luck.
How can I get Broadcom BCM4311 Wireless working?
Can someone help me?
Edit: For the command: lspci | grep Network, I get the following message:

06:00.0 Network controller: Broadcom Corporation BCM4311 802.11b/g WLAN (rev 01)
For the command: iwconfig, i get the following:
lo no wireless extensions. eth0 no wireless extensions.

When i follow the following steps (from the above link), there are a NO error message at all:
 1. Open the 'Ubuntu Software Centre' and search for bcm
 2. Uninstall the bcm-kernel-source package
 3. Make sure that the firmware-b43-installer and the b43-fwcutter packages are installed

Then, type into terminal:

cat /etc/modprobe.d/* | egrep '8180|acx|at76|ath|b43|bcm|CX|eth|ipw|irmware|isl|lbtf|orinoco|ndiswrapper|NPE|p54|prism|rtl|rt2|rt3|rt6|rt7|witch|wl'

(you may want to copy this) and see if the term blacklist bcm43xx is there
if it is, type

cd /etc/modprobe.d/ and then sudo gedit blacklist.conf

put a # in front of the line: blacklist bcm43xx
then save the file (I was getting error messages in the terminal about not being able to save, but it actually did save properly).
reboot 'End of procedure'
Before (not Ubuntu 11.04), if I wanted to connect wireless, I just went to the icon at the upper side of the screen, click, showed ALL the wireless network available, and done.

james@james-HP-Pavilion-g7-Notebook-PC:~$ cat /etc/modprobe.d/* | egrep '8180|acx|at76|ath|b43|bcm|CX|eth|ipw|irmware|isl|lbtf|orinoco|ndiswrapper|NPE|p54|prism|rtl|rt2|rt3|rt6|rt7|witch|wl'
# which ath5k cannot recover. To prevent this condition, stop
blacklist ath_pci
blacklist eth1394
# replaced by p54pci
blacklist prism54
# replaced by b43 and ssb.
blacklist bcm43xx
blacklist uart6850
blacklist twl4030_wdt
# /etc/modprobe.d/iwlwifi.conf
# iwlwifi will dyamically load either iwldvm or iwlmvm depending on the
# microcode file installed on the system.  When removing iwlwifi, first
# remove the iwl?vm module and then iwlwifi.
remove iwlwifi \
(/sbin/lsmod | grep -o -e ^iwlmvm -e ^iwldvm -e ^iwlwifi | xargs /sbin/rmmod) \
james@james-HP-Pavilion-g7-Notebook-PC:~$

gedit

# This file lists those modules which we don't want to be loaded by
# alias expansion, usually so some other driver will be loaded for the
# device instead.

# evbug is a debug tool that should be loaded explicitly
blacklist evbug

# these drivers are very simple, the HID drivers are usually preferred
blacklist usbmouse
blacklist usbkbd

# replaced by e100
blacklist eepro100

# replaced by tulip
blacklist de4x5

# causes no end of confusion by creating unexpected network interfaces
blacklist eth1394

# snd_intel8x0m can interfere with snd_intel8x0, doesn't seem to support much
# hardware on its own (Ubuntu bug #2011, #6810)
blacklist snd_intel8x0m

# Conflicts with dvb driver (which is better for handling this device)
blacklist snd_aw2

# causes failure to suspend on HP compaq nc6000 (Ubuntu: #10306)
blacklist i2c_i801

# replaced by p54pci
blacklist prism54

# replaced by b43 and ssb.
#blacklist bcm43xx

# most apps now use garmin usb driver directly (Ubuntu: #114565)
blacklist garmin_gps

# replaced by asus-laptop (Ubuntu: #184721)
blacklist asus_acpi

# low-quality, just noise when being used for sound playback, causes
# hangs at desktop session start (Ubuntu: #246969)
blacklist snd_pcsp

# ugly and loud noise, getting on everyone's nerves; this should be done by a
# nice pulseaudio bing (Ubuntu: #77010)
blacklist pcspkr

# EDAC driver for amd76x clashes with the agp driver preventing the aperture
# from being initialised (Ubuntu: #297750). Blacklist so that the driver
# continues to build and is installable for the few cases where its
# really needed.
blacklist amd76x_edac


How can I plot string as x axis insted of numbers in gnuplot?

You can use xtic or xticlabels ex. given file.dat

foo 1.23
bar 4.56
baz 7.89

then

gnuplot -p -e 'plot "file.dat" using 2:xtic(1) title "foobar"'

gives


installing graphics drivers nVidia 310M on Lenovo V460

According to videocardbenchmark.net your nVidia 310M is just not up to par for modern OSes/applications any more.

Depending on the rest of your hardware, you should start looking to downgrade to Xubuntu/Lubuntu or upgrade your hardware...

Sorry to be the harbinger of bad news...


do-release-upgrade complains that system out of date

I've posted before about some problems caused by thrice-accursed Libreoffice 5.3 build. Well, it's been years, but the darned thing came back to bite! I'm certain the repositories for it are long dead and of course nothing can be updated, especially considering that I don't even have that version installed anymore. But of course my monster of a computer is still very much alive and very well. Successfully upgraded to 18.04LTS today.
So, to be able to do the upgrade, turns out had to clean up the repository list. Start software-properties-gtk and uncheck all the repositories except the main Ubuntu ones. The Libreoffice 5.3 specifically was still there and still selected. Maybe because I naively installed it with Ubuntu Software forever ago.
Anyways, after that list got cleaned up do-release-upgrade ran without any issues. But talk about a pest of a package!
So if somebody else's upgrade gets stuck like that claiming stuff is out of date, clean up the repository list and everything should go off without a hitch.


Any alternative of 'Camtasia Studio (Screen recording & video editing)' for Ubuntu?

I think you can use Kazam Screencaster for recording purpose and for editing those videos you can use Openshot video editor.

The combination of both will you provide functionality of Camtasia Studio.

Camtsio Studio = Kazam Screenscaster + Openshot Video Editor


I don't understand why this is happening?

I think the problem is with the Linux kernel, looks like it was not successfully installed, because of problems in the downloaded ISO. So I'd recommend you to download the Ubuntu ISO again and try to reinstall it.

As @user123492 mentioned, you should check the ISO integrity, this question will help you do that, click the first answer (the one marked as correct).


Where is the gnome option to display icons in menus?

The gconf key is /desktop/gnome/interface/menus_have_icons.

Note: I don't particularly endorse setting it to "True" in the long run. See Andreas Nilsson's post and the discussion in the related bug for the rationale behind setting it to "False" by default.


file manager permission based on users on Ajenti


Proprietary Drivers Required for my Lenovo Edge 320

Your laptop needs proprietary drivers for wireless to function (in contrast to open-source).
People have encountered problems with the drivers, though it has lessened with the newer versions of Ubuntu.
There is nothing to do;Ubuntu comes prepackaged with the proprietary drivers (at least for my model).


Ubuntu randomly, suddenly logs out my user session back to login

Umm... you may not believe this, but try changing your mouse size. I had the same problem, and I made my mouse pointer small, and that fixed it! (I think a big mouse pointer was too much pressure)
Hope this helps!


How to quickly minimize all windows for a single application?

This is not a keyboard shortcut, but another way to minimise all windows of an application. You can enable 'minimise on click' in Ubuntu dock. Then once you click an application icon in the dock, it would minimise all windows (or raise, if they're already minimised) of that application.

To enable this option, run the following command in Terminal:

gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'minimize'

(Reference: How do I enable 'minimize on click' on Ubuntu dock in Ubuntu 17.10 and later?)


Copy Active Partition To Use With VMWare

1. If you have Windows installed:

You can try VMware vCenter Converter Standalone, as suggested here: http://www.howtogeek.com/213145/how-to%C2%A0convert-a-physical-windows-or-linux-pc-to-a-virtual-machine/.

However the tool can only be used on a Windows machine, and you have to register an account on vmware in order to download it.

2. If you only have Ubuntu installed:

Install Virtualbox, either from the official repository or from Virtualbox's website. Then shut down your Ubuntu and use a live CD or live USB to perform the next step, as it's better to unmount the partition you are about to convert.

After your live system is booted, you should resize your installed Ubuntu partition if it's too big for your virtual machine, using GParted.

Open a terminal, and use this command to determine the partition of your installed Ubuntu system:

sudo blkid

Your Ubuntu partition would be in the form of /dev/sdXx (e.g. /dev/sdb1).

Then use this command in a terminal to create a raw image of sdXx:

sudo dd if=/dev/sdXx of={PATH_TO_FILE}/ubuntu.bin

{PATH_TO_FILE} should be somewhere with sufficient space to store your raw image.

Shut down live system and boot back into your installed Ubuntu system.

Open a terminal, and use this command to finally convert the ubuntu.bin file to virtual hard disk. As you need to use it with VMware, you should convert it to VMDK:

vboxmanage convertfromraw {PATH_TO_FILE}/ubuntu.bin ubuntu.vmdk --format VMDK

As a note, as far as I know, VMware cannot use .vdi file, .vdi is for Virtualbox.


GNUStep's ProjectCenter IDE not working properly on 64-bit Ubuntu 16.04 LTS

What you describe is the correct behaviour of ProjectCenter and other GNUstep apps, though that probably comes as a surprise when you're used to other environments like Unity. Many applications based on other systems will open a blank document or a wizard when you launch them, but often GNUstep applications do not. They're designed to just start, then wait for you to tell them what to do.

The thing you call a dialog with File, Project etc. is a menu, like the menu bar that goes across the top of the screen or the window in other applications. You should find that clicking on Project brings up a sub-menu, which includes "New...", and clicking on that lets you create a new project where you can write your Objective-C.

The GNUstep documentation is here, unfortunately the link to the user experience guide isn't working.


My video files keep turning into binary files in transfer to my WD external HD

If the extension has changed, then change it back to what it was originally. See if it plays then.


How to install postgresql-9.4-postgis-2.1 on Ubuntu 14.04(Trusty Tahr)?

You should install the meta-package gdal (and pretty much all other FOSS4G) from the ubuntugis-unstable PPA:

sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
sudo apt-get install postgres-9.4-postgis-2.1


I don't know why you are not able to run this operation, although there are some recommendations in order to achieve apt operations. First of all try to run it as sudo and then fix your repositories in /etc/apt/sources.list and /etc/apt/sources.list.d/yourRepos.list, it looks like you don't have access to http://deb.parrotsec.org

E: Failed to fetch http://deb.parrotsec.org/parrot/pool/main/i/icu/libicu-dev_57.1-8_i386.deb  GnuTLS recv error (-54): Error in the pull function.
E: Failed to fetch http://deb.parrotsec.org/parrot/pool/main/u/uhd/uhd-host_3.10.2.0-3_i386.deb  GnuTLS recv error (-54): Error in the pull function.
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

You should fix your repositories and/or have a internet connection, then run apt-get update and apt-get autoremove


How do I include a password with SSH command? (want to make shell script)

I'm on my phone now so I can't give you a detailed answer. The proper solution here in my opinion is to use key based authentication. Basically you use ssh-keygen (I think) to generate a public/private key pair. Since you need script access, enter a blank password when prompted. Then, follow the relevant man pages to install the public key on the server and install the private key in its proper place.

Now you should be able to log in to that server securely and without a password. Note that by securely I mean as long as your user account isn't compromised.


Try another format for /home than NTFS. It probably does not support the config files used by Linux, or messes them up or something.

Try formatting it to ext4. This is the best filesystem to run Linux off, and can probably be read from in Windows using Ext2Fsd, which supports ext2 and ext3, and might support ext4.

If you want to format it, GParted works nicely off a Live Disk - as this a /home partition, you will have to do this off a Live Disk or another machine, as you can't login with a user that needs that /home partition..

Another method would be to backup /home, and reinstall, formatting the /home partition to ext4.


so to look for linux drivers on Epson, one starts here http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX and entering L375 takes one to here http://download.ebz.epson.net/dsc/du/02/DriverDownloadInfo.do?LG2=EN&CN2=&DSCMI=71623&DSCCHK=e1fdb812f3b09b3da605fd49ef90a9e43b62db49

click the ACCEPT button and it lists the options; if you have 64bit Ubuntu you should click to download epson-inkjet-printer-escpr_1.6.20-1lsb3.2_amd64.deb

If you select OPEN when you click to download, the OPEN should mean gdebi installer installs the package for you then;

if instead you select SAVE, you need to open your Downloads folder; and double-click on this package; that should trigger an install; that should also trigger a configure in the linux printing


What causes file managers to show drives?

The name of the program causing Nautilus to show partition in the left side bar is gvfs-gdu-volume. To kill this process, run this command to see the PID of the program

sudo ps -e | grep gvfs-gdu-volume

In my system, the output is

 6642 ?        00:00:00 gvfs-gdu-volume

So, I know the PID is 6642, it may vary by time to time.

Kill that process with

sudo kill -9 PID-of-gvfs-gdu-volume.

Or as a one liner, try this

sudo kill -9 `ps -e | grep gvfs-gdu-volume | cut -f 2 -d ' '`

Open nautilus to see the magic !

This image is from thunar in Xubuntu 12.04 LTS.

Note: The solution isn't permanent. Whenever you open a file in Gedit or something like that, The drive icon all appears again. To permanently disable this, follow the below work around.

Workaround to disable this permanently.

Open a terminal and do this command:

sudo mv /usr/lib/gvfs/gvfs-gdu-volume-monitor /usr/lib/gvfs/gvfs-gdu-volume-monitor.bak

This command renamed the culprit file to show the drive icon with adding a .bak extension. That's it.

If you want to revert the change, use this command

sudo mv /usr/lib/gvfs/gvfs-gdu-volume-monitor.bak /usr/lib/gvfs/gvfs-gdu-volume-monitor

Note: This is not a decent solution, but this works perfectly, and I am happy with this.

My drive icon has gone, How can I mount them now

Don't cry. Here is your trusted friend terminal. Open a terminal and do this command to mount /dev/sda1 partition. It will do what nautilus does.

udisks --mount /dev/sda1

To find the /dev/sdaX number of desired partition, do sudo blkid on the terminal.

Update for 12.10

It seems Ubuntu 12.10 is using udisks2 program and the responsible program for showing the drive icon is also changed. It is now gvfs-udisks2-volume. You should kill this process instead of older gvfs-gdu-volume program.

2:  1: http://i.stack.imgur.com/WIjuK.png


How to remove items from Places sidebar in Nautilus 3.6?

You need to comment out entries in the following file:

~/.config/user-dirs.dirs


I can't open secured PDF in Ubuntu (open password), but can in Windows XP

Normally Ubuntu will ask for root password in order to open applications. similar to administrator password asking scenario during application run in windows 7 and I believe that it is not related to some other issue. try providing root password and check. If you are getting any issue or error message after providing correct root password then kn idly share the error to get clear picture of the issue.

If it is password protected and you forgot the password use pdfcrack and check

Install pdfcrack in Ubuntu and check if you are able to open it up!

sudo aptitude install pdfcrack


Cannot run Stardew Valley with PlayOnLinux

Or you could wait for it to get ported. According to this Gaming on Linux article, OS X and Linux are top priorities now.


Installed Ubuntu 13.04 on Windows 7 but it loads straight into Ubuntu

Can explain a little more in detail what you mean "Ubuntu loaded up automatically" step-by-step.

It sounds a first glance that you may need repair you GRUB bootloader or simply re-install it.

Go on this page https://sites.google.com/site/easylinuxtipsproject/grub and read under "How-to".


Need Help With Fixing GRUB Dualboot Windows7 and Ubuntu

Use windows 7 dvd to repair the boot. Use bootsect.exe fixboot and fixmbr ( http://support.microsoft.com/kb/927392#method1 )

Once it fixes windows 7, use ubuntu live cd/usb to boot. Then use boot-repair tool. Instruction here


Cannot login, password rejected, ubuntu 19

Okay guys, first thanks for the responses, appreciated.
I couldn't get to the grub menu however no matter how many times I tried pressing shift or esc, it frustrated me so much I just decided to reinstall Ubuntu so I could check the 'login automatically' box on install and temporarily fix the problem.
So I did that and when choosing the keyboard layout (French) and then entering the users name which used a US keyboard layout I noticed that maybe that had something to do with the password issue, which it did.
I now must enter my password remembering a US keyboard layout to be accurate.
Silly problem but hopefully it helps others in the future.
Just weird that even after choosing a French layout it still used US.
Thanks again guys.

Still don't know what to think about how I am unable to access this GRUB menu though..


Solve update error messages Ubuntu 14.04LTS

Typically running the following should work:

 sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6BCA5E4DB84288D9
 sudo apt-get update

And there are no packages for 14.04 in that PPA, so you should remove those PPA entries from your sources files. Read How can I fix a 404 Error when using a PPA or updating my package lists? to know how to remove them.


How to disable dark theme on webpages in Firefox?

The best solution to tell Firefox that it should use the light theme instead of the dark is by specifying the GTK_THEME variable prior to launching.
So, 4 ways you get for doing this..
1- from terminal you can do:
GTK_THEME=Adwaita:light firefox

2- if you hate the terminal and wanna close it once firefox works:
GTK_THEME=Adwaita:light firefox &

3- from firefox about:config you can set the following setting to false:
browser.display.use_system_colors

WON'T WORK FOR localhost SITES! so if you are a web developer/designer it won't work out that well for you.
4- if you want this to be the defualt behavior:
Just add two lines to the Firefox launcher script located at /usr/lib/firefox/firefox.sh
in the terminal type down:
sudo gedit /usr/lib/firefox/firefox.sh

look at the beginning of the script for this:
MOZ_LIBDIR=/usr/lib/firefox
MOZ_APP_LAUNCHER=`which $0`
MOZ_APP_NAME=firefox

export MOZ_APP_LAUNCHER

and change it to this:
MOZ_LIBDIR=/usr/lib/firefox
MOZ_APP_LAUNCHER=`which $0`
MOZ_APP_NAME=firefox
GTK_THEME=Adwaita:light

export MOZ_APP_LAUNCHER
export GTK_THEME

Finally, restart Firefox.
Hope this helps.
Please help me by voting this up.
Thank you :)


When I search for any city in google earth it zooms in at a wrong location

I can verify that by changing the regional settings to en_US.UTF-8 the problem vanishes. The obvious difference is that greek uses 'comma' as a decimal separator and that mixes google earth somehow.

I am not sure if this is a bug on google-earth's code (since this error does not show up in,say, windows OS) or in ubuntu. But they should probably be notified.


QML WebView does not want to start in Emulator

Make sure to include the "webview" policy group in your apparmor profile.  At a minimum, the apparmor JSON file should be

{
    "policy_groups": [
        "networking",
        "webview"
    ],
    "policy_version": 1.2
}


Transferring music files, via router, from PC to network audio receiver?

Getting some search on internet i could find that this model is DLNA capable and Airplay(Apple) capable. So you must install some app to stream your media over your network. Some examples:

Kodi media center (aka XBMC)

Media Tomb


Java applet needed for rich text editing

Installing JRE

Download JRE from Oracle's JRE Downloads pages and extract it to any directory. (For me, its /home/user/installs/jre)
Now run find /home/user/installs/jre -name "libnpjp2.so"
Copy the location and continue with the following options.

For Mozilla Firefox

You will need to create a symbolic link of libnpjp2.so file under mozilla's plugin directory.

cd ~/.mozilla
mkdir -p plugins
cd plugins
ln -s <COPIED_TEXT> ./

Now open firefox and visit https://www.java.com/en/download/installed.jsp to check the successful installation of Java plugin

For Chrome

As of Chrome version 45, Java Applets cannot be run on Chrome.

References

[1] http://www.oracle.com/technetwork/java/javase/manual-plugin-install-linux-136395.html

[2] https://developer.mozilla.org/en-US/docs/Plugins/Guide/Plug-in_Basics#How_Gecko_Finds_Plug-ins

[3] https://blogs.oracle.com/java-platform-group/entry/npapi_plugin_perspectives_and_the

[4] https://www.java.com/en/download/faq/chrome.xml


Easy backup/restore of installed system?

Yes you can use remastersys for that.You can see a complete tutorial here

The best way is always make a seperate /home partition.See the posts below you can find a better and easy way to backup/restore your system.

http://ubuntuforums.org/showthread.php?t=35087

http://www.debianadmin.com/backup-and-restore-your-ubuntu-system-using-sbackup.html


How to backup *and restore* a mediawiki server

Assuming you are using mysql (mediawiki works w/ pgsql too I think):

Be warned, mysqldump will lock your tables so they don't change while reading them. If you have converted them to InnoDB (not the default, but highly recommended) then you can add --single-transaction below, and they won't be write-locked:

mysqldump --user root --password root_pass your_database > file.sql

copy file.sql to new server

mysqladmin create your_database
mysql --user root --password root_pass -e "GRANT ALL PRIVILEGES ON your_database.* TO user_name@localhost IDENTIFIED BY 'pass'"
mysql --user user_name --password pass < file.sql

Don't forget to copy your uploaded files directory as well (use scp or rsync), good luck!


There is some information at Resetting Xfce Panels to default settings? that will guide you through resetting the panel back to default


Why can't I get a wired connection to my new router?

I'd suspect the following statement

  There is no light on for the port my computer is plugged into on the router, although this makes sense as usually the computer has to tell the router it has set up.

The port light on your router is typically lit due to, not software or TCP/IP settings, but electrical connectivity. If you plug into the router, and the router's light doesn't go on for that port, you may have a bad port at the router, bad cable, or bad ethernet port on the computer.
Possible that you were connected to that router during the lightning strike and took some electrical damage ?
I'd get systematic and get my hands on a different cable, try different ports on the router, and also try the same cable and same port with a different computer. Please let me know how your troubleshooting proceeds.


Black screen after monitor resolution change Lubuntu 18

Delete this file:

~/.config/autostart/lxrandr-autostart.desktop

reboot.

Now retry other resolutions, only press SAVE if the new resolution tests ok (the 15 seconds warning, etc)

If by accident you lose your desktop just remove lxrandr-autostart.desktop and reboot again.


Ubuntu not booting due to iwlwifi error-BIOS contains WGDS but no WRDS

I had the exact same problem. Turns out the reason was that I had removed a couple of packages (evolution-data-server and evolution-data-server-common) and that caused apt to also remove key desktop packages.
To fix it, I booted into recovery mode, then chose Enable network. After that,  Drop to root shell prompt.
Then reinstalled the desktop packages with apt install ubuntu-desktop
That's it!
When the installation completed, I rebooted and everything went back to normal.


500 Internal Server Error Apache2 When Opens pdf file

According to ScriptAlias manual:

  The ScriptAlias directive has the same behavior as the Alias
  directive, except that in addition it marks the target directory as
  containing CGI scripts that will be processed by mod_cgi's cgi-script
  handler.

and in mod_cgi manual:

  Any file that has the handler cgi-script will be treated as a CGI
  script, and run by the server, with its output being returned to the
  client. Files acquire this handler either by having a name containing
  an extension defined by the AddHandler directive, or by being in a
  ScriptAlias directory.

So you should change path of your test.pdf file, for example, try to mv it in DocumentRoot path:

 mv /usr/lib/cgi-bin/test.pdf /var/www/myexamp/test.pdf


install usb wifi card tl-wn823n in ubuntu 20.04

You need to install DKMS.
sudo apt install dkms


Over 2 years later, but I just had this issue and figured maybe I could help someone in the future.

After trying a ton of different stuff, I didn't want to switch my physical monitors around, so I tried switching the spots into which my monitors were plugged into my GPU (both monitors are HDMI). This completely solved the problem for me.


There's dconf-editor from the dconf-tools package, which is the equivalent to gconf-editor.

To install it, do this command

sudo apt-get install dconf-tools


Ubuntu USB booting when deleted from USB

Unless the MBR is cleared, the drive behaves as bootable. You can do the following:

Temporary fix: Change the boot order and remove USB drive from the first position in the list.

Permanent fix: Create a new partition table on the disk using GParted.

Open GParted.
Select your USB drive from the menu on the top right. (Select the correct device or you may end up losing data)
Unmount the disk.
Go to the device menu and click on New Partition Table. Click on Apply when prompted. (Let the partition table type be msdos. Do not change it.)
The entire disk space is now shown as unallocated. Now you need to create at least one partition to use the drive.
Right click on the unallocated space and select new.
A dialog box opens. Select FAT32 file system and click on Add.
Now click on the Apply button. (A green tick mark on the toolbar)

Note: If you do not have GParted installed you can open the terminal and type sudo apt-get install gparted. (You need a working internet connection to do this)


How to convert .mkv file into .mp4 file losslessly?

Perhaps the easiest tool for that is ffmpeg, or avconv from the libav-tools package. Libav is a fork of FFmpeg, which Ubuntu switched to for a few years until Ubuntu 15.04. It is one of the backends for many of the GUI tools mentioned in other answers.

Changing container without re-enconding content could not be simpler:

ffmpeg -i input.mkv -codec copy output.mp4

It auto-detects a Matroska to MP4 container conversion based on input/output filenames.
-codec copy stream copies, or "re-muxes", the streams from the input to the output without re-encoding. Think of it like a copy and paste.
Default stream selection behavior is to select only one stream per stream type. For example, if your input has two video streams and one audio stream then only the video stream with the largest frame size will be selected. Add -map 0 if you want to select all streams from the input.
Some containers may not support some formats. So check if your chosen container format, be it mkv, mp4 or even avi has support for all the content in your files (video, audio, subtitles, data, etc). For example, mp4 does not support SubRip subtitles (.srt files).


I do not know Snippets, but gedit has code highlighting and is extendible using plugins. You can also add code pieces to it for your own use.


Just use the Ubuntu Startup Disk Creator.

http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-ubuntu


Well, I found the fault myself. Because I noticed that I was already logged in, I re-booted and tried CTRL-ALT-BACKSPACE. That got me to another menu which had emergency things on it. I tried it and got in. Then I opened SETTINGS and changed the USER to log in. Then I re-booted and got the same screen, but I logged in and was taken to the desktop.
Chris


I think Cron is running as system daemon and don't know about your desktop environment session, though it is needed to show notifications. You could write script that will send notification and sleep for 2 minutes and run it from your user in background. Also if you want exactly Cron you could create script that will at first export desktop identifier export DISPLAY=:0, then call notify-send and call this script from Cron or simply replace your Cron line with */2 * * * * DISPLAY=:0 /usr/bin/notify-send "test".

Note - for me it worked in Ubuntu 16.04 but not in Kubuntu 19.10. Haven't tested on other system versions.


Move folders that have an apostophe in their name

You need to escape ' using one of the usual escaping methods. BTW the glob pattern you will need is *<glob_pattern_here>*/,  the trailing / will make the shell to match only directory(ies).

Using backslash, \:

mv -t /destination/ *\'*/

Using double quotes, ":

mv -t /destination/ *"'"*/

Using single quotes, ', this is actually same as using the backslashed one:

mv -t /destination/ *''\'''*

You can do a echo mv ... first as a dry-run. Replace /destination/ with your actual destination.

Also, you can try to use tab-completion if you feel to do it interactively.


Dead touchpad/trackpad on new dell inpiron 15 7000

I just solved this problem.

I noticed that when ubuntu booted it showed some message saying :

[   27.076007] i2c_hid i2c-SYN1B7D:01: failed to retrieve report from devce

I looked it up, and found this:
https://bbs.archlinux.org/viewtopic.php?id=185329

Same issue has been mentioned here :
https://wiki.ubuntu.com/TrustyTahr/ReleaseNotes/14.04#Kernel

This guy had almost same problem and it got solved by blacklisting i2c_hid module.

So if you just bought the same laptop and are facing the same problem, you can try doing this:

Open terminal and type in : sudo gedit /etc/modprobe.d/blacklist.conf. This is a file that has entries for kernel modules, that are not loaded or blacklisted.
Go to end of file and write this blacklist i2c_hid.
restart your system a couple of times . somehow I had to do it twice.

This solves this problem for now. Trackpad working perfectly.


How to prevent ps from truncating the process name

The simplest thing you can do is swap the order of outputs: if cmd is last, it will be extended to the full width of the terminal:

ps -eo pid,etime,cmd

If that's still not sufficient, you can add a -w (wide) output modifier

ps -ewo pid,etime,cmd

An additional w gives even wider output

ps -ewwo pid,etime,cmd

(In both of these cases, the output may be wrapped by the terminal.) If you really must have the original field order, then you can specify an explicit width for the cmd field using the syntax field:width e.g.

ps -eo pid,cmd:80,etime

This can be combined with the -w flag(s) if necessary e.g.

ps -ewo pid,cmd:160,etime

The width of a particular output column can also be forced wider by using a longer header string e.g.

ps -eo pid,cmd=my_very_very_very_long_command_that_I_want_to_see_more_of,etime


Is it possible to use multiple IP addresses for the same host name in a linux hosts file?

Normally IP adress resolving is done via dedicated name services like dnsmasq, bind etc.

The local hosts file /etc/hosts is generally only used if you have a small internal network - listing all internal hosts and their respectives ip addresses; otherwise it should just contain your server's local name (and localhost).

One solution to your question could be to use your server's name in different subdomains, e.g. master.exernal.example.com and master.internal.example.com; now to address master from the external network you have to make external.example.com your primary search domain in /etc/resolv.conf:

# /etc/resolv.conf at external host
search external.example.com example.com
nameserver ns.example.com

# /etc/resolv.conf at internal host
search internal.example.com example.com
nameserver ns.example.com

(asssuming you have a nameserver at ns.example.com)

In each zone file for .external. and .internal.example.com the hostname points to the respective ip address

# zonefile external network
$ORIGIN external.example.com.
master IN A 123.90.132.98

# zonefile internal network
$ORIGIN internal.example.com.
master IN A 10.11.82.40

This way you can use curl http://master/ within each network without bothering with FullQualifiedDomainNames.


For me, I also had this problem when using my Apple 3.5mm headphone on Kubuntu, but when I held the volume up or down button, it had no effect on the actual volume, but my headphone had a sound.

To solve this problem, simply pull the plug a little and the sound will recover.

Probably because the top connector is for controlling audio input, but the input and output on the motherboard are separate, so you can't insert the wrong interface if you want to use the output function normally. Of course, the input function is not available when the output function is used normally.

Forgive me for my poor English, good luck


Identifying which directory a filename comes from

If you know the files can only be in one of two places, then it's probably more efficient to test each explicitly, e.g.

while IFS= read -r f; do
  if [ -e "dir1/$f" ]; then
    echo "dir1/$f"
  elif [ -e "dir2/$f" ]; then
    echo "dir2/$f"
  else
    echo "$f: not found"
  fi
done < filelist


If you want to eject CD/DVD drives, you can create a launcher to the following command:

eject

and lock it to Unity launcher. This works if the tray is empty, too.

Creating a launcher

Create a new text file with the following contents:

[Desktop Entry]
Name=Eject
Exec=eject
Icon=cdrom_unmount
Terminal=false
Type=Application
StartupNotify=false

(you can replace cdrom_unmount with media-eject or any icon you want)

and name it Eject.desktop. Right click that file, select "Permissions" and check "Allow executing file as program". Then you can drag it to the Unity Launcher, and get something like this:

Just click on it and the tray will open.

It's not possible to show Unity CD/DVD drive icons if there is no disc in the tray, so this is the best way to get a Unity eject icon.


ubuntu 18.04 LTS does not detect Samsung Level U

This worked for me:-

switch on the Bluetooth on your laptop and headphone
press the pairing button(it's present below the volume keys) on your headphone
for a few seconds you should be able to see the name of your
Bluetooth device on your laptop
connect it


16.04 - How To Grant Read Write Access To Folder / File after Messing Up

It's not read/write permission causing your problem - directories need x permission to be accessed. That one should have mode 755, not 666

sudo chmod 755 /usr/share/themes

Check it looks like this:

$ ls -ld /usr/share/themes
drwxr-xr-x 43 root root 4096 Apr 20 23:13 /usr/share/themes

Check the permissions on the theme directories inside - they need to have 755 permissions as well

When you really need to add something to a system (root owned) directory, don't touch the file permissions at all - just use sudo to get elevated permissions for one command, for example:

sudo cp my_file /path/to/system/directory


cant log into ubuntu as main/only user but can as guest

I would recommend you do the steps I take on solving my login problem, here, on my answer to other question:
Solve login problem


google-chrome-stable is availeble on 3rd Party Repository: Google Chrome (For Stable).

Follow the instruction for installation:

Add Key:

wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -

Set repository:

sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'

Install package:

sudo apt-get update
sudo apt-get install google-chrome-stable

Looks like you need to add the official google-chrome-stable in your Software Sources

Remove your google-chrome stable or fix with sudo apt-get -f install

Follow this: How to install Google Chrome


Does anybody know how to disable connman?

You can also configure connman to ignore a specific interface.

I had to do exactly the same (static IP for eth0) and could do so by
configuring it in /etc/network/interfaces AND
by modifying (adding) a line in /etc/connman/main.conf:

NetworkinterfaceBlacklist=eth0,SoftAp0,usb0,usb1


Why is the "Connect" button greyed out when entering the WiFi password for wireless networks?

If the connect button is greyed out, your passphrase does not match the expected encryption standard.

For instance: WPA/2 passworts need to be between 8 and 64 Characters. If you have less characters in your passphrase, the connection Button will not activate.

It may happen that ubuntu does not correctly recognize your routers encryption. In this rare case you should edit your connections security to what your router is set to under Connections -> Wireless -> edit "Your connection" -> Security


The error is a problem with the package dns-root-data. DNSmasq shouldn't require it, but it is requiring it. Follow these steps:

sudo apt-get purge dnsmasq
sudo apt-get autoremove
sudo apt-get install dnsmasq

Don't forget to re-insert your configuration (if any) into /etc/dnsmasq.conf

Reference

If that didn't work, try this (works at least on Debian 9 and Raspian)

sudo nano /etc/init.d/dnsmasq

Where it reads

if [ -f $ROOT_DS ]; then

Comment out the next line (add # to the beginning of the line) and put this one below it

`DNSMASQ_OPTS="$DNSMASQ_OPTS `mawk -- '{ printf " --trust-anchor=.,%d,%d,%d,%s", $5, $6, $7, $8 }' $ROOT_DS`"`

The structure of /usr/share/dns/root.ds was changed. The fields used to be separated only by spaces, now they are separated by tabs (\t)

Reference


Grub 2 splash screen isn't showing in hidden mode until I press a key

Posted as the answer on behalf of OP:

After receiving a suggestion to ignore the splash screen entirely, and just use nested Grub menus, I decided to give that a shot. In the process, I found out that I can create a Grub menu which has a timeout of 0 and automatically loads another Grub via configfile, and, in so doing, actually triggers the splash screen on the second menu. So, grub.cfg now contains this, with default set to 1 and the timer set to 0:
menuentry "Other menu" { configfile (hd0,1)/boot/grub/othergrub.cfg }
When it loads the second Grub, the splash screen from the second Grub loads up just fine, too -- no keypresses required.
Weird workaround, but it does the trick.


Where is Startup Disk Creator installed?

If you know the name of the package, you can list all of it's files using dpkg -L package:

$ dpkg -L usb-creator-gtk
/usr/bin/usb-creator-gtk
/usr/lib/python3/dist-packages/usbcreator/frontends/gtk/__init__.py
/usr/lib/python3/dist-packages/usbcreator/frontends/gtk/frontend.py
/usr/lib/python3/dist-packages/usbcreator/frontends/gtk/unitysupport.py
/usr/share/applications/usb-creator-gtk.desktop
/usr/share/doc/usb-creator-gtk/changelog.gz
/usr/share/doc/usb-creator-gtk/copyright
/usr/share/icons/hicolor/scalable/apps/usb-creator-gtk.svg
/usr/share/man/man8/usb-creator-gtk.8.gz
/usr/share/usb-creator/usbcreator-gtk.ui

In this case the binary is called /usr/bin/usb-creator-gtk


Flash on google-chrome not working, but IS working in Firefox

If you have the latest version of google-chrome-stable, I think you can make Flash work by simply closing and restarting Chrome a couple of times. Finally it should enable version 24.0.0.186. You can check the version at this page.


This reply is not the final answer, just plenty of clues & leads to help you out!

I have the Fry's FR-300USB adapter inserted, which I cannot use whatsoever. I also have a second, nearly identical USB Wi-Fi adapter inserted. That one works great the moment it is inserted into a USB port. All you have to do after inserting that adapter is just simply enable it under Network Settings.

I am currently running Ubuntu 12.04, 64-bit version, on a Pentium dual-core based PC with 4 GB of memory and the Intel G33 motherboard chipset. When the Terminal is opened and one types in the lsusb command, the following lines show up:

casey@casey-desktop:~$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 002: ID 045e:007d Microsoft Corp. Notebook Optical Mouse
Bus 001 Device 003: ID 0bda:8172 Realtek Semiconductor Corp. RTL8191SU 802.11n WLAN Adapter
Bus 001 Device 004: ID 07d1:3304 D-Link System

The last two lines identify the two separate USB Wi-Fi adapters. Both adapters contain the same identical chipset: the RTL8191SU from Realtek Semiconductor Corporation. The drivers are loaded for both adapters and are programmed to recognize the device with the USB ID (shown when one issues the lsusb command in the Terminal) of 0bda:8172. So, now one needs to figure out how to add a patch to the drivers so that the device with the ID code of 07d1:3304 gets recognized the same way.

The device that shows an ID of 0bda:8172 when one issues the lsusb in the Terminal gets recognized by the built-in drivers immediately. Just add a simple patch to the drivers already included so that the driver code can treat the hardware device with the ID code of 07d1:3304 exactly the same way.

Once that answer gets figured out, anyone with Ubuntu 12.04 should be able to use the Fry's FR-300USB adapter easily.


How to copy entire image from SD card to external hard drive

Using dd to Clone File System from One Drive to Another

Create Live Ubuntu USB and Boot it

Plug in Target drive, (must be at least as large as Source drive).

Open Gnome-Disks to confirm drive designations, sda, sdb, etc.

In Terminal run sudo dd if=/dev/sdx of=/dev/sdy
Where sdx is the Source drive and sdy is the Target drive. Double check that the Target device designation is correct, one typo can overwrite your OS.
Some people prefer to add a block size, such as bs=256k, but I do not bother.
The process may take a long time.
Ref: https://docs.oracle.com/cd/E19455-01/805-7228/bkupsavefiles-60904/index.html


How to download Release Candidates FeatureFreeze versions?

http://iso.qa.ubuntu.com/qatracker/milestones/

Images are currently daily, so click on the FOCAL DAILY for a 20.04 image.  Currently that will take you to http://iso.qa.ubuntu.com/qatracker/milestones/408/builds where you can select your flavor or image.

Note I've not gone further than that; as if I do the images available today will be gone tomorrow with a new 'daily' and as a result the build number changes.

When you've navigated to to the image you want where you can enter your QA (Quality Assurance) test session details, any bugs etc, you'll find a DOWNLOAD link (Link to the download information) at the top.

FYI: I'll also provide my 'download' script for grabbing the Lubuntu daily..

#!/bin/sh
rm *.old
mv focal-desktop-amd64.iso.zsync focal-desktop-amd64.iso.zsync.old
wget http://cdimage.ubuntu.com/lubuntu/daily-live/current/focal-desktop-amd64.iso.zsync
zsync -u http://cdimage.ubuntu.com/lubuntu/daily-live/current/focal-desktop-amd64.iso  focal-desktop-amd64.iso.zsync

Early in the cycle the 'daily' is produced weekly, later in the cycle it maybe produced twice a day (DAILY really means interval, it's most commonly once per day).


Using grep to search texts with single quote?

Surround your search string with double quotes:

grep "'type' => 'select'"


I've changed the wifi channel and rebooted the router. It works fine.


System won't boot with nvidia driver enabled

Try to completely remove your nvidia drivers from your system:

sudo apt-get purge nvidia*

Remove your xorg.conf

sudo rm /etc/X11/xorg.conf

Reinstall xorg completely

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

Re-configure Xorg

sudo dpkg-reconfigure xserver-xorg

Reboot

sudo reboot

You should be greeted with lightdm, this will default everything x the same way a fresh install would.

After this you can try installing the drivers again using the 'Additional Drivers' tool in Ubuntu but if those drivers don't work you can test the latest drivers from the x-swat ppa

sudo apt-add-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
sudo apt-get install nvidia-current

Note - if the above doesn't work - try also using the PAE kernel

sudo apt-get install linux-headers-generic-pae

(tip received by @Scott)


How to completely remove Windows 10 and install Ubuntu?

You can only install Ubuntu by USB or DVD, there is no other way, you have to create a bootable CD/DVD or a bootable USB and flash it with the Ubuntu iso. Then you have to boot from that drive and start the installation, it will ask you were and how to install Ubuntu (which drive and if you want to dual-boot Windows and Ubuntu, or erase everything and install Ubuntu). There are a lot of tutorials about this process but if you need more help i will gladly help you.


Gerald, I think I've solved it. Sorry for my delay, but I tried many things. After kernel update, it seems there is no freeze in transmission. It's also not related to power settings of wlan card (Atheros AR9462). Here is a simple guide for kernel update:

http://www.yourownlinux.com/2014/04/install-upgrade-to-linux-kernel-3-14-1-in-linux.html

I've upgraded to latest stable 3.14.1. I hope it works for you too.


Need to restart from windows to boot into Ubuntu (dual boot)

The solution given here worked for me https://askubuntu.com/a/863301/988500
Basically following these steps solved the problem:

Create a backup of the grub configuration using
cp /etc/default/grub ~/grub.back

Open the config file for editing
sudo gedit /etc/default/grub
If you have multiple ubuntu installations, edit the grub file from terminal of the installation with the issue (or use nano in root shell of recovery mode if you cannot boot into the installation)

Add the boot parameter pcie_aspm=off at the end of the line that starts with GRUB_CMDLINE_LINUX_DEFAULT.
The line would look like GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pcie_aspm=off"

After this, update the grub from the terminal or root shell of the installation that has active grub installation currently in use by the device.
sudo update-grub

Reboot
sudo reboot

This has enabled me to directly boot into ubuntu under a booting time of less than a minute. Also, the log files don't fill up the device space anymore.


PHP 5.4.* already comes with xdebug installed?

Marcio,

you might have accidentaly installed php5-xdebug as a dependency of some other package.

The default clean php5-cli installation just gives:

# php5 -v
PHP 5.4.6-1ubuntu1.2 (cli) (built: Mar 11 2013 14:57:54)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies

You can check installed binary modules in /usr/lib/php5/20100525 directory and then you can use dpkg -S to query the coresponding debian package (I have installed php5-xdebug manually meanwhile):

# dpkg -S /usr/lib/php5/20100525/xdebug.so
php5-xdebug: /usr/lib/php5/20100525/xdebug.so

If this doesn't show up anything then it means that somebody (or some automatic script) has installed the xdebug without you knowing.


Something is wrong with folders containing special characters

It depends on what terminal you're using, but if you're using the default one in Ubuntu you should be able to edit the terminal settings and change the encoding. Since it's a problem isolated to the terminal app, it's probably a setting error, and most likely encoding.

I'm not running Ubuntu right now so I'm not sure where it's located, but I'm pretty sure it's somewhere around Edit > Preferences or similar, around where you change things like background color and font for the terminal. I'd suggest switching to UTF-8 and see if that fixes your problem.


Run in terminal

sudo tee /etc/modprobe.d/blacklist-acer-wmi.conf <<< "blacklist acer_wmi"

and reboot.


What is the best way to migrate a Mail server?

Without more specific info about which email server you are using it's gonna be rather difficult to answer.

One thing you can be interested in is imapsync.

http://www.howtoforge.com/how-to-migrate-mailboxes-between-imap-servers-with-imapsync

However, it doesn't support migration of a whole server but rather a separate mailbox.

When it comes to migration of a whole email server it all depends on the format you are keeping your mailboxes. Dovecot's wiki offer a detailed guide about migration of email. http://wiki.dovecot.org/Migration. The simplest way is probably a rsync between two folders / network shares. But as far as I know it would work well with Maildir, I am not sure about mbox.


How to Reinstall Ubuntu on Acer C7 Chromebook

I had the same problem as you yesterday, where after upgrading to Saucy, launcher bar was wonky, etc.

Since I don't use ChromeOS at all and have already voided my warranty with a RAM upgrade, I chose to short the firmware write-protect jumper and overwrote that with coreboot / seabios. Now it runs Saucy perfectly and can boot any bootable USB live CD, installer, etc. Full instructions found here: http://johnlewis.ie/pre-built-coreboot-firmware-for-chromebooks/

What I did:

Backup files to external drive
Download Ubuntu 13.10 64-bit .iso
Create bootable USB stick in Chrbuntu by using gparted to make a 1 GB fat32 partition, and usb-creator-gtk to write the .iso image and boot sector
Run sudo cgpt add -i 6 -P 0 -S 0 /dev/sda in a terminal to make it reboot to ChromeOS
Shut down
Remove back cover and fold a small piece of aluminium foil to close write-protect jumper "under black plastic" in this picture, although on my particular machine, there was no plastic shield and the jumper was exposed
Start up and login
Ctrl+Alt+t to get a crosh tab
type shell
type sudo flashrom -r <removable media path>/stock-firmware.rom (Important if you want to revert to ChromeOS, as apparently each Chromebook has a unique serial written in its firmware.)
type wget http://johnlewis.ie/coreboot-c7-04092013.rom (Download John Lewis' firmware image)
type sudo flashrom -w coreboot-c7-04092013.rom
Shut down
Remove aluminium foil to re-enable firmware write-protect (or coreboot won't start)
Plug in bootable USB stick, USB mouse and start up (trackpad is not available yet)
Hit F10 at boot selection screen and 2 to boot from USB
Install Ubuntu normally
Edit /etc/modules and add lines:

  i2c-i801
  i2c-dev
  chromeos-laptop
  cyapa
  Reboot and trackpad should start working


Flashing pixels on Ubuntu 18.04 installed alongside Windows 8

Installed ubuntu 16.04, ubuntu live disk didnt't have issues, but when I rebooted the machine, happened the same thing,  so I started ubuntu 16.04 with linux 4.13.0-36 kernel instead of the 0- 45and it works fine... Guess it was not the graphics cards but the kernel. If someone knows why, please, help us  writing the answer below.


Trackpad has stopped working after pressing off key, how to reenable?

it is indeed a bug as discussed here:
https://bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/546503

this is not a cure for the bug, but get your trackpad running again, run:

gconftool --type bool --set /desktop/gnome/peripherals/touchpad/touchpad_enabled true


No network on Ubuntu Server after changing the modem

Unbelievable but restarting the modem fixed the problem, it seems to me like this modem has issues with DHCP, it almost crashes after making changes to DHCP, but restart fixes the issues.


Maybe you have problems with alsa-mixer configuration.

First thing I would do on your place is go to terminal and type "alsa-mixer".
This will bring you to audio settings and you can explore it and something might be wrong there.
It has a built in help so you it shouldn't be hard to do things you want.

If it works at least sometimes then hardware-side is ok.

My guess is that some software just changes audio settings to its' needs and breaks stuff.

Would be useful if you could provide circumstances when it works or not.

You can always reinstall alsa to check if some dependencies are missing.

P.S.: I myself use similar system, but I installed lxde(not lubuntu-desktop) over minimal installation, so I should have even less stuff installed.


Non-Full-Screen Application Launcher in Gnome 3?

The closest I can think of is that you can pin applications to the dock on the left side in the Windows section of the Overview. AFAIK, GNOME Shell doesn't have a built-in GNOME-Do equivalent...in fact, I think its inclusion was once suggested to the developers and they turned it down in favor of using the Overview.


How to solve apt "package cannot be configured because package is in a different version" errors?

sudo dpkg -r --force-all <package-name>

sudo apt-get install <package-name>


Disable/remove Cinnamon keyboard shortcurts

To answer my own question. It seems that in the current version of Cinnamon, you have a "Cinnamon Settings" menu entry. There you can adjust/disable the keyboard shortcuts


Wish: (re)Make a screenshot of already selected area again

You're missing Shutter. GNOME Screenshot is an okay tool, it covers the basics and is good enough for a default.

Shutter has a lot more functionality, but it also depends on more libraries. In particular, it has a redo option:


vsftpd error with self-signed certificates in Ubuntu 20.04

I discovered the problem.
For some reason VSFTPD (on Ubuntu 20.04) does not work with a certificate that uses a 1024 bit key. After changing the keys generated in my example to 2048 bits, it works.
Strange...
Update 10/7/20: As suggested in the comments here are details about how I identified the source of this issue:
I compared the working snakeoil certificate included with vsftpd to my certificate. This was done with the command:
openssl x509 -in <certificate_file> -text -noout

I changed one aspect of my certificate at a time to match the snakeoil certificate until the vsftpd error went away. I tried changing the subject to only include the CN field (removing  C, ST, L, O, OU, and emailAddress fields). I also changed the certificate from version 1 to version 3. Finally changing the RSA key used to 2048 bits allowed vsftpd to successfully start up.


iam assuming ur using ip camera@30FPS , depending on resolution ,and frames per second,  for 3 MP camera (2048*1536) pixel, It should be possible if u r using one camera, it will be 15360 to 8192 kbps . the higher bit rate the higher picture quality u get, At 8192 is 8 Mbps which is still alot and good enough, Note that most of nvr are limitted to 16Mbps. u may want to record on a NAS drive directly from the camera, and that's what iam trying to figure out so far.
NOW if its enough hard drive, that's its not a question because the hard drive is ur choice and has no thing to do with ubuntu edition or whatever FHD u mentioned.
In this case if ur using 4 TB hard disk u should get record arround 20 days for one camera


Ubuntu 15.10 installed on SSD with Windows 8.1 - core.image cannot be found

Please run boot-repair again. If grub2 is not installed then reinstall it. grub2 won't mess up with /dev/sd2


Ubuntu does not mount your real hard disk but you should be able to copy your data to an external hard easily enough.

First Boot from the USB and select try Ubuntu

I'm using the 12.04 CD to do this

Now press Ctrl+Alt+T to open a termininal

In the terminal enter the following command

sudo -i

Then

nautilus

This opens nautilus (the file manager) as root.  Do not close the terminal.

Note: In the section down the left hand side of nautilus "File System" is the virtual file system of the live session not a real file system you real hard drives are shown as devices. In my case the device was "959cf23..."

As you are root you can now copy and paste any data you want to keep to external storage.

You can change ownership and permissions of the files by selecting properties

Alternatively don't worry about permissions for now as you can always change the permissions again from the other OS or you can make them all accessible to every one with

sudo chmod -R 777 /path/to/external/drive

Replacing /path/to/external/drive with the correct path. Warning: Make sure you type this correcly as sudo chmod -R 777 / path/to/external/drive for example will change permissions for the entire file system.

Then you can re-install the OS you want and restore your data from the backup.


Always organize your code and use -eq whenever performing conditions with integers

if [ $type -eq 1 ]
        then
     date +%s | md5 | base 64 | head -c $length >> $name.txt

   elif [ $type -eq 2 ]
       then
           date +%s | shasum | base 64 | head -c $length >> $name.txt

   elif [ $type -eq 3 ]
     then
         openssl rand -base64 $length >> $name.txt

fi


/var partition ran out of space. Upgradation of softwares failing. Any workaround?

Your root partition seems to have more disk space. Boot into recovery console, mount /dev/sda10 and /dev/sda11 somewhere, copy all data keeping permissions from /dev/sda11 to /var directory on /dev/sda10.

Then edit /etc/fstab to comment out the line which mounts /var. Reboot. Have fun.

To prevent this from happening in the future, I would then delete /dev/sda10 and resize your root partition to use those additional 2.8Gb. There's really no benefit in having a separate /var partition if you have that little disk space.


How do I map the middle mouse button to make a double click?

OS: Ubuntu 18:04
Required Packages: xdotool and xbindkeys

you can install these packages with sudo apt install xdotool xbindkeys

gedit .xbindkeysrc

Paste the below content

"xdotool click --repeat 2 1"
b:2

Save the file and run xbindkeys --poll-rc

now your Middle Click should work as double click.

from man xdotool some of the content

   click [options] button
       Send a click, that is, a mousedown followed by mouseup for the
       given button with a short delay between the two (currently 12ms).

       Buttons generally map this way: Left mouse is 1, middle is 2, right
       is 3, wheel up is 4, wheel down is 5.

       --clearmodifiers
           Clear modifiers before clicking. See CLEARMODIFIERS below.

       --repeat REPEAT
           Specify how many times to click. Default is 1. For a double-
           click, use '--repeat 2'

Tested on Ubuntu 18.04.3

Workaround

If you have installed unity like this sudo apt install unity

then use below content in .xbindkeysrc file

"xdotool click --repeat 2 1"
b:2 + Release

Tested on Ubuntu 18.04 with Unity session.


UI Font Size in Firefox, Opera, Chromium and Thunderbird Disregard System Settings

I got it.
The setting that needed to be altered is found under:

System Settings> Application Style> GNOME Application Style (GTK)

I needed to increase the font size from 10 to 12 to match the font size i chose under:

System Settings> Font> Fonts

Here is the effect before and after:

Firefox is using font 10 and Opera is font 12.


Gstreamer gst-launch-1.0: symbol lookup error: gst-launch-1.0: undefined symbol: _gst_date_time_type

Running this command solves problem for me:

sudo ldconfig

Got it from [Bug 740014] gst-plugins-base-1.4.4 make fails (undefined symbol:_gst_date_time_type)


How to prevent ubuntu one from deleting files

if you sync a folder to ubuntu one in your computers then it will be synced in all your computers that have the sync locally option clicked. Example:
- say you create a folder with files in your ubuntu computer.
- Then you sync it with ubuntu one. The content of the folder gets uploaded to the server.
- Now you go to your windows computer and decide to sync that new folder there...then the content of the folder gets downloaded to the windows computer, but STILL REMAINS IN UBUNTU ONE.
- Now if you delete some files in the windows computer from that folder, that will propagate to ubuntu one and to your ubuntu computer, therefore the files will be deleted.

To stop that behavior you have to unclick the sync locally option from your ubuntu one menu in the computer you delete the files.
been using ubuntu one for a while now, keep my backups there and never had such a thing as files deleted by ubuntu one itself.

hope that helps


I'm assuming that you were able to see an empty 100GB partition from Windows.  If that's the case, Ubuntu setup should be able to see the same 100GB partition and you should be able to allocate the entire partition to Ubuntu.

Your best option here is to run setup again, and wipe the partition during setup.  Use the manual partitioning option ("Do something else")


NFS is designed for sharing files between Linux machines and is much kinder to CPUs, it just can't support windows as far as I know.

The following info is taken from here

Installation

At a terminal prompt enter the following command to install the NFS Server:

sudo apt-get install nfs-kernel-server

Configuration

You can configure the directories to be exported by adding them to the /etc/exports file. For example:

/ubuntu  *(ro,sync,no_root_squash)
/home    *(rw,sync,no_root_squash)

You can replace * with one of the hostname formats. Make the hostname declaration as specific as possible so unwanted systems cannot access the NFS mount.

To start the NFS server, you can run the following command at a terminal prompt:

sudo service nfs-kernel-server start

NFS Client Configuration

Use the mount command to mount a shared NFS directory from another machine, by typing a command line similar to the following at a terminal prompt:

sudo mount example.hostname.com:/ubuntu /local/ubuntu

The mount point directory /local/ubuntu must exist. There should be no files or subdirectories in the /local/ubuntu directory.

An alternate way to mount an NFS share from another machine is to add a line to the /etc/fstab file. The line must state the hostname of the NFS server, the directory on the server being exported, and the directory on the local machine where the NFS share is to be mounted.

The general syntax for the line in /etc/fstab file is as follows:

example.hostname.com:/ubuntu /local/ubuntu nfs rsize=8192,wsize=8192,timeo=14,intr

If you have trouble mounting an NFS share, make sure the nfs-common package is installed on your client. To install nfs-common enter the following command at the terminal prompt:

sudo apt-get install nfs-common


Force fsck.ext4 on reboot, but really "forceful"

I know this is a really old thread, but I recently had to solve this problem so I wanted to post how to force the OS to fix problems found with fsck during bootup (for 12.04).

You do need to run the command sudo touch /forcefsck.  This will cause it to perform an fsck on the next boot.  You can see the results of the fsck in /var/log/boot.log.

However, you are not guaranteed that fsck will fix anything it finds.  To do this, you would need to edit the file /etc/default/rcS.  There is a line at the end of that file:

FSCKFIX=no

This needs to be changed to the following:

FSCKFIX=yes

This will have the same effect as running the fsck with the -y option which will force all fixes that are possible to be implemented and it will not ask for user interaction.

This will allow you to run the fsck like the OP was asking to without having to resort to booting from a live disk which isn't always possible especially if you are on a remote system.


How does selecting "Use LVM" in the Ubuntu installer work?

After a little bit of experimenting, and help from the LVM HOWTO, I figured out how to do what I was looking for.

These steps will work for any number of hard drives, you will just have to modify how many times you do each step. Additionally, these steps can be done either in a LiveUSB or while using the installed OS itself.

Before you begin, make sure you know the "name" of each of your drives. These can be found using the command sudo fdisk -l. Each drive name will look something like /dev/sda

Initial Installation

If you select "Use LVM with the new Ubuntu installation", it will install Ubuntu on a single drive, with volume group (VG) ubuntu-vg, physical volume (PV) /dev/sdx5 (where "x" is the letter of the drive used by the installer, usually "a"), and logical volumes (LV) /dev/ubuntu-vg/root and /dev/ubuntu-vg/swap_1.

Initialising Additional Drives for LVM

Before your additional hard drives can be used for LVM, you need to turn them into physical volumes. To do so:

sudo pvcreate /dev/sdx, where x is the letter of whatever drive you're adding.

Adding New Physical Volumes to your Volume Group

You then need to add each new physical volume (read, each additional drive) to your volume group. To do so:

sudo vgextend ubuntu-vg /dev/sdx

Extending the Logical Volume and your Filesystem

The last step is to extend the LV and your filesystem over the newly-added PVs. To do so:

sudo lvextend -l+100%FREE /dev/ubuntu-vg/root -r

Explanation of command: -l+100%FREE extends the LV over all free space in the VG, /dev/lubuntu-vg/root specifies which LV to expand, and -r expands your filesystem to fill the newly-expanded LV.

After all this, you should be ready to rock-and-roll with your now-large-and-single hard drive.


How to install a package that contains Ubuntu kernel debug symbols?

First create a ddebs.list using:

echo "deb http://ddebs.ubuntu.com $(lsb_release -cs) main restricted universe multiverse" | sudo tee /etc/apt/sources.list.d/ddebs.list

Then add the GPG key for ddebs.ubuntu.com:

wget -O - http://ddebs.ubuntu.com/dbgsym-release-key.asc | sudo apt-key add -

Then run:

sudo apt-get update

Then install the symbols package using:

sudo apt-get install linux-image-`uname -r`-dbgsym

This is rather huge (>680MB), so prepare for a wait while you download it.

I use the Linux kernel debug symbols for tools like systemtap on the kernel.


How to install libguestfs-tools 1.26 in Ubuntu 12.04?

Tricky, but possible.  You will need to carefully follow the instructions in the FAQ entry here.  You will need to build supermin version 5 first.


"The volume boot has only 0 bytes disk space remaining"

To list all kernel:
dpkg --get-selections | grep "linux-image-[[:digit:]].*" | tr "\t" ";" | cut -d ";" -f1

The results looks somewhat like this:

linux-image-3.19.0-7-generic
linux-image-3.18.0-13-generic
linux-image-3.16.0-23-generic

Don't delete all kernels, only old ones!

Next let's remove the 3.16 kernel,
sudo apt-get purge linux-image-3.16.0-23-generic

and then all unused packages from the system:
sudo apt-get autoclean && sudo apt-get autoremove


Manually set up lvm and your logical volumes, then choose the something else option when installing, and select your existing partitions, and the drive to install grub to.  You may want to read http://wiki.ubuntu.com/Lvm.


video dead after upgrading nvidia drivers 12.04

My sympathies go out to you because I have been using those exact drivers without any trouble at all. Well, here is something that may solve the issue:

First, plug in your screen to the port that originally was plugged in to. If that doesn't work, try booting at least twice with each video port until it does work. BIOSes tend to be buggy.

Once you can at least boot and see a splash screen, boot into Ubuntu Recovery Menu at the Grub screen. Scroll down to Enable Networking and follow the process. Upon return to the main Recovery Mode menu, select the option to get to a Root Shell Prompt. Enter in this command and press Enter:

apt-get install --reinstall nvidia-304

Then go back to the menu with exit, and then reboot. The issue should be solved.


How to create a hotkey to make left alt like right alt?

Install Tweaks (the gnome-tweaks package)
Open Tweaks
Keyboard & Mouse -> Additional Layout Options -> Key to choose the 3rd level


From the additional information and comments, it appears that you have installed a version of wine by downloading and running a compilation process such as:

$ make
$ make install

This makes certain assumptions, such as that the default bin directory is /usr/local/bin instead of Ubuntu's /usr/bin which means that you could have multiple installations of the same application and can create all sorts of headaches.

If you end up in this position:

The cleanest way to remove an application installed in this way is to run the application's own uninstall process, e.g.:

$ make uninstall

or (more rarely)

$ make remove

Failing that, you may have to look at the Makefile to find out where all the files are and manually rm them.

To avoid this happening again:

This is why it's recommended, even with outside applications, that you put them into a debian package, or use a tool like checkinstall.


How to make the date appear next to the time indicator in Gnome Classic?

Using dconf-editor you can set various options to control the indicator-datetime applet

Navigate to com.canonical.indicator.datetime and tick the two checkboxes shown.

dconf-editor is part of the dconf-tools package which you can install from the Software Center or via a terminal command:

sudo apt-get install dconf-tools

If the date does not appear then check that you have the indicator-datetime package installed (logoff and logon after installing the package)

Later versions of Ubuntu sometimes do not show the path shown in the picture.  You'll need to manually set one of the keys first before the path is shown in dconf-editor

For example:

gsettings set com.canonical.indicator.datetime show-clock true
gsettings set com.canonical.indicator.datetime show-day true
gsettings set com.canonical.indicator.datetime show-date true


If you set file permission to 744, only owner may execute the file. Are you owner of the file?

If you want execute shell script without setting script executable (whatever reason), the most reasonable way:

$ sh some/script/somewhere/to/run.sh

This way you don't have to set executable bit at all. If script is readable, you can execute it.


Does a virtual environment clone the folders under Home?

No, a virtual environment does not clone the directories in $HOME. A virtual environment is an isolated project-specific environment for invoking the Python interpreter and installing Python packages. This allows you to isolate the Python dependencies of multiple projects from each other.


I can't Access my internal Hard drive through shortcut applet of cairo dock

How apps are linked to the types of files (aka mimetypes) is defined in the .desktop files, in ~/.local/share/applications
It's completely broken in the 11.10, try to see if you can fix it by editing the nautilus.desktop file or the banshee.desktop file, or the mimeapps.list file.
I'm sorry, I had the same problem but I don't remember the exact way I could fix it, but it was by modifying one of these files.


Install wmctrl if necessary, then list your windows with wmctrl -l to find out their IDs. For example,

$ wmctrl -l
0x02a00002  0 fractina XdndCollectionWindowImp
0x02a00005  0 fractina unity-launcher
0x02a00008  0 fractina unity-panel
0x02a0000b  0 fractina unity-dash
0x02a0000c  0 fractina Hud
0x02c0000a  0 fractina Desktop
0x03600010  0 fractina memory usage - How to recognize which browser window corresponds to an ID in system monitor - Ask Ubuntu - Mozilla Firefox
0x03e0000a  0 fractina alexp@fractina: ~

It may be the case that you want process IDs and not window IDs; you can use wmctrl -lp to show the process IDs for the processes running in each window.


how to exclude directories and file zipping a directory?

I simply make a guess what you want.

-x ".*"

exclude all files beginning with a dot

do it like:

-x .\*

exclude all files (with a dot in the filename)

do it like:

-x \*.\*

--

-x "app/bower_components" -x "node_modules"

exclude this directory and all files in it

do it like:

-x app/bower_components/\* -x node_modules/\*

--

-x "*.zip"

exclude all zip-Files

do it like:

-x \*.zip

You exclude node_modules twice


How to figure out what causes hardware issues?

A good program for hardware diagnostic is Ultimate Boot.  You can download a bootable ISO at:

http://www.ultimatebootcd.com/
http://www.ultimatebootcd.com/download.html

While there are lots of links on the download page, the actual ISO download links are located under the mirror sites section.


Because you are seeing PHP source, it would indicate php is most likely the culprit, however it could be the apache configuration as well.

First verify if PHP is installed which php, if this returns, we'll make the assumption the package is installed.

Next try to install, sudo apt install libapache2-mod-php7.0.  After installation it should automatically enable the module in Apache and restart.  If not, sudo a2enmod php7.0 and test your page again.