avconv doesn't support 3gp codec, Check the list of supported codes by:

avconv -codecs

you need to install the non free/restricted packages of ffmpeg:

sudo apt-get install libavcodec-extra-53 libavformat-extra-53 libavutil-extra-51

using ffmpeg:

Now to convert:

ffmpeg -y -i movie.mp4 \
       -r 20 -s 352x288 -b 400k -acodec aac -strict experimental \
       -ac 1 -ar 8000 -ab 24k movie.3gp

To run this on all mp4 and mkv files in the current directory:

for file in *mp4 *mkv; do
    ffmpeg -y -i "$file" -r 20 -s 352x288 -b 400k \
   -acodec aac -strict experimental -ac 1 -ar 8000 \
   -ab 24k "${i%.*}".3gp
done

Or if you prefer some GUI apps take a look on winFF.

To install in Ubuntu:

sudo add-apt-repository ppa:paul-climbing/ppa
sudo apt-get update
sudo apt-get install winff


How to install Dell's driver package for Latitude E5450?

You don't need to extract it. What you need is the  Dell Recovery application from Ubuntu Software Center. This, once installed, will associate the houston-15_A10.fish.tar.gz with itself and not archive manager.

Not sure how this association is made as it reverts back to archive manager unexpectedly which can cause confusion.

If the above fails you can always install the .deb files manually via:
How do I install a .deb file via the command line?


You can reset the password by opening the terminal (Ctrl+Alt+T) and using the following command:

passwd

It'll ask for current password(if any) and then need to enter your new password twice.

P.S. Don't worry if you don't see any change in the window while typing your password. Its the Ubuntu style of security!


transmission torrent won't reconnect to data folder

No promises, but the following worked for me:

Right-click the torrent, then select Copy Magnet Link to Clipboard
Right-click the torrent, then select Remove
Click Remove
File -> Open URL
Click Open
Click Open again
Right-click the newly (re)created torrent, then select Verify Local Data

Good luck.


Installed rtl8812au-dkms for DWA-182 driver but driver not detected

For those who will come after me, it turns out that the repository simply doesn't support DWA-182 for some reason. However, not all hope is lost. For kernel version 5.4.0-54-generic and Ubuntu 20.04 the solution is to use a different repository. Executing below;
sudo apt-get install -y dkms git
git clone https://github.com/morrownr/8812au
cd 8812au
sudo ./install-driver.sh

will make a RealTek RTL8812AU Chipset card work. Cheers!


erratic behaviour of trackpoint on thinkpad t420s [UBUNTU 18.04]

Disabling the acceleration profile helps:

xinput --set-prop 'TPPS/2 IBM TrackPoint' 'libinput Accel Profile Enabled' 0, 1

Then you might want to increase your pointer's speed:

xinput --set-prop 'TPPS/2 IBM TrackPoint' 'libinput Accel Speed' 1

Since the next startup the acceleration profile will be enabled again by default you can create a script that includes the above commands and is run automatically after restart.

Hope that helps.


From the logs it seems to me you have managed to update the driver from version 2.3.2-k to 3.2.4.2-NAPI.

I fixed my Intel NUC non working ethernet by:

download the driver from  https://downloadcenter.intel.com/download/15817, currently 3.2.4.2 (as shown in lshw -C above)
make install in the src folder
rmmod e1000e
modprobe e1000e
and to make the new driver survive a reboot update-initramfs -u

This I have to repeat at every kernel update, since kernel updates still (3.13.0-63) contain the old driver version 2.3.2-k, which does not work with my Intel NUC.


A way to restart ubuntu 20.04 touchscreen drivers?

I had the same problem with my Lenovo Yoga S1. I see your laptop uses the same Synaptics touchscreen as my Yoga.
I noticed in journalctl -b:
systemd[1]: Starting Firmware update daemon...
fwupd[2737]: ERROR:esys:src/tss2-esys/esys_context.c:69:Esys_Initialize() Initialize default tcti. ErrorCode (0x000a000a)
fwupd[2737]: 21:37:44:0499 FuEngine failed to add udev device /sys/devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.0/0003:06CB:7244.0003/>
fwupd[2737]: 21:37:44:0675 FuEngine device 602b0a6cc821d155208724f0e22f8d111542b74c [SAMSUNG MZ7TE128HMGR-000L1] does not define a vendo>
systemd[1]: Started Firmware update daemon.

I noticed 06CB:7244 is:
$ lsusb
Bus 001 Device 006: ID 06cb:7244 Synaptics, Inc. Synaptics Touch Digitizer V04

I tried blacklisting plugin synaptics-rmi in /etc/fwupd/daemon.conf:
BlacklistPlugins=synaptics-rmi;test;invalid

But it did not help. In the end I did:
sudo apt remove fwupd

It worked, there must be a better way to fix this by tinkering with fwupd though.


How can I configure which filetypes can be opened by dragging to an application's launcher?

There is no general configuration file for that behavior. The launchers for the programs themselves, define which MIME types they can open, as per the FreeDesktop Desktop Entry Spec.

The reason you can't drag a .deb file to gwoffice for example, is because the program has no idea how to handle it, and if you did drag it to the launcher, it wouldn't work, even if you edited the launcher such that you could successfully drag it there.


Performance problems with 13.04 and virtualbox

I believe there is a package called virtualbox-guest-utils. Install it with sudo apt-get install virtualbox-guest-utils. This should get the virtualbox drivers. NOTE: You need the latest virtualbox to support guests with recent linux kernels.


Not all clients on proprietary hardware claiming to be DLNA compliant are created equal. The problem was with the DLNA browser embedded in the Panasonic DMP-BDT-320. With no updates with BIOS, an alternate player can be used. LINN for the iPAD is good tool to wirelessly push content from the Ubuntu DLNA server onto the DMP-BDT-320 player to play. Very cool.


Ubuntu 16.04.2 on Asus ZenBook Pro UX501VW-DS71T

You could always load ubuntu as a vm with virtualbox. I was having the same issue, with the same model laptop, and loading as a vm worked perfectly.


whether partial upgrade is safe or not depends upon which packages it's holding back.

If it's a app you have installed and is not important for the system to run properly, the partial upgrade is safe.
On the other hand, if it's holding back a package which is essential for the system to work properly, partial upgrade is likely to break your system.

It is better to hold on, have a look at the packages been hold back, and then fix them(either by removing, replacing or installing properly).

Just to add citation for my answer, the Ubuntu wiki on partial upgrades syas,

  If you use Update Manager to upgrade your packages, and it offers to do a Partial Upgrade do not accept it without thoroughly checking what packages it offers to remove, upgrade and install. If you do, you will most likely end up removing packages that shouldn't be removed, and waste time and effort repairing your testing installation and asking for assistance.


Google Earth 64bit won't start on Ubuntu 16.04

I had the same problem:

$ file googleearth-bin
googleearth-bin: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-lsb-x86-64.so.3, for GNU/Linux 2.6.24, BuildID[sha1]=5e3f4d36f570e8ecae816acdb8a733830f2eff61, stripped

The interpreter is /lib64/ld-lsb-x86-64.so.3 but I didn't have that file

$ ls /lib64/
ld-linux-x86-64.so.2

So I simply put there a symlink into my interpreter:

# ln -s /lib64/ld-linux-x86-64.so.2 /lib64/ld-lsb-x86-64.so.3

EDIT: I just noticed that the package lsb-core is needed. Maybe the previous "solution" is not the perfect... Anyway I let it there; maybe it's useful to someone


How to Keep Text Consistent in A Shell Script

Here's my script. It uses tput cup Y-location X-location and continuously  places that info on top of the screen using while loop. You might wanna adjust it for your application but the point is clear. Now give me 3.50$ because this script is copyrighted ;)

#!/bin/sh

clear
while true; do
clear
tput cup 0 0
printf  "===========\n SERG KOLO \n================Copyright 2015\n=================="
sleep 1
tput cup 10 10
echo TEST line one of script
echo "Do you love Ubuntu ? "
read answer
case $answer in

    y) echo " Have a cookie :3  ";;
    n) echo " Go away, Windows lover  ";;
    *) echo  only y or n ;;
esac

sleep 1

df -h

sleep 1

free -h
sleep 1

done


Ubuntu 19.04 Installer Will not Recognize Win 10 for Dual Boot Install

You can install GParted using sudo apt install gparted, then launch it using sudo gparted.
Make sure that your disk is selected, then resize the windows partition to the size that you want. Then move to the unallocated space and press format to ext4 filesystem.
After that, return to the ubuntu installer and do the necessary steps. When you reach the install menu, press custom install and select the partition that you just formatted to ext4. Then wait for the installation process to complete.


I have had a similar problem, it was due to running on the ubuntu 16.04 initial release which did not contain HWE. The latest amgpu-pro version that worked on that one is 17.10.

Upgrading the version solved it and made amdgpu-17.50 work for me.
https://wiki.ubuntu.com/Kernel/LTSEnablementStack here are the instructions on how to do so.

It did in my case however not solve the Firefox tab crashes that appeared since Firefox 58. However temporarily disabling WebGL in Firefox can stop these.


Can Ubuntu be installed in VirtualBox in Ubuntu?

Your question is difficult to understand. Yes, you can install Ubuntu in virtualbox. That runs as a program in your main operating system. That is not the same as dual-boot, where you have two operating system side by side but only run one at a time. That's also perfectly possible with Ubuntu, but that's something entirely different and you don't need VirtualBox for that.

I hope it answered your question. If you edit your question to be easier to understand, I can probably provide a better answer.


Some HD videos on low-end laptop stuttering/lagging

This might be an issue of different codecs giving you different performance.

Not an expert on the matter, so take the considerations below with a grain of salt.

That said, a smaller file or lower bitrate (in theory) does not necessarily have to result in better playback performance, it could even result in worse playback performance.

For example, if we imagine an encoding that saves bandwidth by computing the current frame based on the frame before (e.g. just contains the pixels that actually change), that would be more taxing on the CPU compared to one that simply has the full data for every frame.

An additional catch would be that the player would not be able to simply skip a frame (something the viewer might not even notice) in a situation where we hit a CPU bottleneck, since it needs that frame in order to compute the next frame.


How to upgrade Mate 1.6 to 1.8 in Ubuntu 12.04

Did you follow the way provided here? If so, try to re-enter the following into terminal. Especially the sudo apt-get update thing.

sudo apt-get update
sudo apt-get --yes --quiet --allow-unauthenticated install mate-archive-keyring
sudo apt-get update
# this installs base packages
sudo apt-get install mate-core
# this installs more packages
sudo apt-get install mate-desktop-environment

Then if the package for 12.04LTS is available, it should be updated into 1.8.

Please specify more info on your question (about how did you install the MATE).


No internet connection on Ubuntu Server 12.04 LTS

Setting aside the that this is a VM and if hypervisor is setup correctly to forward packets from this VM.

Please uncomment #auto eth0 <-- this is a comment and issue a network service restart:
sudo service network restart

