Your installation was correct. To see an icon in your launcher, you need a desktop file and certainly an executable file. To use the command line you need only an executable file. But there is a huge problem, have a look at the end of my answer.

The package autodock

Executable files

/usr/bin/autodock4

Desktop files

none

The package autodocktools

Executable files

/usr/bin/autodocktools
/usr/bin/autoligand
/usr/bin/runAdt

Desktop files

none

The package avogadro

Executable files

/usr/bin/avogadro
/usr/bin/avopkg

Desktop files

/usr/share/applications/avogadro.desktop

Therefore you can start it via Avogadro in your Launcher

The package autodock-vina

Executable files

/usr/bin/vina
/usr/bin/vina_split

Desktop files

none

Why I know that?

Try the commands below, the lines with a leading % are the commands. All other lines are the output of the commands.

% dpkg -L autodock | grep desktop

% dpkg -L autodock | grep /bin
/usr/bin
/usr/bin/autodock4

% dpkg -L autodocktools | grep desktop

% dpkg -L autodocktools | grep /bin
/usr/lib/python2.7/dist-packages/AutoDockTools/bin
/usr/lib/python2.7/dist-packages/AutoDockTools/bin/adt3
/usr/lib/python2.7/dist-packages/AutoDockTools/bin/adt
/usr/lib/python2.7/dist-packages/AutoDockTools/bin/runAdt.py
/usr/lib/python2.7/dist-packages/AutoDockTools/bin/runAdt
/usr/lib/python2.7/dist-packages/AutoDockTools/bin/adt4
/usr/bin
/usr/bin/runAdt
/usr/bin/autoligand
/usr/bin/autodocktools

% dpkg -L avogadro | grep desktop
/usr/share/applications/avogadro.desktop

% dpkg -L avogadro | grep /bin
/usr/bin
/usr/bin/avopkg
/usr/bin/avogadro

% dpkg -L autodock-vina | grep desktop

% dpkg -L autodock-vina | grep /bin
/usr/bin
/usr/bin/vina_split
/usr/bin/vina

The problem

After starting ADT via terminal with /usr/bin/autodocktools you will see something like this:

Run ADT from  /usr/lib/python2.7/dist-packages/AutoDockTools
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/AutoDockTools/__init__.py", line 433, in runADT
    title=title, withShell= not interactive, verbose=False, gui=gui)
  File "/usr/lib/python2.7/dist-packages/Pmv/moleculeViewer.py", line 1026, in __init__
    trapExceptions=trapExceptions)
  File "/usr/lib/python2.7/dist-packages/ViewerFramework/VF.py", line 387, in __init__
    verbose=verbose)
  File "/usr/lib/python2.7/dist-packages/ViewerFramework/VFGUI.py", line 444, in __init__
    verbose=verbose,guiMaster=VIEWER_root,)
  File "/usr/lib/python2.7/dist-packages/DejaVu/Viewer.py", line 586, in __init__
    cnf=cnf, **kw)
  File "/usr/lib/python2.7/dist-packages/DejaVu/Viewer.py", line 285, in AddCamera
    c = classCamera(master, screenName, self, num, cnf=cnf, **kw)
  File "/usr/lib/python2.7/dist-packages/DejaVu/Camera.py", line 2189, in __init__
    self.AddTrackball()
  File "/usr/lib/python2.7/dist-packages/DejaVu/Camera.py", line 2583, in AddTrackball
    self.trackball = Trackball(self, size, rscale, tscale, sscale, renorm )
  File "/usr/lib/python2.7/dist-packages/DejaVu/Trackball.py", line 88, in __init__
    self.createSpinGui()
  File "/usr/lib/python2.7/dist-packages/DejaVu/Trackball.py", line 726, in createSpinGui
    callback=self.setWithSpinGui,
  File "/usr/lib/python2.7/dist-packages/mglutil/gui/BasicWidgets/Tk/vector3DGUI.py", line 90, in __init__
    self.createEntries(self.frame)
  File "/usr/lib/python2.7/dist-packages/mglutil/gui/BasicWidgets/Tk/vector3DGUI.py", line 360, in createEntries
    self.f.grid(column=3, rowspan=3)
  File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 2022, in grid_configure
    + self._options(cnf, kw))
TclError: cannot use geometry manager grid inside .140381967613608.140381967671520.140381951084592.140381951131944 which already has slaves managed by pack
hit enter to continue

This seems to be a known bug in Ubuntu/Debian and I have currently no idea how to fix this.


How do I simulate Verilog code in Ubuntu?

You can download SynpatiCAD using this link.

  SynpatiCAD is a Timing Diagram Software, Verilog Simulator, Verilog
  Compiler, & Testbench Creation


To answer your question for future readers:

You want to use the xsetwacom program and place it in your .xinitrc file in your home folder. The setting you want to use is called 'stylus' and the value should be set to 'Area'. Like so:

xsetwacom set stylus Area 0 0 1024 768
xsetwacom set eraser Area 0 0 1024 768

For example will set the area that the stylus device works in to be within those co-ordinates. You may also be interested in the non absolute setting which allows a different way of working with the pen.


Software is not available in the software center

Yes, there has long been a better way.

.zip, .tar, .tgz, and .bz2 files (those are what you cited) are simply compressed sets of files. They must be manually installed by the user to work. Manual installation includes manually creating the links for desktop icons.

That laborious and imprecise method of distributing software was superseded over 20 years ago by packages (like .deb and .snap packages), which make distribution, installation, upgrading, and integration into the desktop quite trivial for each user.

Packages are often created by community volunteers (like you). They generally do not need to be created by developers.

How to create a .deb package for distribution by Debian and Ubuntu: https://mentors.debian.net.
How to create a .snap package for distribution by Ubuntu and other distros: https://snapcraft.io.

Software Center only knows about .deb software that is distributed by the Ubuntu repositories, .snap software that is distributed by Snapcraft.io, and locally-installed .deb and .snap packages.


you can use gio (VFS API) command:

gio mount -l

this command lists all mount type (disks, partitions, etc), if you want only samba shares, then use grep to filter:

gio mount -l | grep smb

gio reference


How do I install ra3290.bin wireless driver into /lib/firmware

git clone git://git.kernel.org/pub/scm/linux/kernel/git/dwmw2/linux-firmware.git
sudo cp linux-firmware/rt3290.bin /lib/firmware

It works immediately after the above command execution.

My notebook is Fujitsu Lifebook LH532
Ralink RT3290
Running kernel 3.8.0.2 in Ubuntu 13.04
as 1st FEB 2013


wget cannot access a site on local network, returning this error: A TLS fatal alert has been received

I used the following command to solve the same issue inside a chroot:
sudo apt-get install ca-certificates


WoeUSB Installation failed! Exit code: 256

The error message: error: /dev/sdc: probing initialization failed The command "wipefs --all "${target_device}"" failed with exit status "1" says that there is some minor problem (exit status 1), but it is not a serious problem. The problem in this case may be that the /dev/sdc that was selected either does not exist, you can't read or write from it, or else it has not been  formatted as a filesystem that is supported by WoeUSB such as NTFS. NTFS filesystem support has been added to WoeUSB 3.0.0 and later. You can check if /dev/sdc exists in the Disks application or by running this command:

ls /dev/sdc*


Is there a way to build a snappy pakage from a unstable repo like the arch repo or DebianUnstable repo

Oh yes-- deb2snap was superannuated long ago by snapcraft. You can use it to build snaps directly from upstream sources, or by utilizing debs. No chroot needed! A good walkthrough is here.


What propriatory graphics driver do I need to install?

The best way is to type in Google phrase consisting of the following:

Your graphics card model manufacturer and number
Your Ubuntu version
And driver version to check, like 352

If you are not seeing some reports in first results like "it is not working", the you should install newest (largest number) tested driver. Select those with -updates suffix.

If you get your PC/graphics processor more than 4 months ago, latest drivers are not about your card most definitely, they will not change much.


DaVinci Resolve 15 doesn't start on Ubuntu 18.04

Unfortunately I am not able to provide a solution. But maybe I can share some insight. I also tried to install DaVinci Resolve (DaVinci_Resolve_15.0b7_Linux) today on an almost identical system (Lubuntu 18.04, same CPU, same Graphics, same Memory, but an HP) and had the same error.
I believe that our Graphics is just not good enough for Resolve. If you check their forum you will find them saying again and again that Resolve requires a good GPU.

I got a step further by installing OpenCL with the following command:

apt-get install beignet clinfo

and then checking with:

clinfo

(see also: Install OpenCL on Ubuntu 17.04, intel)

This solved the above error and the welcome screen of DaVinci Resolve was showing. But then I still got the error message, that no OpenCL capable GPU was found.
screenshot of error message

Some comments on the DaVinci forum also mention, that even if you get Resolve starting up with this kind of low-end GPU, you will not be able to work properly with it...


How to efficiently navigate through all application windows in Unity (aka Alt-Tab)

