Kafka is a distributed streaming platform. It is useful for building real-time streaming data pipelines to get data between the systems or applications. Another useful feature is real-time streaming applications that can transform streams of data or react on a stream of data. This answer will help you to install Apache Kafka on Ubuntu 16.04 and later.
1. Install Java
Apache Kafka required Java to run. You must have Java installed on your system. Execute the below command to install default OpenJDK on your system from the official Ubuntu repositories. You can also install the specific version of from here.
sudo apt update
sudo apt install openjdk-8-jdk

2. Download Apache Kafka
Download the Apache Kafka binary files from its official download website. You can also select any nearby download mirror.
wget http://www-us.apache.org/dist/kafka/2.4.0/kafka_2.13-2.4.0.tgz

Then extract the archive file.
tar xzf kafka_2.13-2.4.0.tgz
mv kafka_2.13-2.4.0 /usr/local/kafka

Alternatively you can install the kafka snap package in all currently supported versions of Ubuntu.
sudo snap install --channel=beta kafka

3. Setup Kafka systemd unit files
Next create systemd unit files for the Zookeeper and Kafka service. This will help to manage Kafka services to start/stop using the systemctl command.
First, create systemd unit file for Zookeeper with below command:
vim /etc/systemd/system/zookeeper.service

Add the below content:
[Unit]
Description=Apache Zookeeper server
Documentation=http://zookeeper.apache.org
Requires=network.target remote-fs.target
After=network.target remote-fs.target
[Service]
Type=simple
ExecStart=/usr/local/kafka/bin/zookeeper-server-start.sh /usr/local/kafka/config/zookeeper.properties
ExecStop=/usr/local/kafka/bin/zookeeper-server-stop.sh
Restart=on-abnormal
[Install]
WantedBy=multi-user.target

Save the file and close it.
Next, to create a Kafka systemd unit file using the following command:
sudo nano /etc/systemd/system/kafka.service

Add the below content. Make sure to set the correct JAVA_HOME path as per the Java installed on your system.
[Unit]
Description=Apache Kafka Server
Documentation=http://kafka.apache.org/documentation.html
Requires=zookeeper.service
[Service]
Type=simple
Environment="JAVA_HOME=/usr/lib/jvm/java-1.11.0-openjdk-amd64"
ExecStart=/usr/local/kafka/bin/kafka-server-start.sh /usr/local/kafka/config/server.properties
ExecStop=/usr/local/kafka/bin/kafka-server-stop.sh
[Install]
WantedBy=multi-user.target

Save the file and close.
Reload the systemd daemon to apply the new changes.
systemctl daemon-reload

4. Start Kafka server
Kafka required ZooKeeper so first, start a ZooKeeper server on your system. You can use the script available with Kafka to get start a single-node ZooKeeper instance.
sudo systemctl start zookeeper

Now start the Kafka server and view the running status:
sudo systemctl start kafka
sudo systemctl status kafka

All done. The Kafka installation has been successfully completed. The next part of this answer will help you to work with the Kafka server.
5. Create a topic in Kafka
Kafka provides multiple pre-built shell script to work on it. First, create a topic named "testTopic" with a single partition with single replica:
cd /usr/local/kafka
bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic testTopic
Created topic testTopic.

The replication-factor describes how many copies of data will be created. As we are running with a single instance keep this value 1.
Set the partitions options as the number of brokers you want your data to be split between. As we are running with a single broker keep this value 1.
You can create multiple topics by running the same command as above. After that, you can see the created topics on Kafka by the running the below command:
bin/kafka-topics.sh --list --zookeeper localhost:2181
testTopic
TecAdminTutorial1
TecAdminTutorial2

Alternatively instead of manually creating topics you can also configure your brokers to auto-create topics when a nonexistent topic is published to.
6. Send messages to Kafka
The "producer" is the process responsible for putting data into our Kafka. Kafka comes with a command-line client that will take input from a file or from standard input and send it out as messages to the Kafka cluster. The default Kafka sends each line as a separate message.
Let's run the producer and then type a few messages into the console to send to the server.
bin/kafka-console-producer.sh --broker-list localhost:9092 --topic testTopic

> Welcome to kafka
> This is my first topic

You can exit this command or keep this terminal running for further testing. Now open a new terminal to the Kafka consumer process on the next step.
7. Using Kafka consumer
Kafka also has a command-line consumer to read data from the Kafka cluster and display messages to standard output.
bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic testTopic --from-beginning
Welcome to kafka
This is my first topic

Now If you have still running Kafka producer (Step 6) in another terminal, just type some text on that producer terminal. It will immediately be visible on consumer terminal. See the below screenshot of Kafka producer and consumer working:

Source: How to Install Apache Kafka on Ubuntu 18.04 & 16.04


I hope I understand your question correctly. You want to login from several remote computers into the same PC session, right?

I have a setup like that when I have a computer I work on and sometimes I need to go to different rooms and need to look up something locally. Then I just use VNC (thats one of the protocols for Remote desktop) to connect to the computer. You need to run a VNC server on that computer. You would need to enable "multiple" or "shared" sessions. Since i am logged in locally the session is never closed when I remotely log off. I can even be logged in from different remote rooms to the computer. Works fine.
As usual with Linux there are several programs to choose from e.g."vnc4server" or "tightvncserver", "x11vnc". I did use X11vnc and can not say a lot about the others. I guess there are pretty comparable. X11vnc has a bit old-fashioned look and feel. I would recommend to check out the Ubuntu's wiki pages for those programs and decide by the best installation tutorial.

In case for some reason you can not have a session running on the target computer. There is a more advanced way to set up a re-entrant session capability for remote logins. That could be used for a remote headless PC that does not have a local user. When you would remote login there, a new session would be started. When you log off it would be closed again.

CatMan

By the way, if you are on the web, be sure to set up VNC over SSH.


To see what is using your disk space, you could use the Disk Usage Analyzer tool "baobab".

If not installed by default, install via the Software Centre, or from a terminal with

sudo apt-get install baobab

This program works better if run as root, because there are certain files not visible to normal users, so run it with

pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY baobab

This should show you what is using up your disk space.

The command df -h will also give you a rough indication.


Guest Resizing Ubuntu 10.04 64-bit in VMware Player not working

I don't know the solution to this problem, but I'm also running Ubuntu 10.04 as VMware guest and thought some observations might be helpful. I normally use VMware Workstation (7.1.0 build-261024), but I did load this VM with the Player to verify that it behaved in the same fashion.

My VM was originally a fresh install, rather than an upgrade. The resizing appears to be working as intended. I don't know if it's relevant but the Ubuntu guest doesn't have the feature where the mouse moves seamlessly between host and guest, but I don't think I've ever used that with an Ubuntu guest on VMware.

In the virtual machine settings on my machine, the display setting is set to "Use host settings for monitors".

You mentioned that you manually created some configuration in xorg.conf, but I notice that my VM doesn't have an xorg.conf file but does have a whole bunch of available modes in the display settings control panel. I think it may be worth investigating if something changed with the X server configuration in the upgrade that could be resolved by reinstalling it with the default settings.


As mentioned in this comment

sudo apt purge libapache2-mod-php7.0

worked for me too.


How can I add a theme to the Appearance settings tab in 11.10

I took a look at the source code for gnome-control-center (specifically the cc-background-panel.c file) and found the answer.  The list appears to be hard-coded in the source:

static gchar *themes[] = { "Adwaita", "Ambiance", "Radiance", "HighContrast",
    "HighContrastInverse" };

This was added by Ubuntu (in 04_add_theme_selection.patch) to the original gnome 3 gnome-control-center source.  It appears that they did not plan to allow anyone to add 11.10 themes at this time.  Presumably the list will be editable or generated dynamically in future versions of Ubuntu's theme selection patch.


Why does this APT package have a four-part version number, with a dash?

In case of the linux kernel first try:

$ uname -r

This shows you the current version of the linux kernel you are currently running. There you will see a version like the version of the package. But you are right, that this is not the version of the kernel you can find on kernel.org. The number that is following the dash represents the kernel revision of your current Ubuntu.

Every time when there is a bug or security issue fixed the number following the dash will increased.


Lost data due to installing Ubuntu on the wrong partition

To minimise the risk:

Do not boot the system
Use a live system and mount the device as read only

