I deleted windows and I am having trouble merging the unused partition

Merging won't work if the partitions you want to merge are not adjacent. If you have a partition in between, you might be able to move this partition first. But be careful; if this is somehow your boot partition, you might break GRUB; it's wise to have a LiveCD or usb stick lying around to reinstall GRUB afterwards.


You might want to adapt some files in $HOME/.config:

user-dirs.dirs
user-dirs.locale

I feel with you; it annoys me to no end that today's desktops insist on creating a dozen useless directories with really weird names. But you can tweak it to what you want if you edit those files. I use:
user-dirs.locale:
en_US

user-dirs.dirs:
XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/tmp"
XDG_TEMPLATES_DIR="$HOME/doc/templates"
XDG_PUBLICSHARE_DIR="$HOME/"
XDG_DOCUMENTS_DIR="$HOME/doc"
XDG_MUSIC_DIR="/work/music/"
XDG_PICTURES_DIR="/work/photos"
XDG_VIDEOS_DIR="/work/video"


Syncing cell phone with Banshee via Bluetooth

That depends on the brand and model of your phone.  If you can treat your phone as a USB Mass Storage Device, then there's a chance Banshee will be able to support it out of the box.  If your phone doesn't work, you can always submit a bug report to the Banshee team requesting support for your specific phone.  See the Hardware section on Banshee's FAQ page for more information about which devices are currently supported.


Grub 2 detects incorrect partition for windows

Try to uninstall the cinnamon installed by using the following command,

sudo apt-get remove --purge cinnamon

and then

sudo apt-get autoremove

Once you are done with the above please proceed with login and logout else restart.


Dowloaded Wubi.exe but it doesn't run on my asus 1005p ee pc running windows 7

Solved the Ubuntu 12.04 LTS installation problem on my ASUS 1005P Eee PC Netbook.

Turns out when I purchased the Netbook it came with 4 partitions (C: D: and 2 Hidden partions) all of them were set as primary drives. Therefore, while attempting to install Ubuntu 12.04 from the Live USB I would get the option to "install Ubuntu inside Windows 7" instead of "install Ubuntu alongside Windows 7" and on continuing with the wizard the system will just reboot.

Then I shrunk the C drive using Windows disk management utility and tried installing Ubuntu onto the un-allocated space from the Live USB, but the installation wizard indicated that the unallocated space was not usable.

So I installed EASEUS Partition Master and used it to convert D drive to 'logical' as the C drive contained the Windows boot loader.

Thereafter, when I ran the Live USB it showed the "install Ubuntu alongside Windows 7" option and I was able to install Ubuntu 12.04 LTS alongside Windows 7 without any problems.


The short answer is, yes!

When SSH is used with VNC, it means first an SSH connection is established, then the VNC connection is "tunneled" through the SSH connection.

Having said that I have never used ssvnc, but the name seems to suggest it uses SSH and VNC protocols. Then it stands to reason that it uses SSH tunnelling.

I use Remmina, a versatile remote connection tool that allows using various protocols, including SSH, VNC and both of them together.

The question and answer you linked has some good advice. You can create an SSH tunnel on your own, and then use VNC separately to connect to 127.0.0.1. But remmina and presumably ssvnc will do all that for you.

Hope this helps


Open your home directory and type Ctrl + H. This will display all the hidden files, which start with a . character. These contain your settings. If you delete all of them, while keeping your personal files intact, your settings will be reset.


How can I uninstall WPS Office for Linux?

You can remove WPS Office/Kingsoft Office by follow commands:

sudo apt-get purge wps-office   # for a8 or earlier versions.
sudo apt-get purge kingsoft-office  # for a9 or later versions.

BTW: Kingsoft office is full English support, and stable enough now? Do you want try it again?

You can get newer version here: http://wps-community.org/download.html


How to turn off keyboard backlight of and Alienware M14X laptop

Change the color to black and it will be off.


Try ArpON, it is already in Ubuntu repository:

sudo apt-get install arpon

sudo arpon -i eth0 -d

References:

Wikipedia: ARP spoofing (contains a list of related tools)
How to detect and block an ARP spoofing/poisoning attack on a LAN
How to: Detect ARP Spoofing under UNIX or Linux
man arpon


Using gsettings to set wallpapers not working on ubuntu 16.04

Have you tried loggign out and logging back in a gain after selecting the new file for you wallpaper? I was having the same issue and this fixed it for me.


Baytrail Audio Port: ASoC: no backend DAIs enabled for Baytrail Audio Port

Whilst installing Gentoo on a GPD Pocket I had the same problem, strangely I found that pulseaudio fixes the problem... run it and it quits with an error but after that you can use aplay to playback a wav file.

Output of pulse audio when I run it:

W: [pulseaudio] main.c: This program is not intended to be run as root (unless --system is specified).
Killed

This is the output of my dmesg if I try using aplay before running pulseaudio, I am using kernel 4.14.0 (just released at time of writing):

[   98.209199] hci_uart_bcm serial0-0: BCM irq: 134
[   98.209250] usb 1-3: USB disconnect, device number 3
[   98.283103] Error: Driver 'pcspkr' is already registered, aborting...
[   98.350269] rt5645 i2c-10EC5645:00: i2c-10EC5645:00 supply avdd not found, using dummy regulator
[   98.350316] rt5645 i2c-10EC5645:00: i2c-10EC5645:00 supply cpvdd not found, using dummy regulator
[   98.431735] Bluetooth: hci0: BCM: chip id 101
[   98.432058] Bluetooth: hci0: BCM: features 0x2f
[   98.433075] Bluetooth: hci0: BCM4354A2
[   98.433080] Bluetooth: hci0: BCM4356A2 (001.003.015) build 0000
[   98.442394] bluetooth hci0: Direct firmware load for brcm/BCM4356A2.hcd failed with error -2
[   98.442398] Bluetooth: hci0: BCM: Patch brcm/BCM4356A2.hcd not found
[   98.547281] intel_sst_acpi 808622A8:00: LPE base: 0xa1600000 size:0x200000
[   98.547284] intel_sst_acpi 808622A8:00: IRAM base: 0xa16c0000
[   98.547346] intel_sst_acpi 808622A8:00: DRAM base: 0xa1700000
[   98.547359] intel_sst_acpi 808622A8:00: SHIM base: 0xa1740000
[   98.547366] intel_sst_acpi 808622A8:00: Mailbox base: 0xa1744000
[   98.547370] intel_sst_acpi 808622A8:00: DDR base: 0x20000000
[   98.547598] intel_sst_acpi 808622A8:00: Got drv data max stream 25
[   98.612056] cht-bsw-rt5645 cht-bsw-rt5645: snd-soc-dummy-dai <-> media-cpu-dai mapping ok
[   98.612107] cht-bsw-rt5645 cht-bsw-rt5645: snd-soc-dummy-dai <-> deepbuffer-cpu-dai mapping ok
[   98.612131] compress asoc: snd-soc-dummy-dai <-> compress-cpu-dai mapping ok
[   98.612461] cht-bsw-rt5645 cht-bsw-rt5645: rt5645-aif1 <-> ssp2-port mapping ok
[   98.668833] input: chtrt5645 Headset as /devices/pci0000:00/808622A8:00/cht-bsw-rt5645/sound/card1/input14
[   99.043453] hpet1: lost 9601 rtc interrupts
[  190.221386] intel_sst_acpi 808622A8:00: FW Version 01.0b.02.02
[  190.222291]  Audio Port: ASoC: no backend DAIs enabled for Audio Port
[  230.054571]  Audio Port: ASoC: no backend DAIs enabled for Audio Port

If I try and play a plain WAV file with aplay -D hw:1,0 /file.wav then I get this error message:

Playing WAVE '/file.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
Warning: rate is not accurate (requested = 44100Hz, got = 48000Hz)
     please, try the plug plugin
aplay: set_params:1361: Unable to install hw params:
ACCESS:  RW_INTERLEAVED
FORMAT:  S16_LE
SUBFORMAT:  STD
SAMPLE_BITS: 16
FRAME_BITS: 32
CHANNELS: 2
RATE: 48000
PERIOD_TIME: 125000
PERIOD_SIZE: 6000
PERIOD_BYTES: 24000
PERIODS: 4
BUFFER_TIME: 500000
BUFFER_SIZE: 24000
BUFFER_BYTES: 96000
TICK_TIME: 0

Replacing hw with plughw does not make a big difference.

I will try and find out which part of pulseaudio fixed the problem... it must be quite easy as after it fixed the problem it quit with an error.


No title bar, window bored or unity launcher in 12.10 after xrandr

bug
Ubuntu Bug 1166765 -unity showing only blank desktop, no dash nor decorations

The tmp fix is to open a terminal, if you don't have a terminal icon on desktop, then press ctrl + alt + F1 login and then execute the following command:

$ gsettings reset org.compiz.core:/org/compiz/profiles/unity/plugins/core/ active-plugins
$ sudo shutdown -r now


Recover data from partition overwritten by swap partition

What you could do, is take a dd image of your swap, bit by bit:

dd if=/your/swap of=/path/to/file.dd

"Your swap" is usually a separate partition. To find out which one do:

fdisk -l

once you obtain the .dd file, install autopsy:

 apt-get install autopsy

run it as root in your terminal, and open a browser as instructed.

Create a case in autopsy, and try recovering data in this way.
It may be complicated, but first secure the .dd file, then try forensic techniques recovering files. You may want to read up on autopsy as a forensic tool for data recovery.


Will MATE ever be in the official repos?

Mate is in the process of being submitted to the Debian repositories, so it is just a matter of time really.

The biggest hurdle is having someone (preferably multiple people) to manage and maintain the packages (and to handle bug reports etc). Another problem is that the Debian people don't like the fact that MATE uses deprecated technologies forked from GNOME 2 - this problem is getting better with each MATE release. Once these are sorted, Mate will probably land in the Debian repositories like any other Desktop Environment. Then, it will automatically become part of the Ubuntu repositories, too.


how to manually install driver in 14.04.5

I assume that the Broadcom STA driver, that is, the wrong driver, is already installed. Let's remove it:

sudo apt-get purge bcmwl-kernel-source

Reboot and, if the b43 firmware is correctly installed, your wireless should be working. If not, please edit your question to show, from the terminal:

dmesg | grep b43
ls /lib/firmware/b43


Why on earth would you want WinSCP on Linux? WinSCP is itself a compatibility layer for Windows.

Native file managers like Nautilus and Dolphin have native support for SFTP.


VirtualBox is a virtualization hypervisor, responsible for providing isolation of hardware resources to guest systems, allowing multiple operating systems to run at the same time on a single computer or server. It provides virtual hardware resources and devices to each operating system, such as processor, memory and network card. Each guest system is composed by an operating system, applications and libraries, exactly as the ones you would install in a computer or server.
Docker is a containerization platform which is responsible for providing isolation of software resources, allowing multiple applications to run in isolation at the same time on a single host system without the overhead of running multiple operating systems. It provides isolation of software resources to each container, such as independent users, processes trees and mount points, by using namespaces. Each container is composed
by applications and libraries and share the host system kernel.