Pressing Alt+` (the key above tab) will switch between windows of the current application in a way similar to how Alt+Tab switches between applications.


For your safety you don't really need antivirus. But it is good to have one, just so you don't spread the windows viruses through USB sticks.
You can get Clam Tm from Ubuntu software center.


The problem is that ./program -a asdf's output gets buffered when run in the pipeline, and that any output it's going to sit within the buffer until this one gets full.

You can control a command's output buffering using stdbuf; in particular, to run ./program -a asdf with an unbuffered stdout:

stdbuf -o0 ./program -a asdf

So that your buffered pipeline becomes:

stdbuf -o0 ./program -a asdf | script.sh


Can't log in although password is correct

To set the owner (-R for recursive):

sudo chown -R joe:joe /home/joe

To set the permissions:

sudo chmod -R 700 /home/joe

To change password:

sudo passwd joe


Based on your output, it would appear that you don't have SSL configured correctly. Configuring SSL is a fairly lengthy process, and the best way to answer that is to provide a good tutorial:
https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-with-a-free-signed-ssl-certificate-on-a-vps

Also, the actual Apache2 docs could be useful to you:
https://httpd.apache.org/docs/2.4/ssl/ssl_howto.html


Tata Docomo 3g unable to connect using Huawei E303C

In case it helps some one, TATA.DOCOMO.INTERNETHVC instead may help.


Unable to locate pipelight-multi package

Pipelight has not yet been packaged for Ubuntu 16.04. There are several options for getting it to work; I will not list them here, because they have been explained at Can't install pipelight ubuntu 16.04 .

If your intent is to get Netflix working, the simplest option is just to install Google Chrome. Netflix is known to work out-of-the-box, with no additional setup, on Google Chrome on Ubuntu 16.04 (but not on Chromium). You can download Google Chrome for Linux at http://google.com/chrome


How can I change the Unity launcher delay?

For 11.04 (Natty):

The Unity delay is intentional (Ayatana-Design bug 754583) but can be changed.

First

You can change the edge delay of Compiz:
“General Options” → “General” → “Edge Trigger Delay”: set to 0.

Second

You can change this delay and other settings.

See How can I configure Unity?

At the end of the answer by Octavian Damiean you will find this:

  Launcher & Menus (unity-preferences)

  There is another option to configure how to show the launcher then it is hidden.

  Open the Launcher & Menus configuration utility by pressing Alt + F2 and typing unity-preferences.

  Pushes the left edge of the screen will make the launcher appear about one second after pushing the cursor to the left edge of the screen.
  Touches the top left corner of the screen will make the launcher appear immediately when the cursor touches the top left corner of the screen.

  Select the desired option.

Third

This is a workaround for “absolute zero” delay.

We will need XDoTool and Compiz.

You can install these from the Ubuntu Software Center or by clicking xdotool  and Compiz .
Open Compiz (Alt + F2, type ccsm and hit Enter).
Go to Commands and add xdotool key super to one command.

Then go to Edge Bindings and choose “Left” for that command.


Chrome Webstore is broken (Image Decode failed)

Edit: edited. Found the solution.

Here was my problem:

It was because some google content was blocked in my hosts.

You can check if it is the same for you.

how to edit hosts: sudo nano /etc/hosts


I see you have practically tried everything. I recommend starting with a fresh copy of the smb.conf file. It should look something like this:

[global]
    workgroup = XTREME
    server string = %h server (Samba, Ubuntu)
    dns proxy = no
    force user = cyrex
    log file = /var/log/samba/log.%m
    max log size = 1000
    syslog = 0
    panic action = /usr/share/samba/panic-action %d
    encrypt passwords = true
    obey pam restrictions = yes
    unix password sync = yes
    passwd program = /usr/bin/passwd %u
    passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
    pam password change = yes
    map to guest = bad user
    usershare allow guests = yes

[printers]
    comment = All Printers
    browseable = no
    path = /var/spool/samba
    printable = yes
    create mask = 0700

[print$]
    comment = Printer Drivers
    path = /var/lib/samba/printers

[movies]
    path = /media/cyrex/titan
    browseable = yes
    guest ok = yes

In this case I only have the movies share which I made. It works under Windows XP, 7 or 8. I added/modified the following options to the default smb.conf which do the following:

guest ok = yes - This helps with the password issue.
force user = cyrex - This also helps with the password issue and lets users see the content of the shared resource instead of only seeing the shared resource.
browseable = yes - Will let users see the shared resource when navigating on the network.
workgroup = XTREME - This is the workgroup on my LAN.

Notice I do not have any other attributes or permissions to make the example easier and as you mentioned, it is local so not much worry on security. After doing that I only did sudo service smbd restart to let samba read the new setup.

To create the original smb.conf do the following:

sudo cp -a /usr/share/samba/smb.conf /etc/samba/

You can find a bit more information about samba in:

How can I connect to a Samba server using its hostname instead of the IP?

Here's my smb.conf file. Whats wrong with it?


How to save changes to a file opened in the terminal?

Press Ctrl+X or F2 to Exit. You will then be asked if you want to save.
Press Ctrl+O or F3 and Ctrl+X or F2 for Save and Exit

The notation for short-cuts is as follows: Control-key sequences are notated with a caret (^) symbol and can be entered either by using the Control (Ctrl) key or pressing the Escape (Esc) key twice.  Escape-key sequences are notated with the Meta (M-) symbol and can be entered using either the Esc, Alt, or Meta key depending on your keyboard setup.  Also, pressing Esc twice and then typing a three-digit decimal number from 000 to 255 will enter the character with the corresponding value.

Try Ctrl+G in nano to open the built-in help.


Detecting use of ubuntu unity global menu

The problem isn't that anything in particular has been done to the GtkMenuBar (it's just been hidden). The problem is because you're using GtkFixed to position it, and so things do not automatically resize when the MenuBar goes away.

Is there any particular reason you're using a GtkFixed to position things, rather than using the normal box layout structure of GTK+? You may want to look into using GtkApplication and/or GtkBuilder to create and present your user interface, instead, rather than using absolute positioning with GtkFixed.

If you wish to continue using GtkFixed, you'll need to watch a property (or signal) on the GtkMenuBar, and reposition and/or resize the other widgets in your window manually, when the GtkMenuBar is hidden.


Weird display boot up problem with output writing over my command line

It's a persistent error, for example on the Raspberry Pi, if you undervolt it, it will do the same thing as you get there. I suggest google the error or wait until someone else has an idea here.
Also unplug monitor vga-1 and change cable. It might be broken.


Cannot get colored prompt despite setting PS1 in .bashrc

While using ssh, you are getting login shell.

From ~/.profile

# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login exists.

So make sure this file exists in home directory of the user in which you are trying to login. If it doesn't exists then create the file and force it to read the ~/.bashrc file by typing this -

if [ -n "$BASH_VERSION" ]; then
    # include .bashrc if it exists
    if [ -f "$HOME/.bashrc" ]; then
        . "$HOME/.bashrc"
    fi
fi


Refind boot manager will not show Ubuntu splash screen while directly booting the kernel

You need to add the quiet splash options to the kernel options. If your installation has a /boot/refind_linux.conf file, you'd add the options to that file, like this:

"Boot with normal options"   "ro root=/dev/mapper/nessus-ubuntu quiet splash"
"Boot with verbose display"  "ro root=/dev/mapper/nessus-ubuntu"

The first line includes the relevant option, and the second doesn't. (If you hit F2, Insert, or Tab from rEFInd's main menu, you'll see options for each kernel using each of these lines.)

If your installation doesn't have a /boot/refind_linux.conf file, you can create one by typing sudo mkrlconf. (The mkrlconf script comes with rEFInd. Depending on how you installed it, you might need to type the complete path to that script.)


It's entirely possible that there's a bug in the Windows installer that trashed your partitions, despite your not telling it to do so. Whether it's that or user error, I have two suggestions:

Try another partitioning tool. Most tools in Linux (parted, GParted, etc.) are based on libparted, and so are unlikely to help; but one family that's not is GPT fdisk (gdisk, cgdisk, and sgdisk). These tools also have the advantage of a disk verify function (v from the gdisk main menu, for instance), which can point out errors. gdisk also has options to load the backup partition table, although if a Windows tool trashed the partitions, that probably won't do any good. If you can see the partitions in gdisk or one of its family, but it reports errors, chances are saving the table back (via the w command) will fix the problem. I wouldn't hold out much hope that this will help, but it's worth trying, and it's likely to be safer than the next option, so I recommend trying it first.
You can use TestDisk from a Linux emergency disk, or similar tools for Windows (I know they exist, but don't have any URLs handy) to scan for your Linux partitions and generate new partition table entries for them. There's a good chance that this will work, although if you've done much partition-juggling, there's a possibility that the tool will recover the wrong partition(s), so be cautious.


Very slow conversion with avconv (libav) - Trusty Tahr 14.04?

So the answer is in one simple parameter -vn which disable video recording for the output which is actually unneeded when making conversion from mp4(probably every video file) to mp3.

‘-vn (output)’
Disable video recording.

In my case I'm using Download Helper for Firefox. I made custom mp3 conversion where added this parameter there and now everything is even faster than ffmpeg.


"Required version of distribute not available" when installing IMAPClient

I'm sure this isn't the right way to do it, but it worked for me. I modified /usr/bin/easy_install script and removed the version constraint for distribute, so it now looks like this:

#! /usr/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'distribute','console_scripts','easy_install'
__requires__ = 'distribute'
import sys
from pkg_resources import load_entry_point

if __name__ == '__main__':
    sys.exit(
        load_entry_point('distribute', 'console_scripts', 'easy_install')()
    )


One such app is GNOME Schedule. To install, look it up in the Ubuntu Software Centre or use

sudo apt-get install gnome-schedule

in the terminal.

Once installed, go to System -> Preferences -> Scheduled tasks. This will open the configuration window.


The adaper is not missing. It is up and running.

You can run programs using this adapter with DRI_PRIME=1 prefix.

For instance:

DRI_PRIME=1 glxinfo | grep OpenGL

or

DRI_PRIME=1 glxgears

But don't expect much improvement in fps with this adapter.


my optimus system (dell m3800 , intel 4600 + nvidia quadro k1100m) doesn't use bumblebee or primus , i don't have either package installed, if you do i would recommend you remove them with.

sudo apt-get purge bumblebee primus

I am using nvidia drivers from the ubuntu graphics drivers ppa and nvidia-prime. I have no xorg.conf in /etc/X11/.

To add the ppa

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install nvidia-340

for more info about the ppa and which version to use go here

https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa


How can I increase the size of Root Partition?

If, during the Ubuntu installation, you selected a 10GB partition to be mounted as root (/) and another partition for (I'm assuming) /home, then you should be able to use Gparted to increase the size of the root partition. Install and open Gparted, find the 10GB partition, and see if there is any free space after it. If so, you can resize it. If not, I believe you can move the partition that is to the right of the root partition. (This is more risky than usual, so unless you actually need more space, don't do it.) Resize the last partition on the drive so that it's smaller. Drag all the partition ahead of root to the right, then resize root to fill the empty space.

Questions or problems: comment.


How to install Oracle JDK 14 on ubuntu 18.04 and make it be used by java applications?

install the .deb file easily with gdebi-gtk

now, below, attention to the path, jdk-14.0.1 may differ:

sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk-14.0.1/bin/java 2
sudo update-alternatives --config java # select it now

sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk-14.0.1/bin/javac 2
sudo update-alternatives --install /usr/bin/jar jar /usr/lib/jvm/jdk-14.0.1/bin/jar 2
sudo update-alternatives --set javac /usr/lib/jvm/jdk-14.0.1/bin/javac
sudo update-alternatives --set jar /usr/lib/jvm/jdk-14.0.1/bin/jar

java -version;javac -version #confirm it

based on info at:
https://websiteforstudents.com/how-to-manually-install-oracle-java-14-on-ubuntu-18-04-16-04/


my Network ACLs allow inbound/outbound traffic on all ephemeral ports (TCP 1024-65535)

That's the problem -- these rules are not going to be enough.

The Linux NFS client uses a privileged source port (<1024) for outbound connections by default, instead of an ephemeral port. (See netstat -a -n | grep 2049 while waiting for the timeout.)

Some NFS servers require the client to use a privileged port to originate the connection, but EFS doesn't.

So, add -o noresvport to your mount command and you should have no issue.

Note also that EFS does not require any other open ports -- only TCP 2049 toward the EFS endpoint.


Unable to log in and unable to reset the password

Reboot the system and hold down the SHIFT key before the system boots into Ubuntu.
Choose the Recovery Mode using Arrow keys and press ENTER.
Choose 'root' from the list that appears. It will bring up the command line interface.
Type rm ~/.Xauthority and hit ENTER.
Type rm -rf ~/.config/autostart and hit ENTER.
Type shutdown -r now to reboot the system.

What this does is that it just deletes a couple of configuration files (nothing to worry).


Ubuntu 13.10 disable bluetooth at startup

You can find the answer here. In summary:

Open the Terminal and enter sudoedit /etc/rc.local
add before the line exit 0 the line: rfkill block bluetooth

Now the Bluetooth should be disabled on startup.


nuxhash mining on linux for nicehash miner

Nicehash api has been updated
You need to edit /usr/local/lib/python3.8/dist-packages/nuxhash/nicehash.py and add a "2" to the url
GET main/api/v2/mining/external/{btcAddress}/rigs2
(from https://www.nicehash.com/blog/post/api-changes-notification-apr-3)


how to turn off password-less login for ssh?

Disable pubkey authentication on the client where you don't want to use it.

ssh -o PubkeyAuthentication=no your_host

or in your ~/.ssh/config:

Host your_host
  PubkeyAuthentication no

If you want to remove the public key from the server, you need to remove the appropriate line from ~/.ssh/authorized_keys on server.


If that is the entire contents of the file you have some misconfigurations

1)Are you trying to do a DHCP or a staic ip?
2)you misspelled interfaces, see if that is a forum typo or a system typo
3) try this for a static ip

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
        address 10.10.10.23
        netmask 255.255.255.0
        network 10.10.10.0
        broadcast 10.10.10.255
        gateway 10.10.10.1
        dns-nameservers 10.10.10.2 8.8.8.8

Your dns server goes under the interface, likely eth0, but maybe wifi0, try ifconfig to see for sure.

For dhcp you still need a line for the interface getting the dhcp config assuming you are using ethernet cord eth0

auto eth0
iface eth0 inet dhcp


Try going to "Power Management" and over to the "General" tab, and make sure something other than "Never display an icon" is chosen.


How find out what is autostarting my terminal?

pstree is the best way I can think of.

First you need to find the PID of your terminator session you want to trace. I use gnome-terminal so I would use:

$ ps aux | grep gnome-terminal
rick     10321  0.0  0.0  14524  1088 pts/18   S+   20:49   0:00 grep --color=auto gnome-terminal
rick     12871  0.0  0.4 538372 37968 ?        Sl   Jun10   0:31 /usr/lib/gnome-terminal/gnome-terminal-server

The first PID is the ps aux command itself so ignore that. You will have two other PIDs, one for the ghost and one for the ghost-hunter session. Use this to display the pstree for both PIDs:

$ pstree -sapl 12871
systemd,1 splash fastboot kaslr
  └─lightdm,1050
      └─lightdm,1597 --session-child 12 19
          └─upstart,1891 --user
              └─gnome-terminal-,12871
                  ├─bash,12879
                  ├─bash,15278
                  │   └─pstree,21311 -sapl 12871
                  ├─{dconf worker},12873
                  ├─{gdbus},12875
                  └─{gmain},12874

The pstree will trace back all parent processes to your terminator sessions based on PID (Process Identification).


WUBI Windows installer won't launch on Windows 98

As you can see on this quote from Ubuntu Wiki, Windows 98 has not been thoroughly tested, knowing that I would recommend to do the normal installation of it, by creating a partition to install it.

Which Operating Systems are supported?
Windows 7, Vista, XP, and 2000 are known to work with Wubi. Windows 98 should also work, but has not been thoroughly tested. Windows ME is not supported. Linux is supported through Lubi.

From: https://wiki.ubuntu.com/WubiGuide


Chrome on Ubuntu no longer supports Netflix? Latest update removed Widevine component

I think I figured out this problem. It's related to this issue:
https://code.google.com/p/chromium/issues/detail?id=583009

If for some reason you created a launcher on your machine that uses the path to the direct chrome binary like this:

Exec=/opt/google/chrome/chrome

then you aren't running the normal shell script that sets up some library paths to get widevine to work. You can fix it by changing that line to start with:

Exec=/opt/google/chrome/google-chrome

This can happen if you ever started chrome from the command-line and then locked it to your launcher.

This Exec line will be in a .desktop file in

~/.local/share/applications

Usually it will be called "google-chrome.desktop", but it could have other names.


How to restore the default Lubuntu panel in LXDE based Lubuntu releases?

Found this at ubuntuforums.org, hope it helps:

cp /usr/share/lxpanel/profile/Lubuntu/panels/panel ~/.config/lxpanel/Lubuntu/panels
lxpanelctl restart

source


Changing to tty (ctrl-alt-F1) produces black screen (proprietary nvidia driver)

I would try disabling the proprietary driver first, and see if that works. If it doesn't, then try accessing the terminal from a different session (Ubuntu, Ubuntu 2D, ect). If it works from there, I would try disabling any Gnome Shell extensions you have enabled, or simply reinstalling Gnome Shell.


How do I set up an encrypted SSH tunnel for VNC?

If the IP address of your VNC server is 1.2.3.4 (and running on the standard port), you might execute:

ssh -L 5959:127.0.0.1:5900 user@1.2.3.4

This sets up an encrypted tunnel from your local machine's port 5959 that magically comes out on port 5900 at 1.2.3.4

Then you can VNC to localhost::5959

The above assumes that you're also running VNC on your local machine, so port 5900 is taken; 5959 is just another port.   If port 5900 is free, you can change the 5959 in the ssh line to 5900 and just connect VNC to localhost (127.0.0.1) without specifying a port.

Note that your VNC server must be configured to accept loopback connections; some reject them by default to keep someone from VNCing to themselves and starting an infinite stream of cascading windows.


Bash Script - How can I get the size of directories in .txt file and save them into other file?

When dealing with files or directories by their name, I highly recommend to deal with them separated by the nullbyte character, not by a newline. Because officially a filename can contain a newline. So you should not make a list of the directories separated by a newline.

Anyway, when you have this list you can just use this:

du -sch --files0-from=dirs.txt

-s is like -d0 and will only summarize a total for each argument.
-c calculates a grand total.
-h does that all in human readable format.
--files0-from=dirs.txt reads the filenames/directorynames from the given file terminated by nullbyte.

With your list, it whould look like (but with the pitfall of filenames with newlines in it):

tr '\n' '\0' <dirs.txt | du -sch --files0-from=-


It sounds very much like your /bin/sh and/or your /bin/dash executable got borked somehow.

First, let's try to reinstall dash:

sudo apt update
sudo apt install --reinstall dash

Then, reboot. If your system still doesn't work,  we just need to relink it to /bin/dash using this command:

sudo ln -fs /bin/dash /bin/sh

Give your machine a reboot just to ensure everything is cleared out of memory, and then try logging in.

The -f option on ln will force the system to build a link, even though the file already exists.

If your system complains that dash can not be downloaded, run this command to install the latest version from the Xenial repos directly.

If you have a 64-bit system (the majority of people):

wget http://us.archive.ubuntu.com/ubuntu/pool/main/d/dash/dash_0.5.8-2.1ubuntu2_amd64.deb -qO dash.deb && sudo dpkg -i dash.deb && rm dash.deb

If you have a 32-bit system:

wget http://archive.ubuntu.com/ubuntu/pool/main/d/dash/dash_0.5.8-2.1ubuntu2_i386.deb -qO dash.deb && sudo dpkg -i dash.deb && rm dash.deb

You can check your architecture by running arch. If it returns x86_64,  you have a 64-bit system. Otherwise, you have a 32-bit system or some weird system.


Text cursor color should change according to language

Make a shell script that tests weather how your language ($LANG) is set. Then, it output a value of a colored prompt accordingly.

In .bashrc, you would then set the promptvars shell option, and then set the bash prompt to the output of that shell script, like this:

PS1="`/full/path/your-script.sh`\$ "

That way, your script will be invoked each and every time you get a command prompt and it will generate the corresponding prompt string according to how LANG is set.

How do you generate a colored prompt? It will imposible for me to describe it without transcribing a color table... However, the easy way is to go to http://ezprompt.net/ and have it generate it for you on either case, and then just copy the generated colorized prompts on each particular case.


I had to enable universe in my sources.list
sudo vi /etc/apt/sources.list

change the file to look like this:
deb http://archive.ubuntu.com/ubuntu bionic main universe
deb http://archive.ubuntu.com/ubuntu bionic-security main universe
deb http://archive.ubuntu.com/ubuntu bionic-updates main universe

updated apt-get
sudo apt update

And then I could install php7.2-mbstring


Installation from USB stick on UEFI-based system

Did you take a look at the threads at ubuntuforum.org?

For example: http://ubuntuforums.org/showthread.php?t=2015019

There is also answers here on Ask Ubuntu for previous versions of Ubuntu: How to boot Ubuntu from EFI/UEFI?

Not that I know anything about this topic, I just did a google search for you.


Is an Internet connectivity indicator applet available for the Unity panel?

Whilst you mentioned you wish to do this in the network applet - I don't think you can do this.  Here is an alternative.

internet up

internet down

how to for 11.10 & 12.04

It requires an indicator from a PPA together with a custom ping test script:

sudo add-apt-repository ppa:alexeftimie/ppa
sudo apt-get update
sudo apt-get install indicator-sysmonitor
mkdir -p ~/scripts && cd ~/scripts

using:

gedit pingtest.sh

Copy and paste the code below into the new file and save & close.

Give the file execute permission:

chmod +x pingtest.sh

Start the indicator

indicator-sysmonitor &

Then in the indicator-preferences:

click "use this command" and copy and paste the following text:

$HOME/scripts/pingtest.sh

code

#!/bin/bash

if ping -c 1 -W 2 google.com > /dev/null; then
 echo "Up"
else
 echo "Down"
fi


Whats the simplest way to edit and add files to "/var/www"?

If you make /var/www writeable by its group and add the user to the group, that user will not have to use sudo. Try this:

sudo adduser <username> www-data
sudo chown -R www-data:www-data /var/www
sudo chmod -R g+rwX /var/www

The user should then be able to edit /var/www/ files without hassle.

The first line adds the user to the www-data group, the second line clears up any files with messed up ownership, and the third makes it so that all users who are members of the www-data group can read and write all files in /var/www.

If you are logged in as <username> you need to log out and log back in for the group membership to take effect.


Why does the network indicator become invisible (one-pixel wide) in Gnome-Classic on 11.10?

I believe this demonstrates the "invisible nm-applet" problem you're experiencing:

Running nm-applet from the terminal gave me this debug information, which leads me to believe that the behavior you see is a side effect of this known bug regarding visibility of the nm-applet indicator in non-Unity environments. The bug has been fixed in Precise, but NOT for Oneiric 11.10.

Solution: Do what Precise 12.04 does: use Gnome's indicator-applet-complete!

Gnome Classic in 12.04 doesn't have this problem, because it uses a different indicator package that "wraps" nm-applet's functionality (making the bug--fixed or not--irrelevant)

As fossfreedom noted in the comments to your question, the indicator-applet-complete package is also available for 11.10 in a PPA. Installing it is your best alternative.

To do so, open the terminal and:

sudo apt-add-repository ppa:jconti/gnome3 -y
sudo apt-get update
sudo apt-get install indicator-applet-complete

To activate it, let's first remove the existing indicators. Press Win+Alt and carefully right click on the little vertical bar as shown below, and click remove from panel:

You'll get an error, just click on Reload -- it won't reappear. Do the same to remove the user indicator from the panel too.

Now Alt+ right-click on the empty panel, and click on Add to Panel, which will show you this:

Scroll down, select Indicator Applet Complete and click on add, to get the Unity-style indicator bar, including network, sound and user....and that's it!


Website for finding archived .desktop launchers?

Here are mine, if it helps..

/usr/share/applications/indicator-session-shutdown.desktop

[Desktop Entry]
Name=Shut Down
TryExec=/usr/lib/indicator-session/gtk-logout-helper
Exec=/usr/lib/indicator-session/gtk-logout-helper --shutdown
Icon=system-shutdown
Terminal=false
Type=Application
OnlyShowIn=Unity;
Categories=System;
Version=1.0
X-Ubuntu-Gettext-Domain=indicator-session

/usr/share/applications/indicator-session-restart.desktop

[Desktop Entry]
Name=Restart
TryExec=/usr/lib/indicator-session/gtk-logout-helper
Exec=/usr/lib/indicator-session/gtk-logout-helper --restart
Icon=system-restart
Terminal=false
Type=Application
OnlyShowIn=Unity;
Categories=System;
Version=1.0
X-Ubuntu-Gettext-Domain=indicator-session

/usr/share/applications/indicator-session-logout.desktop

[Desktop Entry]
Name=Log Out
TryExec=/usr/lib/indicator-session/gtk-logout-helper
Exec=/usr/lib/indicator-session/gtk-logout-helper --logout
Icon=system-log-out
Terminal=false
Type=Application
OnlyShowIn=Unity;
Categories=System;
Version=1.0
X-Ubuntu-Gettext-Domain=indicator-session

/usr/share/applications/software-properties-gtk.desktop

[Desktop Entry]
Name=Software Sources
GenericName=Software Sources
Comment=Configure the sources for installable software and updates
Exec=software-properties-gtk
Icon=software-properties
Terminal=false
X-MultipleArgs=false
Type=Application
Categories=GNOME;GTK;Settings;X-GNOME-SystemSettings;X-GNOME-Settings-Panel;
MimeType=text/x-apt-sources-list;
X-KDE-SubstituteUID=true
X-Ubuntu-Gettext-Domain=software-properties
X-GNOME-Settings-Panel=software


I am not sure however it might get solved by rebuilding /var/cache.
But You really donno What file to put. Just Copying from others might not solve the problem untill you know the trigger point (e.g. exactly which folder/file is missing there).

I've reinstalled hal. and It Started working again. :-)

sudo apt-get --purge -remove hal
sudo apt-get install hal

However Now I think. just making the following directories manually should work.

/var/cache/apt
/var/cache/apt/archives/partial
/var/cache/debconf
/var/cache/gdm

and expecially /var/cache/hald

However I am not still sure whether it will work or not without a /var/cache/hald/fdi-cache

and I don't think its possible to make this one manually. unless you copy from others. However I do still have hope that you don't need to create /var/cache/hald/fdi-cache manually


How to change splash screen Ubuntu back?

Run sudo update-alternatives --config default.plymouth in terminal.
Select the theme you want to apply.
Run sudo update-initramfs -u in terminal.


SSL/TLS error with links and lynx - possibly due to CloudFlare

First lynx:
According to the report by SSLLabs the server supports only ECDHE ciphers. Based on a packet capture when using lynx in 14.04 it offers no ECDHE ciphers. This means no cipher overlap and thus the handshake fails.

And links:
According to the SSLLabs report the site needs a client with support for SNI. links got SNI support with version 2.10 but you are using 2.8 only. Therefore the handshake will fail.


I was experiencing a similar problem some time ago. In the end, it was the keyboard cable that was malfunctioning.


Transmission Bittorrent Client Does Not See Data on Different ZFS Dataset

Transmission didn't know the user debian-transmission was a member of the read group. I added debian-transmission to that group after starting the transmission daemon.

The user debian-transmission could access the directory via cd or ls. However, the transmission server didn't recognize the group access until I restarted the daemon.


In Gnome-Tweak-Tool you have the Menu Workspaces.
Select Dynamic Workspaces -> Workspaces can be created on demand, and are automatically removed when empty.
With this Option when you close the program from Workspace 3, then this workspace will be removed.
I hope this will help you.


Experiencing gcc 5 failure running poetry install on Ubuntu 20.04

Don't use gcc-5, that causes ubuntu to specifically look for GCC 5.x, which is years out of date and not installed on most systems.  Just use 'gcc' as the command, which will delegate to the default, installed gcc version (in your case, 9.3).
If you're following a guide that tells you to run a script, find a new guide or edit the script.


By looking at your last updated edit, I see the file is not saved as index.php. You see, php scripts will not work when you save it on an .htm or .html extension. In order for the php file to take effect, you will need rename index.htm to index.php.
EDIT
As per my last comment with a testing php script link, it seems there's no problem with your php pack or the lamp-server. It is something to do with your php script itself. Better have a look into the script properly and fix it have a proper outcome.
Hope this helps!


libnpjp2.so - java plugin missing in openjdk-8-jdk:i386

You need to install the icedtea-plugin:i386, it will create

/usr/lib/jvm/java-8-openjdk-i386/lib/i386/IcedTeaPlugin.so

which you can symlink to

~/.mozilla/plugins/libnpjp2.so


Wrap it up in a subshell:

sudo sh -c "/path/to/script; shutdown -h now"

The problem there is the script will run as root too. This might not be an issue (consider it in your case) but you can work around this by using sudo again to break back down to your $USER (which will be replaced because we're using double-quotes):

sudo sh -c "sudo -u $USER /path/to/script; shutdown"

It's a bit hacky but it should work.


How to use GeoIP With Nginx On Ubuntu 12.04?

check this link for Using GeoIP With Nginx On Ubuntu 12.04


After charging the permissions, why can't you execute a .run shell lscript from the terminal in ubuntu 13.04?

Nautilus> Preferences>Go to Behaviour tab > Click the radio button near Ask each time. This will solve your issue(ensure that the permissions have been given).


When I use Bash on Ubuntu on Windows (Ubuntu built into Windows 10), where is my Windows root filesystem (e.g. C drive)?

I was able to figure it out by searching for files that existed in my documents on the Ubuntu bash command line using "locate." Yay!

/mnt/c/Windows
/mnt/c/Users/Ed/Documents
/mnt/d/...


Dual Booting Windows 8.1 and Ubuntu 14.04

OK, try installing Ubuntu normally. I am considering that Ubunty boots and then it asks to reboot. If this is what happens, open terminal (Ctrl+Alt+T) and run (must be connected to internet)

sudo apt-get install grub

If it says it is already installed, run

sudo apt-get intall --reinstall grub

and then

sudo update-grub


You should be fine using the firewall as is. The only time you should have to add a rule or exception is when you are hosting a resource from your machine such as a web site or an FTP server or some other resource that requires clients to connect to you. In this case you are a client (skype) connecting to a remote resource (Microsoft). The profiles used in GUFW are set to allow all outgoing traffic from your PC my default so this should not interfere with any of your Applications.


Your repository is not in /Documents/Learning/Project1. It's in /home/<your username>/Documents/Learning/Project1. You could also use the shortcut ~/Documents/Learning/Project1.

Note that you can't git clone into an existing (non-empty) directory, so you should delete ~/Documents/Learning/Test for git and your command should be (assuming your current working directory is ~/Documents/Learning/):

$ git clone ~/Documents/Learning/Project1/ ./Test\ for\ git/


If you unselect the option Automatic plugin sorting in CCSM's preference window (in Plugin list tab), the options will be grayed out in the main window.

The deselected Automatic plugin sorting image is given below:

The grayed out plugins page's image is given below:

So, the solution is simple. Open CCSM, Go to Preferences Window, select Plugin list tab and select the Automatic plugin sorting option.

Full credit goes to jokerdino, who revealed the information.


How to configure hp Deskject Ink Advantage printer 3777

You need to install HPLIP Binary Plug-In

Some HP printers require proprietary software technologies to allow full access to printer features and performance.  Unfortunately, these technologies cannot be open sourced, but to resolve this HP uses a binary plug-in for these printers.  This plug-in works in conjunction with our Linux Open Source Printing Software to improve the printing experience for HP’s Linux Printing Customers.

As of February 2009 (concurrent with the 3.9.2 release of HPLIP), there were aproximately 50 LaserJet printers or MFP's that either require the plug-in for the device to operate or use the plug-in for enhanced performance (i.e. improved print quality, faster print speed, etc.).  However, additional devices (including inkjet products) are anticipated to use the plug-in in the future.  For the current list of plug-in enabled printers see this link, which also includes the device features that are enabled or enhanced by the plug-in.

Most Linux distributions include HPLIP with their software, but most do not include the plug-in.  Therefore, it is a safe practice to run a utility called "hp-setup", which, will install the printer into the CUPS spooler, download, and install the plug-in at the appropriate time.

To install the plug-in using the GUI you can follow these procedures:

Launch a command-line window and enter:

hp-setup
Select your connection type and click "Next".
Select your printer from "Selected Devices" list and click "Next".
Enter your root password when prompted and click "Next".
Use the recommended installation method and click "Next".
Check the box to accept with the "Driver Plug-In License Agreement" and click "Next".
Finish the installation of the printer as normal, however you may be prompted to re-enter your user name and password.

If you run into any additional install problems you can go to our known issues page and check for a solution.

For advanced users who wish to install HPLIP components manually, a utility exists (hp-plugin) which will download and install the plugin file, but it does not also install a printer queue like hp-setup does.

Do the following:

Launch a command-line window and enter:

hp-plugin
Follow the directions above for navigating the GUI but remember that the printer que will not be installed through this process.

I hope this information helps.


why does dhclient-script up the interface by itself?

dhclient is written to acquire an IP address via DHCP. This requires dhclient to put a DHCP request packet on the network, and receive a DHCP reply from a DHCP server on the network.

dhclient cannot do its job if all interfaces are down.


Set priorities for file-open applications

I found out!

Edit as root the /usr/share/applications/defaults.list file that actually links to /etc/gnome/defaults.list
Add the relevant priority association:

application/vnd.scribus=scribus-trunk.desktop

Save

That's it.

Scribus is now always the default application. Geany appears fine in the "other application" menu.


Reinstall Windows 8 in a Dual Boot Setup?

First, you must install W8, then Xubuntu.
To download W8, use this link, enter the licence number (usually on the back of your computer), and download the *.iso. Then write the W8 iso on a usb-stick, and boot on it. You can install W8 properly.
After installing W8, and only after, install Xubuntu. I imagine you know how to do it.


You can use transmission-cli: sudo apt-get install transmission-cli.

This will provide a CLI for torrents. You can show the contents of a torrent file with:

transmission-show my-file.torrent

To show only files use:

transmission-show my-file.torrent | sed -n -e '/FILES/,$p'

For easier use add the following line to your ~/.bashrc:

function tsf { transmission-show "$1" | sed -n -e '/FILES/,$p'; }

You can replace tsf with whatever you like and then just use tsf my-file.torrent.


When trying to run "Friday Night Funkin" I get an X Error (BadValue)

The official site https://ninja-muffin24.itch.io/funkin just offers to download a .zip (!) file without any instructions, and being a .zip file and not a proper package in any of the Linux package formats (.deb, .rpm, ...) makes it impossible to ensure all the required runtime dependencies are present. This is just sloppy.
The GitHub sources at https://github.com/ninjamuffin99/Funkin have some instructions how to install this, but it also says:

I'm too lazy to write and keep updated with that setup

which I find telling all by itself.
I'd stay away from such low-quality software. Can you be sure that it doesn't do anything harmful to your system?


ubuntu 15.10 can not wake up after suspend

This also happened to me.  Do you have an encryption before the login?  If so I have to hit esc or spacebar several times before it responds.  Don't know the cause, but it is open source :) might save electricity.


Kubuntu 12.10 cannot be installed alongside Windows 7

Two solutions:

Install Ubuntu first, then "upgrade" Ubuntu to Kubuntu by typing sudo apt-get install kubuntu-desktop.
Install Wubi instead of a main ISO.


Simple solution use synaptic.

What you could try

sudo apt install libpcre2-8-0

Otherwise get synaptic if possible and try to install git through it. It's a front end application for apt. Try to install it with apt. If issues occur, get the packages from here https://packages.ubuntu.com/xenial/

dpkg -i ~/Downloads/'package name'

This will also give you the output if you need anything else.


How to echo text into a file in a new column?

You can use the paste command

$ paste 1.txt 2.txt
Windows 7   2009
Windows 8   2012
Windows 8.1 2012
Windows 10  2014


Graphics card incompatibility nVidia GeForce8300 GS Ubuntu 13.04

I switched to Ubuntu 13.04 a few weeks ago and was having the same problem. It was a problem with my graphics card driver working with Ubuntu.

It's kinda hard with all the glitches going on but if you can manage to run the updates the Software Updater provides then go to System Settings > Software & Updates > Additional Drivers and switch from the X.org ones to the fglrx update drivers. Hit apply and let it finish loading,then reboot your computer.


Where is the utorrent default download directory?

Looks like utorrent is running with wine.
If you are using mapped drive in wine, you may find it under ~/.wine/drive_c/users..

Use the key combination Ctrl+h to hide/unhide hidden files (such as .wine)

If you haven't changed utorrent download preferences after install, files will be in different download folder, which is of path ~/snap/utorrent/common/.wine/drive_c/users/<user>/downloads.


Unless you have a backup you can restore from, no.  You will have to reinstall.


Super-S doesn't work after reconnecting USB keyboard

Solved: The same thing may happen even without reconnecting any cable, when after some time unity-2d-shell just dies.

The solution therefore is to issue the command unity-2d-shell, even if it appears to be running. The new one will in such a case exit almost immediately but it will nevertheless “wake it up”.

(Previous comment should have been an answer, sorry.)


This is not a raid Problem, more a permission issue. If you check the output of the cat /proc/mdstat command, you can see that the raid5 is assembled perfectly as indicated by the [UUUU] in the md0 line.

Personalities : [raid6] [raid5] [raid4] [linear] [multipath] [raid0] [raid1] [raid10]
md0 : active raid5 sde[4] sdb[0] sdd[2] sdc[1] 8790405120 blocks super 1.2 level 5, 512k chunk, algorithm 2 [4/4] [UUUU]
bitmap: 0/22 pages [0KB], 65536KB chunk
unused devices: <none>

Also the partition table (loop for a loop-device) and the filesystem (ext4) are fine. After mounting the loop device with mount /dev/md0 /mnt you should see something like:

$ mount /dev/md0 /mnt
$ ls -la /mnt
  total 12
  drwxr-xr-x  3 root root 4096 Jun 29  2016 .
  drwxr-xr-x 10 root root 4096 Dec  7 10:42 ..
  drwxr-xr-x  3 1001 2001 4096 Feb  6  2017 oldusername

Now you need to change the owner of the old user home to your current user:

$ sudo chown $(stat -c '%u:%g' ~/) /mnt/oldusername
$ ls -la /mnt
  total 12
  drwxr-xr-x  3 root        root         4096 Jun 29  2016 .
  drwxr-xr-x 10 root        root         4096 Dec  7 10:42 ..
  drwxr-xr-x  3 currentuser currentgroup 4096 Feb  6  2017 oldusername


Ubuntu 19.10 Login loop No Solutions working!

I had the same problem. At some point I recall that I also needed to do something like

apt-get update
apt-get upgrade

Apart from that, deleting and reinstalling gdm3 was that it fixed it. Don't remember the particular order in which I did it.
I think I found the answer in this same forum, but don't remember the particular post...


Certainly.

Once you have sqlitebrowser installed and connected (see Manually set track listen count in Banshee?), go over to the 'Execute SQL' tab and run something like:

UPDATE coretracks SET playcount = [__] WHERE [field] = [value] AND [field2] LIKE [value2];

example:

UPDATE coretracks SET playcount = 10 WHERE title LIKE '%Bach%';

You can get a list of the fields that are available by clicking the + next to 'CoreTrack' on the 'Database Structure' tab.

If you are not familiar with the SQL language, the above statement is saying: update make a change coretracks to the table named CoreTracks.  Change each row where title has a value that contains Bach.  The change to make is to change the playcount field to a value of 10.  If you have something specific in mind, I'd be happy to help with the SQL.  Put a comment below.


Wifi drops to extremely slow speeds - Please help!

This should be the answer by the end of trouble shooting.  Just want to write here for formatting and length.

Ok a couple questions I have...  You use network manager(default wireless connection program in Ubuntu) to pick network and enter password, correct?  It appears as thought your AP Bell76 is the issue.  It is sending Deauth packets to your wireless card which causes your card to gladly disconnect. The network-manager then automatically connects again until it receices the next Deauth packet.  This is what causes the drop in wifi server I believe.

The line that causes me to think this is from your syslog as seen below.

Mar 20 21:29:57 bbpgrs-VPCEH18FA kernel: [ 8419.673299] wlan0: deauthenticating from d8:6c:e9:24:55:85 by local choice (Reason: 3=DEAUTH_LEAVING)

Reason code 3 means:

3   station is leaving (or has left) IBSS or ESS

So to me it seems to be that the router is sending a deauth packet.  Now if it is a directed packet(only addressed to your MAC) or if it is a broadcast deauth(a deauth packet sent to everyone on the wire) I do not know.  This could be caused by several things.

Do you live around other people or is your house out of range of any other wireless networks?

What router do you have?

EDIT

Something else I noticed is that your txpower is kinda low, don't know if it is because your card is only capable of 20 or if you set it like that.  You might consider raising the TX power, this may help your signal but also may cause your wifi card to run hotter.

Try:

sudo iwconfig wlan0 txpower 30


gnome3: Which program do I use to set an icon for my user account?

Open the "System Settings" (gnome-control-center) and go to "User Accounts" (in the section "System"). There you select your own profile and then click on the profile picture to change it.
You can also change others profile pictures if you are an administrator and use the "Unlock" button in the top-right edge of the window.


How can I Redirect any URL whether it starts with http or https into particular url (abc.com) when user is connected to my wifi in ubuntu 16.04?

Such a redirection would need to be done at your router/access point, and if you're just using a standard SOHO router, it's probably not viable to do so. What you need to do is set up port forwarding from the internal interface on your router (your LAN) to a specific host (your server) on ports 80 (http) and 443 (https).

If you're only concerned with doing this on your wireless and you have a separate access point, you should be able to plug your access point into your server and send traffic from the wifi network through your server. If you don't want the wireless hosts to have internet access, then this is all you really need to do. If you do want them to have internet access, you'll also need to set up iptables or a similar utility to perform NAT for these hosts over to your main network.


Removing the underlines from menu key words

This is not going to be possible on a system wide level.

The underlines are called accelerators and they're implemented at design time. The only way to get rid of them would be to change the actual code of an application to remove the accelerator.


How to disable an "always there" program if it isn't in the processes list?

From the Crashplan website it looks like it should be starting a process from /etc/init.d at bootup. I would look in /etc/init.d to see if there are any startup scripts that look like they are for Crashplan. You can easily temporarily prevent a startup script from running at boot time by running:

sudo update-rc.d script-name disable

Where script-name is the name of the script you see in /etc/init.d that you want to disable. It can be re-enabled later by running:

sudo update-rc.d script-name enable

This will put things back the way they were before you disabled the script.

Also, the website says you can stop crashplan temporarily by running:

sudo /usr/local/crashplan/bin/CrashPlanEngine stop

The path is dependent on where you installed crashplan and will probably only stop the currently running process.

One last thing. I find that ps -ax provides more information than ps -A and can be useful when trying to find a running process, especially when the output is piped to grep. If I were looking for a process associated with crashplan I would try a command like this:

ps -ax | grep Crash

I hope this helps!


How to determine if a package is a meta-package from the command line?

There is no formal definition of a metapackage. The informal definition is that a metapackage is one that is only intended to be installed for its dependencies and contains no useful file of its own.

You can define a metapackage as a package that contains no file. There is no way to determine this from the package database. You can use the file database and check that the package contains only directories (many such packages contain a few directories). In fact, most metapackages contain a few files in /usr/share/doc/<package name>: a copyright file, a changelog, sometimes a few more. Here's an approximation that defines a metapackage as containing only files in /usr/share/doc/<some directory> (not in subdirectories of that) and the leading directories:

if ! apt-file -F list $package | grep -qvE '^/(usr(/share(/doc(/[^/]*(/[^/]*)?)?)?)?)?$'; then
  echo "$package looks like a metapackage"
fi

Another approach is to look for a package tag with debtags. There are several tags that are commonly used on metapackages.

debtags tag ls $package | grep -x -e 'role::metapackage' -e 'role::dummy' -e 'special::meta'

Another approach is to look for packages with a small size. Each directory counts as 4 kB, so plan accordingly when picking a threshold (again, this is an approximation).

aptitude -F '%I %p' search "~n^$package\$"

Upon reflection, I wonder if you mean virtual packages rather than metapackages. Virtual packages are actually not packages but package names used in Provides: fields. You can list them with aptitude search '~v'. Running apt-cache show on one displays “Can't select versions from package 'zcav' as it is purely virtual”. Running aptitude show lists the packages that provide it. A convenient way to show virtual packages is with apt-cache: this prints one line for a non-virtual package and potentially multiple lines (one for each provider) for a virtual package — you can tell if the package is virtual even if there is a single provider because the name of the provider is different.

apt-cache -n search "^$package\$"


How do I add another main user in Xubuntu with gksu?

The command is users-admin

You can Alt+F2 then run

users-admin

To add a new user you will need to supply the admin password (assuming you are the first user, that will be yours)

To do so via command line, use the adduser command.

https://help.ubuntu.com/community/AddUsersHowto#Command-line

If unable to do so from within a booted system, run the recovery mode from your boot menu and use a root terminal.

What is the "recovery" option in the grub menu?

You will need to mount as read/write prior to making any changes from there. ( see answer here Unable to mount filesystem as read-write in recovery mode )

mount -o rw,remount /


I have solved my problem by cleaning the ram modules. But i don't understand that why lshw was showing 4gb ram.


The following commands worked for me:

apt install apparmor-utils
aa-disable /usr/bin/man

Upstream Bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=889617


19.10 Automatic login doesn't work for me when i'm on a nvidia driver and cannot pass the login screen once i've activated automatic login

It seems your issue is quite familiar to the "Auto Login bug with nvidia drivers enabled" here. You might want to try some of the suggestions posted there and also post your info on that thread so it can help debug the issue overall. Seems like the only way to go forward for now is to leave auto login disabled if you want to use the nvidia drivers


What's a good VOIP application for 16.04?

Skype changed to SkypeForLinux and now has some enhanced UI that is supposed to be better for the users. You might want to check that one out and also whether there are any problems in 32 bit mode.

Other than that there are a couple of other options you might want to check out the following. All of them support video calls and partially offer clients for all platforms including Linux:

Viber for linux
Jitsi
Google Hangouts
Google Duo
Ring
Firefox Hello
Tox
Facebook


Installing Ubuntu 14.04 Issues Seeing Install on Desktop

1) Please double check the md5sum of the ISO you downloaded and insure that it matches. If not, download it again, insuring that you have a good copy by checking the md5sum prior to creating your installation media. A long list of md5sums and how to check them is available here

2) You also may wish to attempt installation from a minimal CD which uses a text based installer and will download the packages at install time. Instructions, links and md5sums for the minimal cd are here


Integrated graphics only on NVidia Optimus on X1 Extreme

As the ISO creation script indicates, the only differences between the Intel and the NVidia images is the presence of the nvidia-driver-390 package and the system76-driver-nvidia metapackage.

After running

$ sudo add-apt-repository -s ppa:system76/pop
$ sudo apt install system76-driver-nvidia

my Optimus-based computer now works (though only with Intel drivers).

This did not require me to disable Secure Boot, and the kernel still contains only open-source drivers.


Is it possible to have full hard drive access with a snap?

Yes, what you want is an interface that grants full access to a disk, and it's reasonable for such an interface to exist. It would not be an auto-connecting interface, in that either the user or the person who makes a device with the snap would need to explicitly tell the snap system to allow that connection to take place, but the interface itself is a reasonable request.

If you're game I'd suggest you work up a patch for snapd which we will shepherd into the code.


trying to optimize Ceph CRUSH settings to optimal

You seem to have different kernels on Monitors and clients. There are certain requirements to the Kernel Version with which tunables features are supported.

To check out, whats actually missing on client side, check this


1) Is this sufficient to serve as a local repository? If so, what address should I give APT on each box to update locally (from the local repository)?

Use your local IP address if it's static, otherwise you need to deploy DNS inside the network to specially update a dedicated FQDN for it.  Locally, IP is going to work best

  2) What changes do I need to make to make this available from outside the network, other than the necessary router/network configuration? I'm assuming if I port forward port 80 from my WAN IP to the repository server, it should presently be available from outside as http://[external IP]/ubuntu. However, if I need to make conforming changes based on #1, above, this changes, correct?

Yes and no.  Unless you've got the mechanism to assign a domain to the repository server, or if your router is smart enough to handle NAT reflection, you may have a different 'local' vs. 'public' access route.  You can attempt to use http://external_ip_here/ though from within your local network, it might work.

  3) I would like the repository to be read-only until rsync runs, in which case rsync (some user?) needs write access long enough to complete the rsync process, and then it goes back to read-only. How would I do this?

Put this on a dedicated system and don't give anyone access to the system.  Further, on-system, don't give anyone write access EXCEPT the user that's doing the rsync job, and consider creating a dedicated system user for this without password.  This will be sufficient to control and lock down the permissions on the thing, and so only the rsync job/user will have access rights.


How to install Adode Flash on a live USB?

You may need to enable persistance, if you want to install once and use it after reboot. Please check this https://help.ubuntu.com/community/LiveCD/Persistence#Introduction (Thanks @Henry Gibson)

And you have to enable multiverse source.

Applications->System Tools->Preferences->Software & Updates.

Select Ubuntu Software tab and select the entry which (multiverse)

Now, execute these commands to install Flashplugin in Ubuntu 13.04

sudo apt-get update
sudo apt-get install flashplugin-installer


USB tethering from Ubuntu to Android via USB

This is not possible. But if you have a rooted Android, there is a trick, it's called Reverse USB tethering. Check out this article, author did that on Fedora, but I guess there should be no problems achieving the same on Ubuntu.


Automatically send file input to command using expanded variables

Instead of:

printf "${VPN_USERNAME}\n${VPN_PASSWORD}\n"

try this:

printf "%s\n%s\n" “$VPN_USERNAME” “$VPN_PASSWORD”


Which SIP-Client or SIP Phone is supported by Ubuntu 18.04.3 LTS or 19.10?

Hello and Welcome to Linux.
I found an outdated list for Softphones for Ubuntu
Community Help Wiki: SoftPhone
ring.cx will not redirect to jami.net
Download Jami for GNU/Linux
The software looks easy to use and has the recording capability.
You can download the *.deb package and install it.


How to set the 6TB external hard drive Ubuntu 18.04.4

Your BIOS is outdated at v1.02. A newer BIOS may, or may not, fix your problem with the 6TB HDD.

Note: Perform data backups before any BIOS update.

Note: Update the BIOS at your own risk.

The latest BIOS is 1.14 (or 1.07, depending on how you interpret the HP-ez). See (you must select the Windows 7 64-bit OS):

https://support.hp.com/us-en/drivers/selfservice/hp-compaq-8000-elite-convertible-minitower-pc/4065889

https://h30434.www3.hp.com/t5/Desktop-Software-and-How-To-Questions/No-BIOS-Updates/td-p/6650782

https://ftp.hp.com/pub/softpaq/sp73501-74000/sp73578.exe


Why is Flash performing so badly in 10.10 64-bit compared to 10.04 64-bit?

See these tutorials:

Flash Issues & Solutions

Flash Optimization

Although they are primarily focused on Firefox, most of the content applies to Chrome as well.

For Firefox users with Flash problems, get these two extensions I develop:

FLASH-AID: remove conflicting flash plugins from Ubuntu Linux systems and install the appropriate version according to system architecture.

FlashVideoReplacer: this extension replaces embedded flash videos with Quicktime or Windows Media Player compatible videos, allowing to watch flash streaming content with a less CPU intensive plugin, like gecko mediaplayer (recommended),  gxine, kaffeine, mozplugger, totem, xine, vlc (not recommended).


This is probably because the ntfs filesystems were not unmounted by Windows and thus are marked dirty. You can clear that by using the ntfsfix command from the ntfsprogs package, which should be installed by default. It should be something like this: sudo ntfsfix -d /dev/sdx1, where sdx1 is the ntfs filesystem you need to clean.


copy your file to home folder or documents and try to run it


Match Regular Expressions for Exclude List in deja-dup

No, regular expressions aren't supported by deja-dup and there is no workaround currently.  You'll need to specify the folders explicitly.


just installed ubuntu 14.04 on Dell Latitude d620 and no wired or wireless connection

You installed a wrong driver for the wireless adapter. That probably is also the reason why Ethernet does not work as well.

Remove the wrong driver by running in terminal

sudo apt-get purge bcmwl-kernel-source

After reboot the Ethernet should work. Then connect to the internet and install firmware by

sudo apt-get install firmware-b43-installer

If Ethernet does not work for some reason, use this answer to install the firmware offline.


Installing Kubuntu on PC without internet connection

You may download the Ubuntu iso and burn it to a DVD. The installation procedure asks you if you want to download updates while installing. This will download quite an amount of Mb, you may choose not to and install the updates gradually once the system is installed.

The DVD contains a web browser, LibreOffice and a lot more out of the box, but it is recommended to install updates afterwards.

If you do not want to waste bandwidth with the updates you may use one of various options to download the updates and install them while offline. You may use Keryx or Synaptic amongst the options available.


Maximum headphone volume very low on ubuntu 18.04

I have applied this for my Airpods:
Edit
sudo nano /lib/systemd/system/bluetooth.service
and change
ExecStart=/usr/lib/bluetooth/bluetoothd
to
ExecStart=/usr/lib/bluetooth/bluetoothd --noplugin=avrcp
and run
sudo systemctl daemon-reload
sudo systemctl restart bluetooth


Where do I find this

You will not find these for Ubuntu/Linux. DirectX is a proprietary set of APIs, owned by Microsoft and they have not and probably will never release a version for Ubuntu/Linux.

  and how do I install it to be able to play my game.

Luxor can be played with WINE with a platinum and 2 silver ratings. Installaton of DX on WINE is tricky but there are some guides.

As with anything related with Microsoft: if you want to play Windows games and have an experience as intended by the creators of those games install Windows. Either as a dual boot or in a VirtualBox container.


Please determine what frequency or channel your router is on:

sudo iwlist wlan0 scan

If, for example, your router is on channel 13 and your wireless driver either doesn't know or guesses what country you are in and guesses USA where channel 13 is impermissable, you might not see your router. I recommend that your regulatory domain be set explicitly. Find yours here: http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2  Set it permanently:

gksudo gedit /etc/default/crda

Use nano or kate or leafpad if you don't have the text editor gedit. Change the last line to read:

REGDOMAIN=IS

Of course, substitute your country code if not Iceland. Proofread carefully, save and close the text editor.

Next, if your router is set to use N speeds exclusively and your wireless device doesn't do N, I doubt you will see your router. I recommend you set your router to B, G and N speeds.

WPA2-AES is preferred; not any WPA and WPA2 mixed mode and certainly not TKIP. Second, if your router is capable of N speeds, I have better luck with a channel width of 20 MHz in the 2.4 GHz band instead of automatic 20/40 MHz. I also have better luck with a fixed channel, either 1, 6 or 11, rather than automatic channel selection.

If these changes are ineffective, then we should look at the driver for your wireless device. Please show us:

lspci -nn | grep 0280


How to point Terminal to an external hard drive, and then manually delete its Trash

Eventually, I succeeded in removing the trash folder (from the external USB HDD), using the method suggested in the above comment by 'mikewhatever' - which was to select the "remove" menu-item after right-clicking on the trash folder.
I'm postulating that this eventual success was enabled  when I turned off the automatic-backup option in the backup program that I use. The external HDD was almost full, and I'm guessing that before I turned off automatic-backups, my attempts to remove the trash folder failed because the process of removing the trash folder was not completing before the backup program wrote more onto the HDD, thereby filling the HDD completely full, thereby causing termination of the process of removing the trash folder.


Accessing Xubuntu GUI remotely on linode

You can install X2go. It is a terminal server that will give you either the entire desktop, or a single application run on the server. You can install it from their PPA, which you can find on https://launchpad.net/~x2go/+archive/stable

You'll then install x2goserver and x2goclient, pyhoca-gui or pyhoca-cli. These are clients.


Using MSMTP with GoDaddy relay servers. Help?

I think the issue may be the same as I've experienced on other economy hosting.  Try adding this to your msmtprc file.

tls_certcheck   off

Also, comment this line:

tls_trust_file ...


I think I have resolved my problem.  I have gone to Dash Home by pressing Windows key  and searched for Google and when I opened (by double-click) it opened successfully.


Brightness control not working on HP Pavilion dm3t (Intel GMA 4500MHD)

This seems to be a kernel bug.

You might be interested in reading this bug report, where an Ubuntu kernel developer posted a link to his PPA with a patched kernel (including steps on how to install it).


Newly created files not showing up in Nautilus window

That behaviour of Files, aka nautilus, is probably implemented like this for performance reasons. Rather than exiting nautilus and reloading it, press either F5 or Ctrl+r to refresh the display.
This question suggests you could change the behavior by changing a system setting.


How to make ubuntu remember a windows position and size? (2 Monitors)

Yes, distributions running the KDE environment can do this... One can set positions for windows based on window class, name etc. It needs some practice though.


You have typographic sign – instead of minus (-).

Change your command to

find . -type f -name "*.ts" -delete

For complete syntax see man find:

  ACTIONS
         -delete

          Delete  files;  true if removal succeeded.  If the removal failed, an error message is issued.
          If -delete  fails,  find's  exit  status  will  be  nonzero  (when  it eventually exits).
          Use of -delete automatically turns on the -depth option.

Be careful with copying and pasting commands from blogs and rich text processors. They may transform some typographic symbols to their plain text equivalents and vice versa.

Consider to use simple text editors for the notes next time - use plain text, Markdown or reStructuredText.

And as @AuxTaco mentioned - some blogs may rely on your copying to attack your computer.


Disable xscreensaver when watching Kodi video?

kodi-prevent-xscreensaver
keeps XScreenSaver from coming on when Kodi is active. This bash script is infinitely more lightweight than some alternatives such as caffeine.

git clone https://github.com/graysky2/kodi-prevent-xscreensaver
sudo make
sudo make install

kodi-prevent-xscreensaver

and add it to ~/.config/autostart to add it to start-up application list
but this prevents it any time Kodi is running, not only when it is at full screen.


https://help.ubuntu.com/community/UEFI probably gives you a good indication what to follow:

  To install Ubuntu in EFI mode:

  Use a 64bit disk of Ubuntu (32bit installer does not detect EFI)

  Use the last version of Ubuntu. Support for UEFI appeared in 11.10,
  but has become more reliable in next versions. Support for UEFI
  SecureBoot appeared in 12.10 and 12.04.2.

  Set up your firmware (BIOS) to boot the disk in UEFI mode (see the
  "Identifying if the computer boots the HDD in EFI mode" paragraph
  below)

  Then: nothing special is required if you use the automatic installer
  of Ubuntu ("Install Ubuntu alongside others" or "Erase the disk and
  install Ubuntu"). Important: if you have a pre-installed Windows and
  you want to keep it, do not choose "Erase the disk and install
  Ubuntu". if you use the manual partitioning ("Something else"), the
  difference is that you will have to create and use an EFI partition
  (see the "Creating an EFI partition" paragraph below).


Ubuntu 12.04 LTS with Ralink RT3290, are monitor mode and packet injection supported with rt2800pci that came with the distro?

I don't really understand in this kind of things but I tried exactly the same thing with the same UBUNTU version and the same nic.
try the following:

sudo ifconfig wlan0 down
sudo iwconfig wlan0 mode monitor

/**(the internet connection in this stage would probably be gone)

sudo ifconfig wlan0 up

to exit the monitor mode:

sudo ifconfig wlan0 down
sudo iwconfig wlan0 mode managed
sudo ifconfig wlan0 up

hope I could help.


How should I partition my new SSD? (Journaling on another HDD?)

sorry, have totally overseen your comment. sometimes I am blind.

I don't know what you are using in your home-directory. But I would then put any folder resp. Partition on to your ssd and then put /home onto your normal hard-disk-partitions.
for example it is good when /tmp-folder has a size not smaller than 4.7 GB, because then burning dvds has no trouble with sizes like 4.3 or 4.7 GB - discs.
swap-partition too on your ssd.

I myself have all partitions on 120 GB - ssd and I don't use loads of graphics, games or music files in my home-folder - so there is still space for about 30 Gibi left. But 120 GB would be too small if you plan to install windows too.


How to customize or debug ad-blocking on gnome-web (epiphany-browser)?

As of version 3.24, filters.list has been removed, and some time in or around 3.32 it was replaced with a list in gsettings. You can either edit the list graphically using dconf-editor, under /org/gnome/epiphany/adblock-filters, or via the command-line:

$ gsettings get org.gnome.Epiphany adblock-filters
['https://easylist.to/easylist/easylist.txt', 'https://easylist.to/easylist/easyprivacy.txt']
$ gsettings set org.gnome.Epiphany adblock-filters "['https://easylist.to/easylist/easylist.txt', 'https://easylist.to/easylist/easyprivacy.txt', 'https://additional.filter.list/]"

Pre-3.24 instructions:

GNOME Web blocks ads on the basis of the URI of the element. The blocking is done by the UriTester componant (source code). Like Adblock plus, the tester loads a list of patterns from a list, and determine if a URI is an ad if it matches one of the pattern.

The file $HOME_DIR/.config/epiphany/adblock/filters.list contains the locations of the lists to load (one on each line, with a ; at the end of line). If this file doesn't exists (e.g. first time you run epiphany), it defaults to "https://easylist-downloads.adblockplus.org/easylist.txt". Gnome-web then download (and periodically refresh) the pattern lists, and store them in the same directory (with file name like bedc7ed868397c3dcaf6bc40ed9bbf70)

So, in case of troubles, check that you have filters.list, with one line pointing to a valid adblock+ filter, and one file with a file name of 32 hex chars, containing valid blocking pattern. If the file filters.list exists, but is empty, ads won't be filtered at all.

It is also possible to customize the list used by changing the url in filter.list (for instance replacing the default list with a localised list like https://easylist-downloads.adblockplus.org/liste_fr+easylist.txt).


If it works on Windows and not on Linux, then the file is not a JPEG file type. The issue is in the file extension. Check out the file extension in the terminal by typing file {filename_with_extension}. The command will return some properties of the file. There you could check the image type. If JPEG is not mentioned, then you would have to change the extension to actual image type. For instance, if something like PNG is mentioned, you would have to change extension to .png from .jpeg. In Linux, extensions are important to consider whereas in Windows it doesn't matter of what extension has been set.


have you used ssh -XC ? after that the command would be dbus-launch nautilus --no-desktop --browser


How to import/export Radio Station list of Rhythmbox?

rhythmbox stores information about all music-files in ~/.local/share/rhythmbox/rhythmdb.xml

Entries concerning radiostations start with "entry type iradio".


cinnamon yields black background in Ubuntu 15.10

You said

gsettings get org.gnome.desktop.background show-desktop-icons
gsettings get org.nemo.desktop show-desktop-icons

  both returned true

but the link you've given doesn't suggest that and It's wrong actually. Either one of them should be true. If you want Nemo to control your desktop, you should use

gsettings set org.nemo.desktop show-desktop-icons true
gsettings set org.gnome.desktop.background show-desktop-icons false

Your suggested link says -

  I don't think both keys should be true.
  Like it says here: http://www.fandigital.com/2013/01/set-nemo-default-file-manager-ubuntu.html


You can do this in following ways:

The standard way

When booting up press SHIFT (in systems 9.10 "karmic" or later) or ESC (in systems 9.04 "jaunty" or earlier) at the grub prompt and use the arrow keys to select the rescue mode option and press enter.
The file system may be read only (it is in all currently supported releases). Remount as read write `mount -rw -o remount /
his will boot the system in rescue mode and you should arrive at a prompt that looks like this root@something
To reset your password type this in passwd <username>
Press return, then you will be prompted to enter and confirm a new password.
Once you are done resetting your password you can than switch back to the normal GUI mode by putting this in init 2

