migrate live process from one machine to the other

The answer you are looking for is worthy of an entire specialized research team... the requirements for this are just too many. AskUbuntu may be the wrong place.

Things to take note of would include: process memory, thread states, memory held by the graphics card, open file descriptors, kernel socket (Internet/UNIX) states, other IPC channels, kernel states of any opened device files, memory maps, environment, the entire kernel-space memory in case the process was in the middle of a sys-call (such as when waiting for an action to happen), properties of the process' memory (such as no-execute bits), and many, MANY others (perhaps twice more than what I already listed).

Since most of these require kernel and device driver patches, the languages you need would be C and ASM.

A project attempting to do this is called LinuxPMI, you may want to look into it.

Alternative ways of migrating a process:

Suspend-to-disk, and use an external system to copy the swap partition and the entire disk over to another system
Host the process inside a virtual machine, and let its root filesystem be a union (i.e. UnionFS or AuFS) of a base read-only system image, and a blank image that will be filled with whatever changes the system makes; then suspend the virtual machine, and copy over the smaller image
Implement (from scratch) an entire single-process virtual machine, that implements the full i686 instruction set and provides wrappers and hooks for every single system and library call needed


Is there any software like voipgain,  megavoip,  poivy?

Skype is available, as it Jitsi

CTRL-ALT-T then sudo apt-get install skype

http://jitsi.org/index.php/Main/DebianRepository


Juju fails to download the charm - dial tcp: lookup store.juju.ubuntu.com: no such host

I will answer my own post again. The problem was that the maas nodes didn't have network connectivity. I have turned maas controller into a gateway/router edited resolv.conf on every node and when I got internet connectivity through the maas controller and host resolution charms installed without a problem. I would recommend everyone who faces this problem in future that they check their nodes connectivity first and start from there.


Can I install Ubuntu12.04.2 desktop from my USB on some other computer while it boot?

I installed my ubuntu using the USB method, you should have no problem.

Here is how to:

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

First check if you can live boot (not install).
And if it does work then restart and select the install option.

Hope this was helpful :-)


provide more than one processor with taskset

I found the answer on my own: It's simply adding the -a option which does as mentioned in the help (taskset -h)

  "operate on all the tasks (threads) for a given pid

So the working command is

taskset -cpa 4-7 $(pgrep -n java)

pgrep is used here to get the PID of the latest started java process.

I hope this answer might help somebody who tries to assign multiple CPU cores to one process and all its threads without the use of complex containers systems or VM's.


You didn't give the exact steps you were using for your VPN connection.

Follow these steps:

VPN Client Setup:

Fourconfiguration files are involved:

/etc/ppp/peers/myvpn
/etc/ppp/options.pptp
/etc/ppp/chap-secrets
/etc/ppp/ip-up.local

/etc/ppp/peers/myvpn:

# replace the bracket paramters with the host name of the VPN server and VPN user
remotename myvpn
linkname myvpn
ipparam myvpn
pty "pptp [vpn server] --nolaunchpppd "
name [username]
usepeerdns
require-mppe
refuse-eap
noauth

# adopt defaults from the pptp-linux package
file /etc/ppp/options.pptp

/etc/ppp/options.pptp:

lock
noauth
refuse-pap
refuse-eap
refuse-chap
refuse-mschap
nobsdcomp
nodeflate

/etc/ppp/chap-secrets:

# Secrets for authentication using CHAP
# client server secret IP addresses
username myvpn password *

/etc/ppp/ip-up.local:

#!/bin/sh
network=`echo $IPREMOTE | awk -F\. '{print $1"."$2"."$3".0/24"}'`
route add -net $network $IFNAME

Start the VPN client with:

$ sudo pon myvpn

End VPN connection with:

$ sudo poff myvpn

These steps are taken from:

http://faq.apollo3.com/ljames/ubuntu/vpn/


No (easy) networking after upgrade to Xubuntu 20.04.1 LTS

In your wireless script, we see:

NetworkManager is not installed (package "network-manager").

Using the connected ethernet, open a terminal and do:
sudo apt update
sudo apt install network-manager

Reboot. Clicking the Network Manager icon at the top right should now permit you to connect easily with wireless or ethernet.


The file xorg.conf is no more required for the configuration of the X server, that can do a very good job automatically.

Anyway you can create your own xorg.conf file if you need custom configuration.

You can have a little help in creating a basic xorg.conf file with the command

sudo X -configure

that will generate a file xorg.conf.new in your home. Edit as needed, rename it and move it to the correct location.


Why has my file-system turned read-only after updates?

It sounds like you may have some file system corruption, possibly caused by a failing hard disk. (Normally this is the only way for the system to spontaneously mark the file system as read-only, to prevent further damage.) Try running:

dmesg | less

And scroll to near the bottom to see if there are errors related to your file system and disk. Look for messages about uncorrectable read or write errors (probably on sda), or file system errors (e.g. messages about ext3 or ext4 errors). If you see anything like these, you should back up any important data right away and then investigate whether the disk itself is failing (in which case you'll need to get a new one), or whether it's just a logical failure (in which case you can probably repair the file system with fsck to fix your problem).


How can I stop nautilus from scrolling the window when I move a file out of a directory?

I'm afraid, it is not possible. But as a workaround you can press F3 and use Nautilus in dual pane mode. If you drag files from the left pane to the right, you should not lose track.


A partial update of Ubuntu 20.04 broke texlive. Can't reinstall

update your question to show output of running
dpkg --get-selections | grep hold

in addition run below
sudo apt-get update

sudo apt-get --fix-broken install -y

sudo apt-get -f install -y

sudo apt-get dist-upgrade

sudo apt-get autoremove

sudo apt-get autoclean -y

and update your question with any interesting output from above
below is how to install the necessaries to be able to edit latex files
sudo apt install  -y texlive-latex-extra  texlive-fonts-extra  texstudio

once that finishes tap your WIN key to bring up the Dash search ... or click on the Show Applications menu then enter ... texstudio
texstudio  is the application to edit and convert into pdf any latex file

there is no need to explicitly install texlive-latex-recommended since above install command will auto add that package

If above fails to work run this
sudo apt-get -f install  texlive-latex-extra  texlive-fonts-extra  texlive-binaries texlive-latex-base texlive-base texlive-latex-recommended

and update your question with its output if it fails
UPDATE ______________________
when you see

The following packages have unmet dependencies: texlive-binaries : Depends: libptexenc1 (< 2019.20190605.51237-3build2.1~) but 2020.20200327.54578-6 is to be installed Depends: libkpathsea6 (< 2019.20190605.51237-3build2.1~) but 2020.20200327.54578-6 is to be installed Depends: libsynctex2 (< 2019.20190605.51237-3build2.1~) but 2020.20200327.54578-6 is to be installed Depends: libtexlua53 (< 2019.20190605.51237-3build2.1~) but 2020.20200327.54578-6 is to be installed
Depends: libtexluajit2 (< 2019.20190605.51237-3build2.1~) but 2020.20200327.54578-6 is to be installed Recommends: dvisvgm but it is not going to be installed E: Unable to correct problems, you have held broken packages.

this means you have installed a newer version of some package than the recommended version so solution typically involves removing that package ... so question is how to find that offending package
update your question ( do NOT put into a comment ) the output of running
dpkg -l | grep 2020.20200327.54578-6

so my guess is remove the package which shows in output of above command
hint:  to properly format text you paste into a question put four spaces at front of each line of text


Ubuntu 14.04 - menu bar , side bar missing

I solved it using this solution. It suggests running compiz and enabling the unity plugin.


Are all packages bundled and installed with iso file of ubuntu - which are in  main?

No, your assumption is not correct. All softwares from main repository aren't included in Ubuntu live image and cannot be. They are huge!

Packages.gz is the package index file which is consulted when you input a command to install a package, to locate that package file in the Internet. Having gfortran in the file means it is available in repository and can be installed by downloading from Internet (not from the ISO).

Normally the iso image includes a subset of the main repository index file for some unknown reason. Live image also includes some packages in deb format in /pool directory. But these aren't all of the main repository.


Steam opengl glx context is not using direct rendering

I solved the issue by removing and purging my previous Nvidia driver and upgrading to the latest beta Nvidia Driver 334.16. I also installed a number of 32 bit libraries which were suggested on various websites which might have contributed to the resolution of this problem.


How to set up Ubuntu as wireless accesspoint?

I found a good thread. It should work in Ubuntu 10.04 no problem. Also it is CLI so it doesn't need any X libs at all. :)


For Wifi devices :

Install common device drivers :

sudo apt-get install collectd-core collectd-dev collectd-dbg collectd-utils

Install Wifi Network manager:

sudo apt-get install wicd-gtk wicd wicd-daemon wicd-curses wicd-cli


How to re-enable wayland in Ubuntu 18.04 LTS

Managed to get login screen to show all sessions by switching to Kernel 4.18.13-04


Screen tearing when scrolling and in games

I might be a little late here, but since you are using a NVIDIA graphics card the problem can be solved by editing nvidia-settings (make sure nvidia-settings is installed):

Open nvidia-settings (as root, via sudo).

Go to XServer Display Configuration.

Click on Advanced.

Enable Force full composition pipeline or Force composition pipeline (depends on what feels best for you).

Make sure to hit Save to x configuration file.

This solves almost all screen-tearing related problems with proprietary NVIDIA drivers.


Does there exist a pdf-viewer for ubuntu offering up to 6400 percent zoom?

You can have Evince zoom at higher levels by increasing the page cache size. For example,

gsettings set org.gnome.Evince page-cache-size 500

will increase the page-cache size from 50 MiB, the default, to 500 MiB, and thus increase the available zoom to 1600%. You can try with higher values. However, from certain zoom levels onwards, it won't work anymore.


Ubuntu 12.04 LTS crash after updating from software updater

Forget about analyzing and fixing it. It will be much easier to just do fresh installation of current Ubuntu version - 14.04 LTS.


However I prefer the "feel" of scangearmp2 (when it works!) and would like to get it going.

Then you need to contact Canon and get them to sort it out for you. Good luck with that! Let us know how it goes.
This software is not provided by Ubuntu. Ubuntu cannot do anything if it does not work for you. sane-escl and sane-airscan are the relevant SANE backends to use with your TS910.


transfering kernel image to another system

If you have another Ubuntu system with the same processor architecture (or with properly set up cross-compiler environment), you can build kernel packages on that system, copy the resulting .deb files to your server and install. An overview of the procedure is available for example in community document Kernel/Compile.


How do I deploy a charm from a local repository?

ubuntu@ubuntu-VirtualBox:~$ juju deploy --repository=charms local:precise/drupal

This appears to be the problem, you don't need to specify precise in the local: bit, try

juju deploy --repository=charms local:drupal

On Juju 2.0 and up, you can just specify a path to the charm directory. For example:

juju deploy ~/charms/drupal --series trusty

Local charms may not have a specific declared series (charms fetched from the store always have an implied series).

This page in the documentation has more references on how to deploy from a local repository:

https://jujucharms.com/docs/stable/charms-deploying#deploying-from-a-local-charm


How to select apache2 during phpmyadmin installation on Ubuntu 13.04

OP added answer to their question - so converted to an answer

Just press the spacebar to select the item(s) then press tab to move the highligter to the ok button, and finally press enter.

An hour of my life spent learning that.


Unable to install older Linux kernel version

You need to install the linux-image package. The linux-headers package is needed for development/compiling kernel modules, you probably don't need it.


You have to run sudo sensors-detect, answer yes to all the questions (including the one about writing it to /etc/modules), and then run sudo service kmod start, and reboot.

Source

Screenshot:


What is the default set of packages installed with Trusty?

Do you want explanation for all 1744 default packages or something in particular? You can find the full list here for Ubuntu 14.04.6 LTS.


Driver for Realtek rtl8821ce (Lenovo 720S-13ARR ultrabook)

Try that from your home directory

git clone https://github.com/tomaspinho/rtl8821ce.git
cd rtl8821ce/
sudo make all
sudo make install
sudo modprobe -a 8821ce


Is it possible to install PostgreSQL 9.6 (Beta) on Ubuntu 14.04?

According to the PostgreSQL Apt FAQ:
I want to try the beta version of the next PostgreSQL release:

  We ship packages for alpha and beta releases, but like in the previous
  FAQ entry, we have only one version of libpq5 in the main archive
  component. To use packages of postgresql-9.6, you need to add the 9.6
  component to your /etc/apt/sources.list.d/pgdg.list entry, so the 9.6
  version of libpq5 will be available for installation:

  deb http://apt.postgresql.org/pub/repos/apt/ jessie-pgdg main 9.6

So 9.6 being a component (in APT terminology), you don't want to use a testing distribution, but rather adapt the above to Ubuntu 14.04 as:

$ cat /etc/apt/sources.list.d/pgdg.list
deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main 9.6

After sudo apt-get update and before installing, you may check the details of the candidate package just to be sure:

$ apt-cache policy postgresql-9.6
postgresql-9.6:
  Installed: (none)
  Candidate: 9.6~beta2-1.pgdg14.04+1
  Version table:
     9.6~beta2-1.pgdg14.04+1 0
        500 http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg/9.6 amd64 Packages
        100 /var/lib/dpkg/status

Then sudo apt-get install postgresql-9.6 should work fine.

The 9.6 beta may also coexist with non-beta versions such as 9.5 and previous versions.


Ubuntu 12.04 LTS often get a black screen with mouse cursor when trying to resume from lock screen.

I narrowed this problem down to being exclusively related to Software Center running. Removing and reinstalling Software Center solved this issue.


Making gnome-screensaver auto-lock in XFCE

Rather than using a configuration front-end to gnome-screensaver that does not exist, use the xfce4-power-manager via the xfce4-power-manager-settings to lock the screen.
Specify a timeout to your liking.

If this does not work for you, install the package dconf-tools, run dconf-editor and edit the items under org/gnome/settings-daemon/plugins/power to your liking.


Use `ufw` to access localhost:port (mobile development)

I don't know if * will work on ufw. Maybe should be better to use all subnet range using submask, like 192.168.1.0/24
Sometimes when I develop in PHP and I want to start built-in web server on the given local address and port, I use php -S <your_local_ip>:<port> . Also maybe you need to specify which directory, so: php -S <your_local_ip>:<port> -t <directory_to_serve>

Then I use ufw to allow access from my mobile.
So, to enable access from another device of your subnetwork, commonly you should use the local IP of which who are serving, instead of using 'localhost', which usually redirects to 127.0.0.1:

This is how I do it.
I hope this serves for someone, someday.
Regards.


S-Video/composite is very old, back from the time when I was a kid and dinosaurs still roamed the Earth and the S-Video hardware just doesn't support this resolution.

It's great to convert VCR tapes and to display crude graphics on a CRT TV at a whopping 480i resolution (no error: that's the old IBM PS/2 VGA Interlaced "high-resolution" mode at 640x480x16) or if you are lucky 576i.