There are certain data recovering programs (list on Wikipedia: https://en.wikipedia.org/wiki/List_of_data_recovery_software).

This software will not recover all data (because it is overwritten) and file names might be wrong. But it's better than nothing.

To prevent this happening again it is always recommended to make images of your important volumes.


The syslog message turned out to be the answer to my question. All I had to do was create /var/spool/anacron and I tested everything using a solution I found here
sudo mkdir /var/spool/anacron
sudo anacron -f -n

I then was able to watch things progress normally in /var/log/syslog:
sudo less +F /var/log/syslog

Jan  9 12:23:18 skmaiwlm anacron[31500]: Anacron 2.3 started on 2018-01-09
Jan  9 12:23:18 skmaiwlm anacron[31500]: Will run job `cron.daily'
Jan  9 12:23:18 skmaiwlm anacron[31500]: Will run job `cron.weekly'
Jan  9 12:23:18 skmaiwlm anacron[31500]: Will run job `cron.monthly'
Jan  9 12:23:18 skmaiwlm anacron[31500]: Jobs will be executed sequentially
Jan  9 12:23:18 skmaiwlm anacron[31500]: Job `cron.daily' started

System happiness restored.


How to make wallpaper that changes throughout the day- brightness to be precise

Wherever I've written USER, change it to your username (e.g. mine is tim).

Create a new folder, perhaps in your pictures folder, and navigate to it:

mkdir /home/$USER/Pictures/Wallpaper
cd /home/$USER/Pictures/Wallpaper

make a new file, make it executable, and edit it:

touch bgchange.sh
chmod +x bgchange.sh
gedit bgchange.sh

Add the following to the file (where is says USER below you need to change this to your user):

#! /bin/bash

gsettings set org.gnome.desktop.background picture-uri 'file:///home/USER/Pictures/Wallpaper/'$(date +%H)'.png'

That will change the image on the hour to an image with the hour name (i.e. at 1pm (13:00) it will change the background to an image called 13.png.

Now to create the images. Simply run this command:

for i in {0..23}; do convert -brightness-contrast $(($i*2))x0 image.png $i.png; done

You will end up with a series of images, each "2" brighter than the previous. The darkest (original) will be 0.png, the brightest 23.png. It will look a little like this:

You may want to rename these to change the order, but make sure there is an image for every hour (0 to 23).

Finally, the script needs to start at boot:

Run this command, and press enter (2 is selected by default):

crontab -e

and add this line:

0 * * * * /home/USER/Pictures/Wallpaper/bgchange.sh

Then press Ctrl+X, type Y and press enter. It will start each time you boot the computer.

My pronouns are He / Him


Cron Monthly job works randomly using `0 0 1 * *`

The reason the job only ran on New Year's Eve is all the other first days of the month your machine was shut off at the stroke of midnight.
The easiest way is to not use sudo crontab -e but rather create a bash script in the directory /etc/cron.monthly. Make sure the script filename doesn't contain a . in it. Filenames containing a . such as Monthly job.cron or MonthlyUpdate.sh will not run.

In this case use:
sudo -H gedit /etc/cron.monthly/journal_vacuum

Insert these lines:
#!/bin/sh
#
# NAME: journal_vacuum
# DESC: Reduce size of system journals (journalctl) each month.
# DATE: January 9, 2019.

# NOTE: Replaces `0 0 1 * * /bin/journalctl --vacuum-size=200M` which
#       which only runs if machine is turned on at midnight.

/bin/journalctl --vacuum-size=200M

Save the file and exit gedit. Make the script executable using:
sudo chmod a+x /etc/cron.monthly/journal_vacuum

Now the first time the machine is turned on each month, be it 1st day of month at 7:00am or even 2nd day of month the cron job will run.

Update 1
Once per month is unpredictable. The cron job was setup on January 9, 2019 and then ran on January 30, 2019:

Hopefully the cron job runs again on Feb 1, 2019 as anticipated!

Update 2
The script in /etc/cron.monthly/ did not run on February 1, 2019. Digging deeper I found this explanation:

[SOLVED] cron.monthly not running - everything else is

Following the link's explanation I discovered:
$ sudo cat /var/spool/anacron/cron.monthly
20190130

Therefore with sudo powers I used:
rick@alien:~$ sudo -i
root@alien:~# echo 20190101 > /var/spool/anacron/cron.monthly
root@alien:~# exit

Now cron believes that last time monthly jobs were run is January 1, 2019.
Time to reboot and test...

Update 3
After reboot an email was almost instantly sent:
Anacron <XxxxxXxxxx999@gmail.com>    7:45 AM (3 minutes ago)
to root, bcc: XxxxxXxxxx999

/etc/cron.monthly/journal_vacuum:
Vacuuming done, freed 0B of archived journals on disk.

Now we can see:
$ sudo cat /var/spool/anacron/cron.monthly
20190203

The last step is to replace 20190203 with 20190201 using technique in Update 2.


What is the current frequency of my processor (CPU-Z equivalent)?

The file /proc/cpuinfo contains information about the cpu(s) on your system. To just get the clock rate, you could run cat /proc/cpuinfo | grep "cpu MHz".


libkmod: Error ../libkmod/libkmod-config.c:686 kmod_config_parse: /etc/modprobe./blacklist-nouveau.conf line 5 ignoring bad line starting with 'alia'

It seems that the file  /etc/modprobe/blacklist-nouveau.conf contains the invalid verb alia in line 5 which should probably be alias. Are you sure you copied the code listing from the referred answer correctly? It should read:

blacklist nouveau
blacklist lbm-nouveau
options nouveau modeset=0
alias nouveau off
alias lbm-nouveau off


DNS configured in network manager but not working

Network-manager use dnsmasq as a non-caching local dns server to do it's resolving. It should forward DNS request to the DNS you have specified in network-manager config.

Seeing 127.0.1.1 in /etc/resolv.conf is normal.

It does not work because you miss dnsmasq which is a dependancy of network-manager.

Run in a terminal:

sudo apt-get -f install

It should correct your broken dependancy and install the missing dnsmasq package.

If not install it yourself, with

sudo apt-get install dnsmasq-base


Possible to run applications from the cloud?

You may run a full Ubuntu desktop in the cloud, however multimedia apps will suffer because of network latency and throughput

http://cloud.ubuntu.com/2010/11/show-off-ubuntu-desktop-on-cloud/


By dropping cache you decrease performance, caching data in RAM makes system faster (RAM is faster than HDD/SSD). But if any application needs more RAM, then cache is automatically released. Check this: http://www.linuxatemyram.com/

Look at -/+ buffers/cache:  you have free 1.4GB in RAM


Neither able to boot ubuntu 20.04, nor able to reinstall from live usb

You have BIOS 1.4.1.

Current BIOS is 1.9.0 and can be downloaded from here.

Follow the procedures listed here.


Install Kubuntu 18.04 on MacBook Pro 2018

I gave up on it as it doesn't seem to be a viable thing to do.

As pointed out in an answer that I got asking on reddit:

https://www.reddit.com/r/macbook/comments/9s3lqf/installing_linux_on_new_macbook_pro_2018/
https://www.reddit.com/r/Ubuntu/comments/9s3oxt/installing_linux_on_new_2018_macbook_pro/

  Most of your hardware is not supported, yet (by the kernel) and definitely not optimized for battery life.
  You can get it running without problems, but there'll be no audio, touchbar and 2 hours battery max.

That's backed up by the fact that I can't use my keyboard nor touchpad when at the installer-stage. Don't know whether they would work when K/Ubuntu is installed since I never got that far.


How Ubuntu/Linux defines value to force check disks/partitions on boot?

The dumpe2fs command is the one to get this information for you, so long as you're using an ext* filesystem. Ubuntu tends to use ext4 as default. I tend to use it with the -h option, to only output the summary. This contains the most useful information.
To get the info you require, type:

dumpe2fs -h /dev/sda1

'Mount count', and 'Maximum mount count' are the fields you're looking for, but 'Check interval' also influences disk checks based on time. I've found that if you cancel a disk check 'Maximum mount count' changes to -1, so no disk checking will take place based on number of mounts.

To change the maximum mount count or interval, use the tune2fs command the -c option controls max mount count, an -i controls interval. man tune2fs contains more info about this command.


phani@pinaki:/run$ ls -l /var/lock

 lrwxrwxrwx 1 root root 9 Dec 31 22:08 /var/lock -> /run/lock

/var/lock in soft link to /run/lock where /run is mounted as tmpfs file system where kernel or applications keeps all pid (like /run/sshd.pid) files to track for their reference

Ubuntu has migrated away from /var/run, /var/lock and /dev/shm and now uses /run, /run/lock and /run/shm instead (respectively).

Debian ReleaseGoals RunDirectory


Completely disable PS4 controller's audio devices?

Use the pavucontrol tool. One silly thing I missed when I was attempting this: there are more tabs for the tool than are visible at one time; use the arrow buttons next to the tab handles to see more of them!
With the controller plugged in, find the Configuration tab, and find the controller device in the list. Mine says "DualShock 4 [CUH-ZCT2x]". Select Profile: Off.


What's the deal with all these Chuck montages?

Chuck is Chuck Short - ~zulcss - I believe he has become famous due to his love of WHAM, Boy George and the Village People and is leveraging his fame to teach people the Ubuntu Dance (as seen below).


Ubuntu 18.04 fails to load after Gnome Display Manager

I had this same problem. It happened after I installed kernel 4.15.0-24. The easiest solution was choosing an older kernel and set it as default.


How to select from which source a software must be installed?

The kgoetz PPA doesnt have a version of FreeCiv for Lucid.

Probably the best source of opensource Lucid games - and the latest version of FreeCiv is playdeb.net.

They have packaged v2.3.1 for Lucid - download links

Its probably best to stick with the "stable" versions in the repository.  However, I've found that the playdeb.net games are actually packaged very well - and the developers behind the site are very responsive to any issues and if you contact them, usually turn around a packaging fix very quickly.

You are correct to use synaptic manager to force versions - I rarely use this option unless there is a package issue with the latest update.

Obviously, if there isnt a newer version available either through PPAs or the standard repositories - you will not be able to force versions and hence the menu option would be greyed out/disabled.


How to share forder between several users?

You could give all users r/w/x permission on the directory:

chmod -R guo+rwx /path/to/shared/directory

If you only want to enable certain users to use the directory, then create a new user group, add all authorized users to it: (All these commands require root/sudo)

#Create group
groupadd projectshare
#Add users to the group. Execute for each user:
usermod -a -G projectshare <username>
#Assign group as owner of directory
chown -R <yourusername>:projectshare /path/to/shared/directory
#Assign file permissions:
chmod -R ug+rwx /path/to/shared/directory

Now all members of the group have full access to the directory and everything in it.


There's no need to install a Windows program to view GRIB files in Ubuntu. You can install zyGrib GRIB file viewer in all currently supported versions of Ubuntu by running the command:

sudo apt-get install zygrib

The zyGrib website has animated samples that can be viewed at the website and also downloaded and opened in zyGrib GRIB file viewer locally to test if the application is working correctly. To change the weather map to a different day and time either click the forward/back arrows or move the slider under the weather map.


Which ISO do I want for a VM on Mac OS X?

virtual box generates smt similar like bootcamp and let's you install whatever you want just install the regular 64 bit and i think you'd be good to go (I'm not sure but uefi is about bios, you don't have to do any settings for uefi in vm since is doesn't have to anything with bios


You could use ~/.ssh/config. It's the per-user configuration file for SSH (and commands based on SSH like scp and sftp). Create it, if it does not exist, and add:

Host 192.168.0.42
    User "User Name Spaces"

For example:

Host localhost
    User "foo bar"

Then:

$ scp test.txt  localhost:
foo bar@localhost's password:

(I don't actually have a user named foo bar, so I couldn't finish the test.)

You could also create an alias in .ssh/config:

Host foo
    Hostname 192.168.0.42
    User "User Name Spaces"

Then you can conveniently do:

ssh foo
scp file foo:

And avoid having to type the whole IP address.

An alternative, if you have tar available on both ends:

tar c myfile.txt | ssh "User Name Spaces"@192.168.0.42 tar x

tar creates a tar archive, saved to standard output and piped through to SSH, where it becomes the input to tar x, which extracts the archive. You can use options like -C to change the directory (or do so as a shell command before tar: ssh … 'cd foo; tar x). You could also use compression and save a bit on network bandwitdh:

tar zc myfile.txt | ssh "User Name Spaces"@192.168.0.42 tar zx


Decimal point from number pad won't work on the calculator but will everywhere else

To ensure the keypad works, make sure that the "Num Lock" or "NumLk" key is pressed.


How can I uninstall oracle java 8 and install oracle java 7 instead with webupd8 installer?

Try with this code in terminal to remove java 8:

sudo apt-get purge oracle-java8-installer

Then type:

javac -version

The output must be:

javac: command not found

and to install java 7 in Ubuntu I use this code in terminal:

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer

After that type the following to see if there is java installed:

java -version

The output must be:

java version "1.7.0_80"


Xubuntu 13.10 Blank Desktop after Update

This is a last-chance solution, offered only if no one has a better solution. Either

A) do Ctrl-Alt-F1 which will get you into a text-only terminal emulation window, or

B) reboot from a LiveCD or flash drive

-

then backup everything in and under home to a flash drive or other external storage.

Then, wipe the hard drive completely and reinstall 13.10 from scratch.


How to install fresh linux distro without causing any change to home directory logins and permissions?

In the "Something Else" install choice, you can tell it to use your existing home partition. Be Very Sure to uncheck the "Format" box!
Your root partition is where your system, and its configuration files, and all the packages you've installed, and all the configuration changes you've made, etc is going to be changed. Effort is made to preserve user configuration choices, but it is not always possible.
You can preserve the state of the above. Read man dpkg sources.list group id groups shadow; man -a passwd.
I've found a complete, readable backup (of root and home) essential in tasks similar to yours. It's very handy to be able to
see your system as it was when it last  worked.


19.10 laggy & unstable. 18.04 lacks fractional scaling. What should i do?

Your laptop is the slowest Asusbook 13; all other models have better processors. The Windows drivers for every function in it have been optimized by the world's largest software company, whereas Ubuntu development is predominantly a labor of love. Asus does not provide support for Ubuntu, either, so it's not surprising you may have to make changes to improve performance.

Next, look at alternative desktop environments which are available as supported Ubuntu 'flavours'; see and download from https://ubuntu.com/download/flavours .  GNOME3 is heavy and slow by comparison to all the alternatives.


How do I stop my ethernet network connection from dropping?

Download the official realtek driver.

http://www.realtek.com/downloads/downloadsView.aspx?Langid=1&PNid=5&PFid=5&Level=5&Conn=4&DownTypeID=3&GetDown=false#2

Then remove the r8169 module from the linux kernel.

# rmmod r8169

<Quick install with proper kernel settings>
Unpack the tarball :
# tar vjxf r8168-8.aaa.bb.tar.bz2
Change to the directory:
# cd r8168-8.aaa.bb
If you are running the target kernel, then you should be able to do :
# ./autorun.sh (as root or with sudo)
You can check whether the driver is loaded by using following commands.
# lsmod | grep r8168
# ifconfig -a
If there is a device name, ethX, shown on the monitor, the linux
driver is loaded. Then, you can use the following command to activate
the ethX.
# ifconfig ethX up

Finally, blacklist the r8169 driver add the following to /etc/modprobe.d/blacklist.conf:

#blacklist r8169 driver
blacklist r8169

I found it at http://www.rvdavid.net/how-to-get-gigabit-speeds-from-rtl81118168b-pci-express-gigabit-ethernet-controller-on-ubuntu-linux/ and it works. Now it's all good with net speed.


Virtualbox on Ubuntu 12.04 and 3.5 kernel compilation problem

This is a known bug in VirtualBox: additions will not compile with 3.5 kernels. You will need to update VirtualBox to, at least, version 4.1.20, where it's solved.

Some people in the VB forums reported success running 4.1.20 additions on 4.1.18 VirtualBox, but it looks quite a risky and untested idea to me.


While installing Android Emulator (SDK) I am having an issue with the /opt directory

the command is incorrect. When you have completed the previous commands you are still in the directory /opt and android-sdk-linux is a subdirectory of it, and tools is a subdirectory of android-sdk-linux, so you cd to it like this:

cd android-sdk-linux/tools

without the leading /, which signifies the root directory right at the top. You can see that /android-sdk-linux/toolsdoes not exist if you ls the root directory

ls /

see? no android-sdk-linux here. But you see opt which is where you were before... That's why its location is /opt

If you are not in the /opt directory, (for example you opened a new terminal) you need to use the full path

cd /opt/android-sdk-linux/tools

The directory may possibly have a different name so do

cd /opt; ls

and you will see, if not exactly, then something like android-sdk-linux use the correct name:

cd android-sdk-linux; ls

now you should see tools

cd tools

and now you can run your executable.

Note: If you already closed it after step 6, to progress to step 7 in the tutorial, you should repeat the last two steps:

cd /opt/android-sdk-linux/tools
./android


UFW occasionally blocking HTTPS (443/TCP) although configured to allow that port on Ubuntu 16.04

Your two example log entries are actually tcp session termination type packets. For TCP connections, Linux tends to use a "half-duplex" close sequence where either side of the session can initiate connection termination via a single 2 way FIN-ACK handshake (which puts the connection into the CLOSE_WAIT state), instead of a full 4 way FIN-ACK handshake. What very often happens, particularly with a router in between, is one side thinks the session has been closed and the other doesn't. Your computer has terminated and forgotten about the session, and so considers the packets as invalid new session opening packets and blocks them. No harm done, the actual session worked fine.

The important information here are the TCP flags, "RST" (Reset), and "ACK FIN" for your two examples.


port forwarding to Arduino device on home network

Try this

Check first with cat /proc/sys/net/ipv4/ip_forward is response 0 or 1. If is 0 run command

 sudo echo 1 >/proc/sys/net/ipv4/ip_forward

This will enable ip forwarding

Then edit and add before filter section in /etc/ufw/before.rules(top of file):

 sudo nano etc/ufw/before.rules

*nat
:PREROUTING ACCEPT [0:0]
-A PREROUTING -i eth0 -p tcp --dport 225 -j DNAT --to-destination ip_address_of_Arduino
COMMIT

Then restart ufw.

Problem is place of the rule.

Your *nat table is on begining and can not show again at the end of file . Move your rule from line 82 belowe PREROUTING

Should look like this

*nat
:PREROUTING ACCEPT [0:0]
# Port fw
-A PREROUTING -i eth0 -p tcp --dport 225 -j DNAT --to-destination      ip_address_of_Arduino

:POSTROUTING ACCEPT [0:0]
# Forward traffic from eth1 through eth0.
-A POSTROUTING -s 192.168.1.0/24 -o eth0 -j MASQUERADE

# don't delete the 'COMMIT' line or these rules won't be processed
COMMIT

After this start table *filter and the rest of ufw configuration.


Install the Software app in Ubuntu 20.04 with sudo apt install gnome-software

Search for Snap Store in the Software app, click on Snap Store to go to the Snap Store screen, and click the  Launch  button to launch it from the Software app.

After the Snap Store is open it will prompt you in the GUI to get the required updates. You will also get a popup authentication window if you need to authenticate with your password in order to update the Snap Store.

Check if the Snap Store works by searching for an app that has a snap package like gedit or emacs.


There has to be an easier way to install .tar.gz files

A .tar.gz is just a compressed archive, equivalent to a .zip; they can contain anything. In the sense you mean though —distributing applications— source archives are not the primary way we install things in Ubuntu. They aren't trying to be the Linux-equivalent of an .exe installer. Here's what we have in the order I would expect somebody to need them:

The Software Centre, Apt and Ubuntu's repositories. These are full of pre-compiled software which is updated on a regular basis for an amount of time (based on your release of Ubuntu). These are considerably easier to install from than Windows.
PPAs (Personal Package Archive) these are mini-repositories that can be created by anybody which which to store and redistribute software. Many applications have a developer PPA where they keep their nightly builds. After you add a PPA to your system, you can browse from the SC.
Other repositories: Some software (eg Chrome) hosts their own repository. You add the repo, and then you can install the software with one command or a few clicks via the SC.
.deb files. The options above are just databases containing .deb "packages" but they are also sometimes distributed on their own. They can be installed by double-clicking (which will open them in the SC). Automatic updates are not provided unless a newer version is available in the repos.
Binary installers (eg .run and .sh files). The above only work natively on Debian-based Linux distributions so some closed source software is only available as a cross-distribution installer. Automatic updates are generally not available so these are probably most equivalent to .exe installers.

Past that point, yes, you're looking at needing to extract, make and sudo make install (or sudo checkinstall which creates a package and makes removing/updating easier)... But I need to stress that you would go through exactly the same battle on Windows if there wasn't a binary build for you. I freely admit it's rare in Windows, but it's actually also a lot harder to compile things there.

For the examples you gave:

Teamspeak does have a binary installer, just like a .exe and this can be run from the GUI, you just need to mark it as executable (which is more work than in Windows, but for safety's sake)
Powerpoint doesn't have a Linux version. Your fight represents needing to install and use Wine. You could have just used LibreOffice Impress which comes with Ubuntu. It'll do 90% of what Powerpoint does.

Not all your old applications will work, you'll need replacements.

You need to learn to adapt. Some things are just objectively easier from the command line but they'll seem perverse or scary if you're not used to doing things like that. I understand that; relatively few of us started on Linux. It all gets better with time.

As for other problems, we try to help where we can but you have to respect that Ubuntu isn't Windows by design. Some things are going to be different. Some people find change hard. If you can accept that philosophy, you'll find using Ubuntu a much more enjoyable experience.


Ubuntu won't boot without external hard drive connected

Funny you ask, because I saw that today in our lab just today.

Drives are lettered in the order they are found, sda, sdb, and so forth. Those letterings can be shifted when new devices are inserted. If the old config is looking for a partition in a place, but it finds MS Windows instead, for example, then blam!

If you put settings in /etc/fstab using drive letters, then the setup is fragile because the letters change when something is unplugged. I saw exactly the error you describe.

If your /etc/fstab file uses UUID names for devices, this won't happen. Know what I mean?  Use this sort of entry, rather than one that begins /dev/sdXX:

UUID=bc9f628b-8ad3-4cff-910b-d1ee751c4790 /boot           ext2    defaults        0       2

If you start the working system, then run

$ /sbin/fdisk -l

to list the drives.  I'm assuming you have old style partitions.  If you have GPT, problem is likely same, but details differ.


How to make a bootable CD of Ubuntu 12.04 LTS?

This seems to perfectly solve your question. Regardless of your current operating system.

https://help.ubuntu.com/community/BurningIsoHowto

I recommend using a USB stick to install ubuntu :D its.. er... reusable :D

YOU WILL NEED TO SET USB TO FIRST BOOT IN YOUR BIOS

    I dont like doing this step, so what I do is during boot mash the F# keys, one of them lets you select which drive to boot from, in your case you would select the USB stick. Obviously mashing the F# keys is a bad strat but it did help me find the correct F# key. in my case its F7.

Unetbootin is a program that will let you install a ubuntu .iso from a usb stick you can download it at: http://unetbootin.sourceforge.net/

Yumi lets you use the USB stick to install ubuntu plus also use the left over space for storage. Yumi also lets you store multiple linux distros on the same USB stick. download it at: http://www.pendrivelinux.com/yumi-multiboot-usb-creator/

Here is the official documentation for installing ubuntu onto a USB

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

.

.

.

many programs let you add "persistence" to the USB stick, which means that every time you boot using the USB stick all your changes are saved! if you read the official documentation for USB installs you'll come accross Unetbootin which is what I use when I want to add persistence.


How to reconfigure keyboard (W and P not functioning correctly)

I fixed it, I eventually came across a file called .xbindkeysrc.scm located at ~/.xbindkeysrc.scm. So I went through and commented out anything pertaining to Shift + w and Shift + p and then restarted. Everything is back to normal now.


16.10 Server - update-rc.d not creating symlinks for vncserver

LSB Headers required on 16.10 ?

Similar problem for me - my scripts where registering correctly with 16.04 but not with 16.10. I added the LSB headers and it started working correctly with 16.10

I used something similar to the example below, adding it after the #!/bin/sh line

### BEGIN INIT INFO
# Provides:       my_service
# Required-Start:    $local_fs $remote_fs $network $syslog $named
# Required-Stop:     $local_fs $remote_fs $network $syslog $named
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: starts my_service
# Description:       starts my_service using start-stop-daemon
### END INIT INFO


It is possible. Have a look here for instructions.

Although the steps are for OS X Mavericks, it should also work fine with OS X Yosemite.


Same thing happened to my ubuntu 20.04. The software center just went missing and along came out snap store. When I opened snap store, it is very similar with software center and it is doing the same job well. I think it snap store is now the de facto replacement for software center.


Does Re-installing Ubuntu remove Windows/Other OSes?

So, In the end, I just need to know if re-installing Ubuntu (on dual
  boot with Windows 7 & 10 technical preview) will get rid of Windows 7
  And Windows 10 Technical preview.

It depends on how you install Ubuntu. What you want to do is dual boot with Ubuntu. Follow the instructions in the top answer here to preserve Windows and add Ubuntu.


My screen isn't fully visible on my monitor

Try Auto Adjustment from the On Screen Display as shown starting on page 26 of your manual.

The native res of the Benq 241w is 1920x1200 which is not common, so having to adjust it is not unexpected.


The sudo is causing it to run as root, not as fawkes5. Instead run optirun wine PROGRAM_NAME.exe. If you need sudo to run optirun then follow this guide to give yourself permission to run it without sudo. Specifically you should run:

$ sudo groupadd bumblebee
$ sudo usermod -a -G bumblebee $USER

then log out and back in.


Ubuntu 14.04 Mozilla Firefox Telnet Error

This is a known issue with Mozilla Firefox running on Ubuntu for amd64 systems. The correct solution is:

1.open Firefox and type “about:config” in address bar

2.create a new Boolean preference (right click on an empty space), name it “network.protocol-handler.expose.telnet” and set the value “false” and restart the browser. That should be enough for Firefox to let us select an external application to open “telnet://” links.

Then run this script:
!/bin/sh

address=echo ${*##telnet://} | sed 's/:/ /g'

For xterm junkies :

xterm -e "telnet $address"

For gnome-terminal users :

uncomment the next line but comment

all other terminal launchers (xterm, konsole)

gnome-terminal -e "telnet $address"

For konsole hipsters :

konsole sends args separately to command so we use "" only for telnet

uncomment the next line but comment

all other terminal launchers (gnome-terminal, xterm)

konsole -e "telnet" $address

For furthur refrences : http://ccielab.ro/2009/11/telnet-handler-in-firefox-kubuntu/
http://www.tolaris.com/2010/08/23/enabling-telnet-and-ssh-urls-in-firefox-for-linux/

Regards.


How do you adjust screen brightness on Acer laptop?

Reading here it says KeyTouch may fix the problem, as it has done for other Acer Aspire models.

Otherwise there are the commands below that can fix via the process you described. In the terminal type:

    sudo gedit /etc/default/grub

you will find a line like this:

    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

change this line to (making sure to keep the quotation marks):

    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor"

Save the file and then in the terminal type:

    sudo update-grub

Then it should be fixed.

Hope this helps. :)


Add this

Section "Device"
        Identifier "Intel Graphics"
        Driver "intel"
        Option "AccelMethod" "uxa"
EndSection

to this file : /etc/X11/xorg.conf


In terminal...

sudo -H gedit /etc/fstab # edit fstab file

change:

UUID=af9cbf4b-7a29-422e-b24a-e620301b8369 none swap sw 0 0

to:

#UUID=af9cbf4b-7a29-422e-b24a-e620301b8369 none swap sw 0 0

save the file and quit gedit.


How to install RabbitVCS on Ubuntu 15.04?

The PPA ppa:rabbitvcs/ppa doesn't contain Vivid packages. Therefore you can't install rabbitvcs via this PPA.

rabbitvcs-nautilus is also in the Ubuntu repositories

sudo apt-get install rabbitvcs-nautilus

Output of apt-cache policy rabbitvcs-nautilus

rabbitvcs-nautilus:
  Installed: 0.16-1
  Candidate: 0.16-1
  Version table:
 *** 0.16-1 0
        500 http://de.archive.ubuntu.com/ubuntu/ vivid/universe i386 Packages
        100 /var/lib/dpkg/status
     0.16-1~getdeb1 0
        500 http://archive.getdeb.net/ubuntu/ vivid-getdeb/apps i386 Packages

To install rabbitvcs in Vivid you could use also use the GetDeb repositories:

wget -q -O - http://archive.getdeb.net/getdeb-archive.key | sudo apt-key add -
sudo sh -c 'echo "deb http://archive.getdeb.net/ubuntu vivid-getdeb apps" >> /etc/apt/sources.list.d/getdeb.list'
sudo apt-get update
sudo apt-get install rabbitvcs-nautilus-3.0


I think you should check where you installed fusuma.

which fusuma

Then, add the location you got to Startup Applications.


Keyboard layout choice popup shows up in Gnome when pressing Caps Lock. How to disable?

Resolved that issue on my own. I set input language switch solely to CapsLock key without other combinations (using gnome tweak tool).
Not sure if it affects results, but I also reset next/prev input source keys to defaults (Super+Space) in keyboard settings.


12.04, how to switch gnome-fallback to use metacity permanently?

Edit or check the specific  session file in /usr/share/gnome-session/sessions.You could use gedit ( with root permissions) for doing this.


If you installed from snap, run:

sudo snap remove blender

If you installed from PPA, run:

sudo apt-get remove --autoremove blender

Edit: if you installed in /opt as you describe, run:

sudo rm -rf /opt/blender

When you install 2.8, you may wish to install with a package manager so it automatically updates:

sudo add-apt-repository ppa:thomas-schiex/blender
sudo apt-get update
sudo apt-get install blender


How to remount a disk that goes into read-only mode without rebooting?

From Linux, how to change HDD state from ReadOnly after temporarly crash? the accepted answer (with 12 upvotes, at the time of this writing) states:

  try with blockdev --setrw or hdparm -r 0


I installed VisualBoy Advance to do some classic GBA gaming, but I can't find it anywhere

You can see the contents of an installed deb file like this :

dpkg -L some-GBA-package

Or if it creates a lot of output :

dpkg -L some-GBA-package | less

Or to see the content of your downloaded deb file :

dpkg --contents some-GBA-package.deb

I just installed it (visualboyadvance-gtk), and found it in my menu entry.
Looking at what it launches it is the command :

gvba

Try that command in a terminal.


ext4 partitions will not be shown/mounted under Windows.

Ubuntu can be added to Windows bootloader by using a simple easy-to-use software EasyBCD.

Please follow the instructions provided by EasyBCD creators here.

Steps 5-7 can be omitted if you want to see GRUB for about 10 seconds. This might be useful if you want to boot into a different kernel for Ubuntu.

Download EasyBCD without registering in their website by following this link.

  Disclaimer: Keep in mind, this will enable windows bootloader by
  default, not GRUB. If you want to keep GRUB as default bootmanager,
  follow the tutorial mentioned by @m-tarun.


How to edit squid.conf file in notepad/gedit without using vi editor

If you have GUI , then you can use

gksu gedit <path to your file>

If its a server with no GUI then you can use nano .

sudo nano <path to your file name>

Gedit is one of the GUI editor and nano is one of the CLI editor.


You could use extended globbing:

  If the extglob shell option is enabled using the shopt builtin,
  several extended pattern matching operators are recognized. In the
  following description, a pattern-list is a list of one or more
  patterns separated by a ‘|’. Composite patterns may be formed using
  one or more of the following sub-patterns:

  ?(pattern-list)
  Matches zero or one occurrence of the given patterns.

  *(pattern-list)
  Matches zero or more occurrences of the given patterns.

  +(pattern-list)
  Matches one or more occurrences of the given patterns.

  @(pattern-list)
  Matches one of the given patterns.

  !(pattern-list)
  Matches anything except one of the given patterns.

As for what you asked, I can't make sense of this one:

  ... all the files that start with AT LEAST two lowercase letters ... "wildcard number of [[:lower:]]'s and then a wildcard?"

A wildcard matches zero or more, which is not the same as two-or-more. Any number of [[:lower:]]s can be matched with the extended glob *([[:lower:]]). "At least two" doesn't need extended globbing at all: [[:lower:]][[:lower:]]*.

  ... starting with ONLY 2 lowercase letters, not * lowercase letters

[[:lower:]][[:lower:]]?([^[:lower:]]*)

Which is two lowercase characters optionally followed by (anything other than a lowercase character and anything).


Lenovo Thinkpad T460 Multitouch not working

I've got a T460s and multi-touch gestures work, like pinch zooming in Google Maps, etc. on Ubuntu 16.10. Might be that this version's kernel supports the 460 hardware better. You can use a live DVD/USB to try it. (The kernel and the "X" server handling input devices of 16.10 will eventually appear in 16.04 as an LTS point release.)

Also, I've found installing the Touchpad-Indicator app helps. You can get it with:

sudo add-apt-repository ppa:atareao/atareao
sudo apt-get update
sudo apt-get install touchpad-indicator


What you are seeing is exactly as expected. Your machine only has IPv6. Google has both IPv4 and IPv6-only so you can reach them over IPv6. But GitHub only has IPv4. IPv4 and IPv6 are different protocols, so they don't talk to each other.

Basically, your server and GitHub speak different languages and you're not using a translation service.

A translation protocol that lets IPv6 clients talk to IPv4 servers is called NAT64 + DNS64. Ideally the ISP where your server is hosted should provide such a service. If they don't then you can try the experimental services that a good friend of mine (Jan Žorž) hosts in his lab. You can find instructions at https://go6lab.si/current-ipv6-tests/nat64dns64-public-test/.

Please be aware that NAT64 only allows IPv6 clients to access IPv4 servers, not vice versa. So your IPv6 server will not be reachable by clients that only have IPv4. For that you would need an SIIT-DC service, but I'm not aware of anybody offering such a service.


After the upgrade to 16.04 LTS, internet won't work

Sounds like a DNS problem...

Check if you are able to connect to your router IP. (if you can, it probably is)

Check your ifconfig for DNS and Gateway info.

If it is a DNS problem, recheck your network configuration on DHCP and/or use a static lan address with your router/dhcp server as 1st DNS, and other DNS servers following.


How do I set up Internet connection on Ubuntu 11.10?

In Edit Connectios make sure the Connection Name is Auto(eth0)ie ethzero-MTU is set to automatic-IPv4 settings are Method: Automatic(DHCP), both boxes are ticked for 1.Require IP4 addressingfor this connection to complete, and2.Available to all users, In IPv6 settings, make sure Method: is set to Ignore, and tick the box for Available to all users.


Is it possible to install Cain and abel in ubuntu?

Unfortunately, Cain and Abel does not have an Ubuntu port, and is not Wine friendly. Still, its functionality is not exclusive. If you wish to complete the same tasks it requires on Ubuntu, you may wish to look into some cross platform alternatives such as John the Ripper or Aircrack. It's likely that you can find a few different programs that will fit your needs.


Try sudo apt-get -f install, and then sudo apt-get purge mysql-server mysql-client mysql-common.


Any app or command to view list of installed codecs

Try this one-liner on the command-line:

clear; echo "Enumerating codecs.."; echo; dpkg --get-selections  | awk '{print $1}' | grep -iR codec; export number=`dpkg --get-selections  | awk '{print $1}' | grep -iR codec | wc -l`; echo; echo "$number codecs installed."; echo


You're in a mess. I would suggest the nuclear option at this point instead of just running even more stuff as root to try and forensically work out what went wrong.

sudo rm -rf /root/.git* ~/.git*

That should nuke all the rubbish you have in root. From now on, don't sudo git anything. Just clone into your homedir and copy files out as root if you need to. If you need to set up configuration, I would suggest only using git config --global variable value rather than editing the config file directly.


USB ports not working, problems with ownership and permissions

If you have destroyed the ownership and permissions throughout the systems, chances are that the automatic mechanism for mounting the USB drive are busted.

You have two possibilities --- and I would go with the first if you are not an experienced Unix user:

Use a Live disk. Boot from it and choose not to install ("check Ubuntu without installing" or something similar).

Once in the Live session, use File Explorer to mount your main disk (again, I do not remember the exact procedure, but it's not difficult), insert your USB disk, and backup your files. Maybe you will need to use sudo if your UID is different from the standard one; but you have a full system working and shouldn't be difficult.
Manually backing up your home directory from a root shell --- notice that this is a dangerous process.

In this case, you drop to a root shell (sudo -i or equivalent) and the insert your USB drive. Although it will not be automounted, you should see in the system log /var/log/syslog something like this:

[...]
SYS: Sep  6 12:13:27 samsung-romano kernel: [43555.542311] sd 6:0:0:0: Attached scsi generic sg2 type 0
SYS: Sep  6 12:13:27 samsung-romano kernel: [43555.542606] sd 6:0:0:0: [sdb] 1957888 512-byte logical blocks: (1.00 GB/956 MiB)
[...]

The important part is the sdb --- this is how the device is known to the system. You can mount it manually; let's do it under for example /mnt:

mkdir -p /mnt
mount /dev/sdb1 /mnt

(normally USB drives are partitioned with just one partition. The above command should work 99% of  the times).

Now you have the USB drive under /mnt. You can copy thing there as root (remember to use cp -a to maintain ownerships and modes) or using tar or whatever. Or you can change the mount point  to your normal user and do the copy as your user.

Anyway, check your backup in anther machine before reinstalling everything. And notice that recent Ubuntu do allows a new installation without touching your /home --- although a backup is always recommended.


I had the same problem with xmonad and found the following solution.

When you add openbox to /etc/upstart-xsessions, the script /etc/X11/Xsession.d/99upstart substitutes the value of STARTUP environment variable with init --user, therefore openbox is not started by X.

To be able to run selected xsession, upstart emits event xsession with environment variableSESSION equal to your xsession. For xmonad I wrote the following script and put it to ~/.config/upstart/xmonad.conf:

start on xsession SESSION=xmonad
stop on session-end

exec xmonad

I think you should just substitute all xmonad with openbox. If you want system-wide solution you have to put this script to /etc/init/


Passing contents of file on the command line for c++ program

The way you have written it, you need to pass the contents of the file to your program, not the file itself (and there's no need for xargs, by the way). One way to do that is using input redirection:

a.out < file

For example:

$ cat file
4
7
$ ./a.out < file
A program which adds two integers
Enter 1st integer: Enter 2nd integer: Sum is 11

Another way to do the same thing is to print the file's contents and pass the to your program with a pipe:

$ cat file | ./a.out
A program which adds two integers
Enter 1st integer: Enter 2nd integer: Sum is 11

A much cleaner approach, of course, would be to write your program so that it can take arguments instead of reading standard input:

./a.out 4 7

Or, write it so that it can open files internally and parse them for its input data:

./a.out file

Anyway, in order to get only the last line in the output, print the rest to standard error:

#include <iostream>

int main() {
  int x, y, sum;
  std::cerr << "A program which adds two integers\n";
  std::cerr << "Enter 1st integer: ";
  std::cin >> x;
  std::cerr << "Enter 2nd integer: ";
  std::cin >> y;
  std::cerr << "\n";
  sum = x + y;
  std::cout << "Sum is " << sum << std::endl;
  return 0;
}

Now, run:

$ ./a.out < file > output.txt
A program which adds two integers
Enter 1st integer: Enter 2nd integer:
$ cat output.txt
Sum is 11

Or, to give the values manually:

$ ./a.out > output.txt
A program which adds two integers
Enter 1st integer: 4
Enter 2nd integer: 7

$ cat output.txt
Sum is 11


Unable to install nginx as part of LEMP - Nextcloud setup

"Structure needs cleaning" means that your filesystem is corrupt.

Run fsck on that filesystem. Since this seems to be your system partition, you CAN'T boot from it. fsck must be run while the partition is unmounted.

Move the media to a different Ubuntu system, DON'T mount it, DON'T boot from it, and run fsck on it using that other running system.

Alternately, you can boot a Live image, but that's sometimes a problem on a Pi.

Repeated corruption may indicate a faulty media:

If it's a HDD, look up how to run a SMART test on it.
If it's an SD card, try a different card...or a different reader. Readers go bad, too.


Can I use Ubuntu One to offer SaaS and IaaS services?

No. Ubuntu One is simply a cloud storage service. It doesn't work in the ways you'd want it to for SaaS or IaaS. for what you're trying to do you'd either have to set up your own server or buy some space from amazon or the like and manage it with openStack and juju for example


Change network mac address using "ip" command

First run:

ip link show

This will list your network devices. Find the one you want to change. Next, run:

sudo ip link set dev <your device here> down

Then:

sudo ip link set dev <your device here> address <your new mac address>

Finally:

sudo ip link set dev <your device here> up


The two important lines from the log you posted are:

/var/lib/dpkg/info/gedit.prerm: 12: /var/lib/dpkg/info/gedit.prerm: py3clean: not found

and:

/var/lib/dpkg/info/gedit.postinst: 32: /var/lib/dpkg/info/gedit.postinst: py3compile: not found

They tell us that you're missing py3clean and py3compile, both of which are part of a Python install (specifically, Python 3).  Your Python is broken.

There are a couple of things you can do to fix this.  Try running

apt-get -f install

and/or

dpkg --configure -a

as root.  Both of these will try to find and fix broken dependencies.  If they don't work (and they might well not -- they're useful commands to try, but not panaceas), try the steps given by various answers to this question.


Ubuntu 16.4 virtualization problem- MInikube

More or less inclusive guide to running Kurbernetes :

Clear-up : all of the following is for linux-only as Kubernetes can only run whithin a linux or mac (same difference) environement.

additionally Kubernetes.io specifies that only the ubuntu ditribution is supported.

There is possibly an assumption of being able to run an ubuntu VT-D utilising VM inside windows and inside the ubuntu VM boot another VT-D utilising VM.

As I understand it, this is not possible and Kubernetes should update their webpage and guides accordingly.

Finally it's more than possible that hardware is a factor here. IOMMU support is a necessity and so is enbling it in the BIOS.

I'd also highly recommend having more than 4GB of ram for this. (especially if the two-tiered VT-d emulation IS possible and that's what you're attempting).

The info used here was retrieved from :

https://kubernetes.io/
https://github.com/dhiltgen/

EMULATING on a LOCAL machine :

I imagine this is what you want to see :

Here's what I did (the following is the easiest solution of the three) :

mkdir temp
cd temp
sudo apt update && sudo apt install libvirt-bin qemu-kvm
sudo adduser $USER kvm
sudo adduser $USER libvirtd
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.19.0/minikube-linux-amd64
curl -L https://github.com/docker/machine/releases/download/v0.11.0/docker-machine-`uname -s`-`uname -m`
curl -L https://github.com/dhiltgen/docker-machine-kvm/releases/download/v0.10.0/docker-machine-driver-kvm-ubuntu14.04
chmod +x ./kubectl minikube docker-machine docker-machine-driver-kvm
sudo mv ./kubectl /usr/local/bin/kubectl
sudo mv minikube /usr/local/bin/minikube
sudo mv docker-machine /usr/local/bin/docker-machine
sudo mv docker-machine-driver-kvm /usr/local/bin/docker-machine-driver-kvm
cd ../
rm -rf temp
kubectl cluster-info

# edit the /etc/environement to include usr/local/bin in your PATH=""
# (arguments are seperated with ":") but it does by default. If it didn't
# then once you've edited and saved remember to run :
# source /etc/environment

docker-machine create -d kvm myengine0
minikube --vm-driver=kvm start

And this is despite being on the wrong OS. I'm on Mint 18 but it worked anyways.

edits and suggestions welcome.

EMULATING on an EMULATED machine (as I understand it this isn't possible) :

W.I.P. help and edits welcome.

Actual Kubernetes INSTALL on a LOCAL or EMULATED machine :

W.I.P. help and edits welcome.

As I understand it :

sudo apt-add-repository -y ppa:juju/stable
sudo apt update && sudo apt install snapd juju-local # or juju or juju-2.0
# I don't know which is cleaner/more functinal.
# Addapt as needed :
juju add-credential aws
# enter credetial, select userpass, enter username, enter password
juju update-clouds
juju bootstrap aws/us-east-2
juju deploy canonical-kubernetes
sudo snap install conjure-up --classic

then once in snap :

conjure-up kubernete


Installing ubuntu desktop 17.04 with UEFI when there are two disks in PC

I recommend the following workaround:

Boot the Ubuntu installer in its "try before installing" mode.
If desired, partition your disk(s) with GParted, parted, gdisk, or some other tool. (This step is optional, since you can generally do this in the Ubuntu installer, Ubiquity.) It sounds like you were trying to create a second ESP on your second disk, and that's probably a good idea, given that you'll have two Ubuntu installations, both of which will try to write their GRUB binaries to the same place if they share an ESP.
Open a Terminal window.
Type ubiquity -b. This launches Ubiquity in such a way that it will not install GRUB.
Proceed with your installation in whatever way you desire. This will probably involve using the Something Else installation option.
Reboot into your existing Ubuntu installation
At this point, you can do one or both of two things:

Open a Terminal and type sudo update-grub. With any luck, this will cause your existing GRUB to detect the new installation of Ubuntu 17.04, enabling you to switch between them.
Install and configure some other boot loader or boot manager. My own rEFInd boot manager is likely to be easy to get working. Unlike most boot programs, rEFInd does not require explicit configuration to boot a new kernel when it's installed, so it tends to be a bit less prone to hassles when dealing with a computer that holds multiple Linux distributions.

Boot into Ubuntu 17.04 and edit /etc/fstab so that whatever partition you want to use as its ESP is mounted at /boot/efi. I recommend then typing sudo mount -a and checking (with df, for example) that the ESP was mounted where you expected.

Be aware that you're likely to encounter boot coups from time to time, in which one OS takes over the primary boot loader duties, switching the configuration (and perhaps the boot program) from what the computer had been using. Despite the fact that you told Ubiquity to not install GRUB, chances are 17.04 will attempt to install it at some point as part of a package upgrade. This problem, and ways to deal with it, is covered on my boot coup page.


Recover xorg.conf from read only terminal

Try to start ubuntu normaly. When the ubuntu loading screen appears press Escape. You should see command line output now. It will stops at some point where LightGDM should start.

Then Press Control+Alt+F1 to access console. You should be asked for login.

After login use

sudo rm /etc/X11/xorg.conf to remove the file

Or use any other command with "sudo" prepended. You will be acked for password again.

I hope it will help


Convert multiple document files inside their current folders

This works for me:

cd X
find ./ -iname "*.xlsx" > /tmp/out
SAVEIFS=$IFS;
IFS=$(echo -en "\n\b");
while read line ;
do
   cd $(dirname $line);
   libreoffice --headless --convert-to xls $(basename $line);
   echo $PWD;
   cd -;
done < /tmp/out;
IFS=$SAVEIFS


Error bootstrapping juju environment maas, crypto/rsa: verification error

If you've deleted your $HOME/.juju/ directory, which contains all the SSH keys and certificates juju has generated, without also destroying your juju environment, you won't be able to access the environment from juju anymore, as the credentials and keys are lost.

What I'd recommend is to bootstrap a new environment on your MAAS, using correctly commissioned nodes (in "Ready" state). This way the nodes won't be set to PXE boot and will boot from the local disk instead (e.g. if you reboot them they won't get wiped out but will work as expected).


How to run bash commands in Ubuntu 13.10?

Open the file manager, go to the Files menu and select Preferences to open the "Preferences" dialog.

In the Behaviour tab activate the option Run executable text files when they are opened in the Exexcutable Text Files section:

Note that this may cause you to run potential harmful code instead of opening it in a text editor. So it's usually better to activate Ask each time instead.


Ubuntu ZFS or other file system layout question

I'm currently using ZFS for this use case (i.e. media center storage). I've used it for several years now.

You can indeed configure your ZFS as a mirror:

Data are copied amongst all disks in the mirror
The available size is the size of your smallest disk
So you can mimic an usual RAID mirroring by creating a zpool with X mirrors, each one containing 2 disks.

Or as RAID-Z 1/2/3:

You can loose 1, 2 or 3 disk depending on the type of the RAID-Z
The RAID-Z size is limited by the smaller disk, so having 4x4TB and 4x8TB is equivalent to having 8x4TB if all configured on the same grape. So, in your case, it's recommended to create 2 different raid-z of 4 disks each in the same pool.

Also, ZFS does not support yet adding a disk to an existing RAID-Z. So if you create a RAID-Z of 4 disks, it would never be able to contain more than 4 disks (but you can upgrade each disk to larger ones for example).

It's also important to know that it requires a lot of CPU/RAM for read/write operations. ZFS is configured by default to be able to use all your free RAM minus 1GB.

For more details, this document describes how ZFS works, and compares it with usual RAID.

NB: If you intend to use ZFS, be sure to create your zpool with ashift=12 option like this:

zpool create -o ashift=12 ...

This sets the sector size to 4096B instead of the default 512B. It will greatly improve your performances for your use case.


Network Manager Prompts for VPN Login Password at User Login

VPN Autoconnect
states that "It seems that NetworkManager fails to obtain the user's VPN password from gnome-keyring-daemon."

it also states a possible workaround.


How to remove ubuntu 11.10 from dual boot

I would boot in to 12.04.  Install Gparted from the software centre. Then use Gparted to delete the partition 11.10 is on and resize your 12.04 partition to reclaim the space.

This will require a little bit of knowledge of your disc partitions.  Be careful not to remove the wrong thing.


How to open bzr diff using Meld with multiple tabs?

As I can understand we need to pass new tab creation argument to the Meld.

According to its man-page this feature exists in Ubuntu 16.04 LTS (see man meld) and above:

  NAME
  meld - Visual diff and merge tool for the GNOME Desktop
  ...
  OPTIONS
  ...
  --newtab, -n
               Open the comparison as a new tab in an already-running instance.

So we need to pass --newtab option to meld:

meld --newtab /etc/os-release /etc/os-release &
meld --newtab /etc/os-release /etc/os-release &

In Bazaar case we need to find corresponding option in bzr diff subcommand.
According to man bzr we should use --diff-options option:

  NAME
  bzr - Bazaar next-generation distributed version control
  COMMAND REFERENCE
  bzr diff [FILE...]
   ...
         --diff-options ARG        Pass these options to the external diff program.

Possible solution:

bzr diff --using meld --diff-options --newtab &
bzr diff --using meld --diff-options --newtab &

But in real situation as stated by OP it does not work.
So we need to create an alias for this command:

for f in $( eval "bzr stat --versioned" ); \
do eval "bzr diff --using meld --diff-options --newtab ${f} &"; \
done


Tab completion doesn't work for file arguments to certain commands

The complete rules for fdisk are stored in the file /usr/share/bash-completion/completions/fdisk. The rules there defines that it will expand to block devices. To overwrite this setting in your current enviroment - you could do:

complete -F _filedir_xspec fdisk

You could add this to your .bashrc file.


Unable to install two packages in one go

It looks like you're just requesting an impossible situation, as hinted here:

The following packages have unmet dependencies:

 gcc-multilib : Conflicts: gcc-7-aarch64-linux-gnu but 7.3.0-16ubuntu3cross1 is to be installed
 gcc-7-aarch64-linux-gnu : Conflicts: gcc-multilib but 4:7.3.0-3ubuntu2 is to be installed

In other words, these packages conflict with each other. You can't install them together. It works if you do both operations independently because the second operation will undo the first one.


I would suggest you download the ISO image for the Boot-Repair tool and either burn it to CD or create a bootable USB drive.

After it boots, select the option to Create a Bootinfo summary.

The tool should collect information and then display a message with a URL that will look like http://paste.ubuntu.com/123456/. Remember that URL ... especially the six digit number ... and add it to your question. This will allow us to see what might be wrong and make suggestions on how to fix it.


Autodim does not un-dim when I start using the computer again

I ran into a very similar issue (couldn't resume from suspend). It's apparently a recognized bug in the 3.0 kernel.  I updated to 12.04 (alpha 2), which uses kernel version 3.2, and it fixed the problem.  3.0 is also known for being inefficient power-wise.  I gained more than an hour of battery life from moving up to 3.2.


I dont know about specific problems with Linux 32bit and Java 1.7 JDK. But by default most distributions ship with OpenJDK Java. I would try installing and switching the Oracle JDK it might help.

You can find a good Ubuntu how to for that here:

http://www.cyberciti.biz/faq/howto-installing-oracle-java7-on-ubuntu-linux/


You should add these values to the end of your /etc/sysctl.conf file, or create a file under /etc/sysctl.d. There are plenty of examples online, but this file is loaded with every boot, so the values are reloaded everytime. The values are most likely defaulted in the kernel config, so you need to reload them.

If you want to load them during the current boot without rebooting, just do: sysctl -p after your changes, and they will take effect immediately. Here is just one page I found quickly on setting these values: http://ubuntuforums.org/archive/index.php/t-251509.html

Hope this helps.


How do I configure my AWS instance to serve a remote desktop so I can use Windows terminal services to access it?

I don't know about running an rds-compatible service, but if you can't find one, VNC should meet your needs - just install a VNC server on AWS, and a VNC client on the windows machines.  See e.g. this VNC discussion


GPG ERROR NO_PUBKEY : WARNING: The following packages cannot be authenticated!

Run command:

sudo apt-get update

For every 16-character key  that is reported as missing, run the following with the key substituted:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys ABCDEFGH12345678


You have to edit your eclipse.ini file and have to specify your jvm path at there. Read this link http://wiki.eclipse.org/Eclipse.ini. It will help you.


If I have a fullscreen flash video on one screen why can't I type in the other?

The Flash plugin is specifically designed to un-fullscreen as soon as the video loses focus.  As far as I am aware there is no way to change that, nor there is a way to hide the "Press ESC to leave full screen" message that shows up upon entering fullscreen mode.

A partial workaround at least for YouTube is to enable HTML5 mode.


How do I set the backup destination directory of bup?

From bup's manpage:

GLOBAL OPTIONS

    [...]

    -d, --bup-dir=BUP_DIR
          use  the given BUP_DIR parameter as the bup repository location,
          instead of reading it from the $BUP_DIR environment variable  or
          using the default ~/.bup location.

So either start it with the -d switch or set the $BUP_DIR variable.


Incorrect resolution and no wifi and no usb after update

This may be an issue with a kernel update. If so from the grub menu choose Advanced, and cursor down to a previously numbered kernel entry and select it. If booting a previous kernel resolves the issue you should file a bug report against the kernel that exhibited the issue.


Full upgrade window pops up every hour every hour on Lubuntu

The update notifier https://manual.lubuntu.me/stable/4/4.4/Update-Notifier.html
is a Lubuntu created tool https://packages.ubuntu.com/focal/lubuntu-update-notifier.
You can find it auto-starting in LXQt Session Settings and you can disable it from there.
In the Lubuntu manual, you'll find it at https://manual.lubuntu.me/stable/3/3.2/3.2.13/session_settings.html
I would still jump to terminal first, and enter
sudo apt update
sudo apt full-upgrade

to ensure valid messages only show, no warnings/errors on either command. Warnings/errors maybe the reason for constant prompts so I'd fix any warnings/errors before I disabled the notifier.


How do I get Upstart to start my Mediatomb service?

Re-installed system using Xubuntu.  This time Mediatomb autostarts but the port 47152 is only visble on localhost.  The service can also be restarted using sudo service mediatomb start.  My external media device cannot see mediatomb.

I learned:

  Mediatomb puts the db in the /var/lib/mediatomb.db , owned by the mediatomb user
  The config.xml is owned by root in /etc/mediatomb/config.xml
  The web files are at /usr/share/mediatomb  and owned by root.
  The /etc/init directory contains the Upstart script and I made no modifications to it.
  The /etc/init.d directory contains the old, unused init script.
  The media disk I am sharing is auto-mounted by root and has 777 permissions.

At this point I think this may be related to the fact that my Xubuntu is a 64-bit system and that, for some reason the listener binds to localhost rather than my external IP?

UPDATE: finally figured out that it was a misconfiguration in my config.xml that caused the server to think there wasn't any files to serve.   My library is all .avi files and I had the .avi profile misconfigured in the config.xml and so it couldn't render anything.


Lubuntu 18.04 LTS amd64 USB installation goes to a black screen | laptop model: Eluktronics P670RP6

I figured out how to fix the issue where the screen goes blank. Within my bios, I switched my graphics option to discreet, from hybrid.

Now I get a different error message, but this problem is solved.


Can't resize VM disk, 2nd disk partition blocking first?

/dev/sda2 is an extended partition.  What this means is it's one large partition that within it can be placed multiple 'logical' partitions - in this case, /dev/sda2 is an extended partition that fills the rest of your disk after the first partition /dev/sda1, and within /dev/sda2 your swap partition exists as /dev/sda5.
To extend your /dev/sda1 you need to do the following first:

Disable your swap partition.  sudo swapoff /dev/sda5
Using gparted, shrink /dev/sda2 so it contains only /dev/sda5 and no free space.
Using gparted, move /dev/sda2 and /dev/sda5 together to the end of the disk.
Resize (grow) your /dev/sda1 after the previous tasks are completed.
Reenable your swap partition.  sudo swapon /dev/sda5`

Alternatively, you can do the following instead, which gets you more in line with what modern Ubuntu does (which is to use swapfiles instead of swap partitions):

Disable your swap partition.  sudo swapoff /dev/sda5

Delete both partition 5 and Partition 2 via parted

Grow your /dev/sda1 and its filesystem.

Use a swapfile instead of a swap partition, from within your single partition.
sudo fallocate -l 4GiB /swapfile
sudo swapon /swapfile

Once the swapfile is created, add this to /etc/fstab on the end of the line so that the swapfile is enabled automatically at boot time:
/swapfile    swap    swap    sw    0    0


ubuntu 14.04 LTS server / dovecot / postfix / size attachment

I found the answer:

Add/set message_size_limit in main.cf:

message_size_limit = 104857600

and restart Postfix.

I had to ADD it, because this line wasn't in main.cf


I did find a workaround.  Rather then doing a

deploy --config ... -n 3 ceph ...

I did

juju machine add --constraints ...

This deployed the machine and installed the juju client software on the machine.  I could then go in and add the ifup ethx lines to /etc/network/interfaces and ifup the interfaces.  Then I could do my deploy one machine at a time with

juju deploy --config ... ceph --constraints ... --to X


Can ubuntu 16.04, CUDA and nvidia-375 co-exist?

I'm running Ubuntu 16.04, CUDA 8.0, with the Nvidia 375 driver without problems (well, other than the artifact problems).  I had originally installed CUDA when using the Nvidia 367 driver, which also worked without problems. The bug on the artifacts had a fix involved with killing compiz when awakening from sleep, which works for me.  However, I'm running in legacy mode, not UEFI.


Global keyboard shortcut for copy, cut and paste

These are global shortcuts that work out of the box (tested with Debian 8.2) in terminals and GUI applications:

copy: Ctrl+Insert
paste: Shift+Insert
cut: Shift+Delete

I didn't test it but to change these shortcuts you could try: Use Shift+Insert to paste from clipboard in gnome-terminal?


Problems running a program tested in ubuntu (according to developers)

It looks like the software developers packed wrong files to wrong archive.
The main executable is for Apple macOS:

cd ~/Downloads
wget http://openmopac.net/MOPAC2016_for_Linux_64_bit.zip
unzip MOPAC2016_for_Linux_64_bit.zip
$ file ./MOPAC2016.exe
./MOPAC2016.exe: Mach-O 64-bit x86_64 executable

As a workaround you have to try CentOS 7 version of the software:

cd ~/Downloads
wget http://openmopac.net/MOPAC2016_for_CentOS-7.zip
unzip MOPAC2016_for_CentOS-7.zip

as it has correct file type:

$ file MOPAC2016.exe
MOPAC2016.exe: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, not stripped, too many notes (256)

So you have to download MOPAC2016_for_CentOS-7.zip and then follow their instruction about putting it to /opt/mopac and so on.


Why can't I install Tomboy in Ubuntu Mate 19.04?

Tomboy has been discontinued in Ubuntu 19.04 and later, however Gnote is almost identical to Tomboy and in fact you can export Tomboy notes and then copy all of them together into Gnote. You can also export Gnote notes and then copy all of them together into Tomboy. You can use Gnote as a backup app to store backups of Tomboy notes and vice versa, because Tomboy notes and Gnote notes are completely compatible.
To install Gnote in all currently supported versions of Ubuntu open the terminal and type:
sudo apt install gnote


Make video player to keep playing when lid is closed

Try this

Go to System Settings and Power

Change the option When the lid is closed to Do nothing

Make sure that you changed the both on battery power and Plugged in to Do nothing

Thanks


External headset microphone not detected, only internal is used

I'm also using an Acer Aspire and had the same issue.

You've done exactly the right steps, however try to use dell-headset-multi as your codec model instead.

I.e. adding the following to the end of your /etc/modprobe.d/alsa-base.conf:

options snd-hda-intel model=dell-headset-multi

A reboot won't hurt but to quickly try the new settings you can just reload alsa:

sudo alsa force-reload

Now choose Headset Microphone in your Volume Control as  your input device.

For reference: I have only overridden the pins 0x19, 0x1a and set them to Microphone in the HDAJackRestask GUI.
This even solved the issue that now my headphones are finally recognized automatically and I don't have to manually switch the output device!


Why is a nameserver address not removed from resolv.conf when disconnecting from my work network?

You write: «When I connect, resolv.conf has both the server and the domain search, along with the dnsmasq entry of 127.0.1.1.»

This is improper behavior.

NetworkManager should give the nameserver address(es) to dnsmasq and not submit them to the resolvconf utility (which manages resolv.conf) and/or write them directly into /etc/resolv.conf.

NetworkManager itself in Ubuntu behaves correctly, at least under default/normal circumstances.

Are you using a NetworkManager extention or third-party utility program to configure a VPN or something of that nature? There may be a bug in that extention or utility such that the software sends the work nameserver address statement to resolvconf and doesn't remove it when you leave work.

Third-party software is often not properly integrated with Ubuntu, and in particular often fails to use resolvconf to add and remove nameserver information.  Read /usr/share/doc/resolvconf/README.gz for information about resolvconf.


okay so basically boot from the disk and open Gparted and create a comfortable partition for your ubuntu install (25GB IMO) start the installer it should detect windows and add it to its boot loader.

hope this helps!


Is it possible to dual boot Ubuntu SERVER and Windows 10 home?

Yes, the differences between ubuntu server and desktop don't have anything to do with the boot manager (grub), and as long as the boot manager can handle a dual-boot aware install and boot process, it will work fine.
What's the difference between desktop and server? | Community Help Wiki
I suspect the main difficulty you will encounter is just that Ubuntu server appears to use a console-driven install (not a GUI), so the installation process might be targeted towards the advanced user.
It's worth noting (as someone who dual boots Windows and Ubuntu) that you will need to make sure secure boot is disabled in the BIOS, and as you toggle that you will trigger Windows bitlocker disk recovery the next time you boot Windows. If you don't have your Windows bitlocker key ready, you will have lost that particular Windows installation - possibly a nasty surprise. So make sure you have a good backup, good Windows installation media, and your Windows disk recovery key before you start. There are tutorials for that all over the web and since it's Windows it's best not addressed here.
Good luck


Have you checked http://ark.intel.com/products/27497/Intel-Pentium-4-Processor-supporting-HT-Technology-3_00-GHz-1M-Cache-800-MHz-FSB

It's the product page for the CPU

Says 32-bit


I've run into the same problem and found your question. Turns out that the packages from the amd64 ISO images could work in principle but older UEFI Macs fail on the boot loader.

There used to be specifically tuned amd64+mac ISOs for older distribution.

See:
What is different about the Mac ISO image?

What works now is to use i386 images, for example the ones from Ubuntu Mate 18.04.1. Ubuntu Desktop itself unfortunately no longer provides i368.


How to maintain symlinks in linux file manager?

As suggested by Huckle, it sound's like what you want are hardlinks, though as he notes that won't work for directories.

Sidenote, If there is a reason that hardlinks won't work in for you, adding it to your question may help get answers that are of more help to you.


Re-using previously Bitlocker encrypted SSD fails after formatting was aborted

Thank you for all your help - but https://askubuntu.com/users/37881/robert's hint was the solution:
After placing it into the PC again I was able to create partitions and format them (but again only under Windows 10 for some reason).
However I put the drives in the external case again and now I can use them!
Thanks again for all your help!


Is it 100% safe to rename a file while it's being written?

Linux works on file handles and renaming or moving a file in Linux does not alter the file handle. Even deleting a file will not be a problem: the process that owns the file handle can still read and write.
The Wikipedia page on inodes will be the best read on this.

In computing, an inode (index node) is a data structure found in many Unix file systems. Each inode stores all the information about a file system object (file, device node, socket, pipe, etc.). It does not store the file's data content and file name except for certain cases in modern file systems.
Implications
A file's inode number stays the same when it is moved to another directory on the same device, or when the disk is defragmented which may change its physical location. This also implies that completely conforming inode behavior is impossible to implement with many non-Unix file systems, such as FAT and its descendants, which don't have a way of storing this invariance when both a file's directory entry and its data are moved around.

So: yes.


lubuntu 12.10 bluetooth mouse disconnecting

Maybe this bug is similar to the following:

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1072234

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1065157

Something I've noticed is if we switch between sessions, mouse gets back to work fine.
Try it:

Make sure mouse stops to work
Switch to another session performing: ALT + F1
Then, switch back to GUI session: ALT + F7

Mouse should work again.
(try it more than once if it doesn't work...)


I went with gt630 and I'm quite happy with it. 630 is the same GPU system76 delivers with some of their computers.

With the open source driver the screens goes full retard. You need to run "sudo apt-get install nvidia-current".


The so-called "Sound Blaster Play!" device supports only 44.1 and 48 kHz.


how to use grep to search for a word which can be followed and/or preceded by a non alphabetical character?

You should be able to do that with the -w switch

-w, --word-regexp
          at  the  beginning  of  the  line,  or  preceded  by  a non-word
          of  the  line  or  followed by a non-word constituent character.

e.g. the matches for your examples are

$ grep -w 'geometry' myfile
geometry.property1
myfunc(geometry)

and the non-matches

$ grep -vw 'geometry' myfile
geometryMark.property2
mygeometry.property3


This issue seems to have been caused by the recent update to version 59.0.3071.109.

The temporary solution is to try to open it without extensions:

chromium-browser --disable-extensions


What to do if a window and an icon are not connected

In some cases, a window and the launcher (-icon in the Unity Launcher) are not connected to each other somehow. In your case, the cause is possibly the first ("popup") window, making the launcher icon "assume" the job is done.
This often happens with applications, running under either Steam or Wine.

How to solve

Open your application, wait for the final window to appear.
Open a terminal window, type xprop WM_CLASS + Return. Your pointer changes into a big +.
Click on the window of your application. The terminal will output two strings, looking like: "gnome-terminal-server", "Gnome-terminal". Pick either one (I use the lower case one mostly) and add it to your .desktop file:

[Desktop Entry]
Name=The Binding of Isaac: Rebirth
Comment=Play this game on Steam
Exec=steam steam://rungameid/250900
Icon=steam_icon_250900
Terminal=false
Type=Application
Categories=Game;
StartupWMClass=wmclass

...where wmclass is the lowercase string you found. Possibly you need to log out and back in, and it should work.


I can't get rid of linux (can't boot usb)

Ok i solved the problem. I changed "partition scheme" from GPT to MBR in Rufus, when creating bootable usb. Now it boots to Windows installation.


How to enable single touch and disable press to click?

As described by @danzel, starting your terminal and typing

synclient TapButton1=1

helps.

But you have to type that every time you restart your machine.

To make it permanent, consult this link: How can I permanently change touchpad settings?


Encryption Option(s) During Installation Of Ubuntu 16.04

Nothing gets encrypted unless you tell the installation to do so. The most common scenario (which i strongly recommend) is to use LVM/LUKS and encrypt everything except /boot. If for some reason you do not want to do that, you can still encrypt your home folder by using the option you mentioned. Both options work great no matter if you re using EFI/GPT or MBR.


14.04 LTS intermittent wifi connection problem

There seems to be some issues with the driver of this Wireless card.

The main Ubuntu issue to follow for updates and workarounds is bug 1320070.

On the Kernel bugzilla issue you can see that this will probably be fixed in kernel 4.0.

In the mean time, you can follow this workaround, combined with this one. The workarounds are not perfect, but they seem to be helping making the wireless connection more stable for a lot of people.


What does a "Resource temporarily unavailable" error mounting a filesystem mean?

The what is evident by the error, as to why the drive is unavailable , based on the disk utility output the drive appears to be failing. You also appear to be dual booting Windows. If fast-start is enabled under Windows (the default) the file system is unavailable due to the hibernation file Windows leaves there. This is actually for your protection. If you were to make changes to the file system with Ubuntu while Windows is in hibernation status (fast-boot), you would lose those changes upon rebooting (resuming) Windows.

The first thing to try is disabling fast-boot from windows. This should allow you to mount the drive with Ubuntu.

I recommend replacement of the drive ASAP and insuring that you have current backups of all your critical data.

Source: Experience


Acer Travelmate P614 speakers don't work on Kubuntu 20.04

Unfortunately, I have the very same problem but on Arch Linux with Plasam KDE Desktop Environment. It is probably not a distribution related problem. Here is a link to the discussion on Arch Linux Forums: https://bbs.archlinux.org/viewtopic.php?id=256592
And here is the link to the alsa-devel mailing lsit discussion: https://www.spinics.net/lists/alsa-devel/msg111034.html
I have tested a lot of different options as suggested by the alsa-mailing list answers to my question but unfortunately I have not found any solution yet.
My tests included settings through hdajackretask and some GPIO settings through hda-verb.
It seams like a bug coming from wrong BIOS set-up at boot. It would be possible to use some quirks to fix it possibly, but I am not that good to try out myself.
Hope, that someone will find a solution to this.
Best


Using QQ: How can I make Byobu the default terminal

Open Gnome Terminal
Click on Edit -> Profile Preferences
Go to Title and Command tab
Check Run a custom command instead of my shell
Set your Custom command to

/usr/bin/byobu

Full disclosure: I'm the author and maintainer of Byobu.


Unable to login after killing gnome-session

There is likely a .Xauthority file your home directory. Try removing it.


Schedule a large download to resume everyday in a specific time-span of the day?

A combination of an Upstart job and a cron job:

First, create an Upstart job. Create a file called ~/.config/upstart/my-download.conf containing:

description "My download job."
start on resume-download
stop on stop-download

respawn
respawn limit 10 5

script
     cd /path/to/download/folder
     wget --continue uri://link/to/download
end script

Now, add a cron job to start and stop this Upstart job. Run EDITOR=gedit crontab -e and add to the file:

0 0 * * * /sbin/initctl emit resume-download
0 5 * * * /sbin/initctl emit stop-download

You can manually start the download any time you want using:

initctl emit resume-download
# or
start my-download

And stop it any time using:

initctl emit stop-download
# or
stop my-download

Due to the respawn in the job, Upstart will try to restart wget if it exits. This can be useful if it timed out and exited at two in the morning. A limit is placed so that we don't have Upstart trying to start wget infinitely (e.g., the network is facing extended problems, the download was completed, etc.).
We added initctl emit commands in the cron job. This way, if we create more such Upstart jobs, all of them starting on this event, this single cron entry will be enough to start all of them.


Is it legal to sell a tutorial video that tells viewers to use UBUNTU and provides tutorials on installing and using UBUNTU?

As far as I know, yes, why not? Ubuntu is open-source and has the four freedoms:

The freedom to run the program as you wish, for any purpose (freedom 0).
The freedom to study how the program works, and change it so it does your computing as you wish (freedom 1). Access to the source code is a precondition for this.
The freedom to redistribute copies so you can help your neighbor (freedom 2).
The freedom to distribute copies of your modified versions to others (freedom 3). By doing this you can give the whole community a chance to benefit from your changes. Access to the source code is a precondition for this.


The instructions in the PPA are:

sudo add-apt-repository ppa:ackondro/tibesti
sudo apt-get update
sudo apt-get install tibesti

However on closer inspection - there is not currently an oneiric repository.

Trying to download the natty .deb file and forcing an install:

sudo dpkg -i tibesti_1.2.8-public6_all.deb
sudo apt-get -f install

This will attempt to download 110MB of libraries - looks like many Gnome2 libraries... this is the issue - the application needs to be recompiled using the Gnome3 GTK libraries.

My suggestion would be to contact the maintainer of the PPA to see if they have plans to support 11.10.


Switching graphics with DRI_PRIME doesn't work; creates zombies (16.04 lts)

Edit2: Installing new kernel, 4.10, fixed the issue!

Old answer (with more experiments)

Installing LXLE - a distro, based on Lubuntu, based on Ubuntu - seems to fix the issue. I still see the drm errors, but the graphics setting work.

I am not sure, however, how well do other programs play with esoteric distros like LXLE.

(installing the amdgpu pro didn't work for me ; quite the opposite, it made ubuntu stop displaying anything)

Edit: I take it back. After I made apt-get update etc, the issue returns back, with exactly the same symptoms, with LXLE. So it is not a Unity issue, it's something with perhaps the drivers.


Kubuntu 17.04 is missing virtual network adapters

After 18.04 came out I revisited this issue and it ended up being a stupid setting in the control pannel to "show virtual settings"

right click on the network icon and select "network settings' under general select "show and configure virtual connections".  after words going in to network configuration now has the options for vlan etc.


If sda1 is ext family formatted:

From liveDVD/Flash so everything is unmounted,swap off if necessary, change example shown with partition sda1 to your partition(s)
e2fsck is used to check the ext2/ext3/ext4 family of file systems. -p trys fixes where response not required

sudo e2fsck -C0 -p -f -v /dev/sda1

if errors: -y auto answers yes for fixes needing response, also see man e2fsck

sudo e2fsck -f -y -v /dev/sda1

And never shutdown system except as last case. Remember the Elephants:

Holding down Alt and SysRq (which is the Print Screen key) while slowly typing REISUB

R-E-I-S-U-B to force shutdown

A good way to remember it is.
Raising Skinny Elephants Is Utterly Boring ...or
Reboot System Even If Ultimately Broken ...

Check for backup super blocks:

sudo dumpe2fs /dev/sda1 | grep -i backup

This is a last ditch suggestion if no one else has better suggestions:

sudo dumpe2fs /dev/sda1 | grep "block size" -i

You must use the above number like

Block size:               4096

Then reformat just the superblocks:
See  -S setting or briefly

-S    Write  superblock and group descriptors only.:

man mke2fs

Then only using the block size you get or else you have further damage:

sudo mke2fs -S -b 4096 -v /dev/sda1


How to downgrade Nautilus 3 to Nautilus 2.xx?

You can't, 11.10 uses GTK+3 instead of the GTK+2 libraries and so, thus, does Nautilus 2.

There is no easy way you can install Nautilus 2 in your 11.10 system and Nautilus Elementary is not available for 11.10.

If you are that desperate to use those features you can stick with 10.04, supported until April 2013, or 11.04, supported until October this year.


Windows 10 Ubuntu 16.04 Dual boot file permission read only in shared parition

go to windows then open settings

Power Options>
System Settings>
Choose The Power Button Does

Unchecklist

Turn On Fast Startup(Recommended)


Is it possible to do a RegEx Find in Cream (VIM's derivative) via the dialogs?


Turned out I need to instead type in:

/usr/local/MATLAB/R2013b/bin/matlab &

Thanks @Harris


This is a known issue, see https://bugs.launchpad.net/ubuntu/+source/linux/+bug/871891

Some s10-3 machines seem to work, others don't.


How can I stop less from storing history?

Open a terminal and create a file .lesskey, in your home folder and append the following to it:
#env
LESSHISTSIZE=0

If you already have the file .lesshst in your home folder, then delete it and type the command
lesskey

You shouldn't get any errors here. This will not store any history of less from now on, until you change the .lesskey file.
From the man page of less:

ENVIRONMENT VARIABLES
   Environment variables may be specified either in the system environment
   as usual, or in a lesskey  (1)  file.   If  environment  variables  are
   defined  in  more  than one place, variables defined in a local lesskey
   file take precedence over variables defined in the system  environment,
   which take precedence over variables defined in the system-wide lesskey
   file.

LESSHISTSIZE
          The maximum number of commands to save in the history file.  The
          default is 100.

EDIT:
From the comments, I found a better way to prevent having a history file for less.
In the .lesskey file in the home folder, append this:
LESSHISTFILE=-

or
LESSHISTFILE=/dev/null

If you put this in your ~/.bashrc file, this will work, but will have a lower precedence if you have other values in your .lesskey file for the same variables.
You may want to have a look at this:

How to make less more friendly


You might wanna downgrade the driver cause I have the same card and this:

Lenovo ThinkPad E545

Network controller : Broadcom Corporation BCM43142 802.11b/g/n (rev 01)

If you are using this WIFI card, beware that bcmwf-kernel-source does perform very badly with a newer version
of the bcmwf-kernel-source 6.30.223.248-bdcom-0ubuntuXX (XX I have tried them all and all are crap)

Desripction of what is happening:

You are connnected to a network and when you are at signal level cca 55% and less the internet drops and you are offline for a long period of time (restarting card works for a few moments when the drop occurs again)

Solution: You want to downgrade to a bcmwf-kernel-source 6.30.223.141 (Lock it and don't update it)
+ To be sure I also downgrade linux-firmware from 1.127.12 to 1.127, just to be sure

Alternative solution: I have read a lots of lenovo users have this kind of a problem and it was DUE a unstable N module in the driver, so you might wanna disable N module of the new bcmwf. Look it up how to, I am OK with just downgrade.

Anyone from LINUX MINT TEAM please include a backport version of bcmwf-kernel-source 6.30.223.141 to a linux mint 17.2 :)

Possible WARNINGS: bcmwf-kernel-source 6.30.223.141 might not be included in Linux MINT 17.2 as the newer versions are believed to be working properly.


How do I remove the launcher from my second monitor display?

You can configure whether the launcher will show on all monitors or in a single one:

Open the dash and type display

Now configure where you want the launcher to appear:


exFAT vs NTFS. Is exFAT stable enough in 14.04?

Is exFAT stable enough in Ubuntu 14.04?

Well it is in use fairly widely and I myself have not seen users with problems where they are loosing data due to bugs in the exfat/fuse implementation.

With all filesystems that are not native to Linux: be careful when using them and always keep a copy of Windows on your system (even when not using it: it is safer to shrink the Windows system to a bare minimal and edit grub config to skip asking for what OS to start then to remove it completely. There will come a time where the partition is un-mountable from Linux and you will need a Windows tool to fix it).

Just for 1 reason only I would stick with NTFS: exfat is only available as a personal archive and ntfs is in the repositories. So it seems Canonical does not deem it good enough to include in the repositories yet (yet since it is included in Debian so I would expect it to be included too in 14.10)