If if appears to boot normally, but you see a message that says:Give root password for maintenance (or type Control-D to continue):

then you will have to try a different trick below.

The Other Way

If the "Standard Way" does not work for you and you recieve the "Give root password for maintenance" message, you can recover your password using the following steps

Reboot your computer
Press SHIFT or ESC at the grub prompt (as earlier).
Select your image.
Highlight the line that begins kernel and press 'e' to edit
Go to the very end of the line, change the ro to rw and add init=/bin/bash
press enter, then press b to boot your system.
Your system will boot up to a passwordless root shell.
Type in passwd username
Set your password.
Type in reboot

This was the most suitable way i found for you from here and if this method does not work for you, try reding answer at How do i reset a lost administrative password


Nope.

They have a Linux page in their Wiki but it's ancient. The recent reviews on Wine's AppDB suggest it just won't play at all due to an anti-cheat mechanism.

I'm afraid that would also rule out trying to play it in a VirtualBox (et al) Virtual machine (which uses patched DirectX files for Wine to port 3D instructions through to the VM).


Can I legally build and sell desktops with Ubuntu pre-installed?

It depends. Ubuntu is free software (beyond some redistributable binary blobs), but if you're using it for commercial purposes there are trademark restrictions.

The Legal Fine Print

  Permission from us is necessary to use any of the Trademarks under any circumstances other than those specifically permitted above. These include:

  Any commercial use. OEM services. [...]
  Use for merchandising purposes, e.g. on t-shirts and the like.
  Use of a name which includes the letters BUNTU in relation to computer hardware or software.

  Source: Ubuntu Trademark Policy