This tells the system to bring the interface up automatically at boot.

Else you can issue the command

sudo ifconfig eth0 up at each boot.


From the virtual console, try to purge all the nvidia packages and xorg.conf file,

sudo apt-get purge nvidia*
sudo rm /etc/X11/xorg.conf
sudo service lightdm restart

Because the error screen clearly says using the config file : /etc/X11/xorg.conf.Config file was automatically created after installing nvidia drivers.Values in that file maybe inproper.So removing that file allows you to get back the GUI login prompt.


How to define default gateway with multiple DHCP interfaces?

When you are setting up the subnet, use the routers option in dhcpd.conf

option routers 239.252.197.1;

From http://linux.die.net/man/8/dhcpd

subnet 239.252.197.0 netmask 255.255.255.0 {
  range 239.252.197.10 239.252.197.250;
  default-lease-time 600 max-lease-time 7200;
  option subnet-mask 255.255.255.0;
  option broadcast-address 239.252.197.255;
  option routers 239.252.197.1;
  option domain-name-servers 239.252.197.2, 239.252.197.3;
  option domain-name "isc.org";
}

If you don't have access to the DHCP server, you might be able to do this in the /etc/network/interfaces file. This is similar to how it would be set up statically, only using DHCP and specifying the gateway.

iface eth0 inet dhcp
    gateway 10.21.8.1


You can reconfigure xOrg. I did this by creating a file in my /usr/share/X11/xorg.conf.d Directory.

I made it using vim:

sudo vim /usr/share/X11/xorg.conf.d/5-monitor.conf

Here is an example of my file. (mine was configured for 4k but I edited it to 1080p so you'd get an idea of what it would look like) if you follow the tutorial below it should help you build your own xorg config file.

Section "Monitor"
   Identifier "Monitor0"
   Modeline "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
EndSection
Section "Device"
   Identifier "Device0"
   Driver "intel"
EndSection
Section "Screen"
   Identifier "Screen0"
   Device "Device0"
   Monitor "Monitor0"
   DefaultDepth 24
   SubSection "Display"
      Depth 24
      Modes "1920x1080"
   EndSubSection
EndSection

For directions on how to do this you can follow this tutorial: https://wiki.gentoo.org/wiki/Xorg/Multiple_monitors


Why do I need lib64 on my 32 bit machine?

The answer is partial and consists of 3 parts

Part 1. Regarding machines with AMD64 processors

What does the author of the tutorial do is:

He uses native libstdc++5_3.3.6-17ubuntu1_amd64.deb library for his machine with AMD64 processor
And additionally ia32-libs_2.7ubuntu6.1_amd64.deb that, as I may suppose, emulates library for IA-32 architecture and is used for AMD64 processors

Why does he make second step is not clear. Any comments are highly appreciated.

Part 2. Regarding machines with intel 32-bit processors (i386/i686)

Most probably in case of intel 32-bit machines and Ubuntu 10.4 installed on it the only one library (libstdc++5_3.3.6-20~lucid1_i386.deb, note at the moment of writing the version is higher) is necessary and it has to be placed in /usr/lib directory

Part 3. Why there is lib64 on 32-bit machine is still not clear, any comments are highly appreciated.


Suspend doesn't work, "gzip stdin: not in gzip format" error, initramfs possible missing firmware

The issue has been solved.

I use a Yubikey to unlock LUKS, and as part of that I had enabled the service yubikey-luks-suspend.service to require the Yubikey when waking from suspend.

After disabling this script the system suspends as it should. I'll keep it disabled for now.

The possibly firmware warnings are still there of course, but the system works so I'll ignore it for now.


How I can deinstall OSS-LINUX audio drivers?

You should execute the command on this way (man page):

dpkg –-purge oss-linux

You miss one dash (-). Or you can use this way:

dpkg –P oss-linux

--purge is other variant of -P


"loop involving service": apt-get install breaks dpkg

Turns out the problem was there was an unrelated script in /etc/init.d that was breaking dpkg. The fix was to remove the offending script. The general case would be to check all of your init.d scripts and make sure they actually run before trying to run apt.


Ubuntu17.10 doesn't recognize VGA display

Not sure what was the issue, but after tons of different combinations (turn cable on/off, trying different cable, different display settings )it started work :)


You need to run apt-get update to make sure that your package lists are up to date prior to installing packages.

In the case of samba, the current version is 2:3.4.7~dfsg-1ubuntu3.7.


I had the exact same problem trying to run Ubuntu 13.10 with a AMD/ATI graphics card. I tried all the tricks that the helpful Ubuntu users had to offer, but none of it helped. Safe graphics mode, no splash, nodemodeset, only login to terminal to remove drivers, but none of it helped.

What gave me the error was that i clicked the "Install 3rd party proprietary drivers" when it was recommended by Ubuntu. I reinstalled Ubuntu and just went with the open source drivers instead, and have no problems now.

If you have "nothing to lose" or just did a fresh install anyway, you could try to do a reinstall as well and go with open source drivers.


Ubuntu migrated VM NIC not up on boot - CloudInit?

Ok, so this turned out ridiculously easy in the end.

I was trialling out a Windows DHCP server on my network and the dhcp-identifier entry is required to use it.....

network:
  version: 2
  ethernets:
    ens160:
      dhcp4: yes
      dhcp-identifier: mac


Read / Write permissions in /opt directory

I changed the owner of the android studio directory from root to my user account and it worked. Here is the command, where $USER will change by itself to your current active user:

sudo chown -R $USER:$USER /opt/android-studio


Hybrid intel nvidia laptop with two 4k monitors

Turns out the cable matters thunderbolt 3 dock will only display one monitor for the hp spectre 360.  Found that gem buried in the knowledge base.


Ubuntu 14.04: How do I disable Realtek RTL8192E/RTL8192SE wifi driver?

your laptop should have a button that disables wifi; its usually on its front or right sides; might be on top near the screen; it also might have a  marked combination on keyboard.. look for an stylized antenna mark

also you can right click you network icon and edit(delete) the problematic wlan connection so it would not autoconnect

considering this article

  https://linuxconfig.org/how-to-blacklist-a-module-on-ubuntu-debian-linux

as root

  lsmod  //lists the modules; search for something realtek related

  modinfo -F depends [module name]  //to see if it has modules that depend on it

  nano /etc/modprobe.d/blacklist.conf

and add > blacklist [module name]  //if it has other modules depending on it it will not be blocked

or add > install usbcore /bin/true  //which will block the module and dependencies

save and exit nano

  update-initramfs -u

  reboot


The error reported by xfburn means that the drive or the
operating system became impatient when trying to write
the first 16 data blocks to the medium.

Hard to say which of the involved components causes this.
Most suspicous is the combination of media and drive.
The standard advise is to first try other media resp.
other media types. If this does not help, you will have
to try a different DVD burner drive.


Getting OpenVPN to work with XFCE on Xubuntu?

I installed 'network-manager-openvpn-gnome' from synaptic and it started working. I hope this works for you as well.

You may want to file a bug report heres how : How do I report a bug?


I have a Lenovo T440s with that wireless card. I cloned and built this https://github.com/lwfinger/rtl8192ee, the directions in the README were very good. It didn't work when I built with the makefile, but using dkms did the trick. Also note that I did not have a 50-blacklist.conf file, I put the entry in blacklist.conf, granted I dont really know the difference, it seemed to work either way. Connection seems to be more reliable now.


Recently installed OS from Windows regretting please help

The reason you could not open the .exe executable is that the utility you were trying to install was made for Windows, not Linux.  If you want to watch videos in a particular format, you almost certainly can, but you must use the correct utilities made for Linux.

As I understand the matter of ActiveX, that's a utility that works only with windows.  However there are EQUIVALENT utilities to allow users of Mac and Ubuntu to view the same media.  I've been using Ubuntu for 9 years and I've never encountered a video I could not open because I didn't have the right viewing software, or at least if I did, downloading the correct viewer took only a few minutes.

I have been to your www.usadisk.com page and found that my only difficulty was trying to watch any media without logging in.  Google translate could only handle so much, and so I gave up.  If you can direct me to a video of the type you are concerned with, which you cannot view currently, and which I can open without logging in, please direct me to it and I will attempt to open it. My guess is we can solve this in much less time than it would take you to reinstall windows.


Problem Internet connection Ubuntu 12.04 Server (trough VirtualBox)

You can use Bridge Mode in VirtualBox settings so that the VM appears to be on the same level as the host machine. This allows it to act on the network as if it were physically connected to it. In the VM, set the network settings to autodetect over DHCP or if that doesn't work, get the default gateway from the host, give it that gateway, an unused IP address on that subnet(try a few that have the same first three numbers but a different last number) and also try giving the DNS servers 8.8.8.8 and 8.8.4.4.


Judging from the comments to the question, you placed the katoolin executable not directly into /usr/bin, but in a subdirectory of it.

When you enter a command, the system searches in a number of directories for a matching executable file. If you for example type foo, the system looks for /bin/foo, /sbin/foo, /usr/bin/foo and so on. The first such file that is found gets executed. Which directories get searched is defined in the environment variable PATH.

But the system does not search in sub directories of the directories listed in PATH. Therefore, if you put the katoolin executable to, say, /usr/bin/katoolin/katoolin instead of /usr/bin/katoolin, it won't be found.

Additionally, the executable must have the correct permissions ( sudo chmod +x /usr/bin/katoolin ) and the correct name. If you type katoolin, for example /usr/bin/katoolin.py won't be found either.


Linux Distributive With Global Menu and UbuntuOne For Netbook

You can try out xubuntu-desktop. There is now a global-menu plugin available for XFCE.
See OMG ! XFCE Global Menu [PPA Ready].


Docker-compose throwing error on any invocation

Turns out the issue was with python, something in the 'cryptography' package was preventing OpenSSL from being used, fixed it with rm -rf ~/.local/lib/python2.7/site-packages/cryptography.


Keyboard stopped working for one user - and one user only

This post solved the mystery: I just enabled the "Slow keys" option by mistake. It is easy to solve:

To to the cog icon at the top right corner, choose "Settings":

Go to "Universal Access":

Go to the "Typing" tab.
"Slow keys" is marked as on:

Toggle it to "off".


Long story short; I was overthinking it. I thought I would need to change the columns in a config file when actually I can just create an alias to handle it for all users.

Created a file in /etc/profile.d called 00-aliases.sh containing:

alias mtr='mtr -o LSR NABWV'

So that when I type MTR it uses the alias with the columns. Seems a viable solution unless someone can offer better.

(Obviously dont forget to set the file as executable).


first please open a terminal (ctrl+alt+t), type uname -i and then press enter to see what architecture you are using.

after that use an other machine, go to https://packages.ubuntu.com/trusty-updates/network-manager and download the according .deb-file at the bottom of the page.

with the file back at the first machine just double-click at the file, and in the window press install.

it may be possible that the network-manager.deb refuses install because of missing dependencies, than i guess you have to do the same for network-manager-gnome or what ever dependencies it needs.