So you want to digitize old VCR tapes to DVD, just forget about getting any modern use out of the S-Video port on your computer.

Sorry to be the harbinger of bad news...

The best you can do is: xrandr --output VGA-0 --auto --output DVI-I-0 --auto --same-as VGA-0 --output TV-0 640x480


Launch VIM on specific monitor in dual screen setup

Try:

gvim -c "winpos 1600 0"

where, e.g., 1600 is the pixel width of the left monitor. This should make it start on the first pixel of the right monitor.  See :help winpos in vim for more info.


How to install and configure php phalcon extension in Ubuntu 20.04?

I needed to run also:

sudo ln -s -T /etc/php/7.4/mods-available/phalcon.ini /etc/php/7.4/cli/conf.d/20-phalcon.ini

In this case I did not edit php.ini in anyway, the php extensions being autoloaded if they are already installed.

The phalcon extension needs additional setup to be autoloaded, for both apache2 and cli.

UPDATE.
At the time of this edit there is no package for ubuntu/focal in:
https://packagecloud.io/app/phalcon/stable/search?dist=ubuntu&filter=all&page=45&q=phalcon

So i uninstalled the previously installed version of phalcon with:
sudo pecl uninstall phalco

And reinstalled the newer version with

cd ~
git clone --depth=1 "git://github.com/phalcon/cphalcon.git"
cd cphalcon/build
sudo ./install


Where do I download the source code to Unity Next?

Here are what seems to be the latest directions:

mkdir ~/unity

fetch Unity 8 source:

sudo apt-get install bzr
bzr branch lp:unity/8.0 ~/unity/unity8
cd ~/unity/unity8

The directions are from this page, which is relatively new.

I just tried it and it produced the bazaar unity8 repo in the my ~/unity/unity8 directory, including the whole tree of source and various other files.


Network Manager dispatcher.d script error

First problem is that the call of firefox --preferences stops the script. Second problem is the script is executed as root not as the logged in user. Third: Firefox needs the users environment as well as the display number.

Change the "up"-part in the script as follows:

case "$2" in
    up|vpn-up)
    if [ "$CONNECTION_UUID" = "6e7f613f-5563-48f7-892d-655e95c0b834" ]; then
        export HOME=/home/user
        export DISPLAY=:0
        nohup sudo -u user firefox --preferences &
        logger -s "FIREFOX SCRIPT EXECUTED"
    fi
    ;;


The following code works for me:

avconv -ss 30 -i my-cool-movie.webm -frames 1 -f image2 my-cool-picture.png

In this command,

-ss 30 specifies that you want to take the frame 30 seconds into the movie

-i my-cool-movie.webm specifies the name of the movie from which to take the frame

-frames 1 stops the program from extracting more than one frame

-f image2 my-cool-picture.png sets the output format to image and filename to my-cool-picture.png.


In 14.04 my sound doesn't work until I plug in headphones and pull it out again. Hopefully worth a try for you.


Why doesn't the keyboard screenshot button work on Ubuntu with GNOME shell?

The PrtScr/Print key still works – but now (U17.10) has different actions bound to it. Go to

Settings → Devices → Keyboard

and scroll down to Screenshots. It shows

If that's sufficient for you and you can remember these keystrokes, then you are done. Else refer to @pomsky's answer and set up a shortcut to launch gnome-screenshot --interactive instead.


To restart the X session, it's as simple as running:

sudo restart lightdm

It's slightly odd that it's not doing that for you. It certainly used to but I guess the transition to lightdm and upstart have left it a little less bullet-proof than before.

If that moans about not being able to find a running job, just run sudo start lightdm instead.

To be clear, once X dies, you lose everything from your graphical session. Restarting it won't magically restore all the applications that were running, in the same state.


Why does pip give an error while installing a tool?

It tell you that it can not run curl-config

That means usually you are missing one package .

So you can use this website  https://packages.ubuntu.com/

and search for curl-config at the end of path

You must have a result similar to this

https://packages.ubuntu.com/search?suite=eoan&arch=any&searchon=contents&keywords=curl-config

for the second error you are missing a C compiler .

so you need to install build-essential


This is what I had to do (Taken from this answer):

sudo dpkg-reconfigure keyboard-configuration

Choose the 104-key layout (thanks to this answer)
Use the default options for the rest

sudo service keyboard-setup restart

And that was it! Now my keyboard's alt + shift combination works again! More specifically, the ones on the left of the keyboard.

In case you were curious, my laptop is a Lenovo G510, and I am running Ubuntu 16.04 at the time of writing this answer.


How do I install Minecraft Forge on XUbuntu 14.04

I reccomend installing Minecraft through the Unofficial PPA.

sudo add-apt-repository ppa:minecraft-installer-peeps/minecraft-installer

sudo apt-get update && sudo apt-get install Minecraft-Installer

After installing the installer, login and install the version of Minecraft you wish to install. Then download the version of forge (preferably the universal installer) for the version you need. You will need to allow executing the file as a program. On XFCE do

chmod u+x forgeversion.jar

Then make sure you are set to run Forge with Java and not Archive manager. It should auto detect the install directory for Minecraft. Then simply launch Minecraft and select the version with Forge in the title. Hope this helps!


Can you use backup of one machine on a different machine?

If you did not install any drivers outside of the Ubuntu repositories (nvidia, ati, wireless) you should be just fine.

If you did you would need to re-install them.

Another possibility would be to generate a list of installed packages and us it for a fresh install

[old install]

sudo dpkg --get-selections > packages.list

Now put them back on the new installation

sudo dpkg --set-selections <packages
sudo apt-get dselect-upgrade

Then copy your data or other files in $HOME, perhaps on a flash drive.


.desktop file running with dex but not on nautilus: "[Desktop: not found"

.desktop files are as such not executable files. In recent versions of Ubuntu, you cannot anymore run them by double-clicking in the file manager.
Place .desktop files in ~/.local/share/applications. That way, they will appear in the application menu, and you can run them from there. You could pin them to the Dock for quick access.
You can also place .desktop files on the Desktop. There, they can be run by double clicking.
Edit 2021-05-21: as nautilus does not anymore support running executables by double-clicking on them, the following section may not work anymore
If you need to run them from the file manager, you could add a shebang, #!/usr/bin/dex, as the first line of the file. This indicates to the shell with which interpreter the script should be run when the user attempts to execute it. For this to work, the executable bit of the file should be set.
If you do not want to edit all .desktop files, you can set up a file association yourself.  You would need to create a .desktop file for dex in ~/.local/share/applications. It will then be picked up in the list of installed applications in the file properties dialog in Files, "Open With" tab, where you can set the association.


Show only the filename in XFCE panel buttons

The names of the items in the XFCE Panel are controlled by the actual application itself, if it has the setting.  I have one example below since you mentioned MousePad.

In MousePad, Go to Edit -> Preferences.  Then in the Window tab, deselect Show full filename in title bar.  Then press Close.

Hope this helps!


Rhythmbox Not Playing/Importing MP3 Files After Installing ubuntu-restricted-extras

Install gstreamer0.10-fluendo-mp3

sudo apt-get install gstreamer0.10-fluendo-mp3

and:

sudo apt-get install gstreamer0.10-plugins-bad
sudo apt-get install gstreamer0.10-plugins-bad-multiverse
sudo apt-get install gstreamer0.10-plugins-base
sudo apt-get install gstreamer0.10-plugins-good
sudo apt-get install gstreamer0.10-plugins-ugly


Can't I update Windows after having dual boot?

I have dual booted my Windows 10 and Ubuntu since about 3 years. Till now I haven't faced any kind of issues in updating both. Also, these OSes will update independently, i.e. Windows updates will not affect Ubuntu and Ubuntu updates will not affect Windows. However, I'll suggest you two things:

Unlike Ubuntu, some Windows updates need multiple startup which sometimes become frustrating to select Windows again and again on GRUB menu. So, I suggest you make Windows as your default entry (for example, Ubuntu is the default entry in GRUB boot loader). For that, read How do I set Windows to boot as the default in the boot loader?. Don't worry it will boot into Windows only when the specific timestamp has passed and you haven't changed the choice.
Sometimes Windows updates replace GRUB boot loader with Windows boot loader. In that case you will need a boot repair. For that read How to install the Boot-Repair tool in an Ubuntu live disc?

For any other problems you face with Ubuntu in future, AU is always here to help you out :)


Can Gedit also backup files like "Untitled Document 1"?

GEdit can not do that, unfortunately.

The closest is Scribes, which has this feature enabled by default.

Geany is another text editor, it has a plugin to allow this behavior.


Replace spaces with hyphens in a text file

sed

Assuming there's no spaces after the last column, we can do

sed 's/[[:blank:]]/-/g' input.txt

In case where there may be other characters and we specifically want to capture the pattern "sequence of digits, then sequence of spaces" we can also use group patterns in parenthesis and extended regex -r:

sed -r 's/([[:digit:]]?+) ?+([[:digit:]]?+) ?+([[:digit:]]?+)/\1-\2-\3/' input.txt

shell

In case we want shell-only solution:

while read -r year month day trash; do
    printf "%s-%s-%s\n" "$year" "$month" "$day"
done < input.txt


My minecraft has a very low FPS rate and freezes every second on 12.04 LTS

Look on the minecraft System Requirements page

It says:

Recommended Requirements:
CPU: Intel Core i3 or AMD Athlon II (K10) 2.8 GHz
RAM: 4GB
GPU: GeForce 2xx Series or AMD Radeon HD 5xxx Series (Excluding Integrated Chipsets) with OpenGL 3.3
HDD: 1GB
Latest release of Java 7 from java.com

This may be why, you only have 3.8 GB of RAM. Also, how many GHz is your processor?


Can't automatically mount ext4 partitions under Ubuntu 14.04 (but can mount NTFS ones)

You need to edit your /etc/fstab file.

First open a terminal and type sudo blkid. This will list all your disks. Note the UUIDs of the partitions you want to automount.

Second, type sudo gedit /etc/fstab

Add a line for each partition as follows:

  UUID=your-UUID-here /media/mount-point               ext4    defaults 0       1

Change UUID and mount point as desired.

Logout and in again.


Creating a folder shortcut on Desktop using command line

You can create a symbolik link file in the Desktop folder with a ln command like this:

ln -s ~/home/user/some/folder ~/Desktop/some_folder


How to permanently switch of KDE Power Management warning about battery recall

2 days ago i installed KDE Plasma Desktop on top of Ubuntu 12.04 and i get similar warnings(for Toshiba notebook). I could not find any solution except this:

Go Settings > System Settings > Power Management

Under "Power Management", click Advanced Settings > Configure Notifications

Then uncheck "Play a sound" and "Show a message in a popup" options for "Broken Battery(or something similar to this; i translated from Turkish, it might be different.)" notification.

I just found this solution and tested twice(once by logging off and once by restarting); notification was gone.

And please consider: This probably is not a right way to get rid of this wrong and annoying notification.

Hope this helps.


System Boot Order not Found- after software update

Astoundingly.. this issue was caused by a plugged-in USB headset. I don't yet know enough about Linux to determine how the hell something like a USB headset could affect the reading of a system boot order. I would sure like to know. Is this explainable?

Anyway.. if you have a boot order problem, try unplugging all your USB devices before you go deeper down the rabbit hole.


For 1:

It can wipe your disk, but you can select other settings too. The installer has partition software installed, with which you can change anything to your likings.

For 2:

Did you extract the iso before burning? Because that isn't what you are supposed to do.
You have to burn the iso onto the disc, otherwise it is unbootable.


why is ubuntu incorrectly detecting my graphics card?

You can first update the PCI ID database on Ubuntu by running sudo update-pciids in a terminal to see if this helps to correct the name.

From the latest database snapshot:

1002  Advanced Micro Devices, Inc. [AMD/ATI]
    67b0  Hawaii XT [Radeon R9 290X]
        1043 046a  R9 290X DirectCU II
        1043 046c  R9 290X DirectCU II OC
        1043 0474  Matrix R9 290X Platinum
        1043 0476  ARES III
        1458 227c  R9 290X WindForce 3X OC
        1458 2281  R9 290X WindForce 3X OC
        1458 228c  R9 290X WindForce 3X
        1458 228d  R9 290X WindForce 3X OC
        1458 2290  R9 290X WindForce 3X
        1458 22c1  Grenada PRO [Radeon R9 390]

It looks like that the Radeon R9 390 is only specific to a card with 1458 22c1 as its subclass ID, you can check the ID of your card with lspci -nnv

This lookup table is maintained by the community, if the information is not correct, you can make changes here: http://pci-ids.ucw.cz/


If you messed up everything and want to correct things. This has an auto correct button. If the ubuntu is there it will find it, and it will work.

    sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update
    sudo apt-get install -y boot-repair && sudo boot-repair

Boot-Repair

Otherwise system recovery from Live USB/CD boot menu.


Spotify has stopped working on the latest Ubuntu today, 15.04

There is a tutorial so you can fix it (beneath reinstalling).
Just execute these two commands, it worked for me:

$ wget http://security.ubuntu.com/ubuntu/pool/main/libg/libgcrypt11/libgcrypt11_1.5.4-2ubuntu1.1_amd64.deb
$ sudo dpkg -i libgcrypt11_1.5.4-2ubuntu1.1_amd64.deb

Link to the source/tutorial:
http://dgzen.pw/2015/04/21/installing-spotify-in-ubuntu-15-04/


For users using the gnome2 desktop environment: Choose System -> Preferences -> Power Management and set put display to sleep to never. This will address the issue with Xorg using 100% CPU and allows you to turn off your monitors.


Why does "ls > foo" produce a file containing "foo"?

The > command line directive happens before the ls command is executed.  The shell has to be ready to save the output that the ls command may produce, so it has to create and open the file for writing.

When ls is executed by the shell, the foo file exists and hence ls outputs "foo" which is what you found in the file foo.


Ubuntu 16.04 Installer Crashes Shortly After Partitioning Disk

I had this issue too. It was because I was using version of the USB Startup Disk creator that was very old, I think it was on Ubuntu 14.10. I got around the problem by booting the USB into a live session of 16.04, redownloading the 16.04 .iso image, and making a new USB Startup Disk using the updated tool in the live session. Then I rebooted onto the new disk and the installation went without a hitch.


Change <VirtualHost mysite.com.ua:80> with <VirtualHost *:80>.

I don't know what is the reason of this behaviour, but I had similar problem while ago, and this was the solution. Maybe it is connected with /etc/hosts.

It would be good someone, who knows the reason, give us an explanation.


ALT+Tab no longer switches applications since upgrade to 18.04

In the Settings > Devices > Keyboard menu, you will find a list of keyboard shortcuts. Under the Navigation section, you can find the relevant functions and their associated shortcuts, and change them as you see fit. You're looking for the one named Switch applications.


BCM4311 wireless - works with B43 modprobe then stops - advice

You have a typo in one of your commands. Please do:

sudo su
echo b43 >> /etc/modules
exit

that should make the driver load on boot.
Thanks


Is there a multi-threaded download manager with no thread limit?

axel apparently does. From the manpage:

--num-connections=x, -n x
      You can specify an alternative number of connections here.


Is there a GUI for nethogs or similar network-monitoring app?

I made simple GKT based GUI for nethogs.
You can find it here: https://github.com/mbfoss/gnethogs


How do i completely remove otrs and fix my previous localhost

Removing faulty otrs

 sudo rm /etc/apache2/sites-available/otrs.conf
 sudo rm /etc/apache2/sites-enabled/otrs.conf
 sudo rm /home/$USER/.cache/software-center/piston-helper/rec.ubuntu.com,api,1.0,recommend_app,otrs,,81384ef50f6b1038436de465afd51202
 sudo rm /home/$USER/.cache/software-center/rnrclient/reviews.ubuntu.com,reviews,api,1.0,reviews,filter,nl,any,any,any,otrs,page,1,helpful,,251358f9bbc99053ed71c6082e485827

 sudo rm /home/$USER/.cache/software-center/rnrclient/reviews.ubuntu.com,reviews,api,1.0,reviews,filter,nl,ubuntu,quantal,any,otrs,page,1,helpful,,7af23859b6e91926d3623a0d118dbf90

 sudo rm /var/cache/apt/archives/otrs2_3.1.7+dfsg1-5_all.deb
 sudo rm /var/cache/apt/archives/otrs_3.1.7+dfsg1-5_all.deb
 sudo rm /var/crash/otrs2.0.crash
 sudo rm /var/crash/otrs2.0.upload
 sudo rm /var/crash/otrs2.0.uploaded

just in case I missed something:

 sudo apt-get -y autoremove
 sudo apt-get -y clean
 sudo apt-get -y autoclean
 sudo apt-get -y check
 sudo dpkg --configure -a
 sudo apt-get install -f

Source:

How to install the latest otrs - EuroBytes
Bug #1154530 “package otrs2 3.1.7+dfsg1-5 failed to install/upgr...” : Bugs : “otrs2” package : Ubuntu


How to find mac address of devices connected to my modem and block them from my network on ubuntu terminal?

You can use nmap with any of several options. The machines must be on the same LAN, no router in between.

nmap -sP
nmap -sn
nmap -sL
nmap -PU

See man nmap and / or: https://nmap.org/book/man-host-discovery.html


Reformat/Erase and Install Ubuntu on Old Computer

This is the official documentation.

It sounds like right now you have one big iso file sitting on the USB drive. That's not going to work to boot and start the installer. To set that up using your MacBook, you'll want to download unetbootin

That will let you extract the files from the iso onto the USB device in a bootable format.

At that point, you should be able to plug the USB drive into the computer you plan on installing Linux on, tell it to boot from the device (either by going into the BIOS and changing the boot order or selecting the boot menu by hitting F12).

This should boot into an installer which will walk you through the process. It's really straightforward, especially if you don't do a lot of customization at this point. You should be able to tell it to use the entire hard drive which will completely wipe out your existing Windows installation.


GTK error in VMware Player for 12.04 LTS

The libcanberra errors seems to be resolvable using a symbolic link as follows:

sudo ln -s /usr/lib/x86_64-linux-gnu/gtk-2.0/modules/libcanberra-gtk-module.so /usr/lib/libcanberra-gtk-module.so

Also, you'll need the build-essential, open-vm-tools and open-vm-toolbox packages, install them using:

 sudo apt-get install build-essential open-vm-tools open-vm-toolbox

(Source)


If you organised your terminals on screen (as in the screenshot below), and then from one of the four you ran gnome-terminal --save-config=Mik4, the resulting file will be saved to the present working directory (pwd) of that terminal (or the script running that command).

However, if the present working directory (pwd) in which you saved the config was anything other than /home/$USER, running gnome-terminal --load-config=Mik4 will not work, as it only looks in /home/$USER. You need to specify the exact location where you saved it and run, for example, gnome-terminal --load-config=~/DOS/Mik3. Then you can could add your command  as a custom shortcut or you could even replace the standard Ctrl+Alt+T.

It does restore my configuration perfectly for me every time, and seems to be fine as long as you select the correct config file; it is best to keep your configs in /home/$USER, then you can save and load without needing to remember to specify any other directory.

Entering man gnome-terminal doesn't give the full options, but gnome-terminal --help-all should provide any further information that you need.


Get information about a video from command-line tool

You have several commands to get that information:

  avprobe from the package libav-tools is pretty good.

  Sample output avprobe somefile.mp4

avprobe version 0.8.4-4:0.8.4-0ubuntu0.12.04.1, Copyright (c)
2007-2012 the Libav developers   built on Nov  6 2012 16:51:33 with
gcc 4.6.3 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'somefile.mp4':
Metadata:
    major_brand     : avc1
    minor_version   : 0
    compatible_brands: isomavc1
    creation_time   : 2012-08-10 15:01:14   Duration: 00:01:02.55, start: 0.000000, bitrate: 682 kb/s
    Stream #0.0(und): Video: h264 (High), yuv420p, 1904x1040 [PAR 1:1 DAR 119:65], 680 kb/s, 19.18 fps, 20 tbr, 20 tbn, 40 tbc
    Metadata:
    creation_time   : 2012-08-10 15:01:14

  To add to Thunar custom action, in relation to what was suggested
  here, the analog formula to add would be:

gnome-terminal --window-with-profile=new1 -e "avprobe %f"

Source: Command to see media file info in terminal? (then, duplicated).

And also you have:

  You can use MPlayer to get that information.

$ mplayer -vo null -ao null -identify -frames 0 foo.avi

Source: https://superuser.com/questions/55780/linux-command-line-tool-to-get-bitrate-of-divx-xvid


Ubuntu 20 - CPU threads hit 100% - network drops completely until rebooted

BIOS
ASUS PRIME B350-PLUS
You have BIOS version 5220.
There's a newer BIOS available, version 5407, dated 1/15/2020, and can be downloaded here.
Note: Verify that I have the correct web page for your motherboard.
Note: Have good backups before updating the BIOS.


Dozens of new Wired Ethernet Network Connections appeared in Networks list

I finally figured it out... it was caused by running Docker Containers.

Simply stopping and removing the containers solved this issue.


Libreoffice Writer: How to flip/swap between two table rows?

Using LibreOffice Writer v 6 right click on a line of the table and select inset row.
Then highlight the row you wish to move and whilst selected move it to the (now) blank new row.
Repeat for the second row you wish to move.

Short video showing basic principles


Installing libwww-perl on Ubuntu 12.04,SE

First, I would strongly advise against the direct 'perl way' installs, they will only make the mess bigger. You don't need these in Ubuntu.  libwww-perl exists as a standard Ubuntu package.

Since this doesn't work.  You should start by cleaning up your installation which seems to be broken.  First, try cleaning-up your package installs like this:

sudo apt-get install -f
sudo apt-get update --fix-missing

and only when you don't get errors, move on to installing libwwww-perl, using:

sudo apt-get install libwww-perl

Also:

You seem to have a very unusual (non-standard) list of directories perl is searching libraries in.  For example, there shouldn't be a /etc/perl in the places to look for libraries, and on Ubuntu you don't need anything starting with /usr/local.

To check whether the package is installed, you may check the output of:

dpkg-query -S libwww-perl

Check your env for bad forced perl paths:

env | grep PERL

If this gives any output, I would remove it from the environment before running perl:
Look at your startup files (~/.bashrc in particular end comment these non standard settings out)

Good luck!


Can I limit the amount of logging to "/var/log", especially for "bootchart"?

First, what is bootchart? Bootchart allows you to check the boot sequence and generate a chart showing how long each process ran during the boot process, and how much CPU/IO they used.

Once installed, bootchart runs on every boot. However, you can edit the variable GRUB_CMDLINE_LINUX_DEFAULT in '/etc/default/grub' to include bootchart=disable, which stops bootchart from running at all. Don't forget to run sudo update-grub afterwards to update GRUB's configuration file.

If you want to run it at a later point, edit the GRUB entry at boot (by pressing the 'c' key at the GRUB menu you can edit the highlighted entry), and remove bootchart=disable from the the 'linux' line. This will enable bootchart once for the following boot.


How do you package HTML applications for Ubuntu Touch?

Here you will find more informations about the development of apps to Ubuntu Phone/Tablet:

Here you find a specific example of a HTML application for Ubuntu Touch:

And this is about packaging:


Ubuntu 20.04: Can't find basic application menu on the dock and appearance menu in settings

Resolved!!
During login, I selected Ubuntu from the options available; initially it was gnome.


Even though at the Sourceforge page there is a tar.gz that you can extract and use the install script to install the program, I had problems with it, so it is indeed best to compile a version against the libraries on your system.

Your main compilation problem seems to be the lack of libboost development libraries: you can get all of these by running

sudo apt-get install libboost-all-dev

Dependencies

However, there are a number of other dependencies and build dependencies that are necessary for the program, so here's how I successfully compiled it on Ubuntu 12.04.

First download the necessary prerequisites:

sudo apt-get install build-essential checkinstall subversion

Now, install all the build dependencies:

sudo apt-get install libboost-all-dev libhunspell-dev libwxgtk2.8-dev libwxbase2.8-dev

and then the dependencies for running the program:

sudo apt-get install libhunspell-1.3-0 libwxbase2.8-0 libwxgtk2.8-0 libboost-system1.48.0 libboost-regex1.48.0

If you have any problems running the program you will probably just need another libboost related shared library; refer to this thread on the program's forum.

Note: These lists of packages relate to those on 12.04; the versions of the libboost libraries (and others) may be different on later Ubuntu versions.

Compilation

I presume you checked out the code from svn by entering

svn co https://magicseteditor.svn.sourceforge.net/svnroot/magicseteditor/trunk magicseteditor

Then cd in terminal to the magicseteditor folder, and simply run

./configure && make

If you wish to set a prefix where it is to be installed or wish to select another configure option, run ./configure --help before you run ./configure && make.

Now just run

sudo checkinstall --pkgversion=2.0

However, after that you must also install the data folders into ~/.magicseteditor, as checkinstall did not seem to install that data. So make sure ~/.magicseteditor exists, and make sure you are in the magicseteditor folder where you compiled it, and run:

cp -r data/ ~/.magicseteditor/
mkdir ~/.magicseteditor/resource
cp -r src/resource/msw/cursor/ ~/.magicseteditor/resource
cp -r src/resource/msw/icon/ ~/.magicseteditor/resource
cp -r src/resource/msw/tool/ ~/.magicseteditor/resource
cp -r src/resource/msw/other/* ~/.magicseteditor/resource
cp -r src/resource/common/* ~/.magicseteditor/resource

Make sure no mistakes are made when copying these across, as the directory structure is important.

Again, these commands will only work if you are in the magicseteditor folder in which you compiled it. (Indeed there does seem to be a Resources.sh in the magicseteditor folder that can be used to install the data, but it does not install the data directory, so I should use the commands above, which will install everything you need instead.)

It also seems that you need the fonts from the other package, so download it, move to its containing folder, and extract it with

tar -xzvf mse-linux32-2011-02-05-full.tar.gz

cd to the folder and run

cp fonts/* ~/.fonts

Now run magicseteditor & and the screenshots such as those below will appear.


You use an old version of Node.js and npm!

How To Install the Distro-Stable Version

Ubuntu 16.04LTS contains a version of Node.js in its default repositories that can be used to easily. The version of your Node.js in the repositories is 4.2.6 and the npm version 3.5.2. This will not be the latest version, but it should be quite stable.

In order to get the newest version of Node.js, you just have to use the apt package manager. You should refresh your local package index prior and then install from the repositories:

sudo apt-get update
sudo apt-get install nodejs

If the package in the repositories suits your needs, this is all that you need to do to get set up with Node.js. In most cases, you'll also want to also install npm, which is the Node.js package manager. You can do this by typing:

sudo apt-get install npm

This will allow you to easily install modules and packages to use with Node.js.

Helpful resources

https://duckduckgo.com/?q=install+node.js+on+ubuntu
https://stackoverflow.com/questions/16302436/install-node-js-on-ubuntu-12-10
https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-an-ubuntu-14-04-server
https://www.elastichosts.com/blog/how-to-install-nodejs-on-ubuntu/
http://davidtsadler.com/archives/2012/05/06/installing-node-js-on-ubuntu/


I suspect that your issue comes from a different selection for the Settings > Appearance > Icon theme. From the screenshot it looks to me like you want to select the elementary Xfce icon theme.

Does this work for you?


I experience quite similar problems after upgrading Ubuntu 18.04 from kernel version 5.3.0-40 to 5.3.0-42. inxi shows the same sound server version.

I also have only the dummy audio device available and cat /proc/asound/cards says

 --- no soundcards ---

Not sure whether the kernel update is the reason, though. Tried a lot of multimedia stuff due to the Corona breakdown. This could have hampered audio as well.

Update: It seems originate from the kernel update. I booted in the old kernel and sound works!

A possible solution with setting a boot parameter is described here (not sure whether I'll follow that route): Ubuntu 18.04 audio disappeared after update

Update 2: Even kernel 5.3.0-45 does not seem to fix the issue (at least not for me). So, I added the following line to /etc/modprobe.d/alsa-base.conf as suggested from multiple sources (e.g. https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/1868782):

 options snd-hda-intel dmic_detect=0

With that, speakers/headphone work. Internal mic will not be detected (but wasn't before, either).

For the time being, I use an external USB microphone as workaround. That one messed with the sound card ordering, however: Plugged microphone in -> no sound from speaker/headphone, unplugged -> speaker/headphone worked. So, I additionally added the lines

 options snd-usb-audio index=-1
 options snd-hda-intel index=-2

to /etc/modprobe.d/alsa-base.conf. Now, I have working sound input/output.


As noted at https://www.asus.com/Laptops/ASUS-VivoBook-S14-S431FA/Tech-Specs/

you have a USB3 Gen 2 port. Attach a micro USB3 to Ehternet adapter there and you will have wired Ethernet capability, with which you can use solutions which require a connection to download a file.


Running WPS to work with WRF (weather forecasting System )

This error means you need to double-check your namelist.wps.  Apparently, line 14 is problematic.  It could either be a bad key or a bad value it is complaining about.  The error message seems to indicate that the value should be a string. It is hard to know what the problem is without seeing your namelist.wps.


What does this command do ? mount -rw -o remount /

When you boot into recovery mode, the root partition (/) is mounted in read-only mode as to cause the least possible damage.

This command simply remounts it in read-write mode so that you can persist changes (eg a new password) to disk.

Without warranty or guarantee, I can say with 110% certainty that this will not hurt your data... But remember that you will be root when you're in recovery mode so just be careful after you've remounted the disk.


A lot of guides say to right click on the taskbar or other panel. I found that I had to hold down Alt+Super and right click. I also had to do it on a blank area, not a current taskbar button.
Click New panel
Find where the new panel has been added - with a default config it will likely be to the right of the screen.
Hold the same key combination as above and drag the panel to the second screen. Snap it to whichever edge you want.
Use the combination again, right click the new panel and click Add to panel
In the list scroll to the bottom to find Window list
This should be added and pull in any windows on the current screen.

If you need to reset the Gnome panels at any point the command line killall gnome-panel should cause them to be removed and restart themselves.

Still bonus points for the rest of the question above!


To make sure you have the latest sources.list

sudo apt-get update

then run:

sudo apt-get install vim


Xubuntu 19.10 Software & Updates app does not work when Python 3.8 is set as default version

DON'T DO IT.

Some essential system services, including apt, are built to work with a specific version of Python 3, and are packaged that way.

For Ubuntu 19.10: Those packages for Python 3.8 simply do not exist in the Ubuntu 19.10 repositories. Apt may work with Py 3.8 when Ubuntu 20.04 is released. Ubuntu developers are working to bring Py 3.8 to 20.04. However, that is not a guarantee -- the future is hard to predict.

The best way to use Py3.8 with Ubuntu 19.10 is to use a virtualization tool like venv or conda. Do NOT try to use apt to install 3.8, as it will remove the existing 3.7 and promptly break your system.


Why after installing Ubuntu by PXE it never has Internet or Internet Connectivity?

Network Manager for some reason assumes that since you already have an IP address before you booted into the live session, it isn't needed and goes to sulk in the corner.

To fix the problem, after you've rebooted for the first time after installing Ubuntu via PXE, edit the /etc/network/interfaces file and DELETE the auto etho and iface eth0 lines (leave the "lo" loopback entries).

Save and reboot and Network Manager will magically work again, with working Internet to boot.


How to leave a usb port powered during shutdown for charging mobile?

It's better to start where others stopped with sony-laptop Linux kernel module.

Check if it's loaded

lsmod | grep sony

If not, load it

sudo modprobe sony-laptop

Check if there any corresponding entry/function for USB charging (usb_charge attribute got from source):

tree /sys/devices/platform/sony-laptop/

As I check the driver source, here are the corresponding functions (may be not for all models):

...
static int sony_nc_usb_charge_setup(struct platform_device *pd);
static void sony_nc_usb_charge_cleanup(struct platform_device *pd);
...

Full functions definition here (portion from sony-laptop.c)

0x0155 seems to be detected on you laptop from the kernel messages. The module created touchpad, battery_care_limiter, read-only handles, read-only battery_care_health SYSFS attributes but nothing else (including usb_charge).

I checked the Ubuntu kernel source looking for USB charge function:

Ubuntu 14.04 Trusty (not yet added), kernel version 3.13

If you are using this release, the easiest way is to install Utopic kernel:

sudo apt-get install linux-generic-lts-utopic

Ubuntu 14.10 Utopic (it's there), kernel version 3.16

If it is not there, it is hard/risky only if you are up to:

Development:
------------

If you want to help with the development of this driver (and
you are not afraid of any side effects doing strange things with
your ACPI BIOS could have on your laptop), load the driver and
pass the option 'debug=1'.

REPEAT: DON'T DO THIS IF YOU DON'T LIKE RISKY BUSINESS.

In your kernel logs you will find the list of all ACPI methods
the SNC device has on your laptop.

See Readme file.
As kernel upgraded by OP to 3.16.0-38-generic, usb_charge is created with some other SYSFS attributes.

Reading similar driver kernel docs, sysfs-driver-samsung-laptop:

What:     /sys/devices/platform/samsung/usb_charge
Date:     December 1, 2011
KernelVersion:    3.3
Contact:  Corentin Chary <corentin.chary@gmail.com>
Description:  Use your USB ports to charge devices, even
      when your laptop is powered off.
      1 means enabled, 0 means disabled.

To check current state:

cat /sys/devices/platform/sony-laptop/usb_charge

To disable it:

echo 0 | sudo tee -a /sys/devices/platform/sony-laptop/usb_charge

To enable it:

echo 1 | sudo tee -a /sys/devices/platform/sony-laptop/usb_charge

References:

Sony Notebook Control Driver (SNC) Readme
sony-laptop source


Loss of privileges when enabeling auto log-in to encrypted home folder

You don't have your full capabilities or the ability to access your encrypted files when you're automatically logged in, so try logging out and back in, and see if that gives you these abilities. If that lets you disable automatic login, then that's the fast way.

If that doesn't work, then boot from an Ubuntu live CD/DVD or USB flash drive, open a Nautilus (i.e., file browser) window, and click on the volume for the Ubuntu system installed on  your hard drive (it's listed near the top of the left pane of any file browser window) to mount it. Then quit this original Nautilus window and press Alt+F2 and run gksu nautilus (this opens a file browser window as root, with unlimited abilities). In the file browser window created by doing that, find the volume you just mounted (you might have to manually browse to it inside /media), and inside it, go into the etc directory. Inside that, go into the lightdm directory. Make a backup copy of the file lightdm.conf and then edit the original file to remove the line that begins autologin-user=. Then reboot (using the power/gear icon > Shut Down at the upper-right corner of the desktop), remove the CD/DVD or USB flash drive, and boot into your installed system. Now you should see a login screen like you used to.

(In summary, boot a live system and back up and edit /etc/lightdm/lightdm.conf to remove the autologin-user= line.)


Any means to use Ubuntu/Linux to remove firmware restriction to boot from My Passport Essential 320G?

(Comment to answer)

I'm not aware of a linux way to do this - however, you can do this via windows

How to remove hidden Virtual CD (VCD) partitions on your Western Digital external disks

Source


How to run a .exe from MSDN to download the software-fix from Wine?

sould download iexplorers:
http://www.tatanka.com.br/ies4linux/page/Installation:Ubuntu


"Install alongside Windows 10" not showing in installer 18.04

An extended partition on your disk means it's using dos partitioning, so Windows is in legacy mode.  The machine settings control how the Ubuntu install media boots, since it has both boot mechanisms, check that UEFI is turned off or is not the preferred boot mechanism.  Booting the install media in UEFI mode will not see Windows in legacy mode.  Ubuntu doesn't need  a primary partition to boot, a logical partition within the extended partition is fine.  If you have unallocated space (not in a logical partition) in your extended partition, Ubuntu may be installed there.


How do I show the terminal after a script is executed at startup?

Let me use this simple example to demonstrate one way of having that done:

Two scripts:

launcher.sh, and
sample.sh

Content of scripts:

launcher.sh:

#!/usr/bin/env bash
gnome-terminal --working-directory="/home/georgek/Documents/askubuntu" -- '--rcfile ./setup.bash ./launcher.sh'

sample.sh:

#!/usr/bin/env bash
du -h ./; read line;

Call sample.sh from launcher.sh like this: launcher.sh and that will pass the file sample.sh to the terminal, note: the read line prevents gnome-terminal from closig till you press the ENTER key. Modify as it as you like.

NOTE:
   - -- is preferred to -x as reported by bash
   - --working-directory="/home/georgek/Documents/askubuntu" tells terminal to run command from this directory.

Use this file to set variables, from man bash:

  --rcfile file
            Execute commands from file instead of the system wide initialization file /etc/bash.bashrc and  the  standard  personal  initialization
            file ~/.bashrc if the shell is interactive (see INVOCATION below).


remmina desktop client not working properly,shows login failed

try the following methods

  ssh user@domain

from the terminal

or

  sftp://user@dommain/home/

and try to connect the server

This will verify the login, if it works then your desktop client must also work.

I these attempts fail,then it simply means that your password is wrong ,contact your admin to resolve the issue


How to merge a swap (.swp) file to the original file?

Vim uses .swp files as storage areas for unfinished work, allowing it to edit very large files even if they can't fit completely in memory.  This is a legacy from the times when computer RAM was very small and large files that didn't fit in memory was more common, but it has remained, and means we can edit files that are many Gigabytes without eating up all available RAM or killing processes.  Vim deletes the .swp file when it has finished editing, or leaves it if the process exits abnormally.

If you have a .swp file and an original file, you can somewhat recover lost work.  This is documented here:

http://vimdoc.sourceforge.net/htmldoc/recover.html

To recover a file, simply open the original file.  vim will notice that there is already a .swp file associated with the file and will give you a warning and ask what you want to do.  Assuming you have the required privileges to write to the file, "recover" should be one of the options given.

Alternatively you may start a new vim instance (on a blank document) and use the command :recover <file> stating the file you want to recover.

Note that the primary use for .swp files is as temporary storage for vim enabling it to edit large files, NOT recovery.  As such vim doesn't journal writes to the file, and if power is lost during editing the .swp file may become corrupt.  Fortunately the recover tool in vim is fairly tolerant to partially corrupt .swp files and will still attempt to recover as much of the lost changes to the file as it can.  Look for the existence of three question marks: ??? in the recovered file, as these will be inserted whenever corruption was found in the .swp file.

Once you are happy with the recovery you need to manually delete the .swp file to ensure you don't keep getting the warning when you go to edit the file.  Be careful not to run the recovery process a second time.


Servers Hardware Certification of kernel upgrades

There is one interesting fact about a new point release. We can divide it into 2 parts:

Software stack.
Hardware Enablement (HWE) Stack, the kernel part.

Let's take 14.04.1 Ubuntu Trusty (with 3.13 series kernel) for example. When running upgrade with sudo apt-get update; sudo apt-get dist-upgrade:

Your software stack will be upgraded to the latest version, which is 14.04.4 now.
Your kernel stack will stay on 3.13 series, instead of upgrading to the 4.2 kernel that shipped with 14.04.4.

In this case, you will only be ask to upgrade the HWE stack when the 3.13 kernel has reached its end of life in Apr. 2019. (Or you can do this manually, run sudo apt-get install linux-generic-lts-wily, change wily to any other distro name, but you won't need this if the 3.13 kernel works fine with your hardware)

So to your question, you should be able to use the command described at the very beginning to upgrade the system from the certified 14.04.1 to the latest point release without causing any problem, as the kernel is the same 3.13 series.

You can check this fact after an upgrade, with uname -a to check your kernel and lsb_release -a to check the software stack.


I think I got this one solved. After doing some digging I added nolapic to grub and everything seems to be working. I followed the process outline from this link
http://ubuntuforums.org/archive/index.php/t-2031780.html


vim: changing variable value line by line

Vim has a way to increment a number automatically: <c-a> (or Ctrla) in normal mode.

So, using a macro, it is fairly easy to construct an increasing sequence of numbers in Vim. Start at the line containing a+ 1 =b and a+1=c and:

qq
Yp^Aw^A
q

The ^A stands for pressing Ctrla. Then use @q to repeat the macro. So 4@q would produce:

a + 1 =b and a+1=c
a + 2 =b and a+2=c
a + 3 =b and a+3=c
a + 4 =b and a+4=c
a + 5 =b and a+5=c

qq starts the macro (q) saving in the register q.
Y yanks the current line (linewise)
p pastes and you end up at the beginning of the next (formerly current) line.
<c-a> you increment the first number in the line (and the cursor moves to it)
so you move to the next word and increment again (w<c-a>), this time affecting the second number.


Which is the best multitrack recording software?

You can check out the following applications:

Jokosher
Audacity
Traverso

Here is the what their summaries says on the USC.

Jokosher:

  Jokosher is a simple and powerful multi-track studio. Jokosher
  provides a complete application for recording, editing, mixing and
  exporting audio, and has been specifically designed with usability in
  mind. The developers behind Jokosher have re-thought audio production
  at every level, and created something devilishly simple to use.

  Jokosher offers a strong feature set:

  Easy to use interface, designed from the ground up. Jokosher uses    concepts and language familiar to musicians, and is a breeze to use.
  Simple editing with splitting, trimming and moving tools.
  Multi-track volume mixing with VU sliders.
  Import audio (Ogg Vorbis, MP3, FLAC, WAV and anything else supported    by GStreamer) into your projects.
  A range of instruments can be added to a project, and instruments can    be renamed.
  Instruments can also be muted and soloed easily.
  Export to MP3, Ogg Vorbis, FLAC, WAV and anything else GStreamer    supports.

Audacity:

  Audacity is a multi-track audio editor for Linux/Unix, MacOS and
  Windows.  It is designed for easy recording, playing and editing of
  digital audio.  Audacity features digital effects and spectrum
  analysis tools.  Editing is very fast and provides unlimited
  undo/redo.

  Supported file formats include Ogg Vorbis, MP2, MP3, WAV, AIFF, and
  AU.

Traverso:

  This is a free, cross platform multitrack audio recording and editing
  suite, with an innovative and easy to master user interface. It is
  suited for both the professional and home user, who needs a robust and
  solid DAW.

Also you could search for more applications from the Ubuntu Software Center.


Remove ~/.local/share/applications/nautilus as this is what is used by Unity.


I created this bash script from negusp's answer. It finds and toggles TouchPad device. You can configure a custom shortcut to it in system settings.

#!/bin/bash

read TPdevice <<< $( xinput | sed -nre '/TouchPad|Touchpad/s/.*id=([0-9]*).*/\1/p' )
state=$( xinput list-props "$TPdevice" | grep "Device Enabled" | grep -o "[01]$" )