Hardware with a debranded Ubuntu OS

If you remove all branding, trademarks, and references to Ubuntu, you are legally okay to sell systems with it installed. Of course, you must provide the source code of all GPL components to customers that request it.

Hardware shipping with Ubuntu "as is"

To use the Ubuntu trademark, you must secure the Canonical's OEM services team's  permission. You can contact them to see if what you're doing is okay. This should not be too difficult, as several small vendors like System76 and ZaReason have secured an agreement.


How do I enable window snapping in Ubuntu 16.04 Mate?

I tested this on CentOS 7 with Mate 1.16.2, but it should work similarly on Ubuntu.

Enabling snapping by dragging windows with your mouse:

Open the "Windows" control panel under System - Preferences - Look and Feel - Windows. Go to the tab "Placement" and check Enable side by side tiling.

Enabling snapping with keyboard shortcuts:

Open the "Keyboard Shortcuts" control panel under System - Preferences - Hardware - Keyboard Shortcuts. Assign the following keys (although there might be more of interest):

Maximize Window - Super+Up (it might say Mod4+Up)
Restore Window - Super+Down
Tile window to the east (right) side of the screen - Super+Right
Tile window to the west (left) side of the screen - Super+Left


failed to load file amd-ucode/micrcode_amd.bin kickstart vm

