Does XFCE allow transitions for panels and/or icons?

Mostly no. To this answered date, Xfce has limited to no transitions for panels and icons. Nothing fancy, besides minimizing active applications window to the panel in Xfce.

Xfce allows delay

Delay is a transition or pseudo-animation in Xfce that I have tried before. This is documented as part of theming Xfce panel in this page of Xfce Docs.

  XfcePanelWindow

  The normal panel window.

  .gtkrc-2.0

style "xfce-panel-window-style"
{
  # Time in miliseconds before the panel will unhide on an enter event
  XfcePanelWindow::popup-delay = 225

  # Time in miliseconds before the panel will hide on a leave event
  XfcePanelWindow::popdown-delay = 350

  # Size of autohide window in pixels
  XfcePanelWindow::autohide-size = 3
}
class "XfcePanelWindow" style "xfce-panel-window-style"

Requirement: Xfce must enable the option to automatically hide the panel. In Xfce 4.12, delay will work for the hide option Always but will not work for Intelligently.

Following the requirement, do these steps:

Create a file at $HOME/.gtkrc-2.0, then copy and paste the provided code (as quoted).
Change the respective values for popup-delay, popdown-delay and autohide-size.
Restart the panel by running xfce4-panel --restart to take effect.

Xfce allows opacity

Opacity is another transition that can be applied to Xfce panel.

Requirement: Xfce must enable compositing for opacity to work. In Settings > Window Manager Tweaks > Compositor, ensure that "Enable display compositing" is checked.

Following the requirement, do these steps:

In Panel Preferences, look under Appearance > Opacity.
Adjust the slider for "Enter:" or "Leave:" to your liking.
Click Close to finish.

The screenshot below shows the panel becomes less opaque when the mouse cursor leaves the panel (left) and becomes fully opaque when the mouse cursor enters the panel.

Besides delay and opacity for Xfce panel, I am not aware of other options to customize transitions and animations in Xfce. To make up for the missing features in Xfce, install plank. Plank is a simple dock, which has both features of hiding animation and icon zoom transition that you want.

Related posts:

XFCE - Autohide Animations on Unix.SE


You should use option 1 as
UEFI offers many useful features like secure boot which can prevent boot-time viruses from loading. Thus it is recommended to install any operating system in UEFI mode.


You may want to set up your system using LVM to get the flexibility of manipulating partitions on the fly.  You can even pick up and move your system partition from one disk to another using LVM.  For normal partition tables, gparted can add new partitions without rebooting, and delete/move/resize existing partitions as long as they are not currently mounted.  With msdos partition tables, if one logical partition is mounted then the whole extended partition is considered mounted so you can't resize it.  This restriction is lifted in 14.04, as well as gaining the ability to grow mounted partitions ( for most filesystem types ).


The PPA you are using is outdated. If you want to use this outdated Oneiric version, use

sudo sed -i s/saucy/oneiric/ /etc/apt/sources.list.d/mefrio-g-plymouthmanager-saucy.list
sudo rename s/saucy/oneiric/ /etc/apt/sources.list.d/mefrio-g-plymouthmanager-saucy.list
sudo apt-get update
sudo apt-get install plymouth-manager

Note that it may be unstable on Saucy.


As someone who experienced this in first hand, I'll try to explain some of the threads you might have encountered with (for Ubuntu 18.04.4 at least).

In short:
Some (but only few) usb3 flash drive models are indeed un-bootable and will not work when connecting to a usb3 port. It is not a computer hardware problem, rather than a flash device specific problem.
There is a small remark about this situation at the Installation/FromUSBStick-old official documentation under the Notes about bootability section.
It may be solved when connecting the problematic device to a usb2 port, or using a usb hub (that has usb2 ports). Using a usb2 extender cable or an SD card also works. Using a usb2 flash drive always works.

My own experience with this:
It is noted (yet not fully documented) that some users like myself were not able to fully boot the ubuntu 18.04 live installer, or the installer froze while loading the OS when using a usb3 flash drive that was connected to a usb3 port. It had something to do with bad device drivers that the installer should contain, and using them to detect flash drives.
Strange as it is, this problem occurred only on specific usb3 flash drives model, and seems to be a manufacturer's specific design type or defect. Here is how I found out:
I create ubuntu flash drives regularly using Rufus for years now and did not encounter such problem  before. All of my machines (servers and workstations) use usb3 ports and never had any problems with my usb3 flash drives.
Our organization received a bulk order of two usb3 models: SanDisk Ultra USB 3.0 Flash Drive 128GB, and SanDisk Cruzer Glide 3.0 USB Flash Drive 64GB, and I happen to need another live flash drive. I used the 128GB drive, and it actually did not work for me.
Thinking something gone wrong when creating the bootable DoK, I tried creating it again, and once again it failed to install. I also had my general use Transcend usb3 flash drive with one of the partitions serving for live booting, so I decided to create it bootable with the same image with the same parameters and it worked!
I did the same with the SanDisk Cruzer glide (the 64GB) and it also worked. Unboxed another SanDisk Ultra 128GB and it failed.
Doing a little research afterwards showed me this is an actual on-going existing problem. Yet even after so many years and OS versions (not just Ubuntu family) the best solution for avoiding such devices is maintaining an online list of such bad models. The article I linked above does the same.
It is still to be noted that such problem is not that common, and overall users should not be afraid of installing Ubuntu via usb flash drives.


cant understand the function of apt-cache remove

The correct command to remove a package is, e.g.

sudo apt-get --purge remove wine1.4

and NOT

sudo apt-cache --purge remove wine1.4

--purge doesn't remove other packages, if the other packages don't depend on this package.

The command sudo apt-cache pkgnames wine prints only known packages and not the installation status:

From man apt-cache,

pkgnames [prefix]
    This command prints the name of each package APT knows.
    The optional argument is a prefix match to filter the name list. The
    output is suitable for use in a shell tab complete function and
    the output is generated extremely quickly. This command is best used with
    the --generate option.

To show the installation status, you could use apt-cache policy:

$ apt-cache policy wine
wine:
  Installed: (none)
  Candidate: 1:1.7.44-0ubuntu1
  Version table:
     1:1.7.44-0ubuntu1 0
        500 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu/ wily/main amd64 Packages
     1:1.6.2-0ubuntu10 0
        500 http://archive.ubuntu.com/ubuntu/ wily/universe amd64 Packages

or dpkg -l

$ dpkg -l | grep wine
rc  wine1.6                                     1:1.6.2-0ubuntu10                        amd64        Microsoft Windows Compatibility Layer (Binary Emulator and Library)
rc  wine1.6-amd64                               1:1.6.2-0ubuntu10                        amd64        Microsoft Windows Compatibility Layer (64-bit support)
rc  wine1.6-i386:i386                           1:1.6.2-0ubuntu10                        i386         Microsoft Windows Compatibility Layer (32-bit support)
ii  wine1.7                                     1:1.7.44-0ubuntu1                        amd64        Microsoft Windows Compatibility Layer (Binary Emulator and Library)
ii  wine1.7-amd64                               1:1.7.44-0ubuntu1                        amd64        Microsoft Windows Compatibility Layer (64-bit support)
ii  wine1.7-i386:i386                           1:1.7.44-0ubuntu1                        i386         Microsoft Windows Compatibility Layer (32-bit support)
ii  winetricks                                  0.0+20141009+svn1208-2ubuntu1            all          Microsoft Windows Compatibility Layer (winetricks)


You are probably reading instructions for setting up GCC on Windows. While Linux does have environment variables, including the PATH variable, it's not needed to add GCC to your PATH since it will be available by default.

Simply install GCC which includes the g++ compiler:

sudo apt install build-essential

This will install GCC and other common tools for building C++ code such as make. If for some reason you want to only install GCC you can do:

sudo apt install gcc

In either case you will see that both gcc and g++ commands are available and can compile a basic hello world like this:

g++ hello.cpp

Where hello.cpp contains something like:

#include <iostream>

int main() {
   std::cout << "Hello" << std::endl;
   return 0;
 }


That server seems to be down for me as well, so changing your settings to use a different one (as I think you have done) would probably fix the issue.
If you haven't already done so, try entering sudo apt-get update after changing the server to "Main server". Does it still try to connect to the same unresponsive server?


I have an extra power icon in my menu bar. Any idea why?

Try sudo apt-get remove indicator-power and restart the session.
I had the same problem and that fixed it.


Sentinella Cannot be installed on ubuntu 14.10 above

From Ubuntu 14.10, Cannonical has removed few KDE packages from the respositories. You can see that the dependency required for sentinella has been removed from here. But yet there is hope while debian is here. There is a package to be downoaded before getting libprocessui4a. Here is a step by step how to.

1) go to 'https://packages.debian.org/wheezy/libprocesscore4abi1'and scroll down to find the package which suits your computer architecture and then choose a mirror and download it.

2) Double-cick the package (libprocesscore4abi1_4.8.4-6_amd64.deb) and install it with software center

3) go to 'https://packages.debian.org/wheezy/libs/libprocessui4a' and scroll down to find the package which suits your computer architecture and then choose a mirror and download it.

4)Double-click the package (libprocessui4a_4.8.4-6_amd64.deb) and install it with software centre

5)Now you can install Sentinella either from software centre or by typingsudo apt-get install sentinella in the terminal


Cannot get web-apps working in Ubuntu 12.10

