Without knowing much about your aprtment's Internet Service Provider (ISP), as well as how your apartment's network (AN) is managed, it is hard to give a solution.

Dynamic Vs Static IP addresses

Three levels of difficulties

First: IP address assigned by ISP For most home users ISPs provide a single dynamic IP address. This means the IP address can change anytime at the whim and fancy of the ISP. You need to find out the IP address assigned to your AN by the ISP. You can type "What is my IP" in Google search and get the IP address assigned to your apartment's network. However, this does not tell you if this is static (it never changes) or dynamic (it can change anytime). Let's say this address is www.xxx.yyy.zzz.

Second: IP address assigned by Apartment's Network: Your apartment's network may again assign IP addresses to each apartment statically or dynamically. If apartment network admin uses dynamic IP address allocation. STOP HERE! There is no way to reliably ssh to your home computer from outside.

If your apartment's network admin uses static IP address allocation, there may be still hope. I will assume this is the case for the rest of the answer. Let's say your apartment's network has permanently assigned the IP address 10.0.0.25 to your apartment. You can find this from the WAN setting part of your own router.

Third: IP address assigned by your own router This you can control. Make sure that your router assigns the same (a static) IP address to the computer you want to ssh to. Let's say this address is 192.168.1.101. This is just an example. There is no need to change your IP address to this specific one. You can find this from your computer's Network Manager's connection information.

Port forwarding through two routers

You already know that ssh uses port 22. However, since your apartment's network admin works remotely, she may be using that port to ssh into local server/router. In any case, the same port cannot be used to connect to more than one apartment. So, if 22 is used by some other resident or is simply blocked, you have to use another port. Choose a different port in the 50000+ range. Say 50005.

Set up your computer's ssh server to listen to 50005 rather than 22. Set up your ssh client to use this port as well.

Now, ask your apartment network's admin to forward the port 50005 to your apartment's IP address, 10.0.0.25.

Setup your own router to forward the port 50005 to your computer's IP address, 192.168.0.101.

Now you should be able to ssh from outside your apartment's network. Remember to use the external ISP's assigned IP www.xxx.yyy.zzz and the port 50005 (or whatever you choose) when ssh from outside.

If www.xxx.yyy.zzz is dynamically assigned, you may use a DDNS service to link that IP address to a host name.

Hope this helps


dpkg: error processing package djview-plugin (--configure):

I got it here How to fix "Package is in a very bad inconsistent state" error?

I got it after removing mozilla and

sudo dpkg --remove --force-remove-reinstreq djview-plugin

and reinstalling mozilla. thanks all.


Bash: Wait for the current command to complete, but not start any more commands

You should be able to suspend all the commands, using Ctrl+Z as many times as there are queued commands, then kill the ones that you do not wish to run. You can then resume the first command by placing its job back in the foreground using fg (or background using bg, if you prefer).
To illustrate:
$ /bin/sleep 300 ; /bin/sleep 200 ; /bin/sleep 100
^Z
[1]+  Stopped                 /bin/sleep 300
^Z
[2]+  Stopped                 /bin/sleep 200
^Z
[3]+  Stopped                 /bin/sleep 100
steeldriver@DESKTOP-SPDO14V:~$
steeldriver@DESKTOP-SPDO14V:~$ jobs
[1]   Stopped                 /bin/sleep 300
[2]-  Stopped                 /bin/sleep 200
[3]+  Stopped                 /bin/sleep 100
steeldriver@DESKTOP-SPDO14V:~$
steeldriver@DESKTOP-SPDO14V:~$ kill %2 %3
[2]-  Terminated              /bin/sleep 200
[3]+  Terminated              /bin/sleep 100
steeldriver@DESKTOP-SPDO14V:~$
steeldriver@DESKTOP-SPDO14V:~$ fg %1
/bin/sleep 300
-


Thumbnailer

To show thumbnails the Dolphin will need the thumbnail plug in.

Video thumbnailers for the Dolphin:

:~$ apt-cache show ffmpegthumbs
Package: ffmpegthumbs
Priority: optional
Section: universe/kde
...
Description: video thumbnail generator using ffmpeg
 FFMpegThumbs is a video thumbnail generator for KDE file managers
 like Dolphin and Konqueror.  It enables them to show preview images
 of video files using FFMpeg.
 .
 This package is part of the KDE multimedia module.

Homepage: http://www.kde.org/

.

:~$ apt-cache show mplayerthumbs
Package: mplayerthumbs
Priority: optional
Section: universe/kde
...
Description: video thumbnail generator using mplayer
 MPlayerThumbs is a video thumbnail generator for KDE file managers
 like Dolphin and Konqueror.  It enables them to show preview images
 of video files using MPlayer.
 .
 This package is part of the KDE multimedia module.

Homepage: http://www.kde.org/

.

:~$ apt-cache show kffmpegthumbnailer
Package: kffmpegthumbnailer
Priority: extra
Section: universe/kde
...
Description: video thumbnailer for KDE
 kffmpegthumbnailer is a video thumbnailer based on ffmpegthumbnailer.
 The thumbnailer uses ffmpeg to decode frames from the video files.

Homepage: http://www.kde-apps.org/content/show.php/kffmpegthumbnailer?content=117562

Settings

To use the thumbnail you need to enable the thumbnailer from the Dolphin settings.


Viber has a Linux version. It is lot easier to install and use than using the Windows version through Wine.

To install Viber on Ubuntu open a terminal (Ctrl+Alt+T) and run :

wget http://download.cdn.viber.com/cdn/desktop/Linux/viber.deb
dpkg -i viber.deb


Merging mkv file chapters into one chapter

In most cases ffmeg only can help.