The package is named amd64-microcode

Contents:

/lib/firmware/amd-ucode/microcode_amd.bin
/lib/firmware/amd-ucode/microcode_amd_fam15h.bin
/usr/share/doc/amd64-microcode/README.Debian
/usr/share/doc/amd64-microcode/README.gz
/usr/share/doc/amd64-microcode/changelog.Debian.gz
/usr/share/doc/amd64-microcode/copyright
/usr/share/doc/amd64-microcode/microcode_amd.bin.README
/usr/share/doc/amd64-microcode/microcode_amd_fam15h.bin.README
/usr/share/initramfs-tools/hooks/amd64-microcode
/usr/share/initramfs-tools/scripts/init-premount/amd64-microcode

So a

sudo apt-get install amd64-microcode

should fix that error if it failed to install during the installation.


nano ~/.bashrc
remove the line that contains path-to-mcu-package or correct it to have the proper path set to it.


Mainly there are two default commands:

lpr and lp

man lpr gives the output:

  lpr  submits  files  for  printing. Files named on the command line
  are
         sent to the named printer (or the default destination if no destination
         is  specified).  If  no files are listed on the command-line, lpr reads
         the print file from the standard input.

man lp gives the output:

  lp submits files for printing or alters a pending job. Use  a
  filename
         of "-" to force printing from the standard input.