I installed chromium and unity-chromium-extension and there it started working (you may want to remove some exceptions too: https://askubuntu.com/a/223331/16234). I cannot get it to work with Firefox after trying. However, I tried to disable webapps some time ago so maybe I was to brutal about it.


I solved this issue with installing the LILO boot and followed its instructions, but booting time are long. Kernel 4.4.0-62-generic is now running in my personal computer. I guess this is a temporary fix for me, all is well, thank you.


Where Can One Find Guidance for Managing a Firewall?

Here's what I do...

I use gufw to manage my firewall. It's a GUI for ufw.

sudo apt-get update
sudo apt-get install gufw

If I have a program that doesn't work, and I suspect it's a port issue, I turn off the firewall in gufw. If the program now works, then I know there's a port (on the computer) that needs to be opened. Remember that there are also ports on your router that may need to be opened, or forwarded to a specific host on your internal network.

Then I turn the firewall back on via gufw, and then I switch to the Report window, and I watch it while I run the application in question, and the Report window will tell you which port/protocol are blocked in real time.

Then I Google the "application name", and "ports to open", to see if there are other ports besides the ones that I observed, that also need to be opened.

Then I switch to the Rules window and try to create a rule that really provides only a narrow window for things to get through, and by that I mean, I specific only 1 of {TCP|UDP|ALL), a limited range of ports, and specific IP addresses of the source/target. I give the new rule a name that allows me to review it later and remember why the rule exists.


What is "Change Profile" in the gnome-terminal, and why is it disabled?

The Profile is just a presets of how your terminal session should behave. You can create a profile for let us say, when working at night by adding some different colors on terminals output, you can use different fonts if you want so etc.


Using a package from another distribution

Yes, if you want more up to date software, of course you should upgrade.  You might try downloading the package from a newer release from packages.launchpad.net and installing it with sudo dpkg -i whatever.deb.  It sometimes works, but is not supported, and you probably will run into dependency issues.


Hello!Need help asap with Ubuntu 18.10 and iPhone 8 Plus

This really is trivial to find out by using that Internet thingy.  For example, addictivetips  suggests installing iFuse on Ubuntu.   Or, beebom has instructions on how to use OwnCloud and XAMPP.


Setup Airtel PRi Using DGm Card in Ubuntu OS

It was an error from AIRTEL team, they were passing wrong parameter over their network - now it got resolved my network team of Airtel - thanks for your time.

The problem was related to network parameters.
We passed 10 digit telephone number and it worked.
Asterisk was configured locally by Airtel team.
Its better to talk to local network provider to resolve such issues because they have complete idea of what param need to pass locally server.


How can a current version of Linphone be installed?

To compile from source you need to install first the following packages as dependencies (be carefull to select the whole box and paste it into terminal):

sudo apt-get install git build-essential automake autoconf libtool   \
intltool libgtk2.0-dev libspeexdsp-dev libavcodec-dev libswscale-dev \
libx11-dev libxv-dev libgl1-mesa-dev libreadline-dev libgsm1-dev     \
libtheora-dev libsqlite3-dev libupnp-dev libsrtp-dev open-vm-tools   \
open-vm-tools-dev cmak* libmbedtls-dev libmbedtls-doc libmbedtls10   \
libcunit1 libcunit1-dev libantlr3c-dev libantlr3-runtime-java antlr3 \
libortp-dev libortp9 libmediastreamer-base3 libmediastreamer-dev     \
extra-cmake-modules yasm

For Ubuntu 18.04 you need the following packages as well:

python-pystache libv4l-dev libpulse-dev libglew-dev doxygen libbsd-dev \
qt5-default qttools5-dev qttools5-dev-tools libqt5svg5-dev \
libqt5texttospeech5-dev qtdeclarative5-dev qtdeclarative5-dev-tools \
qtquickcontrols2-5-dev qml-module-qtquick-controls qml-module-qtquick-controls2 \
qml-module-qtquick-dialogs  qml-module-qtqml-models2 qml-module-qtquick-templates2 \
qml-module-qt-labs-folderlistmodel qml-module-qt-labs-settings \
qml-module-qt-labs-platform

Now you can compile and install by doing the following steps:

git clone https://gitlab.linphone.org/BC/public/linphone-desktop.git
cd linphone-desktop
git submodule sync && git submodule update --init --recursive
./prepare.py
make
sudo make install

Happy building. Please let me know if this worked for you on my system it builds but I don't want to install it.


You can check that by installing cec-utils

sudo apt-get install cec-utils libcec-dev

and start

cec-client -l

This will list all CEC devices on your system.


need help BOOTING UBUNTU from EXTERNAL HDD

Yes this is possible. Just Change the boot sequence to point to External Hard disk. It differs from machine to machine based on your BIOS settings.
Example: see Lifewire


The bad news is that Ubuntu triggered a bug in your BIOS. The good news is that it's easy to make the computer bootable again: all you need to do is shut the power off completely, i.e. disconnect it from wall power and remove the battery. Wait a few seconds, put the battery back, and you should be able to boot.

Figuring out the cause of the bug can be difficult. First, see if that's a one-off thing or if it's repeatable. At the Grub prompt, highlight the “Ubuntu …” line, press e, use the arrow keys to navigate to the linux /vmlinuz … line, delete the words quiet splash at the end of the linux, and press Ctrl+X to boot. If that was a freak event and your computer boots this time, it's not worth investigating further unless the bug occurs again. If the computer hangs, note the last few messages that appeared on-screen: they will be a good clue as to what is breaking. How to proceed from there depends on these messages.


Should I install SELinux to make my Ubuntu Web server more secure?

I think in the case of a web server, SELinux is probably overkill. Talking with the "ubuntu-hardened" folks the focus seems to be on Apparmor. I think this is fine and you can further lock down the Apparmor Apache profile if you want. Assuming your running Apache and SSH. I would run them both in their own chrooted environments.


Viber has released  its official client for Ubuntu/Linux. To install it, open your terminal with CTRL+ALT+T and type:

wget https://download.cdn.viber.com/cdn/desktop/Linux/Viber.zip

Then unzip it and cd to that viber directory. Then do as:

unzip Viber.zip
cd Viber
~/Viber/Viber.sh

That will install Viber in your Ubuntu.

How to install in .DEB way // Currently only 64-bit available

Open your terminal and type:

wget -O viber.deb https://download.cdn.viber.com/cdn/desktop/Linux/viber.deb
sudo dpkg -i viber.deb

That's it. You can access Viber in your Ubuntu.

Update : I came to know that some of the users are getting

home/$USERNAME/Viber/Viber: 1: /home/$USERNAME/Viber/Viber: �: not found
/home/$USERNAME/Viber/Viber: 1: /home/$USERNAME/Viber/Viber: ELF: not found
/home/$USERNAME/Viber/Viber: 1: /home/$USERNAME/Viber/Viber: Syntax error: word unexpected (expecting ")")

so that Issue can be fixed by "♦: command not found" in tty after login post.


Installing multiple packages at the same time

You can do this, why not!?  You can run the following single command to install package-x and package-y:

sudo apt-get install package-x package-y

Note:

It has been mentioned that you can add the -y flag to apt-get to answer Yes to all the prompts.  This usually only saves you from having to say Yes once, anyways.  It's nice to know about the -y flag, but be careful, because it can also automatically remove things that you may not want removed.  Typically, I omit the -y flag and manually review all Added or Removed packages to prevent myself from making mistakes that could have horrible affects on my computer.  However, apt-get upgrade -y seems to be a good option and less volatile.

sudo apt-get upgrade package-x package-y -y


Valgrind is installable from repository(tested on 12.04 running kernel 3.2.x).  sudo apt-get install valgrind.  Also available in 11.10 according to this.

Just an additional note, it's not a debugger.  It's a memory fault detector.


How to resolve broken dependencies of gnome-shell-extensions-user-theme package?

Solved trouble, but after full reinstall through backup with new precise beta 2.
To be correct need mention of two repositories:
ppa:gnome3-team/gnome3 and ppa:ricotz/testing

WARNING thats can be fatal testing on 11.10 and make system unstable on both 12.04 betas.

Though webupd8 also have this package but I was spotted by unsuccessful experience with full loosing of shell view, with just tty available.

It is impossible to negate a benefit of webupd8, just some remembering thats can be useful to care about dependencies :)


I get this error even after installing pip. 37 Unable to find pip2.7; cannot continue(devstack installation)

Try the following steps,

$ cd devstack
$ ./unstack.sh
$ ./clean.sh
$ cd ..
$ rm -rf devstack
$ sudo rm -rf /opt/stack

To clear python related files... try below commands,

