How to rotate a specific window in 90ْ ?

The Freewins plugin for compiz is supposed to be able to do that.

The support status of the plugin is a bit unclear. It can be installed by typing apt-get install compiz-plugins, but for a long time I could not figure out how to get it to do anything other than cause selected windows to "permanently" lose focus until compiz is restarted.

An answer from three years ago says it is no longer supported and recommends not using it as it could cause system freezes. It recommends an alternative which supports some of the features of Freewins, but unfortunately not window rotation.

In my experience compiz freezes can happen even without installing this plugin, but when they do happen the system can be unfrozen by ssh to the machine and running DISPLAY=:0 compiz --replace. I do not know if the freezes that Freewins allegedly cause are any harder to fix than those which can happen in a standard compiz install. So far I haven't seen it cause a problem that could not be fixed by restarting compiz.

If you want to give that plugin a try, I recommend your first learn how to restart compiz remotely, in case you should need to do so. Secondly I recommend you disable the two options Prevent Input and Immediate Moves, as those seem to be causing the most trouble.

Additionally, there is a setting deciding which windows are allowed to be rotated. I haven't figured out exactly how it works, but it appears that "old-skool" applications such as xterm cannot be rotated.

ctrlshifte and ctrlshiftq can be used to rotate the window in focus. ctrlshiftr will return to normal orientation (though sometimes I had to press it a few times before it worked).

I couldn't get rotation by using the mouse to work at all. And a rotated window could not be focused using the mouse, but it could be selected using alttab.


After deleting a shared folder, Ubuntu doesn't see freed disk space

Make sure that there are no processes holding files open on the shared drive. The system can hold files open in memory even if you have "removed" them. Run the following command to determine:

sudo lsof | grep <path-to-shared-folder>

i.e., if your shared folder was /var/nfs ,

sudo lsof | grep /var/nfs

After determining if any processes are holding open that shared folder, attempt to end those processes gracefully, then kill them if necessary.

Additionally, make sure that whatever network sharing server you were using has been stopped. i.e., if using samba :

stop smbd
status smbd


Graphic gibberish in a S3 Super Savage/IX

Ubuntu 12.04 will not run on this machine: What are the system requirements for each flavour of Ubuntu Desktop. Try Lubuntu. Even then, you should consider adding memory.


/boot contains (among other things) the linux kernels you have installed. These come with updates every now and then.

Open a Terminal and type
dpkg --list | grep linux-image and then hit ENTER

then compare the output from that with
uname -r
... where the output tells which of the above you have in use.

All the others can be removed, freeing up space - unless you have a reason to keep them. That is accomplished by replacing "linux-image-x.x.x.x-generic" here:

sudo apt-get purge linux-image-x.x.x.x-generic

for each one that you wish to remove.

Then AFTER THE LAST - you MUST do this to clean up/recreate the boot menu accordingly

sudo update-initramfs -u                          # remakes boot ramdisk
sudo update-grub2                                 # re-creates boot menu

edit
This...

find /boot -type f -printf "%-16s %p\n" | sort -nr | head -n 20

... will show you the 20 largest files in /boot


Alternative to Nautilus archiver handler

You may also try using B1 Free Archiver. I am not an IT-professional or something but B1 is 100% free,  very easy-to-use and what I love most of all - its stylish and polished interface. Take a look at b1.org, you might like it :)


Is Ubuntu One ignoring particular directory names?

Moving all the files out of ~/Ubuntu One and then back again helped - the files that were not uploaded after a disconnect/reconnect were now uploaded.

As for why it didn't work before, I can only speculate - some of the files were previously owned by root and were perhaps skipped by the ubuntu-one daemon because of that.
The directory monitoring perhaps only notices file delete/create but not change of ownership.


This sounds like a graphics driver issue to me.

If you can log in, open terminal.

sudo apt-add-repository ppa:xorg-edgers/ppa
sudo apt-add-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
sudo apt-get install nvidia-current nvidia-settings

If you need to, start in safe mode, then follow the above instructions.

You can also download the correct driver here:

http://www.geforce.com/drivers

Here is the direct link for the driver you need:

http://www.geforce.com/drivers/results/79413

You can also try 'additional drivers' from within ubuntu.


How can I find out my current mail server for Ubuntu 10.04

You can see which packages are installed on your system using the dpkg -l command. If you combine it with the grep tool to search for specific words (e.g. mail) you can find out which packages with mail in their name are installed. Look for lines that start with i (for "installed"). For example:

$ dpkg -l |grep mail
ii  bsd-mailx       8.1.2-0.20131005cvs-1       amd64        simple mail user agent
ii  libmail-sml     0.79.16-1                   all          Send email from a perl script
ii  libphp-phi      5.1-1                       all          full featured email transfer class for PHP
ii  lockfile-g      0.1.17                      amd64        Programs for locking and unlocking files and mailboxes
ii  mime-supp       3.54ubuntu1                 all          MIME files 'mime.types' & 'mailcap', and support programs
ii  postfix         2.11.0-1                    amd64        High-performance mail transport agent

shows that I have the PostFix mail server installed. Other options are, for example, Exim and SendMail.


Microsoft Explorer Touch Mouse compatibility

I'm using one so I can confirm without any doubt that it works.

Note that there are no proprietary drivers for the mouse, so the special buttons (top of scroll and bottom of scroll) cannot as of now be mapped.


Accent characters on ubuntu 18.04 works in some softwares but not in others

I've figured out that some apps like the ones I've mentioned in my question needs ibus to deal properly with the accents so I will post what I did to solve my problem just as a help if someone else gets in the same situation.

I've just put this in my i3 config file:

exec --no-startup-id ibus-daemon

Additionally, if you are from Brasil assure you have this in your i3 config file too:

exec "setxkbmap br"

... and assure your /etc/default/keyboard file has the proper keyboard configurations. Mine is like this:

# KEYBOARD CONFIGURATION FILE

# Consult the keyboard(5) manual page.

XKBMODEL="pc105"
XKBLAYOUT="br"
XKBVARIANT="abnt2"
XKBOPTIONS=""

BACKSPACE="guess"

That's it. Everything is working the way it should now.


Creating an Ubuntu boot disk with specific kernel

An ISO image for NUC7CJYH is available from this page: https://www.ubuntu.com/download/iot/intel-nuc-desktop.

It is a custom 16.04 ISO, with some installation steps.


Does Ligntdm require specific configuration or clean-up of SDDM files after install on Lubutu 20.04?

I've given up on light versions of Linux as this is the second version that led to a technical impasse after attempting to do an upgrade or install.  I've upgraded to Ubuntu Mate with minimal installation option. Lightdm installed OK without the same issues.  Now I need to work out what services and utilities I can halt in order to minimise resource contention with a 3D render program using multiple cores/threads.  Welcome comments from anyone with similar challenge.
Thank you for the interest and help.


Virtualbox fullscreen mode stops working after update

I had this same problem.  Here are my notes on how I resolved it. It comes from the vbox manual chapter 4 paragraph 4.2.2.1

  Be sure to install DKMS before installing the Linux Guest Additions.
  If DKMS is not available or not installed, the guest kernel modules
  will need to be recreated manually whenever the guest kernel is
  updated using the command /etc/init.d/vboxadd setup as root.

sudo apt-get install virtualbox-guest-dkms

Answer Y to question.


dynamic windows partition install ubuntu dual-os

Dynamic partitions is a windows propriety format.  You can't install Ubuntu on a dynamic partition.  You will have to convert your drive to a  basic disk for your Ubuntu installation.

The easiest way I can recommend is to backup the drive, then re-partition is as basic.

There are tools which might provide converting the from dynamic to basic without formating (discussed here)


How can I disconnect clients from a Vino VNC server at will?

First of all, you should enable the notification area icon using vino-preferences (Desktop Sharing Preferences). Then, once the icon appears, you can right-click on it and select "Disconnect client-name".

That's all :-)


How can I join an ubuntu 12.10 client to join a windows domain (server 2008)

I don't particularly care for that guide they give, you should not need Samba just to log in. Here is a somewhat better guide in my opinion.

Also, do note that when you log in, you will now have to log in as domain\username  not just the username and you won't get a new log in screen just so you know.  The log in screen will look exactly the same, this only changes the back end stuff that you don't see.


Lists... 0% error when installing netcat

The command you typed to install netcat is wrong. To install netcat type the following:

sudo apt-get update && sudo apt-get install netcat -y

Also, since you are logged in the terminal as root, you do not need sudo. Just typing the following would do the trick:

apt-get update && apt-get install netcat -y


You can use the crontab command to install a new crontab file for a specified user in the correct location with the correct ownership and permissions
Ex. assuming your desired new crontab file for user postgres is named crontab.postgres then
sudo crontab -u postgres path/to/crontab.postgres


how to remove Xpad window decoration in Ubuntu 12.04

On any note that you have created, right-click ---> View ---> un-tick Window Decorations.


Screen Brightness Stuck on high on an HP dv7t laptop

I own an Acer Aspire 5755g and I had the same problem with backlight of my screen. My PC has Nvidia GT540M. I read previous answers and found out that on my pc this advice works but I need to run some different command instead of

echo n > /sys/class/backlight/acpi_video0/brightness

I have to change it to

echo 250 > /sys/class/backlight/intel_backlight/brightness

for example, where 250 is my desired backlight value.

I think it is because of hybrid graphics in notebooks like mine, so backlight is controlled through intel builtin controller.

In such case do cat /sys/class/backlight/intel_backlight/brightness and you'll see your current value of brightness. In my case it was 976. You can also look for a max_brightness file in the same directory to get an idea of the scale of values. You should be able to adjust the backlight by changing this number. Be aware that if you set it to 0 your backlight will be turned off and you won't be able to see what you're typing! If you try to set value more than maximum it just returns an error and nothing changes.

To set backlight value at startup you may be able to add a line like this

echo 250 > /sys/class/backlight/intel_backlight/brightness

to your /etc/rc.local file before the line saying exit 0.

If that does not work for you, you can try using sysfsutils instead. You may need to install the package:

sudo apt install sysfsutils

and then modify the file /etc/sysfs.conf to add a line like this:

class/backlight/intel_backlight/brightness = 250

Also we can enable hotkeys to change backlight manually in a comfortable way. I made my hotkeys scripts of scripts for Asus laptops placed in /etc/acpi directory. You need 2 scripts - one to increase brightness, another for decreasing, both placed in /etc/acpi directory. Also we need to set these scripts to trigger on hotkeys events, which can be done by changing files in the /etc/acpi/events directory. In my case their names and contents are:

/etc/acpi/events/asus-brightness-down

event=video DD03 00000087 00000000
action=/etc/acpi/asus-brn-down.sh

/etc/acpi/events/asus-brightness-up

event=video DD03 00000086 00000000
action=/etc/acpi/asus-brn-up.sh

Where /etc/acpi/asus-brn-down.sh and asus-brn-up.sh are names of our scripts to decrease and increase brightness.

Contents of my /etc/acpi/asus-brn-down.sh:

#!/bin/sh
# this is for acer aspire 5755G :)
KEYS_DIR=/sys/class/backlight/intel_backlight