so easily use the command:

lp /path-to-file-to-print

Or

lpr /path-to-file-to-print


Git "fatal: protocol error: bad line length character: SSH-"

In case this can help someone.  I had a similar issue.

My .bashrc on the remote server was printing information such as the contents of /etc/issue.  Git would pick up this information and produce the error you have.

I fixed it by commenting out all lines that produced output to terminal in my .bashrc.


Wine, compilation failed, need some advice

Trying it myself right now, I'll letcha know how it goes.

Found this in the archives:
http://lists.freedesktop.org/archives/mesa-dev/2013-July/041900.html

And it lead me to the d3dadapter mesa, which should include the missing libd3dadapter9:
https://github.com/chrisbmr/Mesa-3D/tree/gallium-nine

And there is also a link to the wine you already have in there as well.


To setup tasks to run on login, use gnome-session-properties. This means you can add programs to run when you login to the user account on your machine.

You can configure it like this - just add the command you want to run in the command box:

Very long answer on that here


getting superuser permissions when I'm on an "administrator" account

When you say "logged on as the administrator" I think you mean as a regular user with some special group memberships and sudo ability to run commands as the superuser "root".

In the "User Accounts" control panel this is what "administrator" means, as contrasted with "standard" accounts which can't escalate privileges.

As chaskes answered, even "administrator" accounts normally run as a regular user to increase security and avoid mistakes. You need to ask permission with sudo to get superuser privileges for the duration of a command.