This observation where you see significant swap use after a nightly batch job despite having plenty of RAM is not worrying. It is especially not worrying, because it happens during the night with no users in front of the computer. Thus,your user experience is in no way affected by this use of swap. Likely, as it stands now, your specific batch processes are performed with maximum efficiency and speed.

This high swap usage would only be of practical concern if you were in front of the computer during that time, doing other tasks. A high tendency to swap would then lead at times to  a slight delay in response of the user interface, as certain RAM of your applications needs to be retrieved from swap as you need it. Having a lower swap tendency will decrease the likelihood that software is swapped out, and that you experience delays. You will perceive this as snappier performance, i.e. instant response of the system throughout, but at the expense of other processes that have less "breathing room" to do their activities because you keep occupying the RA even for processes yo do not immediately need again.


Unlike the Windows security approach, system files cannot be modified on Ubuntu without proper authorization. You need to type the root password. In order to do the changes you want —provided that you know what you are doing—, open a terminal and type this:

gksudo gedit NAME-OF-THE-FILE

Remember to type the full path, for instance:

gksudo gedit /usr/share/themes/Ambiance/index.theme

Be careful with these commands: gksudo or sudo, because you can spoil your system.


Wireless networks not working Ubuntu 16.04

The problem solved itself. After restarting, I could see all the available wifi networks. Maybe because it's a new laptop, it wasn't done updating or something. Also, I was on a different location where security issues might have prevented me from seeing the wifi.


sudo apt-get install (google-chrome-stable_current_amd64.deb) is not working

You will want to run sudo dpkg -i packagename.deb instead of apt-get.


Use a Printer and a Scanner on same USB Hub

Make sure you install the "hplip" and "hpijs" packages using synaptic. These are very important to assist the user with installation and monitoring of the HP printers and scanners and all-in-ones too.

sudo apt-get install hplip
sudo apt-get install hpijs


Skip the .conf prefix.

sudo a2dissite www.example.org

will work if the corresponding config file in /etc/apache2/sites-available/ is www.example.org.conf.

Normally a2dissite will give you a error message, which would say that the site is not found.


try installing gnome-tweak-tool via terminal and search for advanced options in dash to launch it.:
`

sudo apt-get install gnome-tweak-tool`

Also use ubuntutweak app to manage theme too.

sudo add-apt-repository ppa:tualatrix/ppa && sudo apt-get update &&
sudo apt-get install ubuntu-tweak

You can easily manage themes ans cursor settings with this two.

Variety is nice app released for quantal to change wallpapers.

sudo add-apt-repository ppa:peterlevi/ppa && sudo apt-get update &&
sudo apt-get install variety

Also try myunity programm for configuring unity in software center.
sudo apt-get install myunity


Error: no such file when trying to run a .py file after making executable on lubuntu?

Clearly the file devansh.py lacks a shebang line
that indicates how the script should be executed.
See Why does Python in Linux require the line #!/usr/bin/python? for an
explanation of a shebang line.

Wrong

Content of devansh.py:

print "Go"

Attempt to execute it:

chmod +x devansh.py
./devansh.py
Error: no such file "Go"

Right

Content of devansh.py:

#!/usr/bin/env python

print "Go"

Execute it:

chmod +x devansh.py
./devansh.py
Go


Recover file name from old NTFS partition

If testdisk couldn't see the file, that means that the filesystem entry containing the references to it has been overwritten already.

As for any overwritten file, there's no way to recover such overwritten entry (i.e. there's no way to recover the filename).

But if recovering the file's content is enough, you can try to use photorec, which will read the device block by block looking for known file structure patterns (also note that per its scope photorec will recover any file of the same type of the missing file's type present on the drive); assuming that your file had a .ext extension:

Open a Terminal by hitting Ctrl+Alt+t
Install photorec: sudo apt-get install testdisk
Run photorec: sudo photorec
Select the drive containing the partition from which the file was deleted and choose Proceed
Choose File Opt
Hit s to untick all the entries in the list. Find the entry containing the .ext extension, hit Spacebar and then hit Enter
Select the partition from which the file was deleted and choose Search
Select the partition type and hit Enter
Navigate to the directory in which you wish to recover the deleted file(s) using Left / Right and hit C
Wait, this might take a while based on your drive type (HDD/SSD) and on your drive size
Browse to the folder in which you chose to recover the file(s) and see if your file was recovered


Libraries for eclipse with CCSv5 from Texas Instruments

I'm on 12.04 LTS x64.
Here's what worked for me:
sudo apt-get install ia32-libs
Installed Eclipse from repository
Installed the latest Target Management Terminal available from this eclipse plugin repo.
Enabled the http://rxtx.qbang.org/eclipse/ eclipse plugin repo.
Installed the latest RXTX plugin

It resulted in this:


Unable to go back to Windows 8.1 after installing Ubuntu for dual boot

If you installed Ubuntu first, then you will need to do some manual steps to restore grub and boot windows. It sounds like with your system, the partition tables are messed up for the Windows installation.

This is the official documentation on dual boot:
https://help.ubuntu.com/community/WindowsDualBoot

I would start by doing your factory wipe. I mean everything. Wipe the drive.

Install Windows to your liking in LEGACY mode so you don't use UEFI.

Then install Ubuntu how you normally would and keep Windows in the boot loader when prompted.

If you want to dive deeper with the install you already have, see the above link and note the section labeled "Recovering GRUB after reinstalling Windows"

This will provide more information:
https://help.ubuntu.com/community/Grub2/Installing#Reinstalling_GRUB_2