test -d $KEYS_DIR || exit 0

MIN=1
# i set MIN to 1 to almost turn off backlight, but you can set a better one value, 50 for examlple
MAX=$(cat $KEYS_DIR/max_brightness)
VAL=$(cat $KEYS_DIR/brightness)

VAL=$((VAL-25))

if [ "$VAL" -lt $MIN ]; then
VAL=$MIN
fi

echo $VAL > $KEYS_DIR/brightness

And contents of my /etc/acpi/asus-brn-up.sh:

#!/bin/sh
# this is for acer aspire 5755G :)
KEYS_DIR=/sys/class/backlight/intel_backlight
test -d $KEYS_DIR || exit 0
MIN=1
MAX=$(cat $KEYS_DIR/max_brightness)
VAL=$(cat $KEYS_DIR/brightness)
# I decided to increase brightness by 25 per keypress but you can change it to 50 or even 1 if you like
    VAL=$((VAL+25))

if [ "$VAL" -gt $MAX ]; then
    VAL=$MAX
fi

echo $VAL > $KEYS_DIR/brightness

UPDATE: Same problem solved in Ubuntu 13.10 (additional solution found in this Ubuntu Forums post)

We need to create a file /usr/share/X11/xorg.conf.d/20-intel.conf
with this content:

Section "Device"
       Identifier  "card0"
       Driver      "intel"
       Option      "Backlight"  "intel_backlight"
       BusID       "PCI:0:2:0"
EndSection

Then reboot. Thats all ;)


mysql-workbench: Error log Permission denied

This problem happens because .mysql was created by root user using sudo and the permissions are to only read for others that are not the owner..

To simply fix this issue, change the owner of the folder to the desired user using this command in terminal:

sudo chown -R <user>:<group> .mysql

what this command does? i will explain each one of them

sudo stands for "switch user and do" which is actually changing the user to root internally for this operation

chown stands for "change owner" and it does what actually it means, of course for this command to work properly on a folder. the owner of the folder has to run it, in this case was root so sudo was necessary

-R this parameter is actually from chown and it applies the same command recursively to all sub folders/files

<user>:<group> this is just the desired owner and group we would like to assign to folder/file and its a mandatory parameter from chown. Also you have to enter the source of the folder/file next to this parameter

you can check more options for chown using man chown


Winecfg: error reading registry key for installroot

That's normal output the first time you run winecfg: see this thread.


I think the application you're looking for is Clonezilla. It can clone partitions or entire disks preserving the boot options.


First, here are Shotwell's help pages for Publishing to the web , and for Exporting photos. You would be publishing images (and uploading over the Internet) if your target is a service like Facebook, or Picasa, or Flickr, something like that. You would be exporting images if your target is another folder or local drive or a USB key, for example. Since I'm unclear on exactly what you need I'll explain several options.

Exporting
If you just need to choose a set of images already in Shotwell, and you can bring them to class on a memory card or burned CD, or even use a network drive at the school, then use the Export function. Plus, if you are shooting RAW or some other format, and need to convert to JPEG before uploading, you are going to use the Export function first, even if you are uploading to a web service later. Exporting can both move files and convert image formats, so you may need both functionalities.

Open Shotwell.
Select one or more images.
Shift + Ctrl + E to bring up the Export dialogue.
Choose your export options, file format, size, etc.
Now just pick a target and your photos are exported, done.

Publishing
Shotwell can currently Publish to the following online services: Facebook, Flickr, Picasa Web Albums, Piwigo, Tumblr, Yandex.Fotki, and YouTube. If your target isn't one of these your only option is to Export, explained above.  If you are using one of these services follow the steps below.

Open Shotwell.
Select one or more images.
Shift + Ctrl + P (or click the
Publish button on the bottom toolbar) to bring up the Publish
dialogue.
From there, the steps vary slightly depending on the service. Follow
the prompts to log-in with the target service, hopefully it is easy
from that point on.

If you run in to problems just edit your question with which step you are stuck at, so we can edit the answer and make it better.

Other options
Also, if you want a really simple option you can just put the pictures for your homework assignment in your Ubuntu One folder at which point they are automatically uploaded to your Ubuntu One cloud folder (assuming you have configured the service). Dropbox is another good choice, with the added benefit of having a public photo gallery that you could use to show off the photos.


All you need to do is reading the message in the dialog ;)

Start the installer with sudo privileges:

sudo ~/Downloads/bitnami-wordpress-4.3.1-0-module-linux-installer.run


execute:

(initramfs) fsck /dev/mapper/ubuntu--vg-root

select 'y' to all 'Fix?' prompts

Note, your root partition maybe something other than /dev/mapper/ubuntu--vg-root - modify this part appropriate to the location of your boot partition


Linked Files in LD_LIBRARY_PATH statement not working

You are not giving the right path. You are giving :

/opt/Qt/5.4/gcc_64/lib

but there is no /opt/Qt/5.4 directory from what you have mentioned earlier, the directory name is /opt/Qt/5

So giving the correct path should do :

LD_LIBRARY_PATH=/opt/Qt/5/gcc_64/lib:$LD_LIBRARY_PATH


Is Lubuntu the only derivative with its own software center?

See this: Can I get the Ubuntu Software center in KDE?. It mentions Apper and Muon for Kubuntu.
AFAIK, Xubuntu uses the same software center as Ubuntu.
My feeling is that the last part of your question is off-topic but see this: https://lists.ubuntu.com/archives/lubuntu-users/2012-October/002871.html. I don't even want to summarize it.
Further development of the Lubuntu Software Center requires helping hands!

BTW, The Synaptic Package Manager is included by default with Lubuntu and may be even less taxing on your system even though it packs in a vast amount of functionality (without pretty pictures).


Can not switch language with hotkey keyboard

check the settings permissions. I found that ~/.config/ibus/bus owned by root and user can't access it. There should be IBUS_DEMON_PID maintained by daemon. So change the owner and restart PC to populate the relationship.


How to install software's by default in new volume Virtual Box Running on Mac

That is not how to increase the size of the disk your virtual machine is using as root.

So while you could use the second disk as storage, you will still not have sufficient space on your root partition.

What you need to do is make a new, larger disk, how much space do you need 4 Gb ?

So make a new 12 Gb (or larger) disk.

Add this new disk to your virtual machine.

Boot the virtual machine with a live CD, ubuntu or gparted.

Use gparted to first copy the ubuntu partition from the old 8 Gb disk to the 12 gb disk. Then enlarge the 8 gb partition to 12 Gb.

Shut down the VM, remove the 8 Gb disk, boot from the 12 Gb disk.

See also

https://forums.virtualbox.org/viewtopic.php?t=10348

http://www.gparted.org/display-doc.php?name=help-manual&lang=C


How to add multiple ips to ubuntu 12.04 server?

You can do it by editing /etc/network/interfaces

Add a second block, for e.g

auto eth0:1
iface eth0:1 inet static
address 192.168.0.2
gateway 192.168.0.254
netmask 255.255.255.0

The key is the :1, you can do this for additional IPs on eth0, eth0:2, eth0:3 etc

sudo service network-manager restart should initialise them all, or just reboot for a proper test.

Another method can be done by running the ip command:

ip address add 192.168.99.37/24 dev eth0

That simply adds another IP to that NIC. run ip addr to see the additional IPs

Info from here

EDIT:

I was testing this out, only ip addr worked OK.
If you're in Ubuntu 15 you could look at nmtui command which does all which the desktop "Edit connections" does.
Set your IP to static then add the additional ones.


The kernel itself has certain key combinations that should be able to get you out of a frozen pickle like: ALT GR + PRT SC + K to force a log out, or ALT GR + PRT SC + O to force a safe shutdown...


How can I open multiple equal documents in a neat way with cmd using evince?

If you want to open multiple documents of same type, you just have to match the part that is similar in the files you want to open.

E.g. if you want to open all pdf files in a folder, you would run

evince *.pdf

if you want to open all pdf files beginning with 2 you would run

evince 2*.pdf

If, what you meant is opening 4 times the same file, you could run

for i in $(seq 4); do  evince file.ext & done

Here you can find some more examples on pattern matching.


HP Pinter driver (HPLIP) installations methods

I can tell you from my experience you can just install it from the Software Centre (look for hplip package) without so many annoying workarounds


Found it:
/usr/share/icons/Yaru/48x48/apps
file is named gedit.png
All other applications also seem to have an icon there. Found out that the default dark theme for Ubuntu 20.04 is named Yaru. That made the search a lot easier.


You have a full root partition /dev/sda6 (Unavailable 0, Used% 100%).

Try free some space