Theoretically, there are 2 ways to do this:

[Source] Editing xrdp.ini to add a custom local login

Make sure you have xrdp and vino installed

sudo apt-get install xrdp vino

Edit /etc/xrdp/xrdp.ini

sudo gedit /etc/xrdp/xrdp.ini

copy xrdp1 block and change its number to something else which is not already there in the ini file. Basically the number here decides the dropdown order. Add this

[xrdp1]
name=MyLocalLogin
lib=libvnc.so
username= password=ask
ip=127.0.0.1
port=5900

Now just try rdp'ing and choose your custom session MyLocalLogin

[Source] I haven't tried this yet. It looks somewhat painful as it involves modifying and re-compiling the xrdp source.

Install basic stuff needed.

sudo apt-get install autoconf libtool libpam0g-dev libx11-dev libxfixes-dev libssl-dev
sudo apt-get install gnome-session-fallback
echo  ”gnome-session --session=gnome-fallback” > ~/.xsession
sudo apt-get install x11vnc

Download the xrdp source from here. Now extract it anywhere, lets call it root. Go to root/xrdp-master and :

sudo ./bootstrap
sudo ./configure
sudo make
sudo make install

Now we need to configure our system in order to have xrdp using X11Vnc package and have the xrdp service started automatically when the Ubuntu computer is restarted.