It's technical and you'll likely need to boot from the live CD/USB and do your operations in a X GUI (it's a little easier).


You don't mention whether or not you attempted to ping via hostname or ip address.  If by hostname, WINS is not a standard part of Linux (esp a basic install), so most consumer routers and Windows boxes won't be able to connect via hostname.  Your router may have a method of manually setting hostnames to a specific MAC or IP address, which could solve the problem.  If you have all Linux boxes and are having the problem, try defining the names in /etc/hosts.  Finally, try installing WINS if that's the route you like (part of SAMBA): https://help.ubuntu.com/community/Samba/SambaServerGuide


Ubuntu Software Center: Add option to launch application after installation

I asked at brainstorm and have an answer, this is long discussion at launch pad, read here


Attempting to install Ubuntu 20.04 on IBM zSeries: get message [ 0.388627] Initramfs unpacking failed: Decoding failed

Previous versions, 16.04 and 18.04 had a ubuntu parmfile that has an X'0A' followed by 79 X'00' characters. When you IPL'ed the kernel loaded and you would be prompted for network configuration info. After replying you could launch an SSH session and continue the installation.

On 20.04, the UBUNTU PARMFILE has the following:
X'40606060 4098A489 85A32540 4040404'
c'   - - -   q u i  e t  "

If the UBUNTU PARMFILE is replaced with ac copy of the UBUNTU PARMFILE from 128.04, The IPL of the kernel continues but never prompts for network information.

Does everything now have to be specified in the UBUNTU PARMFILE ??


Implementation of Shared Storage Drive Between Ubuntu And Win10?

You can have 2 partitions on the Hybrid drive.
One NTFS for Windows D:\users, Linux can mount and read/write it
Another one EXT4 for the /home of Ubuntu, Windows cannot read it (not natively)


How to move files from root SSD to another partition?

Depending what the most conveniently massive* files belong to, you can sometimes get away with shoving them straight onto another disk.

* If there are just a few things that are huge and easy to find, if you see what I mean.

The easiest tactic is to copy (cp -ar (-a is important to preserve permissions etc.)) a directory to somewhere (either a new partition on the HDD or for example a slightly nasty path like /home/usr/...) then replace the original directory with a symbolic link.

This will mean that anything trying to open them (for reading or writing) in the original location will seamlessly** end up following the link and all will be well.

** ...most of the time

There are some risks in this strategy. If you link out a directory which is part of a software package, you risk the install scripts doing something unexpected on an upgrade and replacing your link, which can leave things half broken. So proceed with care.

It's probably easier to just delete some stuff, though... as most people are saying in comments, it really depends what the space is being taken up by.


You can't install just the Launcher from Ubuntu, you would need the whole desktop and it REQUIRES gnome as Unity is based on gnome

sudo apt-get install ubuntu-desktop

I would just like to point out that using this kind of defeats the point of Lubuntu being as light as possible, as Unity the Ubuntu desktop, is very heavy on resources, but it is your choice, though using Xubuntu may be a better solution, or

A dock should meet your needs, I would recommend plank, previously docky, it is still maintained and can be moved to the left of your display.

Run this in a terminal to install plank,

sudo add-apt-repository ppa:ricotz/docky
sudo apt-get update && sudo apt-get install plank

Sorry I could not find an image of it on the left on Lubuntu, but you can change the alingement in settings to move it..


This a common problem with that model.

Here is solution

http://www.techytalk.info/ubuntu-ppas/ralink-wireless/

Linked question :

Wireless not recognised on a Compaq Presario CQ57


No, Nvidia stopped supporting 820m since 390.xx. 820m has 450 drivers available both on windows and linux, but it is fake. Max version of 820m on windows in 391.xx and on linux is 390xx.
This GPU works best on gdm, boot Ubuntu 20.04 with nomodeset (search google what is nomodeset). Connect to wifi and open terminal. Enter sudo service gdm stop. You will get black screen. Press Ctrl + Alt + F4. After that enter your credentials and enter sudo apt install nvidia-340. After an install enter sudo reboot. Make sure your GPU works by entering Nvidia settings in App Menu. If it works, you can install 390xx. Go to terminal and enter sudo service gdm stop, press Ctrl + Alt + F4 and enter your credentials. After that enter sudo add-apt-repository ppa:graphics-drivers/ppa. Press Enter. Then enter sudo apt update. After that enter sudo apt install nvidia-driver-390. After an installation completed, enter sudo reboot. And you successfully installed 390xx. I did it my self on my Inspiron 3443 with 820m graphics and it works perfectly. Im happy
Source: If you try to install driver higher than 390xx, it will give a 820m is not supported warning


Ethernet issue in TP720 - working fine for U16.04 while keeping breaking in U18.04, U20.04 and U20.10

Looks like the ThinkStation P720 is certified for Ubuntu 16.04, which would explain why the network drivers exist for your machine there. That said, there is a solution.

Download the e1000e-3.8.4.tar.gz from the Intel Download Centre
Untar the file with: tar -xfv e1000e-3.8.4.tar.gz
Go to the source directory: cd src
Compile and install the driver: sudo make install
Reboot

This should solve your problem.


Caps Lock as Control key does not (always) work as Control

I think you are correct that the but keep the Caps_Lock keysym is to blame. Turn that setting off and try Ctrl key position > Caps Lock as Ctrl and see if that works.


From a shell script to an application icon

Unless your script both starts with the Shebang (#!/bin/sh) and is marked as executable, you'll need to run sh specifying the shell script as an argument in order to execute it: this line:

Exec=/home/ubuntu/Documents/Biologie/L3SV/S6/PPD/Copasi/bin/CopasiUI.sh

Should be this line:

Exec=sh /home/ubuntu/Documents/Biologie/L3SV/S6/PPD/Copasi/bin/CopasiUI.sh


The hidden files and folders in your home directory stores all your personal configurations and settings. In Nautilus you can reveal all the hidden folders and files by pressing Ctrl+H. If you have restored whole of your home folder, then these should be already restored.

The system wide configuration files are in /etc (etc stands for editable text configuration). If you decide to restore the whole of /etc from your previous installation, you may want to backup the current one first, in case something in the old configuration files break something in the new install.

It is easier to re-install applications rather than restore them from backups. One way to keep track of which applications you have in which computer is by using Ubuntu One.

Alternately you can save a list of installed application from the terminal and back it up. To do this, in a terminal type:

sudo dpkg --get-selections > apps.txt

To restore the applications on the list:

sudo dpkg --set-selections < apps.txt

sudo dselect update

sudo apt-get dselect-upgrade show

Hope this helps


Problems with icons and shutting down Ubuntu 12.04

The Problem is MyUnity, I had the same problem, The graphics controller on my Pc is on board and not very good, therefore Myunity caused problems, after removing it and going into appearance and choosing radiance, then setting it back to ambiance, then rebooting the System , everything is back to normal.


Have you seen Ubuntu Community Help ?

Here's what you're looking for: MigrateWubi

Thanks


AnewKodi AC1200 - Ubuntu 18.04 kernel 4.17.0-041700-generic

An answer by the OP

At the end it was a wrong driver. The correct driver for that usb adapter is: rtl8822bu I used this fork for compiling 4.15+ kernel: github.com/FomalhautWeisszwerg/rtl8822bu I hope it helps more people.


linux-headers-3.5.0.19 needs to be installed but I can't find a archive for it. Please help!

I have linux-headers-3.5.0-19 in my default package list itself, I don't need to add any additional ppas.

What I understand from your description is that there are broken dependencies on your system. You can try completely removing the packages for which there are conflicts. If it works, then try and reinstall them once again.

The second issue happened probably because you had Synaptic open, and you tried sudo apt-get install -f from the terminal. Is this right?


How to add the necessary ports to apache?

Not at all this fairly simple.

$ sudo apt-get install apache2 libapache2-mod-php5 php5 phpmyadmin

After that you should be all set. If you want to add the ports to the firewall these are port 80/TCP for HTTP and 443/TCP for HTTPS, if you want ssl also do:

 $ sudo a2enmod ssl
 $ sudo a2ensite default-ssl

And to add to iptables:

 $ sudo iptables -t filter -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
 $ sudo iptables -t filter -A INPUT -p tcp -m tcp --dport 443 -j ACCEPT

Not completely sure about the IPtables commands since I usually reload using a config file.

If you have any more problems please let me know.

Kind regards,
Jochen


You don't have to reboot when they are zombie processes. Here's why:

A process becomes zombie when the process is finished, but it's parent has not called wait(2) to get it's return code
The zombie does not take any physical or virtual resources except only an entry in the kernel's process table
Once the parent calls wait(2) the zombie will be properly reaped and the process table entry will be removed
If the zombie becomes an orphan i.e. if it's parent dies, then init (PID 1) will inherit the process and will reap it by calling wait(2)

As you can see it's a matter of time till the wait(2) is called and the zombie is reaped. If you have many zombies over the time, consider it's a programming flaw, you should look at fixing (or ask for fixing) the code instead rather than rebooting, which is absolutely unnecessary and should not be done.

To find the zombie processes, get the STATE of the process, if it's Z, then the process is a zombie:

ps -eo pid,ppid,state,cmd | awk '$3=="Z"'

Here i have taken only selective fields namely the PID, PPID, STATE and COMMAND.


How to Detect/List multiply display in ubuntu using python?

You should be able to parse /var/log/Xorg.0.log

The displays sections start with EDID for output

[    11.189] (II) modeset(0): EDID for output eDP-1
[    11.191] (II) modeset(0): EDID for output DP-1
[    11.206] (II) modeset(0): EDID for output HDMI-1
[    11.206] (II) modeset(0): EDID for output DP-2
[    11.218] (II) modeset(0): EDID for output HDMI-2
[    11.231] (II) modeset(0): EDID for output DP-1-1
[    11.244] (II) modeset(0): EDID for output DP-1-2
[    11.244] (II) modeset(0): EDID for output DP-1-3

In this example eDP-1 and DP-1-1 is the laptop display, DP-1 and DP-1-2 is one monitor over display port and DP-2 and DP-1-3 is the other.  The output between each EDID entry is the detailed monitor information:

[    11.231] (II) modeset(0): Manufacturer: DEL  Model: a07b  Serial#: XXXXXXXX
[    11.231] (II) modeset(0): Year: 2013  Week: 27
[    11.231] (II) modeset(0): EDID Version: 1.4
[    11.231] (II) modeset(0): Digital Display Input
[    11.231] (II) modeset(0): 8 bits per channel
[    11.231] (II) modeset(0): Digital interface is DisplayPort

Another example:

[     6.893] (II) RADEON(0): EDID for output DisplayPort-0
[     6.952] (II) RADEON(0): EDID for output HDMI-0
[     6.983] (II) RADEON(0): EDID for output DVI-0
[     6.998] (II) RADEON(0): EDID for output DVI-1

As you can see, the naming conventions are not consistent as my laptop has an EDID for each port and one for each screen, where my desktop does not.


It's a Windows share, allowing null operations. IPC$ share and null session behavior in Windows:

The IPC$ share is also known as a null session connection. By using
this session, Windows lets anonymous users perform certain activities,
such as enumerating the names of domain accounts and network shares.
The IPC$ share is created by the Windows Server service. This special
share exists to allow for subsequent named pipe connections to the
server. The server's named pipes are created by built-in operating
system components and by any applications or services that are
installed on the system. When the named pipe is being created, the
process specifies the security that is associated with the pipe, and
then makes sure that access is only granted to the specified users or
groups.


You can use gnome-terminal or xterm package, to open virtual terminal in GUI.

About nautlius, here I found answer which should help you


How to tweak Intel HD graphics on Ubuntu 16.04

To disable power saving for both the CPU and GPU, add this to the grub kernel params:

i915.enable_rc6=0

Ex:

sudo nano /etc/default/grub

Edit the line containing GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" so that it looks like:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash i915.enable_rc6=0"

Save the file, and run the command sudo update-grub. Reboot.

Other tweaks include the standard lowering of resolutions and disabling animations.

16.04 ships with the latest Intel open-source driver.

I can testify that the tweaks within the Intel Control Panel on Windows are all placebo. I saw absolutely no benefit in enabling them. The IGP on Arrandale CPUs are so slow that any performance increases will be in the 0-2 fps range.


During chat session we have discovered the following moments:

For some reason sudo dpkg --add-architecture i386 did not worked for first time. So we ran it multiple times.

For reproducible results we removed local software lists by sudo rm /var/lib/apt/lists/* and then run sudo apt-get update again.

We discovered that the system had two different versions of libc6 packages for amd64 (2.31-0ubuntu9.2 from official repository) and i386 (2.31-0ubuntu9.3 from some local source), so we installed correct versions by
sudo apt-get install libc6=2.31-0ubuntu9.2 libc6:i386=2.31-0ubuntu9.2

Finally we installed Steam by
sudo apt-get install aptitude
sudo aptitude install steam:i386


Ubuntu Server 16.04 and Active Directory

I found a solution: when you restart the services in the how-to guide you can’t start the SSSD daemon cause the error. Just join your machine to your AD how the next steps describe. After that start SSSD.

In addition, add

ldap_id_mapping = true

to your sssd.conf if you don’t have Unix IDs in your AD, so SSSD calculates the IDs.


How to change only folder icons in Ubuntu?

Grab the Unity Tweak Tool, and select "Icons" under the Appearance section.

You should be able to do it from there.

If you want to be able to switch an individual default icon, I read in this Ubuntu Forums thread that the default icon is designated in this file:

/usr/share/applications/nautilus-folder-handler.desktop

Look for the line that reads:

Icon=system-file-manager

Try adjusting that (to your new icon file) and see if it helps.


Recover data from USB flash drive with testdisk and photorec

This happened to me once and I was very confused because fdisk -l seeing a too small device doesn't make any sense. I opened the USB stick and saw that units in there were physically disconnected from each other, put only in part. I disconnected them entirely and then reconnected them to make the USB stick work again.

If you do this and it solves your problem, please recover your data, then open GParted, unmount the partition (right-click on it in GParted), create a new partition table and then create a new partition. This is to make sure your partition isn't corrupted.


Matlab 2017b not installing with Ubuntu 2017

Just found out that this works for me

xhost si:localuser:root
sudo ./install

Hope it's helpful in case someone else was running into this problem!


Firmware missing .can't connect to the internet ? please help

Connect to the internet with a cable, open the Additional Drivers tool from your dash, the driver for your wireless card should be there and you just need to install it.

If by some reason that driver does not work open Additional Drivers tool again, remove the driver and open the Ubuntu Software Center, look for bmc in the search box and install the package.

Don't forget to reboot just in case the new modules are not being loaded.


QEMU/libvirt: guest VM does not properly shutdown

Thank you Christian Ehrhardt, apparmor was indeed the culprit. I noticed, that the new default abstraction for libvirt-qemu was saved in /etc/apparmor.d/abstractions/libvirt-qemu.dpkg-dist during the upgrade process, so I could merge the changes in the new default abstraction with my custom modifications without having to re-install apparmor.
Now my VMs are shutting down fine again.


This is a known problem in Odroid kernel headers package. memory.h should be somewhere on your system, but not in the right place where the compiler is looking for it.

Try to locate memory.h with

find /usr | grep mach/memory.h

once you have located the file, symlink it to the righ place

sudo ln -s /path/to/mach /usr/src/linux-headers-`uname -r`/arch/arm/include/

If you really don't have the file, download it from github.


You can install Modem Manager, which can fulfill some of your requirements. It is in Software Center, or can be installed by

sudo apt-get install modem-manager-gui

It can send, receive SMS, USSD, monitor traffic, networks, etc.

But it can not make phone calls.


folder content doesn't get refreshed automatically in ubuntu 14.04

The changes are not permanent, therefore

Edit the file /etc/sysctl.conf

sudo nano /etc/sysctl.conf

Add the line below, eg

fs.inotify.max_user_watches=1000000

Reload the changes

sudo sysctl -p

You should see something like this

fs.inotify.max_user_watches = 1000000

and with cat /proc/sys/fs/inotify/max_user_watches

1000000


How do I get the latest (beta and development) version of Chromium?

By default (Using all repos) 13.04 has Chromium version: 28.0.1500.52-0ubuntu1.13.04.3

I found the following while searching the PPA list in Launchpad:

Chromium Beta Builds - https://launchpad.net/~saiarcot895/+archive/chromium-beta (chromium-browser version 31.0.1650.34 as of 2013-11-01)

Chromium Dev Builds - https://launchpad.net/~saiarcot895/+archive/chromium-dev (chromium-browser version 32.0.1671.3 as of 2013-11-01)

API Keys

Warning: Google API Keys are not included with these packages as mentioned in both PPA Links. The process of creating them is quite involved and only recommended for developers!

Do not update chromium-browser from those PPAs if you haven't understood the process below!

  NOTE: Some Chromium features, including Sync, require an API key,
  which is not included with the packages below. To use these features,
  please follow the 11 steps at
  http://www.chromium.org/developers/how-tos/api-keys. Then, open
  .profile located in your home folder (you will need to see hidden
  files), and add the following three lines to the end of the file (on a
  new line):

export GOOGLE_API_KEY=<api key>
export GOOGLE_DEFAULT_CLIENT_ID=<client id>
export GOOGLE_DEFAULT_CLIENT_SECRET=<client secret>

  Replace what is in the angle brackets (after the '=' sign in each
  line) with the appropriate value. You will need to log off and log
  back on for Chromium to use the keys.

Installation

To add either of them do the following

Adding Beta PPA

sudo add-apt-repository ppa:saiarcot895/chromium-beta
sudo apt-get update
sudo apt-get install chromium-browser

Adding Dev PPA

sudo add-apt-repository ppa:saiarcot895/chromium-dev
sudo apt-get update
sudo apt-get install chromium-browser

If you already have it installed then simply do a sudo apt-get ugprade instead of installing the package again. Your end result should be something like this:

Now if you want the Trunk version, please see the answer by Radu

UPDATE - Remember to add the API Keys since when opening for the first time Chromium you will get this:

And basically all Google services (Like syncing for example) will not work. So follow the How To above about adding the Api-Keys. To open the profile simply type the following on the terminal:

gedit ~/.profile

And then follow what the instructions say.

Know that this PPAs only have 1 person (The same person) which means this could be a temp solution (Totally depends on the PPA Maintainer).


You need to create a systemd unit file for this service, and then enable it. The following worked for me on Ubuntu 15.04 (upgraded from 14.04) with PBIS 8.2.2.

Create the file lwsmd.service in /lib/systemd/system like this:

nano /lib/systemd/system/lwsmd.service

Here are the contents (paste this in to the file you created above)  (taken from a redhat one) so thanks to them:

[Unit]
Description=BeyondTrust PBIS Service Manager
After=network.target

[Service]
Type=forking
EnvironmentFile=/opt/pbis/libexec/init-base.sh
ExecStart=/opt/pbis/sbin/lwsmd --start-as-daemon
ExecReload=/opt/pbis/bin/lwsm refresh
ExecStop=/opt/pbis/bin/lwsm shutdown
# We want systemd to give lwsmd some time to finish gracefully, but still want
# it to kill lwsmd after TimeoutStopSec if something went wrong during the
# graceful stop. Normally, Systemd sends SIGTERM signal right after the
# ExecStop, which would kill lwsmd. We are sending useless SIGCONT here to give
# lwsmd time to finish.
KillSignal=SIGCONT
PrivateTmp=true

[Install]
WantedBy=multi-user.target nss-lookup.target

Once this is done, make a symlink to this file in /etc/systemd/system:

cd /etc/systemd/system
ln -s /lib/systemd/system/lwsmd.service

At this point you should be able to type:

service lwsmd status

and see that the service exists and is enabled.

Then typing:

service lwsmd start

should start it up and have pbis working as expected.

Now to make it work at boot time. Enable the service with this command:

systemctl enable lwsmd.service

It should give some feedback about creating some symlinks.

Then reboot your comp and all should be working.

I hope it was clear enough, and please forgive any typos... Good luck!


Does dmcrypt/LUKS full disk encryption in kernel 3.0 have multi-core/multi-thread support?

Yes!

dmcrypt/LUKS does benefit from Intel AES hardware acceleration.

See this article for some benchmarks showing the advantages of AES-NI hardware acceleration.


Ubuntu 14.04 displays only background with no Launcher after log in

I'm an Ubuntu newbie moving over from Windows XP!

I just upgraded from Ubuntu 13 to Ubuntu 14.04 LTS 32-bit, laptop with dual monitors.

While doing the upgrade my system got stuck on the black Ubuntu logo loading screen for an hour or two. I eventually had to do a hard shutdown.

Restarting the computer, I as able to get to the Ubuntu OS, I could see my desktop background and was able to use my wireless mouse to move the cursor between the two screens. No launcher, no GUI. Again, I was only able to do a hard shutdown

I was able to login using recovery mode and could use my laptop as usual (dual monitors, internet etc) but extremely slow.

The next day, by accident, I started up the laptop forgetting to plug the power board into the power supply. It started up and loaded Ubuntu 14.04 perfectly!!

I plugged it in, my 2nd monitor turned on, and was mirroring my laptop. I opened up System Settings, and instantly my 2nd monitor remembered my previous settings.

It works great now, but starting up with the 2nd monitor turned off is just a work-around for now.


You can use the disk utility(installed by default) to format the drive. There is an option 'format volume' select that option.

.

.

.

.


different gateway subnet on ubuntu makes network unreachable

Reading the netplan docummentation, I managed to make it work by using routes and on-link features.
After applying the following, it works:

network:
  version: 2
  renderer: networkd
  ethernets:
    eth0:
      dhcp: no
      addresses:
        - IP/32
      routes:
        - to: 0.0.0.0/0
          via: <GATEWAY_IP>
          on-link: true
      nameservers:
        addresses: [8.8.8.8, 8.8.4.4]


Alt+F1 or Ctl+Escape are the keybindings for opening the main menu. All keybindings (as well as many other settings) are contained in ~/.config/openbox/lubuntu-rc.xml


Is there any place on the internet that houses window themes (as Ubuntu tweak calls them) and gtk themes for ubuntu?

This link contains a big themes Collection for Ubuntu 13.04 Raring Ringtail/Ubuntu 12.10 Quantal Quetzal/Ubuntu 12.04 Precise Pangolin/Ubuntu 11.10 (Unity, Gnome Shell, GTK3, and GTK2)/Linux Mint 14/13/12.


Although your symptom is the opposite of what's described, my answer to the following question may work for you:

How do I boot to Windows 8 from Ubuntu 13.04 on a dual-boot EFI install? (No Grub)

Also, a minor side note: You probably don't want Ubuntu's partition to show up as your G: drive in Windows. To fix this, you can launch gdisk and change the type code of your Linux partition from 0700 to 8300. See this page for more on this topic.


Freeze screen before regional screenshot capture

A little late to the party, but switching from windows I missed that feature a lot. I just recently discovered flameshot which does exactly that (with additional features like making some small edits on the fly).
You can install it via: sudo apt install flameshot
and then invoking it on the command line via flameshot gui
However, that seemed annoying to me so I also created a shortcut with the print button (you need to disable the standard screenshot first though). See Ubuntu 18 how to change screenshot application to Flameshot?


How can I manage my Ubuntu Server from a Windows client?

With Landscape server you can push updates, remotely execute simple scripts, collect system inventory data (proc, ram, chipset, etc.), and graph basic system performance.  All remotely through a web browser.  No client install required.  Think of it as WSUS on steroids.

If you are looking for true remote management (which is super-overkill for a single host), then you probably want to look at Puppet or other similar tool.  But for one server, that would be harder than just learning a few linux command line tools.


How do I hide the Toolbar in Evince Full Screen Mode?

The short answer is, you can't.

Evince 3.4.0 (on 12.04) had the option to hide the toolbar from the menu View > Toolbar then select Fullscreen from the menu or via F11 key will hide the toolbar in fullscreen mode.

Apparently, this feature has been removed from newer version of Evince and it has been reported as bug on launchpad and in mailing list as well.

Perhaps this might be fixed with newer version, but who knows.

Immediate workarounds would be either:

using window manager as suggested by @zarnaik
use other PDF viewer such as MuPDF, etc.

I have used MuPDF on Xubuntu 14.04, and it seems to achieve what you want: no toolbar and able to zoom to any width, while viewing in fullscreen.


How can I install scripts in Kate and Where are the existing scripts?

The link you provided for the word count feature has

  The files have been tested with KDE 3.2.2 and 3.2.3.

So that doesn't concern us who are on Kubuntu 18.04.

dkb@kububb:~$ inxi -Sxxx
System:    Host: kububb Kernel: 4.15.0-34-generic x86_64 bits: 64 compiler: gcc v: 7.3.0
           Desktop: KDE Plasma 5.12.6 tk: Qt 5.9.5 wm: kwin_x11 dm: SDDM
           Distro: Ubuntu 18.04.1 LTS (Bionic Beaver)
dkb@kububb:~$

In the version of Kate that comes with Kubuntu 18.04, word count is built-in. You don't need a script:

In the bottom of the image you'll see 606/0. If you select some text, the 0 will change to reflect the words in your selection.

Now, regarding the scripts already available: I ran

locate kate | grep script | grep -v locale

and saw:

dkb@kububb:~$ locate kate | grep script | grep -v locale
/usr/share/doc/HTML/ca/kate/format-text-superscript-22.png
/usr/share/doc/HTML/ca/katepart/format-text-superscript-22.png
/usr/share/doc/HTML/en/kate/format-text-superscript-22.png
/usr/share/doc/HTML/en/katepart/format-text-superscript-22.png
/usr/share/katepart5/script
/usr/share/katepart5/script/README.md
/usr/share/katepart5/script/libraries
/usr/share/katepart5/script/libraries/underscore.js
dkb@kububb:~$

However, I could not locate individual scripts anywhere. It's possible they're part of Kate's code.

For more information, you could look at https://docs.kde.org/trunk5/en/applications/katepart/dev-scripting.html which is too technical for me to understand.


I solved my problem by entering these two lines and then adjusting the sensitivity.

    sudo apt-get install gsynaptics
      gpointing-device-settings


It sounds like you have some drivers that for some reason didn't get installed during installation.  I'm not sure which drivers didn't get installed but I would say it's irrelevant as you would have no way to install them selectively with no input devices.

If you were able to use them in the live CD then they are supported.  I would completely wipe and reinstall 12.04.  I would download and burn a new copy of the disk just in case it's corrupted.  If you don't want to download and burn a new one you need to at least check the disk you have.

To check the disk boot into the live CD and then press any key at the first purple screen(I just repeatedly tap a key as soon as the boot starts so I don't miss it)  On the screen that comes up will be a option to "Check Disk for Defects".

I have Ubuntu installed on a Dell Inspiration Desktop so you should have no problems with you computer so I have to think you have a bad install.

Upon searching the certified hardware I think I found your computer and it's listed so it should work with no problems.....

There were two listed here are the links to the components, anything listed with unknown mean that the manufacturer is not recognised.

Laptop 1

Laptop 2


Configure WiFi roaming for Gnome Network Manager

While this solution is late and temporary one method would be to set

wpa_cli -p /run/wpa_supplicant -i wlan0 set_network 0 bgscan "\"simple:A:B:C

where A is how long you want to check after it has reached a certain threshold lower than B (this is based off of signal level so something like -60 would work), if anything is better than this threshold it'll search every 60 seconds instead.

So lets say you wanted your wireless card to search every 5 seconds if it's a signal level of -70, but if the current signal is better than search every 120 seconds you would do the following.

wpa_cli -p /run/wpa_supplicant -i wlan0 set_network 0 bgscan "\"simple:5:-70:120

I hope this helps, and hopefully someone can give a more efficient answer.


I don't remember exactly what resources I followed when setting up my RAID on my server, but I think this article was the main point of information. Some important things:

Use mdadm and not dmraid.
Use /dev/disk/by-id/ paths to point at the disks, instead of /dev/sda etc… It's easier to map them to the physical devices, in case you need to replace a disk or such.
Be patient. At first I thought my RAID would be ready after the 5 hours initial setup time. Then it took another day to rebuild itself and actually be ready. (4x2TB)
Use a separate disk/partition/RAID for primary OS installs. It's easier to manage everything if you keep the large data RAID separate from primary OS and its data. Much easier to recover a small OS disk, than rebuild a huge multi-terabyte array, if something goes bad on the OS side.


There was an error in my syslog,

short read (-1): Message too long

which suggested an MTU problem. Apparently, sometimes VPNs complain about incorrect MTU settings. As I connect to home via a Verizon 4G wireless card, this VPN wasn't happy, and would drop after 30 seconds of activity. Or so.

Here's what I did to fix it.

ping -s 1472 google.com

which sets the MTU (byte length) of the ping. Try out different numbers. I started lowering it drastically, jumping up and down by a couple hundred, then guessing it down to a single number, for me it was 1400, which translated to an MTU of 1428. The shell command says something to this effect

drew@drew-buntu-laptop:~$ ping -s 1400 www.google.com
PING www.google.com (216.58.219.196) 1400(1428) bytes of data.
72 bytes from lga25s40-in-f4.1e100.net (216.58.219.196): icmp_seq=1 ttl=46 (truncated)
72 bytes from lga25s40-in-f4.1e100.net (216.58.219.196): icmp_seq=2 ttl=46 (truncated)
72 bytes from lga25s40-in-f4.1e100.net (216.58.219.196): icmp_seq=3 ttl=46 (truncated)
72 bytes from lga25s40-in-f4.1e100.net (216.58.219.196): icmp_seq=4 ttl=46 (truncated)

Then to actually change the MTU setting for my connection, in the top right of the desktop (ubuntu 15.04) right click on the wifi bars > edit connections > select the wifi you're currently connected to (not the VPN), hit edit.

Then near the bottom of that screen, you can enter in your custom MTU length.

Disconnect from wifi, reconnect, boom. VPN working solid.

References:
http://www.tp-link.us/FAQ-190.html

dslreports dot com slash "faq/695"


It means that you have write permissions even if the file is not yours and it's sticky:

Please, don't confuse with the SUID, which take precedence.

The dircolors -p will print you the complete database in which we find:

[...]
STICKY_OTHER_WRITABLE 30;42 # dir that is sticky and other-writable (+t,o+w)
[...]


it can sometime happen that the hardware drivers that 12.10 was packaged with, are not
yet "ready" for the system/hardware you have. You might have to wait for another 6 months for the next distro, unless and until some new driver / patch comes up.

Since you have an 8GB of RAM and you have already said that you are running Windows 7, may I suggest you to check if VirtualBox based Linux / Ubuntu is running on your system? You may also try to install a Wubi based Linux version, for the purposes of trying.


Override Built-In Maverick Keyboard Shortcuts

Is it this bug? Bug #558581
It looks like an annoying race condition between programs that use global key bindings.
At that URL, Alex Beels wrote on 2011-01-05:

To replace indicator-applet with indicator-applet-complete:,

Install indicator-applet-complete.
Remove both indicator-applet (the mail icon) and indicator-session (the on-off button) from the gnome panel.(Right click on icon, and choose "Remove From Panel" from the menu.)
Add indicator-applet-complete to the gnome panel. (Right click on panel background, and choose "Add to Panel..." from the menu.)


Flag/command to shuffle the letters of a word

Not the most elegant, but this works:

$ echo `echo "Azharudee" | sed -e 's/./&\n/g' | shuf` | sed -e 's/ //g'
Auerdzhae

Edit (for explanation):

echo "Azharudee"

puts that word into standard output, which is piped into

sed -e 's/./&\n/g'

which places each character onto its own line, by replacing each character by itself followed by a newline character, and pipes it into

shuf

which randomly shuffles the lines it is given and puts them on standard output.

Meanwhile this outer layer wraps all the above (as "...") in

echo `...` | sed -e 's/ //g'

The "echo" causes the multiple lines produced by the first set of commands to be combined into a single line, and the "sed" replaces all the spaces with nothing.

Note that it might have been visually better had I used $(echo ... shuf) rather than enclosing it in grave accents, which have the same effect but are harder to see.


How to run a shell (.sh) file 20 times parallel to each other in background in ubuntu 20.04?

The script below should run sh looper.sh 20 times in the background, discarding the output:
#!/bin/bash
i=0
while [ $i -lt 20 ]; do
  sh looper.sh > /dev/null &
  i=$((i+1))
done


Trackpad not detected for HP Zbook Studio G5 under Ubuntu 18.04.1

I have similar problem. I test it on ubuntu 16,18 with same result. While I can see the device and set its value to "enable" xinput set-prop 11 "Device Enabled" 1 it is not working.
In addition, when I installed xserver-xorg-input-synaptics or xserver-xorg-input-all I have lost keyboard as well and had to re-install.
Please let me know when the driver is available.

update: adding boot option acpi=off works for me but it`s not a solution because the system than can't turn off.


Starting Teamviewer 10 on Ubuntu 14.04 "The Teamviewer daemon is not running!"

My final solution was to use Teamviewer 7 for Windows with Wine. It seems versions newer than 7 do not currently work in chroots due to the issue I described in the original question, so 7 is the newest version that does not have this dependency. I use it for remote access and file transfer, so I don't know if all features from version 10 are available, but I can confirm those two are.

If anyone is trying to run Teamviewer within a chroot environment, I recommend simply downloading version 7 for Windows along with Wine and installing it that way.


debsums flags some files as broken even after package reinstallation

(Apologies - I don't have enough reputation to add comments)

Could you explain how you reinstalled the aspell-it. Also can you display the exact output of dpkg -S /usr/lib/aspell/it.rws and dpkg -S /var/lib/aspell/it.compat

You can try doing the following:

Uninstall aspell-it

  sudo apt-get remove aspell-it

Now check that the files /usr/lib/aspell/it.rws and /var/lib/aspell/it.compat are gone. If yes then reinstall:

  sudo apt-get install aspell-it

Now try debsums -c again and check if you are still facing the same issue.


Wireless connection disconnects and reconnects with a Netgear WNA1000

I see.  I have also had wifi issues with the realtek rtl8188ce : driver rtl8192ce.  I tried disabling wirelessN on my router, The only solution that has worked so far today is turning off the wireless power management.

1.gksu gedit /etc/pm/power.d/wireless

2.insert:

#!/bin/sh

/sbin/iwconfig wlan0 power off

sudo chmod +x /etc/pm/power.d/wireless

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


Is there a GTK+3 version of the old default Human theme?

Here it is:

http://gnome-look.org/content/show.php/Human+GTK+3?content=164227

GTK 3 port made by me. Enjoy ;)


While this is cumbersome, one may paste the password into another (secure) program, such as gedit, and then after selecting the entire password, dragging it into the errant box. This actually has the weird effect of, for the current session, allowing pasting via keyboard shortcut into the errant window.


(2) Are from snap core package and you have 3 versions installed: 6130, 6259, 6350

They don't interfere with system wide programs, they are only used for other snap packages.
(3) It is a locally installed Python2, that will take priority and better to get rid of it if you don't need it.

If you still have the downloaded source, use the uninstall command. If not then you have to make manual remove.


Okay, so there's tons of information regarding this topic on the internet, but the general rules you should follow and information you should check before doing dual boot are the following:

The correct way of doing dual-boot Windows+Linux is to install Linux first. That's because once you install Linux, GRUB will manage the boot process and will provide you a screen so you can choose which Operating System you want to boot.
If for any reason windows is reinstalled, upgraded, etc. You`ll notice that GRUB won't appear anymore because Windows will take over as 'boot manager' and it does not understand that there's a Linux installed.
You need to understand and decide if you want to use legacy mode or UEFI (newer option, Windows 10 defaults to this). You can check which mode your Windows is running by n ways, e.g https://blogs.technet.microsoft.com/home_is_where_i_lay_my_head/2012/10/02/how-to-check-in-windows-if-you-are-using-uefi/. If your Windows is UEFI and you want to change to legacy, you need to reinstall everything. Dual boot works in both modes and there's advantages and disadvantages to both, check here: Are there any drawbacks to legacy BIOS as opposed to UEFI?
If you're using UEFI, the general rule of thumb when installing Linux (when Windows is also installed in UEFI) is, when installing GRUB, point to where`s the EFI partition is (this partition is used for UEFI to boot the system).
Generally, people have three issues when dual booting:

5.a GRUB does not appear at all, therefore you need to check if you`re booting correctly and if GRUB was installed (generally in this situations Windows boots normally). You can always reinstall GRUB.

5.b GRUB appears in rescue-mode, this can means a lot of things, one case I had I just needed to point to grub-rescue where the grub file was inside the EFI partition.

5.c GRUB is booting correctly but does not show an option to boot Windows. This is the easiest one (and probably was your case), because what happens is that all files from Windows are still there, you just need to point GRUB where they are. I already faced this issue and fixed with this link: GRUB does not detect Windows

When dual-booting, please, understand what the purpose is of each one of the partitions you have, this will help you doing a clean and working installation.
Backup your files if you are not confident in your ability.
If for some reason you can't boot or your system does not appear, don't panic, unless you made a really bad decision and deleted partitions or something like that, all the files are still there and you just need to point grub, the OS, or your BIOS to the right direction. Almost everything can be fixed without a complete reinstall.
Sometimes breaking the booting process is frustrating because you need to reboot thousand times, spend hours on Google, etc. But face that as a opportunity to learn.
If you don`t like to search, learn and break a few things in the way, stick to Windows.

Check this documentation about grub: https://help.ubuntu.com/community/WindowsDualBoot
Tecmint has a good tutorial: https://www.tecmint.com/install-ubuntu-16-04-alongside-with-windows-10-or-8-in-dual-boot/

I'll be happy to help if you face any issue in your new installation. Good luck!


The fix

In /etc/sudoers make sure the line is still there says:

jose ALL= NOPASSWD: /home/jose/sync.sh

Do NOT delete that line!
Optional: In your script, remove the sudos in front of every command using for exapmle:

sed -i 's/^\(\s*\)sudo\s*/\1/g' /home/jose/sync.sh

This is not necessary but proofs a point. You can leave the files as it is, if you want to be able to execute it as regular user, without sudo /home/jose/sync.sh, and then be asked for a password.
Run your script with:

sudo /home/jose/sync.sh

sudo will not prompt you for a password. It is important to have the sudo in front of your call to the script.

Also for security reasons run the following commands on your script:

sudo chown root:root /home/jose/sync.sh
sudo chmod o-rwx /home/jose/sync.sh

This way no one can edit your script without the root password. This important because else everyone that sits on your computer as a free and password-less method to execute commands as root.

The problem

The problem with the way you did it is, that you give permissions to run the script with root privileges but don't actually run it as root using sudo.

The only thing you run as root are the two commands that have "sudo" in front of them (which are of course umount /home/jose/pc1 and mount -t smbfs //172.18.2.100/Downloads /home/jose/pc1). But those two mount commands do NOT have root permissions (and should NOT despite pl1nk describing how you'd give them root permission in his answer), as they are not listed in /etc/sudoers to have NOPASSWD fot the user jose.


CIFS mount - fstab versus manual - loss of writing privileges

As far as I know, the behavior that you're looking for (i.e. consulting the /etc/fstab file, and applying the options found there) only applies if you call mount directly, rather than one of the "helper" commands like mount.cifs, and only if you specify EITHER the device or the mountpoint. From man mount:

   If only the directory or the device is given, for example:

          mount /dir

   then  mount looks for a mountpoint (and if not found then for a device)
   in the /etc/fstab file.  It's possible to use the --target or  --source
   options  to avoid ambivalent interpretation of the given argument.  For
   example:

          mount --target /mountpoint

So replace

sudo mount.cifs //192.168.1.2/ext4tb /mnt/ext4tb

by either

sudo mount /mnt/ext4tb

or

sudo mount //192.168.1.2/ext4tb


Lenovo Thinkpad E480 - Bluetooth not working in Ubuntu 18.04

Ubuntu does not have pre-installed drivers for Realtek Hardware. You were lucky that your wifi worked fine, because I had suffered about almost a month repairing the wifi issues. Now let's solve the realtek problem:

First ensure that you are having Linux kernel > 4.14. To check that, type following on terminal:

uname -msr

If you get something like Linux 4.15, assume everything is fine. And just in case if its not higher than 4.14 (since you are using Ubuntu 18.04, by default the Linux kernel which comes in package is 4.15, so this is for the ones who are still at Ubuntu 16.04), Connect to Ethernet and type following commands:

sudo -s

sudo apt-get dist-upgrade

sudo apt-get upgrade

sudo apt-get update

reboot

This will take time, but have patience. By now you should have linux kernel > 4.14. Now comes the real driver installation part.

Ensure you have installed git. If not type the following command:

sudo apt-get install git

git clone https://github.com/tomaspinho/rtl8821ce.git

cd rtl8821ce/

sudo make all

sudo make install

sudo modprobe -a 8821ce

reboot

This should solve your problem.


Sometimes commands do not terminate after upgrading to R 4.0 and Ubuntu 20.04

The solution was provided via r-sig-debian mailing list by Dirk Eddelbuettel and Sébastien Villemot.

I don't know if this is necessary, but I first did:

sudo update-alternatives --config libblas.so.3-x86_64-linux-gnu

and select /usr/lib/x86_64-linux-gnu/blas/libblas.so.3 (instead of pthread).

Then (this worked):

sudo apt install  libopenblas-openmp-dev
sudo apt remove libopenblas-pthread-dev libopenblas0-pthread


sudo add-apt-repository ppa:gnome3-team/gnome3
sudo apt-get update && sudo apt-get upgrade

That should do it.


Give KDE Neon a try, it is a distro based on Kubuntu but has the latest KDE software, the current version includes Plasma 5.6.


What Package is '/usr/sbin/apache2' part of?

You can use dpkg command to figure out the package the files belongs to

dpkg -S /path/to/file

For example:

$ dpkg -S /usr/sbin/apache2ctl
apache2.2-common: /usr/sbin/apache2ctl

This file belongs to package apache2.2-common.


download from Android or Windows .deb package to install offline?

It's possible to download .deb files of any of the packages that are in the default Ubuntu repositories from the official Ubuntu Packages Search website. Ubuntu Packages Search supports all currently supported versions of Ubuntu and also supports the 20.04 development release.

The search results for a package also include a list of all the dependencies that are required to install that package. For example there are 40 dependencies listed for the k3b package because it's a KDE package, whereas there are only 15 dependencies for brasero CD/DVD burning application for GNOME, many of which are already installed in Ubuntu by default.

After clicking the  Search  button another page will open.

Click the red hyperlink in the above screenshot.

Click the red architecture link (marked by the black arrow in the above screenshot) to open the download mirrors page, select a nearby mirror, and download the .deb file. Please note that you can only download the .deb files one at a time, but to save time you can choose a similar application that has fewer dependencies, in this case Brasero. Most of the dependencies required to install Brasero are already installed by default in Ubuntu. You can check if the dependency packages are installed by running a command that has the following form:

apt policy first-package next-package ... last-package

...where the italicized package names in the above command are replaced by the package names of the list of dependencies. As usual for apt commands apt policy can take multiple arguments.


Files button on the side opens a new window instead of minimized window?

I think this is a bug. It only happens (at least, for me) when Nautilus is viewing files on a separate drive (like an external drive, or a memory card).

There is a workaround until this is fixed though. All you have to do is simply hover your mouse over the "Files" icon in launcher, and scroll up or down. If you have more than one window open, it will scroll between them. This, I find, is a lot faster than using Alt+Tab.


How to set QMMP to play - not enqueue - with double click?

Set you music default app to "qmmp" not "enqueue to qmmp"


Change menu item shortcut key like I used to be able to

The reason why it doesn't work is https://bugs.launchpad.net/ubuntu/+source/indicator-appmenu/+bug/610234

I remapped my gedit keys by customizing my gtk-3 theme & the gedit "accels" file like so: https://live.gnome.org/action/login/Gedit/KeyboardShortcuts#line-102

Other gnome applications seem to have similar "accel" maps that they read on startup:
~/.config/banshee-1/gtk_accel_map

$ find .config -type f -print0 | xargs -0 grep -l GtkAccelMap
.config/gedit/accels
.config/banshee-1/gtk_accel_map
.config/evince/accels
.config/eog/accels
.config/Empathy/accels.txt

In case you're not using a key combo which already has a default mapping, it wouldn't be necessary to edit ~/.config/gtk-3.0/gtk.css. Just edit the relevant GtkAccelMap file and restart the application.


Is there a way to make your computer automatically lock the screen?

In your System Settings there is a Brightness & Lock icon. This contains what you are looking for:

This is on Gnome3, but should work similar on Unity.


Broadcom wireless driver doesn't work in ubuntu 14.04. My pci id is [14e4:4727] (rev 01)

The answer that I am going to provide solved this issue on my machine. It is based on the discussion on this ubuntuforums page. The pci id of my wireless driver is [14e4:4727] (rev 01). If this is not the same as on your machine, solution suggested may not work. Below I also describe how to find the pci id of your wifi driver.

In the terminal, type:   lspci -nn -d 14e4:
My machine shows the following : Broadcom Corporation BCM4313 802.11bgn Wireless Network Adapter [14e4:4727] (rev 01) . This means that pci id is 14e4:4727, as in the [], along with the revision number, i.e. rec 01.
Go to software center >edit>software sources>Additional drivers tab. Select 'do not use the device' under the Broadcom wireless driver.
Then go to the terminal and remove 'bcmwl-kernel-source' driver with the following commands: sudo apt-get autoremove bcmwl-kernel-source
Then,install b43 drivers with the following command: sudo apt-get install b43-fwcutter firmware-b43-installer
Reboot.

Wireless should be up and running.

CAUTION: performing software updates can cause the wifi driver to malfunction again. You will again have to repeat the above steps. So, try installing only those updates which you are sure, will not mess with the wifi driver.


AWK command executed with out error but not modifying the file

What is wrong

The key issue is that you're using sub() incorrectly. sub() is supposed to substitute based on pattern match (that's the important part!). Proper syntax is:

sub(regular_expression,replacement,substring)

What you're doing is sub($692,"9"), so you're telling it to replace first occurrence of the same thing that you see in field number 692, but that first occurrence may be way way way before in the line.

Here's an example:

$ echo "1253456" | awk 'BEGIN{FS=OFS=""};{if($4==3) sub($6,"@");print}'
12@3456

This literally takes whatever in the 6th field (which is number 5) and removes first occurrence of that thing. Same as what your command was doing.

What should actually be done

To replace a specific field, you don't need sub(), just assign to the field directly.

awk 'BEGIN{FS=OFS=""}; {if($692==6) $690="9";print}' abc.txt >efg.txt

Notice that I also removed $0 from print because calling print itself already assumes $0 by default


What Ubuntu version should I install to old netbook

Have a look at Lubuntu. It uses the LXDE Desktop Environment. You can download it here: http://www.lubuntu.net

Let us know if Lubuntu works with the netbook.


How do I reduce the number of wait seconds grub waits before launching ubuntu 10.10?

Run this in your terminal:

sudo -H gedit /etc/default/grub

This will open up the grub configuration file. Look a line similar to GRUB_TIMEOUT=0 (Here I have set the grub time to 0). Change the number to 2 or whatever time you desire (in seconds).

Save the file and run

sudo update-grub


Unfortunately, it seems to be a known bug at this time.

-- Edit -- The bug is now listed as Fixed.


Your problem is likely a combination of hardware issues and damaged directory structures from not ejecting the disk properly. If Disk Utility is unable to repair any filesystem damage, replacing the disk is the best option. Quit using the disk until you have a replacement. Recover the data you can to the new drive. You may be able to get some additional life out of the old drive with a full erase & reformat which will map out bad blocks, but I would hesitate using it for any critical data storage.


Passwd for unix like systems:

 https://en.wikipedia.org/wiki/Passwd

Httpasswd for apache:

 https://httpd.apache.org/docs/2.4/programs/htpasswd.html


Should i install the fglrx drivers or stick with radeon? [Ubuntu 12.04] [Radeon HD 4850]

The current fglrx release (12.8) doesn't support the Radeon HD 4850 (source).  The version included in 12.04 is an older version that does support your card, but you won't be able to upgrade to 12.10 when it comes around.

My recommendation is to stay with the radeon driver unless you need to run a specific application that won't run under it. (And if you do have an application that won't run under radeon, you might want to file a bug so that the features you need make it in before you need to upgrade).


Can't connect to Wi-Fi on Ubuntu 15.10: Intel corporation PRO/wireless 3945ABG adapter

if your host is a Windows then using a Virtual Machine try the below link

Explained about VM Ware Internet Settings when using Bridged or NAT connections


Ubuntu 16.04.1 has appeared as .rar file. How do I burn it to a disk to use to install Ubuntu?

It's not actually a RAR file, it's just that WinRAR wants to open ISOs.

This happens when both of these two conditions are true:

Windows is configured to Hide extensions for known file types, which is the default.

WinRAR is installed, and configured to open ISO images.

Open WinRAR, and Click Options > Settings > Integration untick the ISO box, as shown above.

Next,

Right-click on the downloaded file, and in the context menu go Open With > Windows Disc Image Burner.

Insert a blank DVD, choose to verify the image after burning, and hit burn.

Done! :)