Reboot to recovery mode, select clean from the menu.
Or quick try delete packages archive, sudo rm /var/cache/apt/archives/*.deb, check df again.
If still didn't get free space, look for large files using find command. Example:

sudo find / -size "+200M"

"+200M" means larger than 200 MiB

And delete what seems not important or could be restored later.

Reboot

Note: about the root partition size, based on personal experience.

14GB seems small but it is okey for someone using machine only for Internet communications and Office things. Going beyond that probably you going to need more. My usual minimum is 20~25GB. If I'm expecting to install an engineering (1~12GB at least for electronics) or game software which nowadays raised the bar (some even passed 25GB), I go higher 30~65GB (40~10% of HDD capacity).
Advise, don't ignore low space warning message. Most applications are not robust enough to deal "no space left" then you may face side-effect issues that are sometimes hard to troubleshoot, like corrupted file, incomplete installation,... Which may appear to you just an app is unable to load, login loop or weird behavior because underlying service couldn't start...


Nvidia drivers apparently broke Xorg configuration

Install the latest stable NVIDIA drivers 352 which support GEFORCE 940M.

Highlight the Ubuntu entry in the GRUB boot menu and press the E key.
Add nouveau.modeset=0 to the end of the linux line - press F10 to boot.

On login screen press Ctrl+Alt+F1 ... enter  user name and password ...

Execute these commands :

sudo apt-get update
sudo apt-get install nvidia-352 nvidia -prime
sudo reboot

Generally you should use the drivers from the official Ubuntu repositories.
In case the drivers don't work as expected ... install the NVIDIA drivers 358.

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-358 nvidia-prime
sudo reboot


Is it safe to revoke group other access to every directory in a file system?

Repeat after me: Running ANY permission command on / without knowing exactly what you're doing is a great way to break your system. Even if you know what you're doing, it's still probably the wrong thing to do.

In your case, the command won't work because it's the wrong one to start. Secondly, groups are a very valid Linux construct of users, and blocking off groups from accessing files is a really really bad idea.

If I'm understanding your case properly, you want to block users from resources that they aren't authorized to read. Fortunately for you, there are a few ways to do this, each with tradeoffs.

Option 1: No Shell At All (Best way)

You're using SSH to allow users to tunnel into a secure server, right? Why do users even need a shell in this case? Just block their access to the shell, and only let them tunnel!

To do this, simply create a new group called noaccess or similar. Then, copy and paste the below into your /etc/ssh/sshd_config file:

Match Group noaccess
    AllowTcpForwarding yes
    X11Forwarding no

If you want to be even more secure by restricting where they can tunnel, you can add the parameter PermitOpen to the SSH config. For example, if you want to only allow users to forward to port 1337 on the current server, you would add PermitOpen localhost:1337 to your config file, right under the AllowTcpForwarding directive, like so:

Match Group noaccess
    AllowTcpForwarding yes
    PermitOpen localhost:1337
    X11Forwarding no
    ...

Finally, set the shell of the users to /bin/true by running the command chsh -s /bin/true <username>. Users will be silently (and forcefully) kicked back if they try to start any sort of interactive session. If you want to include a "friendly" error message, you can create a quick-n-dirty "fake" shell that will spit back an error message.

SSH gets rather annoyed when it can't access a shell, so you need to pass the command-line argument -N to the OpenSSH command, like so:

ssh user@example.com -N -L 3307:localhost:3306

If you're using PuTTY, make sure the highlighted checkbox is selected:

I've gone ahead and made a really simple (untested) shell that spits back an error message, and also keeps the terminal window open so that -N is unnecessary. You can find the source here if you want to compile and use it. Even with this, you should still use -N, but it's no longer absolutely necessary.

Option 2: Let them be

Users in Linux already have a pretty acceptable permission set. They can read files that are relevant to them and are important for the functionality of the system. At the same time, files that are "protected" (like private keys and /etc/shadow) already disallow reads from unauthorized users.

If your users are trustworthy already (and are actually going to be working on your system), this is the best option -- at the cost of keeping users out of where they don't belong

Option 3: Selective Targeting

If Option 2 is still too insecure for your needs, you can chmod o-rwx files that you don't want them to access. Examples of these include "secure" config files. However, you must be very careful that you don't cause services and applications to lose access to files that are needed to do their job.

You could also use Access Control Lists to block groups of users off of files, without setting them as the owning group. I caution, however, that this is fairly involved, and it opens up a way to allow users to "escape" their confined set if they find a shelled user that isn't in the blocked group.

Option 4: chroot

Using chroot allows you to control exactly what your users have access to. You decide what permissions, what commands, and so on. This is a very involved method that needs a lot of work to get working right, so it's not recommended for everyone.

If you're interested, this question explains it rather well.


If your laptop’s touchpad doesn’t have ‘physical buttons’ for left and right click, the right click is achieved with two fingers tap.

Don’t worry! You can easily change this behavior and enable right-click on Ubuntu 18.04.

You need to install GNOME Tweaks tool first. It is available in Ubuntu Software Center.

Alternatively, you can install it using the command below:

sudo apt install gnome-tweaks

In the GNOME Tweaks, go to Keyboard & Mouse in the left sidebar and under Mouse Click Emulation section, select Area.

That’s it. I didn’t need to log out or restart here. You can immediately test it by clicking on the bottom right area and see that the right click is working fine again. If it doesn’t work immediately, you should restart your system.

LINK TO SOURCE (Abhishek Prakash)


Download Cryengine. (requires membership)
Install required dependencies.

$ sudo apt-get install build-essential python python-tk
Change into the Cryengine directory and run the WAF build system.

$ cd ~/Downloads/cryengine-3.8.6

$ ./cry_waf.sh build_linux_x64_gcc_debug --project-spec=gamesdk_and_tools
Wait a while...
Finished! You should see binaries in the BinLinux64gcc directory.

Cryengine does not support the open source drivers, therefore you need to make sure that you have the proprietary drivers installed.


Cannot use windows font in visual basic using wine?

Because you are not running Windows.  The Windows fonts are protected by copyright so wine can not distribute them.


How can I hide/show the Ubuntu dock with a keyboard shortcut?

Not exactly what it's intended for, but you can use super+q to show the Ubuntu dock when it's hidden.

The actual use of the key combination is somewhat different, the super+q combination shows the dock with numbers next to each icon in the dock. Then you release q and press the number to launch or switch to the associated application.

If this feature is disabled, run the following to enable it first:

gsettings set org.gnome.shell.extensions.dash-to-dock hot-keys true


Starting applications does not evaluate .bashrc in Xubuntu 16.04 with xfce

If the problem you are describing is that it is failing to source your bashrc file, try the following:
Check your ~/.profile file and add something like this:

if [ -n "$BASH_VERSION" ]; then
    if [ -f "$HOME/.bashrc" ]; then
        . "$HOME/.bashrc"
    fi
fi

Then, try opening a terminal again and see if it sources it.


You can use the Ubuntu Server image. From the list of packages provided, Apache, mysql, php and well, Linux are all included. (The list isn't in alphabetic order, so you might have to jump around a bit if you search within a browser.) When installing using the server edition, you'll be shown a "Software selection" screen which asks for tasks to install, and you can choose LAMP server from the list.

Download the Server image of your choice from http://releases.ubuntu.com/trusty/.


Try to download the code with :
bzr branch lp:ubuntu-sdk-tutorials and then follow the tutorial trying to understand your errors.

Develop page 4 Tutorial Currency Converter


Need advice on partitioning a dual/multi-boot installation

Please note that this answer was originally intended for this question. However, since I don't have the stats required to post a decent answer there, I have decided to leave this post here instead.

Firstly, I would highly suggest 2-3 dedicated for each distro - especially if you plan to switch between them on a regular basis without doing a complete shutdown of the OS.

Also, you should setup Ubuntu to install so that your /home folder has its own dedicated partition, for what's mentioned later. Without further ado...

As others have stated, you are in a good position for attempting this operation. Since you had Ubuntu make a separate partition for your /home directory, it should be somewhat easier to access the files from outside of Ubuntu (using another OS). Go on and grab the UID/GUID for your User Account on Ubuntu - write it down for later. For info on working with an encrypted /home partition, go here - good catch on Orion's part. The next step would be to install Arch Linux in its own partition, alongside Ubuntu. However, this is where this answer will begin to splinter off - there are multiple guides for this process.

A) Continuing with a guide from Go2Linux:

You may need to make sure that your Ubuntu installation has GRUB on MBR. In addition to this, you may also need to have Arch Linux install GRUB on its root partition.
During the setup, you will need to edit some of the configuration manually - be sure not to select any of the 'express' options while installing Arch (if there are any), since those params need to be changed in order to symlink to your /home directory later.
If you intend to be able to suspend one OS and switch to another at a moment's notice, you now must make sure to give each OS (Arch, Ubuntu, etc.) a dedicated swap partition. Otherwise, you are free to use on swap partition for all (which I would still advise against).
In the original guide, the mount point for the data (/home) partition was set to home - I do not know if this applies to you, but I would check this to be on the safe side.
Once you have set these parameters, you will then need to edit GRUB config/menu data. You will need to add the Arch Linux installation to the list - which should have its own GRUB installation. Point it to that.
If all went well, boot into the second OS (Arch Linux) and enter the Ubuntu UID/GUID values for your new user during the initial installation. If this is not possible, complete the installation. Then, proceed to the Terminal and perform the following:

1) Change your current (Arch Linux) UID/GUID to match your previous Ubuntu UID/GUID values.

2) Symlink to your all of your /home folders from the Ubuntu partition.

3) Nuke Arch Linux's local /home folders - you will not be needing them anymore.

Please note that a slightly-easier process (or a modified version?) may be found here. The author of this source used the same guide, but supposedly found that not all of the steps/configurations were required in their attempt.

B) Continuing with solutions listed here and here:

Perform the Arch Linux installation as normal - giving it a separate partition and making sure that GRUB recognizes both operating systems.
Side-note :: When I dual-booted Elementary Freeya next to my already-existing Windows 10 partition (a few years ago), it was nice enough to slip GRUB onto my HDD as well, making my dual-boot experience much easier. I don't know how vanilla Ubuntu handles being the first OS on the disk, so I would double-check that you have GRUB ready and config'd first.
Proceed to use a different swap partition for each distro you install - for safety reasons.
This time, when you're setting up Arch Linux, you don't nuke the /home folder - instead, make sure to keep it minimally intact to preserve "necessary configuration files" (.gnome2, .kde4, .compiz, .themes, etc.). This will act as your "light-weight home folder". You may be able to share some config data - but that will require some experimentation on your part.
Kill the data folders (Documents, Pictures, Downloads, etc.) - these are getting symlinked to the Ubuntu /home partition you had from the very beginning.
Avoid sharing any distro-specific data - that could frag the whole experiment :(

In both cases, you will be symlinking to your /home (data) partition to access your folders - which isn't that bad. There may be other ways of doing this, but these are the most-suggested routes. In addition to this, it's also been done between MacOS, Windows, and Linux (side-by-side, on the same disk). I of course, would call that experiment "The Unholy Union" - but, it still holds valuable info. Check it out here.


AMD Radeon HD 7640G/7670M Dual GPU NOT WORKING in UBUNTU 13.04

Do you have switchable graphics in your system??
If you do, then you could turn off your discrete graphics in order to prevent the battery getting drained out very quickly.

http://planetoss.com/articles/how-to-disable-the-discrete-amd-graphics-card-in-linux/

Go to the link above if you want to turn off the discrete graphics and use the integrated
graphics available on your system.


Gnome-boxes won't start on one account but will on another

I was just having this issue as well-- gnome-boxes would crash with that seg fault whenever I tried to open it. Here's what I did to fix it.

After uninstalling gnome-boxes (sudo apt remove gnome-boxes && sudo apt autoremove), I ran sudo grep -rlI "gnome-boxes" ~ to get a list of files in my home directory that had the phrase "gnome-boxes" in it. It found several files, and I specifically deleted these:

./.config/libvirt/qemu/boxes-unknown.xml
./.config/libvirt/qemu/boxes-unknown-2.xml
./.cache/libvirt/qemu/log/boxes-unknown.log
./.cache/libvirt/qemu/log/boxes-unknown-2.log
./.cache/libvirt/qemu/log/boxes-unknown-3.log

(I am guessing that really all you need to delete will be the xml files).

After re-installing gnome-boxes (sudo apt install gnome-boxes), all is well and gnome-boxes is no longer crashing with the seg fault.


Do not disable UEFI if you plan on dual-booting. The general rule is either both UEFI or both MBR, but mixing does not work (one OS will not be visible and won't boot).

Then, install Ubuntu on a separate partition (see other guides for that).

Now, Ubuntu will have installed GRUB2 as the UEFI bootloader, and you will be able to start Windows from GRUB2 (Ubuntu adds the "Boot into Windows" option automatically). At this point, most people are done. Booting will be UEFI->GRUB2->Linux or UEFI->GRUB2->WindowsBootMgr->Windows, thus you will be chainloading Windows through GRUB2.

If you'd rather have two different UEFI bootloaders so that you can select Ubuntu or Windows directly from the BIOS (like you would select booting from the DVD drive etc), you can follow the guide here or my abridged version on SuperUser here.

Then, booting would be UEFI->GRUB2->Linux or UEFI->WindowsBootMgr->Windows, and there would be no chainloading.

If you plan on doing this, I recommend you make a full backup of your /EFI partition and the files on it from Windows before proceeding. Mounting the EFI partition is described here or on SuperUser here.

EDIT, to clarify on whether you should install using UEFI or not: What is set in your BIOS is not that important. What is important is whether your Windows was installed using UEFI or not. If it is, you need to install Ubuntu using UEFI (the liveUSB needs to boot using UEFI). If Windows does not use UEFI, then neither should Ubuntu.

See also here: https://help.ubuntu.com/community/UEFI#Case_when_Ubuntu_must_be_installed_in_EFI_mode

Checking whether your Windows is booted as UEFI: Multiple possibilities are described here

Checking whether your Ubuntu (Live CD) booted as UEFI: Multiple possibilities are described here


issues with DKMS while installing nvidia drivers on ubuntu 16.04

you can press Ctr+F1 (or Ctr+Fn+F1) and login in your account and enter this command

sudo ubuntu-drivers autoinstall


How to choose where to install applications?

Linux is a very user friendly operating system. The software management system automatically takes care of the installation. That indeed removes direct control from the user on deciding in which folders software is installed at the time of installation.
In principle, however, you can control which system folders are stored on which storage medium. This can be achieved by mounting different volumes (partitions, i.e. "drive letters" in Windows) on specific places in the system folder structure. More granular control is possible with mount binds: that newer option allows to mount specific folders on whatever volume elsewhere in the file system.
That way, installation would proceed automatically in the designated folders as before, but the actually installed files could reside on different volumes.
However, do not bother attempting to do this
A Linux system with plenty of applications typically does not need more than 20 GB. That is a fraction of your 120 GB SSD. So do not bother and have the system remain fully on the SSD. 1) It makes the system maximally fast 2) System files are rarely written to, so it is good for your SSD, and 3) it is by far the most simple approach.
Instead, consider moving user data to the HDD:

Leave the data you work on daily  on the SSD for the sake of speed.
Move large data and archive, e.g. movies, photo's, archived documents, ... to the HDD.

Linux is a very user friendly operating system. You can easily create symbolic links in folders under your home directory that seamlessly bring you to data stored on other volumes (i.e., your HDD). So you keep organizing your data under your home folder like you want despite the fact that the data may be residing on another storage volume.


How do I use the gecko executable with selenium

Initialize the driver instance after setting the system property.

    System.setProperty("webdriver.gecko.driver",  "/home/myacc/eclipse/jee-
    neon2/eclipse/geckodriver");


I had to recreate the debian-sys-maint user with the password from /etc/mysql/debian.cnf

GRANT ALL PRIVILEGES ON *.* TO 'debian-sys-maint'@'localhost' IDENTIFIED BY 'PASSWORD';


Search in a big file for specific string

Assuming that '18/jan' is in the file 02records then your command should have worked. You may want to try a different text editor, like Vi IMproved (vim). It should be able to read a 6GB file.


BQ Aquaris M10 will not detect MS Designer keyboard or mouse

As far as I know the Bluetooth facility of the phablet is restricted to connecting just one single device. As a result, you can connect either a BT keyboard or else a BT mouse. Another viable BT solution would be to connect one of those fancy BT keyboards with an integrated touchpad which figures as a single device.


My first guess, you are running PHP in a service where the systemd service file specifies PrivateTmp=yes
See also

https://muras.eu/2017/12/06/apache-ubuntu-systemd-privatetmp/
http://manpages.ubuntu.com/manpages/focal/en/man5/systemd.exec.5.html

PrivateTmp=
Takes a boolean argument. If true, sets up a new file system namespace for the
executed processes and mounts private /tmp and /var/tmp directories inside it that is
not shared by processes outside of the namespace.


How do I switch between keyboard layouts?

Its as easy to do as in Lubuntu.  Click on System Settings, and click on Keyboard Layout:

Click on the "+" sign to add a layout

Search for the language you want, in this example Greek, and add it

Look at the keyboard layout icon, and you will see the new language.  Just click it to choose it.


Is Ubuntu compatible with Intel Extreme DZ77GA hardware?

I will address the ones that matter, which are Motherboard and Video Card (The rest I know they work and will get detected correctly).

VIDEO - For the Nvidia card the answer provided in How do I install the Nvidia drivers? which covers many of the issues Ubuntu users suffer sometimes. Some more than others. But if you do the guide it will save you a lot of trouble.

MOTHERBOARD - For any chipset based on the Intel DZ68 or DZ77 it will work out of the box (The ones I have tested so far). There are no issues that I am aware of right now about the DZ77 Chipset (Including the Extreme Editions). What I do suggest is upgrading the firmware for them. They Extreme Editions do get a lot of firmware updates so it is always a good idea to have the latest update.


Found the solution

I was able to successfully calibrate my screen using the following method:

Open a terminal and type the following:

xinput list

You should see something like this:

⎡ Virtual core pointer                     id=2 [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer               id=4 [slave  pointer  (2)]
⎜   ↳ IDEACOM  IDC 6680                        id=8 [slave  pointer  (2)]
⎜   ↳ IDEACOM  IDC 6680                        id=9 [slave  pointer  (2)]
⎜   ↳ SynPS/2 Synaptics TouchPad               id=13 [slave  pointer  (2)]
⎣ Virtual core keyboard                    id=3 [master keyboard (2)]
    ↳ Virtual core XTEST keyboard              id=5 [slave  keyboard (3)]
    ↳ Power Button                             id=6 [slave  keyboard (3)]
    ↳ Sleep Button                             id=7 [slave  keyboard (3)]
    ↳ USB 2.0 Camera                           id=10 [slave  keyboard (3)]
    ↳ Asus EeePC extra buttons                 id=11 [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard             id=12 [slave  keyboard (3)]

Note where it has the first "IDEACOM  IDC 6680", that's your touchscreen.  There should be an id in the second column ie. "id=8"

pass the id into the next command(I'm using 8 as the example)

xinput set-int-prop 8 "Evdev Axis Calibration" 32 300 7900 400 7800

That should have set your screen calibration, the last 4 values are the actual calibration numbers.  You may need to tweak these numbers for your monitor, so just fiddle with the values and rerun the command  until you are happy with the calibration.

At the moment you will lose your calibration when you reboot so to make it permanent do the following:

sudo gedit /etc/X11/Xsession.d/98x11-common_touchscreen

Paste you calibration command from the step above into the file and save.


How do I report bugs on unity-webapps-preview?

You are using a package that is not provided in Ubuntu repositories, and hence, ubuntu-bug will very likely fail.

However, this is a project that is officially backed by Ubuntu, and is in its testing phase. Usually, QA Tracker contains a section on such projects.

Head over to QA Tracker and select Webapps Precise testing or Webapps Quantal Testing as appropriate. You are highly encouraged to record your feedback by subvmitting a result to as many test cases as possible. Installation, Uninstallation, and Bug reporting instructions are all detailed there.


Why do I see empty but undeletable files in Google Drive?

I discovered where they were in the web interface, they were in the recent files and shared files. Somehow I had some files shared to my drive and once I removed them they were removed from my computer. So it seems on the computer through gnome online accounts it doesn't separate your files from shared files. Hope this helps someone else with a similar issue!


The flashing after switching workspaces is a known bug.

There seems to be only one way to get rid of it in 12.04 precise right know:

  WARNING

  Please be aware that activating this repository and downgrading to an officially unsupported version of compiz is not recommended. Do it only if you can't live with the flashing. You have been warned.

In a terminal, type:

sudo add-apt-repository ppa:vanvugt/compiz-preproposed
sudo apt-get update
sudo apt-get upgrade

If you are already on the latest version of compiz, you would have to downgrade to the version from this ppa to remove the flashing (e.g. by using the "force version" option (F3) in synaptic package manager).

These packages have to be installed:

  libbamf3-0 0.2.118-0ubuntu0.1

  libbamf0 0.2.118-0ubuntu0.1

  bamfdaemon 0.2.118-0ubuntu0.1

  accountsservice 0.6.15-2ubuntu9

  libaccountsservice0 0.6.15-2ubuntu9

  compiz-dev 1:0.9.7.8-0ubuntu1vvpreproposed2

  compiz-plugins 1:0.9.7.8-0ubuntu1vvpreproposed2

  compiz-gnome 1:0.9.7.8-0ubuntu1vvpreproposed2

  compiz-plugins-default 1:0.9.7.8-0ubuntu1vvpreproposed2

  libdecoration0-dev 1:0.9.7.8-0ubuntu1vvpreproposed2

  libdecoration0 1:0.9.7.8-0ubuntu1vvpreproposed2

  compiz-core 1:0.9.7.8-0ubuntu1vvpreproposed2

  compiz 1:0.9.7.8-0ubuntu1vvpreproposed2

  devscripts 2.11.6ubuntu1.2

  evince 3.4.0-0ubuntu1

  libevince3-3 3.4.0-0ubuntu1

  evince-common 3.4.0-0ubuntu1

  libunity9 5.12.0-0ubuntu1

  gir1.2-unity-5.0 5.12.0-0ubuntu1

  python-crypto 2.4.1-1

After downgrading, these packages will have to be locked to be stopped from being upgraded to their former versions right again.

A fixed version of compiz in official repositories will probably only be available in Quantal release.


Share wifi. Ubuntu PC needs to share Widows 7 wifi to access internet

You could try using a software called "connectify" on your windows PC to create a WiFi hot spot that your computer running Ubuntu can connect to...


There are many reasons why you might get such problems. You are connected to router but not the internet. I will suggest two solutions.

If you have nscd installed then try this

sudo /etc/init.d/nscd restart

If not then try to release and renew the IP

sudo dhclient -r eth0
sudo dhclient eth0


Black screen on laptop lid open after update to 15.04

See if running the command

  dpkg-reconfigure xserver-xorg

will help you any.  There are a couple other posts about people having similar issues when upgrading to 15.04.


According to Wine HQ, neither the 64-bit or 32-bit of Office 2010 or Office 2013 can be run on Ubuntu. The 32-bit of 2010 will install, but will be unable to activate. The 64-bit version of 2010 won't even be able to install. Both editions of 2013 will have the same problem as 2010 64-bit. You either need to look for alternatives, such as Office 365 or make a Windows virtual machine.

EDIT:

It seems that there is a possibility to get Office 2010 running with Wine. You'll only get Word, Excel and PowerPoint, though. Follow this link at start at step 2: http://www.ubuntuforums.org/showthread.php?t=1885051


car radio sd doesn't work when formated from ubuntu

There are different kinds of file systems: Not every device(/operating system) can read all the file system. Look here for a full list of file systems. There you can compare which device (or operating system) can handle which which file system.

Because your car radio has no operating system (in that sense of Windows, Linux, …) you should select a file system which is widely used: FAT32, NTFS.


How to apply an "undocumented" kernel patch

Okay, I figured it out.

Copy the patch file somewhere. I copied it to /usr/src/linux-3.13.0
Apply the patch (you need to make /usr/src/linux-3.13.0 your current directory) .  Tell patch to ignore the first segment of the internal pathing

sudo patch -p 1 -u < elantech_trackpad_patch_for_laptops_v2.patch
patching file Documentation/kernel-parameters.txt
Hunk #1 succeeded at 1138 (offset -132 lines).
patching file drivers/input/serio/i8042-x86ia64io.h
Hunk #1 succeeded at 721 (offset -14 lines).
Hunk #2 succeeded at 1017 (offset -29 lines).
patching file drivers/input/serio/i8042.c
Hunk #2 succeeded at 792 (offset -2 lines)

Build the kernel

make localmodconfig
make menuconfig   // just accepted the defaults
make -j3 deb-pkg

Install the kernel

cd ../
sudo dpkg -i <linux image file>
sudo dpkg -i <linux headers file?

If anyone knows a better way to do it, please let me/the interwebs know.

Thanks!


Can I configure two-step authentication for: SSH and sudo?

This looks promising:
https://www.vultr.com/docs/how-to-use-twofactor-authentication-with-ubuntu-20-04
I didn't test it, though; make sure to set a root password at least temporarily so you don't lock yourself out.


Exit file manager when any key press in ubuntu (segmentation fault)

i've same problem like yours but with 16.04.2 and I removed the ~/.local/share/gvfs-metadata folder and it started to work again.


isc_dhcp_server start error : `dhcpd: Can't create PID file /run/dhcp-server/dhcpd.pid: Permission denied.`

I responded in the actual ticket as well, but in 15.10...

It looks like the line in /lib/systemd/system/isc-dhcp-server.service:

exec dhcpd -user dhcpd -group dhcpd -f -4 -pf /run/dhcp-server/dhcpd.pid -cf $CONFIG_FILE $INTERFACES'

is hardcoded and ignores the DHCPD_PID variable from /etc/default/isc-dhcp-server.

I think it should be:

exec dhcpd -user dhcpd -group dhcpd -f -4 -pf $DHCPD_PID -cf $CONFIG_FILE $INTERFACES'

After changing that, you have to run

systemctl daemon-reload

Then you have to set the value in /etc/default/isc-dhcp-server, because if you don't, no default is given and the service fails to start.

DHCPD_PID=/var/run/dhcp-server/dhcpd.pid

Then there are other issues with the file, like it always tries to run:

ExecStartPre=/bin/chown dhcpd:dhcpd /run/dhcp-server

regardless of the specified path. I'm not sure what the intended behavior was, but those two changes solved it for me.

BUT THEN

AppArmor was blocking the file from being written. I'm not very familiar with it, but I added

capability dac_override,

to /etc/apparmor.d/usr.sbin.dhcpd near the other capabilities, restarted the service, and now I have a PID file.

It seems this package has a few issues.


Problem after installing Ubuntu 20.04 GTK+Icons Yaru theme on ubuntu 18.04

It's important to note that the latest Yaru Colors 20.04 theme pack is created for Ubuntu 20.04, which has GTK 3.24.18 and GNOME Shell 3.36. The themes may work with other GTK / GNOME Shell versions, but you may encounter issues.

For more info:
Yaru Colors Updated With Ubuntu 20.04 Yaru Theme
Follow these steps in order to install and enable communitheme.

Install the communitheme snap on 18.04 by installing communitheme in the Ubuntu Software Application or running
snap install communitheme

Restart your computer.

Click on your user, click on the gear icon and select the "Ubuntu with communitheme snap" session from the pop-up, and login.

Now Ubuntu is using the communitheme including the system, applications, icons, sounds and the cursor.

Reference: Yaru's Github


I'm upgrading to Ubuntu 12.04, and the installation is stuck at preparing libc6

I have the same issue, look up on this blog. You need to click "terminal" below in your upgrade window and do some action it is waiting for


Brightness issue in a Lenovo ThinkPad Edge LR236W5

Have you tried this:

Open terminal ( Ctrl+Alt+T ) and type:

sudo cp /etc/default/grub /etc/default/grub.bak
sudo gedit /etc/default/grub

You will find this line in the new opened window: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
Change it to:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor"

Save and close the window and type this in the terminal:

sudo update-grub

Restart your system..

if above procedure doesn't work then repeat the same step but this time try  to change the above mentioned line with:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pcie_aspm=force"

Note: The next line to the line mentioned above should be GRUB_CMDLINE_LINUX="" not GRUB_CMDLINE_LINUX="acpi_osi=Linux"


How to boot into Ubuntu from Macbook 3.1

You need to modify the grubloader as described here.

Simply press „e“ as soon as the selection menu is displayed. Move with the cursor keys to the line to be modified. After modification continue with F10.

If it won‘t boot at all, you need to check if your MB is capable to boot into 64 bit. Usually, Core2duo are capable, while Coreduo are not.


Is there an ubuntu package for pygobject demos?

There's no packages providing the pygobject examples, you can check the individual binaries file listing here, all built from the pygobject source package.

However they are available in the git repo:

https://git.gnome.org/browse/pygobject/tree/examples


This is likely bug 1064962 (LibreOffice, SRUed and fixed in quantal-proposed) and bug 1075263 (Indicator-appmenu, should be prepared for SRU soon).


How to turn Ubuntu into LXDE without a fresh system instruction?

You can install lubuntu-desktop, which is the desktop environment lxde plus the applications that make up the lubuntu distribution by typing in a terminal:

sudo apt-get update
sudo apt-get install lubuntu-desktop

Reboot for effect. All your files should still be there;)

I wouldn't bother removing Gnome completely unless you are very low on disk space.

It's also possible to install Lubuntu-desktop from the ubuntu software center.


How do I create a Ubuntu script file that will open a .jar file?

your java started correctly (error message is from java)
java does not see that jar file.

I bet that if you do:

ls "/home/my-name/Desktop/Slow but Accurate/BulkNameChecker-slowbutaccurate.jar"

you will get:

ls: /home/my-name/Desktop/Slow but Accurate/BulkNameChecker-slowbutaccurate.jar: No such file or directory

so you can try:

ls "/home/"
ls "/home/my-name/"
ls "/home/my-name/Desktop/"
ls "/home/my-name/Desktop/Slow but Accurate/"
ls "/home/my-name/Desktop/Slow but Accurate/*.jar"
ls "/home/my-name/Desktop/Slow but Accurate/BulkNameChecker-slowbutaccurate.jar"

or:

find "/home/my-name" -name "*.jar"

to determine correct path.

Note1: you can use tab to assist you while typing a file names in terminal It is very handy.

Note2: If you use encrypted file system, or mounted when logged in and trying to run this script as another user, then the jar file might not be accessible, but most probable reason is a typo in the filename.


Line 17 Syntax error: unexpected end of file

this is the code you posted (formatted):

  USER=$1
  DATE=date +%d%m%y
  if [ -z "$1" ];then
    echo "Wrong format"
    exit 1
  else
    if [ -d "\home\$USERNAME" ]; then
        echo "correct"
    fi

Hopefully, you can see when formatted this way, you are missing a "fi" at the bottom of the script.


How to automatically switch monitors with my laptop dock

Dock/UnDock Scripts

I have finally put together a complete script setup that will detect my dock status and switch the monitors automatically.

The first thing I did was to get rid of my Xorg.conf as it caused more issues that it solved. Since I am using an nvdia card I eventually found that using disper was the best way to go.  I had discounted it before as its standard commands could not achieve my dualview setup but then I found I could create a custom metamode to use with disper.

To create the custom metamode I used the values stored in Xorg.conf along with previous testing with nv-control-dpy and xrandr as a guide. This metamode and other twinview values were added to a file that can be passed to disper through stdin.

Due to having different sized monitors with Twinview I need to use XCreateMouseVoid, as described in this question.

Below is a complete breakdown of the  scripts and files with their contents.

Scripts

Create XCreateMouseVoid script:

Script Name: ~/.mousevoid

#!/bin/bash
echo "Mouse Void"
/opt/XCreateMouseVoid/XCreateMouseVoid 0 1112 1280 88 &
/opt/XCreateMouseVoid/XCreateMouseVoid 0 0 1280 88 &

chmod +x ~/.mousevoid
Create Disper settings file:

File Name: ~/.disperDocked

backend: nvidia
associated displays: CRT-0, DFP-0, DFP-1
metamode: CRT-0: 1280x1024_60 @1280x1024 +0+88, DFP-1: 1920x1200 @1920x1200 +1280+0
scaling: default, default, stretched
xinerama info order: DFP-1, CRT-0, DFP-0

Create the export dbus session script:

Script Name: ~/.export_x_info

#!/bin/bash
# Export the dbus session address on startup so it can be used by any other environment
sleep 5
touch $HOME/.Xdbus
chmod 600 $HOME/.Xdbus
env | grep DBUS_SESSION_BUS_ADDRESS > $HOME/.Xdbus
echo 'export DBUS_SESSION_BUS_ADDRESS' >> $HOME/.Xdbus
# Export XAUTHORITY value on startup so it can be used by cron
env | grep XAUTHORITY >> $HOME/.Xdbus
echo 'export XAUTHORITY' >> $HOME/.Xdbus

Set to user executable only: chmod 700 ~/.export_x_info

Then put it in Startup Applications:

Name: X Environment Variables
Command: /home/your_user/.export_x_info

Unless you restart you need to run ~/.export_x_info to create the .Xdbus file
Create the udev rule that will run with upon a dock event:

Script Name: /etc/udev/rules.d/81-dell-dock.rules

KERNEL=="dock.0", ACTION=="change", RUN+="/usr/local/sbin/dell-dock"

chmod +x /etc/udev/rules.d/81-dell-dock.rules
Create the script that is associated with the udev rule:

Script Name: /usr/local/sbin/dell-dock

#!/bin/sh
# wait for the dock state to change
sleep 0.5
DOCKED=$(cat /sys/devices/platform/dock.0/docked)
case "$DOCKED" in
   "0")
       echo "Run UnDocking Script..."
        /usr/local/sbin/undock
        ;;
    "1")
        echo "Run Docking Script..."
        /usr/local/sbin/dock
        ;;
esac
exit 0

chmod +x /usr/local/sbin/dell-dock
Create the undock script (change your_user to match your user name):

Script Name: /usr/local/sbin/undock

#!/bin/bash
USER=your_user
export HOME=/home/$USER
source $HOME/.Xdbus
export DISPLAY=:0
echo "UnDocking Script"
echo "Switch primary monitor"
sudo -u $USER disper -s
echo "Killall XCreateMouseVoid"
pkill XCreate
echo "Restart conky"
pkill conky
sudo -u $USER conky &

chmod +x /usr/local/sbin/undock
Create the dock script (change your_user to match your user name):

Script Name: /usr/local/sbin/dock

#!/bin/bash
USER=your_user
export HOME=/home/$USER
source $HOME/.Xdbus
export DISPLAY=:0
echo "Docking Script"
echo "Switch to Dualview"
sudo -u $USER disper -i < $HOME/.disperDocked
echo "Start XCreateMouseVoid"
pkill XCreate
sudo -u $USER $HOME/.mousevoid
echo "Restart conky"
pkill conky
sudo -u $USER conky &

chmod +x /usr/local/sbin/dock

Debug

To debug the dock scripts you have to enable udev debug logging:

udevadm control --log-priority=debug

Then open syslog in Log File Viewer

Resources

nVidia Readme: Config Twinview, X Config Options
Autorandr
Disper PPA
nv-control-dpy
Ubuntu Forum - Un/Dock Scripts
Thinkwiki
udevadm


Why does music start playing when I log in?

When you login your cursor is positioned at the center of your desktop.

If there happens to be an sound file there your system can helpfully preview (play) it.

It may sound trivial or silly but when it happened it astonished me until I realized the reason. It also surprised one other person I've corresponded with.


How can I delete few files from a directory at restart of my OS before getting logged ? I am using ubuntu 19.10?

You could try using a Cronjob that will run on boot.
from your terminal type

crontab -e

Then add the @reboot to your rm /dataTemp/*.tmp command to your cronjob list
for example @reboot rm /dataTemp/*.tmp .


Creating a duplicate Terminator application in /usr/bin/

As you mentioned in the comment above that terminator is a Python script, before running the script, you can set a break point via import pdb;pdb.set_trace().

Start terminator and you will be in an interactive session.

You can then enter import terminatorlib and then terminatorlib.__file__ - this shows you where the package / module is located.

If you prefer a simple solution, just visit this site:
https://superuser.com/questions/625445/create-multiple-instance-of-terminator


I'm using a Microsoft Bluetooth mouse and the pairing key is 0000.   This is common for many devices, but check your manual.

Try 0000 or the key given in the documentation as the pairing key when asked.


Why can't I set a default output audio device in Ubuntu 19.10?

This is a bug reported here three days ago:

Audio / Sound reverts to HDMI when power event occurs

  PulseAudio reverts the sound to HDMI all the time when a HDMI related
  power event occurs. That means, although I have set another USB sound
  device plugged in and set as default under sound settings, when an
  application like Kodi or the system shuts off the HDMI monitor and I
  reactivate the monitor, the sound is set to HDMI output again and
  again.

  That probably has to do with the fix to the reported Bug # 1711101 and
  definitely not happened at Ubuntu 19.04. I switched to Ubuntu 19.10
  two days ago.

  Setting the USB device as default does not help, even when done by
  PulseAudio mixer (gui) and removing HDMI output from the alternatives
  option.

Only one person is effected by the bug (on November 4, 2019). Visit the link, click that it effects you and subscribe to the bug email.

11 people are now effected as of November 8, 2019. Comment #11 presents a solution though:

  I think i found a solution. I'm commenting this lines

#load-module module-switch-on-port-available
#load-module module-switch-on-connect

  in etc/pulse/default.pa and all
  work for me.


Want to test Ubuntu Hard Drive from a Windows 7

Step 1:  start an SSH server running on the Ubuntu machine.

Once you do that you can mount it as a hard drive.

Take a look at Dokan SSHFS: http://dokan-dev.net/en/download/

Dokan SSHFS is a program that mounts remote file systems using SSH. You will need to install the MSVC 2005 redistributable: http://www.microsoft.com/downloads/details.aspx?familyid=200B2FD9-AE1A-4A14-984D-389C36F85647

and the Dokan library available on the SSHFS download page.

Another solution is to use MindTerm: http://www.appgate.com/index/products/mindterm/

along with NetDrive: http://www.netdrive.net/ (both have free home versions):

Download and extract mindTerm

Run mindterm.jar (double click it if you can, otherwise in command prompt type in java -jar mindterm.jar)

Type in the host you want to ssh into followed by the username and password

In the menu click on Plugins>FTP To SFTP Bridge…

Type in 127.0.0.1 for the Listen address

Type in 21 for the Listen port

Select the Remote system type

Click Enable

Click Dismiss

Next we want to install NetDrive

Once netdrive is installed, open it up, and click New Site on the bottom

Type in localhost (or whatever you want to call it) for the Site name

Type in localhost for the Site IP

Type in 21 for the Port

Select FTP for the Port

Select a Drive letter

Check Connect as anonymous

Click Save

Click Connect

Click the X to close the window (will minimize to system tray)

There you have it! A SSH/SFTP connection as a drive in Windows.


You can use transport map/table to route messages for given email domain to IP specific IP address.

example.com      smtp:[10.0.0.2]:25


Connected to a wired network but no internet

Did you try to make a ping to www.google.com?
Open up a terminal window ctrl+alt+t and issue ping www.google.com
if this don't work, try ping 8.8.8.8
If the result of ping 8.8.8.8 or www.google.com is

64 bytes from 8.8.8.8: icmp_seq=1 ttl=52 time=27.0 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=52 time=27.0 ms
...

press Ctrl+C to stop and then review the Firefox proxy options in configuration.
If the second ping works and the first don't, you have trouble with your DNS.
If the first ping to google.com works, then:
In Firefox(version 56), go to Preferences-> General -> Network Proxy -> Configure how Firefox connects to the Internet -> and click in settings.
Then configure with your options. if you don't have proxy, select "No Proxy".
If this don't work. Check if you have a default gateway.
Go back to the command line and type: sudo route -n
You will see something like this.

Destination  Gateway      Genmask     Flags Metric Ref    Use Iface
0.0.0.0      Router IP     0.0.0.0     UG    600    0        0 wlp3s0
169.254.0.0  0.0.0.0     255.255.0.0   U     1000   0        0 wlp3s0
192.168..... 0.0.0.0     255.255.255.0 U     600    0        0 wlp3s0

if you don't have 0.0.0.0 route, then you don't have outgoing traffic to the internet, and then you need to review the network interface settings (maybe you have manual IP misconfiguration)


Unable to locate package python-pip on live system

Two Methods:

You can install through Ubuntu Software Center.

Open Ubuntu Software Center and search for easy_install

Highlight alternative Python package installer (python-pip) from the
list and click Install

You can check weather the installation was successful or not by
giving the command

which pip

you will see the path of installed application, for example

/usr/local/bin/pip

Second method

Open terminal by pressing CTRL+ALT+T and type the following:

cd ~

to navigate to your home directory.
Then issue the below command:

wget -P Downloads/ https://svn.apache.org/repos/asf/oodt/tools/oodtsite.publisher/trunk/distribute_setup.py
Next step is to run the downloaded script. To do this, issue this
command:

sudo python Downloads/distribute_setup.py
and type your user password when prompted (Please, note that your
account needs to be a member of Administrators group in order to
issue sudo).
Hit Enter and let the script run.
To ensure easy_install is installed, issue the command below:

which easy_install

The typical response in case the installation completed successfully
would look something like this:

/usr/local/bin/easy_install
The next thing to do is use easy_install to install pip. For that
you’ll need to issue:

sudo easy_install pip
Enter your password if prompted to confirm command.
Let the installer run and once the installation is completed type:

which pip

This command should typically respond with something like this:

/usr/local/bin/pip


IIRC The only issues Ive ever had with dell laptop hard drives was that their recovery software expected the original drive to be in the machine. For factory restoring the machine it had to be a specific size.

If your machine is using an SSD it may be worth your while to manually partition it with GPT and align your partitions to get a little more speed out of your rig. There are plenty of guides out there for doing that.

1: I think most people create a 500MB boot one these days. IDFK why its just done.. for grub and stuff right?

2: If its an SSD I would leave the windows one as free space for now. Many SSD makers these days automatically use free unpartitioned space as overprovisioning space which improves the drives performance and lifespan. Let windows install to the free space when you go to install it imo.

3: Yes that all looks very nice :). If you are using a spinning disk I would probably tweak the locations slightly so that all the most used data (sda5?) is on the outer edge of the disk to allow for a slightly higher read/write speed. I would also put sda6 between the ubuntu and windows partitions to lower the seek times and put the swap (sda7) right after the most heavily used partition for the same reason.


I installed Unity 12.04 on an Acer 725, everything worked but the touchpad.

This got it working.

open terminal:

cd /etc/modprobe.d
gksudo gedit options.conf

type into file:

options psmouse proto=imps

in terminal:

sudo modprobe -r psmouse
sudo modprobe psmouse

close terminal, log out, Fn+F7 should now toggle touchpad


Chrome/Firefox screen tearing, choppy video

As near as I could tell there really is only one good answer for this. Sold my AMD card and bought an NVIDIA card - problem solved. After trying just about every Linux OS known to man and every possible setting in Chrome or firefox I finally threw the towel in. My first and last experience with an AMD card has come to its logical conclusion.


Add this:

options iwlwifi bt_coex_active=N

to /etc/modprobe.d/iwlwifi.conf.

Use the command sudo gedit /etc/modprobe.d/iwlwifi.conf.

Try running the following if that doesn't work:

sudo service network-manager restart

If this still doesn't work, try

sudo apt-get purge network-manager

then

sudo apt-get install network-manager


I'm not familiar with a solution to your first problem, other than learning the standard.  It's not clear to me any particular problems you're having with it other than it's not to your liking, not to say that's not a good reason to ask the question!

With that in mind, in order to delete everything before a certain spot in a text file, you can most likely hold Shift and press the Home button.  That should select all of the text, so you can now press Backspace, or Delete, as you prefer, to remove the text.  The opposite can be done with the End key.

As you pointed out in the comments,  most text manipulation shorcuts are bound to Ctrl and Shift, such as copy and paste, while Alt and Super are reserved for other functions.  This is a major difference between Meta Characters and Control Characters.


At what points does Ubuntu add entries to the UEFI boot list? How to prevent it?

I know of at least 3 where you can add boot options to EFI.

During installation. This one is unavoidable.
When doing apt-get install --reinstall grub-efi.
When using efibootmgr.

The last 2 are up to the user of the system so not executed by Ubuntu.

grub-install does it too if you omit --no-nvram.
--no-nvram
Don't update the `boot-device'/`Boot*' NVRAM variables.
This option is only available on EFI and IEEE1275 targets.

NVRAM is non-volatile RAM that is used in EFI to store variables that need to persist between boots. Many of these NVRAM variables are architecturally defined, and setting invalid options to NVRAM could cause a machine to not be able to boot.


Boot from the live CD. Open the terminal

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

-Press Enter - Then type:

sudo apt-get install -y boot-repair && boot-repair

Then open boot repair. Perform recommended repairs. If that does not fix it then paste the link here for the boot summary.


E: Unable to locate package texlive-generic-recommended

The texlive-generic-recommended package was presented in Ubuntu 18.04 LTS (bionic). Its source package is named texlive-base.
Depending on your needs you can install one of the following package:

texlive-fonts-recommended - TeX Live: Recommended fonts
texlive-fonts-recommended-doc - TeX Live: Documentation files for texlive-fonts-recommended
texlive-latex-recommended - TeX Live: LaTeX recommended packages
texlive-latex-recommended-doc - TeX Live: Documentation files for texlive-latex-recommended

Note: if you know the name of missed .sty, .tex, .bst files - you can use packages.ubuntu.com for file-search.


How to fix black screen after Intel Graphics Installer on 14.10?

I upgraded system to 15.04 and after that everything works fine.


Ubuntu 20.04 Dell Precision 7540 does not boot with 5.8.0_34 kernel

Run in a terminal
sudo apt install nvidia-driver-460

That should install a compatible Nvidia driver.


The fact that the machine boots without the HDD plugged in suggests that GRUB is indeed installed correctly on your SSD and the problem is in the boot order, i.e. your HDD is probed first, BIOS finds (non-functional) GRUB there and passes control to it.

Please note that even if you installed the HDD into the bay where DVD drive used to be, it will still be seen as hard drive by BIOS. Some BIOSes have two separate menus for setting boot order - one where you choose between Hard Drive, CD/DVD and USB boot, and another separate menu where you can specify order of hard drives.

I strongly suspect that you have Hard Drive on the top in the first menu, but in the second menu your HDD takes precedence over the SSD.

In the picture above, apart from making [Hard Drive] the Fist Boot Device, you also need to go into Hard Drive Boot Priority sub-menu and make sure your SSD takes priority over the HDD.


if you want to conceal your source ip , you might want to look at Cloudflare which basically makes your source ip hidden

its free and i currently use it for my domains

if you have a domain , which is basically a "name" for the website like google.com , then these instructions apply to you , i will be using the domain example.com , replace it with your domain , so

find a really obscure subdomain like asdfkjl.example.com and point it to your server address and untick the cloud like this -
replace the 1.2.3.4 from the image with your real ip

make a srv record and follow the instructions in this gif to make it -

and then you are done!


You have add their GPG key by
wget https://static.geogebra.org/linux/office@geogebra.org.gpg.key -O - | sudo apt-key add

and then rerun update and install package:
sudo apt-get update
sudo apt-get install geogebra-classic


Mount /home directory from SD card in Ubuntu Touch?

There are way too many existing symlinks in /home/phablet/.local to make feasible symlinking the whole /home/phablet directory structure.  I tried, but received a bunch of permission denied errors and figured it would probably break things anyhow if I managed to do it.

What does work, however, is doing the following:

Copying each of the subdir of /home/phablet to
/media/phablet/*<sdcardname>* (e.g. cp -R Pictures/
/media/phablet/*sdcardname*)
Renaming each of the original subdir to
.bak (e.g., mv Documents/ Documents.bak)
Creating symlink for each of
the subdir (ln -s /media/phablet/*sdcardname*/Music Music)

