How to upgrade to latest stable nginx on Ubuntu 18

I'm not sure where you are getting your instructions from but the first step you are failing at is not part of the official instructions posted at https://docs.nginx.com/nginx/admin-guide/installing-nginx/installing-nginx-open-source/#stable_vs_mainline

$ sudo wget https://nginx.org/keys/nginx_signing.key
$ sudo apt-key add nginx_signing.key
$ sudo vi /etc/apt/sources.list
    deb https://nginx.org/packages/mainline/ubuntu/ bionic nginx
    deb-src https://nginx.org/packages/mainline/ubuntu/ bionic nginx
$ sudo apt-get remove nginx-common
$ sudo apt-get update
$ sudo apt-get install nginx


How can I remove the workspace switcher indicator in GNOME shell on Ubuntu 18.04?

I fixed this issue by installing the gnome shell extension: "No Workspace Switcher Popup".

You can find it here:

https://extensions.gnome.org/extension/758/no-workspace-switcher-popup/


High power consumption through btusb and tick_sched_timer

If you are not using bluetooth (higher power consumption) you can simply turn it off.

To turn off bluetooth only temporarily, use rfkill:

$ sudo rfkill block bluetooth

To permanently turn off bluetooth create a udev rule:

$ sudo -H gedit /etc/udev/rules.d/50-bluetooth.rules

Then in the empty file, insert these lines:

# disable bluetooth
SUBSYSTEM=="rfkill", ATTR{type}=="bluetooth", ATTR{state}="0"

Save the file and exist.

Visit the link above for even more power saving tips.


neither prefork nor worker settings are found in /etc/apache2/apache2.conf - why?

Ubuntu 14 organizes all the module-specific configs in separate files under /etc/apache2/mods-available/, so the MPM prefork stuff is now located in /etc/apache2/mods-available/mpm_prefork.conf


problem with workspaces in xubuntu 11.10 compiz

With Compiz enabled Xfce does not handle workspaces, rather the compizconfig-settings-manager tool does.
Firstly, if you want the middle button in compiz gestures then disable the middle menu click in xfce Settings Manager:

Then you can use CCSM - sudo apt-get install compizconfig-settings-manager - to configure the amount of workspaces and how to switch between them.


Ubuntu Usb persistence problem with Ubuntu Software

I can verify that gimp can be installed and that it works in a persistent live Ubuntu 18.04 LTS [family flavour, Lubuntu].

My test system was installed into an old hard disk drive, that I have connected via a USB3 to SATA adapter. I used mkusb to create the persistent live system.

I have run gimp also in standard Ubuntu 18.04 LTS and it works also in a USB pendrive, if there is enough free space in the casper-rw file or partition. You must activate the repository 'universe' for the gimp package to be found and installed,

sudo add-apt-repository universe

Edit: Before giving up your current persistent live system, try to reboot.

If no luck, maybe it would be best to create a fresh persistent live system with mkusb, or
if your USB drive is big and fast enough to create an installed system in it, installed like into an internal drive but into a USB drive. Such a system can be portable enough (but not as portable as a persistent live system), and it is more flexible and stable, when we talk about installing program packages.


How do you get to the root directory that I need to delete a file in?

This will get you to the root from command line:

cd /

If you are using ftp it might go to the root of your ftp (not per definition the root of your system).

I would be careful if I was you: in general nobody creates files in "/".  Removing needs to be done with sudo in front of the rm and you need to be using an admin account.


Found solution.

sudo apt-get -m --reinstall install python python-minimal dh-python
sudo apt-get -f install

then:

sudo apt-get remove software-center
sudo apt-get update
sudo apt-get install software-center


How can I execute new commands while an existing command runs?

If the script (yes post it) doesn't need user action, you could start it in the background by appending & to the command:

start_the_wifi &

or, follow your Ctrl-Z with bg to put it in the background.

Read man bash, the Job Control section in particular.


This is the format:

ppa:user/ppa-name

In your case:

ppa:videolan/stable-daily

videolan is the user name. You can open http://launchpad.net/~videolan to see its page
stable-daily is the package archive name

This user has two package archives:


Yocto Bluetooth HFP: headset_audio_gateway not available

You need to enable modem after the connection:

/usr/lib/ofono/test/enable-modem


How to get SHA1 certificate fingerprint for Google Map API key

/usr/lib/jvm/jdk1.8.0_25/bin isn't in $PATH.

Just use the full path to invoke it.

/usr/lib/jvm/jdk1.8.0_25/bin/keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android


There is a PPA which includes Meld 3.18 for Ubuntu 14.04: ~jonathonf/backports. However, it also includes backports of a large number of other packages. I haven't tested this PPA, so maybe you should only install meld from it (see How do I cherry pick packages from a PPA?) and see if it works.

There's also another PPA which has Meld 3.14: ~pachulo/meld-backports.


Wireless Adapter is detected but not working (but, it works in Windows)

Hello how about that?

Broadcom-USB-sticks only work with ndiswrapper and the corresponding windows driver

  sudo apt-get install ndisgtk ndiswrapper-dkms dkms linux-headers-generic build-essential

Download driver media.cdn.ubuntu-de.org/forum/attachments/06/41/2612284-Broadcom_bcm43xx_USB_32_64bit_v2.tar.gz
Install driver

  sudo ndiswrapper -i
  ~/Downloads/Broadcom_bcm43xx_USB_32_64bit_v2/bcmn43xx64.inf

Load the driver

  sudo modprobe -v ndiswrapper sudo ndiswrapper -ma dmesg | grep ndis
  lsmod iwconfig ndiswrapper -l # thats a small L


Turning down the mic boost using alsamixer fixed it for me.

To do that, open a terminal (Alt-Control-T will do this) and enter the alsamixer command. Pressing the Tab button brings up "Capture" screen. Use the left and right arrow keys to select the mic boost slider and reduce it with the down arrow key. Press the Esc key to quit alsamixer.


I had same problem and following way i resolve it.
you should use command line for updating SDK

use following commoand.

go to [ADT bundle]/sdk/tools folder. by

cd /home/yousaf/android-sdks/tools/

then

 android update sdk

this resolve my problem.


Does upower's CriticalPowerAction=HybridSleep interfere with tlp's recalibrate?

The sleep condition is never met, because the laptop is connected to AC while discharging the battery during recalibration.


Why is check_linux_raid missing from nagios plugins in 13.04?

Yes this is intentional. See the changelog:

nagios-plugins (1.4.15-6) unstable; urgency=low

[...]
  * Removed check_bgpstate and check_linux_raid from package
[...]

Looks like /usr/lib/nagios/plugins/check_raid in the nagios-plugins-contrib  package does the job as well.


Why does "setxkbmap de" not have an effect in a terminal?

setxkbmap de does work, for example in Lubuntu.

But in standard Ubuntu it will be overwritten by a built-in application, that you can manage via the Settings menu.

Click on the icon with the cog wheel and wrench,

Settings menu - Text entry - button Keyboard settings - tab Typing - button Text entry

Add the input source German

and then you will be able to select language for the keyboard with the tray icon on the panel at the top of the screen from En to De


Decrease filesize when resizing with mogrify

I found the answer... it was in the "metadata"! Apparently this easily weighs about 18 Kb per image, so in the original you might not note this, but in the tiny resize it means 18 Kb + 2 Kb = 20 Kb total filesize. They significantly increased by doing:

mogrify -strip file.jpg


Ok, looking good.

If you have nothing to recover from disk 2 (sda, for some reason) and if we are in agreement that that is not the disk you are booting from nor the one which your currently working system is installed to...

then

you can format it using gparted :

select "Partition" -> "New Partition Table..." :

after that click apply

let it finish

and after that you can right click on the empty space and partition it to what you want (I prefer ext4).

Once you're done you may use disks to make this drive mount on boot : Hardware drives Hide

if you do not mind the hassle (and if the install is fairly recent, meaning you stand to loose little from formatting everything), then in the spirit of making things pitch perfect, you can format the drive you are not booted to and redo the install process.


HDMI Audio is disabled by default on kernel 3.0+ due to a black screen on some monitors to get audio working again:

Go to the terminal and write:

gksudo gedit /etc/default/grub

Then change the line:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

to

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash radeon.audio=1"

Type on the terminal:

sudo update-grub

Reboot and your HDMI sound will work again.

Here's the thread where I found the solution.


Why am I shown the Setup Screen (Choose Language) after every reboot?

If you are using Ubuntu 12.04 there was a bug with incomplete language support. Try running check-language-support -l en in your terminal (replace en with your current active locale). It will list all missing language packages for this locale. Install these packages using sudo apt-get install (you can copy the list from the output of the previous command) and reboot your system to check whether "Choose language" screen is gone.


How to install Windows 7 in a PC running Ubuntu 14?

The simplest way is to erase whole disk and install Windows 7 and then Ubuntu. It is not as stupid as it sounds. Installation, drivers setup, system update and work environment configuration of Windows 7 takes a few hours. So additional effort of installing Ubuntu again, which takes only about half an hour, does not really matter.


Good things to try are:

MailNag (fork of Popper), it is installable by
sudo add-apt-repository ppa:pulb/mailnag
sudo apt-get update
sudo apt-get install mailnag

Mozilla Thunderbird with BirdTray, installable by
sudo apt-get install thunderbird birdtray

BirdTray minimizes Thunderbird on start and then monitor its mail folders to indicate number of new e-mails and show notification about new mails.


Install Error displaying "nouveau" and numbers

The word nouveau in the picture of the screen makes me think it is an issue with the graphics driver. Nouveau is the name of the free linux driver for nvidia graphics.

Boot option nomodeset

Try with the boot option nomodeset to make Ubuntu work with nvidia graphics.

See these links and links from them for more details how to add a boot option,

A post at the Ubuntu Forums: 'Boot options'

My reply to a question at AskUbuntu: 'RAM drive' -- replace toram with nomodeset

Depending on the graphics card/chip model,

maybe it will work well enough,
maybe it will work, but you need [to install] a proprietary driver for the graphics to work really well. In this case you can start by searching the internet with the search string (without quotes) 'ubuntu 16.04 nvidia proprietary driver', and if it does not help you solve the problem, you can ask a separate question about it.


Boot into Recovery mode and choose "root" from the menu.
Give write access to the root filesystem by executing

mount -o remount,rw /

Create a new user with this command:

useradd testuser

Press Ctrl-D, choose to resume booting from the menu and log in with your new user.


Is there a similar Gnome Shell Extension like this one?

That extension is available for GNOME 3.18. The second-to-latest download says that it is for 3.18. If you don't want to bother clicking the second link, here's the direct download:

https://git.gnome.org/browse/gnome-shell-extensions/snapshot/gnome-shell-extensions-3.18.4.zip


14.04 aborts in the middle of installation, but somehow works fine

The OP said that Braiam's solution in the comment solved the problem:
sudo dpkg --configure -a and sudo apt-get -f install.


Not sure what kind is your video card, you can try this:

  sudo su
  wget http://smxi.org/sg/sgfxi
  chmod +x sgfxi
  ./sgfxi

