Is your USB stick already persistent? If not:

I would suggest using Startup Disk Creator from the Live CD or Ubuntu install or usb-creator.exe, (for Windows), extracted from the iso, (using 7zip).

Select Stored in reserved extra space, 1GB should be enough for your requirements.

Boot from the persistent USB, go to software center and download E-book readers, Codecs, etc.

Hopefully the Wi-Fi drivers you need will already be installed.

When loading movies etc to the stick, from another machine, just make a folder in root.

To access the movies, etc, when you are booted from the stick, go to filesystem/cdrom.

If your USB stick is already Live but not persistent, you can add a persistent casper-rw partition. Let me know how you built your stick, usb-creator? Unetbootin? and I will give details.


The following error message appears when i run dpkg on linux ? What is the issus?

You should get rid of the "ruto" in this line in your grub file

ruto# If you change this file, run 'update-grub' afterwards to update

You must have been editing it and made a mistake. This line should start with the # sign.


Thinkpad T14 enable wwan module Fibocom L860-GL

Ubuntu maybe really can not detect it. Not sure what is going on exactly, but linux support is lacking for this device. Lenovo is working on it. So some good news might come someday. Still sad that it is hard in 2020 to buy hardware that has good Linux support. Even when a laptop is sold and listened as ready for linux/Ubuntu. A bit  disappointed.
https://forums.lenovo.com/t5/Other-Linux-Discussions/Fedora-on-X1-Extreme-Gen-3-WWAN-Fibocom-L860-GL-4G-LTE-Advanced-Cat-16-not-working/m-p/5044699?page=1#5187313


Ok I did a clean reinstall, This time with CUDA 8.0 and suppressed the OpenGL installation. This seems to work.


System always start with "System program problem detected" dialog