but before messing around with too much dependencies it would be better to connect to your network via terminal and ifconfig and then reinstall the network-manager with sudo apt install network-manager. but keep in mind, you may have to revert the ifconfig-changes and activate the network-manager.


How to add "New Terminal" to right click menu of desktop in Kubuntu?

KDE Mouse/Containment action plugins

( copy of https://forum.kde.org/viewtopic.php?f=83&t=132075#p354748 )

Plasma 4

Tutorial
 - KDE Techbase - Plasma4 ContainmentAction: https://techbase.kde.org/Development/Tutorials/Plasma4/ContainmentAction

KDE Store

Favorites Launcher: https://store.kde.org/p/1081011/
KDE desktop
custom menu:
https://store.kde.org/content/show.php/+kde-desktop-custom-menu?action=content&content=170062

Plasma 5

KDE Store
- Plasma custom desktop menu: https://store.kde.org/p/998904/
--> source: https://github.com/MatMoul/plasma-containmentactions-customdesktopmenu

With the Kubuntu & Plasma 5

Downloading the plasma-containmentactions-customdesktopmenu-master.zip from https://github.com/MatMoul/plasma-containmentactions-customdesktopmenu

Installing build dependencies:

build-essential
cmake
extra-cmake-modules
qtbase5-dev
plasma-framework-dev
kio-dev

Generic commands:

mkdir -p builddir
cd builddir && cmake .. -DCMAKE_INSTALL_PREFIX=$(kf5-config --prefix) -DCMAKE_BUILD_TYPE=Release -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
make
sudo make install

Build example:

Unpacking the plasma-containmentactions-customdesktopmenu-master.zip

At /Downloads/plasma-containmentactions-customdesktopmenu-master/src

$ mkdir -p builddir

$ cd builddir && cmake .. -DCMAKE_INSTALL_PREFIX=$(kf5-config --prefix) -DCMAKE_BUILD_TYPE=Release -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found KF5Plasma: /usr/lib/x86_64-linux-gnu/cmake/KF5Plasma/KF5PlasmaConfig.cmake (found version "5.33.0")
-- Found KF5KIO: /usr/lib/x86_64-linux-gnu/cmake/KF5KIO/KF5KIOConfig.cmake (found version "5.33.0")
-- Found KF5: success (found version "5.33.0") found components:  Plasma KIO
-- Looking for __GLIBC__
-- Looking for __GLIBC__ - found
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- Configuring done
-- Generating done
-- Build files have been written to: /home/tryme/Downloads/plasma-containmentactions-customdesktopmenu-master/src/builddir

$ make
Scanning dependencies of target plasma_containmentactions_customdesktopmenu_automoc
[ 20%] Generating plasma-containmentactions-customdesktopmenu.json
About to parse service type file "plasma-containmentactions.desktop"
Found property definition "X-Plasma-HasConfigurationInterface" with type "bool"
Generated  "/home/tryme/Downloads/plasma-containmentactions-customdesktopmenu-master/src/builddir/plasma-containmentactions-customdesktopmenu.json"

[ 40%] Automatic moc for target plasma_containmentactions_customdesktopmenu
Generating customdesktopmenu.moc
Generating moc_customdesktopmenu.cpp
[ 40%] Built target plasma_containmentactions_customdesktopmenu_automoc
Scanning dependencies of target plasma_containmentactions_customdesktopmenu
[ 60%] Building CXX object CMakeFiles/plasma_containmentactions_customdesktopmenu.dir/customdesktopmenu.cpp.o
[ 80%] Building CXX object CMakeFiles/plasma_containmentactions_customdesktopmenu.dir/plasma_containmentactions_customdesktopmenu_automoc.cpp.o
[100%] Linking CXX shared module plasma_containmentactions_customdesktopmenu.so
[100%] Built target plasma_containmentactions_customdesktopmenu

$ sudo make install
[sudo] password for tryme:
[ 20%] Automatic moc for target plasma_containmentactions_customdesktopmenu
[ 40%] Built target plasma_containmentactions_customdesktopmenu_automoc
[100%] Built target plasma_containmentactions_customdesktopmenu
Install the project...
-- Install configuration: "Release"
-- Installing: /usr/lib/x86_64-linux-gnu/qt5/plugins/plasma_containmentactions_customdesktopmenu.so
-- Installing: /usr/share/kservices5/plasma-containmentactions-customdesktopmenu.desktop

At here:


Couldn't get to even login screen after updating from 16.04 to 17.04

Lets first check your file system for errors.

To check the file system on your Ubuntu partition...

boot to the GRUB menu
choose Advanced Options
choose Recovery mode
choose Root access
at the # prompt, type sudo fsck -f /
repeat the fsck command if there were errors
type reboot

Update #1:

There was extensive file system corruption during the 16.04 to 17.04 upgrade. So I recommend...

boot to a Ubuntu Live 17.04 DVD/USB in Try Ubuntu mode, and backup your important files
double-click the Install Ubuntu icon on the desktop, and reinstall Ubuntu... making sure to uncheck the format box so it'll keep your /home folders.


How to change default action when running a .sh file?

Open Nautilus, then go to Edit -> Preferences. Open Behavior tab and you'll find the options to set the file manager behavior when you open executable text files.


Deleted directory doesn't appear at the bin and doesn't give the free space back

A good program to visualize these types of things is the Disk Usage Analyzer.

Sometimes on drives a .Trash folder is created when these files get "moved" to the bin.

This will at least help you to figure out exactly where the space is going.


Disable the F5 key globally on laptop with Ubuntu 20.04

You will need to run your command when logging in. That appears to have its caveat's, though (see 2nd answer by jimm-cl here). When executed in a terminal, it only takes effect in your current shell. It may be preferred to use the command xmodmap -e 'keycode 71=NoSymbol'

A very simple approach to disable a key in the desktop environment is to set a custom shortcut for F5 in "Keyboard Shortcuts" that does nothing. These shortcuts take precedence over the ones defined in an application.

In the "Keyboard Shortcuts" dialog, Click + at the bottom to add a shortcut:

Name: "Disable F5"
Command:  echo
Shortcut: indicate F5.


apt method to get the latest nvidia driver

The best way of using the most up-to-date version is following this manual . It has every step well explained, and some really good advices before doing it.
I seriously recommend you not to do it, and stick to the drivers in the official repositories, but if you are really experiencing issues, and you think that updating your Nvidia drivers will solve them, this is the best way of doing so.

Good luck!


How to install the latest emscripten on Ubuntu using command line?

The installation instructions suggest: download emsdk-portable.tar.gz

Unzip it, then open a terminal and run:

# Fetch the latest registry of available tools.
./emsdk update

# Download and install the latest SDK tools.
./emsdk install latest

# Make the "latest" SDK "active"
./emsdk activate latest

see: http://kripken.github.io/emscripten-site/docs/getting_started/downloads.html#installation-instructions for more information


When I do an export path using terminal, which file does it save to?

When you export a variable, it is not added to any file anywhere.

The effect of export, as opposed to merely assigning a variable, is that of passing the variable into the environment of all of the shell's child processes. It does not do anything else; it does not modify any of the shell's configuration files. After the shell and all its child processes have exited, the exported variable is gone! When you open a new shell that is not a child of the first shell, that shell will not remember your variable.

In fact, there is no need to export PATH because PATH is already an environment variable. It is already exported; it is automatically going to be passed into the environment of child processes, and when you change it, child processes will inherit the change too.

You can see this using printenv, a command to print environment variables:

$ foo=bar; echo $foo             # set a variable
bar                              # the shell knows it
$ printenv foo                   # but it's not in the environment...
$ export foo; printenv foo       # export the variable and check again
bar                              # there it is!
$ foo=new; printenv foo          # change the variable
new                              # the change is inherited
$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
$ PATH=/usr/bin; printenv PATH   # printenv is in /usr/bin so keep that!
/usr/bin                         # the change was inherited

(Now I need to exit that shell to get my PATH back, or source /etc/environment, because any new shell I start from this shell will inherit that PATH variable I have messed up...)

If you want to set any variable persistently, you need to add it to one of the shell's configuration files yourself.

PATH is the only variable, as far as I know, that is by default set in /etc/environment on Ubuntu. I recommend not editing /etc/environment to set the PATH, or if you do, be careful to make a backup of the original file, because you will have no other way of recovering the original PATH (unless you wrote it down somewhere or have an awesome memory). Also be aware that no expansions will be performed on the contents, so you must use full paths, not $PATH or $GOPATH or ~. If you write such things, they will be literally in the PATH, and if your PATH is literally $PATH:~/workspace/me/go, you will not be able to run any commands (except those built into the shell) without using their full paths.

I also do not recommend setting PATH in .bashrc, because every interactive Bash shell reads .bashrc, and it's quite common to start a new shell from a shell, and so on... If you put something like

PATH="$PATH:$HOME/foo"

in your .bashrc, you will then find that /home/user/foo gets appended to your PATH multiple times; each time a shell starts a shell, the PATH gets extended again. This could eventually make things slow down, especially if you added a lot of paths. Also, only interactive Bash shells read ~/.bashrc, so if you use a shell other than Bash, or run a script, without it being a child process of an interactive Bash shell, it won't have this variable.

Instead I recommend adding a line to ~/.profile to extend your PATH. This file is only read by login shells; typically, it is only read once when you log in to your session, so the PATH will only be appended to once, and all shells will inherit environment variables set there, not only interactive Bash shells. It is usual to add environment variables to this file. So, you can open ~/.profile in a text editor, and add lines saying something like:

GOPATH="$HOME/workspace/me/go"
PATH="$PATH:$GOPATH/bin"

It is a good idea to quote the path as shown, in case any of the directories include special characters (it's also a good idea to create directories that don't have special characters in their names, but, things happen), and if you do quote it, you cannot use ~ as a shortcut for /home/user because double quotes (") suppress tilde expansion, but you can use $HOME instead because parameter expansion is still performed and $HOME will become /home/user.

After editing, save the file and exit, log out and back in, or run source ~/.profile, and your PATH will always include /home/user/workspace/me/go.


Remove an LVM partition on top of windows partition

I think your 500GB ubuntu lvm is taking up your 500GB sda2, with only 536MB of sda1 left, unless you have two drives it looks like you completely overwrote Windows...

Since it doesn't look like you used encryption (it often "zero-fills" everything) you might still be able to recover some files from Windows (probably using a PhotoRec-like data carving program, or less likely with TestDisk) but I really doubt you can just recover the complete Windows install - now is a good time to recover from your backups.


Can certain system-hungry modules be disabled?

Depending on how long the experiment is you could temporarily hold back the other processes with cpulimit. You might have to experiment a bit to find out who the big users are before putting the brakes on them. The good thing is that once you have finished you can stop cpulimit and everything will be back to normal. One thing to mention you will have to do a bit of math as you have a quad core to take into account the %per core not difficult but it will make a difference to the result.

Hope this helps.


Missing Nvidia driver problem causes overheating, but installed driver results in black screen (ubuntu 16.04)

I had better luck with the Proprietary GPU drivers team PPA.

You'll have to add their repository to your system and install the latest mainline driver from there:

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update && sudo apt-get -y upgrade
sudo apt-get install nvidia-390

A reboot should result in a working system.

Erratum:

One note to mention is that your platform runs NVIDIA's Optimus, and based on the Skylake+ line of systems may require specific workarounds to boot up correctly. I'd recommend applying the workaround below before rebooting.

Please refer to this entry on the Bumblebee project issue tracker on Github.

The arguments I'd recommend adding to /etc/default/grub 's kernel command line based on your specific platform are:

acpi_osi=! "acpi_osi=Windows 2009"

Then regenerate the grub configuration by running:

sudo update-grub

Followed by a reboot.

Test and report back on your findings.


can I reinstall Ubuntu 20.10 with all settings, apps and themes?

Clone Ubuntu 20.10 with all Settings, Apps and Themes?
From a Live USB, use Gnome-Disks, (three line icon, upper right), to Create a Disk Image of your perfect drive on a Flash drive, SSD or HDD of adequate size. (All data on the disk will be overwritten).
You can restore this clone image to another disk using Rufus, Etcher, Disks, SDC or mkusb.
For more details see: https://askubuntu.com/a/1300542/43926


I'm on 16.04 LTS. I have added R-Cran repository and I'm able to install purrr package (0.2.4 was installed).


Can I present a powerpoint presentation with sound?

It should* work, since Ubuntu's Open Office (and the new libre office) have multimedia support. If you have problems with the audio you should add the details to your question.

After trying to playback this file I found a number of problems. Firstly the slide transitions were not actually set. Secondly the media file plays if I manually play it in the editor, but not if I start the slide show (not sure why, but it doesn't load).

I would suggest editing the slideshow in OpenOffice and adding buttons that play back the audio on a click, as well as actually adding slide transition properties (otherwise it will just change the slides rapidly).

BTW - You should not be getting this problem, try recreating the slide show as an impress slide show (just reuse the images etc) and add the details of if it works then to your question.
 - *(I say should instead of will because your question doesn't have the detail of whether you have tried it or not)


Am I allowed to create and distribute a deb package to Ubuntu store if I didn't develop the software?

The vast majority of packages in the Ubuntu repositories are packaged by somebody other than the original developers. What matters is the license under which the software is distributed (which will dictate whether you can even package it in the first place). If you're not selling on the store, then the script must be under a license that permits free redistribution (otherwise you have run into trouble just by posting it here).

The webupd8 Java PPA packages, for example, are essentially scripts that download and install Java from the Oracle site.


Where can I find the downloaded videos on my hardisk after I've watched it in a web browser?

Yes the videos you watch on youtube will be placed in /tmp folder..The name of the video will be in the form of alphanumeric you have to rename it to .flv For example if the file name is fff2356xg you have to rename this into fff2356xg.flv

Note:
Not all videos you watch will be stored in /tmp folder..As far as i know youtube will work

You can also save your youtube videos by adding save infront of the URL,For example if the youtube video is http://www.youtube.com/watch?v=0USn7eufXps you want to add save infront of the URL http://www.saveyoutube.com/watch?v=0USn7eufXps so that you dont want to watch the whole video,you can simply download it.

You can also install youtube-dl to download youtube videos,it is a simple command line utility to download youtube videos.

To install youtube-dl:

sudo apt-get install youtube-dl

Example:

Type youtube-dl http://www.youtube.com/watch?v=0USn7eufXps in terminal to download the video


First, I don't know if you've noticed, but 185.133.224.0/24 is not being announced (or at least it's not reaching routeviews). I can see 185.133.225.0/24 and a few more /24s being announced from your AS, so you are definitely doing something wrong here.

Second, how you forward stuff in your internal network has little to do with BGP, by definition! When you run KVM, or any other kind of virtualization, it appears as if it's running on yet another ethernet segment coming off your machine; ip link list should give you all the configured interfaces. Usually the ancillary software that brings up KVM (or xen, or VMWare, or whatever) will also bring up the necessary virtual networks, but it's your responsibility to provide routing and forwarding. Again, BGP has nothing to do with this, it's just local static configuration.


If you run

sudo dhclient -r
sudo dhclient

do you get a new IP address?  This will drop your current lease and attempt to acquire a new one.

You might also be able just to restart networking, rather than your whole machine:

sudo /etc/init.d/networking restart


Are there more Brasero plugins available?

Well pending any answers to the contrary, I'm going to say it: No There aren't any out-of-tree plugins available for Brasero at the moment.

I've just had a 10 minute hunt around lead me to the solid conclusion: Brasero needs better documentation!

Its gnome site is rotting (says the latest version is 2.30) and doesn't contain any useful development guide for making a plugin, let alone where to find others.
The latest help page is for V2.2.
Gnome-Files doesn't have anything for it except the core project.
The mailing list appears to be dying. It's down to ~1 thread per month. You might do well to ask on there as you might catch the eye of a core developer.

If you want newer plugins (I don't think any of them are new, they're just newer versions), grab the latest tar from their FTP and compile it up. I can't guarantee any form of stability. I'd say if it ain't broke, don't try to fix it.


Install Unturned.

Go to the install folder, right click and press open in terminal.

./Unturned.x86_64 -nographics -pei -normal -nosync -pve -players:16 -sv


Installing on a laptop with a broken screen - how can I duplicate the display to an external monitor rather than extending it before installation?

I think what you will want to do is to press your super_key + P

on your keyboard, your super key is likely the windows key.

every time you do it will cycle through

Extended display
Duplicate display
Display attached screen/projector only
Native (laptop/desktop) screen only

As noted in the second answer for this question
How to have duplicate display on ubuntu 14.04 with gnome

let us know if that works for you.


The problem here is that launchpadlib the Python library which bzr uses to talk to launchpad.net, is expecting to use the gnome-keyring API to store the credentials in the keyring, when you log in. It appears you do not have the keyring daemon running on your system, when logged in. You can configure your system so that gnome-keyring-daemon gets run on log-in, and the environment variables it sets are part of your session, or you can follow this handy guide, to configure python-keyring to use a plain file in your home directory, to store the credentials in.


Did you try the command without the slash in the end? ln -s /usr/share/apache2 /var/www/html/apache2


How to get Alt+SysRq work on a Dell Latitude E6530?

The Dell E6420 works as follows

Press/hold both Fn and Alt
Press/hold Home/Sysrq
Release Fn
Press key (tested with T)


Send Ctrl+Alt+F1, Crtl+Alt+F7 into VirtualBox

Right Ctrl+F1 worked for me without going into fullscreen


Unable ping own IP, but another Virtual Machine can ping it

Your vm2's ipv6 source is link-local. It could not be routed.

fe80::   10   link-local   Unroutable autoconfigured addresses used on a LAN, e.g. for DHCPv6

Maybe try to set 2001:1bcd:1111::1 as a default gateway for vm2:

sudo ip -6 route add 2001:1bcd:1111::1 dev eth0

Use ip -6 route show to see what is the default ipv6 route for your network interface

Configure router's interfaces to 2001:: adresses


Also check your /etc/crypttab.  If it points to a UUID rather than a file location in 17.04, this will need to be updated.  My boot times went from minutes to under 15 seconds.  See Ubuntu Desktop 17.04 64-bit with encrypted home, slow boot


Samba shares only work with "force user"

I wonder why you used the specification in the form: valid users = @media-share.  This is to specify group access: all users in the group media-shareare valid users.    In your case, I would have used:
valid users = joe or valid users = joe bob if access is to be granted to both.  write list can also be used.  See the manual for more details.


Cannot install Ubuntu on Acer Aspire M3970

At boot time, try to press F6 and add one, two or these 3 commands: acpi=off noapic noalpic

That is:
acpi=off noapic noalpic, or
acpi=off noalpic, or
acpi=off noapic, or
noapic noalpic, or
acpi=off, or
noapic, or
noalpic


E:The method driver /usr/lib/apt/methods/gpgv could not be found

You have a corrupted line in /etc/apt/sources.list or one of the *.list files under /etc/apt/sources.list.d/.

Try this command to spot it:

grep gpgv: /etc/apt/*.list /etc/apt/sources.list.d/*.list

Remove the line and you'll be fine.

Edit:

Since you somehow lost the /usr/lib/apt/methods/gpgv file, a way to get back that file is by reinstalling apt:

sudo apt-get install --reinstall apt

Now, it will warn you that apt can not be authenticated but just go ahead and install it.


Make Ubuntu 16.04 "live" (read-only with read/write layer)

Use the standard Ubuntu package "overlayroot". In Ubuntu 16.04, this package is automatically installed. You simply need to enable it by editing /etc/overlayroot.conf and adding the following setting:

overlayroot="tmpfs"

Reboot the Ubuntu 16.04 system, and you're done. You may want to add a kernel boot entry to your grub configuration to make it easy to temporarily disable the read-only root filesystem for patches, etc. The way to do this is to add a grub entry that passes a kernel argument as follows:

overlayroot=disabled

See more at: https://spin.atomicobject.com/2015/03/10/protecting-ubuntu-root-filesystem/


This touchpad is not fully supported by the current Ubuntu, and probably upstream, Linux kernels.

There is a reported bug regarding this touchpad.

It will be fixed not before the kernel developers add full support.

As a workaround you can switch the touchpad setting in your BIOS from "Advanced" to "Basic".

You probably won't have all available features, but at least it will work.


As set and unset are shell builtins you need to use the help command to get their detailed help:

$ help unset
unset: unset [-f] [-v] [-n] [name ...]
Unset values and attributes of shell variables and functions.

For each NAME, remove the corresponding variable or function.

Options:
  -f    treat each NAME as a shell function
  -v    treat each NAME as a shell variable
  -n    treat each NAME as a name reference and unset the variable itself
    rather than the variable it references

Without options, unset first tries to unset a variable, and if that fails,
tries to unset a function.

Some variables cannot be unset; also see `readonly'.

Exit Status:
Returns success unless an invalid option is given or a NAME is read-only.


How to quickly respond to Empathy message in Unity (Similar to Gnome-Shell)

Currently there is no way to accomplish this. It may be possible to write an application that replicates the functionality however.


The word "screen" is used in the meaning the X11 system uses, which is not intuitive. Rather than a physical screen, it means the logical abstraction for a single framebuffer. A display can have multiple screens, which can have multiple monitors each. Different monitors can then display different, possibly overlapping portions of the same screen.

So rather than "screen 0" and "screen 1", you want a larger "screen 0", with the monitors displaying different portions. You'd set that up with (e.g.)

xrandr --output DP1 --right-of HDMI1

After that, DP1 should report as

DP1 connected primary 1920x1080+1920+0

You'd use a setup with multiple "screen"s if you have multiple graphics cards, which have separate video memory, because in such a setup, rendering commands need to be distributed over separate GPUs, which has significant complexity, while in your case, it is sufficient to simply generate two different output signals.


Where are the Ubuntu Core Snappy images?

It seems that some automatic cleanup tools got it and deleted old snappy images. Meanwhile, you can use http://cdimage.ubuntu.com/ubuntu-snappy/15.04/stable/latest/ which isn't wiped out :)


Can't get Ubuntu 12.04 LTS Live to load properly on Apple iMac PowerPC

Try using the PowerPC version of Ubuntu.  Intel versions won't work right with PowerPC computers.

Ubuntu 12.04 Desktop for PowerPC
Ubuntu 12.04 Alternate for PowerPC

These are the official links from cdimage.ubuntu.com .

Read the PowerPC support page on the Ubuntu Wiki for more information.


script not working in cron but works from command line

The environment in crontab is not the same as in the user mfg from command line.
Change crontab entry as follows:

10 14 * * *   su - mfg -c '/home/mfg/batch_scripts/batchupi/batchupi.sh'

You can also adjust some environment variables in your crontab file

# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.oCXlYZ/crontab installed on Wed Jan  1 12:11:49 2017)
# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root@localhost


How can I add text and images (for example, a signature) to a PDF?

There is no perfect way to do this yet. The best existing way is to install Xournal from the software center and open PDF files with it. It allows you to annotate them and then export the whole thing as a new PDF.

Since you are basically marking up a new layer on top of the original PDF, you have to line up everything as you type, and manually position all your notes. For a simple document it's pretty easy to do. It's not very practical for longer documents, though.


-x is a file test whereas $(which apt) &> /dev/null is a command.
To use -x you could do
if [ -x /usr/bin/apt ]; then

If you want to search using which, you could do
if [ -x "$(which apt)" ]; then

however you could instead use the exit status of the which command directly:
if which apt &> /dev/null; then ...

Be aware that which is not always definitive - see for example Why not use “which”? What to use then?


System not running newest installed kernel

It is generally necessary to restart the computer before the new kernel is run, because kernels are loaded in memory at the start of the machine booting.


Help: cannot install a gz package on Ubuntu 12.10 64-bit

A gz file is compressed with gzip, so just "un-gzip" a file with gunzip.
For the binary download at realvnc.com, as a regular user:

mkdir -p ~/bin
cd ~/bin
mv ~/Downloads/VNC-Viewer-5.0.3-linux-x86.gz .
gunzip VNC-Viewer-5.0.3-linux-x86.gz
chmod +x VNC-Viewer-5.0.3-linux-x86

Then double-click it from a GUI file manager or start it from the command line:

~/bin/VNC-Viewer-5.0.3-linux-x86

If there was no bin directory to start, then the PATH will get updated when you log out and in again. After this it's just

VNC-Viewer-5.0.3-linux-x86

from any directory. You could rename the file, too, if you like, or make symbolic link:

cd ~/bin
ln -s VNC-Viewer-5.0.3-linux-x86 vncv

Then call it with vncv or whichever name you pick for the symlink.


Error when I start /etc/init.d/my_program

Your program must be executable and be owned by root user/group.

sudo chmod 755 /etc/init.d/gobatch
sudo chown root:root /etc/init.d/gobatch

To start your daemon, do the following:

sudo /etc/init.d/gobatch start


Bizarrely unable to connect to a domain from within server

I suspected this was somehow related to the fact that I was using the 192.168.0.0/16 subnet in my LAN and indeed it turned out to be the case.  To understand what the problem was and eventually solve it, I started by querying the server's routing, which revealed a strange netmask:

# ip route show
default via 192.168.0.1 dev enp5s0 onlink
192.0.0.0/8 dev enp5s0  proto kernel  scope link  src 192.168.0.2

Looking in /etc/network/interfaces revealed the culprit:

iface enp5s0 inet static
address 192.168.0.2
netmask 255.0.0.0
gateway 192.168.0.1

I cannot remember anymore if back when I set-up the server the Ubuntu Server installation prompted me for details about the network or whether it silently made the above assumptions.  I actually believe it is configured out of the box to expect a 10.0.0.0/8 subnet and I must have mistakenly changed it to 192.168.*.* but forgot about the netmask.

In any case, I then corrected the netmask above to 255.255.0.0 and executed systemctl restart networking.  Running ip route show showed the new netmask in effect but also the old one, strangely.  I had to explicitly delete the old route with ip route delete 192.0.0.0/8 dev enp5s0 and then it all worked.

EDIT: the answer to the first part of my question (how to diagnose) was to look at the machine's routing, which, if you're having similar network connectivity problems to mine, might be a good place to look at first.


Why does Upstart need `setgid` when I have `setuid` and the user is a member of the group?

setuid does not set supplementary groups, only primary group. See Upstart bug https://bugs.launchpad.net/upstart/+bug/812870 .

To verify the case, you can check grep Gid /proc/YOURPID/status vs id YOURUSER.


Steam: error while loading shared libraries: libGL.so.1: wrong ELF class: ELFCLASS64

This problem on 64-bits systems is caused by /usr/lib being earlier in the LD_LIBRARY_PATH than /usr/lib32. Steam tries the 64-bit libraries and complains, without looking any further.

It can be fixed however by in ~/Steam/steam.sh but that file seems to be restored to the original version every time steam is ran.

I fixed it by creating a script that does this:

#!/bin/bash
export LD_LIBRARY_PATH=/usr/lib32:$LD_LIBRARY_PATH
steam $*

This prepends /usr/lib32 to the library path, then starts steam (with the script's original arguments).
Now /usr/lib32 is found in the path before /usr/lib, and steam will successfully use the 32-bit libraries.

You may also want to add the line

export LD_LIBRARY_PATH=/usr/lib32:$LD_LIBRARY_PATH

to /usr/bin/steam, it will have the same effect, as long as you add it before the very last line. You'll need to sudo to edit /usr/lib/steam.

This has the added bonus that it's a better fix, since everything that starts steam (the application menu entry, file type associations, URI associations) will work correctly.
The disadvantage is that /usr/bin/steam is likely to be overwritten when steam is updated.

I use the latter method, while keeping the script as a backup. That way, if /usr/bin/steam gets overwritten, I can simply copy paste the line again from the script to fix it.


Going through minimized windows in Ubuntu dock

The Ubuntu dock is based upon the Dash-to-Dock extension and uses the same dconf preference schemas/keys.

The key you are looking to change is called scroll-action and has three options:

do-nothing - No action when scrolling on an application icon
cycle-windows - Cycle between open windows of this application
switch-workspace - Moves the application between workspaces (default)

You can change this preference by running this command at a terminal:

gsettings set org.gnome.shell.extensions.dash-to-dock scroll-action 'OPTION'

In your case, you should run:

gsettings set org.gnome.shell.extensions.dash-to-dock scroll-action 'cycle-windows'


Ubuntu 16.04 get stuck after Python 3 removal

Solved.
Maybe partially, with this procedure: once the OS is loaded, I typed Ctrl+Alt+F1, this opening a prompt that asked me for my notebook credential. Then it gave me access to a shell.
The command sudo apt install --reinstall ubuntu-desktop did what it could not do during the recovery mode, due to the absence of connectivity. Hope this helps.


When to use pkgsel/include over a preseed/late_command apt-install?

When installing the system using a preseed file, one of the steps is to define where are the installation components located (such as main, universe..). This could be a CD, NFS server, FTP or WEB servers, either official or non official. This can be done only once.

When including packages you need to make sure that all of them exist in the selected repository, the repo holds any dependencies (if needed) and are supported by your version. Your automated installation may fail or halt if one of the packages failed to install from any reason.

Any late_command is executed when your system installation finished and you have a proper working OS.
This allows you to execute regular commands as if you are connected to the machine. It also does not unmount your installation media if you still need it.

An example for a useful apt-get related late command is to edit the /etc/apt/sources.list file with other repos, preform apt update and then use apt-get on packages you did not have while installing the OS.


Ctrl-Alt-T stopped working - Ubuntu 14.04

I have also faced that type of problem earlier and initially used to restart.

But now any type of such problem, then by using following command:

kill -9 -1

This will kill processes and return to login screen, then after login all works well & successfully.


Do kernel downgrades to fix power regressions in newer kernels?

Instructions for installing different kernels are described here

I would suggest that you deactivate any ATI driver you may have activated/installed first.

Then install the kernels appropriate to your ubuntu architecture - 32 bit or 64bit.

When booting, you'll need to press SHIFT to display your Grub.  You can then select the older kernel to boot with.

Phoronix are reporting that the start of the power regression started with the Maverick kernel (2.6.35) and got considerably worse from there.  However, others have found no regression - some even better battery life.  So its not a consistent picture for everyone.

Assuming you find a kernel stack that works (e.g. Lucid - 2.6.32) then try activating/installing your ATI driver.

Let us know what you find.


Have you tried:

sudo rm /dev/yourfile

Only do this on files created by you. If you are going to delete /dev/null for example, things tend to break.


Setting up GRUB for multiple distributions on different storage devices

You could try adding "GRUB_DISABLE_OS_PROBER=false" to your /etc/default/grub file and then do a "sudo update-grub".

sudo gedit /etc/default/grub

Add "GRUB_DISABLE_OS_PROBER=false" without quotes if it's not there already and then:

sudo update-grub

It should scan for other partitions in other drives and add the entry to your grub.cfg


Ubuntu 12.04 not showing in boot selection after installing from Wubi in Windows 7

So I just decided to uninstall Wubi from D:\ and just download the ISO 32bit and create a bootable USB disk by following the steps from How to create a bootable USB stick in Windows.

I just tested it and worked fine. The only thing I noticed is that my network doesn't work (wired and wireless) I was thinking that probably it's only a live OS that was preloaded and the config are not set yet but it's my theory. I'll just probably try and install the ISO package and test everything from it.


It's probably the libgl1-mesa-dev package.


"Boot up the machine,and after the BIOS screen, hold down the left Shift key." Did indeed NOT log you into the machine. That is correct. You are seeing a menu instead. If not, then don't read any further and try again.

If you do see the menu:
Choose "Advanced options", then choose (recovery) from the menu.
Then you see a lot of text passing upward on the screen. Do nothing.
Then you see a colored menu. Choose "root".

Type:

mount -o remount,rw /
passwd your_username_here

change your password

then type:

reboot


To fix this issue execute the following commands

chown -hR YOUR_USER .gnome2/
chown -hR YOUR_USER .gnome2_private/


This generally happens when using an NTFS-formatted drive and is due to how NTFS/Windows handles file permissions (in short, not how the *nix world does it).

You have to adjust your fstab settings to mount the drive with appropriate permissions. This related question has more details, but the basics of it are that you want to set the uid and gid values to your user and group. This mounts it as your user, instead of as root.


If you go to System Settings -> Keyboard and then open Shortcuts tab you can setup custom shortcuts for performing the change.

You can add new shortcut and use the command setxkbd to switch layout. If you run setxkbd us your keyboard will be set to US layout. You'll have to look up the rest of layout codes.


Unable to install Windows after attempted dual-boot with Ubuntu

There may be a couple options you can go with, but first I would be sure to check the partitions again.

If you boot your computer up using Ubuntu on a live USB, and open GParted what do you see as partitions? Normally on a Windows machine you will see the following:

  /dev/sda -

    /dev/sda1 ntfs xGiB

      /dev/sda2 ntfs xxxGib

These sould be the normal windows partitions. If the partitions were deleted you may see something like:

  /dev/sda -

    /dev/sda1 unallocated xxxGib

If you see the latter then the partitions were deleted and there is no more trace of the previous OS.

I have come across the issue before and since I have installation media I just booted up with Windows 8.1 on a USB drive and reinstalled it. Then if you still want to dual boot with Ubuntu you can shrink the ntfs volume then install ubuntu.

It sounds like your son may have erased the partitions when he was trying to shrink them. It would be hard to tell without a screen shot of the partitions in GParted.

The locked partitions means they are mounted. I would ensure you have a LiveUSB or CD to boot from and follow some of the advice in either of these posts:

Cannot Format Delete Locked Partition from Gparted

How to Unlock Partition in Gparted

I would suggest looking at these two posts to see if you can figure out how to unlock the volumes to be able to boot, and fix your system.


There is a program called Rufus that will burn an ISO to a USB stick using Windows. Here's the home page: https://rufus.akeo.ie/


How to cut off the power supply of the mouse, keyboard and speakers after shut down my computer?

Your board is feeding power to the USB ports, so the fact that the power supply is plugged in, there are only two power states it can be in:

Standby (+5v)
On

Your USB ports run off of a +5V line.  Now, If you don't power off using the switch on the power supply (same as unplugging it), and as long as your USB mouse is plugged in, it will always be powered as long as the power supply is plugged in.

You could plug the power supply into a power strip and power it off that way. But the mouse light being on really won't hurt anything.


How do I configure my touchscreen to scroll?

There is a duplicate question: How to really use multitouch gestures now
And the short answer is

  At the moment (Ubuntu 11.10), this is a missing feature.

But do take a look for additional information.


Why 169.254.0.0 appears by default in the routing table?

From the quoted link:

  If a DHCP client attempts to get an address, but fails to find a DHCP
  server after the timeout and retries period it will randomly assume an
  address from this network. This allows communication with hosts that
  have failed to obtain a DHCP address.

However, your interfaces file requests a static IP address that is likely impossible, so no valid address was given.

192.168.1.1 is likely the address of the router or other access point to which you are attempting to connect. Therefore, the address will not be granted. Moreover, if you expect to connect to the internet, you will need to specify DNS nameservers. May I suggest:

# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 8.8.8.8 192.168.1.1

Of course verify the exact details before you proceed.

Restart the interface:

sudo ifdown eth0 && sudo ifup -v eth0

Check:

ping -c3 www.ubuntu.com


To create a Grub2 menuentry you must add it to the /etc/grub.d/40_custom file.

Add the menuentry below the existing lines in the file.

Open the /etc/grub.d/40_custom file as root with a text editor.

sudo nano /etc/grub.d/40_custom

Add the menuentry.

Save the file.

Update the Grub 2 menu.

sudo update-grub

SystemRescuecd example:

menuentry '[loopback]systemrescuecd-x86-4.5.2' {
    set isofile='/boot/iso/systemrescuecd-x86-4.5.2.iso'
    loopback loop $isofile
    linux (loop)/isolinux/rescue64 isoloop=$isofile
    initrd (loop)/isolinux/initram.igz
}

Ubuntu example:

menuentry '[loopback]ubuntu-14.04.1-desktop-amd64' {
    set isofile='/boot/iso/ubuntu-14.04.1-desktop-amd64.iso'
    loopback loop $isofile
    linux (loop)/casper/vmlinuz.efi boot=casper iso-scan/filename=$isofile locale=en_US.UTF-8
    initrd (loop)/casper/initrd.lz
}

Source


xubuntu lightdm unity-greeter bad looking theme

Obviously, you are missing some packages.

This  should be ubuntu-artwork and if that fails, ubuntu-desktop will throw in the remainder.

However, if you are disappointed by the xubuntu greeter, having a look at the elementary project might help.


How come 11.10 doesn't come with some of the applications from 11.04?

You noticed right. Some applications were removed from the CD installation in order to make room for some other apps.

But concider that you wont need Synaptic in 11.10 for normal use since the Ubuntu Software Center was greatly improved and has nearly all functionality Synaptic has (see here: https://wiki.ubuntu.com/SoftwareCenter/SynapticSoftwareCenterComparison )

New apps include Deja Dup, a powerful and easy-to-use back-up tool which I consider to me more useful for most users then Synaptic.


This is the solution from @pLumo and @Artur Meinild.
The only reasonable solution and the fastest was to reinstall it on the LTS and switch to Canonical Livepatch Service.


Which edit functions are acceptable in grub?

If you can get to grub menu, you can choose to boot in recovery mode. Do it.

Then choose the option "root"

There you can run

mount -o remount,rw /
nano /etc/lightdm/lightdm.conf

and edit this file. Then press Ctrl+O to save and Ctrl+X to exit.

Then run

reboot


Any tutorials for installing windows 10 guest on VirtualBox on ubuntu 15.10 host

From all appearances, the either the ISO file was corrupted during the download from the Windows 10 download site. I tried to install directly from the ~/Download directory and from a DVD I created from the Download directory. Both caused the same error message.

It was strange that I had downloaded the ISO on two different days and both had the same problem.

Fortunately, my wife's computer is still Windows. I used Microsoft's Media Creator (found as a option on the Windows 10 download site) to download and burn the ISO to a DVD. I then used that DVD to create Windows 10 in VirtualBox.

Windows 10 is up and running. Now to test my "favorite Windows only" app.


Ubuntu 18.04 Unable to run indicator-cpufreq

In GNOME, use this GNOME extension to monitor CPU frequency.

Gnome CPU Frequency Monitor and Governor Manager.

This is a lightweight CPU frequency scaling monitor and powerful CPU management tool. The extension is using standard cpufreq kernel modules to collect information and manage governors. It needs root permission to able changing governors.

Features:
⚫ Compatible with many hardware architectures;
⚫ CPU Frequency monitoring;
⚫ CPU Governor management;
⚫ CPU Frequency speed limits;
⚫ CPU Boost supporting;
⚫ CPU Power on/off supporting;
⚫ Saving/Restoring settings...

For more information and how-to see README.md

Extension Homepage
    https://github.com/konkor/cpufreq


How to make the terminal prompt make sound every time i am prompted to write a command?

I have found the answer,
just \[$(COMMAND) to run a command with every terminal prompt.
For me i just put the command in a script and then run it by putting \[$(~/sound2.sh \# \u) at the end of the ps1 variable and before the ending ` of it --> in the .bashrc file
And the script is:

if [ $1 = 1 ]; then
    spd-say "Welcome $2" &
else
    mplayer /home/naruto/Music/sfx_msg-highlight.wv &> /dev/null &
fi

The script takes 2 arguments:

$1 is the Number of commands entered into this shell session.
to know if you just opened the terminal then the terminal will say hello followed by
$2 the current user name
and if you entered a command every time you get the prompt back it will play a sound file to get my attention that the command that i was running was finished.

And here is my ps1 for who loves it:

PS1='${debian_chroot:+($debian_chroot)}\[\033[0;43m\]\[\033[1;34m\]██▓▒░\[\033[1;32m\]\u\[\033[1;30m\]⌘ \[\033[1;32m\]\h:\[\033[1;31m\]\w░▒▓█\[\033[0;31m\]█▓░\[\033[0;32m\]⇒᚜\!:\#᚛\[\033[00m\]\$ \[$(~/sound2.sh \# \u)'

And my terminal looks like:


Installing ubuntu broke my windows install

Given that you should be able to mount (at least in read-only mode) the windows partition, you should be able to grab all the data you need of it, wipe the machine then re-install the OS's its a crude method, but certainly the easiest.

At any rate, have a clean install of windows without any of the pre-installed HP software will run better.


Is there a way to uninstall Netbeans which I have installed using umake?

Use

umake ide netbeans --remove

See umake's help (again, more precisely), and maybe man umake (online) or locally:

$ umake --help | grep -i remove
-r, --remove          Remove specified framework if installed


Wired connection does not work after fixing wireless problem for ASUS U56E and Ubuntu 12.04 LTS

Please delete the file:

sudo rm /etc/modprobe.d/iwlagn.conf

and write a new one:

gksu gedit /etc/modprobe.d/iwlwifi.conf

Add a single line:

options iwlwifi 11n_disable=1

Reboot and let us have your report.


How to configure Ubuntu as an LDAP client?

The contents of this post are based on this guide.  It should work fine in 12.04.

Issue the following command:

sudo apt-get install ldap-utils libpam-ldap libnss-ldap nslcd

Note: During the installation of the above packages a dialog will pop up and ask about some LDAP configuration.  Be sure to enter the correct values for your LDAP configuration.
Edit /etc/nsswitch.conf (via sudo). Append "ldap" to these lines:

#Original file looks like this
passwd: compat
group : compat
shadow: compat

#After appending "ldap" lines look like these
passwd: compat ldap
group : compat ldap
shadow: compat ldap

Comment out the line rootbinddn, I'm not sure why we need to do that.
Edit /etc/pam.d/login (via sudo) and paste:

session required pam_mkhomedir.so skel=/etc/skel umask=0022

Edit /etc/pam.d/lightdm (via sudo) and paste:

session required pam_mkhomedir.so skel=/etc/skel umask=0022

Issue this command:

sudo update-rc.d nslcd enable

You should be able to log in as an LDAP user after a reboot.
If you don't reboot the machine, you must restart nscd with:

/etc/init.d/nscd restart

Likely problems and solutions:

Logging in as an LDAP user takes a very long time (minutes):  It's very likely that nss-lap is having problems finding the user's group.  Make sure that the user is in a group recognized locally, or that the user is in a group defined in LDAP.  Make sure that, if the group is defined in LDAP, that it's a real POSIX group.
Always check the /var/log/auth.log log file.  If you see "unable to contact ldap server", check whether the LDAP server is reachable and the port is open.
Try to ping the LDAP server by name
Try to check whether the LDAP port is open:

LDAP can listen on different ports, but can usually be found on 389 and 636
You can check that a port is open by using telnet:
telnet 389 or telnet 636
If you see any characters on the console then the port is open and the LDAP server should be running.
If you see nothing or get an error message, either the LDAP server is not running or something (such as a firewall) is preventing the connection.


Locate command is returning too many results

The locate command is automatically placing the * wild card after the search string and returning extra undesired results.

That is the default behaviour of locate. See man locate:

If any PATTERN contains no globbing characters, locate  behaves  as  if
the pattern were *PATTERN*.

To match only against the filename, explicitly set a glob in the path component:

locate '*/display-auto-brightness'

Or use a regex and the --basename option for matching an exact filename:

locate --basename --regex '^display-auto-brightness$'

Or, given the results you have shown, you could get away with just asking for paths that contain display-auto-brightness at the end:

locate --regex 'display-auto-brightness$'

I'll leave it you to use this in a script looping over each filename in a directory.


gnome-calendar doesn't sync Google Calendar Ubuntu 20.04

Looks like bug: https://bugs.launchpad.net/ubuntu/+source/gnome-calendar/+bug/1866999

Importance: High
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: gnome-calendar 3.36.0-1
ProcVersionSignature: Ubuntu 5.4.0-14.17-generic 5.4.18
Uname: Linux 5.4.0-14-generic x86_64
ApportVersion: 2.20.11-0ubuntu20
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Wed Mar 11 09:47:25 2020
InstallationDate: Installed on 2018-02-23 (746 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Alpha amd64 (20180222)
SourcePackage: gnome-calendar


Xubuntu18.04: Odys Winbook 13 touchpad not working

Use Ukuu and install kernel 5.0. It includes the necessary fixes for the Winbook 13. Here is how it works.


Windows 8.1 not booting and no partitions found after i installed ubuntu 14.04

Assuming the Boot Repair output you posted is still accurate (you note in a comment that you re-installed Ubuntu, but it's not clear if that was before or after you ran Boot Repair), it seems that the GRUB setup scripts are not detecting Windows. There are several things you can try to fix this:

You should disable the Windows Fast Startup feature. This feature turns a Windows "shutdown" operation into a "suspend-to-disk" operation. The trouble is that the disk is then left in an inconsistent state, which can cause other OSes to fail to read shared partitions, or may mis-read them. This includes the partition where boot loaders are stored. Note that this feature is entirely separate from firmware options that may have similar names.
In Ubuntu, open a Terminal and type sudo update-grub. This will cause it to regenerate the GRUB configuration file. You may need to do this after you disable Fast Startup.
To temporarily boot Windows, you might use the firmware's own boot manager to bypass GRUB. Typically you get to this tool by hitting Esc or a function key early in the boot process. You may have used this tool to get your Ubuntu boot medium to boot.
Another way of temporarily booting Windows is to try disabling Secure Boot and use a CD-R or USB flash drive version of my rEFInd boot manager. If it works, it should detect both Windows and Ubuntu and let you boot either one.
If disabling Fast Startup and re-running update-grub doesn't help, the Boot Repair tool might help. Unfortunately, that's a bit of a gamble; it might do a better job than the standard tools or it might not. Also, it writes its new configuration over the old one, and in some rare circumstances, it will actually make matters worse.
If rEFInd can boot Windows, you can install it to your hard disk by installing the Debian package or PPA. You'll then use rEFInd rather than GRUB to select your boot OS. Note that you need not disable Secure Boot to use rEFInd in this way, unlike the USB and CD-R versions.

You can try these options in any order you like, although at some point, you really must disable Fast Startup in Windows, since it's a trouble-maker.


I am looking for app to remove exif tags

sudo apt-get install jhead

To use:

jhead -purejpg /path/to/image.jpg

For more information:

man jhead


Where do I give feedback about the Lubuntu website?

I'm not sure if you have to be on the mailing list to send them an email but I found this email here:

lubuntu-qa@lists.launchpad.net

you can also

lubuntu-users@lists.ubuntu.com

You can sign up for the users list here if you would like to receive followups and future posts https://lists.ubuntu.com/mailman/listinfo/lubuntu-users

The proper download link should be this instead:

http://cdimage.ubuntu.com/lubuntu/releases/15.04/release/lubuntu-15.04-desktop-i386.iso.torrent

Also, you can upgrade to 15.04 by running the following commands:

sudo apt-get update
sudo apt-get install update-manager-core
sudo do-release-upgrade -d

source: http://www.cyberciti.biz/faq/howto-upgrade-to-ubuntu-14-04-from-ubuntu-13-10-or-12-04/


DesktopCouch is installed Via the UbuntuOne application within your Ubuntu desktop.

Open UbuntuOne and, if needed sign in. Once there click on services and at the bottom of the page you will see a link to install the adaption.

Once this is installed two check boxes will appear in its place, one for contacts and one for bookmarks from Firefox.

Tick the box and wait a few minutes (UbuntuOne state 10mins)
Once this is done you should see a new address book called CouchDB in the contact section.

Please bear in mind that the next version of Ubuntu Evolution is being replaced with Thunderbird.


Green filter in video with VLC, Mplayer, Gnome media player

For vlc try changing your video output to OpenGL (preferences -> video -> output). You should be able to change it also for GStreamer based apps by running gstreamer-properities in your terminal.


I have posted the same question in launchpad ppa of plank and got the answer from the author itself.
Here is the link to that:
Launchpad Question Link


The password you elect for the Ubuntu system does not encrypt your data.

As others have mentioned, if someone has physical access to your hardware then they will be able to get to all your files - they could remove the hard drive from your machine and copy from it, or they could even boot a Live CD similar to how you would have installed Ubuntu and get to your files that way.

If you want to have a chance of protecting your files on the disk, you must use some kind of encryption. Thankfully, Ubuntu has very good support for LUKS - since 2012, there's even an option for full-disk encryption from within the installer! It makes it very easy to configure encryption. You just have to choose this option when installing:

(Image source: https://www.eff.org/deeplinks/2012/11/privacy-ubuntu-1210-full-disk-encryption)

After doing so, you will need a password to boot the computer. This is different to your login password. If you need to change your disk password, see here.


Automatically update the repositories , when install an application

You could make aliases that you run instead of the real commands, like this:

alias apt-upgrade='sudo apt update && sudo apt upgrade'
alias apt-install='sudo apt update && sudo apt install'

To test, you can simply define the aliases for your current session only  by running the two lines above directly in your terminal. If you are happy with them, make the definitions persistent for your user account by either appending them to the end of your ~/.bashrc file or your ~/.bash_aliases file (which you have to create first in case it doesn't exist yet).

After the aliases are defined one way or the other, you can use them like this:

running apt-upgrade will be equivalent to typing

sudo apt update && sudo apt upgrade

running apt-install SOME PACKAGES will be equivalent to typing

sudo apt update && sudo apt install SOME PACKAGES


First, you have to install a JDK, because you said in your comments:

  There is only one alternative in link group java (providing /usr/bin/java): /usr/lib/jvm/java-8-oracle/jre/bin/java Nothing to configure.

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
sudo apt-get install oracle-java8-set-default

Now you have to configure Netbeans to use this JDK or run Netbeans with

netbeans --jdkhome /usr/lib/jvm/java-8-oracle


I accidentally canceled 16.04 Upgrade halfway through; dpkg status locked

This worked! I'm now the happy user of 16.04.

sudo lsof /var/lib/dpkg/lock
sudo kill -TERM <PID>
sudo dpkg --configure -a


How to install RTL8188EUS driver on ubuntu 18.04

You'll find a known to be working driver on this github:
https://github.com/lwfinger/rtl8188eu

First, undo what you did with provided CD
Then install the driver from github:

# Prepare
sudo apt update
sudo apt-get install -f
sudo apt-get dist-upgrade
sudo apt-get -y install dkms build-essential git

# Go install the driver
mkdir ~/DriverBuild
cd ~/DriverBuild
git clone https://github.com/lwfinger/rtl8188eu.git
sudo dkms add ./rtl8188eu
sudo dkms build 8188eu/1.0
sudo dkms install 8188eu/1.0
reboot

If the network manager says: "Device is not ready"
Make sure you copied the firmware (rtl8188eufw.bin) to /lib/firmware/rtlwifi/


Install 14.04 seems frozen at any questions screen

If you are doing LVM and encrypting the disk it will take a good long while. Especially, if you have a large disk.


How can I merge free space partition with primary ntfs partition using Gparted in Ubuntu 14.04?

I suspect that what you need to do is to shrink the extended partition in order to create more unallocated space outside of it, (perhaps) move the extended partition to the right so that the unallocated space is on the left and next to the Windows partition, then extend the Windows partition into the unallocated space.  Just note that the "left and right" directions will only be correct if the Windows partition is immediately to the left of the extended partition (as I would expect).  If you can post a screenshot of Gparted's view of your disk, I'm sure that people will be able to give very specific advice.


Lubuntu taskbar doesn't update window titles

I found the problem. It seemed clear that the problem was with some of my customizations to the default panel, so I've performed each one, step by step, and I've found that the taskbar stops working properly when I remove the desktop switcher from the panel (I don't use multiple desktops). If I re-add it, everything works fine again.

It makes sense, because desktop switcher is one of the few panel plugins that needs feedback from the desktop, in order to show window miniatures and its placement. It seems that when no desktop switcher is present in a panel, lxpanel stops receiving updates from windows, so taskbar plugin (which also needs this updates to update titles) stops working too. Looks like a bug to me, I've filled it.


Wifi driver installation in ubuntu 16.04 LTS

This problem is usually observed when the computer is relatively newer model while the OS is older.
This might not be the best solution but one can try this to by-pass the blockage.
Execute all of the following steps:
sudo apt update
sudo apt upgrade
sudo add-apt-repository ppa:canonical-hwe-team/backport-iwlwifi
sudo apt-get update
sudo apt install backport-iwlwifi-dkms

Download linux-firmware_1.173.18_all.deb and install using DPKG
sudo dpkg -i linux-firmware_1.173.18_all.deb
sudo reboot

After your system boots up again, you can try iwconfig command on the terminal.


It turns out blk_mq was not enabled in the kernel, so it couldn't use any of the multi queue schedulers.

Installing another Kernel fixed the issue.


I'm not sure what the answer to you question is however, it probably isn't a lack of ability to use the sudo command.  I've since instances where root is denied access to a file/folder.  So what's the proof with regard to sudo?  Try to do something routine that only root can do.  Everyone can do "ls" on almost every directory in the system but only root can see what's in the directory /root so, try the command sudo ls -l /root
If that works, your problem isn't ability to use root (ie. sudo).


How to configure a wireshark remote capture?

I usually use tcpdump to do packet captures:

 tcpdump -s0 -w </path/to/save/file>.pcap "<PCAP FILTER>"

where <PCAP_FILTER> is your query, such as host 192.168.86.1 to capture packets to/from 192.168.86.1. All the arguments for this can be found in a search, or look in the man pages obtained with man pcap-filter.

It will capture all of the packet, instead of just the headers with -s0. So don't use this argument for long-running captures, as the file will become large.


Replace file path in all m3u's in directory

You can replace all occurrences of this string in all files using this perl one-liner:

perl -i -pe 's/\.\.\/\.\.\/Classical\/European\//..\/..\/Classical\/Western\//g' /home/gratis/Music/*/*.m3u

Be careful as this command will replace all occurrences of ../../Classical/European/[...] to ../../Classical/Western/[...] in all .m3u files in all subfolders of /home/gratis/Music/ but not /home/gratis/Music/ itself.

If you just want to check the output remove the -i from the command. This way the command does not alter the files.


Error while installing package - Ubuntu 12.04

It seems that the meta information in /var/lib/dpkg/info are scrambled.

For all problematic packages try to reinstall them with: apt-get install --reinstall

e.g.:

 apt-get install --reinstall  libservlet2.5-java libnm-glib-vpn1 \
   network-manager libnm-glib4 activity-log-manager-control-center  libnm-util2 \
   libnspr4

If libnm-util2 continue to makes troubles remove the meta information:

rm /var/lib/dpkg/info/libnspr4{:,.}*


Why does Giggle ignore more than .gitignore?

This sounds like it is a bug in the program. Perhaps GNOME Bug # 575018. I've added you're test case to the report.


Does Ubuntu Server 18.04.2 LTS "track" users in any way?

The answer is no to your question. All the things you list are related to the desktop and are not related to the server edition.

There is one service connected to Canonical on a server. The service responsible for crash reports is apport. You can stop it with ...

sudo service apport stop

or just purge it

sudo apt purge apport

  If so, how do I disable/uninstall those features?

The desktop has a "settings" where you can disable external communication and can set up relations with external provides (google mail and drive, amazon and others). All if them are opt-in.

I don't get your paranoia though.

If you are afraid of governments spying on you there is nothing you can do about that. They do that at the ISP itself.

The information shared with Canonical is not retraceable to you and is used to create user statistics pages. How else do we convince people Ubuntu is the best :)


Editing Icons and Icon Sequence in the Launcher?

If hold the left mouse button down for a couple of seconds on the icon you want to move then you will be able to drag it up or down the launcher.


How to change subtitle user's home directory?

That's the intended behavior. su by default doesn't change working directory. It only switches user. According to su manpage:

For backward compatibility, su defaults to not change the current directory and to only set the environment variables HOME and SHELL (plus USER and LOGNAME if the target user is not root).

su does change user and $HOME but it doesn't cd to that user's $HOME.
For example, I have 2 users, kulfy and kulfy1. BASH is the default shell of the earlier one and sh (which is a symlink to DASH) of the later one.
kulfy@leo:~$ echo $HOME
/home/kulfy
kulfy@leo:~$ sudo su kulfy1
$ echo $USER
kulfy1  # User changed
$ pwd
/home/kulfy # but directory didn't change
$ echo $HOME
/home/kulfy1 # and HOME variable now points to the HOME of user2, i.e., kulfy1

To change the directory as well, you can use --login or simply - with su. From the manpage:

-, -l, --login
        Start the shell as a login shell with an environment similar to a real login:
           o    clears all the environment variables except TERM and variables specified by --whitelist-environment
           o    initializes the environment variables HOME, SHELL, USER, LOGNAME, and PATH
           o    changes to the target user's home directory
           o    sets argv[0] of the shell to '-' in order to make the shell a login shell

kulfy@leo:~$ sudo su --login kulfy1
$ echo $USER
kulfy1
$ pwd
/home/kulfy1  # directory changed automatically
$ echo $HOME
/home/kulfy1


Ubuntu Install fails after GRUB from USB

I had a similar issue. When on grub screen, go to "Install Ubuntu" and press "e". This will open an edit window. Either 3rd or 4th line down (can't remember), delete the words "quiet splash". Then press F10 to boot. This works for me every time I install Ubuntu on a new hard drive/system.

Also, I disable secure boot in the bios.


Try smbtree - a text based smb network browser.

Example:

smbtree -N
WORKGROUP
    \\S160P1
        \\S160P1\C$
        \\S160P1\ADMIN$
        \\S160P1\IPC$
[...]


The lock icon means the partition is in use and therefore you can't modify it. Boot into a live environment to make your changes.


Similar happened to me trying to figure out settings and drivers for Mythtv on 18.04 with Kaveri. If 'sudo amdgpu-pro-uninstall' didn't return errors, and the dpkg --purge didn't work (I also did both). Then my many driver install/uninstall resulted in missing files for the radeon driver fixed for me with

sudo apt-get install --reinstall xserver-xorg-video-radeon

And if that fails, then maybe uncomment Enable=true under debug in /etc/gdm3/custom.conf. Then use Virtual Terminals (I ssh in from my laptop) to switch between multi-user and graphical.target so you can review ~/.local/share/xorg/Xorg.0.conf for more clues. Similar debugging and searching on askubuntu led me to the reinstall above.


Chrome keeps opening text files instead of using Text Editor

You should be able to change the default application for text files by right clicking on said document, select Properties > Open With > Select your desired text editor from the program list > Set as default
Hope this helps!


grub boot error : "symbol 'grub calloc' not found - Ubuntu Server 18.04 LTS

I had the exact same problem but on a VM.
I fixed it using boot-repair-cd.
It's pretty straight forward, you need to create a live CD/DVD/USB with the downloaded ISO file. I followed the recommended fix suggested by the software and it worked, the entire process only took 5 minutes.


awk command while ((getline  0 for constantly updating file contents

The problem is indeed what @Lekensteyn explained. Since your file is constantly growing, your awk will always repeat the lines it has already processed. Unfortunately, using tail -f is not a solution since that will go on for ever and awk will not print anything.

Instead, use the same script as suggested by @Lekensteyn but with > instead of >>:

#!/usr/bin/awk -f
BEGIN {
    FS = ",";
}
$1 == "$GPRMC" {
    converted = $8*1.852;
    print $4, $6 > "data1.txt";
    printf "%.3f \n", converted > "speed.txt";
    print $2 > "gpstime.txt";
}

You then run that script every second to re-create your output files:

#!/bin/sh
echo "Starting GPS info gathering"
while true; do
    ./gpsgetinfo.awk gpsoutput.tr
 done


How to pass a command with variables to at?

Piping to at works just fine. For example, the following works fine:

echo 'date > /tmp/foo' | at now + 1 minute

However, you can simplify the quoting if you use heredocs:

at -m $hour:$minute <<EOF
/home/user/sipcmd -P sip -u 10shi -c swordfish -w 127.0.0.1 -f "msyb.wav" -x "c$extension;vmsyb.wav;ws1;
EOF

Those quotes will go as-is to the command, so decide whether you actually want them.

Lastly, you have tagged your question bash, but your script as shown doesn't have a shebang. Without it, unless you do bash my/script, it will run using sh. Always specify a shebang. Add to the top of the script, as the very first line:

#! /bin/bash


Different results for "groups" vs "groups myusername"?

It's in the man page (man groups):

DESCRIPTION

       Print  group  memberships  for  each  USERNAME  or,  if  no USERNAME is
       specified, for the current process (which  may  differ  if  the  groups
       database has changed).

Group membership is set at process creation time (login time). SInce you were not a member of the plex group when you logged in, groups doesn't list it as part of the current process. groups patrick consults the (updated with plex group membership) groups database.

To use the plex group membership, create a new process by logging out and in, or by executing the bash newgrp plex command.


This is now available in Gnome Network Manager (nm-connection-editor) in the General section.  Give the connection priority for auto-activation a higher value on your preferred network.


Try the command

cat /proc/partitions

It will print a list of physical block devices reported by the kernel like USB memories and attached hard drives. If you can't find your disk there, your disk or secondary controller port is probably broken.

With  the command

 dmesg |more

you might get some more information from the kernel regarding any potential problem.

If it does show up there under /proc/partitions, it sounds like it could be some filesystem that bugs out when you try to mount it. Since it's empty, create a filesystem on it:

sudo mkfs.ext4 /dev/sdX

where X is the hard drive letter. Make sure to pick the CORRECT disk since this command will erase everything on that drive.


How to append command output to multiple files?

You can use tee command .

Command :

man ls | tee -a file1 file2 file3

Result : man ls command's output will be appended into file1 file2 file3

For more info : man tee

Reference : Site


What does it mean if my partition type is HFS/HFS+ but contents are FAT?

You can try with Gparted by creating new 'Partition table' and use one by default ms-dos. It will wipe the partition table and you will need to create new one afterwards which will give you the option to choose format table including NTFS which may be better option for ext drive since its supported by every OS. Cheers!


Problem in expanding unallocated space available before ubuntu partition. Tried Live USB ubuntu but while resizing

It is unclear what you are asking, but it looks like you have partition 6, /dev/nvme0n1p6, with an undersized filesystem.  Use the following command to increase the size of that filesystem, even on a running system:

sudo resize2fs /dev/nvme0n1p6


Keyboard shortcut for open terminal Nautilus in Bionic 18.04

tl;tr You already found the answer it just needs some affection.

So just repeat it, click around and restart nautilus/relog/reboot until it starts working.

I wasn't aware that this is possible but now after reading your question I was intrigued.

So long story short: it's a bug. Its on GitLab and also on BugZilla.

Fortunately, custom scripts still work and you already found the answer for those. However, as you described, following the steps provided did not work - likely another bug.

After fiddling around for half an hour I got it working:

Follow the steps from the linked answer:

create file Terminal in ~/.local/share/nautilus/scripts with content:

#! /bin/bash
gnome-terminal

make it executable chmod +x ~/.local/share/nautilus/scripts/Terminal
add F4 Terminal to ~/.config/nautilus/scripts-accels (or some other key)

nautilus -q or log out and log in again (to be sure)
Open Natilus
Press F4 (nothing happens)
Right click a folder, select Scripts > Terminal -> Go back to Nautilus
Press F4 again - it will work as expected.

Expected result should look like this (just in your default language):


New installation of Windows 10 and Ubuntu from Windows Store error

Your Windows Subsystem for Linux (WSL) is not turned on. To turn on open PowerShell as Administrator and run the following command:

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

Source: https://docs.microsoft.com/en-us/windows/wsl/install-win10


Instead of kills, it is probably dead. Try checking motherboard connections(cpu power main board power) if doesnt work, try another PSU. If not - motherboard. If your mb is dead probably you can get out with a new one and try that one.


How to prevent to change /etc directory by sudo user

No, there is no software for that. And if there was a "sudo" user would be able to revert what that software changed for a user not being able to change anything in  /etc.

If you do not trust your users do not make them a "sudo" user and create regular users for them.

  Ok, Here my plan is to user can kill the process, restart all services, mount, change permission and owner, ifdown/up, vagrant etc.

But that has nothing to do with being able to not change /etc: you can have a regular user with elevated power so (s)he can use specific commands that require "sudo" without being admin on that machine. Example of this:  Giving limited Sudo privilege to a user Setting it up like this means they can not change anything in /etc unless you create a command where they can. But if you believe it is a good idea to have a user be able to do anything except changing files in /etc it is going to be a very long list.

Be careful though: it is easy to add conflicting commands. See the comment from msalters for instance.


Download gparted and see if there are your drives or not?
If yes but not showing then you can try formatting those drives.