And if you have any podcasts courtesy of the excellent application Podbird, you can delete the podcast directory under /home/phablet/.local/share/com.mikeasoft.podbird and create a symlink to wherever you want to store it on your sd card. For example:

mkdir -p /home/phablet/*sdcardname*/.local/share/com.mikeasoft.podbird/podcasts
ln -s /home/phablet/*sdcardname*/.local/share/com.mikeasoft.podbird/podcasts /home/phablet/.local/share/com.mikeasoft.podbird/podcasts

Hope this helps others.  Long live the penguin!


In Windows:
We need to test/repair any Windows/NTFS partitions using chkdsk, and we need to disable fast start and hibernation.

open an administrative command prompt window and type chkdsk /f c: and approve to run this at the next reboot time

type chkdsk /f d: changing the "d" to any other drive letters that exist on your system

disable fast start in the Power control panel
open the Power control panel
select Change what power buttons do
select Change options that are unavailable
uncheck fast start

in the open administrative command prompt window, type powercfg /h off

reboot Windows and let chkdsk test/repair the C: drive

reboot Ubuntu and see if your drive is available now


It seems your drive is formated to exFAT. Ubuntu doesn't come with support for that upon installation. You need to install exfat-utils and exfat-fuse.

Do this:

sudo apt-get update
sudo apt-get install exfat-utils exfat-fuse