Create a file mylist.txt with all the files you want to have concatenated in the following form (lines starting with a # are ignored):

# this is a comment
file '/path/to/file1.mkv'
file '/path/to/file2.mkv'
file '/path/to/file3.mkv'

Note that these can be either relative or absolute paths. Then you can stream copy or re-encode your files:

ffmpeg -f concat -safe 0 -i mylist.txt -c copy output.mkv

The -safe 0 above is not required if the paths are relative.
The -c copy try concat files without re-encoding. Try remove this params if something will wrong. I mean mkv is a just container can included inside any codecs like h.264 (MPEG-4 AVC), MPEG-2, VC-1, MPEG-2, mpeg-4 / Xvid / DivX.. It need to know which one encoder\decoder codec(s) installed or not with your ffmpeg. Need know exactly or just try. But this is another question. Let's assume that your ffmpeg install fully support your current mkv's codecs.

Source: https://trac.ffmpeg.org/wiki/Concatenate


I followed the advice of Rinzwind and tried alternative drivers according to this thread:

https://askubuntu.com/a/87094/837925

As for me, this resolved my problem.


Cyborg M.M.O.7 Mouse Extra Buttons - No 11-mouse.conf

Can I simply create this file?

Yes. As a general rule, when a config file is mentioned and it is found missing on the system you try to edit, there's 4 possibilities:

The system you are trying to edit was replaced by another one, e.g. RC files -> systemd
The structure changed with an update
The file is superseeded elsewhere e.g. Xorg.conf and xorg.conf.d/stuff.conf
The file is only required if you change the default configuration e.g. system/default = /usr/share/X11/xorg.conf.d/, configured = /etc/X11/xorg.conf.d/

As for what to put in it, this should work:
Section "InputClass"
Identifier "Mouse Remap"
MatchProduct "Saitek Cyborg M.M.O.7 Gaming Mouse"
MatchDevicePath "/dev/input/event*"
Option "ButtonMapping" "1 2 3 4 5 6 7 2 9 10 11 12 0 0 0"
EndSection

source
EDIT:
I tested it with at least Gentoo (I was going to do some compiler flags testing with a new CPU and I remembered to test the mouse) and it works fine. I suppose that it works with pretty much any Linux-based Distribution.
I hope it helps you understand!


Touchpad doesn't work even if it seems enabled. Ubuntu 18.04

I also had touchpad problem with my ASUS notebook (fx553vd).

Updating kernel fixed my problem (4.17rc6, 4.18+ touchpad works).

You can find new kernel versions here

Select specific kernel you want to use
Download headers_all.deb,headers_generic.deb, image_generic.deb, module_generic.deb files
If your download folder is empty, do next:
cd /Downloads, sudo dpkg -i *.deb. Else do next: cd /Downloads, mkdir newkernel, mv (here you have to specify each .deb file) newkernel, sudo dpkg -i *.deb

After updating kernel, go to Keyboard -> Mouse & Touchpad -> Touchpad ON.

I hope I helped you.


Inactive windows can be dimmed using the pluggin 'add helper' in compiz config setting manager'. You may need to install ccsm from software center.

If you are using many windows at a time, use workspace. Ctrl+alt+right or left arrow keys to switch it.


Why does unity occasionally cause system to stop responding?

This is a generic report but the problem that you are experiencing is expected to be solved or mitigated in the next graphical server Wayland, also this behaviour it's not surprisingly new because of the actual architecture of the "GUI system" in a generic GNU/linux environment.

I personally switched to Gnome-shell and i found this to be a good solution for now.

Unity is a big plugin for Compiz, which is a dead project, and heavily relies on a OpenGL accelerated environment, and this could generate some big trouble like the one you are describing. I think that Unity is one of the worst project ever, i also think that a real GUI should never ever be accelerated via Hardware e should not have too much effects and pseduo-eyecandy stuff.

the server X has some well know weak points, like this one, the problem is that Wayland will be ready and fully operational in years and not in months ( all the graphics drivers need to be rewritten from scratch ), for now i suggest to try a different desktop environment like the Gnome-shell of Gnome3 or use the 2D version of Unity.


How do I reset a lost password (using recovery mode requires me to type the password)?

Since you cannot access recovery mode, you'll have to change the password by accessing your installed Ubuntu system from a live CD/DVD or live USB system. What follows is a detailed walkthrough on how to do that.

This is easiest if you can already use the Ubuntu system (even without administrative access). But it's not too much harder if you can't.

In my experience, most Ubuntu users who end up locked out of their own systems have automatic login enabled, which is how they forget their passwords (because they don't have to type them in to log in). This may or may not be the case in your situation, but I have presented how to do this if you can use the installed Ubuntu system first because I think that will help the most people who read this post.

If You Can Use the Installed Ubuntu System, Even As a Non-Administrative User

If you don't already have one, write an Ubuntu live USB flash drive (on Ubuntu, Windows, or Mac OS X), or burn an Ubuntu live CD/DVD (on Ubuntu, Windows, or Mac OS X).
If you know the device name of the partition that contains your Ubuntu system's root filesystem, feel free to skip to step 5.
In your Ubuntu system (not the live CD/DVD/USB system), run this command in the Terminal:

mount | grep ' on / '

You should include the spaces before on and after /.
That command produces something like /dev/sda1 on / type ext4 (rw,errors=remount-ro,commit=0) as the output. The text before on (not including the space) is the device name of the partition that contains your Ubuntu system's root filesystem. Remember it (or write it down).
Boot the computer from the live CD/DVD/USB and select Try Ubuntu without installing (not Install Ubuntu).
Open up a Terminal window (Ctrl+Alt+T).
Run this command:

sudo mount /dev/sda1 /mnt

Replace /dev/sda1 with the device name of the partition containing your Ubuntu system's root filesystem, if different.

If you get an error message about how a device or partition does not exist or about an "unknown filesystem type," then you probably used the wrong device name or partition number. As explained above, your system's root partition might not be /dev/sda1.
Run this command:

sudo chroot /mnt

For the purposes of being able to reset a password, or being able to change what groups users are members of, that's all you need to do to chroot in. In particular, you do not also need to mount other filesystems like /dev, /dev/pts, /sys, and /proc. More sophisticated chrooting procedures, which allow you to fully use the system you are chrooted into--for example, to update and install software inside it--do require that, as well as additional steps after entering the chroot, but this does not.

If you run sudo chroot /mnt and you see this message, it almost always means that you mounted the wrong partition to /mnt--remember, it will not actually be /dev/sda1 on all systems--though it would also happen if you deleted /bin/bash:

chroot: failed to run command ‘/bin/bash’: No such file or directory

If that does happen, then you can unmount it with sudo umount /mnt and then proceed to mount the correct partition.
Perform one of these tasks, to obtain/restore access to the install Ubuntu system.

If you want to reset a user's password:

passwd username

Replace username with your username. (This is the username on the system installed on the hard drive, and not "ubuntu" which is the username of the default user on the Ubuntu Desktop Install CD.)

Enter the password you want for that user.

If you don't know your username, you can get a list of users on the system by running:

ls /home

This works because /home contains all the users' home directories, and the name of a user's home directory is the same as the name of the user.

Alternatively, if you want to set/reset the root password:

Since you're in a root shell, you can use the passwd command with no arguments to reset root's password:

passwd

But please see this page, which explains why having the root account enabled is not recommended in Ubuntu.
Alternatively, if you want to make a user an administrator (so they can perform administrative actions including running commands as root with sudo):

In Ubuntu 12.04 and higher (you can run lsb_release -r to see what version of Ubuntu you have, just make sure you run it in the chroot or it will tell you what version the live CD has), run:

usermod -a -G sudo username

In Ubuntu 11.10 and lower, administrative abilities were conferred by membership in the admin group rather than the sudo group. So then you would instead run:

usermod -a -G admin username

In both cases, replace username with the name of the user account you want to give admin powers.

Run these three commands:

exit
sudo umount /mnt
exit

The last of those commands quits the Terminal window.
Reboot the system by clicking the power icon on the upper-right corner of the screen and clicking Shut Down. (Then click Restart in the dialog box that comes up.) Make sure to remove the CD/DVD or USB flash drive before the system boots up again, so that you can get into your Ubuntu system on the hard disk.

If you're running an old enough Ubuntu live CD that there is a Restart option in the power menu, you should click that rather than Shut Down.

If You Cannot Use The Installed Ubuntu System At All

If you can't log on to obtain the device name of the partition that contains your Ubuntu system's root filesystem, you can figure it out after booting the live CD. There are several ways to do this. I present the one here that I consider easiest and least likely to lead to mistakes. (However, you may also be interested in this other method.)

If you don't already have one, burn an Ubuntu live CD/DVD (on Ubuntu, Windows, or Mac OS X) or write an Ubuntu live USB flash drive (on Ubuntu, Windows, or Mac OS X).
Boot the computer from the live CD/DVD/USB and select Try Ubuntu without installing (not Install Ubuntu).
Open GParted.

To do this in Unity, which is the default desktop environment in most versions of Ubuntu, click the home button (i.e., the button at the upper-left corner of the screen with the Ubuntu logo on it) or press Super, which is also known as the Windows key. Then type in gparted. GParted will come up, and you can click it.
Ubuntu 17.10 and later use GNOME 3 with the GNOME Shell instead of Unity. To open GParted, click on the grid of nine dots that appears on the lower-left corner of the screen to open the application panel. Then click on the GParted icon.

Special thanks to Videonauth for explaining how to open GParted in GNOME 3, as well as for providing these screenshots.1
On very old versions of Ubuntu that use GNOME 2 instead of the Unity or Unity 2D interface, open GParted from the top menu by clicking System → Administration → GParted Partition Editor.
Other Ubuntu flavors, like Ubuntu MATE, Xubuntu and Lubuntu, have a similar system of nested menus, through which you can access GParted while running them from a live USB or live CD/DVD.

Now you can see all your partitions graphically. If you have more than one drive, you may need to select the one that contains your Ubuntu system, in the drop-down menu at the upper-right corner of GParted.
The partition that contains your Ubuntu system's root filesystem is most likely a large partition of type ext4 (or for very old Ubuntu systems, ext3). Usually there is only one ext4 (or ext3) partition, or just one big one. Otherwise, one might be the / partition (containing the root filesystem, this is what you want) and the other might be the /home partition. So if there are two large ext4 or ext3 partitions, you can assume the first one (shown farthest to the left) is probably the one that contains your system's root filesystem.

This could possibly be wrong, but nothing will be damaged by these instructions if you are. In some other situations, outside the actions described in this post, it would not necessarily be safe to make this assumption.
Remember, or write down, the device name of the partition that (probably) contains the root filesystem. GParted shows this to you. It usually takes the form /dev/sdXn where X is a lower-case letter and n is a number.
Quit GParted.
Follow the instructions above ("If You Can Log On as a Non-Administrative User"), starting with Step 6.

These post was originally adapted from post #9, which I wrote, in this Launchpad Answers question.

1 Credit goes to Videonauth for explaining to me how to launch GParted in an Ubuntu 17.10 live environment. I don't have GNOME 3 and would not have been able to provide those instructions otherwise. He also supplied both screenshots. (All I added were the ugly hand-drawn arrow and circle.)


How do I disable the location in gnome-maps

Running the command sudo systemctl mask geoclue.service in Terminal works for me.


want to manually configure ethernet as second (internal) network

If you go to the "Edit Connections" screen from the network drop-down (or the nm-applet), then click on the "Edit" button for your wired connection, you can go to the "IPv4 Settings" tab and change the "Method" drop-down to "Manual", allowing you to add a specific IP address (like 192.169.1.1) for the interface.


How to give a user x full access to a directory?

It would help if you give a little more information about what exactly you are trying to do, but...

Ubuntu by default uses Owner-Group-All permissions.  I am assuming that you want "User-X" to have access to a directory that it owned by "User-Y"

First, Create a group for "User-X" and "User-Y", and add those users to the group - replace <userGroupName> with a name that makes sense to you

sudo groupadd <userGroupName>
sudo usermod -a -G <userGroupName> User-X
sudo usermod -a -G <userGroupName> User-Y

Secondly, change the group ownership of the directory in question

sudo chown User-Y:<userGroupName> <directoryName>

Where <directoryName> is the directory that you are working upon

Finally, change permissions at the directory to allow the owning group, (<userGroupName>), appropriate permissions.

sudo chmod g+rwx <directoryName>

If the group is non-empty, you may wish to change the permissions of all files and folders in the directory:

sudo chmod g+rwx -R <directoryName>


Intel UP Squared AI Vision Dev Kit - Factory Reset

I just refreshed my UP2 AI edge kit and re-installed OpenVino R2.

Not sure what comes in vision kit but i got back most of the applications installed on it earlier.

Also reach out to UP2 team to see if they can provide you with their base image.


Upgrade to 17.10 cinnamon windowing not working

I do not use Cinnamon but recently after upgrading my system I get this error when I tried to launch nemo

Here is how I fixed it:

sudo apt remove libxapp1
sudo apt remove xapps-common
sudo remove nemo*
sudo add-apt-repository ppa:webupd8team/nemo3

I also removed old nemo repo

sudo apt update
sudo apt install nemo

this is output of:

sudo apt policy nemo
nemo:
  Installed: 3.6.4-1~webupd8~zesty01
  Candidate: 3.6.4-1~webupd8~zesty01
  Version table:
 *** 3.6.4-1~webupd8~zesty01 500
        500 http://ppa.launchpad.net/webupd8team/nemo3/ubuntu zesty/main amd64 Packages
        100 /var/lib/dpkg/status
     3.2.2-3 500
        500 http://archive.ubuntu.com/ubuntu zesty/universe amd64 Packages


Does Ubuntu support AMD Ryzen APUs with Vega 8 Graphics?

I found another question from October that had the same issue that I had, and found that the answer did fix my problem. Secure Boot needed to be disabled (which I already had done). And APIC support needed to be disabled at the boot. I followed the intructions in the following post for that and got Ubuntu installer from my flash drive to boot up and was able to install it to my NVMe SSD. The trackpad didn't work on the live Ubuntu build while installing, but after installing it and allowing the installer to download all necessary drivers Ubuntu boots up perfectly and my trackpad works perfectly.
See answer here:
Trying to install Ubuntu 18.04 on Lenovo 330s ryzen 5 2500u


Not directly. Android even uses different processor architecture(except some tablets with Intel x86 processors).
Even the kernel is heavily modified.

You can install Android-x86 on QEMU/VirtualBox to run part of the mobile apps working with the x86 architecture.


How to assign file name with full path to a variable in bash script

You can put commands like these in your script:

#! /bin/bash

path=/anyfolder/anyfolder/anyfolder
cd "$path"


Distribution not supported error when trying to install Intel Graphics Installer on Ubuntu 15.04

First of all I do not recommend to install this package, if you do not have a serious reason for that. Intel drivers that are already installed in Ubuntu are good. It will be hard to remove that package and it may conflict with future updates.

This package is not intended for Ubuntu 15.04. Future release may support it, but as I wrote earlier it is not too good to install it.


kubuntu 11.10 to 12.04 upgrade wipes out grub

Solved -
For info - https://help.ubuntu.com/community/Boot-Repair

Repaired the above case for the three installed systems on one external hard drive; and another case where after a clean install of Ub 12.04 (on a different external drive) the intitial result on reboot after completing the install resulted in grub reporting "error: no such partition".


Permission denied while installing R package

This solution suggested on stackoverflow.com worked for me.

  The best way to avoid this is to use the '--no-lock' argument on the command line, e.g.,

R CMD INSTALL --no-lock <pkg>

  On NFS file systems it is sometimes not obvious what things you have to close. From within R, you can do this from within your command using:

install.packages("Rcpp", dependencies=TRUE, INSTALL_opts = c('--no-lock'))


Installed ubuntu-touch package to test Unity8, computer won't start because it can't find data partition

It's complaining because it has nowhere to create Android files (the directory needs to be made). Try rebooting, if that doesn't work, report back to me.


From an answer at linuxforums:

Set the video settings for kernel boot options via grub:

sudo nano /etc/default/grub

Add this line, or change it to this, or add this to the current line (if you know what you're doing). You can adjust the mode_options, the most import magic is nomodeset and noedid, minimally you can try just adding the noedid:

GRUB_CMDLINE_LINUX_DEFAULT="nomodeset video=uvesafb:mode_options=1024x768-16@60,mtrr=0,scroll=ywrap,noedid"

This turns off KMS mode switching in the kernel; Use the uvesafb frame buffer; Set it to a resolution of 1024x768, with a depth of 16 at 60 Hz sync rate (other options can be 1920x1080-16, or 1600x1200-32@50, depends on your hardware) ; disable the memory type range registers (mtrr) for the framebuffer; enable display panning in a wrap-around mode, using VESA protected mode; do not probe the display to check for edid data. When you switch over to it or connect it to a monitor, then it should be set to that mode (already).

sudo update-grub

To make the grub settings get written to your /boot. Reboot and check it's working, with noedid you won't necessarily get a working display if you plug a different monitor in, possibly it could break (eg if the frequency is set higher than the display can handle; though I think modern displays avoid this).

If it still doesn't work try:

GRUB_CMDLINE_LINUX_DEFAULT="nomodeset text"

and uncomment (remove the #)

#GRUB_TERMINAL=console

Which makes everything work in text only mode. Update grub, reboot.


How can I sync /var/www folder with Ubuntu One?

I also find different solution. We can use deja-backup program to synchronise backup which contains inter alia var/www folder ;)


Can my notebook manage ubuntu as a host and kali as a guest and which virtual machine should i use?

Your laptop probably can't handle virtualization, and if you're doing security auditing, the best choice is to install kali, for example on a flash drive, as opposed to in a virtual machine, so the tools can access the hardware directly.


Check your date and time on the MAAS server and the node have a look at the bugs
https://bugs.launchpad.net/ubuntu/+source/maas/+bug/992075


Upgrading kernel and drivers in a BackTrack ISO

I had used isomaster in the past to add BIOS update programs to a FreeDOS iso. I believe that it is what you want. You can find it in add/remove programs.


I cannot find anything in LibreOffice help

Try using the "Index" tab.

On the other hand, I cannot find anything as well. Maybe you should file it as a bug upstream: http://wiki.documentfoundation.org/BugReport


Mail body is missing, when tried from terminal

You need to add two newlines after the subject to add a mail body. You could try using printf

printf "Subject: Via printf\n\nThis mail body is added via printf" | sudo ssmtp -vvv test@test.com

or using echo with the -e

echo -e "Subject: Via echo\n\nThis mail body is added via echo" | sudo ssmtp -vvv test@test.com


Oracle java giving me trouble with strange warning. Details Below

First, reinstall openjdk. Then install Java 8. Then run update-java-alternatives to select Java8. Finally, (optionally) try to remove openjdk. The cost of keeping the previous version (in disk space) is pretty low (because modern disks just keep getting bigger).

Once you have Java 8 installed, you need to set it as your JVM -

sudo update-java-alternatives -s java-8-oracle

Then you can verify that you have it selected correctly by

java -version


Stopping a .py file from running in background using kill -9 doesn't work

The PID is 31032, the next number (1) is the PPID (Parent Process ID).

You want to kill the PID of 31032.

If you want to see the headers which show what each column means, run ps without the grep command, and the first line printed will be a description of the column.


It seems that you are trying to run a windows application in Ubuntu for that you have to first install wine and then try running the setup file directly from your media.


I'm pretty sure you can't, although you could change to a theme that has thicker window borders (such as Dust) in Preferences > Appearance. This is because the resize cursor is only visible when you are exactly on the border.

I feel your pain, as I find this irritating too, as do others:
https://bugs.launchpad.net/ubuntu/+source/metacity/+bug/160311
http://brainstorm.ubuntu.com/item/2571/


This has nothing to do with sudo.

First, check which shell your users are using. Not every shell supports the arrows for history. Bash, the default shell, does, however.

If that fails, check the relevant shell's configuration files, both of the users and the system files. See if there's anything there to disable the feature.


Your xmodmap expression is wrong. It needs to be formatted like this:

keycode [keycode] = [keysym]

The keysym is the symbol name of the key you want the "|" key mapped to, which in your case is "Return". So your xmodmap expression needs to be:

keycode 51 = Return

Putting everything back together, the command you want to run is:

[~]$ xmodmap -e "keycode 51 = Return"

(Don't type the [~]$ part, I'm just indicating that you need to run that from terminal).

If you want this to run each time you log in create a file called ~/.Xmodmap with the following contents:

keycode 51 = Return

I hope that works.


How do I use mp4mux to create mp4 as recommended by Pitivi?

Even if this may not give the right answer to your question, I put my answer here as requested by djeikyb:

Transcoding may be useful for you.

You render your video in whatever lossless format you wish (AVI, MPG, etc.) and transcode it changing the video bit rate in order to make it usable for HTML5  tag. Further information and a GUI I gave when answering this: How can I maximum compress video files? which I paste here for your convenience.

Good Luck!

  WOW!

  H264 is a high quality video codec but
  (as you refer), it makes "heavy" size
  video files.

  I am not sure if your question is
  related to a GUI or Command Line task.
  But, assumming that you are using
  "Transmaggedon" I will write this
  considering the options for GUI
  applications.

  In my case, I prefer the usage of
  "Mobile Media Converter" which works
  pretty fine in 32bit systems (both
  Ubuntu and MS based systems).
  Unfortunatelly, it has its own
  problems in 64 bit systems.

  What you wish is to make smaller size
  video files. Which can be done by
  changing the "video bit rate", which
  will give you the best quality,
  according to the video bit rate you
  request. In example: a 40MB video file
  (uncompressed, AVI) will fit in a 5MB
  video file (any codec) if you use a
  800kbps video bit rate. But -of
  course- it may harm the quality.

  I strongly suggest you to perform some
  testing using the Mobile Media
  Converter, which can be reached (.deb)
  by clicking the next link:

  http://www.miksoft.net/mobileMediaConverter.htm

  After installing, just drop any video
  files (preferably small for the test)
  into the drag and drop area, then open
  the Advanced options by clicking a
  small arrow that is placed at the very
  right of the window, below the
  "browse" button. "[ ... ]"

  Next, click in "Advanced" and you will
  have all the options that you need in
  order to transcode your video and make
  small and good quality
  transcodification.

  Remember: The higher video bit rate
  is, you will have better quality but
  the file size will become "heavier".

  BTW: You can also transcode videos by using a non linear editing system,
  such as "Kdenlive"
  (http://www.kdenlive.org/) or
  "Openshot"
  (http://www.openshotvideo.com/) and
  many more. A non linear editing system
  will also be useful to edit the video
  (trim, crop, add text and more).

  Good luck!

  Here is a screenshot for you to see a
  few options of Mobile Media Converter
  in action.


Creating custom screen resolution in Ubuntu

The commands in order:

cvt 1920 1024
xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync

The latter line after xrandr --newmode is similar to the ouput you should get when using the cvt command, so copy the output from the "resolution_refreshRate" to the +vsync point and add it to xrandr --newmode.

Then:

xrandr --addmode LVDS1 resolution_refreshRate (don't use speechmarks)
xrandr --output LVDS1 --mode resolution_refreshRate

If you want to make the changes permanent:

Create a bash script, xrandr.sh for example, and place your xrandr commands into it: #!/bin/bash
sudo xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
sudo xrandr --addmode Virtual1 1920x1080_60.00
xrandr --output Virtual1 --mode 1920x1080_60.00
Make the script executable with chmod +x xrandr.sh
Search for "Startup Applications" in the dash, run it, and add the script as a startup application.

The commands will now run every time you log into your account.


set is a shell builtin command. When you issue that on the command line, you see everything in your current environment. That will include any functions you have loaded. Note that most distros will include at least a few helpful functions in the shell profiles, and if you have bash completion installed, you will have scads of them.

env is a binary. It is loaded and executed by the shell, just like any other command. Therefore, it only sees any environment variables that you have exported, which should exclude any functions from your shell environment.


12.04 boots to blackscreen on Acer Aspire One 751h

I've installed a "fresh" Ubuntu 12.04 in my Acer Aspire One 751H, and I've the same problem.

Follow the steps to fix the issue:

Open your Terminal - Ctrl + Alt + F1
Restart X:

sudo service lightdm restart

Open /etc/default/grub:

gksu gedit /etc/default/grub

and change

GRUB_CMDLINE_LINUX_DEFAULT=""

to

GRUB_CMDLINE_LINUX_DEFAULT="quiet console=tty1 acpi_backlight=vendor acpi_osi=Linux acer_wmi.blacklist=yes mem=1920mb"

Now it should work.

Source: Ubuntu Wiki and Bodhizazen Blog


Problem converting my computer to ubuntu due to inability to navigate bios

Normally, F2 or F11 or F12 will give you change boot sequence without getting into the BIOS. Please check if one of them works.


Mount LXD guest directory without destroying data and ownership

To remove the entry you created, the following should do the trick:

lxc config device remove sharedhtml

Now it looks like LXD did exactly what it was supposed to do in this case.
The command you ran instructs LXD to mount /home/$USER/public_html from the host into the container as the container's /document/root

As LXD containers run using a different uid/gid map from the host, the ownership of the files from the host cannot be rendered inside the container, leading to the kernel showing you those as nobody:nogroup.

There is no mechanism to have a path inside the container be mounted on the host and it's unlikely we'd add such a thing any time soon.

Anyway, in your case, what you probably ought to be doing is have a storage path on the host for your web server's files, then have this setup as a device disk entry in LXD to have it mounted in the right location inside the container.

Then set POSIX ACLs on the host so that both the container's uid/gid can access the files and your own user too.

In most cases, the container uid and gid on the host will be 165536 + uid or gid inside the container. An easier way to figure that out is to have the path on the host be world writable temporarily, then write something to the path inside the container and confirm who shows up as the owner on the host.


Open source drivers are great because they are open, allow very good support of most hardware on them and have a better history when we are talking about desktop environment glitches, but they are not known for their speed when playing games.

If you really want to compare probably Windows will still get the upper coin in the end but you can have a better idea of how good the game will run in Linux using the closed proprietary drivers from ATI.

Have a look at this post for more information on how to install, switch, go back, forwards with your graphics card driver.

If you find your self in trouble (I believe not, just follow the not so simple but well written instructions ;)) you can always drop another question and some one will help you restore your system. I recommend the version you get by downloading from ATI


WSL doesn't come with an X server by default, because Windows doesn't use an X server. Which would also be why xhost failed to do anything remotely useful.

In order to do something like this, you need to download an X server for Windows, and then configure that. For example, you can use the Xming project to run a display server. When launching Xming, you can use the -multiwindow option to make it so you don't have a virtual desktop. However, this may not be the case with other X servers present on Windows.

You can find a quick tutorial here for Xming specifically (really, it's just install + configure + export DISPLAY=:0) or here also for Xming. Alternatively you can use MobaXTerm (tutorial), which will achieve the same basic result.

In short, find an X server you like, and install it on Windows. After that, your WSL instance should be able to pick up on the fact that an X server is available, and you should be able to run GUI-based programs without much hassle.


Is it possible to open MS OneNote files under Linux?

I'm not aware of there existing a program that supports the OneNote file formats, but the specifications are published:

https://docs.microsoft.com/en-us/openspecs/office_file_formats/ms-onestore/ae670cd2-4b38-4b24-82d1-87cfb2cc3725?WT.mc_id
https://docs.microsoft.com/en-us/openspecs/office_file_formats/ms-one/73d22548-a613-4350-8c23-07d15576be50?WT.mc_id


Repository on DVDs for Ubuntu likes Debian

You might want to have a look at AptOnCD, but if you're going to download everything anyway, I would suggest that you use apt-mirror to create a local mirror of Ubuntu. That way, everyone in your local network can install and upgrade from your computer without the need for a separate internet connection. So you install security upgrades, for instance, and then those are immediately available to everyone.

apt-mirror can also be started and stopped, so you don't have to download so much at a time.


Corsair Sable Mouse increases boot time by 70 seconds

Added the following line to my kernal cmdline:

usbhid.quirks=0x1B1C:0x1B2F:0x20000408

llldino


How do I get update manager to update only specific packages from a source?

It's called pinning.  You need to pin the ppa extremely low in general, but very high on the specific packages you want... although please note, it's entirely possible you'll screw yourself if you install drivers that need a specific kernel which you're refusing to install.  Be careful.

http://jaqque.sbih.org/kplug/apt-pinning.html


Can I install Nessus on two different systems with the same email address?

You can reset the nessus admin's password through by following command:

On Windows:

C:\Program Files\Tenable\Nessus\nessus-chpasswd.exe <username>

Or on Linux:

/opt/nessus/sbin/nessus-chpasswd <username>


Put bash $each and mv $each $each.bak in an else block:

(cd /opt/trunk/mythos/medusa/remote-scripts/ && wget -r --no-parent --reject "index.html*" http://server/medusa/scripts/)
chmod +x /opt/trunk/mythos/medusa/remote-scripts/server/medusa/scripts/*.sh
for each in /opt/trunk/mythos/medusa/remote-scripts/server/medusa/scripts/*.sh
do
    if /usr/bin/test -e "$each.bak"
    then
        rm -rf "/opt/trunk/mythos/medusa/remote-scripts/server/medusa/scripts/$each"
    else
        bash "$each"
        mv "$each" "$each.bak"
    fi
done

That way the current script will be executed and moved only if /usr/bin/test -e "$each.bak" fails (i.e. the current script hasn't been executed and moved previously).

I quoted all the variables with double quotes to prevent them from breaking the commands in case they end up containing weird characters / strings.


ZFS uses it's own cache called ARC, rather than the regular Linux page cache. This doesn't show up as "cache" in top, but it works just like the regular cache in the sense that it gets released under memory pressure. That is why you see memory going "missing". If you do

echo 3 > /proc/sys/vm/drop_caches

you'll see that you get all that memory back (and then your disk reads will be slow again until the caches warm up. By default ZFS ARC is capped at 50% of detected memory, which is why you see the memory usage plateau around 16-17GB.

Regarding your 2nd question, many programs aren't single-threaded, some fork many threads, others many processes. Some kernel processes have a separate instance per CPU thread. That is why you are seeing multiple instances of some processes.


I think you need to install Google Chrome browser to be able to watch netflix. Google Chrome supports netflix, don't know with hulu.

I haven't used both, netflix and hulu, but a few months ago, there was a news but Google Chrome is now able to play netflix directly from their browser (regardless of the OS), don't know with hulu though.


How to install Brother Printer MFC-L2740DW

Presumably, from the date, you are using 16.04? After I upgraded Lubuntu to 18.04, I successfully installed an MFC-2740DW simply by using the System Tools>Printers>+Add option, selecting Network Printer.
It found my printer. Upon selection, it offered three protocols to communicate with the printer. I chose the 'Driverless ...' option and hit 'Forward'. It then went looking for a driver[this is the 'driverless' option, remember ...], found it, and added the printer. Perhaps upgrading to 18.04 is the solution?


Auto-play and keep omxplayer-pi running on Ubuntu Core 18

Turns out this is a bit of work on Ubuntu Core. It was for me, anyway--I had to learn the ins and outs of building, installing, and using snaps. There are documentation and examples available and it worked as advertised.

After getting a hot tip I hacked on on https://github.com/ogra1/iptv-player-snap. My fork is here. It will automatically loop a video on boot on an ubuntu core raspberry pi. No X server or window manager required!

Note: there's an easy alternative video looper that runs on raspbian.


Controlling fan headers on an ASUS Maximus VIII Formula?

I've done this with the Z97 and it looks like the Z170 should work similarly.  You will need to configure the /etc/sensors3.conf and /etc/modules to utilize the nct6775 drivers.  I was able to get the main fans controlled with the following:

/etc/modules

# Chip drivers
coretemp
nct6775

Append this to the end of /etc/sensors3.conf

chip "nct6791-*"
    # For the Asus Z97-A. Based on:
    # http://www.spinics.net/lists/lm-sensors/msg42249.html

    label in0 "CPU Vcc"
        # 'CPU Input Voltage' in UEFI
        compute in0  @ * 2, @ / 2

    label in1 "+5V"
        compute in1 @ * 5, @ / 5
        set in1_min 5 * 0.95
        set in1_max 5 * 1.05

        # From driver: label in2 "AVCC"
        set in3_min 3.3 * 0.95
        set in3_max 3.3 * 1.05

    # From driver: label in3 "+3.3V"
        set in3_min 3.3 * 0.95
        set in3_max 3.3 * 1.05

    label in4 "+12V"
        compute  in4  @ * 12, @ / 12
        set in4_min 12 * 0.95
        set in4_max 12 * 1.05

    # in5: unknown

    label in6 "core 3"
        compute in6 @ * 2, @ / 2

    # From driver: label in7 "3VSB"
    # From driver: label in8 "Vbat"
    # From driver: label in9 "Vcore"

    label in10 "GPU"

    label in11 "sys agent"
        # 'CPU System Agent Voltage Offset Mode Sign' in UEFI

    label in12 "core 2"
        compute in12 @ * 2, @ / 2

    label in13 "core 1"
        compute in13 @ * 2, @ / 2

    label in14 "core 0"
        compute in14 @ * 2, @ / 2

    label fan1 "Fan 1"
    label fan2 "CPU fan"
        # The correponding pwm also controls the 'CPU Opt' fan

    label fan3 "Fan 2"
    label fan4 "Fan 3"
    label fan5 "Fan 4"
    label fan6 "CPU fan 2"
        # 'CPU Opt' header

You can also try utilizing sensors-detect, it will generate the /etc/modules file.

Add the following to the GRUB_CMDLINE_LINUX_DEFAULT variable in the /etc/default/grub file: acpi_enforce_resources=lax then rebuild the grub config grub-mkconfig -o /boot/grub/grub.cfg

Again, that was for the Z97, it may need some tweaking for the Z170.


How do I open Skype's contact list when a chat window is open

Click on the Skype indicator icon, and click "Activate".


How to disable all GUI elements and boot to command prompt

Re-purpose using tasksel

Install sudo apt-get install tasksel

run sudo tasksel

Uncheck ubuntu-desktop

Check basic server


As @steeldriver noticed: the service command fails because it is not in the crontab path. Even as root, crontab jobs run in an environment that is fairly restricted in terms of environmental variables. You need to include the full path of many executables in a command that is to be executed by cron.

In this case, therefore,

/usr/sbin/service $service start

would have worked. How do we know what the exact path of an executable is? Do which service and it will answer /usr/sbin/service.

However, the service command is on its way out and being replaced by its systemd equivalent systemctl. You would do systemctl start $service in a terminal command. Even without sudo, systemctl will figure out that it is not running as root, and ask for your sudo password.

In a crontab, you would use the full path to systemctl utility, which is /bin/systemctl.

So, if you use

/bin/systemctl start $service

it should work.


How to copy partition table to multiple drives simultaneously

You could do:

sfdisk -d /dev/sda > sda.out
for i in {b..k}
do
    sfdisk /dev/sd$i < sda.out &
done

This will start 10 sfdisk processes in the background, each handling one disk.

Or use tee with process substitution, but I can't think of a programmatic way to do it easily.


Possible to run custom DHCP and DNS with fall-back to Cable Modem?

Can you run the DHCP from your cable modem, and configure it to send out the DNS servers as:

1st DNS server: Your home DNS server
2nd DNS server: Your ISP's first DNS server

Most routers I've had allow you to at least modify the DNS servers they announce over DHCP, and create static IP allocations for its DHCP server.  I've done both of the above and never had a need to create a separate DHCP daemon on a home server.

Also, this way you won't have two DHCP servers on the same local network competing against each other for who gets to be in charge of any newly connected device.


LibreOffice: How to change the style of the superscript text by default?

Perhaps you will have to create a new SuperScript Style, and apply it to all your superscript text, instead of just 'superscripting' it with Ctrl+Shift+P or a toolbar icon.

You can do it by opening the Styles and Formatting sidebar (View -> Styles and Formatting (F11)), clicking Character Styles at the sidebar header, then selecting any superscript character in your text, then clicking the New Style from Selection dropdown at the sidebar header and choosing New Style. Give it a name. It will be a default superscript character style, which you can now modify. Right click on it in the sidebar and choose Modify to do it. When you are finished, you will have to manually select all the superscript characters you want to change and select your newly created style in the sidebar.

Yes, this is not a perfect way to do it, but

you will have to set your style parameters only once and then only apply it;
you can easily change the style of all your superscript characters later at once.

This is the best way I can think of, until we find a better way!)


Ubuntu 14.04 doesn't boot after moving to different partitions

Restore the system to its original condition.

And then move the partitions with the correct procedure.

In a normal session:

You must mount the partition on a temporary directory name to copy files to it the original /home.

Open a terminal (CtrlAltT).  Run it:

You create the temporary directory

sudo -i
mkdir /media/hometemp

Mount partition

mount /dev/sda6 /media/hometemp

To copy:

cd /home
cp -ax . /media/hometemp

This last line is the only one used to clone, attention "." the end.

Now mount the new /home previous  rename the /home partition and remove the old.

cd /
mv /home /home.old
mkdir /home
umount /dev/sda6
mount /dev/sda6 /home

Now you have to find the UUID of the partition and edit the /etc/fstab file to mount the partition at startup.

blkid /dev/sda6
nano /etc/fstab

And you add these lines at the end with that reported blkid UUID.

# /dev/sda6 was /home
UUID=fc258128-7f32-4bbb-8b14-9c3d3da05619 /home ext4 defaults 0 2

Ctrl + O, save file. Ctrl + X, close nano.

Restarting have everything working exactly the same, but with other partitions.

Once everything is working well, delete the /home.old and /media/hometemp

sudo -i
rm /home.old
rm /media/hometemp

And now

You must mount the partition on a temporary directory name to copy files to it the original /usr/local.

Open a terminal (CtrlAltT).  Run it:

You create the temporary directory

sudo -i
mkdir /media/usrtemp

Mount partition

mount /dev/sda5 /media/usrtemp

To copy:

cd /usr/local
cp -ax . /media/usrtemp

This last line is the only one used to clone, attention "." the end.

Now mount the new /usr/local previous  rename the /usr/local partition and remove the old.

cd /
mv /usr/local /usr/local.old
mkdir /usr/local
umount /dev/sda5
mount /dev/sda5 /usr/local

Now you have to find the UUID of the partition and edit the /etc/fstab file to mount the partition at startup.

blkid /dev/sda5
nano /etc/fstab

And you add these lines at the end with that reported blkid UUID.

# /dev/sda5 was /usr/local
UUID=9017071b-73f2-48af-b205-c1231139a414 /usr/local ext4 defaults 0 2

Ctrl + O, save file. Ctrl + X, close nano.

Restarting have everything working exactly the same, but with other partitions.

Once everything is working well, delete the /usr/local.old and /media/usrtemp

sudo -i
rm /usr/local.old
rm /media/usrtemp


Imagemagick montage is creating corrupted filenames in the display command

/usr/bin/magick --version
Version: ImageMagick 7.0.11-3 Q16 x86_64 2021-02-27 https://imagemagick.org
Copyright: (C) 1999-2021 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI OpenMP(3.1)
Delegates (built-in): bzlib djvu fontconfig freetype gvc jbig jng jpeg lcms lqr lzma openexr png raqm tiff x xml zlib
This version does not have the above issue.


Use sudo sensors-detect on terminal and answer the questions with yes (mostly). Now run this command: sudo service module-init-tools restart   Now check the temperatures using sensors -s command on terminal. If it works.. restart psensors. If not, follow this page and see if it helps. Link: http://ubuntuforums.org/showthread.php?t=1933020

You might also want to see this page: https://help.ubuntu.com/community/SensorInstallHowto


How to block Gnome Popup Notifications for Mounted Media?

Steal My Focus is an extension for GNOME which solves the exact problem you have. You can easily activate the extension right from your web browser.


Ubuntu dual boot with Windows 7 having partitioned before hand

You didn't erase Windows. The grub menu didn't show up at boot for you to select Windows.

Here what you need to do:

Turn on your computer

At boot, press down the shift key.

Then you will be greeted by the grub menu. Windows should be one of your boot options. Select Windows.

Enjoy!


I had a similar issue:
I have an HP All-in-One printer which includes also scanner.
The printer worked OK, but the scanners didn't.
The device was pinged properly (also the HTTP interface worked OK).
So I followed the instructions in this URL:
https://help.ubuntu.com/community/ScanningHowTo#LAN-based_scanners
(Under title "LAN based scanners")
After performing:
sudo hp-setup -i 1.2.3.4

(while 1.2.3.4 is the local IP address of the printer/HP-device.)
Then the scanner worked properly.


No Wifi Adapter Found - MSI Modern 14 A10M

I have the same issue, here is my solution:

sudo add-apt-repository ppa:canonical-hwe-team/backport-iwlwifi
sudo apt update
sudo apt install backport-iwlwifi-dkms

There is no such problem when you use Ubuntu 20.04 or Fedora 31.

Before doing that, you may need to connect your laptop with a smartphone via cable and turn on USB Tethering to share internet connection.


Solved it. Despite having a Nvidia Graphics Card I deleted 3rd party Nvidia drivers automatically added by install procedure. Hard work though cos I had to guess buttons reached by tab and enter. Some trial and error. Everything fine now. Much slower than expected, but suits my basic needs.

I'm disappointed that there was no answer in this forum except those wise questions from people without a clue concerning the x10. So also with Ubuntu you are pretty much alone.


Stuck on orange screen while booting off USB

I seemed to have had a graphics driver issue, I solved it by launching ubuntu in recovery mode and then updating the drivers. (Using another display adapter should also work...)


System Stalled in middle of Upgrade to 13.10

First, you should wait. Do you have a way to find out, if it's downloading something?
If it really fails, press CTRL-ALT-F1 followed by CTRL-ALT-DEL to reboot the pc cleanly.

Open the console, and run

sudo apt-get install -f

This should continue the upgrade process.
If you cannot login to the GUI, press CTRL-ALT-F1 and log in here, to run the command.

If you have any problem now, please post it here.

Btw: If you have any important data to save, you might want to do it before reboot to an external drive.


Alt+number does not switch terminal windows but gives me an unwanted Bash function instead

I faced similar issue while switching between terminal tabs using Alt + number on Ubuntu 20.04. The issue gets resolved by disabling mnemonics from terminal preferences settings (Preferences --> General --> Untick "Enable mnemonics").


Horribly slow HDD to HDD write speeds after new HDD install

EDIT: Not actually solved. I can be cruising along great, copying multiple GB worth of large files, getting solid xfer rates, around 130MiB/s, and then performance completely tanks, rates lower than 5.0MiB/s!
1 files (  7.8 GiB) copied in 2084.7 seconds (  3.8 MiB/s).

It seems like the disk cache fills up and just takes an extremely long time to flush? I'm not sure, but this is getting pretty annoying!
@Raffa SOLVED: It appears to be user error on my part (usually is!) and I didn't have a partition setup for /dev/sda. Added an ext4 partition, and now cp from /dev/sda1 to /dev/sdc1 is as fast as you would assume given this hdparm output:
[2021-01-10 19:17:55] sean@muth-dev / λ sudo hdparm -Tt /dev/sda

/dev/sda:
 Timing cached reads:   30588 MB in  1.99 seconds = 15396.57 MB/sec
 Timing buffered disk reads: 196 MB in  3.00 seconds =  65.24 MB/sec

[2021-01-10 19:18:34] sean@muth-dev / λ sudo hdparm -Tt /dev/sdc

/dev/sdc:
 Timing cached reads:   30404 MB in  1.99 seconds = 15305.23 MB/sec
 Timing buffered disk reads: 728 MB in  3.00 seconds = 242.54 MB/sec

Recent file transfer:
1 files (  4.1 GiB) copied in 2.4 seconds (  1.7 GiB/s).


From your xinput output, you may want to consider changing Accel Speed to something > than the current value of -1.000000. The largest value for this parameter is 1.0, which is maximum acceleration, and will likely give you the increased mouse speed that you're seeking.

As an example, I'm using -.1 for my acceleration value.

To temporarily (for the session) set a new value, use the following command: sudo xinput set-prop <n> 276 -.1, where <n> is the property value of the mouse/touchpad determined by running xinput list (it appears that you've already done this, but the device is not listed in your output).

To permanently set this value, you'll need to edit the libinput.conf file located in /usr/share/X11/xorg.conf.d. Option details/syntax are available on this site (e.g., AccelSpeed).


IP addresses of DNS Queries Show Up Backwards in Wireshark

while using tcpdump, use -n This will tell tcpdump to NOT to resolve any IP's or domain names. What you are seeing is the reverse lookup for the IP's.

Excerpt from tcpdump man page
-n     Don't convert host addresses to names.  This can be used to avoid DNS lookups.


Actually the one that says 64-bit PC (AMD64) desktop CD is the one you want "For a Desktop/Laptop".

If you want it for a server installation then go with the one that says 64-bit PC (AMD64) server install CD

64Bit Desktop - http://releases.ubuntu.com/natty/ubuntu-11.04-desktop-amd64.iso

64Bit Server - http://releases.ubuntu.com/natty/ubuntu-11.04-server-amd64.iso

64Bit Desktop (Torrent) - http://releases.ubuntu.com/natty/ubuntu-11.04-desktop-amd64.iso.torrent

64Bit Server (Torrent) - http://releases.ubuntu.com/natty/ubuntu-11.04-server-amd64.iso.torrent


Maybe this will be helpful

do a

ps -ef | grep python

in a terminal, find the processes that you think shouldn't be running, and kill them with

kill PID

PID for the process is given in the first column of the ps output.


How can I look up my monitor's native resolution in Kubuntu?

Technically every monitor has special I2C device, from where Extended Display Identification Data (EDID) can be read.

You can install the read-edid package and check the manufacturer's data inside the panel with commands below:

sudo apt-get install read-edid
sudo get-edid | parse-edid

Example: for my 1366x768 I get the following output (it is really single line, as there are no other modes):

  ...
  Modeline     "Mode 0" 77.00 1366 1424 1460 1560 768 771 778 822 -hsync -vsync`

For external monitors these commands return more data. Something like:

  ...
   #Not giving standard mode: 1920x1200, 60Hz

About ModeLines you can read on ArchWiki if interested.


⚠ BACKUP ALL DATA BEFORE TRYING ANYTHING IN THIS POST! ⚠

  The operations discussed in this post might very well be destructive. Have a full backup of anything important before doing anything. Failure to ignore this warning is your own fault.

First off, be sure you have a few hundred MB of space unallocated at the front and rear of your hard drive. As you have an EFI partition there, you're okay.
In a terminal, run the command sudo gdisk /dev/sdX. Be sure to replace sdX with the proper device identifier.
gdisk will prompt you that it will do the conversion. Once you're at the command window, enter w and hit enter. gdisk will give you one final warning. Confirm and move on.
Your drive is now running in GPT mode. You will now need to re-install GRUB with sudo grub-install /dev/sdX (same replacement method as in step 2). You may also need to re-install the Windows bootloader using a Windows recovery disk.


You can just download the newest version here https://www.thunderbird.net/en-US/thunderbird/all/
Unpack it to a folder and click on executable "thunderbird". For me it found my profile automatically and I was able to have a look at the new version.

My old installation is not affected in anyway.


How to fully upgrade to KUbuntu 12.10 from Ubuntu 12.04?

You would upgrade to 12.10 and then install kubuntu-desktop

See https://help.ubuntu.com/community/QuantalUpgrades

sudo apt-get install kubuntu-desktop

If you are wanting to switch to KDE, it may be easier to simply back up your data and perform a fresh install.


Packard Bell EasyNote MZ35 freezes when AC unplugged and wireless on

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/656745/comments/37

  I deinstalled the pm-utils 1.4 with synaptic. Download the package
  pm-utils 1.3.0-1ubuntu1_all_deb from

  "http://packages.ubuntu.com/de/lucid/all/pm-utils/download"

  and installed it.

  Now it workes fine and all functions remain in the best way.


The cleanest would be of course to fix the bug, but as a workaround, the background script below will do the job:

#!/usr/bin/env python3
import subprocess
import time

key = "org.gnome.settings-daemon.peripherals.keyboard numlock-state"
while True:
    time.sleep(1)
    state = subprocess.check_output([
        "/bin/bash", "-c", "gsettings get "+key]).decode("utf-8").strip()
    if state != "'on'":
        subprocess.Popen([
            "/bin/bash", "-c", "gsettings set "+key+" 'on'"])

How to use

Copy the script above into an empty file, save it as NM_on.py
Test-run it in the background with the command:

python3 /path/to/NM_on.py

If all works fine, add it to Startup Applications: Dash > Startup Applications > Add, add the command:

/bin/bash -c "sleep 10 && python3 /path/to/NM_on.py"

Explanation

We can get the current Num Lockstate in more than one way:

running the command:

xset q

which will give an output like:

Keyboard Control:
  auto repeat:  on    key click percent:  0    LED mask:  00000000
  XKB indicators:
    00: Caps Lock:   off    01: Num Lock:    off    02: Scroll Lock: off
    03: Compose:     off    04: Kana:        off    05: Sleep:       off
    06: Suspend:     off    07: Mute:        off    08: Misc:        off
    09: Mail:        off    10: Charging:    off    11: Shift Lock:  off
    12: Group 2:     off    13: Mouse Keys:  off
  auto repeat delay:  500    repeat rate:  33
.....

or with the command:

gsettings get org.gnome.settings-daemon.peripherals.keyboard numlock-state

which simply returns 'on', 'off' or 'unknown'.

Since the latter is extremely light weight, we can very well use it in a background script to check once per second, and set the value to 'on', if necessary, with the command:

gsettings set org.gnome.settings-daemon.peripherals.keyboard numlock-state 'on'

and so it does...

Edit

For some reason, I missed your last paragraph, in which you referred to another answer with a similar solution.

Purely theoretically, I always have a problem with scripts that blindly (re-) apply settings, without checking the current state. There could be an argument to do so, if the command

gsettings get org.gnome.settings-daemon.peripherals.keyboard numlock-state

to get the current value, would be more demanding that simply run

numlockx on

to (re-)set numlockx on.
Looking at the time both commands need to finish (which is at least an indication) it is however the other way around; the command

gsettings get org.gnome.settings-daemon.peripherals.keyboard numlock-state

seems to be more "light-weight".

Running a background script a bad idea?

Of course, if you have no reason to run a background script, then don't. At the same time, if a background script is well- written, thoroughly tested, procedures are smartly optimized, and if it does not add any noticeable effect on the processor occupation, it would be silly not to use as a workaround if it adds important functionality or saves you time.

I constantly have at least 4-8 background scripts running. Most of them for weeks without a restart. Never noticed any effect, on my elderly system(s). Keep in mind your system is running numerous loops anyway.


I opened the server i shared and typed ifconfig to get the ip adress. Then I typed this command  to list of shares
smbclient -L //myServerIpAdress

Then to mount it I typed these 2 commands: first to create a folder under the /mnt and then to do the mount
sudo mkdir /mnt/myFolder

sudo mount -t cifs -o username=serverUserName //myServerIpAdress/sharename /mnt/myFolder/

Then enter the server's password when asked and your mount is done under /mnt/myFolder


SSD card locked to launcher after wakening from sleep mode

The two conventional storage locations are /media and /mnt. The difference between the two are that /media is used for removable and /mnt is used for more permanent storage. Removable storage is always automatically mounted in /media and is shown on the launcher when mounted. On the other hand, storage mounted on /mnt *(or anywhere else)** isn't shown on the launcher, which seems to be the one you want.

For this, you'll have to modify your fstab:

Look up the device address of your SSD for reference later. An easy way is to go to the Disks app and find your SSD. The address should look like this: /dev/sda1. Also find out its file system type. For example, it could be ext4, FAT or NTFS.
Open a Terminal and type in sudo gedit /etc/fstab.
Type in the device address, mount point, file system type, options, dump and pass number, all separated by spaces. It should look like this:

/dev/sda1 /mnt/[name]    ext4    defaults          0       2

Just fix the spaces to match the previous entries just for organization.

/dev/sda1 - example of your device address
/mnt/[name] - chosen mount point*
ext4 - type of file system type
defaults - default options
0 - dump sets whether the backup utility dump will backup file system. "Dump is seldom used and if in doubt use 0."
2 - tells fsck in what order to check the file systems "In practice, use '1' for your root partition, / and 2 for the
rest."

**My preferred mount point is /mnt/archive. It can actually be anything that isn't already used by the system (e.g. /data, /storage). If you mount it in /media, like /media/storage, it will show up on the launcher.*

The full manual can be found here.
Save the file.
Restart the computer to take effect.

Cheers.


How to patch the boot information table in ISO master?

Click Tools>Boot Record>Add. Then you can select what kind of emulation you want (you can even select to have no emulation).


Ubuntu Core vs. Arch Linux on ODROID-C0 development board

Ubuntu Core is a minimalistic version of Ubuntu designed to run on embedded devices, and it is the more lightweight OS. The minimum hardware systems requirements for Ubuntu Core are:

Processor – 600MHz processor (ARMv7 or greater, or x86)
System Memory – 128MB RAM
Storage – 4GB flash/storage for factory reset and system rollback

A new release of Ubuntu Core is released every 2 years on even numbered years (2016, 2018, etc.). Ubuntu Core 18 is based on Ubuntu 18.04, and is supported by security and maintenance updates for 10 years until April, 2028.

               Processor              Memory    Disk space    Download webpage
Ubuntu Core    600MHz ARMv7 or x86    128MB       4GB         http://cdimage.ubuntu.com/ubuntu-core/vivid/daily-preinstalled/current/
Arch Linux     i686, x86_64 or ARM    256MB     800MB         https://archlinuxarm.org/about/downloads

If you have an application that doesn't need more than a minimal operating system and power saving is very important, I recommend Ubuntu Core.


I was trying to install libc6 with this commend: sudo apt-get install libc6*

Using libc6* there is selecting many more packages than you probably intended.

From the apt-get man page:

  If no package matches the given expression and the expression contains one of '.', '?' or '*' then it is assumed to be a POSIX regular expression, and it is applied to all package names in the database.

So libc6* means "every package that contains libc". There are bound to be some conflicts there.

You can try sudo apt-get install '^libc6.*' to get just packages that start with libc6, but that's going to get you a lot of packages meant for other architectures (for cross compilation).

You may be fine with sudo apt-get install libc6 libc6-dbg libc6-dev, if you just want all the typical libc6 packages for your architecture. I imagine your system already has libc6 installed.


Are there any advantage using Wine over VM to run Windows programs? (or Vice Versa)

It really depends of what you want to do, or what kind of Win apps you want to run into Ubuntu... There's no "better" solution.

Wine is really defined to "emulation" of a software into a linux environnement.

VM's is defined to run a full OS into another one (a kind of OS "Inception").

Games are great with Wine (just think to add Winetricks package too for DLL, DirectX and Microsoft SQL stuff). But don't even think running a DirectX 3D game into a virtual machine (or you have a hardcore computer with huge resources).

Microsoft Office suites (especially 2007 & 2010 versions) doesn't run great with Wine (app crashes) but in this case, running them into a VM can be a good option.

...and so on...


This isn't a solution to your problems with YouTube via a browser + flash, but Minitube will allow you to play YouTube videos fullscreen without the issues you noted, and probably smoother as well.

sudo add-apt-repository ppa:nilarimogard/webupd8 -y && sudo apt-get update && sudo apt-get install minitube

You might try using Google Chrome or chromium + pepperflashplugin-nonfree if you want to use YouTube in a browser.


I got the error "resource is busy" while trying to mount my hard drive

I suspect that /dev/sda1 is already mounted under /media/ACER. Nautilus automatically mounts partitions when selecting it on the left side. You cannot mount a partition multiple times (leaving out --bind mounts).


Blank desktop upon install in VirtualBox on Windows 8.1

Thanks a lot for the hint muru! I enabled Virtualization Technology in BIOS and was later able to install 64 bit Ubuntu. Obviously this option, disabled by default, made VirtualBox stick with 32-bit versions only. The 64-bit Ubuntu has a full functioning desktop from the beginning. The 32-bit version still has blank display, but this is not of much importance to me any more.


Is there an application to convert the pdf files to a flipbook

Calibre can do that for you and more. http://calibre-ebook.com/

It has support for many formats, including PDF and EPUB, which is what you seem to be looking for. You can convert to any ebook format, fix/add table of contents, adjust font size and formatting, and many other things.  I use it constantly.


You can see if it is mounted (and with which options) with mount (when the disk IS mounted) see man mount), find its UUID with sudo blkid -o export (will show all devices) (see man blkid), and arrange for it to be mounted by editing /etc/fstab (see man fstab). You should look at the auto parameter.


you can download it from this mirror  and install it ftp://ftp.mirrorservice.org/sites/ftp.gimp.org/pub/gimp/v2.6/


networking.service refuses to start on boot (failed to bring up lo, file exists)

The loopback interface was configured incorrectly in /etc/network/inerfaces:

iface lo inet static
    address 127.0.0.1
    netmask 255.0.0.0

The loopback interface (lo) is considered "special" to the system and needs to be classified as such. In order to facilitate this, any references to the loopback interface should be removed and replaced with the default:

auto lo
iface lo inet loopback

Restarting the networking service after making this change should allow the system to grab it properly and fix the error in bringing up lo.


Try to get libxml2 >= 2.8.0

from: “libxml2” 2.9.0+dfsg1-4ubuntu4.3 source package in Ubuntu

Download it as DEB file, and double-click to install it (the faster way) .


Files missing in /mnt/hgfs on Ubuntu VM?

I have a similar problem and I solved it with the procedure suggested here, as indicated in Jorge's comment:

$ git clone https://github.com/rasa/vmware-tools-patches.git
$ cd vmware-tools-patches
$ ./patched-open-vm-tools.sh

I hope this can help you.

Good luck!


@mchid suggestion worked. I ran the command:

sudo do-release-upgrade -d

And I was able to update my Ubuntu from 13.04 to 13.10. Since 13.10 is not LTS and there is no Ubuntu 13 LTS version I don't know how long this is going to work :)


Ubuntu 15.04 : Samba Server Error. ' Unit samba.service failed to load: No such file or directory.'

I got a solution on this link

https://help.ubuntu.com/lts/serverguide/samba-fileserver.html#samba-fileserver-installation

also the command ap


Dell M3800 with 14.04 LTS HDMI randomly cuts out

I would suggest you to download the
Precision M3800 Ubuntu driver package (Ubuntu 14.04) from Dell.

Which includes all the necessary drivers and patches for the M3800.
You just need to download it on a 14.04 system, and follow the instructions there to get it installed.

If this issue happen again with that driver, you might need to check the hardware status to see if this is a hardware issue, or open a bug for this.


Is the superkey ever used in Ubuntu by default?

Some WMs or DEs do use the Meta key (as it is generally mapped on recent Linux systems) for certain actions as a non-modifier key such as for opening Dash on Ubuntu Unity. It is also often mapped to certain behavior such as window snapping to resize a window to a certain part of the screen. If you use none of this behavior and would derive more utility from it being mapped to left alt, xmodmap is probably the easiest way to go:

Run xev to get the keycode for your meta/super key, then insert it in the format approximately shown below:

xmodmap -e 'keycode 0x133 = Alt_L'


Please try the following:

sudo apt-get install linux-headers-`uname -r` dkms build-essential
sudo /etc/init.d/vboxdrv setup


I had exactly the same problem you mention with my SiLabs CP2102-based ESP32-DevKitC board from Espressif. You don't mention the environment you're using, but I was running Ubuntu as a VirtualBox VM, which turned out to be the source of my problem.

The problem is that USB Serial drivers aren't installed by default in Ubuntu images designed for VM and cloud use.

To resolve the issue, install the linux-image-extra-virtual package by running:

sudo apt-get install linux-image-extra-virtual

Once I installed that package, I got a /dev/ttyUSB0 serial device shortly after connecting my USB device to my (host) Mac.


After touching my touchscreen (not touchpad) the problem seems to have disappeared. I apparently didn't think of touching the touchscreen before posting here.


Problem connecting to xrdp (windows 10 ->ubuntu 14.04)

Adding the "username" to the group xrdp helped me with a similar issue:

sudo adduser [username] xrdp


You need to grant execution permissions to the file. There are several ways to allow a file to be executed as a program :

Using Nautilus file manager, right click on your script file gspca_build and select Properties. Then go to the Permissions tab and check Allow executing file as program.

Using the command line, open a terminal and set gspca_build directory as your current directory. Then type the following command :

sudo chmod +x gspca_build

You should now be able to execute your script.


How to open an url in Firefox via cron (cron jobs scheduling)

to execute a bash script via cron i would use

30 14 * * * /bin/bash /home/flicker/open-web.sh >/dev/null 2>&1

To call a web page/URL via cron & curl

30 14 * * * /usr/bin/curl  http://funkyname.com/blub.html >/dev/null 2>&1

Update:

After realizing you want to open an actual browser and NOT just calling a script - i guess i understood your case.

You can solve that without bash script - instead write all logic directly to your crontab.

for Chrome:

30 14 * * * export DISPLAY=:0 && google-chrome --new-window http://www.randomurl.com

for Firefox:

30 14 * * * export DISPLAY=:0 && firefox --new-window http://www.randomurl.com

Keep in mind:

The --new-window parameter is forcing the browser in charge to open a new window, if you don't want that, just remove that section.

To avoid noise output you can optional add >/dev/null 2>&1 at the end of your cron entry.


Picasa is no longer supported by Google for the Linux Platform... Which is a shame but it is what it is... That doesn't mean that it can't be installed if you can find old .deb files.... Just keep in mind that you won't get any updates or new features that the Windows version might receive...

Also you might be able to successfully install it using WINE, but I am not overly familiar with working with WINE.


Prevent APT from overwriting custom files

There is an elegant way, with dpkg-divert command (override a package's version of a file, see this).

dpkg-divert --divert /full_path/file_to_preserve.packaged --rename /full_path/file_to_preserve

Please consider putting together different versions of files of a given package it might be risky...


How to properly enable usb support on virtualbox

1. Install Guest Additions
After into in the Guest OS, go to Devices > Install Guest Additions:

The Guest Additions wizard will popup. Just follow the Next, Next until Finish.
Shutdown your guest.
2. Optional: Create a USB filter
You can create a filter to have your device automatically connected when our VM starts. Just a reminder that this filter will make the device available for the guest VM AND PROBABLY NOT AVAILABLE for the host every time your VM is running.
Example: I created a filter for my webcam. So, always I start my VM, the host will not able to use my webcam.
If you want this: open VirtualBox, select your VirtualMachine, right click and select Settings.
Go to the USB section.
Check if both USB options are enabled.
Then, click in the second button at right - the one with a plus sign and this title: Adds a new USB filter with all fields set to the values of the selected USB device attached to the host PC.
After click on it, it'll display all your host devices available to this system:

Select the one you want and this will create a USB filter for your device. Every time you start the VM, the device will be automatically shared to the VM.
Start your VM and check if it's working.


12.10 blue screen, desktop bars do not load

I had a similar problem after upgrading. You can follow what I did.
Check the ~/.xsession-error logs. If you have errors similar to this:
(update-notifier:2286): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:494:61: Unrecognised image file format
, then reinstall libgdk-pixbuf2 and type the following as root user

gdk-pixbuf-query-loaders --update-cache and then reboot. If that does not suffice, install gdk-pixbuf2.0-dev and run the above command again. Reboot to see the changes. Hope your problem is resolved.


Connect Phone by USB Creates Open/Close Loop

I tried to install libmtp and libmtp9, but Ubuntu says it is already the newest version, so all of these did not work for me

But android-file-transfer worked for me for Ubuntu 18.04 lts version and Samsung android version 5.1.1

Install android-file transfer:

$ sudo apt-get install android-file-transfer


What's the difference between the apt packages: 'cinnamon' and 'cinnamon-desktop-environment'?

Look at the output of:

apt show cinnamon cinnamon-desktop-environment cinnamon-core

Basically you can say that cinnamon is a part of cinnamon-core which itself is a part of cinnamon-desktop-environment.

cinnamon is the most basic and minimal Cinnamon installation you can get.
cinnamon-core is a minimal Cinnamon desktop, but it also includes few more packages than cinnamon, like the e.g. file manager nemo.
cinnamon-desktop-environment is a full desktop environment suite which also includes standard applications like a browser, mail client, document viewer, editor, picture viewer, multimedia viewer, etc...


How to create partitions in Ubuntu while installing?

There are two kind of disk in terms of legacy partition table.

Primary - Generally OS are use this kind of partition.
Extended  - A special type of primary partition that holds many logical partition.

Max number of primary partition (including extended partition) can be 4. Extended partition doesn't take much space. Consider its a packing box and your logical partitions are packed inside it.

Filetypes of disk parition:

These defines how the files will written in disk. Earlier windows (upto xp) used FAT, FAT32. Newer windows file systems called NTFS.
Unix / Linux uses different file types like ext, ext3, ext4. In addition linux uses a partition with special format called swap.

Now I am assuming you want to have dual boot with windows. So first 50 GB is for ubuntu, second 50 GB for windows system and rest 150 GB for data.

Now ubuntu requires a swap partition (not necessarily if you have big amount of ram). Its generally calculated 1.5x RAM SIZE. If you have a 2GB RAM, preserve 1 GB for SWAP, have 4 GB RAM , preserve 512MB. Its your choice. Good amount of SWAP improves performance.

Steps

Click on unallocated space, click on new. Enter size as 48GB (you have to enter in mb), choose file system type as ext4, mount point /, partition type primary This means ubuntu root partition.
Click on unallocated space, click on new. Enter size as 2GB, choose primary partition, file system type SWAP.
Click on unallocated space, click on new. Enter size 50 GB, choose primary partition, file type ntfs (I don't remember whether this option available, you can use gparted later to format if its not available .)
Click on rest unallocated space, click on it. Choose ntfs as file system, partition type logical and create it. This will automatically create extended partition.

Explanation:

Why logical drive in ntfs? Its because it will be available to both windows and ubuntu. Windows can't work with ext file system.
If you don't want windows at all, you can create all file system with ext4. But remember if you ever try to install windows, you have to reformat everything. Otherwise those drives won't be visible.
If you don't want to install a windows system, in step 3, choose logical instead of primary.


How can I change the volume icon in Lubuntu 11.10?

volwheel

As you can see the vertical bar shows the volume level

to install

Download the 0.2.8 tar file from here and extract it.

Using lxterminal:

sudo apt-get install alsa-utils
cd ~/Downloads/volwheel-0.2.8/lib
sudo mv * /usr/lib/perl/5.12
cd ..
sudo ./install.pl

To start:

Either add volwheel in your startup applications or run

nohup volwheel &

in a lxterminal

EDIT:

the following maybe required:

gksudo pcmanfm /usr/local/share/

Rightclick volwheel, then click on the tab on the right. Change all the dropdown menus to 'Read and Write'.

mv ~/Downloads/volwheel-0.2.8/icons /usr/local/share/volwheel/icons

Restart and the volume application will be there!

If you want the bar to show the master volume (which is probably the case), rightclick the icon, click 'Settings' and change 'Default channel' to 'Master' (without the quotes).

To start volwheel from login

gksudo leafpad /etc/xdg/autostart/VolWheel.desktop

Copy and paste this in Leafpad:

[Desktop Entry]
Name=VolWheel
GenericName=VolWheel
Comment=Starts VolWheel
Exec=volwheel
Terminal=false
Type=Application
Icon=/usr/local/share/volwheel/volwheel.svg
Categories=Volume
StartupNotify=false
NotShowIn=LXDE;

Save the file.


How do I SSH and remove all previous SSH activity history?

The answer to this lies in sshd.conf and sshd_config (server) and ssh_config (client). Depending on the log level it logs to /var/log/syslog (default) and/or /var/log/auth.log (loglevel 'verbose' contains ssh login attempts).

If present /var/log/secure also contains an access log.

You will need root/sudo access to edit any of these files: they will be word-readable but not world-editable.

Next to that. Besides the login from the ssh daemon the command last also shows (failed) logins from ssh. The information for this command comes from /var/log/wtmp (There will be several more I bet).

And there is also the probability the sysadmin installed auditd or logwatch making it practically impossible to hide activity since they could get a notice based on activity undoing the registration of the ssh activity impossible.

Example of /var/log/auth.log:

Aug 10 10:10:10 rinzwind sshd[3653]: Invalid user text from {ipadress}
Aug 10 10:10:10 rinzwind sshd[3653]: Excess permission or bad ownership on file /var/log/btmp
Aug 10 10:10:10 rinzwind sshd[3653]: error: Could not get shadow information for NOUSER
Aug 10 10:10:10 rinzwind sshd[3653]: Failed password for invalid user test from {ipadress} port {port} ssh2
Aug 10 10:10:10 rinzwind sshd[3653]: Excess permission or bad ownership on file /var/log/btmp


Key for expanding Application menu in Gnome-Classic for 14.04?

With a dirty workaround, it can be done quite well. Using xdotool, you can make it move the mouse to the position of the Applications menu, open it and automatically move back to its original position.

Since all happens very quickly and the mouse is moved back to its original position, you won't notice it.

The script assumes your Applications menu is in the upper left corner, like in the image above. If that is not the case, the coordinates in cmd1 have to be altered.

#!/usr/bin/env python3
import subprocess
import time

cursordata = subprocess.check_output(["xdotool", "getmouselocation"]).decode("utf-8").split()
loc = [d.split(":")[1] for d in cursordata[:2]]
cmd1 = "xdotool mousemove 10 5"; cmd2 = "xdotool click 1"; cmd3 = "xdotool mousemove "+(" ").join(loc)
for cmd in [cmd1, cmd2, cmd3]:
    subprocess.Popen(["/bin/bash", "-c", cmd])
    time.sleep(0.05)

In detail:

fetch the current mouse position:

cursordata = subprocess.check_output(["xdotool", "getmouselocation"]).decode("utf-8").split()

Parse the output (x/y) into coordinates:

loc = [d.split(":")[1] for d in cursordata[:2]]

Run the commands [cmd1, cmd2, cmd3] to subsequently:

move the mouse to the Applications menu
click
move the mouse back to wherever it was

for cmd in [cmd1, cmd2, cmd3]:
    subprocess.Popen(["/bin/bash", "-c", cmd])
    time.sleep(0.05)

How to use the script

Install xdotool:

sudo apt-get install xdotool

Paste the script into an empty file, save it as open_appmenu.py
Test-run it with the command:

python3 /path/to/open_appmenu.py

If all works well, add it to a shortcut key: choose: System Settings > "Keyboard" > "Shortcuts" > "Custom Shortcuts". Click the "+" and add the command:

python3 /path/to/open_appmenu.py

Move to the other items

Once you opened the Applications menu, you can simply switch to the next item with the arrow keys.

Edit: generalized version

Below a version of the script that can be used in a flexible way, to click on the screen on any position, to be changed easily. The script can be run with two options:

to set (remember) the current mouse location:

run_click -set

to click on the last-remembered position:

run_click -run

If no position was set, a zenity message appears, inviting to set a position:

The script creates a hidden file; ~/.run_click where it stores the latest remembered coordinates.

As a test, I put both commands under the key combinations: Ctrl+Alt+R, and Ctrl+Alt+A, making it easy to change the click position on the spot.

How to set up

like in the first script, Install xdotool:

sudo apt-get install xdotool

copy the script below into an empty file, save it as run_click (no extension) in ~/bin (create the directory if necessary) and make the script executable.
If you just created ~/bin, run source ~/.profile.
Test both commands, first run_click -set, then run_click -run to see if all works as expected.
Add both commands to two different key combinations: choose: System Settings > "Keyboard" > "Shortcuts" > "Custom Shortcuts". Click the "+" and add the commands.

The script

#!/usr/bin/env python3
import subprocess
import time
import sys
import os

option = sys.argv[1]
datafile = os.path.join(os.environ["HOME"], ".run_click")

def get_mousepos():
    cursordata = subprocess.check_output(["xdotool", "getmouselocation"]).decode("utf-8").split()
    return [d.split(":")[1] for d in cursordata[:2]]

if option == "-run":
    try:
        data = open(datafile).read()
        coords = (" ").join([l for l in data.splitlines()])
    except FileNotFoundError:
        message = "Please run the command: 'run_click -set' first, to set the click position"
        subprocess.Popen(["zenity", "--info", "--text", message])
    else:
        cmd1 = "xdotool mousemove "+coords; cmd2 = "xdotool click 1"; cmd3 = "xdotool mousemove "+(" ").join(get_mousepos())
        for cmd in [cmd1, cmd2, cmd3]:
            subprocess.Popen(["/bin/bash", "-c", cmd])
            time.sleep(0.05)
elif option == "-set":
    open(datafile, "wt").write(("\n").join(get_mousepos()))


Did you install linux-firmware and linux-firmware-nonfree packages?
if not try:

sudo apt-get install linux-firmware && sudo apt-get install linux-firmware-nonfree


How to log out a locked down user remotely

Launching SSH at boot (alongside firefox and teamviewer) then running the command

sudo pkill -KILL -u user

returned to login screen, to which I can connect teamviewer and continue use.


Can not show external HDD during photorec

The USB drive probably was mounted in /media/bapi/<name_of_drive. We can browse to the root directory (/) with selecting .. twice then select media, bapi, <name>.

If it is not present there try mounting from Nautilus to be able to write on that drive.

For a guide to access and recover files on a system drive from an Ubuntu live session see

How do I recover my accidentally lost Windows partitions after installing Ubuntu?


Why did I need to *reboot* to change my group membership

Likely because /etc/gshadow was not updated (but don't ask me why that didn't happen as usermod should do that too; check /var/log/ if there is a notice). The 2 files important for groups are /etc/group and /etc/gshadow where gshadow supersedes group.

When both are correct logging out and in is enough to update the group for the user. If only the 1st was updated you will need to reboot or you can update gshadow with the grpconv command. Logging out and in is then enough.


Works on all systems:

Please edit the default grub configuration file:

sudo apt-get install gksudo
gksudo gedit /etc/default/grub

and add atkbd.reset after quiet splash

and then update grub:

sudo update-grub

Works only on UEFI Systems:

Look for the "PS2 init option" in the motherboard UEFI setup. Set it from "Auto" (default) to "Enable".


I just installed 12.10 and how do I update unity?

try  :

sudo apt-get install --reinstall ubuntu-desktop ,
     sudo apt-get install --reinstall unity
Restart Unity: setsid unity
Restart Compiz: setsid compiz --replace
Restart X Display Manager:  sudo -s , setsid service lightdm restart


The Ubuntu store is the official appstore for Ubuntu touch. You should download apps from there. The uAppExplorer is an unofficial browser for the apps. You can get information and ratings there.

As stated in the FAQ of uAppExplorer:

  What is this site?

  This site is an unofficial app browser for Ubuntu Touch apps. All data for
  the apps comes from a publicly accessible api. This site is maintained by
  Brian Douglass and is not endorsed by or affiliated with Ubuntu or Canonical.
  Ubuntu and Canonical are registered trademarks of Canonical Ltd.

  How do I install apps?

  To install an app, visit this site on your Ubuntu Touch device. Find the
  app that you wish to install and click the "Install" button. You will then be taken to the official appstore on your device where you can install the app.

  Apps are not installed via this site, but via the official appstore.

And for the second part of your question:

You should be able to find the terminal app by searching for "Terminal" in the Ubuntu appstore on your phone.


Why is Muon on KDE failing with multiple package errors?

All I successfully solved this error.

To solve this problem login as root user and type the following commands:

sudo rm -rf /var/lib/apt/lists/*
sudo apt-get update

Finally, apply new updates, enter:

sudo apt-get upgrade

type y when the terminal asks you Do you want to continue [Y/n]?.


Fixing Broken Package Installation--Install Stalling other installations

Well, I tried one last thing and it appears to have worked.  I went in and tracked down the actual package and just nixed it.  Not sure why that worked this time and it wasn't removed when I removed everything else.


I am trying to move a folder to rewrite over the contents of another folder for a forum upgrade

I transfered it all by hand using
cp /sourcefolder/nameoffileordirectory /destinationfoler/
cp -r for the directories


Change the name of the Ubuntu label ('Computer') in Nautilus

Not sure about Gnome disks, but I know if you use Gparted, click on the disk and choose "Label," it will let you permanently change the disk label across the whole system. You may want to try that first. Also, you can use this in the terminal:

sudo e2label /dev/sdOfCurrentDisk "mydiskname"

where sd is the partition or disk you want to change and the part in quotes is the new name you want. I think the reason your change didnt work is because it only changed the name it was mounted with and not the actual label. Try that and see if it works.


Is your videocard up-to-date?

Try the following:
You can install/update all video drivers with the package xserver-xorg-video-all.

sudo apt-get install linux-headers-generic xserver-xorg-video-all libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core


Either you don't have Ubuntu installed, or it is a Wubi install, and is entirely contained within a file in your Windows partition.


UbuntuShape component doesn't show the background color.

I'm afraid you can only use either "image" or "color".

As a workaround you might try this:

UbuntuShape {
  color: "red"
  height: units.gu(6)
  width: units.gu(6)

  Image {
    anchors.fill: parent
    source: "my_icon.svg"
  }
}


Try this:

Right click on skype icon
Click options
Video devices
Make sure everything's ok, an enable/disable auto-exposure(change it)
Close the window
Restart the computer

Let me know if it works.


You should try to install to an external HDD on another machine and run the installation on the external drive on the machine that gets the kernel panics. Eventually more information on the cause may land on the HDD for apport to pick it up and file a bug.

See: What's the best way to report a kernel panic bug

Or the kernel panic will not appear...

Anyway good luck!


Accents in no english languages (greek, spanish...) in ubuntu 14.04 and wine (or similar) (e.g. MSOffice)

A solution has been posted in codeweavers, it is disable IBUS on system configuration.  Set the default input method from System Settings >> Language Support >> Default input method.

NOTE: You need restart the pc


Intel(R) Dual Band Wireless AC 3160 stopped working in ubuntu 16.04

Your dmesg output shows that your wifi is blocked by rfkill (line 5).  To turn it back on, try sudo rfkill unblock all.


How to discover IP addresses of Windows machines on Windows workgroup

Commands such as “ipconfig”, “arp -a”, or “ping” allow simple scanning and troubleshooting. The simplest way to get a quick list of IP addresses and their devices connected to your network is with those OS native commands found in the command line.


Inconsistent output for init process name using 'ps'

GRUB(GRand Unified Bootloader)
                                       |
                                       |
                                       |
                                       V
                                     Kernel
                                       |
                                Hardware check
                                       |
                            -----------------------
                            |init processes start |
                            -----------------------
                                      /|\
                                     / | \
                            SysVinit   |  systemd
                        init scripts   |
                                    Upstart

Let me try to explain with the diagram above. Now in Ubuntu it started with SysVinit, then Upstart, and finally Systemd. Each of these will handle the initprocess which begins all things Linux and Ubuntu in general.

Now Ubuntu is gradually moving away from Upstart and into Systemd and is the current init controller on Ubuntu Xenial. The init process starts all things (or most, as the kernel has its own process that are unrelated to init), but what handles or controls that init process is either SysVinit, Upstart, or Systemd depending on your version of Ubuntu. In your case it's the newer Systemd. But bare in mind that you will also see remnants of the old system, where commands such as initctl, service etc still play.

So to get the initial system functions or services up and running new Ubuntu now uses systemd the replacement for init daemon of old. But for backward compatibility init still runs in the background.

According to man ps, passing an -F flag causes the command arguments to be printed out. So in this case the command is seen with:

ps -p 1

#Result
PID TTY          TIME CMD
1 ?        00:00:02 systemd

Then to see the the arguments passed to that command:

ps -F -p 1

#Result
UID        PID  PPID  C    SZ   RSS PSR STIME TTY          TIME CMD
root         1     0  0 46414  6336   1 05:48 ?        00:00:02 /sbin/init splash

So ps -p 1 ==> command, and ps -F -p 1 ==> arguments passed to it. Long story short -F Extra full format, seeing more information that is related to the ps -p 1 or systemd command. What you see is an underlying init process run by systemd on Ubuntu Xenial. Take note of the TIME:00:00:02, which is the same for both systemd and /sbin/init in both forms of ps.

Please look at this page and you will see why /sbin/init shows up when -F option is used. Systemd runs with PID 1 as /sbin/init.

Source:

man ps

https://wiki.ubuntu.com/SystemdForUpstartUsers


Searching for the J. R. "Bob" Dobbs screensaver from Slackware to install in 13.10

Based on information from @poolie this screen saver used to be in xscreensaver, but is no longer. http://www.jwz.org/xscreensaver/screenshots/retired/ States that in version 5.08 the flag screen-saver was retired.

So to get it I dug up a old version and extracted it: http://ubuntuone.com/1VrIgyEQoBXJ6bR7JOly0O
Download flag from my link or extract it from the .rpm for the old version.

Then install xscreensaver  How can I change or install screensavers?

sudo apt-get install xscreensaver

Then in the same folder as you downloaded flag - navigate to it in terminal (you may need to mark it as executable):

./flag -bitmap "(default)"

This runs the screen-saver in a window:

(note: might need to stop gnome-screensaver first, sudo killall gnome-screensaver)

Integrating with xsceensaver:

Copy flag to /usr/lib/xscreensaver (may need sudo permission)
run xscreensaver or xscreensaver-demo
Select any existing screensaver go to → Settings... → In the command line change to flag -root


dual entries of Ubuntu in windows boot loader


Crash after every shutdown in grub when starting ubuntu

See answer at this post: Changing bootparameters in Ubuntu Grub

The problem was solved by changing boot parameters in grub.