Why is a virtual terminal "virtual", and what/why/where is the "real" terminal?

My understanding is that virtual terminals basically serve the same purpose:
  ie. A command line environment for
  various optional command interpreters

This isn't strictly true. Virtual Terminals are merely programs that send keystrokes and receive output (this is called Standard In, Standard Out[ and Standard Error]) to a process in the background. This is a basic input → processing → output system, and is at the heart of your operating system.

A teletype (or teleprinter)

Man working at a Computer Terminal

Let's see if I can explain it properly:

In a Unix–like system such as Linux there is the concept of "everything is a file". That means, for example, your DVD Drive is a file (/dev/sdb1), your keyboard is a file (/dev/input/keyboard) and so on.

Another set of those magical files are the TTYs, where TTY stands for Teletype. A Typewriter that sends keystrokes to a computer, which in turn sends letters back to the Type Ball. This would have represented a physical device, a remote typewriter, in the same way as /dev/lp0 may represent your printer.

 A hardware terminal, the VT100

The Teletype workstations would have been called "Consoles" or "Terminals", a virtual terminal, as opposed to a real one, thus is any application or machinery that provides the same functionality as this workplace arrangement - which is accessing the computer by sending keystrokes to it and receiving output back from it, printing it to a piece of paper. You can imagine that a Modem works in a very similar way.