Do I need to update firmware with Intel® SSD Firmware Update Tool for intel 535 SSD when using Ubuntu 16.04?

I have the same one and I wanted to update, but it's already the latest firmware. You should update SSD firmware regardless of the OS; it does wonders for the drive and keeps its life-span stable, controls writing and reading, eliminates bugs and improves performance.

To upgrade it, use the Intel® SSD Firmware Update Tool, which is independent from the OS, from their website, but prior to that, check if your current SSD firmware version is the latest.

Use smartmontools:

  sudo apt-get install smartmontools

Then

  sudo smartctl -i /dev/sda

My firmware is R21, which is the latest according to the website:
https://downloadcenter.intel.com/download/18363/Intel-SSD-Firmware-Update-Tool


making a legacy-mode-only live USB for BIOS-only computer (no UEFI, no dual boot)

Bios Only Ubuntu Installer
Download Ubuntu 20.04 https://ubuntu.com/download/desktop
Start with a USB of at least 4GB formatted FAT32.
If using Windows, download Rufus. https://rufus.ie/
Double click the Rufus .exe file, no need to install.

Select USB Device and ISO file for Boot Selection.
Select START
When Rufus is done use USB to install Ubuntu to BIOS or UEFI machine.


How to use xscreensaver on Kubuntu 18.04; 20.04 (KDE, Plasma)