sudo apt-get install xrdp
sudo apt-get remove xrdp
sudo mv startwm.sh startwm.sh.backup
sudo ln -s /etc/X11/Xsession /etc/xrdp/startwm.sh
sudo mkdir /usr/share/doc/xrdp
sudo cp /etc/xrdp/rsakeys.ini /usr/share/doc/xrdp/rsakeys.ini

Now we need to update the /etc/init.d/xrdp. Simply copy the content of the modified xrdp script file into your /etc/init.d/xrdp

<-------   Begin of the Script -------->

#!/bin/sh -e
#
# start/stop xrdp and sesman daemons
#
### BEGIN INIT INFO
# Provides:          xrdp
# Required-Start:    $network $remote_fs
# Required-Stop:     $network $remote_fs
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start xrdp and sesman daemons
# Description:       XRDP uses the Remote Desktop Protocol to present a
#                    graphical login to a remote client allowing connection
#                    to a VNC server or another RDP server.
### END INIT INFO

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/local/sbin/xrdp
PIDDIR=/var/run
SESMAN_START=yes
USERID=xrdp
RSAKEYS=/etc/xrdp/rsakeys.ini
NAME=xrdp
DESC="Remote Desktop Protocol server"

test -x $DAEMON || exit 0

. /lib/lsb/init-functions

check_root()  {
    if [ "$(id -u)" != "0" ]; then
        log_failure_msg "You must be root to start, stop or restart $NAME."
        exit 4
    fi
}

if [ -r /etc/default/$NAME ]; then
   . /etc/default/$NAME
fi

# Tasks that can only be run as root
if [ "$(id -u)" = "0" ]; then
    # Check for pid dir
    if [ ! -d $PIDDIR ] ; then
        mkdir $PIDDIR
    fi
    chown $USERID:$USERID $PIDDIR

    # Check for rsa key
    if [ ! -f $RSAKEYS ] || cmp $RSAKEYS /usr/share/doc/xrdp/rsakeys.ini > /dev/null; then
        log_action_begin_msg "Generating xrdp RSA keys..."
        (umask 077 ; xrdp-keygen xrdp $RSAKEYS)
        chown $USERID:$USERID $RSAKEYS
        if [ ! -f $RSAKEYS ] ; then
            log_action_end_msg 1 "could not create $RSAKEYS"
            exit 1
        fi
        log_action_end_msg 0 "done"
    fi
fi

case "$1" in
  start)
        check_root
        exitval=0
        log_daemon_msg "Starting $DESC "
        if pidofproc -p $PIDDIR/$NAME.pid $DAEMON > /dev/null; then
            log_progress_msg "$NAME apparently already running"
            log_end_msg 0
            exit 0
        fi
        log_progress_msg $NAME
        start-stop-daemon --start --quiet --oknodo  --pidfile $PIDDIR/$NAME.pid \
        --chuid $USERID:$USERID --exec $DAEMON
        exitval=$?
    if [ "$SESMAN_START" = "yes" ] ; then
            log_progress_msg "sesman"
            start-stop-daemon --start --quiet --oknodo --pidfile $PIDDIR/xrdp-sesman.pid \
           --exec /usr/local/sbin/xrdp-sesman
            value=$?
            [ $value -gt 0 ] && exitval=$value
        fi
        # Make pidfile readables for all users (for status to work)
        [ -e $PIDDIR/xrdp-sesman.pid ] && chmod 0644 $PIDDIR/xrdp-sesman.pid
        [ -e $PIDDIR/$NAME.pid ] && chmod 0644 $PIDDIR/$NAME.pid
        # Note: Unfortunately, xrdp currently takes too long to create
        # the pidffile unless properly patched
        log_end_msg $exitval
    ;;
  stop)
        check_root
    [ -n "$XRDP_UPGRADE" -a "$RESTART_ON_UPGRADE" = "no" ] && {
        echo "Upgrade in progress, no restart of xrdp."
        exit 0
    }
        exitval=0
        log_daemon_msg "Stopping RDP Session manager "
        log_progress_msg "sesman"
        if pidofproc -p  $PIDDIR/xrdp-sesman.pid /usr/local/sbin/xrdp-sesman  > /dev/null; then
            start-stop-daemon --stop --quiet --oknodo --pidfile $PIDDIR/xrdp-sesman.pid \
                --chuid $USERID:$USERID --exec /usr/local/sbin/xrdp-sesman
            exitval=$?
        else
            log_progress_msg "apparently not running"
        fi
        log_progress_msg $NAME
        if pidofproc -p  $PIDDIR/$NAME.pid $DAEMON  > /dev/null; then
            start-stop-daemon --stop --quiet --oknodo --pidfile $PIDDIR/$NAME.pid \
        --exec $DAEMON
            value=$?
            [ $value -gt 0 ] && exitval=$value
        else
            log_progress_msg "apparently not running"
        fi
        log_end_msg $exitval
    ;;
  restart|force-reload)
        check_root
    $0 stop
        # Wait for things to settle down
        sleep 1
    $0 start
    ;;
  reload)
        log_warning_msg "Reloading $NAME daemon: not implemented, as the daemon"
        log_warning_msg "cannot re-read the config file (use restart)."
        ;;
  status)
        exitval=0
        log_daemon_msg "Checking status of $DESC" "$NAME"
        if pidofproc -p  $PIDDIR/$NAME.pid $DAEMON  > /dev/null; then
            log_progress_msg "running"
            log_end_msg 0
        else
            log_progress_msg "apparently not running"
            log_end_msg 1 || true
            exitval=1
        fi
    if [ "$SESMAN_START" = "yes" ] ; then
            log_daemon_msg "Checking status of RDP Session Manager" "sesman"
            if pidofproc -p  $PIDDIR/xrdp-sesman.pid /usr/local/sbin/xrdp-sesman  > /dev/null; then
                log_progress_msg "running"
                log_end_msg 0
            else
                log_progress_msg "apparently not running"
                log_end_msg 1 || true
                exitval=1
            fi
        fi
        exit $exitval
        ;;
  *)
    N=/etc/init.d/$NAME
    echo "Usage: $N {start|stop|restart|force-reload|status}" >&2
    exit 1
    ;;
esac

exit 0


Chromium seems to use the following directories:

~/.config/chromium
~/.cache/chromium

Where ~ represents the home directory in /home  The . before the files mean they are hidden, so you need to press Ctrl+H to view them in file browser.

You can remove files with ubuntu-tweak's Janitor feature, or with BleachBit:

or simply by running:

rm -rf ~/.config/chromium
rm -rf ~/.cache/chromium

And if you want to be sure it has been removed, you can use srm:

srm -rf ~/.config/chromium
srm -rf ~/.cache/chromium

Which overwrites the files etc, and may give more effective information if rhe folders cannot be deleted.

For all of the above, make sure chromium is not running.


Run .sh script that spawns several terminals

That is expected behavior for Bash. It sequentially processes commands and waits for the previous one to complete before it continues. But if it doesn't end then it's stuck in limbo waiting.

What you can do, if you don't mind not seeing one of the processes is run the command followed by an & symbol. This will start it as a sub process so you won't see it but it will be running in the background.

For example: sudo /path/to/command.sh &

If you need it to be visible you can run it as such gnome-terminal -e command. This should open another terminal window and run the specified process in that window leaving your previous window to continue on as it should.

Your script could look something like this.

sudo systemctl stop apache2

sudo gnome-terminal -e /opt/lampp/manager-linux-x64.run

sudo /opt/PhpStorm-193.6015.48/bin/phpstorm.sh

sudo chmod -R 777 Desktop/Code/testProject


Perl rename command regex working weirdly with groups and hyphen

If I read this right, the offending files (4-BRSA-248-ES_dados.txt, for example), are already in the required format. Therefore no renaming is done and they're not in the output. From the manpage:

"rename" renames the filenames supplied according to the rule specified
as the first argument.  The perlexpr argument is a Perl expression
which is expected to modify the $_ string in Perl for at least some of
the filenames specified.  If a given filename is not modified by the
expression, it will not be renamed.  If no filenames are given on the
command line, filenames will be read via standard input.

For example, touch foo; rename -n 's/foo/foo/' * will output nothing.


You have moved from a system wide installation to a localized user installation of the application within the same terminal session without it updating its environment.

Your terminal is remembering the system wide installation path at /usr/bin/... and trying to run that.

You will need to close the terminal session and reconnect to obtain a fresh environment and $PATH contents.

(If there's a better way to do this directly from the command line, I'd love to know.)