Terminals, such as the one pictured above, are cheap and simple computers that emulate the functionality of a teletype. When we say terminal emulator these days, we - in turn - usually mean a program that emulates the functionality of such a machine.

There are still terminal based computer systems in use. They are in fact getting ever more popular. In the past, the reason for terminals was that a computer at every desk was completely ridiculous - where computers filled a room and were immensely expensive. Now, it saves money and makes administration easy.

a "thin client" – the modern equivalent of the VT100

I hope that this is helpful. Please alert my if I've made a mistake.

  Does that mean that
  Control-Alt-F1,F2,etc are also virtual
  terminals, and the only difference
  between them and "gnome-terminal" /
  "konsole" is that they don't have a
  GUI?

Yes, basically. The difference between TTY1-7 and gnome-terminal is that the system provides the ttys, whereas gnome-terminal and konsole are themselves running on a tty (which is running the graphical subsystem). This abstraction can be nested even deeper (e.g. x-forwarding, using the telnet protocol to act as a terminal, ...), after all, the human—computer interface acts just like any other file. And can be piped, abstracted and moved about in the same way.


Accidentally removed kernel and basic drivers (internet touchpad graphics not working)

Simply have a look at the packages you removed
by looking at the dpkg & apt log:

cat /var/log/dpkg.log
cat /var/log/apt/history.log