install xscreensaver packages
disable kde screen lock

let kde autostart xscreensaver on login: make a new entry with xscreensaver -no-splash

create a lockscreen keyboard shortcut in the kde settings (possibly using the kde lock shortcut for the xscreensaver, thereby overriding it): xscreensaver-command -lock

assign a suitable shortcut

adjust settings for the screensaver: xscreensaver-command -prefs
after the next login, the xscreensaver should be available
weblink: https://www.jwz.org/xscreensaver/man1.html#9
examples

Squiral

XAnalogTV

Pacman

IMSMap

Kumppa

BSOD

Pong

Fireworks

Coral

Polyhedra


what is command to launch on click in Cairo Dock

If I understand your problem correctly then you have to do the following:

Open some graphical application using menu
Wait for the icon to appear in Cairo Dock
Make right mouse click on appeared icon in Cairo Dock, select second row of the menu, then click on Make it a launcher

Notes:

steps 2 and 3 maybe done simpler - you can drag application icon from desktop environment menu and drop it directly to dock.
Cairo-Dock normally works with deb-packaged applications (with desktop-files, of course), with GUI applications from Ubuntu Make, Snap, FlatPak and any other applications for which you (or some application) created a desktop-launcher in ~/.local/share/applications.


UbRecovering ubntu After Installing Windows