$ cd /usr/local
$ sudo rm -rf lib/python2.7/dist-packages/* site_ruby/* bin/*

And then reboot your system

$ sudo reboot

All the best!!!
Credits goes to Mark. :)
Original Post


Can't boot Windows 7 after installling 12.04 on HP 6735s laptop

You've installed grub2 into the MBR of /dev/sda1 - the Windows boot partition according to the first bootinfo summary.  It's not necessary to do this, and I'm not too sure what it will do to Windows.  I'm also not sure how to repair it - you might try one of the Windows support sites and see what they say.

If you resized the Windows boot partition during the install it's a very good idea to run chkdsk and defrag on the NTFS partition before you proceed.  This ensures that the resize operation is done quickly and with the least chance of corrupting the Windows install.

At this point you should back up all the data on the Windows partition because if it's not possible to repair it, you will need to re-install.  (and if you resized the partition, it should be backed up anyway - resizing is a risky operation at the best of times).

/dev/sda4 appears to contain the Windows recovery partition.  Under no circumstances modify this partition if you don't have the installation disks.  Consult the system manual on re-installing Windows from this partition.

If you run the Windows installer after installing Ubuntu, it will overwrite the grub bootloader with the Windows MBR (Master Boot Record). What you need to do is boot the LiveCD and chroot into the Ubuntu system, then re-install grub2

From looking at the bootinfo it appears that the Ubuntu / partition is /dev/sda6

For the purposes of these instructions I'm going to write /dev/sdX from now, to prevent new users blindly typing these commands.  You will need to replace /dev/sdX with your Linux partition.

Firstly, boot the LiveCD and in a terminal window mount the Ubuntu root partition:

 sudo mount /dev/sdaX /mnt

Next, export the LiveCD filesystem to the root filesystem on the drive:

 sudo mount ‐‐bind /dev /mnt/dev
 sudo mount ‐‐bind /proc /mnt/proc
 sudo mount ‐‐bind /sys /mnt/sys

Now change the root filesystem to the hard disk:

 sudo chroot /mnt

Now re-install grub2 to /dev/sda

sudo grub-install /dev/sda

At this point you could reboot and it should allow you to boot into Ubuntu, however if Windows was installed after Ubuntu then it won't know about the Windows OS yet.  To fix this run update-grub:

sudo update-grub

and it will find all OS's on your system and add them to the grub menu.  You can now reboot:

sudo reboot


You're likely running into issues with Ubuntu's "Command not found, did you mean [X]?" feature, which I believe is written in Python which would explain the issue you're facing.
Something you can try is changing your terminal's shell to /bin/sh, which shouldn't have the issue (because it doesn't load profiles). From this point you should be able to fix your system and get Python installed again.


Just to followup: I never managed to fix the problem concerning the wallpaper dialog but I found a workaround to change it from the command line with this little script:

#! /bin/bash

path=$(cd $(dirname $1); pwd)/$(basename $1)
gsettings set org.gnome.desktop.background picture-uri file://$path


after chroot: apt-get update (Err and Failed to fetch - BootableFlashFromHarddiskInstall)

Within a chroot, it is likely that resolv.conf is not properly set up (it could be a symlink to a non-existent file, or it could be empty and so on). Therefore a common bit of advice when setting up chroots is to copy the host's resolv.conf:

mv chroot/etc/resolv.conf{,.bak}
cp /etc/resolv.conf chroot/etc/resolv.conf

Then you can restore the original, if it was a proper file.

On many modern systems, resolv.conf is a symlink to a file /run, since it is dynamically managed by resolvconf. On a Debian based system, you can always recreate the link using:

sudo dpkg-reconfigure resolvconf


Is there an easy way to locate various programs that seem to be 'hidden'?

If you press the key with the Windows emblem on it the Ubuntu Unity Dash will come up at the top of the screen (it may take a few seconds). If you type a few characters of the program name the program should appear in the list below. Files with similar names, if any will also appear. Click on the program you want to start.

There are "lenses" at the bottom of the dash that can be used to search for particular categories of items. For example there are lenses to find music and videos. Additional lenses can be installed.


Ubuntu 20.10 doesn't suspend when lid closed and additional monitor is connected

This is normal behaviour even though it is annoying. When you have an external monitor connected, you might want to close the lid and continue working with just the external monitor.
A workaround is suspending manually before closing the lid.


Segmentation fault on reboot Ubuntu 12.04

I found the exact source of the problem. I had installed linux-3.8 kernel (raring). It must have a problem with ESXi 5. I've moved back to the default kernel (3.5), and the issue doesn't seem to appear.


Recommended video creator for YouTube on Ubuntu?

I personally use Openshot. You can install it right from terminal:

sudo apt install openshot

While Openshot can do some more advanced things, you can also import audio add a video track and export your video. For more information regarding how to use openshot, see this guide.


In CUPS GUI config: Error: 'Epson-LP-S5500-2' requires the 'pstolps5500.sh' program but I can which it

The source package from avasys, combined with the instructions on the archlinux page below now allow me to print pages. The archlinux instructions have to be followed using ubuntu equivalents, like apt-get instead of pacman. Using the instructions, I set up an LP-S5000 and the same modification might work for other LP-S models.

I think the essential part comes right after this:
    "Edit the path of pstops in /usr/bin/pstolps5000.sh according to this"

http://www.avasys.jp/lx-bin2/linux/laser/DL2.do has the driver and
https://wiki.archlinux.org/index.php/CUPS_printer-specific_problems tells how to configure the driver when building from source in order to make it work.


How can I see the last time a program was run?

Look at the access time on the program binary (but Ubuntu by default mounts with relatime, so this won't be accurate unless you've previously enabled it)
Look for mentions of the program in ~/.xsession or /var/log/kern.log around that time

Otherwise no.


Try sudo chmod 1777 /dev/shm to fix.

btw, it's the last thing that is said in the error output.


How can I empty log files with a cron job on WSL?

/var/log is at /var/log (at least in the version 16.04.3 LTS that I just installed in my Windows system).

$ ls -l /var/log
total 304
drwxr-xr-x 0 root root    512 Sep 22 18:15 apt
-rw-rw---- 1 root utmp      0 Sep 22 18:15 btmp
drwxr-xr-x 0 root root    512 Jul 19 01:29 dist-upgrade
-rw-r--r-- 1 root root  12794 Sep 22 18:15 dpkg.log
drwxr-xr-x 0 root root    512 Sep 22 18:13 fsck
-rw-rw-r-- 1 root utmp 292292 Jan 14 19:58 lastlog
drwxr-xr-x 0 root root    512 Aug 23 04:06 lxd
drwxr-x--- 0 root adm     512 Aug  1 04:46 unattended-upgrades
-rw-rw-r-- 1 root utmp      0 Sep 22 18:15 wtmp

But you won't be able to redirect your output to a list of files and subdirectories (as I told you in the comments).

You can empty all log files by the following cronjob (for root):

find /var/log -type f -exec truncate -s 0 {} \;


Local system mail and command line mail through gmail

Found a solution that should accomplish this, adding this in case anyone else ever wonders.

I've set up exim as described above, and this works for the system mail via mutt as desired.
In my ip script I now use the sendEmail command from the sendemail package to send an email using my gmail account (sudo apt-get install sendemail). Credit for this goes to the people in this forum: http://ubuntuforums.org/showthread.php?t=961511
Just a quick side-note, there is a bug in 12.04/12.10 with the sendemail program at the moment, but there is a workaround ( https://bugs.launchpad.net/ubuntu/+source/sendemail/+bug/1072299 ), and hopefully a more permanent fix in the package soon.

Now just need to find a secure way to store a password rather than just typing it in the script.


Your mistake is in the update-alternatives command.

It should be

sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.7.0_79/jre/bin/java" 1

You've missed jre

Your javac command seem to be OK.

But the javaws is also

sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/lib/jvm/jdk1.7.0_79/jre/bin/javaws" 1

To fix it run

sudo update-alternatives --remove-all java
sudo update-alternatives --remove-all javaws
sudo update-alternatives --remove-all javac
sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.7.0_79/jre/bin/java" 1
sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/lib/jvm/jdk1.7.0_79/jre/bin/javaws" 1
sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.7.0_79/bin/javac" 1


Get the access to the folder file system/root

use terminal and
use this comand to copy

sudo cp -R file-need-to-copy-path  path-of-folder-where-you-want-to-paste

or you can change the permission of that folder by using

sudo chmod 777 path-of-folder


Does LibreOffice Support AmiPro Format (.sam)?

Well atleast for now it does not support it. But there is a way by which you can convert sam to doc and then maybe you can turn it into odt. Worth a try imho

http://www.gmayor.com/downloads.htm

Please make sure to read the whole instructions before merging.


Double clicking on the file should open it in Archive Manager. You can extract the file using the Extract button at the top of the window.

If you are looking to extract the zip file using the command line, the command is:

unzip myfile.zip

If it is not installed, run:

sudo apt-get update; sudo apt-get install unzip


Can't find "Switch to workspace action" listed in keyboard shortcuts

Using dconf-editor

The option to change the shortcut keys to switch workspace up, down, left or right (the latter not applicable in default gnome shell) indeed are not exposed in that dialog. You still can change these keyboard assignments by installing dconf-editor. Navigate to org.gnome.desktop.wm.keybindings to find all these window manager related keybindings. You will be able to remove all <Control><Alt><Arrow key> combinations there, leaving alternative keybindings, i.e., <Super>Page_Down and <Super>Page_Up in place.

Using the terminal

Settings can also be changed using the terminal. For example, to list all available keys, issue the command

gsettings list-keys org.gnome.desktop.wm.keybindings

To learn about what a key contains:

gsettings get org.gnome.desktop.wm.keybindings switch-to-workspace-down

(Tip: Tab-completion works to complete the names of the schema's and keys)

To remove <Control><Alt><Down>, redefine the key:

gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-down ['<Super>Page_Down']

To reset to default:

gsettings reset org.gnome.desktop.wm.keybindings switch-to-workspace-down


Sorting a file alphabetically by last name only

Simply

sort -k2 < your_file > out_file

-k specify the sort key; by default the field number where field are separated by blanks.

From  man sort:

  -k, --key=KEYDEF
          sort via a key; KEYDEF gives location and type

  KEYDEF  is F[.C][OPTS][,F[.C][OPTS]] for start and stop position,
  where
         F is a field number and C a character position in the field;  both  are
         origin 1, and the stop position defaults to the line's end.  If neither
         -t nor -b is in effect, characters in a  field  are  counted  from  the
         beginning of the preceding whitespace.  OPTS is one or more single-let‐
         ter ordering options  [bdfgiMhnRrV],  which  override  global  ordering
         options  for  that key.  If no key is given, use the entire line as the
         key.

Example:

[romano:~/tmp] % cat test.txt
a a
b c
d r
k a
t 6
[romano:~/tmp] % sort -k2 < test.txt
t 6
a a
k a
b c
d r


how do I get ubuntu to recognize/mount my intel 180 GB ssd on /dev/sdb?

You need to partition the disk, format the partitions, and then they can be mounted in Ubuntu.

Aside from that, it seems Ubuntu is seeing the disk just fine, as you were able to see it in GParted.


Intel Corporation 7 Series/C210 Series isn't being detected by any module

First, we need to know what type of audio hardware (if any) the system detects:

lspci -v | grep audio

And

:~$ lsmod | grep snd

Please run this command and post the output. Should be something like the following:

:~$ lspci -v | grep audio
00:1f.4 Multimedia audio controller: Intel Corporation 82801BA/BAM AC'97 \
  Audio     Controller (rev 02)
:~$

And

snd_intel8x0           38153  0
snd_ac97_codec        130285  1 snd_intel8x0
ac97_bus               12730  1 snd_ac97_codec
snd_pcm               102099  2 snd_ac97_codec,snd_intel8x0
snd_page_alloc         18710  2 snd_intel8x0,snd_pcm
snd_timer              29482  1 snd_pcm
snd                    69238  4 snd_ac97_codec,snd_intel8x0,snd_timer,snd_pcm
soundcore              12680  1 snd
:~$

Additional information for troubleshooting

What is the output of the following?

:~$ locate snd-hda-intel

Several users on other posts were able to get this audio chipset working by editing /etc/modprobe.d/alsa-base.conf

nano /etc/modprobe.d/alsa-base.conf

And add the following line:

options snd-hda-intel model=generic

Posts referenced/researched:

Fresh Ubuntu 12.10 - no audio (Thinkpad T400)
Driver for Intel
Corporation 7 Series/C210 Series Chipset Family


Switching keyboard layouts in Lubuntu 11.10

As arno says, try:

setxkbmap -option grp:alt_shift_toggle "us,il"

(for hebrew).

To make this permanent:

 echo '@setxkbmap -option grp:alt_shift_toggle "us,il"' | sudo tee -a /etc/xdg/lxsession/Lubuntu/autostart


First check whether the package is installed :

$ apt policy python3-pip
python3-pip:
  Installed: (none)
  Candidate: 8.1.2-2ubuntu0.1
  Version table:
     8.1.2-2ubuntu0.1 500
        500 http://archive.ubuntu.com/ubuntu yakkety-updates/universe amd64 Packages
        500 http://archive.ubuntu.com/ubuntu yakkety-updates/universe i386 Packages
     8.1.2-2 500
        500 http://archive.ubuntu.com/ubuntu yakkety/universe amd64 Packages
        500 http://archive.ubuntu.com/ubuntu yakkety/universe i386 Packages

In case it is (in this example it's  not) execute :

sudo apt purge python3-pip

In case you mistakenly chose the wrong one :

dpkg --get-selections | grep python3

You get a list of installed python3 packages.

Clarification and general information : Your Edit 1 output shows that the package is not installed and hence it cannot be removed. The apt list command shows available packages, it does NOT show installed packages, unless you add --installed to the apt list command as mentioned in the comment from @Terrance. And, be very careful which packages you remove as pointed out by @ByteCommander ... sudo apt purge completely removes packages and configuration files !


"Not downloading file in useable form" error when trying to make a Live USB stick on a Mac

How to create a bootable USB stick on OS X:

http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-mac-osx


I believe this is the awnser youre looking for. not sure.

Be sure to have 2 harddisks in your computer.

Disconnect the harddisk where windows is installed.
Get the ubuntu installation on an usb/cd.
Let your computer boot via the usb/cd.
Install ubuntu. (on the harddisk you want it of course)
Turn computer off and connect harddisk again.
You can now swap via OS on bootop of your pc. (Button depents on your computer, Like F8,F9 or F12.)
There are a lot of videos If you need any help.


I didn't get exactly what is the problem.
But I had problem with installing Ubuntu 20.04 and the latest version of Win10 both together on GP73 Leopard 8RE.
So I first backed up both my HDD and SSD with free version of Macrium Reflect.
then I made the UEFI/BIOS settings to default and set it to only UEFI and also disabled the secure boot. then installed the Win10 on 1TB HDD and then installing Ubuntu 20.04 on 128SSD, But after rebooting the grub got ruined since first the windows10 booted up. but it is ok because both they are separate and they work fine by pressing F11 at boot time so I can choose which one HDD(Win10) or SSD(Ubuntu 20.04). I used rufus and made both win10 and ubuntu usb installation usbs UEFI.
I hope it will help you.


typing "android" in firefox opens a apache2 Ubuntu Default Page

I concur with Eric Carvalho's comment. I assume you're typing android in the URL bar vs the top-right search box? It seems a PC is named android on your network. You can try ping, nslookup PC-NAME to identify it. You could use a port scanner (nmap or telnet PC-NAME 80) to see if its got apache (a web server) installed on it


Is there any photo editing software like Adobe Photoshop?

Try out Gimp. It is a photo editing suite similar to Photoshop that is cross-platform and open source.


Dconf editor can't make changes to Unity panel/launcher

The 3D version of Unity is implemented as a plugin for Compiz, so uses Compiz's preferences store (separate from the preferences stored for the 2D version of Unity).

Those preferences are still stored in GConf (which can be edited using the gconf-editor program).  The settings you are probably interested in are found under /apps/compiz-1/plugins/unityshell/screen0/options.

Alternatively, you can use the compizconfig-settings-manager to get a slightly more structured view of the plugin settings.


Software downloader downloading dozens of mb (almost) every day

80 MB sounds little bit strange for me. Actually Software updater will update its cache by depending upon the setting you made. When it have updated the cache it will redownload it. as far as I know that will be around 19MB - 20 MB in my case.


Firefox will create a temp folder following the pattern

/tmp/mozilla_${USERNAME}${INDEX}

where ${USERNAME} of course represents your user name and ${INDEX} an index starting at 0 to avoid conflicts between multiple running instances. So for me this directory could e.g. be called

/tmp/mozilla_bytecommander0

Inside this directory, it will save the files downloaded to directly Open with... an application with their default name, same as if you selected Save file.....

These temporarily stored files will stay in this location on your hard disk at most until you quit Firefox. Then it should clean this directory. Not sure of this clean up can also be triggered by other events before Firefox exits, I could not observe any yet.


Bash (on Windows 10) doesn't locate any package

You don't have a correctly setup /etc/apt/sources.list file. Try pasting the following into /etc/apt/sources.list:

deb http://us.archive.ubuntu.com/ubuntu/ trusty main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ trusty universe
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty universe
deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ trusty multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty multiverse
deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu trusty-security main restricted
deb-src http://security.ubuntu.com/ubuntu trusty-security main restricted
deb http://security.ubuntu.com/ubuntu trusty-security universe
deb-src http://security.ubuntu.com/ubuntu trusty-security universe
deb http://security.ubuntu.com/ubuntu trusty-security multiverse
deb-src http://security.ubuntu.com/ubuntu trusty-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu vivid partner
# deb-src http://archive.canonical.com/ubuntu vivid partner

Then try running apt-get update again.


Geary Mail is failing to send mail from gmail

You can get a debug log if you run Geary from a terminal using the command geary -d

However as @Piloti said GMail is no longer compatible with standard IMAP and SMTP by default, hence you may need to update your Google Account settings to get it working correctly. See the Geary FAQ entry about GMail for details.


Switched to postgres user after PostgreSQL install, can't switch back to normal user

Use the command exit (two times) worked for me to get back to normal user. See following


whats best flavor for the lenovo S10 netbook?

I would advise lubuntu, as I have that on a machine with similar specs. I is, however a bit lacking in features (I use it for basic internet browsing, experimenting as I don't care if I have to reinstall that one, and as an electronic photo frame).

If it is you main one, or will be used a lot, xubuntu may be better for you, as it has a lot more of the ubuntu features, while being lightweight, and it actually runs on my 1998 machine with 512 MB of Memory!

You might get away with Ubuntu itself, however it would possibly be too intensive, especially Unity. You could always install a second desktop, so you still have all the Ubuntu features.


How do I install Windows XP from Ubuntu Live Pen Drive?

What you're asking for isn't possible, as far as I know. The suggestion you received on Super User to check out Pen Drive Linux is bad advice because according to the website that tool is only for installing Linux, not Windows.


Asus eee 32-bit netbook ca. 2008 runs very slow, especially connecting to the internet

Your PC unfortunately does not fulfill the minimum system requirements:

https://help.ubuntu.com/community/Installation/SystemRequirements

I fear there is not very much you can do, given you want to run a "normal" Ubuntu distribution.

Maybe you could try Xubuntu or Lubuntu, which are both more lightweight than the standard Gnome desktop, but I think your PC still won't feel fast.

I am sure there are special distributions out there which are specialized for running on very old hardware, but I am not adept in this topic.

You could use the following link as a starting point in order to find a suitable distribution:

https://www.reddit.com/r/linux4noobs/comments/7ujlie/best_ultralite_linux_distro_for_an_asus_eee_pc_in/


How can I upgrade Ubuntu to newer release manually (without using update manager)?

Let me say, I wanna upgrade to Trusty directly from Raring skipping Saucy. How do I do that?

Fully upgrade your existing installation.

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

Disable all 3rd-party applications & PPA (especially xorg-edgers!!!)

sudo sed -i s/deb/#deb/ /etc/apt/sources.list.d/*.list

Change release and update:

sudo sed -i s/raring/trusty/ /etc/apt/sources.list
sudo apt-get update

(Most cautious part starts here) Upgrade:

sudo apt-get upgrade
sudo apt-get dist-upgrade

During this, you can experience errors!!!. That's normal. To fix, simply run sudo apt-get -f install and the command was running before. Until success on dist-upgrade.

Also, you will be prompted to replace some configuration files. Keep the files you manually configured and replace those configured by scripts.
Reboot and enable repositories you disabled:

sudo sed -i s/#deb/deb/ /etc/apt/sources.list.d/*.list

You may want to disable sources. Run

sudo sed -i s/deb-src/#deb-src/ /etc/apt/sources.list.d/*.list

Update release name in repositories and update

sudo sed -i s/raring/trusty/ /etc/apt/sources.list.d/*.list
sudo rename s/raring/trusty/ /etc/apt/sources.list.d/*.list
sudo apt-get update

Replace non-working repositories with previous versions and update

sudo sed -i s/trusty/saucy/ /etc/apt/sources.list.d/jwigley-window-list-trusty.list
sudo sed -i s/trusty/saucy/ /etc/apt/sources.list.d/playonlinux-trusty.list
sudo sed -i s/trusty/saucy/ /etc/apt/sources.list.d/yannubuntu-boot-repair-trusty.list
sudo apt-get update

Finally, dist-upgrade:

sudo apt-get dist-upgrade

Voila! The system is fully upgraded! To finish, delete old kernels and obsolete packages through Synaptic.


How (and where) can one change 'user@host $:' pattern in gnome-terminal?

Put this at end of your ~/.bashrc

PS1="\D{%F}T\t $PS1"

Then restart your terminal.
For explanations, read manual page of bash, search for ^PROMPTING

(sorry, the first version of this answer reported erroneously single quotes instead of double)


How to create a complete directory structure with a single command?

mkdir -p /abcd/efgh/ijkl/mnop/qrst/uvwx/yz/

mkdir is "make directory"

The -p option creates the parent directories if they do not already exist.


IcedTea-8 cannot run any jnlp application (maybe due to openjdk-11?)

After some trial and error I found only one useful solution - we need to install normal OpenJDK 8 from previous Ubuntu 16.04 LTS manually with commands below. It is usually not recommended, but we do not have other methods with positive result.
So the commands to install are the following (we remove existing OpenJDK and then install deb-packages manually):
sudo apt purge oracle-java11-* -y
sudo apt purge *openjdk* -y
sudo apt autoremove --purge -y

wget http://archive.ubuntu.com/ubuntu/pool/main/o/openjdk-8/openjdk-8-jre-headless_8u272-b10-0ubuntu1~16.04_amd64.deb
sudo apt install -y ./openjdk-8-jre-headless_8u222-b10-1ubuntu1~16.04.1_amd64.deb

wget http://security.ubuntu.com/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1.1_amd64.deb
sudo apt install -y ./libpng12-0_1.2.54-1ubuntu1.1_amd64.deb

wget http://archive.ubuntu.com/ubuntu/pool/main/o/openjdk-8/openjdk-8-jre_8u272-b10-0ubuntu1~16.04_amd64.deb
sudo apt install -y ./openjdk-8-jre_8u222-b10-1ubuntu1~16.04.1_amd64.deb

wget http://archive.ubuntu.com/ubuntu/pool/universe/i/icedtea-web/icedtea-netx-common_1.6.2-3ubuntu1_all.deb
sudo apt install -y ./icedtea-netx-common_1.6.2-3ubuntu1_all.deb

wget http://archive.ubuntu.com/ubuntu/pool/universe/i/icedtea-web/icedtea-netx_1.6.2-3ubuntu1_amd64.deb
sudo apt install -y ./icedtea-netx_1.6.2-3ubuntu1_amd64.deb

Also we need to pin/hold the versions of such packages with single long command below:
cat <<EOF | sudo tee /etc/apt/preferences.d/pin-java8
Package: icedtea-netx
Pin: version 1.6.2-3ubuntu1
Pin-Priority: 1337

Package: icedtea-netx-common
Pin: version 1.6.2-3ubuntu1
Pin-Priority: 1337

Package: openjdk-8-jre
Pin: version 8u272-b10-0ubuntu1~16.04
Pin-Priority: 1337

Package: openjdk-8-jre-headless
Pin: version 8u272-b10-0ubuntu1~16.04
Pin-Priority: 1337

EOF

and then the application will run with
javaws StartProRealTime.jnlp

Notes: the installation of Oracle Java 11 or 12 does not help either.


Can I move a logical swap partition to primary from the running environment?

Read man 8 swapon, then do something like

sudo swapoff /dev/sdb5

if swap on /dev/sda5 isn't enabled (check with swapon --show), do

sudo swapon /dev/sda5


GRUB not showing on cold boot but on warm boot

Edit grub file by executing following command in Terminal :

sudo gedit /etc/default/grub

and then uncomment GRUB_HIDDEN_TIMEOUT=0 and GRUB_HIDDEN_TIMEOUT_QUIET=false by removing # before them and save the file.

Then execute following command in terminal :

sudo update-grub

Reboot and grub will always load.


Should I have Wireless if I'm testing Ubuntu on my laptop via usb?

Short answer is yes, you are supposed to be able to connect to either a wireless or wired network with a the LiveUSB/LiveCD (trial Ubuntu).

In the case of a wireless adapter, you're gonna need the correct driver installed for it. In my case, the Additional Drivers window popped up several minutes after the system booted into the LiveUSB/LiveCD, and I was able to install the wireless adapter driver without downloading anything.

Try starting the Additional Drivers window by clicking on the power icon on the top right corner, clicking on "System Settings", and followed by "Additional Drivers"

Edit:
I assumed you promptly tested the hardware switch for WiFi before posting here. If you didn't, it's a good idea to try it. (Credit goes to @pfeiffep)


Is there a list, directory, or review of PPAs that is worth a look? Or can you share links to some notable PPAs that you know of or use?

Have you checked out Ubuntu Tweak? Not exactly what you are asking for, but I find the PPAs you can install via Ubuntu Tweak to be of high quality.

http://ubuntu-tweak.com/source/category/


Ralink wifi dongle currently not working (but used to)

Disable secure boot in your BIOS. This will allow the driver that you installed load properly.

Optional...

If your driver works, you can install the dkms version of this driver, so you don't have to recompile it with every kernel update, add this ppa:

sudo add-apt-repository ppa:thopiekar/mt7601
sudo apt-get update

Then remove the driver that you installed:

cd mt7601usta/src
sudo make uninstall

And install the ppa driver.

Reference: https://code.launchpad.net/%7Ethopiekar/+archive/ubuntu/mt7601


Suspicious traffic shows on nethogs but not netstat

nethogs shows the PID ? for traffic that isn't associated with any running process, like incoming traffic to a port on which no program is listening.

In your case that's most likely other amule peers trying to connect to you.


apt-get install  equivalent using C++ apt-pkg library

I would just use system:

SYSTEM(3)            Linux Programmer's Manual           SYSTEM(3)

NAME
       system - execute a shell command

SYNOPSIS
       #include <stdlib.h>

       int system(const char *command);

DESCRIPTION
       system() executes a command specified in command by calling
       /bin/sh -c command, and returns after the command has  been
       completed.   During  execution of the command, SIGCHLD will
       be blocked, and SIGINT and SIGQUIT will be ignored.

RETURN VALUE
       The value returned is -1 on error (e.g.   fork(2)  failed),
       and  the return status of the command otherwise.  This lat-
       ter return status is in the format  specified  in  wait(2).
       Thus, the exit code of the command will be WEXITSTATUS(sta-
       tus).  In case /bin/sh could not be executed, the exit sta-
       tus will be that of a command that does exit(127).

       If  the  value of command is NULL, system() returns nonzero
       if the shell is available, and zero if not.

       system() does not affect the wait status of any other chil-
       dren.

It is not a hack to use a simple solution.


Make a bootable image of installed linux

You can easily remaster Ubutnu. you can use many applications to do that(remastersys-ubuntu builder-UCK - ....). But personally i advise you to use relinux.

Here is a great step by step tutorial how to use and obtain an iso of your current running system using relinux


Problems trying to install Ubuntu in my laptop

What Software do you use to write Ubuntu on usb key ?
I use Balenaetcher

and it always works


Do the logs such as messages and syslog begin during or after installation?

I believe the answer is yes (although see my notes towards the bottom of the answer after the quotation from the manpage), but I have no recent installations to confirm this.

If you are trying to debug an installation, in addition to the syslog and messages logs, ubiquity (the liveCD installer) will also also send logging output to these files:

/var/log/installer/debug (debugging output)
/var/log/installer/dm (stands for display manager I believe, similar to Xorg.0.log)
/var/log/installer/version (the version of ubiquity)
/var/log/partman (logging from the partition manager)

These files will not be overwritten by more recent logging (as syslog and messages would), so they might be more useful in looking for installation errors.

If you require further detail you can also pass -d to ubiquity to enable verbose mode, as explained in the manpage:

     -d, --debug
       Run in debugging mode, sending verbose information to
       /var/log/installer/debug that may be useful to developers.  (The
       /var/log/syslog file is usually required in any case, along with
       /var/log/partman in the case of problems related to partitioning.)
       Note that passwords will be logged in debugging mode!

To to this, from a liveCD you can either press Alt+F2 and run ubiquity -d (this might need root privileges, in which case add a sudo) or open a terminal and run the same command.  The messages about the syslog and partman files being required might indicate that they are not created until after installation, but in this case you should be able to make the files/directories first using sudo mkdir and sudo nano.

Another possibility would be that the logging would be done to the liveCD's virtual filesystem's /var/log/syslog, in which case you could open it and copy the information to a permanent destination being rebooting out of the live session and into the new installation.


How can I make Ubuntu run full screen in hyper-v?

This is an old question, but I think it is worth pointing out that it is now available for Ubuntu 18.04 and the latest Windows 10. The instructions are in this blog post from Microsoft and works with XRDP. The experience is good enough to work with it all day.

How to get it to work:

Create the VM, install Ubuntu (18.04 or above) as you normally would;
Update all package dependencies to make sure you have everything up to date,

Run sudo apt update and sudo apt upgrade -y;

Make sure you enable an SSH server, so if anything goes wrong you can always get back into the VM;
Run on PowerShell Set-VM -VMName <your_vm_name>  -EnhancedSessionTransportType HvSocket;
Run install.sh as root and follow instructions.

Make sure you do not enable autologin, as it breaks the whole thing.

When you connect to the VM you will be given the options to enable enhanced mode.

You can find more info on the blog post linked above.

Update from 6/4/2019:

I noticed that some admin dialogs were not being shown, and it seems it is a problem with xrdp (used in this solution) and polkit.
I had to remove a config file, like so:

sudo rm /etc/polkit-1/localauthority.conf.d/02-allow-colord.conf

So I recommend you do the same when you finish your setup.

The answer from where I got the info is this one: https://askubuntu.com/a/1041947/832580


I deactivated zeitgeist and need help reactivating it

You have removed the executable rights with -x.

Here is your undo:

sudo chmod +x /usr/bin/zeitgeist-daemon
sudo chmod +x /usr/bin/zeitgeist-datahub
sudo chmod +x /usr/lib/zeitgeist/zeitgeist-ft

These are the settings in my system:

% ls -la /usr/bin/zeitgeist-daemon
-rwxr-xr-x 1 root root 214216 Mär 10 17:00 /usr/bin/zeitgeist-daemon
% ls -la /usr/bin/zeitgeist-datahub
-rwxr-xr-x 1 root root 131696 Mär 10 17:00 /usr/bin/zeitgeist-datahub

Or reinstall the packages:

sudo apt-get install --reinstall zeitgeist-datahub
sudo apt-get install --reinstall zeitgeist-core

I can't find /usr/lib/zeitgeist/zeitgeist-ft for Ubuntu


how can a bash file run without needing to enter sudo pass-phrase manually?

For this particular problem, you could probably just stick echo 1000 > /sys/class/backlight/intel_backlight/brightness in /etc/rc.local (before the exit-line). That would run it on boot, as root before the desktop was loaded.

But in general (how do I run a script as root?) things are a bit sticker...

You could just run sudo ./myscript (by editing sudoers) but just allowing ./myscript to be run without a password would mean you (or a program running as you) could edit that file and suddenly you can run anything as root without going through the proper procedures. Uber-poor security.

Instead I would suggest:

sudo mv myscript /sbin/myscript
sudo chown root:root /sbin/myscript
sudo chmod 700 /sbin/myscript

The ch* commands now mean only root can read/run the script. Sticking it in /sbin/ is just incidental - you don't have to do that.

Now you need to edit /etc/sudoers. The Wiki has a good example and you'll just need to substitute the shutdown commands with your script's path (use a full, absolute path). NOPASSWD is the key keyword here. It allows you to run something as sudo without the password. So then you can just add sudo /sbin/myscript to your startup jibberyboo and you're flying.


Updating vim 7.3.429 to 7.3.885 on Ubuntu 12.04

You can either use this ppa:

https://launchpad.net/~nmi/+archive/vim-snapshots

or compile it from source.

For information on using a ppa see:

What are PPAs and how do I use them?

and

https://launchpad.net/+help-soyuz/ppa-sources-list.html


How do I get Clear Wireless to work on Ubuntu? Is there a solution?

As a proud user of Archlinux, I'm able to connect via Clear's USB WiMAX devices.
I believe this should work on Ubuntu as well though!

So try the following:

Make sure the correct module(s) are loaded for the OS to recognize the USB device.   (In my case, I only need the usbnet module)

sudo modprobe usbnet
sudo modprobe rndis_host

Check if the device is being recognized by your system

ifconfig -a

Bring up the USB network device and request a dynamic IP for system with net-tools package.

sudo ifconfig usb0 up && sudo dhcpcd usb0

Or use this command if you use the newer ip-tools package.

sudo ip link set usb0 up && sudo dhcpcd usb0

Change settings on WiMAX USB device by navigating to your WiMAX configuration page in a web browser.

Browse to the IP which DHCP you were able to get a lease on: (most likely, http://192.168.14.1)
Go to Advanced and change setting to NAT and stick with default values
Save Changes

Restart DHCP

sudo dhcpcd -x  && sudo dhcpcd usb0

Hopefully at this point you DHCP request will come back with another address, such as http://192.168.14.1

That's it.  Now go play on YouTube.


How can I completely remove files of Anaconda as it is not installing properly?

Downloading and Installing Anaconda (Linux)

Download Anaconda from https://www.continuum.io/downloads.
Run installer script:

$ bash AnacondaX-x.x.x-Linux-x86[_64].sh
Accept the license (enter shows the license). After reading it, scroll to the end with space. Accept it by typing yes and enter when required.
Specify the install location. (Default is ~/anacondaX, where X is the major version of Python release, e.g. X=3 for Python 3.5)
Add this location to PATH if your installer asks you to. Otherwise, you should add this location on your own to you PATH in ~/.bashrc:

export PATH="/home/$USER/anacondaX/bin:$PATH"

Uninstalling

Anaconda is installed in a single directory. So, for uninstalling it, just remove the entire directory. Default install location is ~/anacondaX. Removing is easy:

rm -rf ~/anacondaX


How to change the search location of Unity's Music Lens with Clementine instead of Banshee?

There is currently no way to use another player besides banshee with the music lens. In order to have the music lens read from clementine, you would need to write a clementine scope.

Help documentation for this is available at https://wiki.ubuntu.com/Unity/Lenses#Creating_a_Scope.

There is sample code available at lp:unity-lens-sample, and lp:unity-lens-music is another good place to look.


Ubuntu Server 18.04 Downloading issue from bootable USB

That seems like a very strange error indeed. Did you try to certify that your downloaded iso and written USB copied correctly? I.e. compare the md5, or just try reflashing the image to the USB. I've had similarly weird things happen from a bad flash or download.


Unable to change date and time settings in Ubuntu 16.04 using command line

You can use timedatectl, it does all the necessary things for you itself.

First make sure NTP is not enabled:

sudo timedatectl set-ntp 0

then set the time:

sudo timedatectl set-time "2017-05-30 18:17:16"

make sure your timezone is correct too, e.g:

sudo timedatectl set-timezone Europe/Paris

and also use UTC if you are using localtime:

sudo timedatectl set-local-rtc 0


Can I stop SSH Terminal window, into Ubuntu command line, from closing on error in Perl script?

Yes, both in PuTTY and in GNOME terminal there is an option to prevent window from auto-closing. In PuTTY, it is on the main Session tab, in GNOME terminal, it is on the Command tab. You can set the window to stay open after the script finishes.


How do I get the latest beta version of Juju?

Juju has documentation about Geting the Latest Juju version and provides specific information for installing the development branch which is currently version 2.0 Beta 4:

sudo add-apt-repository ppa:juju/devel
sudo apt-get update
sudo apt-get install juju
juju version
2.0-beta4-trusty-amd64


Intel Ethernet I219-LM Driver in Ubuntu 16.04

Same ethernet adaptor for me on my ubuntu 16.

This worked:

Download e1000e-3.4.2.1 (Check latest on Intel website).
Got the tar.gz file downloaded untar it:

tar xfv e1000e-3.4.2.1.tar.gz

Goto src directory

cd src

Compile and install

sudo make install

Reboot

This worked for me.


Install the libv4l 32bit version (even if you are using 64bit)

sudo apt-get install libv4l-0:i386


I was able to fix it by changing nm-applet to launch with dbus-launch nm-applet. To see if this will work for you, try running dbus-launch nm-applet and see if that shows up properly. To make the fix permanent, I edited /etc/xdg/autostart/nm-applet.desktop and changed

Exec=nm-applet

to

Exec=dbus-launch nm-applet


Ubuntu 20.04 Install not booting in AMD Ryzen 7 (UEFI 8450M Gaming P1)

Sometimes the splash-screen get stuck. Have you tried to press ALT-F1 or ALT-F2? Mostly you will see login prompt then.


Shut down/log out, me menu absent in panel

The power/logout/suspend/hibernate option you are looking for is called the "Indicator Applet Session" in the "Add to Panel" Menu.


So the solution to the problem if it aint solved by:

sudo apt-get install iw
sudo iw reg set US

is to unload the 'wl' kernel module and load the brcmsmac like Braiam said:

sudo modprobe -r wl && sudo modprobe brcmsmac

Thanks Braiam


Laptop turns off upon high CPU usage with very busy fan noise

Try to look into system monitor if you can see some process or aplication that is making your computer so busy.


Ubuntu 14.04 desktop environment does not load

Try this if this helps but make a copy first of this
file beginning with ".ICE*" and paste the copy into gedit editor
and save this as different name-file ...

then do this in terminal :

  rm .ICE*

and reboot your machine off-line.


What is the gbas.so file on my home directory?

As mentioned by nelaar, ".so" files are usually shared binary libraries. Try doing "readelf -a gbas.so", it might give you some information about what the file contains (if it really is a library file).


Ubuntu Software apps cannot access non-system disks

I think I've found the root of the problem: it appeared to be snap-packages issue. I've managed to make some apps to work with non-system disks by connecting removable-media plug (but only those apps which have it):

sudo snap connect PACKAGE_NAME:removable-media


A lock is preventing me from installing ClamAV on Ubuntu Studio 20.04

There are times when the OS runs auto-updates. When that happens, it will apt-get install new packages (mainline Linux kernels). While doing that installation, it blocks you from using apt-get again.
As mentioned by Terrance, you could try running the command in a terminal:
sudo apt install clamav

which is not a bad idea since the error in that case is likely going to be much clearer.
One way to see whether apt is already running is to use:
ps -ef | grep apt

or use htop (you should see apt near the top, you can also filter by typing F4 and then entering apt + Enter.) I often use htop in order to see when apt is done and then run my own commands.


Base Ubuntu Server, Can't install anything

As I take from our conversation in the comments, you have no software sources configured. This can be due to the following reasons:

No sources were configured on installation. (is this even possible?)
The software sources were removed accidentally or maliciously deliberately.
They were lost due to another reason, which would most likely indicate a system that is broken elsewise, too.

If your system has a GUI installed, you can open the Software Sources utility (if it is installed). If it isn't or your system doesn't have a graphical desktop, you can generate a new sources list using tools like the Ubuntu Sources List Generator.

Select your country (for mirror selection) and Trusty as release, and then enable the repositories you wish to have (at least main and universe). Then tool will generate a text output, which you can copy and paste into the /etc/apt/sources.list file or save it to a local file and upload it to the server. Then your APT commands should work again.


Many programs in Ubuntu need something or the other to run in. Graphical programs like the file manager (typically Nautilus) or the browser (Firefox, or Google Chrome, for example) need an instance of the X Window System (typically provided by X.Org's X server) to run.

Correspondingly, command-line programs like Bash, apt-get, lynx, etc., to be run interactively, need a terminal emulator to run. By default, Ubuntu has GNOME Terminal, XTerm and the TTYs (managed by getty, accessible by pressing CtrlAltF1-F6 - back to GUI by CtrlAltF7) via which you can interact with command line programs.

To run a command-line program, then, you need to run a terminal emulator (for example, GNOME Terminal) first.

The terminal emulator programs typically run bash by default (since that is the default login shell for users in Ubuntu). Therefore, to run bash, usually all you need to do is run Terminal.

Without a terminal to run in, when you started Bash or Dash, they probably quit immediately. Nothing to see here, folks.

See:

What is the difference between Terminal, Console, Shell, and Command Line?
What is the exact difference between a 'terminal', a 'shell', a 'tty' and a 'console'?
What is the best way to learn how to use Ubuntu with terminal?

Making a launcher icon for a command line program is a different issue. For that, see How can I edit/create new launcher items in Unity by hand?, and use Terminal=true instead of Terminal=false.


How to obtain a list of installed packages based on a backup?

You can try to chroot to your backup and then execute your command. This will require that you extract your backup to disk.

Suppose you extracted your backup to a directory called backup in your home folder. Then execute the following commands:

$ cd ~/backup
$ sudo chroot .

This should let you execute commands in the current terminal that use your backup system.
Then you could get a list of packages using dpkg -l or dpkg --get-selections

$ dpkg --get-selections > /package_list.txt

After you are done, just exit the chroot:

$ exit

You can then get the package listings in ~/backup/package_list.txt.

I haven't tried this by myself (i don't have a backup to chroot) but it should work.


Change "date" Command To 12 Hour Time Instead Of 24

Reading the man page,

  SYNOPSIS

   date [OPTION]... [+FORMAT]

you have to put the format after a + sign.

date +%r

should do the trick.


Loading Dropbox on start-up when my Dropbox folder is on separate partition

Yeah.

You would need to mount your partition when your system starts.

For detailed guide refer Automatically Mount Partitions in Ubuntu.

If your have external NTFS partition then ntfs-config will ease your task and let you mount all ntfs partitions easily. To install ntfs-config, open terminal and type;

sudo apt-get install ntfs-config


What will happen if I remove "essential components" for Gnome?

i was just testing this to check this out, by un-intalling totem! there should be no problem todo so!

suggestion do a re-install of gnome-common and gnome-session using synaptic by preference (as i don't like the software center)

and reboot the sudo apt-get update && sudo apt-get dist-upgrade.
then open synaptic and remove totem.
if you want to remove the games i just remove them one by one or tomboy etc. hope this helps


any problems with this partition scheme?

The GUID Partition Table (GPT), which is used on most EFI installations, doesn't distinguish between primary, extended, and logical partitions; it just has "partitions" (with no qualifier), although tools like GParted insist on calling them "primary partitions" because those tools were written with MBR in mind. GPT supports up to 128 partitions by default, although that value can be changed with the right software. (In Linux, gdisk can do this, but GParted and parted can't.)

As to your layout, your sizes are all wrong. I recommend the following:

EFI System Partition (ESP; /boot/efi): 550MiB. Although a standard Ubuntu installation isn't likely to consume more than the 64MB you propose, there are scenarios in which it must be significantly larger. Furthermore, some EFIs have problems with FAT16 ESPs or with sub-512MiB FAT32 ESPs. To avoid both problems, the partition must be over 512MiB. I recommend a bit bigger to avoid confusion between MB (10^6 bytes) and MiB (2^20 bytes), hence 550MiB.
(Optional) /boot partition: 500MiB. This directory holds your kernel, initrd, and a handful of other files. One of my current Ubuntu installations has 111MiB in there right now, and another has 90MiB. Thus, your proposed 64GB is way oversized. 500MiB gives you plenty of "wiggle room" for installing multiple kernels. Note that this partition is optional. In most cases you don't really need it, although it can be handy sometimes.
Root (/) partition: 30GiB. A typical Ubuntu installation is likely to consume 4-10GiB. Unless you anticipate storing lots of extra system software, 30GiB should be more than big enough. OTOH, going up to the 64GB you propose isn't completely ridiculous on a 3TB hard disk.
Swap partition: 1-2 times RAM size. If you've got 16GiB of RAM, your proposed swap partition size is not out of line; but with less RAM, you should probably reduce the swap space. Modern systems seldom use swap space at all, so many people stick closer to the 1x RAM size rule of thumb, or even drop below it. The most important use of swap for many people is when using suspend-to-disk functionality, in which your RAM's contents are copied to the swap partition. If you plan to use this feature, ensure you've got at least as much swap space as RAM. When doing so, ensure you don't confuse units (GB vs. GiB). Note that RAM comes in GiB units, even though most people use "GB" when referring to its size.
/home partition: The rest. This is pretty basic: Use whatever's left over. OTOH, if you were to run a major server, you might want to split /var off into its own partition, too, which would necessitate determining how much to give to each partition. Given your stated system purpose, I doubt if this will be necessary, unless you'll be running your own mail server -- and even then, if it's for personal use, it's probably not worth splitting off /var unless you send and receive a lot of e-mail.


Why don't the launcher/other new features show up?

The new interface (Unity) requires 3D graphics to run correctly.  If your graphics card isn't capable of 3D Compositing, then Ubuntu will fall back to the traditional Gnome desktop that you were used to in Ubuntu 10.10.

In some cases your graphics card will be new and powerful enough to run Unity, but you'll still fall back to the classic desktop.  The problem then is that Ubuntu ships with open source graphics drivers for legal reasons, and these drivers may not be advanced enough to run Unity.  In this case, you should be able to install the official, proprietary graphics drivers supplied by your graphics card manufacturer (Nvidia, in your case).  To see if proprietary drivers are available for your system, go to System > Administration > Additional Drivers in the classic interface, and Ubuntu should automatically detect and offer to install any drivers it finds.

If there are no drivers available for you that will let you run Unity, you can install Unity 2D from the Software Center.  It provides similar features and a similar interface to the standard Unity interface, and next October, it will be the fallback for users who can't run regular Unity instead of Gnome.


I've done what I can to simplify and decipher the instructions for you:

  Installing

  Kernel v3.5 or newer is required.

This means you will need at least Ubuntu 14.04 or 12.04.5 (source). If you're not sure, run uname -r, which prints the kernel version.

  Kernel headers or the build tree for the running kernel are required.

From what I can tell, kernel headers are installed automatically. (I ran dpkg -l linux-headers* to see what was installed on my system.)

  Installing Debian package

  If you're using Debian or a derived distro, such as Ubuntu, please try using the experimental .deb package. If it works for you, this will remove the need to reinstall the driver after each kernel upgrade. If it doesn't work, please report the issue.

The .deb package is available here (from the releases page). Try running it to do the installation. (Ubuntu is based on Debian. DEB files are Debian installers, similar to EXE files on Windows or DMG files on Mac.)


Try the below command to remove python-pypdf forcely,

sudo dpkg -P --force-remove-reinstreq python-pypdf

Then install it again by running,

sudo apt-get install python-pypdf


Using onedrive folder for both windows and ubuntu partitions

I realised I wasn't storing files perse, but files on-demand, which is some type of link that Microsoft uses to save hard drive space by dynamically downloading a file only if needed,
This feature isn't compatible with linux systems, only with Mac OS and Windows, but for my use case, that was storing the files locally and use them in both Ubuntu and Windows from the same hard drive, this wasn't optimal, so I disabled the feature from Windows, waited for those that were in the cloud but not in my hard drive to download, upon rebooting to ubuntu. After that, the onedrive linux client worked


Did Firefox (v 39.0) drop support for "Global Menu"?

If you mean the menu bar on top?

Right click on the hamburger (three stripes) on the upper right corner and click on menu bar.


Python script that runs in Windows throws "" error in Ubuntu

So far, in Ubuntu, a python command provided by the system is always Python 2, never Python 3, and for Python 3 one must use python3.

This is the case even on systems that don't have Python 2 installed but have Python 3 installed. Newer Ubuntu releases come that way, and there is a python3 command but no python command. You can install the python metapackage, which installs Python 2.

Older Ubuntu releases ship with Python 2 installed and not Python 3. As Raffa says, you can install Python 3 on such a system through the python3 metapackage.

Until recently, having python be Python 2 (and not Python 3) had been the official recommendation for Unix-like operating systems. The popular GNU/Linux systems adhered to this recommendation, with the notable exception of Arch Linux and its derivatives, on which python has long been Python 3. Debian and Ubuntu (which is a derivative of Debian), among other systems, continue to use the traditionally recommended naming scheme, so far.

In my experience, users of some other OSes--especially Windows--often find this surprising. It can be especially confusing to novices who aren't well aware of the distinction between Python 2 and Python 3.

My recommendation is:

Always know (or find out) which of Python 2 or Python 3 one is writing.

It is possible to write code deliberately that works as both, but people who do that know they're doing it, and this is not something most people will do when they start out.
For Python source code files that you run (i.e., scripts/programs, rather than modules usable only as libraries), start the file with a shebang line that specifies which interpreter you want.

For Python 3 you will usually wanted to use #!/usr/bin/env python3, as Ray Butterworth has commented. For Python 2, consider #!/usr/bin/env python2. Although you can use #!/usr/bin/env python in Ubuntu,
using the python2 command is also supported, makes your meaning clear to humans, works on more operating systems, and might work longer into the future.

The shebang line doesn't affect what interpreter is used if you run the script by passing its name as an argument to a command like python (or python2) or python3. Instead, mark the script executable so you can run it:

chmod +x scriptname

You only have to do that once. Then you can run the script like this:

./scriptname

On Windows, you can use the py launcher command to run your script, which respects your shebang line unless you override it by specifying a version. That is, if your script starts with #!/usr/bin/env python2, running py scriptname in Windows has the same effect as py -2 scriptname, and if it starts with #!/usr/bin/env python3, running py scriptname in Windows has the same effect as py -3 scriptname.

Note, however, that py treats python (with no version number) as specifying Python 3 rather than Python 2. This is another reason to consider writing python2 (rather than just python) at the end if your shebang lines even in Ubuntu; it makes your scripts more portable to Windows when the py launcher is used.

As for why you got those errors when you inadvertently ran your Python 3 code in a Python 2 interpreter: the input function in Python 3 just reads and returns a line of input, which is what you want, but the input function in Python 2 reads a line of input, treats it as Python code, runs that code, and returns the resulting value. This has quite alarming security implications when used without care (even in Python 2 programs), and is also just not something people usually want to do. If you needed to write your script in Python 2, you would use the raw_input function instead as steeldriver says, but really the solution is to use python3 as described above, which in spite of its name is effectively the default Python interpreter in Ubuntu. Inputs like 123 are Python expressions, but inputs like BILLY aren't, unless some variable by that name has been defined; this is why numerical input happened to work.


Should I be worried about this nvme error-log output?

Not really. It decodes to an invalid cmd request sent to the controller. Though the error count looks weird! Probably controller encountered some unsupported command or behaved incorrectly to an unimplemented command.
The other 0 field says there are no other errors encountered.


You need to install two software packages to make the internet connectivity work consistently without breaking. They are wvdial and gnome-ppp (The front-end tool to configure wvdial).

1) Install wvdial package

Open terminal,(alt+ctrl+t) and type the following command

sudo apt-get install wvdial

2) Install gnome-ppp

sudo apt-get install gnome-ppp

3) Open gnome-ppp from the terminal.

sudo gnome-ppp

4)You have to enter your docomo 10-digit mobile number in the Username & your password. Phone= *99***1# or if that doesnt work enter phone=*99#. Then press the Setup button below.

5) In the Setup window below, click the “Detect” button to identify the device ID of the USB port in which you have inserted your USB modem. The tool would automatically detect the Device, Type and Speed of your USB modem. Once it has deteced, please the “Close” button below.

Once this is done click on Connect!!!

You could also download and install ixconn. You can get it here.


Installed Ubuntu 15.10, but it doesn't boot

I might be stating the obvious here; did you actually install Ubuntu or just "try" it by running it from the USB?


Ubuntu will support any HDD you buy and almost all HDD's available in market mentions compatibility with Windows.


That one worked to me in ubuntu 12.04

edit /etc/rc.local to insert your preffered value:

gksudo gedit /etc/rc.local

add the following :

  sleep 1
    chmod a+w /sys/class/backlight/acpi_video0/brightness
    chmod a+w /sys/class/backlight/acpi_video1/brightness
    chmod a+w /sys/class/backlight/intel_backlight/brightness
    echo X >/sys/class/backlight/intel_backlight/brightness
    echo 1 >/sys/class/backlight/acpi_video0/brightness
    echo 1 >/sys/class/backlight/acpi_video1/brightness

X=191 adjust maximun brightness to me

This will work like a charm !


HDMI onboard sound works but no analog sound

I have the same card. It worked fine in 11.04 (not sure if it took any fixes), but I was struggling to get it to work after installing 12.04. Found a solution here that worked:
https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/703464

Open this file:

/etc/modprobe.d/alsa-base.conf

And add this line to the bottom:

options snd-hda-intel model=generic

Then, restart the computer. Hope this helps.


the problem suddenly solved.
follow this instruction.
here's my working configuration:

auto lo
iface lo inet loopback

auto p1p1
iface p1p1 inet manual
        bond-master bond0

auto p1p2
iface p1p2 inet manual
        bond-master bond0

auto bond0
iface bond0 inet static
        address 172.16.0.2
        netmask 255.255.255.128
        network 172.16.0.0
        broadcast 172.16.0.127
        gateway 172.16.0.1

        bond-mode 4
        bond-miimon 100
        bond-lacp-rate 1
        bond-slaves p1p1 p1p2


Cannot sign in my laptop after sudo admin problem in terminal

You installed 18.04 on your hard drive, right? So, go back to the live system (on USB?), use the live system to start your system, sudo su in and now mount the hard drive partition with your home directory (recommended to /mnt). The message says, your home directory has not been found, so the system has been forced to use / as your home directory as fallback. The reason is most likely the mv command you mention. Since you've put the space between the ~ and the rest, you moved your users home directory (or more likely the content of it) to the folder /Download/android-studio usr/local/. Using root in your live system, go to this folder, take a look at the content and try to recover your users home directory. You might want to make sure, you don't miss any hidden dot-files. You need to move the moved files back to where they came from. Once done correctly, you should be able to reboot, start with your installed system, login as user and sudo. Starting with the live system and mounting to /mnt, don't forget to go to /mnt/home, not /home.


Can't mount drive - no such file or directory

Usually, it's /dev/sdd1, not /dev/disk/sdd1. And spaces in names aren't usually replaced by hex codes, but just escaped or quoted: /dev/disk/by-label/New\ Volume or "/dev/disk/by-label/New Volume". Just use Tab completion to help you out:

sudo mount -t ntfs -o rw,auto,user,fmask=0022,dmask=0000,exec /dev/sd<tab> /mnt/NwVol
sudo mount -t ntfs -o rw,auto,user,fmask=0022,dmask=0000,exec /dev/disk/by-label/New<tab> /mnt/NwVol

Press Tab at the indicated points while typing the commands and the shell will try to complete the path for you.


I dunno about Zenity but it's brother Yad may work, http://rpm.pbone.net/index.php3/stat/45/idpl/17003956/numer/1/nazwa/yad

Run the below commands:

export DEBIAN_FRONTEND=noninteractive
sudo add-apt-repository ppa:webupd8team/y-ppa-manager
sudo apt-get -q -y update
sudo apt-get -q -y install yad

You can add an image with the --image='C:\this_is_sparta' option.

YAD follows the same syntax and everything but is far more powerful.


Can I somehow avoid having two versions of Steam?

I've had some success launching apps through wine from the Linux Steam client.  As Michael suggests, you need to use a shell script to launch them.

For example, I use this to launch path of exile, named poe.exe:

#!/bin/bash
unset LD_PRELOAD
export WINEPREFIX=/media/stephen/d_extra/PoE/
export WINEDEBUG=-all
cd "${WINEPREFIX}"
cd drive_c
cd "Path of Exile"
wine PathOfExile.exe

The game wouldn't launch for me without unsetting LD_PRELOAD.  Also, the permissions on the file had to be executable.

I set the permissions on the script (for example):

chmod 755 ~/bin/poe.exe

Then I use the Add non-steam game option, and then I browse to the script.

So, that's how you add a generic wine game...

To answer your question and to add a steam game, you need to create a script that calls the steam.exe and passes the game id.  This will result in launching a second instance of steam, but you wont have needed to have it running for the whole time, just while the second game is running.  So here's another script that kicks off the windows version of unturned by calling the windows steam client through wine with an appropriate url:

#!/bin/bash
unset LD_PRELOAD
export WINEPREFIX=$HOME/.unturned
export WINEDEBUG=-all
cd "${WINEPREFIX}"
cd drive_c
cd Program\ Files\ \(x86\)/Steam/
nice -n 19 wine Steam.exe -no-dwrite steam://rungameid/304930

In this case I don't know that the unset on LD_PRELOAD is needed, but my other scripts used it.

NOTE: The WINEPREFIX only needs to be specified if you specified a WINEPREFIX when installing steam (or other windows programs).  If you didn't specify one when installing steam for windows, then you wouldn't need one in your scripts.  And if that's the case, you will want to replace it with ~/.wine/.


Windows not booting anymore after using easyBcd

have you tried using a windows recovery disc.Cause there is an option of startup repair.

here's where you can get one-https://kickass.so/windows-7-x64-repair-disk-iso-t6446782.html


Virtualbox Windows 10 guest cannot boot from NVMe

The same problem here.
The VDI can be booted from using SATA Controller.
It doesn't work when I switched to NVME Controller.
Only showing the BLK storage not the FS.

However, using SATA Controller doesn't affect the SSD performance.

I'm using Intel SSD DC P3700 1.6T with Intel newest driver.
The SSD can reach 2.4GB/s (2.8GB/s given by Intel) read rate using gnome-disks as benchmark. (100 samples with 500MB sample size)


Ubuntu install CD hangs at 5 red dots while booting

Most often this happens because you have a bad disc. This is especially likely if you've already installed the same version of Ubuntu on this machine before, and didn't have that problem.

The disc could have been damaged, or it could have started out bad (for example, due to a bad ISO image).

Check it for defects on the machine you want to install it on. (That way, the disc gets checked, and so does the computer/drive's ability to read it.)
If that fails, make sure to MD5 test your ISO image before using it to make a new disc. If that fails, you'll have to download a new ISO image.

If all else fails, please consider using the text-based Alternate CD which contains a text-only installer to sidestep any graphics issues.


First ensure that the script has execute permission

sudo chmod +x start-tor-browser

you misstype the command, from inside the unzipped directory run the command

./start-tor-browser

or click on the start-tor-browser this shows you dialogue choose run


How do I run terminal code on startup and running VPN on startup?

Put the command in /etc/rc.local. The /etc/rc.local file already exists, and it is a script that is always run on startup. You can just edit it and add the echo line. Note that command in this file are run as root, so you can simply add echo -n 0 > /sys/module/video/parameters/brightness_switch_enabled and skip the sudo:

sudo sed -i 's/^exit 0/# &/' /etc/rc.local
sudo tee -a /etc/rc.local <<EOF
echo -n 0 > /sys/module/video/parameters/brightness_switch_enabled
exit 0
EOF

If you know how to edit the file, you can edit it and add echo -n 0 > /sys/module/video/parameters/brightness_switch_enabled to the file before the exit 0 line, instead of running the above commands.

Note that the script is run with the shebang line #! /bin/sh -e, so if any commands in it fail, the entire script fails. This may cause problems in booting.


VLC opens and closes immediately when I play video files

Open VLC Player go to Tools in upper bar and select Preferences. Switch to Video settings, disable Accelerated Video Output and change Output to OpenGL or try other options if OpenGLs are not working.


Everything runs fine after checking the box

Force GRADLE_USER_HOME to use workspace

on the Jenkins Gradle Plugin.

Why this makes it work, I don't know. The environment variable $GRADLE_USER_HOME for the job was set to /home/espresso/.gradle and the job, as root, had all permissions for that folder. Also, I don't understand why missing permissions in one gradle folder would lead to the job not being able to create files in another gradle folder.


Configure `apt-get` to not have to get my confirmation for small packages?

This post explains when apt will ask for confirmation:

Extra packages beyond the one in the request will be installed
Important packages will be removed
A held package is being changed

You can override the request once by adding the -y flag (sudo apt-get install -y foobar) or always by modifying the apt configuration.


How to see CPU and memory usage for a program after running it

time command will give you the run time, with user/total/spu breakdown, which is the other factor you wanted.

Memory is trickier and you may need to run a parallel command to monitor that. Can you include commands in your script(s)?


grep form bottom and display lines after match

I would use a perl command like this:

perl -ne 'if($_=~/^-=Begin/){@last=@block; @block=(); push(@block,$_);}else{push(@block,$_)}; END{@last=@block; print @last}'

Explanation:

perl -ne ' -> read input line wise
if($_=~/^-=Begin/){@last=@block; @block=();push(@block,$_);} -> flush last block to array last and start new block if the line begins with -=Begin
else{push(@block,$_)}; -> add current line to block
END{@last=@block; print @last}' -> flush last block and print it

To read from sid_changes.log and write to outfile.log, you can run it like this:

perl -ne '...' < sid_changes.log > outfile.log


Migrate from Ubuntu 18.04.1 LTS to Ubuntu Server 18.04.1

You can use Tasksel, a Debian/Ubuntu tool installed by default on server editions and that is useful to manage multiple related packages.


How to install everything on sources.list?

Figured it out.
I just had to do apt install ubuntu-desktop.

I looked over the history.log and it seems like only default Ubuntu packages were uninstalled by the autoremove.

I don't know if this happened because of my prior installation of openSUSE Tumbleweed or not.


How many partitions can I create on my hard disk?

This depends on what partition scheme you are using. The traditional approach (MBR partitioning) only allows 4 primary partitions. The trick is to create one of the four as an extended partition and then create further logical partitions within that.

The more modern GPT partitioning scheme allows as many partitions as you like. To test which of the two you have, run

sudo parted -l

Look in the output for a line like this:

Partition Table: msdos

The line above means the disk is using an MBR scheme. If you are using GPT instead, you'll see:

Partition Table: gpt

You can read more about the differences here.


Firstly I recommend you to clean the drive that you installed ubuntu and also clean your usb. And add burn ubuntu back into the usb using win32diskimager or any other disk burner you use. Also, when you boot make sure you choose between legacy(which just says your usb name) and UEFI.
If your dual booting along side windows or mac, you must have the same partition type. UEFI can not be next to Legacy.
Now just do the install again and if it doesn't work pm me and I'll try to help.


After a lot of sweat I figured it out.

Apparently, installing the new wlan drivers blacklisted the ethernet drivers.

I opened the file /etc/modprobe.d/broadcom-sta-common.conf¹ and commented out the line blacklisting the ethernet adapter (which was b44 by the way).

The file now looks like this:

# wl module from Broadcom conflicts with ssb
# We must blacklist the following modules:
#blacklist b44      <--Commented out this line
blacklist b43legacy
blacklist b43
blacklist ssb
install wl /sbin/modprobe --ignore-install wl $CMDLINE_OPTS

End result, the ethernet works like expected. As a matter of fact, I'm replying over ethernet.

¹ My attention has been drawn to the fact that the filename may not be the same on all systems.
One user reportedly found the blacklist data in /etc/modprobe.d/blacklist-bcm43.conf. I am however unable to determine which configuration (version of Ubuntu, OS language, etc) this manifests on.


pdsh works well standalone, but doesn't work in script

Since this error comes from the underlying SSH process, we can actually pass an option to it to either automatically add the host to the known hosts or ignore the host key checking this one time. You can use the PDSH_SSH_ARGS_APPEND environment variable to pass these options to the underlying process.

PDSH_SSH_ARGS_APPEND="-o StrictHostKeyChecking=no" pdcp -R ssh -w ^all_hosts hadoop-2.5.1.tar.gz /opt

This environment variable works for straight pdsh as well.


Could you give the output of df -h ?

I think it is possible if you have enough space available in the big disk to copy all the ubuntu filesystem using dd to it. Then you will have to manually modify the grub.

Thanks it seems to me that you have your /home in the big disk, and
the root / in the small one.

the output of sudo fdisk -l will be helpful to clarify.

Possibly 3 physical disks in sdb(all windows) sda(home and scratch) and sdc(EFI and linux fs).

To be sure please do lsblk -io KNAME,TYPE,SIZE,MOUNTPOINT

you can use the partition sda2 scratch to host your windows.


GitKraken Snap - Sign in with Github button not working

I had the exact same problem. I signed into Github and revoked all open sessions and revoked the Authorized Oauth Apps and then the connect to github button in Gitkraken started working again.
Revoke Access to GitKraken in Github:

Settings

Applications

Authorized Apps

Revoke Access GitKraken


Laptop freezes on boot, not sure where to start

It turned out to be an upgrade that wasn't finished. I started in rescue mode and run the command to finish the upgrade. Then it worked.


Not able to understand "Attention" para from USN-2872-2: Linux kernel (Wily HWE) vulnerability

This message just explains that there's a new version number for the kernel which has been patched. It isn't something you need to worry about unless you have previously loaded third-party modules into your kernel manually. Any kernel modules loaded with dkms (such as virtualbox) will essentially take care of themselves.

Doing the normal update/upgrade procedure will ensure you have the newest, most secure version of your kernel.

With a desktop system, use the Software Updater package as per normal to install updates.

If you're using a server system, issue the following commands, with a user who has sudo privileges (the first user you created will have these by default).

sudo apt-get update

Followed by:

sudo apt-get dist-upgrade

You will need to reboot your machine to use the updated kernel.


Ubuntu stuck on loading on splash screen

Note: If you can't boot, then try booting with nomodeset, and do this edit. Or, do this edit in Recovery Mode.

You may have a problem with an older computer, with an older GPU. Try this...

sudo -H gedit /etc/gdm3/custom.conf # edit this file if you're in Ubuntu

or

sudo pico /etc/gdm3/custom.conf # edit this file if you're in Recovery Mode

change:

#WaylandEnable=false

to:

WaylandEnable=false

Save the file and quit gedit. Then reboot.


I'd try to insert the complete path of the mount point. For example:
/usr/bin/sshfs he@192.168.1.118:/klipp /home/he/klipp


How to use keyboard keys as mouse buttons?

Yes you can, Install btnx
After installation it will be found under Application>>System Tools


python3 RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used

Here, you can see a discussion about that:

https://bugs.python.org/issue32236

And here a fix:

https://github.com/benoitc/gunicorn/pull/2146

But remember ... it is not a bug, it's a feature :)


Issue with vboxadd setup and I think my Ubuntu may be running the wrong kernal

Begin by updating your kernel to the latest version as shown here

Check to insure that your kernel version is correct for your version of Ubuntu with the command uname -r if not, issue the command sudo update-grub and reboot into the most current kernel. Try your vboxadd command again.


From man sources.list:

  Filenames [in /etc/apt/sources.list.d/] need to have either the
  extension .list or .sources depending on the contained format.

So I would suggest renaming it:

sudo mv ros-latest-list ros-latest.list


If you choose "Sort By Name" from the context menu, this should give you what you are looking for (AFAIK).

Please note that the results may not be 100% to your liking, depending on the sorting algorithm used by Nautilus.


Yes, try Pinta

  Pinta is a drawing/editing program modeled after Paint.NET. It's goal is to provide a simplified alternative to GIMP for casual users. It is currently early in development.

Homepage
PPA