or

xdg-open /var/log/dpkg.log
xdg-open  /var/log/apt/history.log


VMware Workstation not running after performing an update on Ubuntu 14.04.5

Finally my issue is solved. It was so silly. My VMWare Workstation 12.0.0 is not compatible with the linux kernel version. I downloaded the latest version 12.5.0, installed it and now it is working fine.


How do I use 'chmod' on an NTFS (or FAT32) partition?

Contrary to what most people believe, NTFS is a POSIX-compatible¹ filesystem, and it is possible to use permissions on NTFS.
To enable this, you need a "User Mapping File" or just give the permissions option when mounting (when no compatibility with Windows is needed).  This maps linux users on your system with the user IDs like NTFS/Windows use them internally.
See the ntfs-3g manpage for some info and some examples.
If you need more information, see the ntfs-3g advanced documentation about ownership and permissions.
(Note that this does not work on FAT filesystems.)
¹ Yes, it can also store filenames that are valid in linux/unix but not under Windows, supports symlinks & hardlinks, etc.


Have you tried to check the settings of the monitor. Problem like these can be caused by suspended mode is active or Sleep mode.
Check your monitor settings from the monitor itself before going into the computer settings. Because this situation has happened to me before.


Ubuntu can not display photos from smart phone

As given on the Wikipedia page for the MTP protocol

  The main purpose of this protocol is to allow only the transfer of media files and associated metadata to and from portable devices, one transfer function, in or out, at a time. It does not support operations such as open, edit and modify. A workaround is to copy to the hosting system for these operations and then copy back.