This script is designed to help installing Nvidia/AMD proprietary drivers automatically downloading them from vendor's site.
I suspect kernel was updated.


Of course it will.

If you would have changed your repos on a 13.10 machine to Trusty ones, it would have went through all the alpha and beta phases. And finally changed into the final one.

Versions are basically meaningless. They only state milestones. Alpha, beta, RC tags too.
Big versions (such as 13.10, 14.04, LTS) only mean LTS/stable states, and that's it.
Even LTS/stable is just a different support timeframe nowadays.

(In the past, LTS had no major upgrades. I mean, in a Debian kind of way.
But that's not true anymore, even the latest LTS had a major graphical stack change lately.)

Even more explanation...

In Debian, you can stay on channels for testing, still-in-development and experimental, without ever rewriting your sources.list, or changing anything. Well, indeed, you need one change after a clean install. But that's it.
Ubuntu does not have this... yet. There is only a development channel by the new codename (which was Trusty Tahr). Which meant a highly unstable - usable - stable states altogether. It changed as time passed. Again, things can go FUBAR even with the latest beta.
With LTS versions (well, branches/codenames), you can usually switch to the new channel sooner, as LTS gets imported from Debian's Testing tree. Not from SID. But this is not a rule, you just have a better chance of getting a working system. If the state of testing is in a bad shape, things won't look any better.


USB printer works only with one notebook

After installing the "HPLIP plugin" the printer works:

HPLIP Plugin Download:

3.11.10: http://hplipopensource.com/hplip-web....10-plugin.tar
3.11.7 for Ubuntu 11.10: http://hplipopensource.com/hplip-web...1.7-plugin.tar

To install, extract the tar, make the content executable an run it as root:

tar xvf hplip-3.11.7-plugin.tar
chmod 775 hplip-3.11.7-plugin.run
sudo ./hplip-3.11.7-plugin.run

To configure hplip printers you can also install the HPLIP Gui from the repo, package name is hplip-gui:

sudo aptitude install hplip-gui


Ubuntu 14.04 sudden freezes and 100% disk usage

It looks like your physical RAM is getting full and the system starts to use the Swap. Programmes like Chromium can easily take up several Gb of RAM. On 12.04, with about 20 tabs open Chromium would get up to 2 Gb of RAM in less than a day.

You can start by monitoring closely your free RAM with the System Monitor. See if these episodes of high disk usage coincide with a full (or near full) RAM. If that is the case then try to understand if any programme stands out; both Chromium and Thunderbird could be the culprits.

In any case, if you are used to have multiple tabs open in your web browser, I would definitely advise you to use Firefox instead.


error processing linux-generic-lts-quantal, dependency problems - leaving unconfigured

Following guntbert's answer to Unmet dependencies: linux-generic...

I ran

apt-get remove linux-generic
apt-get install linux-generic
apt-get update
apt-get dist-upgrade
update-grub

This fixed the problem.


Can I try Ubuntu without affecting any of my existing files?

As indicated in step 2 of these instructions, you can try Ubuntu from the CD without affecting your installed files or existing operating system, but you should expect running Ubuntu from this Live CD to be slower than it would when installed on the hard drive.


How can I limit mysqld memory consumption?

I would use control groups to accomplish what you're asking.

Please read before following these instructions: I read on RedHat's documentation site that libcgroups has been deprecated recently. RedHat provides a guide for creating control groups with systemd here.

Also, in the methods described below *text* denotes a number or file name to be defined by the user.

Method 1: libcgroups (apparently deprecated)

You can install libcgroups, which contains a series of utilities for creating cgroups such as cgcreate and cgclassify, by typing sudo apt install libcgroups. Once installed, perform the following:

Create a cgroup called sqlgroup (or whatever you want to call it)

Type cgcreate -g memory,cpu:sqlgroup

Set memory limit.

cgset -r memory.limit_in_bytes=$((*mathExpressionForDesiredLimit*)) sqlgroup

Associate new group with the desired process to control.

If the process is currently running, use cgclassify by typing cgclassify -g memory,cpu:sqlgroup $(*PID of mysql process*)
If the process is not running, you can use cgexec by typing cgexec cpu,memory:sqlgroup *processName* *additional arguments*

Method Two: Manual Configuration

You can also accomplish this manually without installing additional packages using the following (Note: You must have systemd 232 or later. systemctl --version | grep systemd gives current version info):

mkdir /sys/fs/cgroup/memory/groupname. This creates a folder under [...]/cgroup/memory, which specifies that the cgroup will control memory. Note: change groupname to something that corresponds to the process you want to restrict. You can name it anything. In the previous method I described the groupname was sqlgroup.
Set the memory limit for the process by creating a file under the groupname folder you created that contains the memory limit in bytes. This can be done using: echo amount_in_bytes > /sys/fs/cgroup/memory/groupname/memory.limit_in_bytes. Do not alter the name of memory.limit_in_bytes.
Move the PID of the process you want to restrict into the cgroup.procs file. It can be created with echo *PID_Number* > /sys/fs/cgroup/memory/groupname/cgroup.procs. Note: If multiple processes with different PIDs are to be restricted, you will have to enter each PID into the cpgroup.procs file manually.

More advanced configuration options regarding cgroups can be found here.


Which version of percona db package should I install?

Come across found a few references to using the maverick installation without any trouble

I just tried installing -  went in without a hitch though I've yet to have enough timeto full test

running 11.04


Why cant i install any desktop environments in the ubuntu server 18.04.1? (unable to locate package kubuntu-desktop)

Standard Ubuntu only enables the main repository, which for 18.04 only has the GNOME desktop. You must enable the universe first to load any Ubuntu flavor Desktop Environment (inc. KDE/Kubuntu's).

For details on Repositories, you can look at
https://help.ubuntu.com/community/Repositories/Ubuntu

You can add it via

Ubuntu Software (see first link)
commands (see https://help.ubuntu.com/community/Repositories/CommandLine)

sudo add-apt-repository universe

adding universe to the file /etc/apt/sources.list using your favorite editor (you'll need sudo to elevate your rights to write to that file)

After this, you can sudo apt install kubuntu-desktop.


How to show a popup after login in 14.04

Once I did some tweaking, I got it to work.

Tweaks included:

  editing /etc/issue to include line breaks
  adding /usr/share/lightdm/lightdm.conf.d/50-show-dialog.conf with contents

[SeatDefaults]
session-setup-script=/usr/bin/mysess.sh

  editing my shell script to:

#!/bin/bash
    if /usr/bin/zenity --question --text="`cat /etc/issue`" --no-wrap ;
    then
        exit 0;
    else
        exit 1;
    fi

  rebooting


How to mount a shared folder of a windows system in Ubuntu Permanently?

Start by CIFS installation.  To do so, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command below:

sudo apt-get install cifs-utils

Once done you need to mount network folders.  For complete instructions and how to, see the Mount Windows Shares Permanently.

Source:Ubuntu Wiki


External USB hard drive, WD Elements, not power off itself

You need an additional package that contains a utility to actually power off the WD as WD does not support Linux out of the box:

sudo apt-get install usdisks2
sudo udisksctl power-off --block-device /dev/XdY

where X and Y are the letters corresponding to your disk.


Had the same problem. Opened Ubuntu Tweak, went to Tweaks > Login Settings. Changed Gtk theme to Ambiance. It was set to a different theme. Don't know how or why. And I even checked all the config files in /etc/lightdm beforehand. All of them showed they were using the Ambience GTK theme. So, I don't know what config file Ubuntu Tweak is changing, but changing the theme there fixed the login screen issue for me. Good luck!


Are you sure that MySQL DB is working on your localhost and have actually that user? Are you able to login to SQL shell?

Edit:
I tested Python code and it actually working for me (with and without parameters='something', double and one quoted). I think that your DB is not working.

Did you start it? I'm not using XAMP (for me it is not recommended to use it in Linux). You can install MySQL Server(without XAMP) with sudo apt install mysqlserver command, start it with: systemctl start mysql.service/ service mysql start
After that you can verify if daemon is running: ps -ef | grep -i mysql
then you can try to log in:
    mysql -u root -p

After that you can create DB and Table like this:

mysql> Create Database Dance;
Query OK, 1 row affected (0,02 sec)

mysql> commit;
Query OK, 0 rows affected (0,00 sec)

mysql> use Dance;
Database changed
mysql> CREATE TABLE cats
    -> (
    ->   id              INT unsigned NOT NULL AUTO_INCREMENT, # Unique ID for the record
    ->   name            VARCHAR(150) NOT NULL,                # Name of the cat
    ->   owner           VARCHAR(150) NOT NULL,                # Owner of the cat
    ->   birth           DATE NOT NULL,                        # Birthday of the cat
    ->   PRIMARY KEY     (id)                                  # Make the id the primary key
    -> );
Query OK, 0 rows affected (0,14 sec)

mysql> INSERT INTO cats ( name, owner, birth) VALUES
    ->   ( 'Sandy', 'Lennon', '2015-01-03' ),
    ->   ( 'Cookie', 'Casey', '2013-11-13' ),
    ->   ( 'Charlie', 'River', '2016-05-21' );
Query OK, 3 rows affected (0,07 sec)
Records: 3  Duplicates: 0  Warnings: 0

mysql> CREATE USER 'admin'@'localhost' IDENTIFIED BY 'password';
Query OK, 0 rows affected (0,07 sec)

mysql> GRANT RELOAD,PROCESS ON *.* TO 'admin'@'localhost';
Query OK, 0 rows affected (0,00 sec)

mysql> RANT ALL PRIVILEGES ON *.* TO 'admin'@'localhost' WITH GRANT OPTION;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'RANT ALL PRIVILEGES ON *.* TO 'admin'@'localhost' WITH GRANT OPTION' at line 1
mysql> GRANT ALL PRIVILEGES ON *.* TO 'admin'@'localhost' WITH GRANT OPTION;
Query OK, 0 rows affected (0,00 sec)

mysql> commit;
Query OK, 0 rows affected (0,00 sec)

If DB is up and running then you write bad code, could you add parameters in MySqldb.connect() like here:

>>> db=MySQLdb.connect(host='localhost',user='admin',passwd='password',db='Dance')
>>> cursor = db.cursor()
>>> cursor.execute("SELECT * FROM Dance.cats")
3L
>>> numrows = cursor.rowcount
>>> for x in range(0, numrows):
...     row = cursor.fetchone()
...     print row[0], "-->", row[1]
...
1 --> Sandy
2 --> Cookie
3 --> Charlie
>>>

SRC:

https://stackoverflow.com/questions/372885/how-do-i-connect-to-a-mysql-database-in-python


Can't delete ~750G error log produced after changing permission for /usr/bin/ (sudo not permitted)

Well the "solution" should not be too bad.

Boot a live Flash drive / CD or to recovery mode and delete the large log files.

To delete files you need to remount the root file system rw

mount -o remount,rw /

For details see https://wiki.ubuntu.com/RecoveryMode
If you used a live Flash / USB reboot to recovery mode now. If you are already in recovery mode continue with

apt-get --reinstall install \`dpkg --get-selections | grep install | grep -v deinstall | cut -f1\`

For details see

http://hyperlogos.org/page/Restoring-Permissions-Debian-System


torch.cuda.is_available() False after a fresh installation of drivers and cuda


Cannot access external hard disk after using it in windows 10?

I assume that the file "Backup Junio 2016" cannot be displayed/edited in both Windows and Ubuntu, and gives an error in both cases.
I assume that the disk is formatted/partitioned in GPT partition table format.
In Windows
I assume that the disk has a NTFS partition on it, and that it's NOT a bootable Windows external disk. If that's the case, attach the disk while in Windows. Then open an administrative command prompt window, and type chkdsk /f d: changing the "d" to the correct drive letter. This will correct any errors in the file system.
If it IS a bootable Windows external disk, then do this in Windows:

open the Power control panel
click on change what the power buttons do
click on change options that are unavailable
uncheck fast start
close the Power control panel
open an administrative command prompt window
type powercfg /h off (turns off hibernation)
type chkdsk /f c:
approve that chkdsk runs at next boot time
reboot Windows

In Ubuntu
Attach the disk while in Ubuntu. Open the Disks application from the Unity dashboard. Select the erroring disk in the left pane. Go to the "hamburger" icon in the top-right corner of the Disks window, and select SMART Data & Tests. Observe the data, and run the tests, and see if SMART can tell you about the condition of the drive.
Then, assuming that the drive comes up as /dev/sdb (or /dev/sd_whatever), open a terminal window and type grep sdb /var/log/syslog* (or grep sd_whatever /var/log/syslog*) and look for disk errors. If you need help interpreting what you see, upload the output text to http://paste.ubuntu.com and give me the URL and I'll take a look for you.


As you have one user that works in the GUI and an admin that works in console mode, you have all you need to recover your system without re-installing it.

Log into the Admin account using Ctrl+Alt+F1 and type:

sudo adduser admin-new

Enter all info and then type:

sudo adduser admin-new adm
sudo adduser admin-new cdrom
sudo adduser admin-new sudo
sudo adduser admin-new dip
sudo adduser admin-new plugdev
sudo adduser admin-new lpadmin
sudo adduser admin-new sambashare

log off and log on as admin-new using the GUI (if this doesn't work, report back here)

Open a terminal with Ctrl+Alt+T and type:

Warning! Do not try to be smart and do a cp --recursive /home/admin-old/* /home/admin-new/ as this will copy the error(s) you have in your current user settings!!!

cp --recursive --no-dereference /home/admin-old/Documents/* /home/admin-new/Documents
cp --recursive --no-dereference /home/admin-old/Downloads/* /home/admin-new/Downloads
cp --recursive --no-dereference /home/admin-old/Pictures/*  /home/admin-new/Pictures
cp --recursive --no-dereference /home/admin-old/Templates/* /home/admin-new/Templates
cp --recursive --no-dereference /home/admin-old/Desktop/*   /home/admin-new/Desktop
cp --recursive --no-dereference /home/admin-old/Music/*     /home/admin-new/Music
cp --recursive --no-dereference /home/admin-old/Public/*    /home/admin-new/Public
cp --recursive --no-dereference /home/admin-old/Videos/*    /home/admin-new/Videos

(Leave out the stuff you don't really need any more like the old Downloads directory or the Templates or …)

You now have 99% of all your stuff back! (if you do not have enough space to do the above all together, delete the original in-between copy commands)

If you want to copy any additional directories beyond those above, make a full system backup first because one of the directories you didn't copy contains the error.

Now do a: deluser --remove-home admin-old


There is varying opinion on what the size of the swap should be - here are the Example Scenarios provided in the Ubuntu wiki:

RAM(MB) No hibernation  With Hibernation        Absolute maximum
 256     256              512                     512
 512     512             1024                    1024
1024    1024             2048                    2048

RAM(GB) No hibernation  With Hibernation        Absolute maximum
  1      1                2                       2
  2      1                3                       4
  3      2                5                       6
  4      2                6                       8
  5      2                7                      10
  6      2                8                      12
  8      3               11                      16
 12      3               15                      24
 16      4               20                      32
 24      5               29                      48
 32      6               38                      64
 64      8               72                     128
128     11              139                     256

Here also a table from the Fedora 64bit docs:

This mainly depends if you need want to hibernate or not - you need more as it saves the state of the system from the RAM to the swap.

Note swap may slow things down if swappiness is not configured correctly - you can read this question to find out how to do it.

If you need to increase the size of (or create) swap space, there are a few nice answers here.


Where do you get the latest nginx-extras? 1.16.1 is old?

Maintainer of the NGINX PPA repository here!
It's pending being copied into the stable repository.  Got some build errors hitting the builders that have prevented me copying a newer into the stable repos.  I'm working on a fix for that in those repos.
Patience please, I've got a lot of obligations outside of Ubuntu to get through ;)
Note that the repository in question only supports current releases of Ubuntu, with the exception of Xenial 16.04.
EDIT Looks like my workflow/workers that handle the initial testing forgot to mention they didn't fail so it's been sitting waiting for me to act for a while since July.  The packages are copying from the Staging PPA to the main NGINX PPA and that can take up to an hour to be reflected.


One core goes to 100% usage and activate fan on Ubuntu 18.10,

Use a tool like top during the spikes to see which processes are using up your CPU and then kill them (by closing the app or with the kill CLI tool).

Or if it's a kernel issue, you would see some errors in dmesg, so at least run the command. If there's some text that's red colored or looks like an error that could be the problem.


Is it possible to change just the header of a file?

Yes, it is possible to alter a binary file with any hex editor. All you need to do is find the magic number and change it. An MP3 file will start with hex 49 44 33 (=ID3) or hex FF FB.

The magic number for a RAR file is hex 52 61 72 21 1A 07 00. If you need more see: http://www.garykessler.net/library/file_sigs.html

A good hex editor might be Bless.


Dual booting windows 10 and Kubuntu 18.10 doesn't install the grub menu

According to this page you can use the boot repair tool, I had a similar situation but with Kubuntu installed first, after using this tool the problem was solved.


How do I set the refresh time in Gwibber to one second?

Gwibber got an update for Ubuntu 11.10, and not all the old features made it to the new version. It's a big improvement overall but it is still a work in progress.

You can report bugs or ask questions on their Launchpad page here, or just wait for the next big update in Ubuntu 12.04.

Setting the refresh time to one second is not possible, that's because of rate limiting by Twitter. It has nothing to do with Gwibber. If you somehow set this anyway, Twitter would just return errors after about 350 requests/hour, or less than six minutes. More info on that is available on Twitter's rate limiting FAQ page here.


Because there is a bug.
This one: https://bugs.launchpad.net/ubuntu/+source/openbve/+bug/1273393
which is confirmed and hopefully someone is working (will work) on it and fix it.


Correct way to modify php.ini for Apache and/or CLI

FYI, configuration files in /etc/ installed by a package are not overwritten by default; on upgrade if a file changes a prompt is presented with options.

Coming back to the original question, here is how I would do it:

Create a config file /etc/php/7.0/mods-available/50-mydirectives.ini and do common configuration there; then use phpenmod mydirectives to enable it.
Do apache and cli specific configuration in /etc/php/7.0/apache2/conf.d/ and /etc/php/7.0/cli/conf.d/ respectively.
Do virtualhost specific configuration in the virtualhost itself.

With the above configuration will not need to edit system provided php.ini.

Related:

https://stackoverflow.com/questions/13383806/what-the-ini-files-in-etc-php5-conf-d-folder-are-for
https://duraturk.wordpress.com/2014/04/27/php5enmod/


Why does the installing partition creator add free space at the beginning and end of my disks?

The purpose of the 1MB block at the beginning of the block is likely the bootloader.  uboot is frequently used in Linux distributions and a 1MB block is pretty standard to leave in that location.

Not sure as to the hundreds of KB left at the end of each disk though.  It could be several things, especially if you have a larger block size set which leaves that space as a remainder.


Does Ubuntu support onlive universal controller?

For modern games, the Xbox360 controller is your best option, as it's the best controller out there and reasonably well supported right out of the box. If you need more configurability, you can use xboxdrv instead of the build in kernel driver. The wired USB version is also pretty cheap.

The Dualshock can work over USB instead of Bluetooth. Support for it is however a bit flunky, as each button on the thing is reported as both axis and key event, which confuses most games. xboxdrv should however be able help with that, Qtsixa might as well.

As for the OnLive controller, no idea. Given that it comes with an USB dongle, there is a good chance that it will just work out of the box like any other USB device, but I don't have any experience if that is actually the case.


How do I use last.fm in Rhythmbox without subscribing?

Works out of the box- just hit last.fm in the side bar, login & authorise RhythmBox and you can listen to last.fm stations. No need to install anything extra from the repo's.

For some people the lastfm plugin works if you first disable the plugin and re-enable the plugin again.


The problem looks related to your BIOS setting try entering your BIOS and look for some thing named IDE STORAGE MODE or STORAGE COMPATIBILITY MODE and change that from RAID or AHCI to IDE or COMPATIBLE mode.


Computer will not boot. Black screen with cursor only

It seems like a hard-disk problem, are you sure, that you're hard disk is OK?
(for a quick check you can unplug it, and try then to boot from CD/USB drive. Ok, for a laptop this won't be so quick, but maybe you can check from bios) Ubuntu should boot from USB or CD even if you don't have a hard drive, and for me it take long time to boot, when I had a faulty hard drive...


How to remove inactive icon from installing software?

Removing the launcher was not doing it, but rebooting for second time did. Problem solved! Btw, sorry if I have been unclear in my formuling


Any way to access command line when desktop freezes?

You may be able to access the command line only interface by pressing Ctrl + Alt + F1 and then typing your short username (it has no spaces, is all lowercase) and password to login. Then you have a full screen terminal that is not dependent on the GUI.

You may be able to restart the graphical interface by pressing Alt + Sysrq + R and then Alt + Sysrq + K. Be forewarned though that will log out any graphical sessions so you will loose any unsaved work in the GUI, etc.


Can I restore my ubuntu14.04 backwards to the time I did the installation?

Short answer: you can't do it as on windows (I guess you're talking about system restore point) unless you cloned the partition (using Clonezilla/partclone for example).

Long answer: in theory, you can parse /var/log/apt/history.log.* files, then purge all packages that were installed after initial install, and then downgrade packages (check the earliest upgrade to check what was the original version installed) ... but then some config files might have changed location/name/syntax and ... no, you don't want to do that.


How can I force banshee to organize my music folder?

This did the trick for me:

Remove all music from the library
Make the changes
Restart Banshee
Check the settings are still there
Import media.


I added it in the following section, in /usr/share/X11/xorg.conf.d/40-libinput.conf before the EndSection marker:

Identifier "libinput touchpad catchall"

There is a mistake above, the last character should be double-quotes...like such:

Option "Tapping" "true"

Works really well for me after restart.

Obviously you need to su/sudo all of this.

Hope this helps.


X11VNC server keeps disconnecting on Ubuntu Mate 18.04

Ok, this is an attempt at an actual answer.
I have tried two different VNC clients. An older version of Real VNC, and a newer version of Real VNC.
The older version experiences regular disconnects to an Ubuntu MATE 18.04 box running X11VNC, but (so far) the newer version of Real VNC does not disconnect.

The Old version was Real VNC Viewer 5.1.0 (64 bit), running on Windows 8.1 Pro
The New version is Real VNC Viewer 6.17.1113 (64 bit), running on Windows 8.1 Pro

It may be that there is some difference in the default settings between the old and new versions that behaves differently with whatever has changed on Ubuntu's X11VNC, but I haven't identified which setting (encryption method maybe???).

What I do know is that the old VNC version worked perfectly with Ubuntu 16.04 LTS (with MATE desktop), and became highly unreliable with Ubuntu 18.04 LTS (with MATE desktop)

I would recommend using this new version of Real VNC viewer as your solution.
Hope that helps.


Does the freequent use of CAT command badly affect the hard disk performance?

I'm not sure what you mean by affecting hard disk performance or by the internal works of cat, but the thing here is that you are doing very I/O expensive stuff: reading from the disk (the "many files") and writing to the disk (the "one" file).

Combined with that you do this quite often, you are doing a lot of work on your harddisk. If you are doing this on one harddisk, continuously, it will affect performance. Not per se because of cat, I believe cat isn't especially an issue here, but because of the intrinsic I/O effect of your functionality.

If you keep on reading and writing from a disk (especially when it is the same), you'd have a noticable performance effect on all other programs that want to read or write. How much is just a question of the speed of the system, if there are any breaks in reading/writing at all, how many disks you are using, etc etc.

So yes there CAN be, but as with all performance questions: you should really TEST if it is the case. That is the only valid metric.


Bluefish: open files on start that were open before

I found a solution myself:

create a project
save it
change the command to run bluefish (eg. bluefish.desktop) to "bluefish -c /absolute/path/to/project-file.bproject %F"


I cannot find my newly-created ubuntu directory

It looks like you installed Ubuntu as a WSL (Windows Subsystem for Linux) version 2 instance.
The Ubuntu filesystem of such an instance is stored in a virtual disk which is visible in Windows as a single container file %LOCALAPPDATA%\Packages\%Distribution%\LocalState\ext4.vhdx (where %Distribution% is the internal Microsoft package name of the Ubuntu Release you chose.)
The individual Linux files are therefore not directly visible from Windows.
You can access them through the special network node \\WSL$ provided for that purpose.
For example, to access my home directory in the Ubuntu 20.04 WSL2 instance I have on my Windows 10 notebook I navigate to \\wsl$\Ubuntu-20.04\home\tilman in Windows Explorer.


This answer may be a bit late, but anyway. Any text editor that supports utf-8 should be able to handle any unicode character. This includes gedit, Kate and leafpad. The only exception I can think of off the top of my head is IDLE which can't display characters not found in the Unicode Basic Multilingual Plane. The hard part is writing the characters if they aren't on the keyboard. One option on Ubuntu is to click the button near the top-right corner of the screen that changes the keyboard language, then click "Character map". You may want to resize the window slightly and then change the width of the language list though. Note that I have my keyboard set to Spanish, so where you see "Es" on my screenshot, it may say something different on your screen. The character map can also be launched by searching for it. Another to write characters not on your keyboard layout is to find their unicode codepoint in hexadecimal (e.g 1f337 for  or 15d for ŝ. Once you know that code, you can press control-shift-u, type the code and press space. There is of course also the option of copy-pasting characters from some document that already contains them.

Character Map item selected from keyboard layout pop-up menu in the top right corner of the screen

It's worth noting that some keyboard layouts may be different from how they are on Windows, for example if I press a, s, d and f with the Spanish keyboard layout whilst holding down Alt Gr (that's the "right alt key" on English keyboards), I get æ, ß, ð and đ, even though those are not used in Spanish or in any of the Spanish regional languages. So you may want to check out some of the layouts in case one of them contains the characters you need. It's generally faster to type something than to have to find it on a list.


How do I mount ejected external USB flash Via terminal

First check what dev is your usb. It should be in FAT (most common) or NTFS

sudo fdisk -l

First you have to create mount point.

sudo mkdir /media/external

If your USB device is /dev/sdb1 and FAT

sudo mount -t vfat /dev/sdb1 /media/external -o uid=1000,gid=1000,utf8,dmask=027,fmask=137

NTFS

sudo mount -t ntfs-3g /dev/sdb1 /media/external

For unmount

sudo umount /dev/sdb1

or:

sudo umount /media/external

I basically told you what is written in the wiki.


Can not start the Virtual Machine No KVM Installed

After couple of hrs and 2 days of troubleshooting.... VMware threw me the answer.  It was right in front of me... The solution to the KVM issue I got was simple modification in Bios.  The Vt-x need to be enabled and Execution Prevention should be disabled.... Both VMM and VM Player is working fine.  However  I have to restore the VM's from the Back up as it was corrupted.  Apart from that... all is working fine..... So Far... :)

Thank you guys.....


add a new column with a constant into a file

If you just want to append 0 to the end of each line, this is probably done most easily with sed:

$ sed 's/\s*$/ 0/' YOUR_FILE
11443 225 3 0
1245645 22 3 0
18966 2975 3 0

This only displays the changed data, to directly modify the file in-place, add the -i flag:

sed -i 's/\s*$/ 0/' YOUR_FILE

What this sed command does is to match the regex pattern \s*$ (matches the line end plus any number of trailing whitespace characters) on each line and replace it with the string  0.


Why isn't sudo apt-get update an automatic thing?

Technically speaking, the GUI version of apt-get update does it automatically already - those already cater to the needs of a desktop user. Command line tools   are more of a technical type of user, typically admins , who know what they're doing.

However, there's nothing stopping you from making a script out of it, and reviewing logs every once in a while. For example, here's a quick sketch:

#!/bin/bash

main()
{
  local DATE=$(date +%Y_%m_%d_%H_%M)
  local LOGFILE=AUTO_UPDATE_$DATE
  local DIR="/home/localuser/logs" # where to store logs

  apt-get update &> "$DIR"/"$LOGFILE"
}

main

And use that as script to run upon shutdown or reboot using /etc/rc6.d directory scripts or alternatively - cronjob to schedule this script at specific time of day. Remember though that checking logs will be your responsibility.

In future, there will come snappy - a newer system for transactional updates which is now is in very young stage and supposedly should come to 16.04.  My experience with it is somewhat limited, but on Raspberry Pi it does update automatically and reboots itself once newer version of packages are available, sort of how Windows update works

Addition

Per muru's suggestion one could use unattended-upgrades to automate the updates as well, and probably in a less verbose way than my solution.


man lxc-create says :

-P, --lxcpath=PATH
          Use an alternate container path. The default is /var/lib/lxc.

Did you try this ?


Is it possible to hide arbitrary panel indicators?

To get rid of the messages panel you could just remove it. I did that too and it works fine:

sudo apt-get remove indicator-messages

I don't know how to hide the keyboard layout panel, but as far as I know if you remove all but one kayboard layout it will be automatically hidden.

Edit: So here is how to hide the keyboard layout panel: How to remove keyboard indicator?


how do you permanently disable the screen saver in Xvfb?

Uncontrollable screen saver is often due to the default configuration of X, which is most conveniently changed by editing or creating a new /etc/X11/xorg.conf. Use sudo nano /etc/X11/xorg.conf to edit the file. Add the following section:

Section "ServerFlags"
    Option "BlankTime" "0"
EndSection

For more information see the xorg.conf manual page


You have to run it in the background. That is achieved using the single "&" character after a command:

(skype &
sleep 3
skype-wrapper &
sleep 5
empathy &)

The commands have to be separated by a new line character (unless someone else has a better idea).


I cannot run miniedit on my ubuntu console. It sends this error message

https://stackoverflow.com/questions/59517716/how-to-use-miniedit-in-mininet-can-anyone-suggest-the-commands notes you must launch miniedit.py from a remote terminal "that has visualization" using ssh .


You can use the Network Manager applet to configure VPN connections. You need to install the openvpn plugin first.

Either from the command-line:

sudo apt-get install network-manager-openvpn network-manager-openvpn-gnome

Or through the software center (search for network-manager-openvpn-gnome).

Then, your network applet menu will let you configure VPN connections. It will have an additional "VPN Connections" menu, with a submenu to "Configure VPN...". From there, you can import your existing .ovpn file, enter the location of your key and certificate files, enter the key password, etc.

Depending on your vpn server configuration and your needs, you may also want to:

define special DNS servers ?
check "Use this connection only for resources on it's network" ?
etc.


What format should I format/partition the SD card for running Ubuntu (Crouton) from it on Chromebook?

ext4 is highly recommended for a ubuntu installation.


I know you asked this a long time ago, but anyway, in case somebody else is experiencing this problem, which I did, I found a solution: Installing Nero Linux 4.
It burns MP3 CDs (in data mode), but they can be played on any mp3 capable player.


How can I remove Wine 1.4rc3 and install Wine 1.3.37 from Ubuntu PPA?

winecfg will use the profile it's told. Do you use a single wine directory for everything? I'm told that's not a good idea. Try to use another profile (for instance, by renaming ~/.wine to something else.) and see if that works.


Virtualbox can't access shared folder (auto-mounted)

In Ubuntu, you need to add your username to the vboxsf group.

In terminal...

sudo adduser username vboxsf

Then either log out/in of that username, or reboot Ubuntu. You'll find the shared folder (sf_foldername) in the left pane of a Files (Nautilus) window.


Upgrading gettext in Ubuntu 16.04 to version of 17.04

In the default repositories gettext 0.19.8.1-1ubuntu2 is in Ubuntu 17.04 (https://packages.ubuntu.com/zesty/gettext). In 16.04 there is gettext 0.19.7-2ubuntu3.
So, you would get gettext 0.19.8.1-1ubuntu2 automatically if you install or upgrade to 17.04. But you could also manually install the package of 17.04 for 16.04 with dpkg.


It depends on how you launch Minecraft.

I'll provide solutions for the two most common methods, that way other people can benefit as well.

Generic Steps - either method of launching must follow these

The following steps are generic and work for whatever method you launch Minecraft by, they're simply how you set up SimpleScreenRecorder to record OpenGL

Start up SimpleScreenRecorder. You obviously need to have it installed, so do that.
Set it up as follows (ignoring the Profile title - that's just my custom profile):

You need to select Record OpenGL (experimental), then set the FPS you want to record at - 30 FPS & 60 FPS are what most Youtubers use.

Anything above 60 FPS is just wasted and harder to work with, since you can only upload to Youtube in up to 60 FPS.

Method 1: Launching via Minecraft Peep's launcher

If you installed Minecraft/run Minecraft via Minecraft Peep's launcher, this is fairly simple.

Since you can launch Minecraft from the terminal via the command minecraft, you simply put that in for the command:

Minecraft Peep's-specific steps:

Install Minecraft Peep's Minecraft Launcher (works in 12.04 through 14.04) via:

sudo add-apt-repository ppa:minecraft-installer-peeps/minecraft-installer

and then

sudo apt-get update && sudo apt-get install minecraft-installer.

This should install the launcher and make it so you can launch Minecraft via the program in the launcher and via the command minecraft. Note: You'll still need to install Java to run Minecraft.
After installing the Minecraft Peep's launcher and setting up SimpleScreenRecorder for OpenGL recording (detailed above), click on OpenGL settings... and set the next windows as such:

You need to type in minecraft in the command text box and then select Launch Automatically.
Record! You can set the rest of the parameters as you like.

Method 2: Launching via java -jar command

This is probably the most common way that people launch Minecraft on Ubuntu, by downloading the Minecraft.jar file and launching it manually either in the terminal or by Alt+F2.

Manually launching-specific steps:

Download the Minecraft.jar file from the Minecraft website. You'll also need to install Java.
Put the jar wherever you want. The place where you launch it from won't change how it works (unless it's stored on an external HDD or USB stick.) I personally just leave it in my /home/USER/Downloads folder where I downloaded it to.

Just remember where it's stored.
After downloading the Minecraft.jar file from the site and setting up SimpleScreenRecorder for recording OpenGL (detailed above) click on OpenGL settings... and set the next windows as such:

If you simply downloaded the Minecraft.jar file you can just enter into the command text box the following:

java -jar ~/Downloads/Minecraft.jar

and it should work!

If you moved the downloaded Minecraft.jar file, you'll need to enter java -jar followed by the full path to the file.
Record! You can set the rest of the parameters as you like.


Steam crashes immediately on Ubuntu 20.04

You added this to your question:

It's fixed now by running
sudo dpkg --add-architecture i386
sudo apt install lib32z1 lib32ncurses6


sudo permission denied on nmcli : ubuntu server 64 raspberry pi 3

I had a similar problem on Ubuntu 18.04 LTS. I fixed it with snap connect network-manager:nmcli as described in man-page


aklog: a pioctl failed while obtaining tokens for cell xxx - what to do?

Are you sure that openafs daemon is started?

Try sudo /etc/init.d/openafs start


Connecting Raspberry Pi to Ubuntu 18.04 through physical Ethernet using SSH

Your PC and PIs can't talk because they are not on the same IP Subnet.  The simplest thing to do is to manually configure your PC just like the Pis, with an address from the 169.254.XXX.XXX space with a net mask of 255.255.0.0.
It is also possible to add that address to the Ethernet as a secondary address, so that you both have DHCP as well as the manual IP from 169.254...  If you do this, then it will be able to reach the Internet and also the Pis on the same interface.


ThePirateBay Lense Not Removing from Unity

I think that when you installed the unity-scope-piratebay and python-lxml packages, they also installed the python-cssselect and unity-lens-torrents packages.

After removing the unity-scope-piratebay and python-lxml packages, you will have this in the dash:

I think this is the unity-lens-torrents package.

So yo can try to remove that package with:

sudo apt-get purge unity-lens-torrents

Then logout and login to see the changes.

Hope this helps.


canon mx535 doesn't work after upgrading to 18.04

your system shows the printer in the "devices". have you checked system settings in the printer options yet? maybe the printer has disappeared from there and you need to add it again.


How to restore Unity login after installing MATE

You can try re-installing the ubuntu desktop packages and unity, then rebooting.

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


Linux - Closing screen session terminates process

screen is intended for command-line applications but you seem to be using it with a GUI application according to your error message: Command-line applications should not interact with the X server.

Avoid running GUI applications from screen or use another approach, e.g. VNC.


Recursively apply the msgfmt command to all .po files in directory with find -exec

How about -execdir?

This differs from -exec in that it runs the command from the same directory that it finds the files (rather than the current working directory). Given that you're only going to find one translation.po file in your LC_MESSAGES directories, we can lock things right down and not have to fuss around trying to snap the extension off the end of the path.

find . -name \*.po -execdir msgfmt translation.po -o translation.mo \;


Unable to set background image using python (2.7.3), bash and gnome3

Drop all the os.system and subprocess stuff. Just use the Gio/gsettings API, like this:

from gi.repository import Gio

settings = Gio.Settings.new("org.gnome.desktop.background")
settings.set_string("picture-uri", "file:///path/to/image.png")


The OP solved the problem and reported the solution in a comment:

  I resolved the prob by adding a DEBUILD_DPKG_BUILDPACKAGE_HOOK var in
  /etc/devscripts.conf. I have just to specify path to my hook. And
  everything is OK :)


http://www.iasptk.com/how-to-set-up-nginx-as-a-reverse-proxy-for-apache2-on-ubuntu-1204-

How To Set Up nginx As A Reverse Proxy For Apache2 On Ubuntu 12.04


You can install JDK using following command :

  sudo apt-get install openjdk-7-jdk

And then run

  sudo update-alternatives --config java

command and select JDK instead of JRE. And then try to run

  studio.sh

Hope it helps


How can I repair boot failure due to moved boot sector?

If you move the head end of the boot partition (which is the root partition, if the /boot directory is there), you must repair grub. You can do it according to the description in this link,

help.ubuntu.com/community/Grub2/Installing#Reinstalling_GRUB_2

Manual methods are described as well as the automatic method with Boot Repair. You have better control, when you use the manual methods with the command line tool grub-install.


Before Installing Ubuntu on PC with SSD & HDD

Set up /home in HDD during install
You may already know what /home is. It is the Ubuntu equivalent of C:\Users in Windows. This is where users' personal files are stored.
To do this, during install, select the "Something Else" option.

Here, you will see both your SSD and HDD. Your SSD will probably be called /dev/sda and your HDD will be called /dev/sdb. (This may vary. Pay attention to sizes and partitions you have created before.)

As you said you are not going to dual boot, I am going to assume that you are OK with formatting the whole SSD. Ok then, here goes.

1st Partition: EFI (For separate EFI partition. This is where your UEFI boot files are stored.)

Select your SSD.

Select "Make New Partition Table". (IMPORTANT: This will format the entire disk. Do not do this if you have any data you want in this disk.)

Select the free space.

Select "+".

Partition the target SSD as follows:

Size: 650 MB
Type for the new partition: Primary
Location for the new partition: Beginning of this space
Use as: EFI (this will be listed as /dev/sda1 efi in the partitioning tool once you create it)

2nd Partition: Root (All the software you install is stored here.)

Select "free space" under your target drive (in my case /dev/sdc).

Select "+".

Partition the target drive as follows:

Size: min. 10 GB (25+GB recommended. I have 40GB)
Type for the new partition: Primary
Location for the new partition: Beginning of this space
Use as: ext4
Mount point: Choose /

3rd Partition: Home

Select your HDD.

Make free space by selecting "-".

Select "+".

Partition the target drive as follows:

Size: All of the drive or any size you want. (You will need to leave some space if you want to make another partition. Of course, you can always shrink /home partition later.)
Type for the new partition: Primary
Location for the new partition: Beginning of this space
Use as: ext4
Mount point: Choose /home

For the bootloader device, select the SSD.

You could instead set up /home in HDD after install, but it is a bit complicated. See this guide on How to Geek on how to do it. You can do the steps up to create a file system using GUI with Gparted (install with sudo apt install gparted in terminal).
Set up HDD to automount after install

Format and partition your HDD using GParted (install with sudo apt install gparted in terminal).
Go to the "Disk" utility.
Select your HDD.
Select the icon with 2 cogwheels.
Select "Edit Mount Options".
Turn the "User Session Defaults" option to "Off".
Check the box "Mount at system startup" Make sure "Show in the user interface" is also checked.
Change the "Mount point" to something less complicated like /mnt/MyFiles.
Click "OK".


How to download Ubuntu One App on Samsung Note II?

The Bar Code will most likely link you to the Google Play market. A quick google search yielded this download link (not verified). Make sure you can install apps off market by clicking on the binary installer (apk file) after downloading.

It's better if you can install it from the market because you'd get automatic updates, but if it ain't broke, no need to fix it, right? At least Android gives you the option to install apps off market. If it's not enabled, when you try to install an APK binary, the prompt will take you to the settings where you can toggle this.


To remove cron jobs belonging to another user:

$ sudo su [-l] other-user-name  # if other-user-name is a login user (option -l)
        # ^  ^ brackets indicate that you can just as well not use the option -l
$ crontab -e
... suppress the cronjobs that you identify as dupes or superfluous
... quit your crontab editor.

To remove root cron jobs:

$ sudo -i crontab -e
... suppress the cronjobs that you identify as dupes or superfluous
... quit your crontab editor.

To remove present user's cronjobs (for the sake of completion):

$ crontab -e
... suppress the cronjobs that you identify as dupes or superfluous
... quit your crontab editor.

NOTE: cron will automatically take the new crontabs into account.

NOTE: Rather than to downright delete the lines corresponding to what you identify as spurious cronjobs, you might first want to simply comment them out. In a week time, after you've had time to check that "all is well", you can proceed with the actual deletion by revisiting the crontabs as shown above.


I don't know if this will help, but it worked out for me. I was looking to upgrade GDAL, and since I had installed it manually from source, I wanted to uninstall the old version first. So I read somewhere (sorry but I had so many tabs open that I can't find it now) that I should just install the latest package and that would override the previous. And I read another comment saying next time instead of using sudo make install I should use sudo checkinstall which creates a deb package wich is uninstallable later running sudo dpkg -r <name_of_your_package> so I just installed the version I had with sudo checkinstall (overriding what I had, and creating the package) and then I uninstalled that using sudo dpkg -r gdal. I know it's not the most elegant thing, but it worked for me.


Mount partition sdb get message permission denied?

To Mount a Drive

Check the file system using to see the filesystem informations ,

sudo tune2fs -l /dev/sda5

Then change the journal Using

sudo tune2fs -j /dev/sda6

First Create a Directory inside home

 mkdir -p /home/datadosen

Then Mount Using

 sudo mount /dev/sdb5 /home/datadosen

Never Use 777 permission, It's a Security breach, Any one can modify your file's.


Missing library error while installing oracle 10g client

If oracle applications, such as sqlplus, are complaining about missing libraries, you can add the Oracle libraries to the LD_LIBRARY_PATH each time it is used:

export LD_LIBRARY_PATH=/usr/lib/oracle/<version>/client(64)/lib/:$LD_LIBRARY_PATH

For example, 12.1 version for Linux x86_64:

export LD_LIBRARY_PATH=/usr/lib/oracle/12.1/client64/lib/:$LD_LIBRARY_PATH

or to add it to the system library list create a new file as follows:

sudo vi /etc/ld.so.conf.d/oracle.conf

and add the oracle library path as the first line. For example,

/usr/lib/oracle/12.1/client64/lib/

or

/usr/lib/oracle/11.2/client/lib/

Then run ldconfig:

sudo ldconfig

(Quoted from: https://help.ubuntu.com/community/Oracle%20Instant%20Client)


Virtualbox Blank USB Filter - Now Mouse and KB doesnt work

You can modify the virtual machine settings on the command-line, via VBoxManage usbfilter add/modify/remove.


Ubuntu 18.04 does not boot after installing WineHQ and Lutris

I had similar problem after trying to install wine. I removed and reinstalled wine but didn't change anything. Using nomodeset stopped brightness control from working. I was able to fix it finally.
Boot with nomodeset and open Terminal. Then run these commands:
sudo apt-get install --reinstall xserver-xorg
sudo add-apt-repository ppa:oibaf/graphics-drivers
sudo apt upgrade
sudo gedit /etc/default/grub

Remove nomodeset from grub and save.
sudo update-grub
sudo reboot

That's all. Everything should be fine after this.


Mount Windows Shares Permanently has some great information and overview if you haven't seen it yet.  Very simply, I believe you need the uid= configuration option in your /etc/fstab mountpoint entry and 2777 umask for directories.

Without you showing us the permissions of the directories (ie: FolderA, FolderA1) it will be hard to know for sure, but it is likely that the umask is set so that when files are created in Linux, they are created and associated to user's group and the user's user.

For example, if we have the shared directory /srv/www/ owned by www-data:www-data and all of the files are g+rw and I am in the www-data group, I should be able to read and write to all of those files.  The complication occurs when I create a file as my user.  When that happens, the file is created as user:user and www-data isn't part of the user group (and shouldn't be).

So, when you create files you need to ensure that they are being created as and tied to the developer group.  The host system is both Windows and using a different filesystem type, so you have to consider that there is a translation layer (FUSE,SAMBA,CIFS) to adapt the files and permissions to work with Linux.

Normally, you'd be able to resolve these issues by setting up an entry in the Linux system's /etc/fstab and adding uid=DEVELOPER_ID,gid=DEVELOPER_ID,umask=0777 for configuration options.  Instead of umask with many translated filesystems, we set the file_mode to determine the permissions of the files.  Directories will need to have an adjustment of the special permission from 0 to 2.  This enforces the group ownership of new files and directories (ie: 2777).  For example:

uid=userID,gid=userID,file_mode=2777

You can also make this adjustment in your smb.conf for directory-specific configuration values, but you should specify the uid and gid to be your user in your fstab entry to prevent other issues.

With our previous /srv/www example, we could make sure that newly created files were owned by www-data and g+rwx with the following commands:

sudo chown www-data:www-data /srv/www
sudo chmod g+rw /srv/www
sudo chattr +S /srv/www

Any newly created file in /srv/www should be owned by the www-data group and have g+rw permissions.


Evolution: How to change default sort criteria in address book?

OK, now I feel stupid :-(

Change to list view, click on the column "Full Name" and there it is.


How do I apt-get source squid on Xenial and rebuild the package

OK, so I'm stupid.  apt-cache search squid showed that squid came from the main ubuntu repository and /etc/apt/sources.list showed all deb-src entries were commented out.

Un-commenting the security.ubuntu.com...main entry, followed by sudo apt-get update and now apt-get source squid works fine


Does the removal of i386 from the kernel mean Ubuntu is dropping 32 bit support?

No, it means that you won't be able to run Linux on the Intel 80386 chip, the original chip from Intel which supported 32-bit architecture. Those processors had clock speeds of 12-40 Mhz and were superseded by Intel 80486 and then Intel Pentium in early- and mid-1990th.

Other, more modern 32-bit chips (Pentium Pro and above) are still going to be supported. Those processors are characterized as having the i386 architecture but they have some improvements over the original 80386, the use of which allows the removal of some ugly crutches from Linux that are required for 80386 support:

  This tree removes ancient-386-CPUs support and thus zaps quite a bit
  of complexity ... which has plagued us with extra work whenever we
  wanted to change SMP primitives, for years.

Anecdote has it that there was some sentimental value in supporting 80386 processor as it was the processor that Linus Torvalds used when he developed the first version of Linux.

  [Linux] needs a MMU (sorry everybody), and it specifically needs a
  386/486 MMU (see later). ...  It uses every conceivable feature of the
  386 I could find, as it was also a project to teach me about the
  386.  As already mentioned, it uses a MMU, for both paging (not to disk yet) and segmentation. It's the segmentation that makes it REALLY
  386 dependent (every task has a 64Mb segment for code & data - max 64
  tasks in 4Gb. Anybody who needs more than 64Mb/task - tough cookies).

Also, despite i386 support present in Linux kernel up until version 3.8, in the recent years most Linux distributions were compiled with settings which made them incompatible with 80386 processor anyway. In particular, Ubuntu requires i686 (Pentium Pro) processor or above since Ubuntu 10.10.


install package with apt-get and remove with aptitude?

You can freely use apt-get and aptitude intermixed, because both of them do the same thing behind the scenes - manipulate the apt package management system.

aptitude remove automatically unneeded packages by default.

With apt-get you should pass the --auto-remove option to obtain the same behavior, or use apt-get autoremove alone.


Correct sensor location to use for Temperature Monitor in lxpanel?

I have the similar problem (my default sensor always shows 40.0°C) and i can't change this sensor in original lxpanel's Temperature Monitor. But there is another solution: lm-sensors LXDE lxpanel plugin.

https://github.com/danamlund/sensors-lxpanel-plugin

It is simple to compile (in lubuntu 16.04 i also used debian install instructions) and simple to use:


what is the need of ufw if i have iptables in ubuntu?

The following wiki touches a bit about iptables, netfilter, and ufw.

https://wiki.ubuntu.com/UncomplicatedFirewall

Here's a short quote:

Uncomplicated Firewall (ufw) is a frontend for iptables and is particularly well-suited for host-based firewalls.


When you tried the steps listed on the status page, were you prompted to add your computer to Ubuntu One again? You should have been.

If you're getting a 500 error when going to the https://one.ubuntu.com/account/machines/ it may have been intermittent. If you're still getting the error, please send a direct support request to the Ubuntu One team at: https://one.ubuntu.com/support/contact


Can I separate GRUB and Ubuntu into different disk?

I will not recommend you to install GRUB on the SD Card. You can configure it easily using the steps given below. However, first, follow the steps to dual-boot your system properly:

Boot into Windows OS and right-click on the Start Menu >> Command Line (Admin) to enter into the Windows command-line interface.
Once you are in the command prompt, type diskmgmt.msc on the promt to enter into Disk Management utility. From here, right click on C: partition and select Shrink Volume in order to resize the partition.
Enter a value to shrink your partition. Select Shrink to resize the partition to that specific size. We will use this new unallocated space to install Ubuntu.

Do create a bootable USB device using either Rufus or Universal USB Installer before you begin with the next section.

Once you have a bootable media follow the link to dual-boot Ubuntu and Windows.

Note: While installation, choose Install alongside Windows boot manager and follow every step with caution else you might mess your hard disk permanently.

Also, creating a Swap partition is recommended. Having a Swap partition will not affect your working on Ubuntu or on Windows either.

Once you have installed the Ubuntu on your system, the next step would be to include GRUB on your boot. To do so, follow the below steps:

Boot into Windows OS again
Combine Windows + r keys together and type cmd to enter into your system command prompt.
Once you are in the command prompt window, type bcdedit /set "{bootmgr}" path \EFI\ubuntu\grubx64.efi on the prompt and hit the Enter key

P.S. You do not require admin rights to execute the above command.

As soon as the command gets executed, reboot your system and then you will always find options to pick either Ubuntu or Windows as your preferred OS.


Why does my system shut down when running ffmpeg?

I'd be treating this as overheating. Open a terminal, install lm-sensors and watch the output while you encode:

sudo apt-get install lm-sensors
sudo sensors-detect  # say yes to everything

watch sensors

So do some encoding now. I predict you'll see the temperature on the CPU rocket (check your CPU's specifications for safe operating temperatures). If that can happen, your computer's current cooling solution just isn't good enough. It might just need a dust or it might need a better heatsink/fan.

This is stuff you can DIY but if you haven't done it before (or you DIY'd the current solution) it might be best to talk to a professional before you melt your CPU and/or motherboard.


How do I install ec2-api-tools in 14.10 utopic?

Sorry to answer my own question.

ec2-api-tools is replaced by awscli.

I couldn't remember the name awscli, hence my question.

It would be nice if the ec2-api-tools virtual package were updated to point to awscli package.

$ sudo apt-get install awscli


Installing and running .apk in Android Virtual Emulator

First, install the adb and fastboot in the repositories with:

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install android-tools-adb android-tools-fastboot

Then navigate to the directory where the .apk is at using cd and the terminal window.
Start the emulator, and get the emulated device running.
Use:

adb devices

to check that the device is being recognized. (make sure it says emulator, and that you don't have a phone plugged in)
After that, use:

adb install NameOfYourFile.apk

That will install it into the emulator.

source: used this process 10 mins ago and worked flawlessly. (http://www.webupd8.org/2012/08/install-adb-and-fastboot-android-tools.html)


For interactive login shells, as you've found, you can put commands in scripts located inside:

/etc/profile.d/

You can also accomplish that, in a somewhat less desirable way, by editing the global configuration file:

/etc/profile

For bash (which is the default interactive shell), there is a corresponding file where you can put commands to be run by all interactive non-login shells:

/etc/bash.bashrc

Just as /etc/profile.d and /etc/profile correspond to ~/.profile, /etc/bash.bashrc corresponds to ~/.bashrc.

This does not apply to non-interactive shells. But it's rather unlikely that you have commands you want run by non-interactive shells. (Then they would run every time any script was run.)


How to make Torque work on Ubuntu 14.04?

I share your frustration, as torque could really work (better) on Ubuntu.

Meanwhile, maybe the posts about Torque server will not initialize correctly [11.10]  on UbuntuForums.org can help you.


Nautilus hangs searching for network locations

I had this issue too and I know how stressful this can be.

Searching through google and trying some changes I found one solution.

The steps are:

1 - We Need to do changes in smb.conf (/etc/samba/smb.conf). You can do this with gedit, nano or some else program. With gedit is like this:

sudo gedit /etc/samba/smb.conf

2 - Then we need to find the constant/variable "name resolve order". In my case this constant has the value equals to wins lmhosts bcast host. I don't know if this changes something, but I change "wins lmhosts bcast host" to "wins bcast lmhosts host". So, my final is "name resolve order = wins lmhosts bcast host".

3 - I added this lines in smb.conf at the final.

netbios name = <hostname>
client lanman auth = yes
client ntlmv2 auth = no

You can find your hostname, typing "hostname" in your terminal, then just change  by your terminal answer.

Now i don't have more this issues:
1 - networking timeout
2 - nautilus searching for network and not able to find.
3 - disconnecting from mounted network folder when not using.
4 - nautilus crashing after disconnect and trying to connect to mounted folder.
5 - Nautilus can't connect after "nmbd restart" and "smbd restart" (Sometimes this commands works and others not, to recover the network).


Running local script on a remote machine

ssh is a good Unix citizen; we can pipe it around, we can redirect it's output and input in whatever ways imaginable.

ssh user@host sh < your_script.sh

This command is a redirection: your shell will open the (local!) file your_script.sh and feed it as input to the ssh command. ssh, in turn, will tunnel its stdin to the remote command, namely, sh instance.  sh without arguments reads its script from stdin. Strictly speaking, the sh part is not even necessary — ssh runs shell by default — but it makes explanation easier.

So we got a sh instance, which is launched on remote host, but reads commands from your local file. Voila!


Since upgraded from Ububtu 14 to 18 facing this upgrade error,

You need to remove the corresponding python3-click-package, python3-click, click packages:

sudo apt-get update
sudo apt-get purge python3-click-package python3-click click

and then resume package installation and installing upgraded package dependencies:

sudo dpkg --configure -a
sudo apt-get install -f
sudo apt-get dist-upgrade


That's correct, you will want to select "Something else", select your windows partition (or other partitions you want to modify) and change its size (reduce it) by however large you want the new Ubuntu install to be.

Once you apply that resize, you can then create a partition in that free space for Ubuntu and "use it for" / (root).

You may also want to create a swap partition and "use it for" swap. The usual recommendation is to size it to 2X your RAM if you intend on using hibernate.


If your graphics card is supported by Ubuntu, here's how to install the proprietary drivers.

Click the Unity menu button and type "Additional Drivers", and then click the icon labeled as such.

When the window opens, if your card is supported, it will list available proprietary drivers.  Just highlight the latest one, or the one marked as tested, and click "Apply Changes" then reboot.

However, I don't think your card is supported.  I have a Radeon HD 4200 and it's not supported any more.  The problem is that most of the newer, supported versions of Ubuntu use an updated version of the Xorg display server, and AMD has stopped supporting its older cards in newer versions of the driver that are packaged with Ubuntu, and the older drivers don't work with the new Xorg server so you can't just go get those and use them.  The only way to get proprietary driver support without buying one of the newer, supported cards is to downgrade several versions of Ubuntu.

I just confirmed, your card is not supported.  I just went and downloaded the deb file for the proprietary drivers and dug through the documentation, and this is what I found.

Quote: "The AMD Proprietary Linux driver currently supports RADEON 8500 and later, as well as FireGL 8700 and later products. We do not currently plan to include support for any products earlier than this."


How can I kill/close an 'orphaned' window?

You can use xkill in the command line, which allows you to click an open window to kill the process.


How can I configure the Aiptek T-6000U graphics tablet?

I've asked a question on
http://sourceforge.net/mailarchive/forum.php?forum_name=aiptektablet-users


What are the messages I see during the startup/shutdown process of Ubuntu?

SHORT ANSWER

If you are a new user and your system is actually working properly, please do not worry about this. There is no need to do anything and unnecessarily mess up things.

This is a normal boot process during which all the system services and components will start and begin doing their job(or end, during shut down). This process happens in any OS, even windows. All these are collectively just callled-THE SYSTEM IS BOOTING UP.

Usually, these are hidden by the OS logo (example:Ubuntu logo with dots) so that boot process looks nice, without these messages. This is only a cosmetic arrangement called as splash screen and needs no worry, if the messages are not hidden.

Instead of trying to hide these messages, they can help you learn about what all things happen when your computer boots up. This will help you gain good insights into your computer hardware and OS components, if you have an inquisitive mind to  learn.

So, just don't worry about these messages and leave them as they are.

A quick analogy to this would be:

A lathe with casing for the drive gears v/s a lathe with gears always visible. With casing, the lathe might look better finished, still the gears will be running the exactly same way if they weren't covered :p Haha!!


If this is an upgrade, you might be bringing forward old configuration that could be messing things up. I suggest you run the following to reset the configuration:

mv ~/.gconf/apps/gedit-2{,-OLD}
mv ~/.config/gedit{,-OLD}
mv ~/.gnome2/gedit{,-OLD}

After you've done that, gedit should start with a fresh configuration if it doesn't you might want to run find ~ -name '*gedit*' and see if there are any other places that config is hiding out.

If that doesn't help, you want to file a bug!

ubuntu-bug gedit


Application Indicator icon not changing until clicked

I think this is reasonable, as theme path & icon name didn't change there will be no update/reload for indicator icon (why it should loose some cycles to reload it? This is optimum, no?!).

Well, libappindicator was designed for static icons loaded from files. ( lp bug#812067: API needed: pixbuf icon setting support ). You want to make a workaround on that by changing icon file contents. In your case its ok, but not for general use where it needs shorter update delay (ex: 120ms) ie, too much file io requests (open,write,close).

Either, you change theme path this is kind of trick:

self.indicator.set_icon_theme_path( os.getenv( "HOME" )+"./"*(self.count % 2) )
self.indicator.set_icon_full( IndicatorTestIcon.SVG_ICON, str( self.count ) )

Or change name (you can use same previous method, alternating between 2 names):

SVG_ICON = "." + NAME+ "_{0}"
...
self.indicator.set_icon_full( IndicatorTestIcon.SVG_ICON.format(self.count % 2) , str( self.count ) )
...
with open( IndicatorTestIcon.SVG_FILE.format(self.count % 2), "w" ) as f:

BTW, it better to use set_icon_full, set_icon is deprecated. (Tested on Ubuntu 14.04)


Wireless Switch Stuck Off- HP TouchSmart tx2

I had the same problem today.
I fixed it following the post:
http://www.linuxquestions.org/questions/ubuntu-63/wireless-became-disabled-how-do-i-enable-858357

Basically you run the following command from a terminal (ALT + CTRL + T) :
$ sudo rfkill unblock all

This seems to replicate what the hw switch for the wireless does when you turn it on.

After that I was able to connect to my access point without problems.


WINEPREFIX is an envirnomental variable.
It sets where Wine looks for its configuration and files, in esence where it puts its C: drive.
By default it is $HOME/.wine.
Some programs require very specific configurations and some people will use a specific prefix for different programs.
See the Wine wiki for Wineprefixes for details on how to do so and various options.


ethereum mining on Ubuntu 16.04 dropped hashrates significantly on AMD block chain drivers

After researching a bit, i found that removing the latest linux-image and linux headers fixed the issue for me. I some how used the package update command recently from console and it updated the linux image and headers

use the following command to find the current installed version of linux image and linux headers

dpkg -s linux-image-$(uname -r)

Now use the command to remove the linux image. The version that caused the issue for me was 4.13.0-26-generic.

sudo apt remove linux-image-4.13.0-26-generic

and linux headers

sudo apt remove linux-headers-4.13.0-26-generic
reboot

The hash rate went back up after this


Try ticking the "Pick a random port every time Transmission is started" box and restarting Transmission. You could try testing whether that worked by using the official Ubuntu torrents.


Trying to get gstreamer setup so I can develop against it

There appears to be some good information about getting started with GStreamer here.

It does appear to suggest that the distribution packages are used for Ubuntu rather than compiling from source. For Ubuntu it looks like you will require the package libgstreamer-plugins-base1.0-dev and this can be installed using:

sudo apt-get install libgstreamer-plugins-base1.0-dev

This should provide the header files and libraries required for you to start developing.

Hope that helps.


Will the Rosetta Stone online edition work with Ubuntu?

I can confirm that the online demo is working. However the full version is not.

The full version will initially load and you can navigate but as soon as you select and start a lesson all you get is the background image and nothing more. I tried this with Chrome 22.0 and Firefox 16.0.2.

Edit:
I switched chrome to the beta channel (version 24.0.1312.40 beta) and now every thing is working as it should.


Need help on getting ping to run under wine on Ubuntu 16.04

The problem is Wine has a bug in it that is fixed in Wine versions 3.14 and beyond where a ReplySize under 56 prevents ping from working. However - ping still requires special permissions set with setcap in Wine versions 3.14 and beyond. Thankfully, there is also a workaround in Wine versions 3.14 and beyond where Wine will automatically use the native Linux ping if the special permissions are not set with setcap which essentially means in Wine versions 3.14 and beyond, wine ping will now work out of the box.

Source: https://bugs.winehq.org/show_bug.cgi?id=43252


install vlc plugin for mozilla

 sudo apt-get install mozilla-plugin-vlc


How to set up D-LINK DWA-111 USB WLAN Adapter?

USB ID: 07d1:3c06

D-Link Systems DWA-111 802.11bg Wireless Adapter - [Ralink RT2571W]

Source: Debian.org > Ralink RT2501USB/RT2571W (RT73) devices

Possible solutions:

(1.) How do I get a Ralink RT3060 wireless card working? (for 12.04)

  Option 1. Try installing the latest compat-wireless backports package
  and see if it works ..

  Option 2. Build and install Ralink's own drivers ..

(2.) Load the device-firmware drivers (to load firmware to device)

sudo apt-get install linux-firmware-nonfree


How to install and run CPUSim 4.0.11 on Ubuntu 18.04 LTS?

So we have downloaded the application:

cd ~/Downloads
wget http://www.cs.colby.edu/djskrien/CPUSim/CPUSim4.0.11.zip
unzip CPUSim4.0.11
cd CPUSim4.0.11

Then install OpenJDK 8 and OpenJFX

sudo apt-get install openjdk-8-jre openjfx

After that you should change command to the following:

java -cp .:richtextfx-0.6.10.jar:reactfx-2.0-M4.jar -jar CPUSim-4.0.11.jar \
-m SampleAssignments/Wombat1.cpu -t SampleAssignments/W1-0.a

It will launch and you can use it:


BlueTooth device(output) and PulseAudio's module-echo-cancel help needed

"If you plug in a USB sound card or headset, or you have for example a 5.1 Speaker configuration and plug in a headset on your front audio connectors after you have loaded the module-echo-cancel, you have to manually unload and load the module-echo-cancel again, because unfortunately there is no way to tell the module that it should automatically switch to the new default 'source_master' and 'source_sink'."
source: https://wiki.archlinux.org/index.php/PulseAudio/Troubleshooting#Enable_Echo/Noise-Cancellation
*any ideas how to automatically unload and load module after bluetooth is connected or disconnected?


It's still there on my computer, it's called Edge-Scrolling:


Is there a way to make gnome3 the default session when connecting to xrdp?

I did it via automatic tool. First you have to run install script then configuring script.

A. (If you don't have git) Install git

  sudo apt-get install git

B. Install X11RDP-o-matic

  git clone https://github.com/scarygliders/X11RDP-o-Matic.git

C.  Enter directory

  cd X11RDP-o-Matic

D. Run the script and wait (quite long)

  sudo ./X11rdp-o-matic.sh --justdoit

E. Run configuring script

  sudo ./RDPsesconfig.sh

In one of the screens you have the possibility to choose deafult WM

Hope it helps and I understood question well :)


I can not connect to wireless network Ubuntu 12.04

Please open the terminal and run:

lspci -nn -d 14e4:

Is your device 14e4:4727? If so, I believe the correct driver is brcmsmac; one of its dependencies is bcma which you have blacklisted...twice! Please amend your blacklist file to remove those two entries. Next, do:

sudo su
echo brcmsmac >> /etc/modules
modprobe brcmsmac
exit

Now is your wireless working? It may take a reboot.


Firefox update fails; "Could not get lock" error when I run sudo apt upgrade

Use this with care, i.e. make sure not other installation/upgrade is running in parallel.

You can try sudo rm /var/lib/dpkg/lock.

It should remove the lock and allow for upgrade.

Edit:

To check whether any other installation is running, try

ps -ef | grep apt

ps -ef | grep dpkg

and see if any processes are listed, if same are present, check if any other open terminal is running any installation.

Hope it helps.


What is the best way to stop attacks at wp-login.php?

In order to password protect a page with Apache, you need to add a new section to your Apache VirtualHost like the below:

<DirectoryMatch ^.*/wp-admin/>
    AuthType Basic
    AuthName "Restricted"
    AuthUserFile /etc/apache2/.htpasswd
    Require valid-user
</DirectoryMatch>

Then set the user and password by running:

sudo htpasswd -c /etc/apache2/.htpasswd username

Finally, restart Apache for the changes to take effect:

sudo service apache2 restart

then add this code your .htaccess

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /

# require www and https
# comment out the first two if you do not need www
# comment out all lines for local dev
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [NE,L,R=301]
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [NE,L,R=301]

RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

</IfModule>

# END WordPress

## PROTECT .HTACCESS, ERROR LOGS, WP-CONFIG.PHP AND PHP.INI FILES ##
<FilesMatch "^.*(error_log|wp-config\.php|php.ini|\.[hH][tT][aApP].*)$">
    Order deny,allow
    Deny from all
</FilesMatch>

## PREVENT WORDPRESS DIRECTORY BROWSING ##
    Options All -Indexes

## PROTECT IMPORTANT PHP FILES ##
    RewriteCond %{REQUEST_URI} !^/wp-content/plugins/mu-plugins/
    RewriteRule wp-content/plugins/(.*\.php)$ - [R=404,L]
    RewriteCond %{REQUEST_URI} !^/wp-content/themes/V2/
    RewriteRule wp-content/themes/(.*\.php)$ - [R=404,L]

    # Block the include-only files.
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^wp-admin/includes/ - [F,L]
    RewriteRule !^wp-includes/ - [S=3]
    RewriteRule ^wp-includes/[^/]+\.php$ - [F,L]
    RewriteRule ^wp-includes/js/tinymce/langs/.+\.php - [F,L]
    RewriteRule ^wp-includes/theme-compat/ - [F,L]
    </IfModule>

## COMPRESS TEXT, HTML, JAVASCRIPT, CSS, XML ##
## BEGIN GZIP ##
    <IfModule mod_deflate.c>
        # The following line is enough for .js and .css .html
        AddOutputFilter DEFLATE js css html
        AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml application/xhtml+xml text/css application/xml application/rss+xml application/atom_xml application/x-javascript application/javascript application/x-httpd-php application/x-httpd-fastphp text/html

        # The following lines are to avoid bugs with some browsers
        BrowserMatch ^Mozilla/4 gzip-only-text/html
        BrowserMatch ^Mozilla/4\.0[678] no-gzip
        BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
    </IfModule>

    # BEGIN EXPIRES
    <IfModule mod_expires.c>
        ExpiresActive On
        ExpiresDefault "access plus 10 days"
        ExpiresByType text/css "access plus 1 week"
        ExpiresByType text/plain "access plus 1 month"
        ExpiresByType image/gif "access plus 1 month"
        ExpiresByType image/png "access plus 1 month"
        ExpiresByType image/jpeg "access plus 1 month"
        ExpiresByType application/x-javascript "access plus 1 month"
        ExpiresByType application/javascript "access plus 1 week"
        ExpiresByType application/x-icon "access plus 1 year"
    </IfModule>

    <IfModule mod_headers.c>
        <FilesMatch "\.(js|css|xml|gz)$">
            Header append Vary Accept-Encoding
        </FilesMatch>
        <FilesMatch "\.(ico|jpe?g|png|gif|swf)$">
            Header set Cache-Control "public"
        </FilesMatch>
        <FilesMatch "\.(css)$">
            Header set Cache-Control "public"
        </FilesMatch>
        <FilesMatch "\.(js)$">
            Header set Cache-Control "private"
        </FilesMatch>
        <FilesMatch "\.(x?html?|php)$">
            Header set Cache-Control "private, must-revalidate"
        </FilesMatch>
    </IfModule>

## END OF HTACCESS


Is there a finale replacement for Ubuntu?

Try MuseScore.

  MuseScore is an open source cross platform music notation program that
  has a lot of very good features. Simple to operate, notes are entered
  on a virtual note sheet with your mouse, MIDI or keyboard.

  It also features a note editing input that is much like step-time note
  entry that found on premium commercial music editing software.MuseScore

To download, and other info click Here.


The ufw firewall is implicating with the iptables.

So you could add some rules in iptables and with that you enfluence
the "behaviour" of ufw.

Here is a description of how to add rules to iptables:

http://blog.jwilford.co.uk/post/33238674122/using-a-custom-chain-to-define-a-list-of-trusted-hosts

( In ufw there is parameter resp. rule "limit" but it is only supporting IPv 4. To edit
iptables would bypass the restrictions of ufw. )

( I write this answer 2nd time - because the first attempt was deleted by moderator by an oversight, before I could complete it with my additions. )


Gnome 16.10 - Kernel Panic - not syncing VFS: Unable to mount root fs

Start with a livecd, open a a terminal

sudo fdisk -l
sudo mount /dev/sdax /mnt
sudo mount --bind /dev /mnt/dev
sudo mount --bind /dev/pts /mnt/dev/pts
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
sudo chroot /mnt

and now you can make update-initramfs and update-grub without errors.

update-initramfs -u -k 2.6.38-8-generic (or your version)

If you don't know your version. Use:

dpkg --list | grep linux-image

And just update Grub.

update-grub2

Reboot your system.


Connection to the internet via smartphone (usb-tethering)

In my experience there is no way to use:

ifconfig usb0 up

By the way, I had the same problem, so I have had just looked around and I have been confronted with a wonderful Android App, which is EasyTether. at its called it is super easy, just follow up the instruction to come up with it.
have fun


"exec: 15: update-grub: not found" error when updating kernel

appears the OP is using this to track issues instead asking additional questions


How do I get a Canon Multipass MP390 working?

According to this post the printer is recognized if you choose the s600 printer driver.

Click on the Ubuntu button and search for "Printers", then click on Add a printer, and select Canon and S600 as the model and driver. Unfortunately I don't have a new printer to add so I can't show you exactly where in the Printer tool that is.


Run the below commands on terminal to mount your 240 GB /dev/sda5 partition.

sudo mkdir /media/windows
sudo mount /dev/sda5 /media/windows

Now your /dev/sda5 partition will be mounted inside /media/windows folder.You can browse for the files inside /media/windows through nautilus.


You might be correct that your drivers are not installed. However, also check if your WIFI card is on (Most laptops have a hotkey to turn WIFI on or off).

Then try to issue the following command the know which WIFI card you are using.

sudo lshw -C network

Upon knowing the model and make of your wifi card, just look for its driver and install.


Limit size of directory in a specific disk

Of the ways to make filesystems spread out over disks (RAID, LVM, btrfs, ZFS, etc.), they make entire filesystems (or partitions, in case of RAID, LVM) spread out over disks, and you can't reliably dictate what gets written where. Of the ways to make directories on two filesystems appear as one (overlays), only one can be used for writing. So, I'd say there's no way to do what you ask.

You can set a limit to a directory (see How to set a file size limit for a directory?), but I don't think make it overflow elsewhere, unless the application supports it. The simplest way I can think if is to detect when the disk is full and restart the process while pointing it to the new disk.


I'm guessing that you probably have not added the client's name to the server configuration. If you check the log files on the client, you should see the repeated message about the server refusing connections for your computer's name.

The solution is to add your client's details to the server's configuration:

From the client's screen, above where you entered the server's IP, you will find your "Screen name"
On the server, click "Configure Server", then drag a new screen to appear next to the existing screen.
double click on the new screen
enter as a screen name whatever name you would like to call your client
add an alias for the screen - this must be the exact name from your client's "Screen name" of step 1.
save your changes, and reload the server


Has anyone successfully installed CUDA 7.5 on Ubuntu 14.04.3 LTS x86_64?

The installation of CUDA is little a bit tricky. I've followed the following steps and it works for me. You can refer to this link also.

Confirmation of the environment:

lspci | grep -i nvidia
(Confirm that the information of NVIDIA's board is displayed)
uname -m
(make sure that it is a x86_64)
gcc --version
(make sure it is installed)

Installation of CUDA –

Download cuda_7.5.18_linux.run file from https://developer.nvidia.com/cuda-downloads
Run the following commands:

sudo apt-get install build-essential
echo blacklist nouveau option nouveau modeset=0 |sudo tee -a /etc/modprobe.d/blacklist-nouveau.conf
sudo update-initramfs -u

Reboot computer
At login screen, press Ctrl+Alt+F1and login to your user.
Go to the directory where you have the CUDA driver, and run

chmod a+x .
sudo service lightdm stop
sudo bash cuda-7.5.18_linux.run --no-opengl-libs

During installation:

Accept EULA conditions
Say YES to installing the NVIDIA driver
Say YES to installing CUDA Toolkit + Driver
Say YES to installing CUDA Samples
Say NO rebuilding any Xserver configurations with Nvidia

Check if /dev/nvidia* files exist. If they don't, do the following

sudo modprobe nvidia

Set Environment path variables

export PATH=/usr/local/cuda-7.5/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda-7.5/lib64:$LD_LIBRARY_PATH

Verify the driver version

cat /proc/driver/nvidia/version`

Check CUDA driver version

nvcc –V

Switch the lightdm back on again

sudo service lightdm start

Ctrl+Alt+F7 and login to the system through GUI
Create CUDA Samples, Go to NVIDIA_CUDA-7.5_Samples folder through terminal, then run following command:

make
cd bin/x86_64/linux/release/
./deviceQuery
./bandwidthTest

Both tests should ultimately output a 'PASS' in terminal
Reboot the system


Black Screen installing Ubuntu Desktop on Virtualbox on Windows 10

Turns out that when I had previously installed Docker for Windows it had enabled Hyper-V. Changed the Windows settings to disable it and everything is fine. Apparently Hyper-v enabled is not compatible with Virtualbox


How to revert packages at their previous state?

Simply do an apt-get install <packagename> for each of the affected packages. They will then no longer be recommended to "autoremove".

Keep in mind: "automatic installed" means you didn't explicitly request them, but they have been drawn-in by dependencies (some other package declared it needed them). So if there's no longer a package which needs it, and you never wanted it in the first place, apt considers it as "obsolete".


How do I edit MediaWiki articles from LibreOffice Writer?

It seems your problem is addressed in the following bug:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=616011

On Ubuntu 11.10 with LibreOffice 3.4.5 I've added libreoffice-wiki-publisher and File -> Send -> To MediaWiki... works fine.

-- rpr.