I am not sure what you are trying to do. What do you mean by "recovery my ubuntu bootloader". For single booting Windows use Windows bootloader.

It looks like your windows installation has overwritten Ubuntu.

First you try to mount /dev/sda2 which is an extended partition. That is not a legal operation.

Then you try to mount /dev/sda5, the old Linux swap-file. That isn't a legal operation either.

Except for the left over Linux swap, which don't hold data, there are no Linux / Ubuntu partitions on the disk listed above.


Setting up Lubuntu to access /usr/src/linux-headers-3.1.x.xx?

If you're programming a driver, you need the header files of the kernel you're programming for. To find out what kernel you're running, you can use uname -a. Install its header files with apt-get install linux-headers-$(uname -r).
Include Syntax
Both user and system header files are included using the preprocessing directive #include. It has following two forms:
#include <file>

This form is used for system header files. It searches for a file named file in a standard list of system directories. You can prepend directories to this list with the -I option while compiling your source code.
#include "file"

This form is used for header files of your own program. It searches for a file named file in the directory containing the current file. You can prepend directories to this list with the -I option while compiling your source code.
Source


Shorten commands that contain the same preface

On your alias since its shell syntax you are free to access command line parameters using $1  $2  $3  to puck parm1 parm2 parm3

alias gitdo="git do-something-else $1"
alias gitand="git another-command $1 $2 "

just put these alias definitions into your ~/.bashrc file ... usage would then be

gitdo my-parm1

Alternative trick to alter prior command is to search for it then do in place edits ... say I just issued

git foo bar blah

then later in same terminal I can pull back that command either by simply using up arrow key or by doing a command line search

ctrl-r foo [enter]

which will retrive above to permit the edit and re-issue (ctrl-e to jump to end of line,  ctrl-a jumps to line beginning, or ctrl arrow left right jumps words)

git woo bar blah

another search trick would be

history | grep foo


Status 62 means you have too new of Mongo installed for the DB files that are present on the host. You can downgrade Mongo and then upgrade back up in stages to keep the data, dump out the data and restore it, or delete it and start fresh.


On an Inspiron 8600, the wireless chip is identified as BCM4309. Its id is 14e4:4324. To work, it needs a driver. To install this driver, open Software Center and search for firmware-b43-installer.

I don't know about a driver called bcmwx, but there is one called wl. To be rid of it, open Software Center and make sure broadcom-sta-common is not installed.