To open or work on the files from your phone, you have to copy the respective files to your computer and then open them.

I can confirm this from my own experience. Furthermore, make sure the device is not on lock screen when plugged in. The built in security will not let the device mount.


apt-get update get GPG error running Ubuntu 14.04 in VMWare

It's about proxy problem. I altered the proxy links.
Firstly backup the proxy list:

sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup

Then open sources.list with gedit or other editor:

sudo gedit /etc/apt/sources.list

Choose the approxiate list for u, I'm in China, this works well:

deb http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse

ps: delete the original list

Finally, run

sudo apt-get upadate


I was able to get it up and running by repeating the initial process (either the app from fan club or the instructions on the page above):

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

I'm not sure which of the three was the one that "did" it, but after they were installed I was able to successfully go through the process.


Dell Upgrade to 13.04 & 13.10 No wifi, graphic card driver and bluetooth Problem?

Wifi/Graphic Driver Fix

In the end i found the problem was fixed by seeing the post
Dell Inspiron 1525, Upgraded to 12.04 and have lost Wireless Internet Connection

I used the commands:

sudo apt-get remove bcmwl-kernel-source
sudo apt-get install bcmwl-kernel-source

Or use purge instead of remove to wipe it, then re-install.

This worked to re-install the wifi drivers now my wifi is working.

I wondered if maybe this would also work for the graphics driver for my ATI/AMD cards.
So I tried to re-install the graphics drivers and this also worked.

The commands for the graphics fix were:

sudo apt-get remove fglrx
sudo apt-get install fglrx

Or use purge instead of remove to wipe it, then re-install.

And a big thanks to fossfreedom For solving the Bluetooth matter.

As you can see, now all seems to be working.


Inaccessible SD Card Reader - Ubuntu 20.04

Disabling secure boot in the Windows 10 BIOS solved this issue for me.


OpenOffice Calc: How can I count the number of different items with data pilot?

Use Ctrl-Shift-Enter when entering it.

Example

=SUM(IF(FREQUENCY(IF(LEN(A1:A10)>0;MATCH(A1:A10;A1:A10;0);""); IF(LEN(A1:A10)>0;MATCH(A1:A10;A1:A10;0);""))>0;1))

where A1:A10 is the range being analyzed.


How to compile a SH file so it can be uploaded to PPA Launchpad

Firstly, you don't compile a .sh file.  What you need to do is create a Debian package for your program to upload to Launchpad PPAs.

The packaging guide details all the steps in creating a package.  You ultimately have to create the package from scratch and follow the guide to make sure you meet all the requirements.  There may be simpler how-tos for everything in this question on Ask Ubuntu, it has my two (VERY BASIC) how-tos, which will walk you through creation of the package, but it does violate a lot of the packaging requirements, including manpages, etc.

However.  As someone who has made administration scripts myself, it may be more prudent to just provide users the .sh scripts and run them themselves from wherever they want, rather than install them as if they were an executable, either in a bzr repository or a git repository somewhere.


How to prevent system applications (like the Software Center) from asking for password?

Ubuntu Software Center authorization uses policy kit. When requested for the authentication during the remove action you can expand the "Details" pointer to see the action that is being invoked.
It's org.debian.apt.install-or-remove-packages .
You can change the corresponding policy to not request for authentication:

Edit /usr/share/polkit-1/actions/org.debian.apt.policy, search for org.debian.apt.install-or-remove-packages, then find for the defaults section, replace auth_admin and auth_admin_keep with yes .


Looking for the Ubuntu wallpaper with the satellite and blue sky?

I've got it under /usr/share/backgrounds/edubuntu-stargazer.png, but I have all wallpapers packages from previous Ubuntu's installed. There you go:

Yup, it can be installed with sudo apt install edubuntu-wallpapers.


Here are some simpler approaches to get what you want:

grep with PCREs

wget -q -O - "serverlink" | grep -oP 'flvurl=\K[^;]+(?=&amp;)'

Explanation

In PCREs, the \K means "discard everything matched until here". The -o option to grep means "print only the matched portion of a string". So, grep -oP 'flvurl=\K means: "look for flvurl= and start matching after it." The [^;]+ means "match as many non-; characters as possible.

The foo(?=bar) format is called a positive lookahead. It is not part of the actual matching string. It means _"match foo followed by bar but discard the bar. Putting all this together, the regular expression above will print everything between flvurl= and &amp;.
sed

wget -q -O - "serverlink" | sed -nr 's/.*flvurl=([^;]+)&amp;.*/\1/p'

Explanation