I had the same issue and all I had to do was issue this command in terminal sudo rm /var/crash/* and it realy worked.


node syslog outputs "Error processing log message"

it seems that the priority(severity) value is missing or invalid at the beginning of the message. Try setting it explicitly in your node code (see https://github.com/cloudhead/node-syslog/blob/master/lib/node-syslog.js)


What does this sequence ../.. mean in command line?

.. indicates the parent directory of current working directory. So, ../.. indicates the parent directory of the parent directory of the current directory.

some_command ../.. means the some_command takes the directory name as argument e.g. ls or cd.

Example:

/foobar/grandparent/parent% cd ../..

/foobar%


Anki does not play audio and show error "Sound and video on cards will not function until mpv or mplayer is installed."

You need to install mplayer in your computer using these commands in the terminal:
sudo add-apt-repository universe
sudo apt update
sudo apt install mplayer mplayer-gui

After that restart your Anki. It worked for me.
Source for installing mplayer manually


Edubuntu boots in  low graphics mode. with an Intel HD Graphics system

see my answer here:

Fglrx causes serious bug-black screen!


How to get my Chrome window back to a state where the resize function works normally?

I had a similar problem, but in my case resize and maximize where disabled, I couldn't drag the window either. When I tried using the mouse to resize it nothing happened and the chrome window was covering the whole screen and I wasn't able to "restore" or maximize. Even when I tried using the context menu with CTRL+space, resize and maximize options were disabled.

What I did was open a new tab (CTRL+T) and then drag that new tab down so that chrome creates a new windows. The new window had all the options I wanted enabled and I could drag that new window around. I closed the other one, and when I start chrome again everything works fine.

I hope this can help in your case.


rsync error "rsync: failed to set times on "directory" : No such file or directory (2)

I'm not sure on the reason of the error, but you can skip transferring times of symlinks using the -J option.

From the rsync man page:

  -J, --omit-link-times
  This tells rsync to omit symlinks when it is preserving modification times (see --times).


How to Launch a real install of Ubuntu already on another hard-drive in Windows 7 like a VM

If I understand correctly, you want to run 2 fully installed OS's at the same time.  AFAIK, you cannot run two OS's at once without virtualizing one of them.

So here is what I found on moving an OS from a hard drive to a virtual machine

  Convert your Computer into a Virtual
  Machine

  There's a new
  utility from Microsoft that makes it
  both simple and free to convert an
  existing installation of Windows into
  a virtual machine ready to run on any
  other computer.

  Microsoft’s Sysinternals team has
  released a simple application called
  Disk2vhd, that lets you easily migrate
  an existing computer to a virtualized
  hard drive (VHD). It's a tiny utility
  doesn't even require instillation.
  Create Virtual Hard Disks with
  Disk2VHD

  When you run Disk2vhd, it will
  immediately show you all the drives
  and partitions on your computer that
  it can migrate to a VHD.  Simply
  select a drive that you wish to create
  a VHD file from and click “Create.”
  Disk2vhd will convert the hard drive
  into a VHD file even if the computer
  /drive is currently in use.

  When the Virtual Machine VHD file is
  created, you can run it in any desktop
  virtualization program including the
  free Windows Virtual PC, Virtual Box,
  or VMware Player. You can also mount
  the virtual machine as a standard hard
  drive in Windows 7, and can even boot
  from it if your computer is running
  Windows 7 Ultimate.

  You may use Disk2vhd to create virtual
  machines of your Windows XP, Windows
  Server 2003, Windows Vista and higher
  machines, including x64 systems. Usage
  Scenario

  Let's say you have a computer that is
  already running all the software
  programs you frequently use, but you
  now want to move to a new computer or
  upgrade your operating system. You can
  then consider creating a virtual
  machine of your old machine using the
  Microsoft utility and this will help
  you use all your favorite programs
  (with the same settings) on the new
  machine.

  You can also use virtualization to
  create a ghost image of your hard
  drive in a single file and this will
  be handy in the event of a disk
  failure.

  Disk2vhd is an useful tool that will
  make it much easier for you to enjoy
  the benefits of virtualization without
  being too technical.

From labnol.org

Hope this helps.


I have fixed this problem with a simple solution.

I opened the "Disks" tool and turned on the automatic mount options.

Thanks for everyone tried to help.


Flickering screen with Intel graphics on Ubuntu 17.04

Its happened with me too on Intel graphics..
Some times these are the bugs also sometimes screen detection sensor does it is lided or unlided. It can be dust or something etc in your device.

I would suggest you to clean or check your device clearly after it then come towards removing of bugs.


How to download Stanford Open Classroom videos?

Use Firefox with Video DownloadHelper addon.


How can i hide winmail.dat in Evolution?

TNEF is a program for unpacking MIME attachments of type "application/ms-tnef".

(from the Software Center's description of package tnef).

You are supposed to restart your Evolution after installing evolution-experimental-plugins (source) and normally you would see the winmail.dat file as well as the unpacked document (source). This means that it will not be "hidden" or disappear in any way.

Installing the stand-alone tnef package will allow to unpack the winmail.dat file, once downloaded, thus:

tnef winmail.dat

(source).


Hiding ¶ line break character in NetBeans editor

To hide the space or tab characters, follow these simple steps:

Open your NetBeans IDE 8.2[related image: A file is opened with showing the hidden characters ]
Go / Click "View" menu
[related image: Clicking the view menu in NetBeans ]
Remove the tick mark beside of "Show Non-Printable Characters".
[related image: After clicking the option, the hidden characters are hidden. ]

Again, to show these characters, use these steps:

 1. Open your NetBeans IDE 8.2
[related image: A file is opened with hiding the hidden characters. ]
 2. Click "View" menu from menu-bar
[related image: Clicking the view menu in NetBeans ]
 3. Click "Show Non-Printable Characters" to put a tick mark beside the menu-item.
[related image: After clicking the option, the hidden characters are shown again. ]
Thats it!
Thanks for asking questions in AskUbuntu.


Starting gedit with parameters from terminal causes an error (gedit:47653): GLib-GIO-CRITICAL

Well, I don't know why -w -s key combination gives the error, but if we launch gedit like this: gedit -s, it launches successfully. I found this solution here: stackoverflow.com/a/41469405/216479


installation ubuntu 16.04 LTS alongside windows 7

In this case:

erase disk and install ububtu: It would remove all existing partitions and start again.
something else: you have some options to edit in your disk.

A - I think the best case in here you should choose something else to ensure your options on saving your current data from another disk.

B - In something else option, you can choose your size of partition.

C - After installing Ubuntu, there is shown one boot menu for you to choose your installed operating system

Good luck!


Why can't I see my published software in my Ubuntu Software Center?

looking at the app in the Software Center catalogue, you'll see that Sukaro is only available in Ubuntu 11.10, which is the current stable release.

If you want it to be available in other Ubuntu versions, I would recommend testing that the app works in all versions and then add a comment in My Apps requesting it to be packaged for the Ubuntu versions you'd like to distribute it for.

Thanks!


xorg.conf: how to automatically update VendorName and ModelName in Monitor section?

nvidia-settings does it. When done X Server Display Configuration then click Save to X Configuration File and merge with your existing xorg.conf. Your monitor model will be updated as well as video-card model.


How can I use apt install on a computer with no network connection (from USB)?

You could download those deb files with

sudo apt download pkgname

as described here.

Do not be irritated by the following warning

  Download is performed unsandboxed as root as file

The files will be in the directory where you issued the command

Copy the debs unto you stick. On the second machine you may either use gdebi (the graphical installer) or dpkgto install the packages. Make sure you have all the dependent packages installed as well...


Where do I find wireless drivers for ndiswrapper, for a Ralink card?

Download the current drivers from the Ralink Support website (download both XP and Windows 7 versions):

http://www.ralinktech.com/en/04_support/support.php?sn=501
Install Windows Wireless Drivers (ndiswrapper):

Open Software Center and search "Windows Wireless".
Click "More Info" on the Windows Wireless Drivers package.
Ensure that both Add-ons (ndiswrapper-dkms and ndiswrappe-source) are marked for install.
Click Install for the main Windows Wireless Drivers package.

Open Windows Wireless Drivers.
Type your administrative password.
Click "Install new driver" and go to the directory of the .inf file of your drivers and open it.
Install.
Reboot.

* Note, if this does not work, remove the driver and try again with the other version of Windows driver. My setup, for example, will only work with the Windows 2000 version for some reason.*


It sounds like the default MIME type is wrong.  It's being interpreted as text/plain when it should be interpreted as text/html. I have not compiled from source.  From the package(s) I've installed, there's a stanza in the three files /etc/php5/apache2/php.ini, /etc/php5/cgi/php.ini and /etc/php5/cli/php.ini which reads:

PHP's built-in default is text/html
; http://php.net/default-mimetype
default_mimetype = "text/html"


Dev/sda5 clean #/# files, #/# blocks after upgrading from 1804 to 1910. Stuck on same numbers even after waiting overnight

Yep, just resolved this. Tried tons of other methods, but the only one that really fixed it was by doing the following :

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

From a terminal (for example through the recovery mode from GRUB )


If you mistakenly deleted a partition, and want to get your data and the partition back, then you can use Testdisk.

  TestDisk is powerful free data recovery software! It was primarily
  designed to help recover lost partitions and/or make non-booting disks
  bootable again when these symptoms are caused by faulty software,
  certain types of viruses or human error (such as accidentally deleting
  a Partition Table). Partition table recovery using TestDisk is really
  easy.1

To install TestDisk, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt-get install testdisk

For step by step instructions on how to use see TestDisk Step By Step.

1Source:TestDisk


For Ubuntu 32bit:

gedit ~/.AndroidStudio2.1/studio.vmoptions

For Ubuntu 64bit:

gedit ~/.AndroidStudio2.1/studio64.vmoptions

Add the following line in the opened file and save the file.

-javaagent:/usr/share/java/jayatanaag.jar


Just installed CouchDB, permission error

I had the same error this morning and corrected it by:
Adding my user to the couchdb group.  It did require a reboot in order to allow access to /var/lib/couchdb

I used gnome-system-tools to access the groups

sudo apt-get install gnome-system-tools


DNSCrypt-proxy works, but with incorrect permissions

There is a PPA mantained by Sergei Schnatsel that should render things easier... OS luna is based on ubuntu 12.04.

More here: link to PPA


Problem with building/compiling a driver for Edimax wireless adapter EW-7822UAC in Kubuntu 13.10 64-bit

Please check here: https://github.com/abperiasamy/rtl8812AU_8821AU_linux On the right hand side, click 'Download ZIP.' Assuming downloads go to your Downloads folder, open the folder, right-click the zip file and select 'Extract Here.' Open a terminal and do:

cd Downloads/rtl8812AU_8821AU_linux-master
make
sudo make install
sudo modprobe 8812au

It 'makes' with a couple of warnings on my 13.10 system, but no errors. I can test no further since I haven't the device. This is a rather new device and we'll be very interested in your report.

Whenever a later kernel version, also known as linux image is installed by Update Manager, after you reboot, you will need to re-compile the driver:

cd Downloads/rtl8812AU_8821AU_linux-master
make clean
make
sudo make install
sudo modprobe 8812au


How to install "Docker 1.12.0 RC" on Ubuntu?

You can use their install script:

sudo -s
curl -fsSL https://test.docker.com/ | sh


These Windows files with Persian text are encoded in Windows-1256. So it can be deciphered by command similar to OP tried, but with different charsets. Namely:

recode Windows-1256..UTF-8 <Windows_file.txt > UTF8_file.txt
(denounced upon original poster’s complaints; see comments)

iconv -f Windows-1256 Windows_file.txt > UTF8_file.txt

This one assumes that the LANG environment variable is set to a UTF-8 locale. To convert to any encoding (UTF-8 or otherwise), regardless of the current locale, one can say:

iconv -f Windows-1256 Windows_file.txt -t ${output_encoding} > ${output_file}

Original poster is also confused with semantic of text recoding tools (recode, iconv). For source encoding (source.. or -f) one must specify encoding with which the file is saved (by the program that created it). Not some (naïve) guesses based on mojibake characters in programs that try (but fail) to read it. Trying either ISO-8859-15 or WINDOWS-1252 for a Persian text was obviously an impasse: these encodings merely do not contain any Persian letter.


can't run "glxgears" in root on lxc 2.0 container

I was able to fix it and run glxgears in root mode.
The problem was with the xauth.

The host system already had xauth.The idea is to use the key of the already trusted user, which in my case was manik on the host system.

Using command xauth list gave me the following output:

manik/unix:0  MIT-MAGIC-COOKIE-1  a4f6256398303725763c5595f404afbb

I am going to use the key in hex(right most entry above) in my root user account inside container.

I installed xauth package in the container:

sudo apt-get install xauth

Inside root user prompt in container:

export DISPLAY=":0"
xauth add $DISPLAY . a4f6256398303725763c5595f404afbb

And now glxgears works fine in root mode.


Cannot mount encrypted LUKS drive with "x-gvfs-show" option

Unfortunately, you found this bug:

https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/1012081

The util-linux package in Ubuntu 13.10 is still the version 2.20 (2012). It is a very critical package and must be updated with a lot of caution, and in sync with upstream, although probably in this case there have been a bit of overzealous safety...

On the other hand, it can be seen as a bug of gvfs for using features not present in the stable version of the package, here: https://bugs.launchpad.net/ubuntu/+source/gnome-disk-utility/+bug/1011257

So I basically think there is an impasse here.

I hope (but I do not think) that the update will land in 14.04.


USB flash drive wont detect hard drive/SATA

To update your BIOS, you will have to go to the website of your motherboard (or PC, if you bought a pre-built, i.e. Dell, HP) to find the correct download. They are typically an iso that you burn to a CD and run.

To install to the hard drive, instead of the flash drive, when you get to the "Installation Type" screen, choose "Something Else".

That will allow you to manually partition your drive and set where you want to install. Create a 2GB partition for swap, and make the rest an ext4 partition, using "/" as the mount point.


Try to remove the hard drive and hook it up to a running PC. Set up this HD as as slave drive if possible. You can also access this drive via USB. If you have not destroyed or corrupted this drive you will be able to read all your data files and move them to a safer drive. Reformat the drive, reinstall Windows 7 and move your recovered data back to the fresh system.
Good Luck.


Rpi 4 with Ubuntu Server tether network with usb-c

Tbe version of Ubuntu you used likely doesn't support USB properly.

Canonical have just released a new Ubuntu 19.10.1 server image for Rasberry pi which supports USB and sees 4Gb on pi 4 out of the box.

Here it is


As you can see, your eth0 interface does not have IPv4 address. This most often means that you do not get DHCP lease. This, in turn, usually is because your network has no DHCP (not working, or MAC-filtered). Before you proceed, you should ask network admin if you must use dynamic (DHCP) or static IP, and what the numbers are.


ownCloud command line client owncloudcmd

They split the package in two:

the package owncloud-client holds the GUI program  owncloud while
the package owncloud-client-cmd holds the CLI program owncloudcmd

The latter doesn’t depend on the GUI program, which probably is why they split the two – on a headless system you don’t need the GUI, so no need to install it. To use owncloudcmd you just need to install the aforementioned package:

sudo apt install owncloud-client-cmd

On Ubuntu 18.04 this installs version 2.4.1 of the program. If for any reason you need the current version 2.4.2 and/or updates to the current version at any time, I recommend installing the Ubuntu PPA from software.opensuse.org. Follow these steps to set it up and install the package (I simplified this a bit):

Remove the repository package (you may skip this step if you didn’t install it):

sudo apt remove owncloud-client{,-cmd}

Add the repository:

echo 'deb http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_18.04/ /' | sudo tee /etc/apt/sources.list.d/isv:ownCloud:desktop.list

Add the repository key:

wget -nv https://download.opensuse.org/repositories/isv:ownCloud:desktop/Ubuntu_18.04/Release.key -O- | sudo apt-key add -

Update the sources and install the newest package version available. As the PPA‘s version is newer, this ignores the official repository’s owncloud-client package:

sudo apt update && sudo apt install owncloud-client

After this owncloud and most notably owncloudcmd work out of the box:

$ owncloudcmd --version
ownCloud version 2.4.2 (build 9883)
Git revision d6e9755121c22b8033d18d496b0e59b7bb752b62
Using Qt 5.6.2, built against Qt 5.6.2
Using 'OpenSSL 1.0.2n  7 Dec 2017'


Thunar hiding and displaying side panel on mouseclick and moving mouse around

I had the same problem, and don't know why it "hide" itself (seems related to opening a folder with a lot of metadata on files...), but it is not gone!
In fact, there is no option to hide it, it just resized, so click on the left border, drag on the inside, and it pop up again :)


rhythmbox and deepin both don't find my music directory. Is this some kind of permissions?

Neither Rhythmbox or deepin can handle symbolic links.  When clicking on /home/user/Music -> /big/user/Music it does not behave the same even though the file requester follows the links.  By clicking on computer/big/user/Music it finds the directory.


Evolution Contact Sync failure in Ubuntu One

While I wasn't able to find a timeline for when there is an explanation of why it isn't available on the 9.10 and 10.04 release.

  Syncing of contacts and bookmarks is
  working for Ubuntu 10.10 (Maverick)
  users. Maverick users will need to
  have the latest updates installed.
  Ubuntu 9.10 (Karmic) and Ubuntu 10.04
  LTS (Lucid) users will have to wait a
  bit longer for backporting of the
  CouchDB and Erlang packages. We
  presented the case for backporting
  CouchDB to Ubuntu 10.04 LTS to the
  Ubuntu Technical Board and the
  suggestion was to investigate creating
  a separate, special package that will
  allow Ubuntu One databases (contacts,
  bookmarks, etc.) to synchronize once
  again. We're currently looking into
  this.


I was able to resolve this using the instructions here which is using the instructions from the Ubuntu Wiki here


Alacritty has "regex hints", that watch the buffer for a match allowing for the general case to act on it or launch something externally.
You can combine it with the dmenu passmenu helper inside the pass util or something that access the gnome-keyring (secret-tool, keyman, gnome-keyring-cli) or any password manager that surfaces a search option.
The default regex in the alacritty.yml contains a url example and explains how to use the regex match text as input.
Tangentially: wherever there is interactive terminal input of credentials I usually find a way to use the utils preferred way to read out a secret from the filesystem (mysql/psql/mongo/ssh) or invoke a password cli util automatically (mutt/msmtp/fetchmail). There are ways to secure filepath secrets.


Signing into my Offices Windows based Server (16.04)

Click connect to server and type the following

smb://network/server

Where network/server is the file server you are trying to access (ask your network admin) once you've done that it will ask you for login credentials, you can also ask your network admin for that as well, and you should be away!

Quick Note: If you are remote working (which it doesn't look like you are) you may require a VPN connection to connect you into the company's local network before you can access the file server, alternatively some company's will provide access to the file server over the internet and you could mount it that way


Booting issues after deleted Windows on dual boot system

The problem was that I had removed that partition that had my Grub.
Hence to solve it I made an EFI System Partition.

This excellent answer explains how to do that.

Also after this was done I had to change the boot options of my System to use UEFI instead of Legacy.


I have a similar problem. My dell XPS running Ubuntu 19.04 and windows dual boot was running fine. I was asked to upgrade to 19.10 and started the process and walked away. When I came back there is a blank screen with a blinking cursor and I’m unable to reboot or turn off the computer. Tried ctrl alt F1-F8 but nothing worked


I had the exact same problem and I solved it like this (Actually Raphael solved) like this:

First find out which Graphic Card you are using (Exact model)

You can contact the manufacturer or lspci and search for 3D controller .
Go to Official Nvidia website and  Manually find drivers for your NVIDIA products
And Select appropriate version of Linux (64bit or 32bit)
Search
Now know your driver number (ex : Version:   352.63 )(No need to download the *.run file just know the version)
Switch to your default driver in Additional Drivers:

Now in terminal (Ctrl+Alt+T) run this command to remove all previous installations of Nvidia Drivers:

sudo apt-get remove --purge nvidia*  Enter
Add this repository : sudo add-apt-repository ppa:graphics-drivers/ppa -y
sudo apt-get update
sudo apt-get install nvidia-352 REPLACE 352 WITH YOUR LATEST DRIVER VERSION from Nvidia(don't worry about the decimals 352.xx => 352)
Reboot after the installation is complete.

This worked well for me : I am using Nvidia GeForce 820M.


Vlc can do it. Just open first part and it will do the rest.

Source


How do I mount loop device with zfs in fstab?

In your first block of code you create and then destroy the zpool.  Try it again except run the commands

fallocate -l 150G /jdata/zfs_psql.disk
sudo losetup /dev/loop2 jdata/zfs_psql.disk
sudo zpool create -f -m legacy -O atime=off -O compression=lz4 -O recordsize=128K  zfsdisk /dev/loop2

You need to set the zpool mountpoint to legacy which used fstab.  Zfs normally will try to mount devices automatically at boot time but since you are using a file instead of a device, automounting won't work.  So the legacy mountpoint and the use of fstab is needed.

Now fstab

/jdata/zfs_psql.disk  /zfsdisk zfs loop  0 0

With mount -a should work as you expected.  However it still might give you an error on startup due to the order of mounting since you need to have the base filesystem fully mounted first before the loop file.  In that case you will need to add the noauto option with loop.

/jdata/zfs_psql.disk  /zfsdisk zfs loop,noauto  0 0


rvm how turn it on always when we open terminal in ubuntu 13.10

Loading rvm with the shell is for... usability/convenience.

Where are you loading rvm in your bash_profile? iirc, it should be loaded at the end.

If you're having trouble with this I can recommend using rbenv (having used both and getting much less of a head ache with rbenv)

https://github.com/sstephenson/rbenv/wiki/Why-rbenv%3F


Windows10/Ubuntu16.04 dual system start up werid

Problem solved, at least to a certain degree.

Reorder the boot order and let SSD boot first. If Ubuntu is ever needed, select the drive to boot manually. Since I only need ubuntu occasionally as I only use ubuntu to test compatibility, this is okay to me.

However, why Ubuntu Grub is booted with some mods (its look is pretty bad, only black and white and ugly font, not the normal fancy UI) and menu.lst missing still remains unknown, yet I have decided not to dig into that issue. It would be a waste of my time.


Power Statistics

is what you are looking for.  Select 'Laptop battery' and go to 'history' select 'Time to empty on the 'Graph type' dropdown, you can also find a lot of other useful info in power statistics.


You can make a script ?

It's not clear what you want us to do to help you... You could just edit where the logs are saved in your app. You could also make a SymLink (but it sometimes mess the things up...).

For the script, something like :

#!bin/bash

read -p "Name App : " app                     # What is "app1, app2, app3...
less /opt/${app}/a/long/path/to/logs/1.log    # Read from log
exit


that answer did it for me.....

So basically, you type:

ctrl-alt-t

to fire up a terminal

sudo apt-get autoremove pulseaudio

sudo apt-get install gnome-alsamixer

you reboot and it will work. The sound
was too weak and a bit metallic initially
but i could fix that by typing

alsamixer

in a terminal and tuning things from there...
(i had tried to tune things with alsamixer before
rm-ing pulseaudio but it was not working)


Virtualbox Ubuntu Image Username / password

Boot into a root shell: How do I boot into a root shell?

Then change the password for your user (ubuntu)

sudo passwd <username>

Or create a new user

sudo adduser <username>


Try again with Boot Repair.

1 - Live CD

First, you'll need to boot from a Ubuntu Live CD.

2 - Repair the bootloader

To restore the Grub bootloader, follow these steps.

Open a terminal from the Live CD, and run the following commands:

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

After a few seconds, Boot Repair's main window will open.

Click on Recommended repair.

You're done!

Reboot to test everything out.

If everything went well, you should be up and running now.


Adding rack controller to maas on ubuntu 20.04. throws "maas-rack: command not found" error

sudo maas init

Controller has already been initialized.
Are you sure you want to initialize again (yes/no) [default=no]? yes

Note: Configuring the MAAS snap in "all" mode will be
deprecated in MAAS 2.8.0 and removed in 2.9.0.

See https://maas.io/deprecations/MD1 for details.

Mode (all/region+rack/region/rack/none) [default=all]? rack
MAAS URL [default=http://192.168.1.8:5240/MAAS]: http://IPyours:5240/MAAS
Secret: Put the key  from http://IPyours:5240/MAAS/#/controllers    Add rack controller button


Rubymine creating shortcut in Desktop Error

Check if your drive is mounted before you start the application. I suggest you to mount your drive permanently.
Check the path of your shortcut:

/meadia/data/installedfolder/RubyMine/bin sounds wrong to me, try /media/data/installedfolder/RubyMine/bin instead.
If this doesn't work, try to create your shortcut using Rubymine itself. Go to Tools -> Create Desktop Entry...

It won't create the shortcut on your desktop. But after that you can find Rubymine on the Dash. When you open it, you will see the Rubymine icon at the sidebar. You can right-click Lock to Launcher to keep it there.


Set virtual console keymap on Live(CD|USB)?

Please read this. In short, you can remap the keys using the loadkeys command. For example:

sudo su -
echo control keycode 2 = Console_1 | loadkeys -

will add a binding to Ctrl - 1 such that it now switches to the first tty. However, it will not affect the keybindings under X!


It seems that the problem was the update to Ubuntu kernel 5.3.0-42-generic which has been recently reported as a bug.

Reverting to the previous kernel 5.3.0-40-generic should solve the problem.

To see what version kernel you are running type in the terminal:

uname -r

You can boot to the previous kernel by selecting the relevant option in the grub2 boot loader. Once in the grub2 menu, select "Advanced options for Ubuntu" and then choose "5.3.0-40-generic".

If the grub2 menu does not appear, press ESC or (left) SHIFT while booting.

If pressing these keys does not work to bring up the grub2 menu, you need to manually edit the boot loader settings. This can be done by e.g. tweaking the grub.cfg file using a text editor (in this case gedit):

sudo gedit /boot/grub/grub.cfg

Search for "timeout" and change the following to:

set timeout_style=menu
set timeout=10

and save the grub.cfg file. Next time you boot, the grub2 menu should appear.

I reckon that there must be more elegant solutions until the bug is fixed but, for the moment, this did the trick for me.


Accourding with these Rules For Naming File And Directory Names, no, it can't have no name, but can be named with one or more space/blank characters:

From the above picture you can deduce that you can access a directory having only a space in the name with:

cd ' '


Add PayPal Donate button to C++ application

Of course you can add a paypal donate button. Just add a normal button and connect it to a function that launches the default browser (you may use the xdg-open application (xdg-open url_here)) to the donate page.


How to download YouTube videos via HTTPS

Just don't use wget.

sudo apt-get install youtube-dl
youtube-dl https://www.youtube.com/watch?v=StJLvbPIvTw

Works on my system.


How to include a screenshot of my application in the DEB/PPA to show it in Software-Center?

The Software Center pulls screenshots out based on package name from a central screenshot server, so it's the same as any other package, you upload images through the Ubuntu Screenshots site:

http://screenshots.ubuntu.com/upload

However that site will only let you enter in package names that already exist in the main repos. If you're developing a new package, you're going to be screenshot-less until you're in the main repos.


specify /boot folder during installation, since / drive is not accessible by BIOS

Went ahead with solution I mentioned of simply creating a /boot partition on the bootable, BIOS-recognized HDD and placing the root filesystem on the NVMe which the BIOS does not recognize. Grub was properly installed to the /EFI partition (shared with the Windows Boot Manger), the kernel boot files to the /boot partition, and the root file system to the NVMe. Works as expected and well enough for my needs.


How tell apt-get to only update/upgrade a package only if a newer version is available?

I found your question while searching for a solution for a similar problem and after looking through some docs I found something that might work for you:
apt-get -o dpkg::Options::=--refuse-downgrade


Trouble getting Conky to Display Japanese Characters on Xubuntu

I had similar problem, finally I solved it by forcing conkyrc enconding to UTF-8 and by pointing to the correct font supporting Japanese.

Check if your config file is encoded with UTF-8:

file -bi ~/.conkyrc

you should get

  text/plain; charset=utf-8

then, check that your font is correctly installed and that your are refering to it correctly:

fc-list

So just depending on the font you have installed, select the correct text. In my case, I just added this to the config (new conky's LUA config style):

font = 'IPAGothic,IPAゴシック:style=Regular:size=9',

Or directly within the text:

${font Source Han Sans JP Heavy,源ノ角ゴシック JP Heavy:style=Heavy:size=9}広島のお好み焼きおたくです

it does work as well with

  'Source Han Sans JP:style=Regular'
  and 'HanaMinA,花園明朝A:style=Regular'

HTH


Free online Ubuntu user guide, that is simple to understand?

There are many manuals on the internet, but you can begin with the following.

1.- Browse the ubuntuguide.org with many wikipedia-style articles and how-to's.

2.- Download the book Getting started with Ubuntu.


Installed fglrx and Selected fglrx-update from Software Settings - Now Black Screen on Boot

1. Open a text-only virtual console by using the keyboard shortcut Ctrl + Alt + F3.

2. At the login: prompt type your username and press Enter.

3. At the Password: prompt type your user password and press Enter.

4. Now you're logged in to a text-only console where you can change your graphics driver from whatever you have now (fglrx-updates???) back to whatever driver you had that was working before (for example, fglrx if that's what driver you were using that was working before). "Reading around a bit, I (wisely or otherwise) installed fglrx, and then I went into System Settings > Software Updates and in one of the tabs there selected proprietary driver fglrx update."

If you can't get into a text only console by pressing Ctrl+Alt+F3 you need to boot into recovery mode.

Immediately after the BIOS/UEFI splash screen during boot, with BIOS, quickly press and hold the Shift key, which will bring up the GNU GRUB menu. (If you see the Ubuntu logo, you've missed the point where you can enter the GRUB menu.) With UEFI press (perhaps several times) the Esc key to get to the GRUB menu. Sometimes the manufacturer's splash screen is a part of the Windows bootloader, so when you power up the machine it goes straight to the GRUB screen, and then pressing Shift is unnecessary.

Press the down arrow key until you select the 2nd entry from the top (the one with the recovery mode in the description) and then press Enter.

Now you should see this recovery menu:

Using the arrow keys scroll down to network and then press Enter.

Using the arrow keys scroll down to root and then press Enter.

You should now see a root prompt, something like this:

root@ubuntu:~#

At this stage you should have a read-only filesystem. You have to remount it with write permissions:

mount -rw -o remount /

Now uninstall the current graphics drivers and then reinstall the one you had before that worked.

sudo apt-get remove fglrx-updates

5. Reboot the system by running the command: sudo reboot

6. Now you have gone back to the graphics driver you had originally,  whatever Ubuntu 13.10 installed by default. Try it for a while and test if it works. Afterwards you can decide whether or not to try to install the proprietary fglrx driver.


Dual Monitors not detected in Ubuntu 12.04 (ATI Radeon HD)

You need to define your 2 screens in AMD soft.

Open ATI driver application

and define your 2 screens display without any limit.

and re-boot


Eclipse shows "Workspace in use or cannot be created, choose different one"

This message is because there is a previous Eclipse process hanging around interrupting the one you are trying to launch.

ps aux | grep eclipse

find the eclipse process that's still running. I killed both the /usr/lib/eclipse/eclipse and /usr/bin/java processes. The process number is the number immediately adjacent to your user name. Then run

kill -9 [process number]

(without the brackets). That oughta do it!


How to run python script after I close terminal?

You can use the nohup command:
nohup python test.py &

This will continue to run the command even after you close your ssh session. nohup catches the SIGHUP signal when the controlling terminal process dies to ensure the command continues to run.
Simply using python test.py & might also work if your shell ignores SIGHUP. In that case, your python process would be re-parented to the init process and continue to run. But this relies on the shell.
For example, bash has an option huponexit - when it's off, the re-parenting would happen; when it's on, SIGHUP will be sent to the background processes. So nohup is the way to go.


BQ Ubuntu Phone no sound when playing media in apps or via web apps

Did you try to check if you was affected by this volume muted bug ?

It happens when you play the game PathWind, and mute the volume. It will mute the system volume.

Steps to fix it:

Simply launch the game PathWind on the phone, and check the setting of the game, in sound, and unmute it on the tached note symbol. Should fix it.

copied from Playing music/mp3 on Ubuntu Phone


The application is installed in /opt/pt and the installer has created an desktop file in /usr/share/applications/pt6.desktop and an icon. Therefore
sudo rm -r /opt/pt
sudo rm /usr/share/applications/pt6.desktop
sudo rm /usr/share/icons/hicolor/48x48/apps/pt6.png

Additionally, some packages have been installed:
lib32z1
lib32ncurses5
lib32bz2-1.0
libgcc1:i386
libstdc++6:i386
libssl-dev:i386
libqtwebkit4:i386
libqt4-scripttools:i386

Therefore you could try to remove the packages, but that is not absolutely necessary.

sudo apt-get purge lib32z1
Check the output and don't proceed, if other packages will be removed which are not in the list above.

sudo apt-get purge lib32ncurses5
Check the output and don't proceed, if other packages to be removed which are not in the list above.

Repeat step 2 for all other packages in the list above.


My disk already has 4 primary partitions, how can I install Ubuntu?

My sister and I have HP laptops that are set up the same way. Here's how I did it for both of us with a dual-boot Ubuntu and Windows 7 system:
Step 1. Delete HP_TOOLS since its small and can easily be recreated on USB/DVD
The easiest solution is to delete the HP_TOOLS partition, since it's usually only 100 MB or so and it can be easily recreated on a USB flash drive if/when you need it. Or you could back it up to DVD before deleting it.

This approach is approved by HP Support, and you can download the HP_TOOLS installer for a USB flash drive from here

Step 2. Shrink the Windows C drive, and use Ubuntu installer LiveCD(or on USB) to create an extended partition there
Once you delete that partition, shrink the Windows partition to create free unallocated space for Ubuntu. You can do this from Windows (disk management), or from the Ubuntu LiveCD with gparted (use "Try Ubuntu..." when booting).
After that, you can use the Ubuntu Installer to create an extended partition in the freed-space, on which it will put all the Ubuntu (logical) partitions.

Note: You can use gparted to try to move the Recovery partition to the right or left to utilize the 100MB or so of space freed by the HP_TOOLS partition, but I don't recommend it unless you are really desperate for that much space, since the move can take quite a bit of time.


I have the same issue at office.
Simply add hkp:// to the keyserver address and add port 80 like this :

sudo apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 5044912E

It should work ;)


Systemd-networkd has to be manually restarted each boot

Option 1
Check other possible internet connections in your system.
Source: https://unix.stackexchange.com/questions/507225/have-to-restart-network-service-after-reboot-centos-7
Option 2
Try setting up a wait for the service to be started.
That is, in /lib/systemd/system/systemd-networkd.service, add or append to
After=systemd-networkd-wait-online.service
Wants=systemd-networkd-wait-online.service

and reboot.
Partial source: https://stackoverflow.com/a/54300998/2707864
Option 3
Change restart interval. Look for /etc/systemd/system.conf
and change
#DefaultStartLimitIntervalSec=10s
#DefaultStartLimitBurst=5

to higher values.
A more customized change is possible in other files like /lib/systemd/system/systemd-networkd.service, with parameters
RestartSec=...
StartLimitIntervalSec=...
StartLimitBurst=...

Partial sources: https://serverfault.com/a/845473/326962, man systemd.service
Related:

https://forum.level1techs.com/t/ubuntu-need-to-manually-restart-resolved/144081/6
systemd-resolved needs to be restarted each time after rebooting
https://stackoverflow.com/questions/35805354/systemd-start-service-at-boot-time-after-network-is-really-up-for-wol-purpose
https://serverfault.com/questions/845471/service-start-request-repeated-too-quickly-refusing-to-start-limit


First of all, when you run this:

./script run_command Custom cmd1 "date|awk '{print $1}'"

Because your command is in double quotes, that means it will be expanded by the shell (bash) before calling your script. You can always test these things using set -x:

$ set -x
$ ./script run_command Custom cmd1 "date|awk '{print $1}'"
+ ./script run_command Custom cmd1 'date|awk '\''{print $1}'\'''
date|awk '{print $1}'

The line starting with + shows you the command actually run. As you can see, the $1 has disappeared because $ indicates a shell variable and, since you have everything in double quotes, that is passed to the shell which tries to expand it. Since $1 isn't set, it expands to nothing. Compare it to what happens if you use a variable that is set:

$ foo="bar"
$ ./script run_command Custom cmd1 "date|awk '{print $foo}'"
+ ./script run_command Custom cmd1 'date|awk '\''{print bar}'\'''
date|awk '{print bar}'

As you can see, the $foo in your awk command is expanded to bar before being passed to ./script. So, you need to escape the $1:

$ ./script run_command Custom cmd1 "date|awk '{print \$1}'"
+ ./script run_command Custom cmd1 'date|awk '\''{print $1}'\'''
date|awk '{print $1}'

I also don't understand what this is supposed to be doing:

if [[ "$RUN_COMMAND" == "Custom" ]];then
  export command1=`echo $CMD1`
  echo $command1
else

You don't need export at all, and you don't need to echo one variable to set it as the value of another. All you need there is:

if [[ "$RUN_COMMAND" == "Custom" ]];then
  command1=$CMD1

In fact, you don't need $CMD1 at all. Just set $command1 from the beginning. Here's a slightly improved version of your script:

#!/bin/bash

## dummy function since you didn't include yours
display_help(){
  echo "help"
}

if [[ "$1" =~ ^((-{1,2})([Hh]$|[Hh][Ee][Ll][Pp])|)$ ]]; then
  display_help
  exit 1
else
  while [[ $# -gt 0 ]]; do
    opt="$1"
    shift;
    current_arg="$1"
    case "$opt" in
      "run_command")
        RUN_COMMAND="$1"
        shift
        ;;
      "cmd1")
        command1="$1"
        shift
        ;;
      *)
        echo "ERROR: Invalid option: '$opt'" >&2
        exit 1
        ;;
    esac
  done
fi

if [[ "$RUN_COMMAND" == "Custom" ]];then
  echo "$command1"
else
  echo "Invalid arguments"
fi


Dolphin Emulator 5 freezing - Ubuntu 18.04

I had this problem with dolphin-emu 5.0 on Debian Buster, amdgpu and Mesa 18.17. I decided to try a newer release from flatpack (5f0d825 is what is shown in the title). I selected Vulkan instead of OpenGL and was able to run the emulators with no problem.


What are the default settings for '/etc/hosts' and '/etc/hostname'?

They are based on what you specified as the hostname when you installed: in my below examples "myhostname" is the name you chose.  The defaults look a bit like this:

/etc/hostname

myhostname

/etc/hosts

127.0.1.1 myhostname
127.0.0.1 localhost

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts


The OP reported in comments that he had not removed the old drivers before installing the new Nvidia drivers, and that removing the old drivers solved the problem.


Is Firefox not rendering a web page correctly compared to the same version on Windows?

That is not incorrect rendering at all. The difference here is simply themeing. What you are seeing is the difference between button styles. On Chrome (and on Windows) the buttons are slightly smaller which causes them to line up with the box.

On Firefox (in Ubuntu) the button is rendered using the GTK+ style.


Is it possible to add RubyMine to panel on Ubuntu 17.10?

This answer from superuser worked for me:

https://superuser.com/questions/611065/how-to-add-rubymine-icon-to-the-left-top-panel-in-ubuntu

After starting RubyMine, go to:

    Tools->Create Desktop Entry

And go through the process.

That's it.


Can booting Windows from GRUB cause BSOD?

Grub can only make use of the UEFI bios to read the system from the disk to boot it, just like the Windows UEFI boot loader does.  I'm not sure if the Windows boot loader bothers to make use of the graphics services provided by the UEFI bios, but grub does ( to display the menu ); so it is possible that your UEFI bios leaves the graphics hardware in some state that the Windows driver isn't happy with, and if the Windows UEFI loader does not bother using the graphics, that could explain the difference in behavior.


Why does ubuntu 11.10 freeze when playing video?

I would suggest to use SMPlayer from software center i had Freezes on my PC when playing video but they magically stopped when i started


New main PID does not belong to service, and PID file is not owned by root

You're probably referencing the 16.04 version of this Digital Ocean VNC guide rather than the 18.04 version. In the 18.04 version the /etc/systemd/system/vncserver@.service file should look like this:

[Unit]
Description=Start TightVNC server at startup
After=syslog.target network.target

[Service]
Type=forking
User=sammy
Group=sammy
WorkingDirectory=/home/sammy

PIDFile=/home/sammy/.vnc/%H:%i.pid
ExecStartPre=-/usr/bin/vncserver -kill :%i > /dev/null 2>&1
ExecStart=/usr/bin/vncserver -depth 24 -geometry 1280x800 :%i
ExecStop=/usr/bin/vncserver -kill :%i

[Install]
WantedBy=multi-user.target

Remember to replace all 4 instances of sammy with your own user name. The 18.04 version fixed my issues with the same PID file is not owned by root errors that you reported.


The legacy graphics driver that you need is not available in the Ubuntu Software Center in Ubuntu 13.04. That is why you're getting a black screen. This is also the reason why your HP Pavilion dv5-1004nr laptop worked great with Ubuntu up until Ubuntu 11.04.

However you can still install the correct graphics driver for your HP Pavilion dv5 1004nr laptop on Ubuntu 13.04 by adding this Ubuntu PPA (Personal Package Archive): ppa:makson96/fglrx to your system's Software Sources. In order to install the AMD Catalyst Legacy 13.1 graphics driver on Ubuntu 13.04, open the terminal and run the following commands:

sudo add-apt-repository ppa:makson96/fglrx
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install fglrx-legacy

...and then reboot to enable the AMD Catalyst Legacy 13.1 graphics driver.

Taking a longer range view of things, the AMD Catalyst Legacy 13.1 graphics driver is not supported for Ubuntu 13.10, and Ubuntu 13.04 will not be supported by updates after January, 2014. So that doesn't give you an operating system that is supported by updates for a long period of time unless you install Ubuntu 12.04, which is a Long Term Support release that is supported by updates until April, 2017. The same terminal commands listed above are also the commands used to install the AMD Catalyst Legacy 13.1 graphics driver in Ubuntu 12.04.

For the time being you still have Ubuntu 13.04, so this gives you an opportunity to test whether the AMD Catalyst Legacy 13.1 graphics driver solves your black screen problem, and then after that you can decide whether or not to install Ubuntu 12.04.


How do I add a sequence of numbers to a file

Try adding > file at the end of the command.


I am on Arch Linux, but I eventually found it in /usr/lib/squid/ssl_crtd after installing squid.


/dev/random or /dev/urandom?  The error is the former but the command is the latter, and rngd source suggests they should be the same.

In any case, /dev/random is the correct one; /dev/urandom doesn't have a kernel interface for adding entropy, which is why the open fails (not even root can force the kernel to allow writes to a non-writable device, although arguably it should produce a more appropriate error like EINVAL or maybe EPERM).  The kernel will feed /dev/urandom from /dev/random automatically.


How do I configure grub so it doesn't try to run if the drive its installed on is disconnected

You have installed Grub to the internal hard disk rather than the removable one.  You need to reinstall grub to the removable drive, which you can do by running sudo dpkg-reconfigure grub-pc and selecting the correct drive at the menu, and then restore whatever boot loader was originally on the internal drive.  Assuming that is Windows, you can use the Windows recovery console command FIXMBR to do that.


Restore Original Login Screen on Ubuntu 20.04

You missed one single step, and that is to reconfigure the system to use GDM again for login. This is done with the command
sudo dpkg-reconfigure lightdm

where lightdm is the login manager you currently use. As you also have GDM (package gdm3) installed, this command will show a prompt that lets you change the login manager in use.


In command line I am using testdisk, but the file is not getting located?

The package is called testdisk not test disk.
Before you first install software, you might need to update software list from the repositories.

sudo apt update
sudo apt install testdisk


Help to UNINSTALL Photoshop. Please, help the Linux newbie)

Before following CiberSheep instructions, you can delete Photoshop with the Wine Uninstaller. Run, in a terminal:

wine uninstaller

Find Photoshop and remove it.

After doing what CiberSheep said, run sudo apt-get autoremove to remove dependencies.


How to retrieve the duid used in the dhcpv6 client

Use wireshark to sniff the network traffic and get the packet used during the dhcp handshake, then look for the DUID in the packet.


How to temporarily blacklist nvidia driver at boot time

The correct syntax is
module_blacklist=nvidia .

Note the underscore instead of the dot.


How can I start qBittorrent on system boot?

Press the Super key on the Keyboard and search for Startup Applications

Click on Startup Application Icon

Click on the add button: Example picture

Fill the simple startup program form indicating the explicit path of the qBittorrent application (just the way you run it from terminal):


how to make wine looks like my desktop colour scheme using WINETRICKS in Ubuntu 14.04?

I don't know how to do it using winetricks but you can using winecfg

here is how:
http://archive09.linux.com/feature/123854


Unrecognized option: -home Error: Could not create the Java Virtual Machine

-home is not a standard java option. Was there a tutorial that said to use it? To find the Java home directory (if it is set) you would do

echo $JAVA_HOME

Should you be setting the JAVA_HOME environment variable instead (with the underscore not the dash)? For example adding a line to hadoop-env.sh to tell it the Java home directory:

export JAVA_HOME=/usr/lib/jvm/[your-jdk-directory]


Lubuntu 13.10 Intel Corporation Centrino Advanced-N 6235 (rev-24) issue

Executing sudo iwconfig wlan0 power off and unchecking 'Prefer power saving over performance' in xfce4 power manager helps. This solution helps as well.


I was having the same issue using deja-dup to backup from ubuntu 12.04 to a dedicated backup pc on ubuntu 14.04.

I made use of the second solution by dhiya from this question but just modified the interface string to eth0.
i.e. changed: iface='wlan0' to: iface='eth0'

UPDATE 17/09/2015: I modified dhiya's code from the link underneath to keep a system awake based on network traffic or user activity and to force graceful suspension if the desktop session ends up in the lock/login screen with no network traffic.  The program logs everything to a log file.  Config has also been provided to manage the logfile.  I have named the program "Keep Awake".

LINK: Is there any way to make Ubuntu not to suspend while a download in progress?


From the stack trace it looks like your hitting a kernel panic, possibly due to referencing an invalid NULL pointer.  Also from the screen shot shows a diffirent issue, related to a unhandled paging request.
Its best to raise an issue/bug with this link with the os vendor.

These could be a possibly bugs in the kernel version you are using as Ubuntu 12.04 has LTS if its shipped with the hardware. Also you could consider trying out Ubuntu 14.04 as an alternative.


12.04 Issues - Missing drop down menu / missing evolution / no shut down and missing navigation bar

I'm also not a unix expert but experienced similar difficulties.

Once I managed to get to the desktop and open a terminal I followed this manual upgrade guide.

In case that site gets removed, the key procedure for me was:

sudo apt-get update && sudo apt-get upgrade

I then restarted my machine, logged in and opened the "Update Manager". This displayed >300 updates which I duly installed. Another restart ( sudo shutdown -r now ) or two and the upgrade to 12.04 was complete.


Your system has been compromised by a cryptominer, probably a SSH worm. I suggest following these steps:

Disconnect your computer from any network
Copy the bash64 file and other files in the same folder to a USB drive, remove the execution attribute (chmod a-x file) from those files.
Copy your personal data from the compromised machine to an appropriate backup device, do not use a network to do this, use USB.
Do a clean re-install of the compromised computer.
Upload the files from step 2 to VirustTotal


Pulling down on the title bar does not resize window?

In 14.04 as in Previous releases (back to 12.04 certainly) Pushing a window to the top will maximize it and pulling it down has the effect of restoring it to it's previous unmaximized size


My suggestion (using gparted):

Make a backup of any important data on the disk.
Shrink /dev/sda3 by, let's say, 50 Gb. You have more than that free, so the exact number is not important.
Move the left boundary of /dev/sda4 to the left by the same amount.
Move the left boundary of /dev/sda5 to the left (as /dev/sda4 is an extended partition, moving its boundaries does not move the "inner" partitions)
Grow (= resize to enlarge) /dev/sda5 to the desired size.

Actually, it may be possible to do the last two steps in one go. I am not sure about that.

This will require physically moving large numbers of blocks, so it will be a lengthy process.


From your alsa-info, there is a 'Headphone Jack Sense' control and a  'Phone' fader:
both are off.
When using alsamixer, press F5 to display more controls, and scroll right with arrow key as not all faders are visible in the console.


Windows have black borders after hibernation Unity

This is a known bug in Ubuntu 14.04 => https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/1292830, please vote for it by clicking the green text at the top of the page that says "This bug affects 69 people, but not you".

A temporary workaround is to go into a system terminal mode, careful with this as you need to know how to get back to the Unity desktop otherwise you will have to restart.

Press Ctrl + Alt + F6 (takes you to system terminal mode)
Press Ctrl + Alt + F7 (takes you back to the Unity desktop)


apt-get upgrade and apt-get update are now broken for me in 10.04

I do not use this repository. However your file is indeed wrong.

Comment your two deb lines and add this one (they will never work again so you are free to remove them afterwards) :

deb http://ppa.launchpad.net/akirad/akirad/ubuntu lucid main

your /etc/apt/sources.list.d/akirad.list should look like this :

## Akirad Repository for Ubuntu
## Please report any bug on akir4d at gmail.com

## ppa
deb http://ppa.launchpad.net/akirad/akirad/ubuntu lucid main #Akirad Repository - Main
#deb-src http://ppa.launchpad.net/akirad/akirad/ubuntu lucid main #Akirad Repository Sources- Main

Note the addition of "lucid" to the line.

For more information look at the ppa launchpad page :

https://launchpad.net/~akirad/+archive/akirad?field.series_filter=lucid
and click on "Technical details about this PPA"

In case another ppa is making you trouble go directly to it's launchpad webpage for more info.

Best Regards.


How can I get a Belkin N600 DB (F9L1101v1) to work on Ubuntu 12.04 64-Bit

At this point, it looks like one solution is to build and install ndiswrapper from source.  I refer you to Brian Zier's "Getting the Belkin N600 DB to work on Ubuntu" guide:

  Uninstall the built-in ndiswrapper and clean up any configuration you
  previously had:

sudo apt-get remove --purge ndiswrapper-common ndiswrapper-utils-1.9 ndisgtk
sudo rm /lib/modules/$(uname -r)/kernel/ubuntu/ndiswrapper/ndiswrapper.ko
sudo rm /etc/modprobe.d/ndiswrapper.conf
sudo rm -r /etc/ndiswrapper/*

  Next, build ndiswrapper from source:

sudo apt-get install linux-headers-$(uname -r) build-essential
wget http://downloads.sourceforge.net/project/ndiswrapper/stable/ndiswrapper-1.57.tar.gz
tar -xvf ndiswrapper-1.57.tar.gz
cd ndiswrapper-1.57
make
sudo make install
sudo depmod -a
sudo update-initramfs -u

This also works with ndiswrapper-1.58

Disclaimer: While the excerpt above has gotten me past the issues with ndiswrapper itself, I haven't yet been able to complete the whole guide as to get the N600 working properly with my own WiFi, which I suspect may be due to my router's configuration. Your mileage may vary.


Internet on Ubuntu 12.04 stopped to work after installing updates from the update manager

Roman,

I had the same issue, luckily I was able to figure out a fix. There appears to be an issue with the latest update of Network Manager. If you open the Ubuntu Software Center, go to History, search the keyword "Network" and you will probably see "network-manager (0.9.4.0-0ubuntu4, 0.9.4.0-0ubuntu4.1)".

If you see this then you have the same problem as I did. The solution is to downgrade to version 3: Search in Google "ubuntu network-manager package" and select the ubuntu.com link, then scroll down the page to "network-manager-dbg" select the precise (debug) ubuntu3 version.

http://packages.ubuntu.com/precise/network-manager-dbg

Download the 4 related packages for your system (amd64 or i386):

network-manager (= 0.9.4.0-0ubuntu3)

network management framework (daemon and userspace tools)

libnm-util2 (= 0.9.4.0-0ubuntu3)

network management framework (shared library)

libnm-glib4 (= 0.9.4.0-0ubuntu3)

network management framework (GLib shared library)

libnm-glib-vpn1 (= 0.9.4.0-0ubuntu3)

network management framework (GLib VPN shared library)

Install each of them using the command sudo dpkg -i FILENAME.

Restart your computer and that should fix your problem!


Meaning of "exec tail -n +3 $0" line in 40_custom file

The trick is what exec does:

$ help exec
exec: exec [-cl] [-a name] [command [arguments ...]] [redirection ...]
    Replace the shell with the given command.

    Execute COMMAND, replacing this shell with the specified program.
    ARGUMENTS become the arguments to COMMAND.  If COMMAND is not specified,
    any redirections take effect in the current shell.

This means it will replace the shell with whatever is given to exec, in this case tail. Here's an example of it in action:

$ cat ~/foo.sh
#!/bin/sh
exec tail -n +3 "$0"
echo foo

$ ./foo.sh
echo foo

So the echo command isn't executed since we have changed the shell and are using tail instead. If we remove the exec tail:

$ cat ~/foo.sh
#!/bin/sh
echo foo
$ ./foo.sh
foo

So, this is a neat trick that lets you write a script whose only job is to output its own contents. Presumably, whatever calls 40_custom expects its contents as output. Of course, this begs the question of why not just running tail -n +3 /etc/grub.d/40_custom directly.

I am guessing the answer is because grub uses its own scripting language and this makes it need this workaround.


Getting "Please install an operating system" after installing ubuntu on hp laptop

Find out which EFI file path you need

go to boot options
select install from EFI file -  ** REMEMBER THE PATH
see ubuntu loads

This is not the end as you need to define this as the default method

go to boot menu (for me it was pressing esc on splash screen)
go to boot setup ==> advanced ==> boot setup
add a custom boot method

type in the EFI file

go back to the setup menu
go to EFI boot sequence
make custom the first step
I also unchecked other boot options except for USB and custom but not sure if it is required

This should make ubuntu load by default.


Livepatch error: ...use of closed network connection

I've noticed the same errors. Looking more at the logs it seems that this error only occurs when doing a reboot. Livepatch tries to access a closed network connection because the network is being taken offline before the livepatch snap is stopped.
It shouldn't cause you any problems since running canonical-livepatch status gives you:

running: true
checkState: checked

You might also notice some warnings when your network is down:

  canonical-livepatch[1001]: during refresh: cannot check: cannot send status to server: cannot send request: Put https://livepatch.canonical.com/api/machine/xxxxxxxxxxxxxxxxxxxxxxxx: dial tcp: lookup livepatch.canonical.com: no such host

I've removed them from my logs by adding the following to the top of /etc/rsyslog.d/50-default.conf

## Stop logging canonical-livepatch errors during reboot:
:msg, contains, "livepatchd.sock: use of closed network connection" stop
:msg, contains, "livepatchd-priv.sock: use of closed network connection" stop

## Stop canonical-livepatch logging warnings when network down:
if $programname == 'canonical-livepatch' then {
*.=warn stop
}

If you run grep canonical-livepatch /var/log/syslog | less you can see what it is doing:

  Begin reboot
  canonical-livepatch[1008]: stopping client daemon
  canonical-livepatch[1008]: stopping service "mitigation loop"
  canonical-livepatch[1008]: service "mitigation loop" stopped
  systemd[1]: Stopping Service for snap application canonical-livepatch.canonical-livepatchd...
  canonical-livepatch[1008]: stopping service "socket servers"
  Errors occur
  canonical-livepatch[1008]: while starting HTTP server: accept unix /var/snap/canonical-livepatch/81/livepatchd.sock: use of closed network connection
  canonical-livepatch[1008]: while starting HTTP server: accept unix /var/snap/canonical-livepatch/81/livepatchd-priv.sock: use of closed network connection
  canonical-livepatch[1008]: service "socket servers" stopped
  canonical-livepatch[1008]: stopping service "refresh loop"
  canonical-livepatch[1008]: service "refresh loop" stopped
  canonical-livepatch[1008]: client daemon stopped
  After reboot livepatch comes back online here
  systemd[1]: Mounting Mount unit for canonical-livepatch, revision 81...
  systemd[1]: Mounted Mount unit for canonical-livepatch, revision 81.
  systemd[1]: Started Service for snap application canonical-livepatch.canonical-livepatchd.
  canonical-livepatch[967]: starting client daemon version 9.4.1
  canonical-livepatch[967]: starting svc "mitigation loop"
  canonical-livepatch[967]: service "mitigation loop" started
  canonical-livepatch[967]: starting svc "socket servers"
  canonical-livepatch[967]: service "socket servers" started
  canonical-livepatch[967]: starting svc "refresh loop"
  canonical-livepatch[967]: service "refresh loop" started
  canonical-livepatch[967]: client daemon started
  canonical-livepatch[967]: Client.Check
  canonical-livepatch[967]: Checking with livepatch service.
  canonical-livepatch[967]: updating last-check
  canonical-livepatch[967]: touched last check
  canonical-livepatch[967]: No updates available at this time.
  canonical-livepatch[967]: No payload available.


useradd: cannot lock /etc/passwd; try again later

You need to run useradd with root privileges, for example by using sudo:

sudo -- useradd -c "test" -d /home/bbbbbbbb -e "01-jan-2013" -f 10 -g admin -p secretfgjdhdgd -s /bin/bash -u 123456 blobblob


You should look at /var/log/boot.log to see if there's an error reported. It's probably not rc.local not working, but the script fails to work when rc.local is loaded.

At least it's what I encountered.

I added

chown ****(my username) /sys/kernel/debug/vgaswitcheroo/switch

echo OFF > /sys/kernel/debug/vgaswitcheroo/switch

to rc.local (and set rc.local to executable). And then I got

chown: cannot access `/sys/kernel/debug/vgaswitcheroo/switch': No such file or directory

in the boot.log, which seemed to indicate the script was run before the switching mechanism was set up.


Internet stops working after installing ProtonVPN

This question is pretty old but I had the exact same problem with the exact same distro so I'll answer with how I solved it after uninstalling protonvpn.
By running
nmcli device

I found out I had two extra connections that had remained there and the system was trying to route through them, so after identifying them I simply did
sudo nmcli connection delete pvpn-killswitch
sudo nmcli connection delete pvpn-ipv6leak-protection

After that rebooting solved everything.


The packet scribus-trunk doesn't seem to be in the 14.10 ppa repository, but you can install the 14.04 ppa:

sudo add-apt-repository ppa:scribus/ppa
sudo sed -i s/utopic/trusty/g /etc/apt/sources.list.d/scribus-ubuntu-ppa-utopic.list
sudo apt-get update
sudo apt-get install scribus-trunk

Note:
On High resolution screens you need to start scribus-trunk with a resollution switcher


I looked all over and I found my answer.

The answer was at the bottom of this page on Ubuntu Forums from "praseodym"

  Deactivate the hardware encryption of the driver:

echo "options ath9k nohwcrypt=1" | sudo tee -a /etc/modprobe.d/ath9k.conf
sudo modprobe -rfv ath9k
sudo modprobe -v ath9k

I ran sudo lshw -C network and found that the "UNCLAIMED" marking next to my wifi card was gone and I could connect again. Thank you praseodym, wherever you are.


Unable to boot Windows after installing Ubuntu 12.10

Disable SecureBoot in your BIOS ( see this paragraph )
Run Boot-Repair's Recommended Repair
Reboot, you should be able to access both Ubuntu and Windows.


What takes so long when toggling off the desktop?

I think this is simply a bug, as nautilus isn't doing anything.

If you restart nautilus (killall nautilus) the pointer will come out of 'spin' mode.


The answer is short: this is the problem with apparmor compatibility.

 apt-get install apparmor-utils
 aa-complain dhclient3

Seems like apparmor do not like how aufs working. In this case other problems can happen due to usage of aufs with apparmor.

There is another way to fix problem.

Or you will need to remove apparmor.

/etc/init.d/apparmor stop
update-rc.d -f apparmor remove
aptitude remove apparmor apparmor-utils


How do I install required gcc and libc6-dev files on 20.04?

At first - the Asymptote 2.62 is contained in the official repository, so you can start getting its build-dependencies by enabling source code repositories in Software & Updates (software-properties-gtk) and by using the following command:
sudo apt-get build-dep asymptote

And then compile the source code:
cd ~/Downloads
wget https://github.com/vectorgraphics/asymptote/archive/2.66.tar.gz
tar -xf 2.66.tar.gz
cd asymptote-2.66
./autogen.sh
./configure
make
sudo make install

and then run the application with asy command.


Ubuntu 12.04 alongside 14.04 and Windows 8.x

Your computer tries to tell you that you still have Ubuntu 12.04 It will can be found below your regular (newest) Ubuntu in the grub-loader, try taking a closer look.
By default the Kernels are not overwritten, but a new one added.
This comes in very handy if the new kernel are having trouble with some particular hardware. After a couple of weeks these issues are normally fixed, so we can upgrade again.
In Synaptic you can see which kernals you have, and choose to purge the oldest - when the new ones works fine.


New Openstack Autopilot stuck at: In progress - Configure availability zones - 98%

Depends how long it has been stuck.

These backtraces are normal during the deployment: it's trying to configure services that aren't ready yet, that's why it retries so many times. Juju is still deploying them, creating relations, etc.

Depending on your hardware and network bandwidth, an autopilot run could take 40 minutes or even more. Has it given up yet?


Is there a dynamic-multiple-monitor friendly desktop environment available for Ubuntu?

I am providing you two shell scripts. It will help you to save your arrangement of windows positions and size. If somehow your desired windows arrangements get disturbed, you will be able to restore those arrangements with exact windows size and positions for all windows using these script.

You need to install wmctrl unless you already have it. Install via terminal,

sudo apt-get install wmctrl

Script to save windows configuration

# Script_Name: save_window_conf.sh
#!/bin/bash
if [ -f $HOME/.my_windows_config.txt ]; then
    echo -e "Information: Previous configuration file \"$HOME/.my_windows_config.txt\" already exists.\nTo save a new configuration remove it manually using the following command,\n\n\trm $HOME/.my_windows_config.txt"
    exit 1
else
    wmctrl -p -G -l | awk '($2 != -1)&&($3 != 0)&&($NF != "Desktop")' | awk '{print $1}' | while read mywinid
    do
        xwininfo -id "$mywinid" >> $HOME/.my_windows_config.txt
    done
fi

At execution the above script will save your windows position and size for all your open windows to a file named .my_windows_config.txt in your home directory. It is a hidden text file.

Script to reload the windows configuration

# Script_Name: load_window_conf.sh
#!/bin/bash

file=$HOME/.my_windows_config.txt
declare -a mywinid
declare -a x
declare -a y
declare -a width
declare -a height

nl=$(cat "$file" | grep xwininfo |wc -l)

for i in $(seq 1 $nl)
do
    mywinid[i]=$(cat "$file" | grep "xwininfo" | awk -v p="$i" '{if(NR==p) print $4}')
    x[i]=$(cat "$file" | grep "Absolute upper-left X" | awk -v p="$i" '{if(NR==p) print $NF}')
    y[i]=$(cat "$file" | grep "Absolute upper-left Y" | awk -v p="$i" '{if(NR==p) print $NF}')
    width[i]=$(cat "$file" | grep "Width" | awk -v p="$i" '{if(NR==p) print $NF}')
    height[i]=$(cat "$file" | grep "Height" | awk -v p="$i" '{if(NR==p) print $NF}')
done

for it in $(seq 1 $nl)
do
    wmctrl -i -r "${mywinid[$it]}" -e 0,"${x[$it]}","${y[$it]}","${width[it]}","${height[it]}"
done

When you execute the second script it will restore your windows position with exact size for all your windows.

Usage

Save these scripts in your $HOME/bin/ directory. Add $HOME/bin/ in your PATH. For this add these lines at the end of your $HOME/.bashrc

PATH=$HOME/bin:$PATH
export PATH

It will enable you execute those scripts with their name only. Give the scripts execution permission,

chmod +x $HOME/bin/save_window_conf.sh
chmod +x $HOME/bin/load_window_conf.sh

To save the configuration in your $HOME/.my_windows_config.txt

After you open and adjusted all your windows run in terminal,

save_window_conf.sh

To reload the configuration from your $HOME/.my_windows_config.txt

load_window_conf.sh

Hope it will solve your problem. Here is a screen shot,


Error When Install Ubuntu on Virtual Box

It could be one of these problems

Reboot your physical machine and go in your BIOS at start.

Enable Intel VT (Virtualization Technology) or AMD-V (AMD Virtualization)

depending on your processor's type.
Run VirtualBox.exe, click Settings, select System in the left pane then go in

Processor tab.

Check Enable PAE/NX.
This message could mean that you are trying to run a 64 Bits operating system with a

non 64-Bits compatible processor.

Recreate your Live USB using a standard 32 Bits ISO instead of a 64 Bits one.

hope it helps


Do I need to install Dell's latest Bios on the XPS 9300 after my upgrade to 20.04?

Ubuntu ships with fwupd, a tool for updating the firmware for many devices. Dell actively works on this project, and your laptop is indeed supported, as can be seen on the fwupd device list entry for your device.
Their documentation details how to update your system.


How to determine what happened and locate the problem when my system freezes?

Sometimes it's just the X server that is frozen. Try to get a console by hitting CTRL-ALT-F1. If that won't do, try logging it your machine using SSH (install openssh-server package first). If you can't get a shell, reboot.

Once you have a shell, check the system logs (/var/log/syslog, /var/log/messages, /var/log/Xorg.0.log and ~/.xsession-errors). Scroll up to the time the crash happened. If you didn't have to reboot, the dmesg command will show you the kernel log buffer in case it can't write to your filesystem.

Whether or not you are able to find anything in the log file, what makes it easier to debug is being able to reproduce the problem at will. If you can't, and the logs show nothing unusual, then you can try to isolate the source of the problem by booting a rescue CD (or a completely different OS), removing non-essential pieces of hardware, or replacing some parts with others that are known to be functionnal. Doing this can be tedious, and requires rigour.

Once you have minimal information, file a bug report for the suspected faulty software, unless you think your hardware is faulty.


Error! Your kernel headers for kernel 3.13.0-69-generic cannot be found - Can't Update!

Perhaps you can try and free some space first by purging out old unwanted packages using:

sudo apt-get autoremove

..and then try again with the header install using:

sudo apt-get install linux-headers-$(uname -r)


Network drives shortcuts on desktop , howto do it correctly?

From my understanding, I think you forget to mount your path. sudo mount smb://"netresource"/share /mnt/Disk02 ext4 defaults. I could help you , if you were more informative and specific. Thank you.


How to right-click in Unity Webapps new browser

Apparently that is a bug in webapps.

It looks as if someone worked on it already. So hopefully this issue will be resolved in the future. For the moment I don't know a way to get it to work.


Enable two-finger scrolling on ALPS touchpad

First of all, to identify which touchpad you have, run

xinput list

If it shows something like

...
↳ AlpsPS/2 ALPS GlidePoint                  id=14   [slave  pointer  (2)]
...

then you most probably do not have multitouch support. The Alps touchpads tend not to have multitouch, while they use the same driver as the Synaptic touchpads.

You can use synclient -l to obtain information on your touchpad.

Still, the definitive way to see how many fingers are supported on your touchpad, is to

Enable SHMConfig in your xorg.conf file
Run synclient -m 100, which will show in real time the status of your touchpad. The fifth column labeled f is for fingers, therefore you can see up to how many fingers you can tap at the same time.

To enable SHMConfig in xorg.conf, see http://mjg59.livejournal.com/118588.html and then add

Section "InputClass"
   Identifier "enable synaptics SHMConfig"
   MatchIsTouchpad "on"
   MatchDevicePath "/dev/input/event*"
   Option "SHMConfig" "on"
EndSection

to your xorg.conf. You can remove the above snippet once you performed your testing.


Snappy on Raspberry Pi 2 Fails to install anything

Platform: Raspberry PI 2 1GB
https://www.raspberrypi.org/downloads/snappy/

Same exact sequence of Error Messages except I was trying to install Docker.

  File "/usr/lib/python3.4/re.py", line 160, in match
      return _compile(pattern, flags).match(string)
  TypeError: expected string or buffer
  ```

A long list of other issues (i.e., commands in the Snappy tutorials/guides would fail)

$ Snappy list -v

After a dozen or so consecutive issues decided to go for the unofficial Raspberry Pi 2 image

Downloaded the unofficial Raspberry Pi 2 image: (Created: Wednesday, April 15, 2015 at 5:45 PM)

Everything is tracking to the documentation and I have now Docker up and running.


Vala Panel AppMenu menus are too close together

I tried to install xfce4-appmenu-plugin through my terminal emulator and got this:

You no need to add any repository because it is in native ubuntu repository. Before doing the installation, I have tried to compile the source of vala-panel-appmenu here, but it was not working for me. So, I remove all of this: unity-gtk-module-common, unity-gtk2-module, unity-gtk3-module, appmenu-qt. But, when you install xfce4-appmenu-plugin, they would be installed as its dependencies.


How to open Python file to edit in Visual Studio Code from a terminal?

The Visual Studio Code executable is called code, simply call it with your python file.

code file.py

Keep in mind that vscode is meant for managing whole projects, not just a single file.


How to save SSH options and connections in Ubuntu?

You can use a per-user ssh-config file located in

~/.ssh/config

or a system-global one in

/etc/ssh/ssh_config

that stores the basic settings for each connection.

Example:

Host example_host
    User foo
    HostName example.com
    IdentityFile ~/.ssh/foo.key
    Port 23421

Having this in place, calling

ssh example_host

will open up a ssh-connection to example.com on port 23421, using the user
foo and foo.key for authentication.

For an in-deep explanation, see the man page of ssh:

man ssh

Don't forget to set proper permissions on the config file:

chmod 600 ~/.ssh/config


You are right, SMB is something coming originally from Windows. But nowadays it works great with Linux and Mac as well.

Since speed is important, you have to keep in mind: SSH is a great thing for everything connected to Unix/Linux and networks, but it is really slow compared to NFS, FTP or SMB.

NFS is the fastest, but it is not encrypted. Do not use any unencrypted protocols if you can't fully trust your network (see also this Q&A). NFS should be available for Windows and Mac too, but it might be a bit of work to set it up.

SMB should be easy to set up on Windows, Linux and Mac and it is still reasonable fast compared to SSH. But the same warning about security holds for SMB (see this Q&A).

Some similar questions were discussed here.

There are also [many benchmarks] about the speed of different network protocols out there.


In the future, please copy & paste the textual information that is relevant to the question instead of taking a screenshot and hosting it on some external site. In addition to making your question not self-contained, you make your question less searchable and less accessible to people with visual disabilities.

That being said, everything looks normal here:

From your second screenshot, it seems you have given mickey.acme.exa just a AAAA record and nothing else.
From your first screenshot, you have asked for the A record corresponding to mickey.acme.exa. It replied to you with NOERROR (because the name exists) but zero answers (because there is no A record as requested).


Try to open the Firefox Add-ons Manager and disable the VLC plugin.


Help removing all LAMP, website and related configurations on Ubuntu 16.04 LTS

It is not recommended run a webserver on root user.
If you want advice move to services like amazon ecs, google cloud, where you can easily start again a new server and get support, or online help. Or at least a provider that has cpanel.
This is not a thing to do by hand, contact your provider support and ask how to reset an account. (backup your database and software first)
Almost anything on linux you can fix by hand, but there are things that don't compensate, like this, on my point of view.


Will Gnome 3 replace my current Gnome session? Or will I be able to use both?

It will replace your current session. Rolling back is problematic, please see the warnings here:

How do I install and use the latest version of GNOME?

(Also I notice you tagged your question with 10.04, the PPA won't work with that anyway.)


How to rename sudoers back to its original naming?

I think the fastest way to fix this would be to get a root shell from the recovery mode and to move the original /etc/sudoers back in place:

Hold LSHIFT (or ESC if LSHIFT doesn't work) at power-on to boot into grub;
Select the default kernel's recovery mode (e.g. Ubuntu, with Linux 3.19.0-15-generic (recovery mode)) and hit Enter;
Select root - Drop to root shell prompt and hit Enter;
Run mount -o rw,remount /;
Run mv /etc/sudoers.bak /etc/sudoers;
Run reboot;


g++:error: `pkg-config --cflags --libs opencv`: No such file or directory

Python cannot perform a shell's job and do command substitution. You would have to perform the command substitution yourself, or wrap the whole thing using sh -c or bash -c:

For example, using subprocess.check_output() to get the output of the pkgconfig command:

import subprocess
pkg_config_flags = subprocess.check_output(['pkg-config', '--cflags', '--libs', 'opencv'], universal_newlines=True).strip().split()
subprocess.call(["g++", "begueradj.cpp", "-o", "begueradj"] + pkg_config_flags])

Or using sh -c:

import subprocess
subprocess.call(["sh", "-c", "g++ begueradj.cpp -o begueradj `pkg-config --cflags --libs opencv`"])

This last method can be simplified if you use shell=True:

subprocess.call("g++ begueradj.cpp -o begueradj `pkg-config --cflags --libs opencv`", shell=True)


Can not connect to public open wifi. Login portal is not showing?

After I read this blog, I managed to solve the problem following the procedure below:
https://www.lguruprasad.in/blog/2015/07/21/enabling-captive-portal-detection-in-gnome-3-14-on-debian-jessie/

Problem seems to be related with enabling the "captive portal handling" in GNOME.

To enable it, create a file /etc/NetworkManager/conf.d/20-connectivity-debian.conf with the following content:

[connectivity]
uri=http://network-test.debian.org/nm
response=NetworkManager is online
interval=300

Then restart NetworkManager using the command:

sudo service network-manager restart

Once this is done, whenever you connect to a network with a captive portal, GNOME will automatically open the captive portal login page where you can login to get access to the internet. Please note that the requests to the connectivity test URL could be logged and be aware of its privacy implications though no personally identifiable information is sent.


gcc and g++ are installed but ubuntu says they are not installed

You don't have the packages gcc and g++ installed.

This packages contain the files /usr/bin/gcc and /usr/bin/g++ while the package gcc-4.4 contains /usr/bin/gcc-4.4 and the package g++-4.4 contains /usr/bin/g++-4.4.


Ubuntu Mate: Change font color of Desktop Icon

Changes must be made in

/usr/share/themes/Radiant-MATE/gtk-2.0/apps/caja.rc

Add somewhere

style "desktop-icon-black" {
    CajaIconContainer::normal_alpha = 0
    text[NORMAL] = "#000000"
    CajaIconContainer::frame_text = 1
}

widget_class "*DesktopIcon*" style "desktop-icon-black"

to get black colored font without shadows on Desktop.


How To Restart Sudo Service on Ubuntu 16.10

There is no service working beyond sudo. When someone executes sudo it checks the sudoers policy. And sudoers policy checks the /etc/sudoers file or LDAP.

So you don’t need to restart any service.


Can I take the expo animation from Cinnamon and use it in unity?

Unfortunately, no you cannot.

Unity uses Compiz to do its effects, whereas Cinnamon uses a Window Manager known as Muffin, which is a itself a fork of Mutter. These two are far removed from Compiz, so you will not be able to port animations so simply.


Discs unable to set manual mounting options in 14.04

Solved it by modifying fstab.
Probably a bug or something since I set the mounting options same as previous Ubuntu releases.


If I'm not mistaken, GIO is part of glib. Since you seem to want to compile software depending on in, I guess you should install libglib2.0-dev

sudo apt-get install libglib2.0-dev


How to solve unmet dependency because of broken package?

I just removed the package that seemed to have problems!
$ sudo apt remove php7.4-common

Then I installed it again, after that I just tried the same command again, and voila!
I must say that I did check the posts that @Karel suggested and created a new sources.list file the way the answers to those questions suggested, and it worked, it might had something to do with that as well... honestly I didn't try what solved my problem before (that is uninstalling php7.4-common; cause I didn't really understand what the os was telling me), so I don't know if creating the new file with the changes in software & updates helped or not.


Because the PPA you are trying to add has been deleted. The first question on How do I install the Cinnamon Desktop? has an edit by the maintainer explaining why.


Ubuntu 15.04 desktop - How can I make Ubuntu boot to the command line?

Add the "text" flag to a grub boot option.

See the steps here to add a new boot option:

How to add a GRUB2 menu entry for booting installed Ubuntu on a USB drive?

When you add the code:

menuentry "Install on sdb1" {
    set root=(hd1,1)
    linux /vmlinuz root=/dev/sdb1 ro quiet splash
    initrd /initrd.img
}

Make sure to add text after the word "splash":

menuentry "Install on sdb1" {
    set root=(hd1,1)
    linux /vmlinuz root=/dev/sdb1 ro quiet splash text
    initrd /initrd.img
}

To change the default boot option to boot in text mode run this command:

sudo gedit /etc/default/grub

And then add "text" (without quotes) to the end of the line next to splash.  It should look something like this:

GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash text"
GRUB_CMDLINE_LINUX=""


MP4 files show up but won't stream to xbox 360

By default, ushare only streams audio mp4 files. I found a fix for this by editing some source code. If you open up the mime.c file and move the mp4 mime type into the video section and change the respective variables, then you can compile and install it to work great.

If you don't feel comfortable doing this, I have written a little script that does it all for you and sets your ushare.conf setting for you in the process! The only problem that I can't figure out is that for some reason, even though the xbox configuration is correct in the file, it still doesn't work unless you send the -x argument into the command line. I suggest removing your previous installation before running my script though, because I don't know what exactly happens if you don't.

You can download it here: https://rapidshare.com/files/2379920576/install%20ushare.zip

Just unpack and run the shell script.

EDIT: This script does not work on Ubuntu 12.10. I just tried it on my new machine and it failed. =[


Lenovo Thinkpad 25 (retro) webcam doesn't work with Ubuntu 16.04

I had the same problem. Turns out that TP25 has two integrated cameras, the other one is IR camera sending the garbled image, and the other one is the normal camera. The IR camera appears to be the default camera, and some applications allow you to switch between cameras, others don't.

I ended up disabling the IR camera completely, as I don't need it, and now I get the pretty picture from the normal camera by default.
My solution is here: How do I change the default webcam?


You can try going in to a shell by pressing Ctrl+Alt+F1 and login with your user name and pass, then type sudo do-release-upgrade and follow the instructions. That will hopefully try to resume the upgrade.

If it's says No new release found then try sudo apt-get upgrade and follow the instructions. That will try to fix the broken packages.

Hope it helps.


Use desktop icon for running application

The line StartupWMClass=Emacs is incorrect. It should be:

StartupWMClass=emacs24

or

StartupWMClass=Emacs24

You can find out by opening a terminal window, type

xprop WM_CLASS

then click on the window of your application


Automatically switch to speakers when headphones is unplugged

$ ls -l ToggleAudioOutput
-rwxrwxr-x 1 willem willem    1845 May  7 01:32 ToggleAudioOutput

$ cat ToggleAudioOutput
#!/bin/bash
###############################################################################
# -- ToggleAudioOutput -- Script to change audio output sink.
#
# The script is based on the output of this command line.
# Of course the output varies per system.
#
# $ pacmd list-sinks | grep -e 'index:' -e 'alsa.name' |\
#     awk 'NR%2{printf "%s",$0;next;}1'
#   index: 0        alsa.name = "HDMI 0"
# * index: 1        alsa.name = "USB Audio"
#   index: 2        alsa.name = "ALC662 rev3 Analog"
#
# Output sequence can differ except for the asterix (active device)
# and after (un)plugging usb audio devices.
###############################################################################

function GetSinks()
{
  Property="device.description"

  pacmd list-sinks                    | grep -e"index:" -e"${Property}" |\
    awk 'NR%2{printf "%s",$0;next;}1' | grep -v HDMI                    |\
    sed "s/^\ \ //"                   | sed "s/ index: //"              |\
    sed "s/[ \x9]*$Property = / /"    | tr -d '\"'
}

Sinks=$(GetSinks)
NrSinks=$(echo "$Sinks" | wc -l)
ActSink=$(echo "$Sinks" | grep '*' | cut -c2)

i=1
while read Line
do
  set -- $Line
  SinkNr[$i]=$1;shift
  SinkName[$i]="$@"
  ((SinkNr[$i]==ActSink)) && ((Index=i))
  ((i++))
done < <(echo "$Sinks" | tr -d '*')

((Index++))
if ((Index > NrSinks))
then
  Index=1
fi

###############################################################################
# Do the work...

pacmd set-default-sink ${SinkNr[$Index]}
notify-send "Audio output device set to:   >${SinkName[$Index]}<" -t 5000

# Any programs playing audio? Force them to the current audio output sink.
for InputIndex in $(pacmd list-sink-inputs | grep 'index:' | awk '{print $2}')
do
   pacmd move-sink-input $InputIndex ${SinkNr[$Index]}
done
###############################################################################
#EOF


USB keyboard hit and miss as to whether it will work on boot-up

Can you share a dmesg log? /var/log/dmesg.  It would be most helpful to see a log from when the keyboard was not found at boot, but usable after disconnect & reconnect.


I agree with Chandra. You cannot merge the unallocated space to partitions unless it is right next to the partition.


I have a laptop Acer 4552 with a GPU ATI HD 4250 and after I upgrade from my former kernel to the current I run into this trouble.

I resolved the issue by doing the following:

boot on recovery mode in the low graphic mode
Because I have already my driver downloaded I just run the configuration and the reboot. This will cause the GPU driver to be updated to the current kernel and then be able to boot.

Updating my kernel also fixed my hang up problem when I put on suspension and be able to use it again.


Please be quite certain that you are using a known gigabit-capable cable, i.e. cat 5e or cat 6 or better. If your computer has been connected for some time, it is entirely possible that it was connected with cat 5 which only supports 100 Mb/s: https://en.wikipedia.org/wiki/Category_5_cable

  Category 5 cable, commonly referred to as Cat 5, is a twisted pair
  cable for computer networks. The cable standard provides performance
  of up to 100 Mbps

If you have to buy a better cable, I suggest that you get the very fastest available; that is the most future-proof. I prefer cat7 to cat6a if available and cat 6a over cat6 and so on.

You might also temporarily swap in a known cat 5e or better cable to test the result.


According to the message in gedit you saved the file in the /tmp folder. Ubuntu as well as many other Linux distributions deletes all content in /tmp on every reboot. This is a recommendation from the Filesystem Hierarchy Standard.

Sad to say if you don't have another backup copy, your original is lost.

If you want to keep the files in /tmp longer, this answer describes how to set the value of TMPTIME.


systemd: How to modify the HandlePowerKey action with a custom command?

this question was solved here: https://unix.stackexchange.com/q/1974

you just need to add that command like

  echo -e "\a"

to execution of power button event.

it uses "beep" package, so you should install it before

  sudo apt-get install beep


Update the zsh autocorrection for commands

You need to run

rehash

to empty zsh's command hash table


The command which [command] lets you know which terminal command is being called.

For example in my question I have entered a www-data ALL=NOPASSWD: /usr/sbin/useradd, notice the last part /usr/bin/useradd this is the actual location of the useradd command that is called by the terminal. This may be obtained by use of which useradd.

Similarly you can also add search for the svn command using which svn and this will give you the location of the svn command. In my case, it gave me /usr/bin/svn and so when I edited the line

www-data ALL=NOPASSWD: /usr/sbin/useradd,/bin/svn

into

www-data ALL=NOPASSWD: /usr/sbin/useradd,/usr/bin/svn

the www-data user got svn privileges and I was able to do password-less sudo for the www-data user.


Ubuntu 14.04.01 doesn't boot on Toshiba after wiping out Windows 8

Well, have you disabled the PXE boot too?
You most probably have an option in the boot menu for pxe boot. You should go there and disable it, just like u did with the 'secure boot'.

To enter boot menu press f12 when at startup or when the logo (if there is a logo) of toshiba pops up.


The thread is old and I know that.
But it is often a question and my solution is Apache Guacamole™.
Even firewalls with application control don't block this access AFAIK.


Allow web users to write files into folder

Try the following

Using /var/www/projectfiles as the webroot is a best practice.

Change the webroot owner using the below command

sudo chown -R www-data:www-data /var/www/projectfiles

and the file and folder permissions are

cd /var/www/projectfiles

and run the following commands

find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;

then give 777 permission for /profile_pics

chmod -R 777 /var/www/projectfiles/profile_pics


How to delete to trash via terminal (with mv command)?

You can use gvfs-trash instead of mv

gvfs-trash somefile

The reason you were unable to see your file after moving it to ~/.local/share/Trash is that there is an additional directory structure below that i.e.

~/.local/share/Trash/files to contain the actual trashed file; and
~/.local/share/Trash/info containing metadata such as the original location

Although you could have used

mv somefile ~/.local/share/Trash/files

in which case somefile would be visible in the trash can, it would not be possible to use the nautilus/gvfs Restore function to undelete the file, due to the lack of info metadata - you would need to know and manually mv the file to its original location. In that sense, only gvfs-trash is the exact command-line equivalent to trashing a file via nautilus.


Avoid double titlebar in GNOME apps running under Xfce?

This is a known xfwm defect (arguably; I'd say the defect is in GTK+ 3). Fix proposed but not merged yet (as of June 18, 2014).


My battery is not charging after power outage

This is for sure a hardware problem, to test simply turn your laptop off, plug in power supply, wait 30 mins, remove power supply, try to turn it on. If it does not then it can be the charge circuit of the battery or the battery itself (I had a Dell that the battery refused to charge even tough the diagnostics say it was ok to charge).


Where is the script executed when logging into a shell?

Have a look at manpage update-motd(5) and the scripts in /etc/update-motd.d.  The text was originally called "Message Of The Day" and stored in /etc/motd (now a symlink to /run/motd).  That file is still there and updated as needed by background processes (likely anacron and update-notifier).

This can be suppressed by the presence of a ~/.hushlogin file on a per-user basis.


Remmina Desktop - cannot connect to RDP server

I installed rdesktop and started my session, but I still have an error... So I searched this error specifically and found out that some people had the same issue when they were using the server NAME and not when they were using the IP adress. I checked the IP adress of my remote computer from another computer (which is running Windows) and wrote it in Remmina and it seems to be working ... even after several connection/disconnection of my VPN and even after restarting my computer... ! I guess the problem is solved. Thank you for your help!