if [ "$state" -eq '1' ];then
    xinput --disable "$TPdevice" && notify-send -i emblem-nowrite "Touchpad" "Disabled"
else
    xinput --enable "$TPdevice" && notify-send -i input-touchpad "Touchpad" "Enabled"
fi

I'm setting Ctrl+Shift+F9 for toggle touchpad enable and disable like this:

Update: You may need to make your script to executable with command chmod +x filename or input /bin/bash /filepath to Command field of Custom shortcut window.


How to copy a file to multiple folders using the command line?

cp can copy from multiple sources, but can't copy to multiple destinations. See man cp for more info.

The only bash command that I know which can copy/save to multiple destinations is tee.

You can use it in your case as follows:

tee ~/folder1/test.txt ~/folder2/test.txt < ~/test.txt

Note that tee also writes the input to the standard output (stdout). So if you don't want this, you can prevent it by redirecting standard output to /dev/null as follow:

tee ~/folder1/test.txt ~/folder2/test.txt < ~/test.txt >/dev/null


I had this problem in a docker container. I just linked tar to gtar:

ln -s /bin/tar /bin/gtar


Ubuntu and Facilities for all kind of user

Ubuntu offers a number of options to make the desktop more accessible to people with different physical abilities. Many of these options are included in the default install and can be accessed through the Universal Access menu in System Setting.

The Seeing tab offers high a contrast theme and and a screen reader for the visually impaired:

The Hearing offers visual alerts:

The Typing and Pointing and Clicking tabs offer options that may assist folks that have difficulties using a keyboard or mouse:

More information about different accessibility options can be found on the Ubuntu wiki. The Ubuntu Accessibility team has a mailing list where planning and discussion of accessibility features happen.


is it normal for ubuntu 11.10 to use 1 GB of memory?

First, 64 bit executables tend to be larger than 32 bit executables, which could mean more RAM usage. Though I doubt this would be really noticeable.

Second, you want for Ubuntu to use your computer's RAM. The fact that you have 4GB more RAM installed means that Ubuntu will use RAM more eagerly. And that is a good thing.

To put your experience in relation: On this very machine, I have 4GB of RAM of which 3GB are currently in use. Even though some programs eat memory as if it was candy (e.g. Java), not using the available RAM would be bad for performance. You always want for working data to be in the RAM and not on your slow HDD.

So having 1GB in use means your system is pretty much lazy and working normal. Which isn't to say that it wasn't normal for your system to eat up 7GB. Normal depends on the software you run.

On the requirement page for Ubuntu 12.04, it says 512MB are needed if you want a desktop environment. 384MB are needed for installation without it.

Those requirement limit what a PC needs to run Ubuntu. Any more RAM is bonus and should be used for performance's sake.


Yes, you can using tac:

lpstat | tac

If you want to revert order only, let say, last 10 lines, combine your command with tail:

lpstat | tail -n 10 | tac


Information explaining the relationship between Debian and Ubuntu

Here is a talk I gave at Debconf 10 on the relationship between our two projects. I'm afraid the audio quality isn't so hot but I go over some of the things we're working on.

Our Debian workspace on the wiki. This has the basic information.
The Debian derivatives front-desk has pointers to places where people who are interested in working with Debian can collaborate.
The Ultimate Debian Database has some measurements of Ubuntu contributions, the video explains how to read these.
Here's an already out of date list I compiled of people who are both Ubuntu developers and Debian developers.


configure: error: *** Unable to locate Tk includes

It would appear to be tk8.5-dev you can install it by doing sudo apt-get install tk8.5-dev

To find out missing files in the future you can use apt-file (sudo apt-get install apt-file). After installing do apt-file update and then you can search for your missing file. For example in this case I did apt-file search tk.h and it brought up tk8.5-dev.

Another neat trick is if the package already exists in the repositories (it does as grass) you can do sudo apt-get build-dep PACKAGE (in this case sudo apt-get build-dep grass) which will install all the dependancies for GRASS allowing you to compile it with ease.


How harmful is VirtualBox extension pack?

They are just being legally careful to make sure you know that you are installing software so get it from the right places.  It's super useful, go for it! (as long as you downloaded it from the official site)


How can I enable spell checking in Gnote?

No, it's impossible.

Gnote package in Ubuntu 12.04 is build against GTK+ 3. With GTK+ 3 you can use only GTKSpell 3.0.X, but Gnote 0.8.X has no support for GTKSpell 3.0.X.


Unattended upgrades finds nothing when run manually

Partially correct

Unattended-upgrades in 16.04 and older did indeed rely upon cron to trigger the combined update/upgrade service.

However, that changed: 18.04 uses systemd timers instead of cron. The timers for update and upgrade are independent, and may run many hours apart. This is the most likely (and expected) cause for packages miraculously appearing - they were likely uploaded/mirrored after the previous update.

You can run the unattended-upgrades command from the a shell prompt, and it will do exactly the same job as if triggered by cron (16.04 and older) or systemd timer (18.04 and newer).

Since it's all controlled by systemd, you can use any trigger you want to start daily update and upgrade - you're not restricted to using the built-in timers. You can, for example, start them 4 minutes after network-up, or set the timers to run at a standard time during lunch, or whatever you want that meets your needs.


How to install window decorations from file?

Q:

  the option to install decorations from file. How do I do so, if it's
  even possible?

A:

It depends ;)

Engine + decoration files

Example #1- Aurorae - engine included

The Aurorae decoration engine is part of the KDE.

GHNS:
System Settings > Workspace Apperance > Window Decorations > Get New Decorations

Manual from a file:
Unpack the theme to the ~/.kde/share/apps/aurorae/themes/

Example #2- deKorator - external engine

Package: kwin-style-dekorator

Description: Windows decoration engine for KDE 4 using user-supplied PNG files
 With deKorator, easily create your own window decoration for KDE 4!
 deKorator uses your own made images for buttons, borders and so on.
 Go ahead and be creative!
 An example called uglyTheme is provided to show its possibilities.
 .
 Themes can be created by the user with the help of a drawing program or can be
 downloaded from http://www.kde-look.org/index.php?xcontentmode=21
 .
 This is a windows decoration engine, not a style.
Homepage: http://www.kde-look.org/content/show.php/deKorator?content=87921

After the installation of the engine: System Settings > Workspace Apperance > Window Decorations > deKorator

The deKorator has an option to install the theme from a file.


how to set keyboard layout at login? ubuntu 17.10

If your changes are not effective for the login screen too, you have probably more than one user account on the system. But in that case, the Settings -> Region & Language window includes a "Login Screen" button. Clicking that button switches the mode, so you can control the login screen values separately.


Ugly fonts in Netbeans - How can i make it use the system font?

As has been stated in the comments, this is a problem with Java Swing apps on Linux. Swing does use Gnome's font smoothing settings (deactivated, greyscale or subpixel) - it disregards the hinting settings though. It always uses full hinting, and if you're running Ubuntu with little or no font hinting (as most people do since little hinting is the default setting) this will make the font appear significantly different than in other applications. SWT applications like Eclipse are fine, but if you like Netbeans this isn't gonna help you.

Caveat: For the following workaround I'm only talking about the editor font, because in an IDE that's what's important to me. You could also apply it to the menu fonts etc, but that might be a little over the top.

The only usable solution I found here : use Fontforge to edit your editor font of choice and remove all hinting information from the font itself, then save it as a new font and use that in Netbeans.