I am not sure this is what you are looking for, but it will provide a "privacy mode". I am citing webupd8.org:

  Until Zeitgeist Global Privacy is released, install Activity Journal
  (don't use the version in the official Ubuntu 11.04 Natty Narwhal
  repositories - that doesn't seem to work), go to its Preferences and on
  the Plugins tab, enable "Blacklist Manager" (seems you have to double
  click the checkbox to enable it) - now a new "Blacklist" tab should be
  displayed. Here, click the add button and enter the path to your private
  files (porn). If you want to block all files, use "*" for the path.

  You can also clear the Zeitgeist history (this is the history of recent
  files that's display in Dash) by using the following commands:

rm ~/.local/share/zeitgeist/activity.sqlite
zeitgeist-daemon --replace


How do I return a purchase from the Ubuntu Software Centre?

From Ubuntu Software Centre Terms of Service clause 3 a :

  Payment for apps is due at the time you purchase the app. You will be asked to enter your credit card number and we will charge your credit card at the time of purchase. Fees are charged in the currency in which you make your purchase. All fees are non-refundable.


LibreOffice Writer (6.0.1.1): Lock it to export files as PDF instead EPUB

I don't know if there is a way to change the default file type of the File > Export > Save menu from EPUB to PDF. However, there are a few workarounds.

1. Use the Export as PDF icon

This is the simplest. The fourth icon on the top toolbar is Export as PDF.

This will directly take you to the Save file window with the PDF file type option selected. In some systems the icon may look a bit different.

2. Use the File > Export As Menu

Instead of using the File > Export menu, you can use the  File > Export As > Export Directly as PDF menu right below it.

This is the equivalent of clicking on the Save As PDF icon.

For the ultimate control...

If you want to change the PDF settings before you export the file as PDF, use the File > Export As > Export as PDF menu. this will take you to PDF options, where you can tweak your PDF file to be generated.

hope this helps


Ubuntu 18.04.1 LTS, Dummy output, no sound

Similar instance of problem here on a v18.04 box; alsa output works, but pulse is just Dummy Ouput.

This seems to bring back pulseaudio without rebooting.  First close any programs using pulseaudio, then as a regular user run:

pulseaudio --kill; sleep 2s; sudo alsa force-reload ; pulseaudio --start

Then play a sound file.


How can I restores Nautilus' old open with context menu?

There is no way to enable the old Open With version in Nautilus 3.20. There's no possibility to do it by changing it in the Preferences, there is also no option to do it using the dconf-editor tool.

That is due to how Nautilus 3.20, as part of the GNOME 3.20 desktop environment was designed. As there is no plugin available in the repositories to add this feature, you'll have to use it 'as it is'.

Of course it might be possible to tune the software by changing the code ... but this might break some other things and the main functionality still exists, you just have to make a few clicks more.


Issues with Displays on VMware. Scale missing + cannot permanently add resolution

Fullscreen 4K with native scaling will stay, as well as 200% scaling factor

VMWare options
Ubuntu VM properties
gnome-tweaks

As an alternative, install gnome-tweaks tool

sudo apt install gnome-tweak-tool

after install you can use font scaling factor of 2.0


.Log in into your windows 8 os.Download and install EasyBCD from here.
.Under linux section,set grub2 as bootloader add a boot entry for your Ubuntu Partition.And also add entry for your windows 8 partition.

reboot

Or

try boot-repair disk .
Manual: https://help.ubuntu.com/community/Boot-Repair


From man gpg2:

NAME
       gpg2 - OpenPGP encryption and signing tool

SYNOPSIS
       gpg2 [--homedir dir] [--options file] [options] command [args]

DESCRIPTION
       gpg2  is  the OpenPGP part of the GNU Privacy Guard (GnuPG). It is a tool to provide digital encryption and signing services using the OpenPGP standard. gpg2 features
       complete key management and all bells and whistles you can expect from a decent OpenPGP implementation.


Ubuntu unable to Connect to Internet at Work Network

I managed to get the network working by installing cntlm and configuring it.

You need to enter the password in cntlm. Setup your ubuntu proxy to the cntlm listen port. Then restart cntlm. You are set! You get networking for all your applications.


You select the files through the system file dialog, which in current Ubuntu versions is provided by the GTK3 toolkit. Unfortunately, you are seeing a limitation in that dialog. While it is possible to specify different files - however only within the same folder - by holding Ctrl and then clicking files to select them, you can specify only a single file at a time using the path bar that you obtain after hitting Ctrl+L. There is not any possibility to specify files from different directories.
A workaround would be to link (hard or symbolic) the different files in different folders in a single folder (or just copy the files) so you can upload them in a single move.
You can enable options for creating a symbolic link in the "Preferences" of Files, on the "Behavior" tab.


How can I get the default Ubuntu boot logo back after returning from using Xubuntu?

It should be possible to restore the original behaviour by reconfiguring the plymouth theme(s), using

sudo update-alternatives --config default.plymouth

and

sudo update-alternatives --config text.plymouth

and select the respective Ubuntu alternatives from the menu provided.. Alternatively you could remove the corresponding package completely, e.g.

sudo apt-get remove --purge xubuntu-plymouth-theme


ImageMagick still exists after apt remove?

The imagemagick package is a dummy package. From apt show imagemagick

 .
 This package include links to channel depth specific binaries and manual
 pages.
 .
 This is a dummy package.  You can safely purge or remove it.

The "channel depth specific binaries and manual pages" are provided by the package's dependency - you can check what that is using apt depends - for example:

$ apt depends imagemagick
imagemagick
  Depends: imagemagick-6.q16 (>= 8:6.9.2.10+dfsg-2~)
    imagemagick-6.q16:i386

(the q16 here refers to the the channel depth). If you installed imagemagick via apt (or apt-get) this will be the package that you need to remove.

If you installed the software by building it from source code, then please refer to

If I build a package from source how can I uninstall or remove completely?


Why only 3.2 when you have 4 installed?  The motherboard on that machine can only see 4GB RAM total. You can see your system specs here.  Some of that RAM is reserved for system use (swap, running the OS itself, etc.) so you will never see 100% available.  Secondly, an add-in video card will also reserve whatever capacity it is from the system RAM.  So if you have a 512MB video card, and the system reserves 200-300MB of RAM, you'll only see 3.2 GB available.

Your biggest problem is that your machine has a 64-bit processor (specs here) on a 32-bit board.  Switching to a 32-bit OS (Download Ubuntu 14.04 i386 here) or upgrading to a machine with a 64-bit board will help you tremendously.


Edit /etc/gdm3/custom.conf and comment the two lines:
AutomaticLoginEnable=True
AutomaticLogin=Foo

Restart, and you should see the login screen again where you can choose the GUI/WM to be used.


Software Updater - The package system is Broken

For me the problem was McAfee. I had to remove it, run the software updater then reinstall it. The software updater appeared to work even after the re install of McAfee as well,  even though there was nothing left to install


Very slow connection on an Intel(R) WiFi Link 5100 AGN

There is a problem with kernel 3.0.0.x and Intel wifi under 802.11n.

We are all waiting for the fix in the kernel.

There is a workaround:

Create a file /etc/modprobe.d/intel_11n_disable.conf containing :

options iwlagn 11n_disable=1

sudo update-initramfs -u
reboot or sudo modprobe -r iwlagn && sudo modprobe iwlagn

Ref:

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


For anyone else who had this issue, here's your solution..

If you try to run playonlinux and recieve this error:

ImportError: No module named wxversion
failed tests
Please install python before trying to run this program

Edit this file:

  /usr/share/playonlinux/bash/find_python

And change the following from:

            next_python "python"
            next_python "python2.7"
            next_python "python2.6"
            next_python "python2"
            next_python "none"

to:

            next_python "/usr/bin/python" #<<This line was added
            next_python "python"
            next_python "python2.7"
            next_python "python2.6"
            next_python "python2"
            next_python "none"

And that's it!


This instructions solved the issue for me on a Lenovo G50 + Mint Cinnamon 17

http://www.evilcodingmonkey.com/2014/01/23/ubuntu-activate-multi-touch-on-elantech/

Copy-paste (code typo fixed and a bit more of info added), as backup

  First, if you aren't sure your computer was built with an Elantech
  touchpad, open a terminal, and type the following:

cat /proc/bus/input/devices

  You should find a block containing a line looking like this one, which confirms you are on an Elantech touchpad:

N: Name="ETPS/2 Elantech Touchpad"

  or

N: Name="PS/2 Elantech Touchpad"

  Download this archive (from Ubuntu's bug reporting page).

  Open a terminal, and follow these steps (after step 4, you will have
  no mouse at all):

cd ~/Downloads
sudo dkms ldtarball psmouse-elantech-x551c.tar.gz
sudo dkms install -m psmouse -v elantech-x551c
sudo rmmod psmouse
sudo modprobe psmouse

  Enjoy multitouch!


Toggle xinput device on or off with following bash script.

#!/bin/bash

device=13
state=$(xinput list-props "$device" | grep "Device Enabled" | grep -o "[01]$")

if [ $state == '1' ];then
  xinput --disable "$device"
else
  xinput --enable "$device"
fi


How do I write an ISO to a USB in order to use the data available beyond the size of the original ISO?

Make Bootable USB with No Wasted Space from Ubuntu.
There are several methods of making a bootable USB in Ubuntu.
Basic categories are Persistent install and Full install
For a comparison see: Use Ubuntu on external hard drive in 2 different devices? . Instructions for Full install USB are included.
The main reason to make a Persistent install is to create a USB that can be used to install Ubuntu.
The best tool for doing this is mkusb, see: https://help.ubuntu.com/community/mkusb , mkusb will create a drive that will run Ubuntu and save between sessions, (Persistence), It can also create a NTFS data partition to be used by Linux or Windows like a normal USB.

The easiest tool for making a Live USB, that can be used for installing Ubuntu, comes with Ubuntu and is called Startup Disk Creator. It overwrites the whole disk as you mention in the question.
The useless space resulting from a SDC install can be easily converted to a NTFS or FAT32 data partition useful for data storage and transportation like mkusb.
Procedure Legacy Boot

Run Startup Disk Creator, dd. Disks or Etcher to create Live 19.10, or later, USB

Boot new Live USB to activate writable partition, (AKA casper-rw), then Power Off.

Reboot the Live USB toram. (press shift when booting, hit F6 and type a space and toram).

Unmount writable/casper-rw partition using Disks.

For NTFS open Terminal and run:

sudo mkfs.ntfs -f -L data /dev/sdx3
were x is the drive letter of the new Live USB
For FAT32 use:
sudo mkfs.vfat -F 32 -n data /dev/sdx1
The drive should now have the original data space minus the size of the OS ISO.
Procedure UEFI Boot
Same as Legacy Boot however at GRUB menu press e. After the words quiet splash type a space then toram. Press F10 to continue boot.


mount error = 5 when mounting ceph cluster

The Ceph charm currently only supports Ceph Object and Block storage services; hence you won't find any running MDS daemons and support for CephFS right now!


rkhunter will trigger a warning any time you add an application. In this case, it's getting upset about (ironically) the security tool unhide.rb.

When you knowingly install software, you'll need to run sudo rkhunter --propupd in order to update rkhunter, so it knows what you've "okayed".

That said, rkhunter is largely for servers, which don't typically have a lot of system changes beyond initial setup. If you want something to protect against malware, you might want to consider something like BitDefender or ClamAV, something designed for desktop use.

Additionally, you may be interested in this related question, which goes into detail about Linux and malware, and why Linux is generally less prone to getting infected.


Fixing recursive fault but reboot is needed!

I got recently got this message about a "recursive fault" repeatedly when trying to install anything or even boot up my old Lenovo desktop.

After a lot of trial and error I replaced the graphics card to see if it might solve the problem.

It did!


ListViews get data from a ListModel, you don't directly add ListItems to them.  See http://qt-project.org/doc/qt-5.0/qtquick/qml-qtquick2-listview.html#model-prop for more information about that.

A ListItem.* is used on the delegate property of your ListView, and will be used as kind of a template component, a new copy will be made for each item in your ListModel


Can installing Ubuntu cause Windows to run hot on dual boot machine?

Not possible
But, if you reboot into Windows right after you've been on Ubuntu, things may seem hotter while the "extra" heat dissipates. This should disappear if you "cold boot" Windows after your computer has been off for at least one hour.
Needless to say, directly rebooting is not going to harm your computer (though your lap may feel warmer ;)


Ctrl+Alt+F1 to F6 are the virtual consoles provided by the getty/agetty programs.
Ctrl+Alt+F7 is the console where your X server is running. The GUI (Gnome/KDE or any other) runs over X.
So to get back into your GUI window manager: type:
Ctrl+Alt+F7
or
Alt+F7
or
Ctrl+Alt+F8

With 17.10 and newer, the login screen is on virtual terminal 1, and logged-in users' GUI sessions on VT2 and onwards. So, you may need to use Ctrl+Alt+F2 or Ctrl+Alt+F1 instead.


Switching the ftp client to active mode worked, so it must be passive ports.
Looks like I need to edit /etc/vsftpd.conf:
pasv_enable=Yes
pasv_min_port=10100
pasv_max_port=10110

then:
sudo systemctl restart vsftpd
sudo ufw allow from any to any proto tcp port 10100:10110

EDIT: solved, this did the trick. I am going to leave this since I couldn't find good answers, hopefully I can help the next guy


VESA:M92 standard, but ati driver installed? (12.04 LTS)

Try running the following command in terminal (Ctrl + Alt + T):

lspci -k | grep VGA -A2

I think it will show you that you are using the correct driver and so if you go to Settings → Details → Graphics and you see the VESA:M92 driver, it is just an incorrect indication for a reason that I do not know, but I have the same issue here on my laptop.

Hope this helps.


Will Unity have a keyboard shortcut for accessing the "Session Menu" that appears on the panel?

In Unity, the Session Menu, and other indicators, are standard menu items.  You can reach the menu bar with F10 or other Alt-… combination; for instance:

Alt+F ← ↑ ↑ Enter

will generally get you to the Shut Down… entry by first opening the File menu and then jogging across via left-to-right then top-to-bottom wrap-around.