The substitution operator (I use the traditional s/// instead of the s\\\ you used but its the same idea), will substitute everything with the text between flvurl= and &amp;. The parentheses are there to "capture" the matched string, making it available as \1. The -r option enables extended regular expressions which can deal with parentheses without needing to escape (\( and \)) them. That's the reason you were getting the error by the way.

The -n suppresses normal output, no lines will be printed by default. The p at the end of the substitution (s///p) means "print the current line if the substitution was successful".
Perl

Using the same logic as the sed above:

wget -q -O - "serverlink" | perl -ne 's/.*flvurl=([^;]+)&amp;.*/$1/ && print'


Found a solution:

run gconf-editor

Set values:

/apps/metacity/global_keybindings/run_command_1  <Super>L
/apps/metacity/keybinding_commands/command_1 gnome-screensaver-command -l

How do I use the gconf editor?


How do I check if a certain application is running by its file name?

EDIT

Since you've asked how to check if a process is running or not when you know its name , then it's a simple pgrep operation. Alternatively, one could use ps and specify state options for formating

$ ps --no-headers -C firefox -o args,state
/usr/lib/firefox/firefox    R

State code is on the right. From man ps you can know their meaning:

       D    uninterruptible sleep (usually IO)
       R    running or runnable (on run queue)
       S    interruptible sleep (waiting for an event to complete)
       T    stopped, either by a job control signal or because it is
            being traced
       W    paging (not valid since the 2.6.xx kernel)
       X    dead (should never be seen)
       Z    defunct ("zombie") process, terminated but not reaped by
            its parent

Original

Most of the time console apps run with their own name. If it's a script, with a !# line on the top, it will run with an interpreter specified with that line, for instance a bash script:

$ ps -ef | grep batmon
root      2108     1  0 22:22 ?        00:00:00 /bin/bash /home/xieerqi/bin/batmon.sh

However there are scripts that server as wrapper for other applications.For instance gnome-terminal is actually a script which calls gnome-terminal.real

What you always put an app into background , which will tell you a pid of that process

$ bin/batmon.sh &
[1] 3224

You then can use kill PID (for example here kill 3224) to close app directly, or use ps to find its name:

$ ps --no-headers -p 3224 -o %a
/bin/bash bin/batmon.sh

In general, pkill can search for the names given without -f , which stands for full name. You could also search using pgrep appNamePartial


Ubuntu 16.04 broken menus for some apps always displayed

Other suggestions have shown that some configuration in your home folder is causing this error.

Hunt down the file causing the problem

If you want to just get to the file that's causing the problem you will have to use trial and error to hunt it down.

Step 1 - It's probably in your .config folder

Start by renaming your .config folder to .config-bak and reloading Unity with the following command:

$ unity --replace

If this fixed the problem delete the new .config folder that was created and rename the old folder back to .config and reload unity again. Problem should now have returned. Move to step 3.

If this didn't work move to step 2.

Step 2 - It's a dot folder

If it wasn't in the config folder it was likely in a different dot folder. Using file manager with ctrl+h to show hidden files go to home folder. Make a folder called my-conf and move all .files and .folders to it ( except .config ) and reload Unity.

$ unity --replace

If this fixed your problem restore all the dot files and reload Unity. The problem should now have returned. Move to step 3.

If this didn't work, repeat this step but for non hidden files.

Step 3 - Find the bad egg

Using file manager open either your ~/.config folder (Step 1 worked) or your home folder (Step 2 worked) in one window and ~/my-config (create if needed) in another.

Move 10 of the suspect files/folders to ~/my-config and reload Unity. If problem isn't fixed, replace files/folders and repeat for the next 10. Continue repeating until the problem goes away. Once you have narrowed it down to 10 files restore them one at a time, reloading Unity each time until you find the culprit. Once you have found it, hold back that single config file and restore any remaining configs.

Step 4 - Post problem config file to your question

Post path and content of problem config file so the community may better refine this answer into a possible quick fix. Thanks!

Some suggestions

You might be able to speed up your search for the problem configuration by first trying the configs related to compiz, unity, x and the programs you are having the problems with.

Best of luck!

New edit - Solution found by poster after following the approach above:

The problem was the .profile file in the home directory of the userid. the PATH variable had a reference to a symlink in /opt. The content under the symlinked directory had 777 permissions. After changing that to something less permissive, the problem went away.

This is my PATH variable:

PATH="$HOME/bin:$HOME/.local/bin:/opt/sub3dtool:/opt/android/sdk/platform-tools:/opt/android-studio/bin:$PATH"

Then I set the symlinked directory permissions to 755:

gunner@minix:~$ ls -l /opt | grep sub3dtool
lrwxrwxrwx 1 root   root     16 Apr 22 10:47 sub3dtool -> sub3dtool-0.4.2/
drwxr-xr-x 4 root   root   4096 Apr 22 10:47 sub3dtool-0.4.2


Which files formats are considered regular files in Ubuntu?

To understand what is a "regular file" you need to understand that in UNIX-like operating systems, "everything is a file".
Basically, a regular file is any file that is not a special file.
To determine whether or not a file is a regular file or not, you can use the command:
ls -ld filename

If the first character of the output is a -, then it is a regular file.
Here are a few examples:
$ ls -ld /dev/null
crw-rw-rw- 1 root root 1, 3 Nov 24 22:26 /dev/null

$ ls -ld /home/
drwxr-xr-x 1 root root 512 Oct 10 21:56 /home/

$ ls -ld /etc/apt/sources.list
-rw-r--r-- 1 root root 2743 Aug  4 14:42 /etc/apt/sources.list

/dev/null is a character device file.
/home is a directory.
/etc/apt/sources.list is a regular file.


How to fix Eclipse (JEE Juno SR1) black background tool-tips in Ubuntu 12.10?


Ansible install and configure on ubuntu16.04LTS

I don't use Ansible but I found this simple to follow tutorial from Digital Ocean, and these are the steps:

Installation:

sudo apt-add-repository ppa:ansible/ansible
sudo apt-get update
sudo apt-get install ansible

Configuring Ansible Hosts:

Edit sudo nano /etc/ansible/hosts:

Since the tutorial uses dummy hosts these would be added in a real situation:

[group_name]
alias ansible_ssh_host=your_server_ip

The group_name is an organizational tag that lets you refer to any servers listed under it with one word. The alias is just a name to refer to that server. So in our scenario, we are imagining that we have three servers we are going to control with Ansible. These servers are accessible from the Ansible server by typing:

ssh root@your_server_ip

We will assume that our servers' IP addresses are 192.0.2.1, 192.0.2.2, and 192.0.2.3. We will set this up so that we can refer to these individually as host1, host2, and host3, or as a group as servers:

[servers]
host1 ansible_ssh_host=192.0.2.1
host2 ansible_ssh_host=192.0.2.2
host3 ansible_ssh_host=192.0.2.3

With our current settings, if we tried to connect to any of these hosts with Ansible, the command would fail (assuming you are not operating as the root user). This is because your SSH key is embedded for the root user on the remote systems and Ansible will by default try to connect as your current user. A connection attempt will get this error:

host1 | UNREACHABLE! => {
      "changed": false,
      "msg": "Failed to connect to the host via ssh.",
      "unreachable": true
}

On the Ansible server, we're using a user called demo. Ansible will try to connect to each host with ssh demo@server. This will not work if the demo user is not on the remote system. We can create a file that tells all of the servers in the "servers" group to connect using the root user. To do this, we will create a directory in the Ansible configuration structure called group_vars. Within this folder, we can create YAML-formatted files for each group we want to configure:

 sudo mkdir /etc/ansible/group_vars
 sudo nano /etc/ansible/group_vars/servers

Add this in there:

---
ansible_ssh_user: root

If you want to specify configuration details for every server, regardless of group association, you can put those details in a file at /etc/ansible/group_vars/all. Individual hosts can be configured by creating files under a directory at /etc/ansible/host_vars.

Using Simple Ansible Commands:

ansible -m ping all

# Output:
host1 | SUCCESS => {
"changed": false,
"ping": "pong"
}

host3 | SUCCESS => {
"changed": false,
"ping": "pong"
}

host2 | SUCCESS => {
"changed": false,
"ping": "pong"
}

The "all" means all hosts. We could just as easily specify a group:

ansible -m ping servers

We could also specify an individual host:

ansible -m ping host1

We can specify multiple hosts by separating them with colons:

ansible -m ping host1:host2

The "shell" module lets us send a terminal command to the remote host and retrieve the results. For instance, to find out the memory usage on our host1 machine, we could use:

ansible -m shell -a 'free -m' host1

# Result:

host1 | SUCCESS | rc=0 >>
 total       used       free     shared    buffers     cached
 Mem:          3954        227       3726          0         14         93
 -/+ buffers/cache:        119       3834
 Swap:            0          0          0

More information:

https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-ansible-on-ubuntu-16-04


How can I remove the buggy ubuntu software center that replaced snap store, Ubuntu 20.04?

The Software app package is named gnome-software in Ubuntu 20.04. To remove it open the terminal and type:
sudo apt remove --purge gnome-software
sudo apt-mark hold gnome-software

The hold option of apt-mark is used to mark a package as held back, which will block the package from being installed, upgraded or removed.
The Software app in 20.04 does have a few bugs in it. It can use ~300MB RAM when it is open which is not so bad if your computer has more than enough RAM. The other bug is that the Software app shows a notification  to update a package a package that isn't even installed. If you click the Update button to update it, the Software app shows another notification that it can't update the package because it's not installed. I tried to understand why the Software app would show a notification like that. I upgraded my Ubuntu 20.04 from 18.04 and maybe that package was uninstalled by the upgrade. Purge + uninstall may get rid of some of the Software app's cached data too.


How can I create an lxc guest that communicates with the host?

When you run the lxd init command, and follow the questions, it will set up a bridge between the host and the lxc containers.
On my computer:

lxdbr0    Link encap:Ethernet  HWaddr fe:53:ad:4e:69:40
          inet addr:10.20.30.1  Bcast:0.0.0.0  Mask:255.255.255.0

when you start up a container, it will get an ip address via dhcp from the lxc services.
You can find out the ip address with lxc list command:

+-----------+---------+---------------------+------+------------+-----------+
|   NAME    |  STATE  |        IPV4         | IPV6 |    TYPE    | SNAPSHOTS |
+-----------+---------+---------------------+------+------------+-----------+
| ubu16-ssl | RUNNING | 10.20.30.186 (eth0) |      | PERSISTENT | 0         |
+-----------+---------+---------------------+------+------------+-----------+


How to view man pages without the unnecessary linefeeds?

From what you describe I guess you have text files with line breaks after a fixed width, which will look ugly in a window that is to small for this width. Right?
If so you could use

    cat mytextfile | tr "\n" " " > mynewtextfile

to strip away all the newlines. There's not really a way for a program to decide which ones are "necessary" and which aren't.

If you want to keep all double newlines that might mark real paragraphs try something like that:

    cat myfile | tr "\n" "#" | sed s/"#\([^#]\)"/"\1"/g | tr "#" "\n" > mynewfile

...assuming that you do not have any meaningful # in the text (might use another dummy character instead if this is the case).

Another possibility might be to save HTML versions from e.g. http://linuxmanpages.com and edit those in an appropriate program.


grub-efi-amd64-signed package failed to install into/ target on installation from 16.04.4 live usb on Dell Inspiron 3180

How's it going, I have tried every series of ubuntu 18,16,14, budgie, bodhi, lubtuntu. The only one that I could get to work right out of installation was ubuntu 14.04. Every time I upgrade it freezes etc.

Hope this helps.


Can Ubuntu access files within an old operating system on an External Hard Drive?

There will be no problem whatsoever in using the drive in Ubuntu (or any other Linux distribution, for that matter), as it can easily see and mount ext4 filesystems (as used by default in Ubuntu). To use with Windows, however, you would either have to format it to something like FAT or NTFS (therefore loosing the data in it), or use a program to manipulate ext4 partitions inside Windows (like Ext2read). In my opinion, the first method is best, as I still haven't found a decent program to manage ext4 partitions for Windows. Just be sure to backup the relevant data from the drive using a Linux distribution before formatting the drive.


10 Total Commander Alternatives for Linux

It's a three years old the post, but I don't think it is a problem.

A recommended file manager for Linux from Total Commander site is Krusader.


upgrade mendeley to experimental release through command line

The program probably checks with the website if there is a newer version, and finds that there is. However, this newer version is not yet in the Ubuntu repository. Your two options are:

to ignore the message for now, and do sudo apt update && sudo apt upgrade mendeleydesktop from time to time to see if the new version is in the repository yet; or
to download and install the new version from the web site. Look out for any instructions about installing the new version over an older one.


Computer crashed during updates - How do I figure out what packages I lost?

If you install xubuntu-desktop, you will proabably recover most of what you lost.

sudo apt-get install xubuntu-desktop


You should need to unlock Caps (as you type lowercase letters into uppercase, and vise-versa)

About Dual boot, you could do partitioning by GParted (in the terminal type gparted and enter).

About ext4, that is just a file system which is similiar to ext2-3 and is optimized for Linux. It is not supported by Windows, so in Windows it is shown as RAW.


How can I disable Vim "jump to last position" feature in Ubuntu 17.04?

Just found the solution thanks to irc://chat.freenode.net/#vim.

It's in fact an autocmd defined at /usr/share/vim/vim80/defaults.vim that I did not clearly show at :verbose autocmd because it's a bit obscur in the way it's doing it. You can simply comment this block to disable this feature:

" When editing a file, always jump to the last known cursor position.
" Don't do it when the position is invalid or when inside an event handler
" (happens when dropping a file on gvim).
"autocmd BufReadPost *
"  \ if line("'\"") >= 1 && line("'\"") <= line("$") |
"  \   exe "normal! g`\"" |
"  \ endif

There is also a buch of new option enabled by default that you can find here.

Thanks anyway!


previous successful Kubuntu 20.04 LTSB EFI dual boot now boot looping?

Open a terminal and type sudo nano /etc/default/grub/
Then swap out & change these lines;

#GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT_STYLE=menu
GRUB_CMDLINE_LINUX_DEFAULT="rhgb nosplash"

Commit the change in nano (Ctrl+O) then save over same name and exit (Ctrl+X).
Then type sudo update-grub then type sudo shutdown -r now and see what scrolls.