sudo apt-get install fontforge
Launch Fontforge
Open your font of choice
Ctrl+A or edit -> Select -> Select all to select all characters
Hints ⇒ Clear instructions
Ctrl+Shift+F or element -> font info to open the font info
Rename font (e.g. to original name + '_nohints')
Save edited font in the .fonts directory in your home, through file -> generate fonts, making sure to use a format that Ubuntu reads (see next step)
Clear font cache fc-cache -rv - following its output to make sure your new font file was picked up (e.g. .sfd doesn't but .ttf does).
Run Netbeans and use the font you created as editor font

No, not perfect and yes, a bit of a hassle, but still a world of difference. Hope that helps.


updaing Windows Vista machine to Ubuntu server 20.04

Q: does it matter where (what machine) step 3 takes place on?

No, but since your machine has Windows Vista, I must ask if its processor is 64bit or 32bit...

If its 32bit you could try install Xenial
https://releases.ubuntu.com/16.04/

Also, maybe you should be installing the desktop image?

  my first Ubuntu install

Server image will not install a graphical user interface.

As for your problem:
The "no operating system found" is not an ubuntu message. If your machine has more then one hard drive I would check for wrong bios boot configurations, else, check this post: Setup Ubuntu Server 19.10 with MBR


Delete folders that don't have a character in their name

With bash's extended globbing (which should be enabled by default, in Ubuntu)

$ shopt extglob
extglob         on

it should be possible to use the glob pattern !(*\(*\)*)

e.g. given

$ tree
.
├── Folder 1 (2001)
├── Folder 2 (2008)
├── Folder 3
├── Folder 4 (1994)
├── Folder 5 (2005)
└── Folder 6

6 directories, 0 files

then

$ rm -ri !(*\(*\)*)
rm: remove directory 'Folder 3'? y
rm: remove directory 'Folder 6'? y

leaving

$ tree
.
├── Folder 1 (2001)
├── Folder 2 (2008)
├── Folder 4 (1994)
└── Folder 5 (2005)

4 directories, 0 files


Can you use the NVDA Voice Addons on Linux/Ubuntu?

Unfortunately, NVDA isn't listed in Wine AppDB. It means that untested on Wine yet.

But, you can try one of this for Linux.


Unable to install Ubuntu 11.10 - CD with downloaded ISO file doesn't work

You may have burned the .iso file to the CD without actually burning the disk image to the disk.  When you open the CD in a folder in Windows, it should look like the CD contains multiple folders. If it looks like the disk contains a single .iso file, you'll need to try again.

Ubuntu's community documentation has good instructions for burning an iso to a disk. Assuming you're burning the CD in Windows:

Install the open source Infra Recorder software
With a blank disk in the drive, open Infra Recorder and click the Burn Image button
Choose the Ubuntu .iso file that you downloaded and burn that image to the disk.


Is it possible to upgrade Ubuntu without affecting the windows partition in a dual boot laptop?

You can upgrade your Ubuntu using terminal and it will not affect your other partitions.
You can do that with:  sudo do-release-upgrade

See how to do that in detail here.

Even if you install the newer or other version using live disk it will not affect your Windows unless you erase the whole HDD or edit the partitioning of your HDD. See how to do that here.
You can skip the "Create Space on Your Hard Drive" part.


For the first look I would say you have bad/dead sectors on your flash drive. Can you install the system on another drive?


Wifi stops working after going to specifi websites

What fixed my issue here is setting the correct antenna on the network card using the following command

sudo tee /etc/modprobe.d/rtl8723be.conf <<< "options rtl8723be ant_sel=1"

and then reboot

Now I'm getting better signal and the mentioned issue is no more.


Black screen appears when trying to enter ubuntu - dual boot (windows10 - ubuntu 14.04)

Most blank screen on boot issues for me historically have been due to an issue with the nvidia driver or another proprietary driver.  Some programs can interact in odd ways that cause the error i.e. wine.  If you have nvidia-current installed you may try removing it to isolate the error.

Can you get to the Ubuntu login screen or does it go blank before?


Where are the log files for psql connection attempts?

psql doesn't write log files. The server end has logs, but the client only logs to stderr.

If the error message (which you didn't show us) isn't enough, you could use wireshark to see the exact conversation with the server. Usually you'd look at the server error log for details, though.

Sometimes PostgreSQL intentionally sends a less detailed message to the client than it records in the server log, because the server log contains information that an untrusted, unauthenticated client should not get.


SCP from ssh remote machine to my local ubuntu machine

On your home router, you need to set up port forwarding. Forward some port number (say 7022) to port 22 on your home PC 10.0.0.10.

Now, you need to find the IP address of your home router. Easiest way is to go to www.whatsmyip.org.

Presuming your remote location in Austin allows you to SCP out of the facility (you would have to speak to the network admins there) and assuming your SSH server is up and running on your home PC and configured to use port 22, you would do ;

scp -r Slice_z_density/ trina@<your router IP> -P 7022

assuming your router IP is 151.12.34.123

scp -r Slice_z_density/ trina@151.12.34.123 -P 7022

The port forwarding on your router will redirect your connection to your home PC.

I connect this way all the time from my office PC to my home PC, but I had to talk with the sys admin guys and get them to allow me to connect to a few ports on my home router (so they configured the office firewall accordingly). You will probably have to get them to allow port 7022 from your home network at their end.

Seeing as you can connect to your remote machine via ssh, then as suggested you should also be able to 'pull' the file from the remote machine, so you perform the scp operation from your own home machine;

scp username@stampede.tacc.utexas.edu:/file/to/copy  /location/to/save

eg

scp username@stampede.tacc.utexas.edu:/file/to/copy  /home/myname/Desktop/


Cannot log in to the MySQL server with error (HY000/2002) after upgrading to20.04

If phpMyAdmin is running on the same server as the database, you'll want to update your config.inc.php file, replacing localhost with 127.0.0.1. The result should look something like this:
$cfg['Servers'][$i]['host'] = '127.0.0.1';

By default, phpMyAdmin will try to connect to the mysql.socket connection when you use localhost. When you use 127.0.0.1 it will make a TCP connection, which should resolve the issue.


System using a lot of memory and I cant find why

The memory is there to be used. If the memory is not used by applications, it will be used by the system for caching, such as disc reads and writes. Unused memory is wasted memory.

As long as the swap is unused, your memory is under no stress at all.


How do I install IBM Lotus Symphony after receiving the error in the description?

You need to download the Ubuntu version, "symphony-fp2_3.0.1_i386.deb"

You may find it here:

http://www14.software.ibm.com/webapp/download/preconfig.jsp?id=2010-10-19+16%3A31%3A30.217086R&S_TACT=&S_CMP=

Then you will also need to install "libnotify1", which you can find here:

http://packages.ubuntu.com/lucid/i386/libnotify1/download

Good luck!


locate cmd how to ignore the windows directory

edit /etc/updatedb.conf

sudo nano /etc/updatedb.conf

find the line

  PRUNEPATHS="/tmp /var/spool /media"

add in host

PRUNEPATHS="/tmp /var/spool /media /host"

save your changes, then run

sudo updatedb


How to install custom shell theme using gnome-tweak-tool

The Numix theme is my personal favourite. To install it -

sudo add-apt-repository ppa:numix/ppa

sudo apt-get update

sudo apt-get install numix-gtk-theme

Otherwise, download the theme file and extract the theme file to /usr/share/themes.

To set the theme -

gsettings set org.gnome.desktop.interface gtk-theme "Numix"

gsettings set org.gnome.desktop.wm.preferences theme "Numix"

where Numix can be replaced with the name of the theme.


Question about dual-booting 13.04 and Windows 8/8.1

Although the symptoms are slightly different, the solution I offered to this question is likely to work for you.


Ubuntu 15.04 UEFI installation issue on Dell Vostro 3460

I can't speak to Rufus. My personal preference is to use dd to copy an image to a USB flash drive, since this results in a medium that usually boots fine in both BIOS/CSM/legacy mode and in EFI/UEFI mode. That said, some computers choke on such media, which employ something of a Frankenstein's Monster approach to their layout. In other words, there's no "one-size-fits-all" approach.

If the system is installed but unbootable, you might try a USB flash drive or CD-R version of my rEFInd boot manager. If you can boot it, rEFInd should detect your kernel and enable you to boot Ubuntu, with one caveat: Because you used a separate /boot partition, you'll need to highlight your kernel in rEFInd, hit F2 or Insert twice, and add ro root={whatever} to your kernel options, where {whatever} is your root (/) filesystem's device identifier. For instance, it might be ro root=/dev/mapper/ubuntu-root or ro root=/dev/sda4.

If you can boot to Ubuntu in this way, you should be able to re-install GRUB or install rEFInd to get your system booting normally. Read up on efibootmgr and EFI boot loaders for Linux to learn more.

There are a number of issues that can cause the type of problem you're having. Often it boils down to buggy firmware. There are workarounds for such problems, but if you've got a buggy firmware, it's better to return the defective computer and tell the manufacturer why you did so; anything less is an invitation to the manufacturer to keep shoveling junk down your throat.

One final point: If you can boot more easily in BIOS/CSM/legacy mode than in EFI/UEFI mode, by all means use the former. There are advantages to EFI/UEFI-mode booting, but they're fairly modest, so you shouldn't feel compelled to use that boot mode if BIOS/CSM/legacy is easier for you.


how can I reinstall ubuntu while using it by formating whole hard disk?

Follow this guide.

When you will come to Installation Type step, simply select Erase disk and reinstall Ubuntu.


The 8161 cards have been a source of many problems exactly like yours. You can find a list of posts related to the 8161 cards here. The problem seems to be related to the driver supplied in the current kernel versions; rolling back the driver seems to work for most cases. One suggested fix that apparently worked was to issue the following Terminal commands:

apt-cache search linux-backports-modules
sudo apt-get install linux-backports-modules-cw-3.6-quantal-generic
sudo modprobe alx


The info you are looking for is located at http://synergy-project.org/wiki/Text_Config

Synergy considers your Laptop1 screen and the externally connected monitor as 1 screen.

Using monitors with different sizes/resolutions you have to do a little bit of calculating to get a smooth transition.
 Example:
  Laptop1 = 1024 x  768
  Laptop2 =  800 x  600
  Monitor = 1920 x 1080
  Total vertical resolution of Laptop1 = 1848px
  600px (Laptop2) = 32% of 1848px

The minimal config file for this example would be:

section: screens
    Laptop1:
    Laptop2:
end

section links:
    Laptop1:
        right(68,100) = Laptop2
    Laptop2:
        left          = Laptop1(68,100)
end

This assumes the bottom of Laptop1 and Laptop2 are aligned. If e.g. Laptop2 is placed somewhat higher than Laptop1 you can adjust the percentages to e.g. (60,92) until you reach the desired result.
This also assumes Laptop1 and Laptop2 are the actual hostnames. If this isn't the case you can either replace in the above example Laptop1 and Laptop2 with the hostnames, or add this section to the config file and adjust the ip/hostname accordingly:

section: aliases
    Laptop1:
        ip/hostname
    Laptop2:
        ip/hostname
end


Unable to get Ubuntu working in Acer Aspire E5-573

Firstly have to know , your laptop maybe support UEFI or not. I think
it's support UEFI . so you have to make it EFI support Ubuntu64 bit iso.
Download Rufus - iso maker.You need Windows PC.  select " GPT for UEFI" and format "fat32 default" and Rufus create EFI supported iso for your machine.
now boot and install and lastly go to BIOS setting and name Ubuntu for
boot softly . Thats all . Ubuntu works fine .


can't login when my password is up down left right

If you hit Ctrl + Alt + F1 you should enter a terminal. See if you can change your password there.
If you hit Ctrl + Alt + F7, you should go back to the GUI.


QEMU system freeze / Unsigned kernel 5.3.0-1004-kvm

Please take a look at this bug report.  It sounds like you're having a similar issue that several other people (including myself) are having since upgrading to 19.10.

They're trying to get to the bottom of the problem, but they need people to post log files, etc.

In addition, the kernel modules should be installed automatically as dependencies for qemu-kvm.

This will install everything you need:

sudo apt install -y qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils virt-manager

So I don't think the problem is caused by not having the correct kernel modules / kernel installed.


The answer from Eliah Kagan was great, But I think, I can answer now from my experience in less technical words.

There are two ways (as revealed to me) to test that keyboard shortcut:

Open a terminal and type unity or unity --replace (both are same) and hit Enter

If you want a crash like look of Unity

While you are on the terminal, Press Ctrl + C, the unity will be stopped immediately.
Then try your global shortcut.

If you want a decent look of Unity (Freeze)

While you are on the terminal, Press Ctrl + Z (as suggested by @Eliah Kagan), the unity will be suspended immediately. Everything will be freezed, except the cursor.
Then try your global shortcut.

keyboard shortcut to kill X:

That particular keyboard shortcut was : Alt + PrtSc + K . You will need this, if you wanted to try.

Thanks to @Mahesh, for revealing that shortcut


Is it possible to add trigger function before system goes into suspend?

Hooking up to something?

The challenge is that whatever hook might exist to either blank screen or going into suspend, the related command or script you want to run before would always run too late, since it would be called after the possible signal.

The solution

As always, that does not mean we ran out of options. If we disable the default blank screen/suspend -options, and replace it with our own background script, we can include the command you want to run before change of state in the procedure.

How it works

In the script below, you can set the idle time after which the screen should blank and when your system should go into suspend. You can also set the command to run before suspend.

The script

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

# set times for blank screen and suspend (in that order)
times = [300, 1200]
pre_command = "touch banana.txt"

# don't change anything below, *unless* changes for other distros
last_t = times[-1]
commands = ["xset dpms force off", "sudo xfce4-session-logout --suspend"]
restore = "xset dpms force on"

def gettime():
    return int(int(subprocess.check_output(
        "xprintidle"
        ).decode("utf-8").strip())/1000)

def run_command(cmd):
    # made it like this, so user can conveniently set commands
    subprocess.call(["/bin/bash", "-c", cmd])

def change(set_t, t1, t2):
    if all([t1 <= set_t, t2 > set_t]):
        if set_t == last_t:
            run_command(pre_command)
        run_command(commands[times.index(set_t)])
    elif all([t2 < set_t, t1 >= set_t]):
        run_command(restore)
        return True

t1 = gettime()

while True:
    time.sleep(2)
    t2 = gettime()
    for t in times:
        if change(t, t1, t2):
            break
    t1 = t2

How to set up

The script needs xprintidle:

sudo apt-get xprintidle

Copy the script above into an empty file, save it as my_suspend.py
Now we need to make sure the script can bring the computer into suspend: add a line to the sudoers file:

Run from a terminal:

sudo visudo

Add the line:

ALL All=NOPASSWD: /usr/bin/xfce4-session-logout*

to the file.
In the head section of the script, set the time after which you want to blank the screen (in seconds), the time you want the computer to switch to suspend and the command you want to run before suspend:

# set times for blank screen and suspend (in that order)
times = [300, 1200]
pre_command = "touch banana.txt"

In the example above, the screen blanks after 5 minutes, the system suspends after 20 minutes. Obviously, you want to replace the pre_command

N.B. mind the quotes around the command! If your command also includes mixed quotes, please mention.
Test- run the script from a terminal with the command:

python3 /path/to/my_suspend.py

If all works fine, add the script to Startup Applications (Session & Startup > Application Autostart (tab) > Add)

Note

The script was written for Xubuntu, but only in the line:

commands = ["xset dpms force off", "sudo xfce4-session-logout --suspend"]

The command:

"sudo xfce4-session-logout --suspend"

is Xubuntu- specific. The script therefore can easily be adapted to other distros.


Your drive is formatted using an MBR (ms-dos) partition table which complicates things; it would be easier with GPT, which is why it's now the Windows and Ubuntu default partition table. Let's forge ahead.

Run lsb_release -a to see what version of Ubuntu you have; we'll need to know that later.
Backup your data, then verify the backup matches the source data.
Backup again to a different destination (different drive or cloud), then verify its data matches the source data.
Boot from a LiveUSB with Ubuntu on it; here's how to make it. Because you did not boot from your internal drive, you can now change its partitioniing.
Launch gparted.
Make your root partition /dev/sda4 larger by giving it the 49 GB unused space.
Commit the change by clicking on the checkmark above the map of the drive.
Exit from gparted, relaunch gparted, and confirm /dev/sda4 is 49 GB larger now.
Delete the /dev/sda5 swap partition. Commit the change by clicking on the checkmark above the map of the drive.
Choose /dev/sda7 and enlarge it to the space available we just won by deleting the swap partition. Commit the change by clicking on the checkmark above the map of the drive.
Exit from gparted then relaunch it. Is /dev/sda7 19GB now? Good. If not, make a screenshot, exit from gparted, and come back here for help. (Unusual, but happens.)
DO YOU USE HIBERNATION? Then you MUST have a swap partition = your RAM size.
DO YOU USE UBUNTU 17.10 OR HIGHER? Then you can use a Swap File, which is now just as fast and far more flexible. IF you do NOT use Hibernation AND you use Ubuntu 17.10 or higher, we will skip the next step (only) which makes a new swap partition.
Make a swap partition equal to the size of your memory with gparted. Click the checkmark to commit the change, exit from gparted, then restart it. Does it show the swap partition? Good, we move on.
Give all remaining space to your data partition, /dev/sda6, by making it larger. Commit the change, exit from gparted, relaunch gparted, and confirm /dev/sda6 took all the unallocated space.
Shut down the LiveUSB session of Ubuntu and reboot into Ubuntu from your internal drive.

Here's an illustration of what gparted should look like in various stages of the process. Changed sizes are approximate.

IF you made a swap partition, you're finished.
If you did not make a swap partition, make a swap file and enable it.

At a terminal, run sudo fallocate -h to show fallocate is installed. Do you have fallocate on your system? If not, run sudo apt update && sudo apt upgrade && sudo apt install fallocate .
Run sudo fallocate -l 4G /media/WHATEVER/swapfile && sudo chmod 600 /media/WHATEVER/swapfile && ls -lh /media/WHATEVER/swapfile where /media/WHATEVER is the mount point used for /dev/sda6, to make your swap file in that data partition, sets it for the use of root only, and shows you it was made. This keeps swap out of your root directory so it has more space.
Run sudo mkswap /media/WHATEVER/swapfile && sudo swapon /media/WHATEVER/swapfile to enable the swap file.
Run sudo nano /etc/fstab and paste into that file on its own line  /media/WHATEVER/swapfile swap swap defaults 0 01 then tap Esc twice, do Ctrl-X to save and exit from nano.
Do sudo swapon --show to confirm swap is working, reboot back into Ubuntu on your internal drive, and do sudo swapon --show to confirm the changes made to /etc/fstab were saved. Now, the swap file will work for you thereafter.

I do this once, on every desktop Linux PC I have and maintain, (adjusting for GPT which is easier to work with). Once, it's done, and I never have to worry about it again.


DejaVu font rendered bad on Ubuntu 16.04?

I've recently upgraded my Debian and this rendering difference have been driving me insane ever since.
After several hours of useless googling and tinkering, I was finally able to get previous behaviour.

You need to:

go to your DE (I use KDE4/TDE) font settings and disable any alterations from system defaults;
execute dpkg-reconfigure fontconfig-config, the menu will appear, advising you to not use autohinter with DejaVu family. Select "Autohinter".
in the following menu disable subpixel rendering.

That's it.

You don't need to reboot: from now on, any launched application will render font in an old, "vertically condensed" style.


Skype in Ubuntu creates 4 processes and comsumes a lot of RAM

It is normal. The Skype went through many changes in last years. The one most noticeable is that the developers disabled the old versions of Skype (including Smart TVs) and left only the most recent versions. There is no low resources version of Skype, when you are not counting the one for Android and other phone OS-es.

Below is the list of processes, when the Skype is idle on your computer.


Ubuntu 16.10 Not able to delete files in mounted partition

Have you tried running nautilus as root and deleting them?
Run the following command in the terminal (use Ctrl+Shift+T to open it):

sudo nautilus

Enter your password and attempt to delete them.

For future reference, always be wary when running nautilus as root. Things could be broken very easily.


How to delete windows partition from ubuntu

You should be able to do it from gparted. You can also fire up an Ubuntu start up CD and use gparted from there.


How to display a "What's new" dialog on every new version of my app

Pseudo-code:

version = 1

if settings.read("lastVersion", default=0) < version:
    showDialog()
    settings.save("lastVersion")

Then you just update the version variable for each new version, and done. In text: simply use a setting to save the last version, and if the program version is newer, show the dialog and update the setting.


Here's how I did it:

Open /etc/default/grub for editing, e. g.:

sudo vim /etc/default/grub

Change these settings:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset video=uvesafb:mode_option=1024x768-24,mtrr=3,scroll=ywrap"
GRUB_GFXMODE=640x480

and add this setting:

GRUB_GFXPAYLOAD_LINUX=640x480

Update the Grub configuration (sudo update-grub) and reboot.


how to check disk partition in Ubuntu 12.10 and do partition for other OS

I think that what you want is GParted. Which is the recommended tool for managing partitions. To install it just look at your Software Center for gparted, or type in a terminal sudo apt-get install gparted. It shows visually the current status of your disks partitions.


How to create a sliding widget (GTK+, Quickly)

I have achieved a fade-out effect using pure GTK and CSS.

It is only working in GTK 3.6 and I am not sure if a slide in / out effect would be possible, however, if you want, you can look at the source at launchpad.net/uberwriter

It works through a state-change and then GTK Transitions... Maybe with height // width that would be possible, too.

EDIT

Because people obviously downvote me, here is another, more detailed explanation:

This is the CSS I have used:

GtkLabel:insensitive {
    color: rgba(255,255,255,0);
    transition: 500ms ease-in-out;
}

If you use this as CSS (I hope I am allowed to reference an explanation from myself, how to that: http://wolfvollprecht.de/blog/gtk-python-and-css-are-an-awesome-combo/) then you can use Gtk.StateFlags to fade out the Label.

e.g.:

label.set_state_flags(Gtk.StateFlags.INSENSITIVE, True)

Then you get a transition to zero opacity.

However, as I have noticed, there are not many options to influence placement / width with CSS, so I guess it's limited to colors / opacity etc.

Enjoy.

PS: Note that this only works in Gtk 3.6, since Ubuntu 12.10


Network Manager has a nice CLI tool, nmcli, that does not require root privilege. You can reset wifi with

nmcli radio wifi off && nmcli radio wifi on


Installing from Tar.gz Permission Denied

Better to go to igniterealtime.org and download the .deb package for Ubuntu - you'll have much less trouble during installation.