Can I open IDM using wine in ubuntu if i had IDM already installed in windows(dual booted)? if yes, how?

No, i dont think so...

Either :

Download the IDM instaler and install it under wine. Open terminal :
  wine /path-to-installer/instaler.exe
install an alternative :

sudo apt-get install uget


How do I change my PYTHONPATH to make 3,2 my default Python instead of 2.7.2?

It's not good to change the default python. Many system programs depends on python2 not python3. if you want to use python3, you just type the command python3.


Ubuntu is not a single component of the system, it is a Linux distribution (aka distro).

This basically means a particular way of packaging all the components together. That includes selecting the right software (libraries, applications) to be able to work together seamlessly, choosing their right versions and provide patches where they’re needed (typically kernel).

This is practically achieved by providing install images and package repositories.


OneConf is still in testing, that's why it isn't installed by default yet. According to this blueprint, default inclusion has been delayed to Natty.

The current implementation doesn't actually offer much that you can do with the information that it stores in your account. For Natty, it's likely that we'll see integration with the installer. So that you will be able to include the packages on one machine when installing on another or doing a fresh install.

This wiki page has a lot of information with what you can do with the command line client, oneconf-query Note that when using the installed version, not the bzr branch that the wiki is referring to, replace ./oneconf-query with simply oneconf-query


How to kill zombie process keeping its parent alive?

You cannot create a zombie process. When you fork a process and this forked process (child) ends, it sends a return code. If parent process is not waiting for this return code, child process becomes a zombie (child process, which dies and parent does not know).

In C language, it would be a wait() function in parent process which reads the return value.

Common workaround for this (if you have no intention in parent process to wait for a return code from child) is to double fork.
It means, your main process A will create new process B, which will start process C. Process B ends immediately, process A can receive its return code  right after starting it. Process C will do whatever is needed (printing labels in your case) and when it ends, it will sent a return code. Its parent process B is already dead, so system will take care of it (process with pid 1 in the past, not sure how that works now). And it will not become a zombie.

Edit:
Here is an example I found at https://stackoverflow.com/questions/10932592/why-fork-twice
The first if sequence is process A after a fork, it will just wait for its child process B to finish.

int main()
{
pid_t p1 = fork();

if (p1 != 0)
{
    printf("p1 process id is %d", getpid());
    wait();
    system("ps");
}
else
{
    pid_t p2 = fork();
    int pid = getpid();

    if (p2 != 0)
    {
        printf("p2 process id is %d", pid);
    }
    else
    {
        printf("p3 process id is %d", pid);
    }

    exit(0);
}
}


In the latest version (0.5.7) the startup menu has been removed, since it was a duplicate feature of the GNOME Session application.

See the release notes:

http://blog.ubuntu-tweak.com/2010/10/10/ubuntu-tweak-0-5-7-released-hello-ubuntu-maverick.html

Apart from that, you could try uninstalling ubuntu-tweak with

sudo apt-get purge ubuntu-tweak

reinstall, and see if it works.

Otherwise you should consider a bug report.


Edit Sudoers file to allow sudo rights to a AD domain group

If group consists of single word then it should be sufficient to add following record to /etc/sudoers file:

%ActiveDirectoryUserGroup ALL=(ALL:ALL) ALL

If group contain spaces then record should look like:

%Domain\ Users ALL=(ALL:ALL) ALL
%Domain\ Admins ALL=(ALL:ALL) NOPASSWD:ALL
%Linux\ Admins ALL=(ALL:ALL) NOPASSWD:ALL

Here "Domain\ Users" , "Domain\ Admins", "Linux\ Admins" is group name in Active Directory


This may not be a complete solution, because I couldn't test all options right now.

The media keys in most modern Linux desktop environments are handled using setting daemon.

XFCE         xfce4-settings: /usr/bin/xfsettingsd
Unity unity-settings-daemon: /usr/bin/unity-settings-daemon
Gnome gnome-settings-daemon: /usr/bin/gnome-settings-daemon
LXDE    #uses openbox, I didn't check
KDE     #uses plasma, I didn't check

I tested only xfsettingsd in openbox session, all media keys work (brightness, switch screen, sleep, print screen) except volume keys.


Make laptop fans always run at maximum speed

I have found the solution. This video really helped me:
https://www.youtube.com/watch?v=pNVPkkmnsWI

Now I'm able to make both fans run at maximum speed (12000RPM).


As mentioned by Adam, Landscape 15.11 is now released. It gives users an option to download the OpenStack Autopilot test drive which allows you to install and run the Ubuntu OpenStack Autopilot entirely in VMware so you will not need hardware. Grab details about the Ubuntu OpenStack Autopilot here


Starting a windowed program in a specific workspace, from command line

Using wmctrl, example gedit:

gedit & sleep 3; wmctrl -i -r `wmctrl -l -p | grep $! | awk '{ print $1 }'` -t 1

gedit & run gedit in backgroud
sleep 3 sleep for 3sec wait for window creation (my machine little bit slow)
$! return PID of previous command (ie: gedit pid)
wmctrl -l -p | grep PID | awk '{ print $1 }' get WID from gedit PID
wmctrl -i -r WID -t 1 move window with WID to 2nd desktop

Another way:

wmctrl -s 1 ; gedit & sleep 3; wmctrl -s 0;

Switch to 2nd desktop, launch gedit, wait 3sec; switch back to 1st desktop

Reference:

how to shift applications from workspace 1 to 2 using command
man wmctrl


This happens because history expansion is performed before alias expansion.

You can force history expansion in your alias by using the history command, using command substitution to replace a command that queries the history with its output:

alias vv='$(history -p !vim)'

but this will not handle filenames correctly if they contain characters that might trigger an expansion, such as spaces. You can avoid this using eval:

alias vv='eval $(history -p !vim)'


I had a similar issue (no wired ethernet after upgrade to 19.10). I lived with that for a while and just used ifup in .bashrc.
But when I took a deeper look into this problem, I got directed by Google to this page.

However, none of solutions above solved my problem. Apparently, I found the solution when tried to change from ifup to netplan. At that moment, I realized that there is a parameter in NetworkManager config (/etc/NetworkManager/NetworkManager.conf) that allows the NetworkManager to control interfaces. I had managed=false there.

Simply changing it to:

[ifupdown]
managed=true

creating an empty file:

sudo touch /etc/NetworkManager/conf.d/10-globally-managed-devices.conf

and restarting NetworkManager:

sudo systemctl restart NetworkManager

solved my issues.


Nvidia drivers just wont work, what do I do?

Would have added a comment, but points wont allow.

See this askubuntu comment I gave some time ago. I'm not using same graphics card as you're doing, but installing your drivers using the Additional Drivers settings from Ubuntu is the easiest and most efficient way I found.

How do I install the Nvidia driver for a GeForce GT 630

I tried installing using .sh from nvidia, amidst other options. I summarize what worked for me in the link above.


How to know the exact command to set as a startup program?

Go to /usr/share/applications directory location (or your respective application location) and right-click to see properties. you will get the command field. This is the required command for you to use it for start-up command.
If it is not in application search the location of the executable file from whereis <nameofprogram>. It will give you many places (you need to search among them, generally from /usr/bin location). Then after finding the exact location of executable file use that path as command in startup application.


Synaptic Package Manager interface is in Thai language. How do I change it to English?

Launch System Settings
in the Personalization section select, Regional Settings
select Language
select Thai click the left arrow moving it back to Available Languages and leaving English as the only Preferred Language
Logout and login

The SPM menus now appear in English.
locale
now results with the Language line changed:

LANGUAGE=en_US

I can still type in Thai in all my applications.  The system language setting changes the languages used in the system and in applications, not the languages available to keyboards.


I took the liberty of downloading the file for you and putting it on github so you can still reach it (hopefully), just install git and type
git clone https://github.com/ppigmans/json


Is it possible to view the contents of a debian package?

Use

dpkg -x somefile.deb somefolder

to extract the file that somefile.deb contains into folder somefolder

Use

dpkg -e somefile.deb somefolder

to extract the control data (package scripts, metadata,...) of somefile.deb into folder somefolder.

Some archive manager let you just browser Debian packages like any other archive file.


Just installed Ubuntu on my Nexus 10... how do I get to a bash terminal?

To my knowledge, a bash prompt is not included by default.


No grub entry for Windows 7 after installing maverick

To restore the Windows 7 bootloader, you must first boot off your 7 installation DVD.
When you get to the Regional settings, select your Location/Keyboard setting then click next. On the next page you must click on Repair your computer.
On the next page, if it finds your Windows Vista/7 installation, make sure it is UNSELECTED before clicking next.Then click on Command prompt.
From there, type in the folowing,

bootrec.exe /fixboot

bootrec.exe /fixmbr
Now close the two windows and click Restart.

Note:

If it din help you,post the results of http://bootinfoscript.sourceforge.net/


How do you configure an SSD correctly for multi-boot with several Linux versions?

When you install an Ubuntu or Ubuntu flavour desktop OS, the Ubiquity (more) or Calamares (used by Lubuntu) OS installers give you the choice of where to install that new OS. They allows\ you to put the OS on the drive without erasing the prior OS, and to shrink the space given to the original OS to give more space to the new version.  Consider that installer your Idiot's guide.

FYI, unless you plan to add Hibernation in Ubuntu to your system after installation, you do not need a separate swap partition, which will make installation choices simpler. Here's more on swap.

The most frequent recommendation I have seen here historically has been 30 GB per Ubuntu instance, but with the growth of Snaps to install new apps, I would suggest 50 GB per Ubuntu instance, as Snaps consume more disk space per app when compared to installing apps using the traditional apt method.

Both OS installers cited above will edit GRUB (more) to add links to boot with the new OS, to the links which allow you to boot with the original OS.

Each Linux you install must have its own /home directory, but can share a common directory for documents and media files. That shared directory can reside on any drive.

A 256 GB SSD gives you plenty of room for multiple versions of Linux, especially since you can put /home for each distro on your HDD.  As you learn more about Ubuntu, you will acquire system maintenance skills which will allow you to clean out files you don't need, and you can resize partitions as needed.


By far the easiest way of upgrading that box is backing up the relevant user data, creating a USB stick (or DVD) for Ubuntu 13.10 and installing a new system.

Otherwise, you would have to upgrade to 9.04, 9.10, 10.04, 12.04, 12.10, 13.04 and then finally to 13.10. All the releases before 12.04 have long reached their EOL and are no longer supported, thus upgrading to them will likely require manual intervention or might even be straight out impossible. Even if you would be willing to try doing so, keep in mind that each of those upgrade steps will take about as long as a fresh install.

tl;dr: Don't upgrade, reinstall.


How to connect to another Ubuntu machine using the same router but one is connected through LAN and the other is through WLAN?

If the two machines are in the same network (same ip adress range), it does not matter if connected with lan or wlan.

What does you mean with connect? There are different methods to "connect".

One is VNC There for you have to install a vnc-server on one machine and
a vnc-client on the other. Then you can connect via vnc and remotly connect to the xserver(desktop).

Another method is to use SSH(SecureShell). Then you can connect to the terminal of the server machine.


Is it possible to create a shortcut/symbolic link to a folder in unity launcher?

For adding application launchers, see this more generic question:

How can I edit/create new launcher items in Unity by hand?

I think, you are asking to add a launcher pointing to a location which will be opened  with nautilus upon click.

To do so, Follow this:

First create a file naming custom in your desktop.
Open the file with a text editor (such as gedit or leafpad etc) by double clicking it
Copy the below lines and paste them in the file

[Desktop Entry]
Name=Custom location
Comment=Location
Exec=nautilus /mnt
Icon=nautilus
Terminal=false
Type=Application
StartupNotify=false

Change /mnt in the line Exec=nautilus /mnt with a desired location.
You can also change the string in Name=Custom location line.

Save it by pressing Ctrl + S
Then again rename the file, pressing selecting it and pressing F2. Add a .desktop at the end of the file.
Copy the file to your desired location. Note, if you delete the file later, the launcher will not work. I assume you copied it in ~/.local/share/applications folder.
Then select the file and drag and drop it in the Unity launcher.

That's it. A new launcher will be created which will open the desired location when clicked.


Gnome Shell mouse shortcut to switch workspace

Install easystroke, it allows you to define a mouse gesture to emulate keybinding, execute shell commands, hold down modifiers and emulate a scroll wheel http://sourceforge.net/apps/trac/easystroke/

sudo apt-get install easystroke


Ubuntu Server 18.04.2 won't boot after complete install

I had this problem with my old AMD Phenom board when setting up my home server. There's some bug with the live installer for 18.04 where it went through the installation process, but never actually made the drive bootable. What's weird is it worked fine in a virtual machine for testing, but not on my real hardware. Try downloading the full fat installation image instead of the live one. It worked on mine when the live installer didn't.

Just go to the download page and under the server section click the "traditional installer" link.


Cannot boot from K/Ubuntu install disk on my UEFI system

Just an update:  I was able to get video by supplying "noacpi" and a VGA mode; one of the numerous Ubuntu articles about UEFI was helpful here, though the specific paragraph about trying out various parameters seems to have been edited out.

My Origin system appears to use different verbiage to indicate whether to boot from USB using legacy or UEFI; in my case "legacy" was indicated by "PMAP".


Synaptics Touchpad unrecognized after Suspend in Ubuntu 14.04 on Dell Inspiron 11 3147

I see that you have a synaptics touchpad. Reloading the psmouse module won't help here.

try:

sudo modprobe -r i2c_hid && sudo modprobe i2c_hid

that might do the job.

Then you can adapt the solution from http://ubuntuforums.org/archive/index.php/t-2182922.html , by replacing the appropriate kernel module and let it reload on wakeup.


cannot compile gcc or g++ libc_nonshared.a not recognized

It seems you have corrupted /usr/lib/x86_64-linux-gnu/libc_nonshared.a file, try reinstall libc development files:

sudo apt-get --reinstall install libc6-dev


ssh session (from ubuntu to centos) prompt delayed after a while

It's hard to tell what may cause this but in my opinion it looks like a normal connection delay, this can be tweaked by modifying the way you connect to centos.

Edit your /etc/ssh/sshd_config : Compression yes to use compression, and service ssh restart on server side to disable dns lookup.
Force IPV4 or IPV6 ssh -4 user@host or ssh -6 user@host

(Also changing the authentication method can help)


Cuda installation on msi with two graphics card

I had the same problem when installing CUDA 7.0 on my GS60 (HD4600 + NV860M), do not install the OpenGL, it will overwrite your correct display packages which causes your problem.

My suggestion is to use --no-opengl-libs when running the install runfile, I have solved my problem with this. For the detailed tutorial, you can refer to the official documentation or my another answer.

Hope it will help you.


If you really want to use texlive 2011, check this blog which contains a script to automate the installation on Ubuntu. I hope this helps


In Ubuntu windows and menus in GNOME looks like KDE

I had the same problem (Ubuntu 13.10) when I tried kubuntu-desktop today, and I found two annoying packages in my terminal with some regex → gtk2-engines-oxygen gtk3-engines-oxygen. So I tried to remove them with the following command and it works.

sudo apt-get autoremove gtk2-engines-oxygen gtk3-engines-oxygen

Hope I helped you.


Because you are using Nvidia's binary driver, try configuring your screen using Nvidia's settings utility (nvidia-settings - both executable name and package name).

For dual screen 'extending screen' configurations set the Configuration to TwinView, like this:

You may need to re-trigger the detection of just connected displays by hitting the Detect Displays button.

Don't forget to Save to X Configuration File if you like to keep your settings persistent across reboots. You may need to run nvidia-settings with root privileges by prepending the command with sudo or gksu.


Is using Ubuntu Minimal any different from Server?

Minimal CD installation:

The Minimal CD will download packages from online archives at installation time instead of providing them on the install CD itself. Downloading packages at install time reduces the size of the install CD to approximately 5 to 20MB depending on architecture, as well as providing only the packages needed for installation. The download time savings achieved by using a Minimal CD can be significant, as only current packages are downloaded, so there is no need to upgrade packages immediately after installation. The Minimal CD uses a text-based installer like the Alternate CD, making the CD image as compact as possible.

Basically you get whatever is needed to get you to command line and you will need to install anything else yourself: so next you install a window manager if you want.
You can use tasksel on the command line to install servers (where you end up with a server install)

Server installation:

The Server Edition provides a common base for all sorts of server applications. It is a minimalist design providing a platform for the desired services, such as file/print services, networking, DNS, web hosting, email hosting, wiki server, version control server.

Basically you get to choose at installation what server applications you want.

Regarding the kernel these should be the basic differences between a server and other installs:

Preemption is turned off in the Server Edition.
The timer interrupt is 100 Hz in the Server Edition and 250 Hz in the Desktop Edition.
The Server Edition is optimized for i686 processors while the Desktop Edition is optimized for both the i586 and i686.
Virtualization is better supported in the Server Edition through the enabling of IPC namespaces, and the Xen hypervisor.
Multiple routing tables for the IPv6 protocol are also supported in the Server Edition.
For 32-bit systems the Server Edition is configured to use PAE which allows addressing up to 64GB of memory while the Desktop Edition is configured for 4GB.

Note: Since 12.10 the Deadline I/O scheduler is the default for both Desktop and Server Editions (previously CFQ was the default for the Desktop Edition).

A minimal install where you install a desktop afterwards will get you an Ubuntu Desktop Edition.
A minimal install where you install servers afterwards will get you an Ubuntu Server Edition but you will need to optimize the kernel yourself.

You would be better off starting with the Desktop or Server Edition instead of a minimal install if you intend to end up with a normal version of Ubuntu.


webex player can be start with wine, But the recorder didn't support linux
download from here
then you have have map the wrf file type open with following command :
for example:

env WINEPREFIX="/home/j30wu/.wine" wine "/home/j30wu/.wine/drive_c/Program\ Files/wbxrecplay/AtAuthor.exe"
-PLAYER


How to tunnel traffic to certain destinations over ssh?

You can use sshuttle as described in How do I route my internet through a SSH tunnel?


Why aren't my songs showing up on my Creative Zen when I put an mp3 file on it using Ubuntu?

try this:

  "I have a 16 GB Creative Zen and it works great with Rhythmbox.
  Open Rhythmbox, plug in your Zen. You'll see it open on the left hand side of the Rhythmbox window. Then you just drag & drop the albums/songs you want from the playlist and onto the Zen icon. Done."

source: http://ubuntuforums.org/showthread.php?t=1647971#post10252697


How to prevent suspension when a program is currently running?

A relatively simple way to do it is by installing a program called caffeine. You'll need to add the repository then install it. For example, via the terminal.
sudo add-apt-repository ppa:caffeine-developers/ppa && sudo apt-get update && sudo apt-get install caffeine && sudo apt-get install gir1.2-appindicator3-0.1 gir1.2-notify-0.7

(N.B. you'll need gir1.2-appindicator3-0.1 and gir1.2-notify-0.7 at the moment due to a bug in defining its dependencies.)
Once you have it installed and running, it should create an entry in the menubar or panel. You can manually prevent suspension, or set caffeine to activate automatically based on what processes are running. In your case, you can whitelist the installation program, such as apt-get. (I'm not sure what that is specifically, since you didn't provide the details.)

N.B. I'm using Kubuntu, where it works well. It should also work in Unity.

Update
New versions of caffeine have been crippled, and much of this functionality has been removed.. I think the old version (2.5) still works, though, so you can try that.


Run Ubuntu from USB vs. Run it natively alongside Windows?

Running through USB (flashdisk,External HDD, etc) is not as faster as running through HDD. So the best one should be running through HDD because the link is more faster using SATA.
You may refer for the speed on this link
Speed comparison.

For the trouble about UEFI you may refer to your motherboard BIOS firmware update. Most of major motherboard company have an firmware Upgrade for their BIOS to comply with Windows 10 Upgrade. Once your motherboard upgraded and support UEFI, there shouldn't be problem using Ubuntu and Windows 10 alongside.
Hope my answer can help you.


Ubuntu 19.04 word prediction / suggestion / autocomplete

Because I'm Russian, I quite often switch layout from RU to EN, and I have downloaded Xneur to automate this. I don't ever think that this thing do word prediction. I have killed it. Now I can type without predictions. Thank you everyone.


Installation issue with Python3.8, pip, and distutils

An Answer:
The Ubuntu package manager, i.e. apt or apt-get is heavily dependent on a working python; so heavily that it isn't easy to replace or update the python installation.
Also note: As of 20.04, there is no installed python2 in Ubuntu.
Any problems similar to the above; the easy way out is a reinstall.


USB Tethering not working in Ubuntu 17.04?

The problem not on Ubuntu, I faced same issue on Windows 7

By somehow PC can't recognize Android network with DNS, to resolve this issue, are you using any blocking connection app on your android?

If yes disable it then try use USB tethering, if same problem do the following:

Install (Set DNS or DNS Changer) from Google play
Set Google DNS

DNS1: 8.8.8.8

DNS2: 8.8.4.4

Then press connect, after that try enable USB tethering.

It should work


The syntax of ln command is:

ln [options] <target file> [link name]

So, this command should work:

ln -sv /media/fileserver/anotherfile.ods /home/user/anotherfile.ods

The s option creates a symbolic link, if omitted a hard link will be created. v means "be verbose", i.e. ln will show what it's doing.

You could also cd to target's directory first:

cd /media/fileserver
ln -sv anotherfile.ods /home/user/anotherfile.ods

Or cd to destination directory:

cd /home/user/
ln -sv /media/fileserver/anotherfile.ods

If you omit the link name, target's name is used. The above command creates a link to /media/fileserver/anotherfile.ods in /home/user/anotherfile.ods.


For a quick overview of route command (or any commands that you might not fully understand just yet) you can type man route in a terminal and that will give you an overview of the command.

You can also search for man route in google and that will return you the man page for route for online viewing.

Have a look here, the output in your case is pretty straight forwards.

About the link-local entry it is normal as you can see here.

About your current entries in your route table:

First entry tell you the following:

Any traffic with destination 10.0.0.0 will not be using a gateway (thats the * on the line), will be using a 255.255.255.0 net mask, route is UP (that's the meaning of the U) and which interface the route uses. If you do ifconfig -a you will probably see that your eth0 IP address is within the 10.0.0.0 range, so this is you local network route.

Third entry tells you the following:

If any traffic does not fit the traffic defined on any other rules then use this route. Imagine you want to visit www.yahoo.com.  The address will be translated (I don't know what the exact result, but it won't be in the 10.0.0.0 range for sure).  Since it won't fit on the 1st or the 2nd route, it will be routed using the RTA1025W.home gateway. The metric will not matter and it will be using the interface defined on the default route line.


you could run your program through strace to see which files it tries to open , this should show you where its trying to find the file.

-f means keep tracing into forked parts of the program

-e open   means only show 'open' syscalls , it would be too verbose otherwise.

strace -f -e open /path/to/your/program


How can I turn off alt-right mouse button function in 12.10?

Install the compizconfig-settings-manager package and run ccsm. At General | General Options | Key bindings | Window Menu click on Alt<Button3>, de-select Enabled and click OK.

P.S. If this doesn't work, assign a different key to Window Menu. Thanks to Morichalion.


Login loop when trying Unity or Gnome, no problem with OpenBox or LXDE

After much pain, I found out it was a problem with my graphic card drivers. I have an AMD 8570 HD.

Solution

Get rid of ATI's propietary drivers and install the open source ones from Ubuntu. It will be necessary to purge fglrx* and make sure you install everything cleanly. There are lots of guides on askubuntu or ubuntu-related websites.


How to find who uses Ctrl-Alt-Back combination?

Ctrl + Alt + Left is set by default to Switch to Workspace Left.

You can change it in:

System Settings >> Keyboard >> Shortcuts >> Navigation >> Switch to Workspace Left.

To free Ctrl + Alt + Left, click the setting then type the new accelerator combination that you want to replace it with.

(Note: You typed Ctrl+Alt+Back but the image from your program shows Ctrl+Alt+Left)


No internet after installing ubuntu 12.04

Ubuntu 12.04 is very old.  There is a great possibility your newer hardware is not supported properly.  I would advise you to install the latest Ubuntu 16.04 and see if the problem persists.


I wrote a little manual how to fix this.
Note: that it is only for 64-bit. architecture.

wget https://cloud.urshulyak.com/index.php/s/kcBfJQDyQABcbjz/download &&
mv download jdk-8u5-tuxjdk-b08.tar.gz &&
tar -zxvf jdk-8u5-tuxjdk-b08.tar.gz &&
sudo mv jdk-8u5-tuxjdk-b08 /usr/lib/jvm &&
rm jdk-8u5-tuxjdk-b08.tar.gz

Script to start Intellij Idea
*only note that need to change IDEA_HOME location for your path of idea
#!/bin/sh

IDEA_HOME=/opt/idea
# for old idea JAVA_HOME, for new 2016+ will be IDEA_JDK
#export JAVA_HOME=/usr/lib/jvm/jdk-8u5-tuxjdk-b08/

export IDEA_JDK=/usr/lib/jvm/jdk-8u5-tuxjdk-b08/
export _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=lcd \
                      -Dsun.java2d.xrender=true"
export GNOME_DESKTOP_SESSION_ID=this-is-deprecated
exec $IDEA_HOME/bin/idea.sh "$@"

Result:


So far there is an UI toolkit available and design guidelines to go with it:

API documentation for the Ubuntu User Interface Toolkit
Design guidelines

Also, there is a tutorial to make a currency conversion application.

For more information, see the Go mobile page.


I was having the same issue on 12.10. Everything worked fine in 12.04, but the problem started when I upgraded to 12.10 yesterday.

I figured out that I was just misunderstanding the wording of the 12.10 Brightness and Lock settings. There are two parts. "Turn screen off when inactive for:" x minutes, which determines when the screen turns off. Then "Lock screen after:" x minutes determines how long after the screen goes off to activate the screen lock. So you have to add the two times to get the total time after which the screen will lock. Hope this helps.

I found the solution here: https://bugs.launchpad.net/ubuntu/+source/gnome-screensaver/+bug/1063682


Netplan apply fails on udevadm settle during 20.04 autoinstaller

This actually turned out to be due to an error in my
storage
section of the autoinstaller config, and not really due to Netplan per se.
My server has 2 disks that I wanted to configure in a software RAID using
mdadm. Since I'm using BIOS boot and a gpt partition table I created a 1MB
un-formatted partition for grub on each of my drives as adviced in the
curtin documentation.

If the host system for curtin has been booted using UEFI then curtin will
install grub to the esp partition. If the system installation media has been
booted using an MBR, grub will be installed onto the disk’s MBR. However,
on a disk with a gpt partition table, there is not enough space after the MBR
for grub to store its second stage core.img, so a small un-formatted
partition with the bios_grub flag is needed. This partition should be placed
at the beginning of the disk and should be 1MB in size. It should not
contain a filesystem or be mounted anywhere on the system.

In addition to this however I erroneously assumed that I had to create a RAID
for these 1MB partitions as well, which is not necessary. The error message
that had eluded me was found in the syslog (curtin_log.<pid> identifier), and
not mentioned in the regular subiquity logs (/var/log/installer and
/var/crash). It could also be seen in curtin's own logs (/var/log/curtin)
which I was previously unaware of.
# /var/log/curtin/install.log
# wrapped for readability
An error occured handling 'md0-bios-boot': ProcessExecutionError -
    Unexpected error while running command.
Command: ['mdadm', '--create', '/dev/md0', '--run',
    '--metadata=default', '--homehost=ubuntu-server', '--level=raid1',
    '--raid-devices=2', '/dev/sda1', '/dev/sdb1']
Exit code: 1
Reason: -
Stdout: ''
Stderr: mdadm: no free space left on /dev/sda1
        mdadm: no free space left on /dev/sdb1
        mdadm: create aborted

finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: FAIL: configuring raid: md0-bios-boot
<some more noise from curtin>

This seems to have triggered an unhandled udev event and the reason why
udevadm settle returns with exit code 1, halting Netplan and the installer.
Odd how the exit code 1 from mdadm in curtin wasn't enough to also crash it
before it got to Netplan.

Removing this part of my storage config fixed the problem,
- id: md0-bios-boot
  type: raid
  preserve: false
  raidlevel: 1
  devices:
    - sda-bios-boot
    - sdb-bios-boot
  name: md0
  ptable: gpt

The full storage config:
storage:
  config:
    - id: disk-sda
      type: disk
      preserve: false
      ptable: gpt
      wipe: superblock
      grub_device: true
      path: /dev/sda

    - id: disk-sdb
      type: disk
      preserve: false
      ptable: gpt
      wipe: superblock
      grub_device: true
      path: /dev/sdb

    - id: sda-bios-boot
      type: partition
      preserve: false
      device: disk-sda
      number: 1
      size: 1MB
      flag: bios_grub

    - id: sdb-bios-boot
      type: partition
      preserve: false
      device: disk-sdb
      number: 1
      size: 1MB
      flag: bios_grub

    # NOTE: part that had to be removed
    - id: md0-bios-boot
      type: raid
      preserve: false
      raidlevel: 1
      devices:
        - sda-bios-boot
        - sdb-bios-boot
      name: md0
      ptable: gpt

    - id: sda-root
      type: partition
      preserve: false
      device: disk-sda
      number: 2
      size: -1

    - id: sdb-root
      type: partition
      preserve: false
      device: disk-sdb
      number: 2
      size: -1

    - id: md1-os
      type: raid
      preserve: false
      raidlevel: 1
      devices:
        - sda-root
        - sdb-root
      name: md1
      ptable: gpt

    - id: md1-os-rootfs
      type: format
      preserve: false
      volume: md1-os
      fstype: ext4

    - id: mount-rootfs
      type: mount
      device: md1-os-rootfs
      path: /


How to remove all LVs VGs and Partitions On All Drives Before Installing 12.04

Just for the sake of this question, I just encountered the same problem and here's how I fixed it (all these commands were entered from a live session) :

sudo vgdisplay

then I located the group name to delete

sudo vgremove <groupname>

said yes to all questions.

Then, I could manually format the whole device thing with GParted.


If you are going to install Ubuntu using Wubi,you do not need to burn anything.

Wubi will install Ubuntu inside your windows system.Installing Ubuntu from an .iso file which you burnt in a usb or a CD will install Ubuntu at another partition.

My guess is that at the download page of Ubuntu you clicked the "Download" button at the bottom instead of the "Start Download" button at the top right.

You can download Wubi (which comes in the form of a windows executable file .exe) at this link.

From this link you can download Ubuntu 12.04 LTS in an .iso file which you have to burn.

Do not know how to burn an .iso in windows?Microsoft already has a tutorial for you.


You need to change the value of the variable PS1 on the bash config file:

Open (or create) the file ~/.bashrc
At the end, add this line:

PS1="bash \v\$ "

Save the file and open a terminal.


There is only one explanation why the time reported by date and the timestamp on a touched file would differ: the file you are touching is located on and NFS server and the server's time doesn't match the client's.

Check the time on the NFS server.


Turns out it was something I did with Steam, I installed some bad unreliable packages while trying to make Steam open.


I figured it out.  It's the "Easy Youtube Video Downloader".  Apparently they now had advertising tied to it.  Once I disabled this extension, the problem went away.


Android phone: how do I play MP3s on my hard drive over WiFi?

VLC

The VLC media player claims to be able to do so. There is a beta VLC player available for Android phones.


Sound card doesn't support midi. How can I play midi output in real-time?

With the -iA option, Timidity runs as a daemon to output the data in real time to the sound card.


Set power_dpm_state to low with AMDGPU on Xubuntu 18.04

It is totaly normal.
You approach is OK, but you misunderstood the wiki as the following explains

  The power_dpm_state file is a legacy interface and is only provided
  for backwards compatibility. The amdgpu driver provides a sysfs API
  for adjusting certain power related parameters. The file
  power_dpm_state is used for this. It accepts the following arguments:

  battery
  balanced
  performance

So you just can't send low to power_dpm_state file.

  The amdgpu driver provides a sysfs API for adjusting certain power
  related parameters. The file power_dpm_force_performance_level is
  used for this. It accepts the following arguments:

  auto
  low
  high
  manual
  profile_standard
  profile_min_sclk
  profile_min_mclk
  profile_peak

to change the setting you have to use

echo "low" | sudo tee  /sys/class/drm/card0/device/power_dpm_force_performance_level


man ./named.8 will work. man will take a filename as an argument, but if the argument "looks like" the name of a manpage, it will assume that it is, and not check for a file of that name. By adding ./ to refer to a file in the current directory, you make it clear that it's a filename, and so man will treat it as such. You could also use a full absolute path.


Problem with using remote desktop application via citrix web client

I've had this problem many times.  I find that if i take the app out of fullscreen mode the problem goes away.  So don't maximize the window, just make it as big as you can unmaximized.


Use GParted as indicated in the comments above. You have to use it outside of the Ubuntu installation, as you can't format Ubuntu's partitions while it is using them. You can use a live environment disk, like the installation disk you used - if you don't have it you can download it from here. You can also use a Gparted Live disk, available from here. Boot from one of those disks. and open GParted.

You need to Unmount before you can do anything. Then right-click, Format to →, ntfs. Then Press the  tick to apply the changes:

Remember to backup any data beforehand.


Black screen with REGION_VIOLATION while trying to install Ubuntu dual boot

Your video card is causing your problem.

When you see the keyboard/stick figure, hit the down arrow key. Then F6 and enable nomodeset. Then continue with the install.

If that doesn't work for you, if you've got a desktop machine with an onboard video port, reconnect the video monitor to the onboard port, pull the video card, install Ubuntu, and then reconfigure it all back the way it was.

You'll probably have to manually install the correct Nvidia driver for your card.

Update #1:

Boots to Windows. Can't boot Ubuntu. Don't see GRUB menu... Boot to the Ubuntu Live DVD/USB and install boot-repair. Run it and accept the default repair.

Update #2:

Ubuntu now boots, but crashes... Disable secure boot in your BIOS. Then go to the GRUB menu, and hit the e key (to edit). Using the arrow keys, find the line that contains "quiet splash" and change it to "quiet splash nomodeset". Then hit F10. Once booted, open Software & Updates. Go to the Additional Drivers tab. Find the video card and install the proprietary video driver. (If you have Intel processors, then you may also see intel-microcode. Enable that too.) Then reboot.

Update #3:

User installed a fresh 17.04 (instead of 16.04), then did Updates #1 & #2, and all is well now!


Can't install vmware tools after update - Lubuntu 16.04

I could not reinstall open-vm-tools even after purging. Hence I tried with vmware tools and got this error. I can't provide a solution for it but playing around more, I removed vmware tools again and installed open-vm-tools (and open-vm-tools-desktop, the package causing the error!). And for some unknown reason now it worked.

I rebooted and still no copy&paste but resizing worked. I googled further and found the solution in below question:

Copy/paste and drag&drop not working in vmware machine with Ubuntu

Go into VM / Settings / Options / Guest Isolation
UNCHECK bothcheckboxes (Enable drag and drop, Enable copy and paste) and click OK.
Shut down the guest, and shut down VMware Workstation
Reboot the host computer
Run VMware Workstation but do not launch the guest yet.
Go into VM / Settings / Options / Guest Isolation for the guest, and
CHECK both checkboxes
Power On the guest.

And now copy&paste works again with open-vm-tools


I don't know of any official ubuntu server hardening document, but hopefully the following will give you a good starting point:

NIST (National Institute of Standards and Technology) publishes guidelines on how to secure *nix systems. This is what the big boys use as a starting point (DOD, Army, Etc.).

Also check out this SANS institute paper.
This list is also a good rule of thumb.

You can use tools like Nessus, OpenVAS, and other vulnerability scanners to give you an idea of what ports and services need to be shut down, as well.

The National Vulernability Database is a good site to cross reference your software configuration against, as well.

If you are trying for compliance with ISO 27001, Then ISO should have documentation and checklist for this sort of thing (although it's a B*tch to look through).

Sorry if this is too general, I hope it helps.


How do I let other users access my /media/[username]/HARDDRIVE with Ubuntu 12.10?

You need to add an entry in fstab to tell it where to mount, and also tell it what permissions it should have.  Currently you're letting it automount which is limiting other user's ability to access it.

As near as I can judge, you should add an entry to /etc/fstab which looks like:

LABEL=STORAGE /media/username/STORAGE ntfs-3g  dmask=111 fmask=111  0   0

Which should give everyone all access to the files and directories except for execute.  If you want others to be able to read but not write you would use a dmask/fmask of 113.  The mask is the exact opposite of the permissions that you want to allow (that's why it's called a mask).  Each number is the octal representation of the binary permissions:

000 = 000 000 000
111 = 001 001 001
777 = 111 111 111

and these bits read

rwx(owner) rwx(group) rwx(world)

Normal permissions to allow anyone to do anything at all are 777 (dangerous!)  however if you give 777 as the dmask, it makes the actual permissions 000.

Note that LABEL=STORAGE relies on the drive having the label "STORAGE" that fstab can use as a hook.  This way, any device that you plug in with the label "STORAGE" will be mounted this way.


Wifi is connected but internet can't be accessed

Maybe it is a proxy related problem.
When I shutdown OS with proxy software on, I can't access the Internet the next time when boot into this OS.
In this case, open proxy software again may solve the problem.


Change SciTE background colour when Find highlights the word I'm looking for?

That property can be changed by editing /usr/share/scite/SciTEGlobal.properties and then changing this lines:

selection.fore
selection.back
selection.alpha

which are BTW used for setting the colors for displaying selected text.

For example, for yellow background and red text, without translucency, it would look like:

selection.fore=#FF0000
selection.back=#FFFF00
# selection.alpha


I was new to Ubuntu 2 years ago, and also to Gimp. I still have much to learn about Ubuntu and Gimp. I do a lot of picture editing, resizing, compressing for websites, color adjusting, etc., and I have fallen in love with Gimp. What helped me a great deal was the Gimp Lite tutorial on their site.

Now to your problem. This is just a guess, but I think it may be a lack of sufficient memory, or video memory on your system. Those are the only times I've seen what you are describing show up. I've never had any issues with Gimp not working at all. Maybe some folks can give you an analytical way to know if this is the issue.

If you know the following information, please post it for me to review:
1. Processor - Make, Model, Cores
2. RAM on your computer
3. Video Ram on your video
4. What size pictures are you working with? If they are very large from newer high mega pixel cameras, have you tried to resize them to see if you still have the issues when you work on them?
5. Are you using Gimp with a lot of other programs open?


Umlaute not working anymore after Upgrade to 20.04

Somehow you have defined your Right Alt key as the compose key. To go back to the original behavior:

Install the gnome-tweaks package (if not installed already)
Open Tweaks and select Keyboard & Mouse
Open the Compose Key menu and disable it (or define some other key but Right Alt as the compose key)


The easiest way is when you unzip them. If you uncheck the "preserve paths" option (it may have a different name in your zip tool), the folder structure will be ignored during the unzip process, and everything will get put into one folder.

For unzip this would be the option -j to junk paths:

unzip -j archive.zip

Edit: I must share credit for the correct answer with Takkat. The first paragraph was my answer, but the next two lines were Takkat's.


How do I search for available packages from the command-line?

To search for a particular package by name or description:
From the command-line, use:
apt-cache search keyword

where the search keyword can be all or part of a package name or any words used in its description.
For example, apt-cache search proxy includes both these packages:

tinyproxy - A lightweight, non-caching, optionally anonymizing HTTP proxy
tircd - ircd proxy to the twitter API

Note: the list may be long, so you can pipe the output to less to make it scrollable one line or one screen at a time, i.e. apt-cache search something | less.

To get a list of ALL packages
apt-cache search .

Use Synaptic if you have X-forwarding enabled or are on a desktop
Synaptic is often a more convenient way to do this, but requires at least an X server on your end (unless you're running a desktop environment). Install with sudo apt-get install synaptic if necessary.

Synaptic on ssh'd server via X forwarding:

Synaptic running locally on Ubuntu Desktop:


Lenovo IdeaPad 530s fingerprint not detected

Record a fingerprint:

Open the Activities overview and start typing Users.
Click on Users to open the panel.
Press on Disabled, next to Fingerprint Login to add a fingerprint for the selected account. If you are adding the fingerprint for a different user, you will first need to Unlock the panel.
Select the finger that you want to use for the fingerprint, then Next.
Follow the instructions in the dialog and swipe your finger at a moderate speed over your fingerprint reader. Once the computer has a good record of your fingerprint, you will see a Done! message.
Select Next. You will see a confirmation message that your fingerprint was saved successfully. Select Close to finish.

Check that your fingerprint works:

Save any open work, and then log out.
At the login screen, select your name from the list. The password entry form will appear.
Instead of typing your password, you should be able to swipe your finger on the fingerprint reader.

P.S.
You need administrator privileges to edit user accounts other than your own.

EDIT
Try using these

sudo apt-add-repository ppa:fingerprint/fingerprint-gui && sudo apt-get update

sudo apt-get install libbsapi policykit-1-fingerprint-gui fingerprint-gui


Third party application Icon not displaying in dock for Ubuntu 17.10

First right click on the .desktop file and select Properties. Then go to Permissions tab and check the "Allow executing file as program" if it's unchecked. Alternatively you may run

 chmod +x <filename.desktop>

Then double-click on the .desktop file, a window with the heading "Untrusted application launcher" should pop up (as in your second screenshot). Click on the "Trust and Launch" button. The .desktop file should be fixed now (i.e. should show correct name and icon specified inside the file) and the application will be launched.

From next time on it won't ask for any permission and launch the application straight away.


What sites offer installing Ubuntu packages with apturl

You can use http://apps.ubuntu.com

For exmaple, To install VLC from this site you can link like this:

http://apt.ubuntu.com/p/vlc

Instead of the normal apt-url:

apt://vlc

which doesn't work on ask-ubuntu


Why don't shortcut keys change when keyboard layout changes?

This is a known bug in GTK: https://bugzilla.gnome.org/show_bug.cgi?id=162726 -- although it is resolved as "fixed" based on the comments it seems the problem still exists :-/

The problem with this situation is that it is unclear whether it's a bug or a feature: In some (say, for example, Arabic) countries it is rather common to switch between two keyboard layouts during work (say, for programming vs. writing emails in your language). For these users it is more convenient having application shortcuts (like Ctrl+C for copy) always mapped to the same "physical" key, regardless of its meaning in the current keyboard layout -- most users have for example the copy&paste combination Ctrl+C/Ctrl+V deeply engraved in their "muscle memory". So, there does not seem to be a simple solution or fix that makes everyone happy...


How to get AppIndicator icons back in the top bar on GNOME 3.16+?

As of Ocbober 2016, Using Ubuntu 16.04 with gnome-shell, you can use the extension at

https://extensions.gnome.org/extension/1031/topicons/

It achieves the desired result.


How to get simulate Keyboard typing using python

Seemingly type out text with an arbitrary speed

Since you want it to seemingly be typed out, you probably would like the characters to appear not too fast.

You can use the code below to open a text file and seemingly "type" it anywhere.

#!/usr/bin/env python3
import subprocess
import time
import sys
# open the textfile
text = open(sys.argv[1]).read().strip()
for ch in text:
    # type out the text
    subprocess.call(["xdotool", "type", ch])
    # increase or decrease the time below to type slower or faster
    time.sleep(0.1)

How to use

You'll need xdotool to be installed

sudo apt-get install xdotool

Copy te script into an empty file, save it as type_out.py
Run it with the text file as an argument:

python3 /path/to/type_out.py <textfile>

In case you'd like it to type into anything, you might want to add a small break before it to run, to be able to prevent it from starting to type while you're not ready yet...

That's it!


Windows won't boot after installing Ubuntu 18.04 (Boots to Recovery screen)

I'm kind of kicking myself. The exact same day I installed Ubuntu 18.04, my hard drive power cable got internally loose (the SATA cable was fine)

I found this out by booting into Ubuntu, opening Nautilus, going to "Other Locations" and noticing the Windows hard drive was not showing up. So then I got curious, because I KNEW it SHOULD show up.

So I cracked open the computer with a headlamp and noticed the cabling to the hard drive seemed wrong. I plugged it back in WHILE Nautilus was running and it just "popped up"!

Then I just rebooted and grub launched windows just fine. Crazy coincidence


Importing iTunes Music Library in Rhythmbox

I faced the same issue and wrote migrate-itunes-to-rhythmbox. It will convert your playlists, play counts and ratings to Rhythmbox. It was written in 2016 and tested with iTunes 12.5.1 and Rhythmbox 3.4.


Running Ubuntu from a USB: Failed to load ldlinux.c32

Thank you, Android Dev! I used the Universal USB Installer instead of Rufus. It threw an error on the first boot-up attempt ("vesamenu.c32: not a COM32R image") which was easily solved by pressing Tab and then typing "live" to select the proper image. I'm now typing this edit on my USB live version of Ubuntu!


copy local file to remote server in ubuntu terminal

From man scp:

 scp [-12346BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
     [-l limit] [-o ssh_option] [-P port] [-S program]
     [[user@]host1:]file1 ... [[user@]host2:]file2

Note that both host specifications include :. scp uses the : to determine whether the argument is a hostname or just another file. So, you need to include a : after the hostname:

scp thefilethefilethefile.txt theserver@theserver.com:

The remote path is optional: if not given, it defaults to the home directory on the remote server.


How to generate thumbnails in advance (pdf mostly)

Thanks to the comments I decided to use one of the scripts from this recommendend AskUbuntu post.

I just copied it to a file, saved it to my ~/bin (in my case as generate-thumbnails) and issued chmod +x on it. Then I just navigated to the ~/Documents folder and ran generate-thumbnails * I don't know How long it took, but when I  woke up the next, all was good.

Be aware that you might need to install gir1.2-gnomedesktop-3.0:

sudo apt-get install gir1.2-gnomedesktop-3.0

Since it doesn't waste time generating duplicates, it would be a low impact cron job (after the first run).

From a terminal prompt crontab -e If it is your first time editing the crontab, it will ask you to choose an editor. I just use nano and I'll give the keyboard commands for it.

Add the following to the end...

0 4 * * * /home/user/bin/generate-thumbnails /home/user*

Ctl o   Will save the file.
Ctl x   Will exit. (it you have a syntax error it'll let you know and you can just crontab -e again. This sets up cron to run at 4am every morning.
If you want to change it or look at other cron options.. https://help.ubuntu.com/community/CronHowto is a good place to find out options.

Main reasons for running this script:

it will recurse through sub-directories
it is aware of duplicates
it works equally well for videos
it will work in other DE's (I switch often based on what I'm doing)
it would be good for a cron job

Here is the script.... (Thanks James Henstridge !!

#!/usr/bin/env python2
import os
import sys

from gi.repository import Gio, GnomeDesktop

def make_thumbnail(factory, filename):
    mtime = os.path.getmtime(filename)
    # Use Gio to determine the URI and mime type
    f = Gio.file_new_for_path(filename)
    uri = f.get_uri()
    info = f.query_info(
        'standard::content-type', Gio.FileQueryInfoFlags.NONE, None)
    mime_type = info.get_content_type()

    if factory.lookup(uri, mtime) is not None:
        print "FRESH       %s" % uri
        return False

    if not factory.can_thumbnail(uri, mime_type, mtime):
        print "UNSUPPORTED %s" % uri
        return False

    thumbnail = factory.generate_thumbnail(uri, mime_type)
    if thumbnail is None:
        print "ERROR       %s" % uri
        return False

    print "OK          %s" % uri
    factory.save_thumbnail(thumbnail, uri, mtime)
    return True

def thumbnail_folder(factory, folder):
    for dirpath, dirnames, filenames in os.walk(folder):
        for filename in filenames:
            make_thumbnail(factory, os.path.join(dirpath, filename))

def main(argv):
    factory = GnomeDesktop.DesktopThumbnailFactory()
    for filename in argv[1:]:
        if os.path.isdir(filename):
            thumbnail_folder(factory, filename)
        else:
            make_thumbnail(factory, filename)

if __name__ == '__main__':
    sys.exit(main(sys.argv))


In case you are still wondering. Download this driver for linux:

http://support-asia.canon-asia.com/contents/ASIA/EN/0100586502.html

Unzip and execute the install.sh script:

./install.sh


Disable GPUScaling with Nividia binary driver 304

There are still options described in the documentation for xorg.conf.

Option "FlatPanelProperties" "string"

  This option requests particular properties for all or a subset of the
  connected flat panels.

  [...]

  Recognized properties:

  "Scaling": controls the flat panel scaling mode; possible values are:

  'Default' (the driver will use whichever scaling state is current),
  'Native' (the driver will use the flat panel's scaler, if possible),
  'Scaled' (the driver will use the NVIDIA GPU's scaler, if possible),
  'Centered' (the driver will center the image, if possible),
  and 'aspect-scaled' (the X driver will scale with the NVIDIA GPU's scaler,
  but keep the aspect ratio correct).

So you either use Native and have the image scaled by the flat panel or Centered and have no scaling applied at all.


Thanks to Jacob Vlijm an issue was found in ~/.local/share/applications/jetbrains-webstorm.desktop that there was saved an old version of Webstorm ... Seems like when I pressed "Lock to Launcher" the file ~/.local/share/applications/jetbrains-webstorm.desktop was not overridden, but in this file was wrong path to Webstorm


Disable numlock warning on lock screen for notebook

This bug has recently been fixed in a Unity update for 16.10: https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1526322/comments/9


Gimp too complicated; Pinta/GnuPaint/etc. too simple

There is krita from KDE, that might be worth a try.


Display too dark on an Acer emachines E725

Thanks to Francis Lalnunmawia. Your solution is great. But if you

place /usr/bin/setpci -s 00:02.0 F4.B=80 in your /etc/rc.local file

so, your solution will be perfect.

You can see the link
Acer emachines e725 black screen


.local name resolution only works during reboot of server

A bug report at https://lists.ubuntu.com/archives/foundations-bugs/2012-December/129282.html hints at the following workaround alternatives:

sudo start avahi-daemon -- this would need to be done after every boot
modify /etc/default/avahi-daemon (or similar) with AVAHI_DAEMON_DETECT_LOCAL=0


Your command would be:

iptables -I INPUT -p udp --dport 9 -j ACCEPT

See here for more info on iptables: https://help.ubuntu.com/community/IptablesHowTo

Cheers :)


Upgrade to 14.04.1 to 12.04 by mobile internet

There is a low but relevant risk, that upgrading to another release will damage the data in your home directory or anywhere outside of system folders. Keeping a backup of important data in case of a hardware failure, a software bug, or a user error is a good idea anyway. There's a saying that “data without a backup is unimportant data.”
You should always have a bootable Ubuntu live system on a removable storage medium prepared and handy while upgrading in case the upgrading procedure is stuck in an inconsistent state or booting becomes impossible for some other reason. Downloading that is roughly 1 GB.
The mode of internet connection is irrelevant for the upgrading process, as long as it's stable (which may be a problem with mobile connections depending on the local service). You may need to re-install drivers once you boot the new kernel after the procedure is finished, if it doesn't work out of the box.
I agree with bolzao that the upgrade procedure should download roughly 400–500 MB. If you have an external installation medium (like I suggested to have anyway), you can use it as a package source, so you don't have to download packages twice. Ubuntu should offer you to register its installation medium as a package source as soon as you put or plug it in.


wubi in 13.04 is not in a releasable state. You have to install Ubuntu 12.10 through wubi and then upgrade to 13.04. follow this steps


My tv is cutting the edges off my desktop

I had the same problem with my Samsung TV. Use the remote that came with the TV, push the menu button (or options) on the TV, and look for an option that disables "overscan," or sets the display ratio to 16/9. This may be hiding in an advanced section.

Edit: There are a bunch of articles about this -- search for overscan, 1-1 pixel mode, or "pc mode": http://www.engadget.com/2007/08/20/does-your-hdtv-support-1-1-pixel-mapping/


How do I close Libre Office when closing a document? (default settings for LXSession)

I solved (sort of) this very same issue just by unticking the  'LibreOffice' menu item from Lubuntu's Main Menu dialog.

Hope this helps.
(This should be a comment, but I'm not allowed by my reputation)


How to prevent keyloggers / viruses on my system?

Keyloggers are NOT virusses.
There are plenty of legit reasons to want to install a keylogger.
There is a keylogger in the official Ubuntu repositories in case you did not know.

  but i'm saying for example, I have an infected keylogger file and I open it.. what would happen? Would it execute and just infect my system or would it ask me for root?

"an infected keylogger file" you mean you have software for an Ubuntu system that is basically something that you expect to have a keylogger inside it.

Biggest mistake here: you are not expected to download random software from random locations. In Windows this is common but in Linux you use the official repositories. Those are free of malicious software. Next to that you use a PPA from Launchpad. Those are less secure but they are tested and when someone tries to sneak in crapware it will be noticed very quickly.

ALL other locations: stay away from them unless you can validate the source (the official websites for for instance apache, mysql are obviously safe).

Opening? No, if asked for a password it is not for the text file but for the program you use to open the text file. Executing the file is the issue and the problem.

  okay I don't want to ask too much questions but I just to know if every (or most) type of malware currently on linux requires root access?

No. Well made malware installs itself inside your /home or inside your browser as a plugin and does not require a password. But again: Ubuntu software from the USC and from PPA will not install in /home/ and will use USC and ask for a admin password. Only software you downloaded yourself from an obscure location does that. Why would you download random software from websites you can not validate their reputation?  In my mind if you do you are asking for it.

  Because if it does wouldn't I have to be their to input and allow this ?

Oh but that is always the case.

Currently on Linux systems it is not possible to infect your system with a keylogger that sends out your admin password to somewhere in the world unless you install it yourself from an obscure source. Both the Ubuntu repositories and the PPA's on Launchpad are still considered safe zones in regards to that.

("yourself" here also implies anyone that can have access to your machine when you walk away from it since they then use your account ;) )


I also encountered the issue of the touchpad not working in a LiveUSB session of 14.04. To work around that I simply plugged in an USB mouse, and then it worked fine.

Does this help?


How to create a Windows like restore point using Deja Dup ?

Deja Dup is asking you where you want to store the backup files. It packages them up instead of storing them bare in the filesystem like using the copy command would, so storing them on remote machines or in different locales isn't a problem.

By default I believe Deja Dup only backs up your home directory. An easy way to 'backup' the package-manager-installed packages, you can do dpkg --get-selections > ~/Desktop/installed_packages.txt, and on the new system you can restore it by doing dpkg --set-selections < ~/Desktop/installed_packages.txt and then sudo dselect and going to Install. That will download and install all the packages the package manager had installed on your old system, and by having the installed_packages.txt file on your desktop it will get backed up with the rest of your home directory.

I'm not aware of a way of forcing it to do a full backup, though it may be possible if you read through the documentation for Deja Dup and Duplicity (the program Deja Dup is based on).

Webdav = http://en.wikipedia.org/wiki/WebDAV


Well, most probably your files are perfectly fine before FTP transmission.

Unfortunately, probably you are transferring your files using wrong FTP mode.

FTP do have two modes: binary and ASCII. By default most clients use ASCII mode, which breaks your binary files completely. I don't know which FTP client you are using, but for example in ncftp you can use command "binary" to switch to binary mode.

If you want to create ZIP files using Ubuntu (or almost any other Linux), use zip. You can install it to Ubuntu by running

sudo apt-get install zip

Then you can create zip file by running

zip -r compressed_filename.zip foldername

On related note, you should know that FTP is insecure transmission protocol. Consider switching to sftp, for example. There is many free ssh servers for Windows, including minimal OpenSSH port.


I had the same problem on my Asus eeePC 1015PX netbook. It was working fine on 14.04, but no speaker sound on 16.04.
Quick workaround :

First, open a terminal (with ctrl-alt-T for example), then type alsactl restore : for some reason, this fixes the issue
But the problem re-appears after a reboot. In order to keep it, you can execute this command on each reboot, but you'll loose any sound configuration you might have done. For example, the master sound is by default at 50%

How to keep sound settings after a reboot :
First, run the same alsactl restore command-line, then set the sound configuration as you like (through alsamixer or the GUI). Then you need to store it, and make Ubuntu restore it on reboot :

You can store the config in a local file, for example : alsactl --file /home/username/.config/asound.state store (replace "username" with yours)
Then, in the "startup application" app, add a new startup program, with the following command-line : alsactl --file /home/username/.config/asound.state restore. Note that, for some reason, using ~ instead of /home/username does not work when adding a startup program

Source : http://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/after-ubuntu-15-10-dist-upgrade-sound-only-comes-through-onboard-speakers-doesn't-work-with-headphones-4175572818/


Ubuntu Connects with Amazon Echo as Bluetooth Speaker not Treating that as Speaker

Remove the Echo device from your bluetooth devices if you haven't already.
Go to the Alexa web interface. Go to settings, select the Echo you're trying to connect to, and click Bluetooth.
If you're computer is listed on this page, forget the device.
Then click Pair New Device. Note: Don't click on your computer from the web interface. This always results in the Echo pairing as an input device.
Assuming you have other speakers (or headphones available), you can run bluetoothctl scan on | grep Echo -m 1 | head -1;espeak "Found the echo device" to be alerted when the Echo is available to pair with.
The Echo should now show up in Ubuntu's bluetooth devices list. Note: Having audio playing seems to increase the success of the next step.
Finally, click on the Echo device in your bluetooth device list and connect it. It should connect as a speaker (It may take multiple attempts before it connects).


Can I sync Ubuntu One contacts in Lubuntu?

Simple as downloading and install Ubuntu One and then get evolution to get your contacts back


I can't see my partitions to install ubuntu

Chances are you have one of two problems:

Leftover RAID data -- This can usually be fixed by typing sudo dmraid -E -r /dev/sda at a Linux shell prompt, changing /dev/sda to the device filename, if it's not /dev/sda.
A damaged partition table -- Many problems with MBR partition tables can be fixed with my FixParts program; see its documentation for details. You'll probably need to run the Windows version or run it from an emergency disc like Parted Magic, though.


Problems UEFI booting after software update

I found a solution which works for me:

I just sudo-copied grubx64.efi in /boot/efi/
(from the /boot/efi/EFI/ubuntu/ subdirectory),
so that now I have the file /boot/efi/grubx64.efi

Then I indicated this as a reliable file in the setup.

Now it seems to work.

Thank you, Zanna, for editing, and ubfan1 for your ready answer.


Export landscape PDF from LibreOffce Calc

Turns out that the page orientation has to be set for each sheet individually, which I wasn't aware of.


How can I prevent web apps from appearing in the launcher (waste of launcher space)?

I assume you are running 12.10.  Can you do without the shortcut in the dash as well?  If you can, just uninstall that and the icon shouldn't appear in the launcher.


how to access to a NTFS mounted disk from terminal

Maruf , you said you have mounted that partition. If you mounted a NTFS partition then you are definitely going to mount that partition at a Mount Point.

Assume that mount point /mnt/X , then do as

cd /mnt/X  , So right now you are in NTFS partition and do what you are meant to do.

If this is not you are expecting to read then elaborate your issue and pop more information in box.

Hope that helps.


ssh: connect to host 127.0.0.1 port 2222: Connection refused

Note, that 127.0.0.1 aka localhost is your local machine. Usually at this point you use the IP address or hostname of the remote host.

First install the ssh server and client on your target host and your local host

sudo apt-get install ssh

A configuration isn't necessary.
Per default SSH is listening on port 22, therefore use

ssh user@127.0.0.1 -p 22

or

ssh user@127.0.0.1

Or reconfigure the port for the ssh server (target host)

sudo nano /etc/ssh/sshd_config

and change

Port 22

to

Port 2222

reload the configuration

sudo service ssh force-reload

and connect via

ssh user@127.0.0.1 -p 2222


After upgrade to 20.10 Thunderbird stops with parsing error

I was experiencing the same problem just earlier after installing an official language pack by Mozilla. After closing and restarting Thunderbird, I was shown a popup with the exact same message you posted, and couldn't get Thunderbird running again.
Based on messages in this (German language) forum thread: https://www.thunderbird-mail.de/forum/thread/85658-thunderbird-startet-nicht-bzw-gibt-fehlermeldung-nur-im-safemode-m%C3%B6glich/?postID=468615, others are having the same problem, also after having recently installed or updated language packs.
I managed to solve the problem on my end by moving the offending file (langpack-en-GB@thunderbird.mozilla.org.xpi, in my case) out of Thunderbird's extensions directory. On my system, all my Thunderbird settings, including the exensions directory, reside at /home/MYUSER/.thunderbird/RANDOMSTRING.default.


Reconnecting to Drobo over iSCSI after server reboot

Instead of mountinf /dev/sda1, you can use sudo blkid /dev/sda1 to determine the UUID of the partition and then modify /etc/fstab by replacing (or adding) the line:
/dev/sda1 /drobo ext4 defaults,noauto 0 0
with
UUID=[blikd_result] /drobo ext4 defaults,noauto 0 0
Thus it will follow the current naming of the iscsi session.


I would suggest trying uGet with the aria2 plugin.


20.04 LTS server used as my NAS lost all network connectivity while I was away

I would suggest the following steps to troubleshoot:

Try a different hardware connection to the enp4s0 (cable, port etc) - maybe it's a hardware malfunction.

Try to add the two lines about enp5s0 in your netplan config, and run netplan apply
# This is the network config written by 'subiquity'
network:
  ethernets:
    enp4s0:
      addresses:
      - 192.168.1.177/24
      gateway4: 192.168.1.1
      nameservers:
        addresses:
        - 192.168.1.223
        - 1.1.1.1
    enp5s0:
      dhcp4: true
  version: 2

This will add dhcp4 to the NIC enp5s0 so you can test if that interface connects.
If it works, I also imagine enp5s0 would work with the static IP settings you currently have for enp4s0 with the following netplan config:
   # This is the network config written by 'subiquity'
   network:
     ethernets:
       enp5s0:
         addresses:
         - 192.168.1.177/24
         gateway4: 192.168.1.1
         nameservers:
           addresses:
           - 192.168.1.223
           - 1.1.1.1
     version: 2

Good luck!


How to connect to home computer from work computer behind VPN (using remote desktop viewer)?

The way to go here probably is tunneling your VNC through the SSH session or using a reverse VNC protocol.

The default Ubuntu remote desktop viewer Remmina can be set up to do this.

Provided the  VNC server can tunnel the VNC protocol through SSH you can use any VNC viewer capable of receiving this signals.

We do that here using x11vnc  as the VNC server and vncviewer (of xtightvncviewer ).

If you already had set up VNC on your home computer it is as easy as running

x11vnc -display :0

on your home machine to export display :0 through VNC. This can also be done through an SSH session. Note that for the next step you need to run an SSH server on your home machine.

In your office run the vncviewer with option -via for tunneling through SSH:

vncviewer -via user@home.dyndns.org localhost:0

For a throughout guide see: x11vnc home page.

See the following question on how to connect to your remote machine using lightDM:

Remote login with graphical display manager (GDM, LightDM)


When you are programming something new the docs came first than everything else.

According to the PostGIS description this software only adds a support to a particular type of object, in other terms and simplifying the concept, PostGIS is only a "plugin" for PostgreSQL. Considering this your question is about learning PostgreSQL and not really about PostGIS so i suggest to read the PostgreSQL documentation http://www.postgresql.org/docs/ or search on the internet for PSQL tutorial.


I managed to get my trackpad working by using libinout instead if synaptics.

Wrote up what I tried here: Dell XPS 13 9350 - Trackpad tap works but trackpad click does not


error while loading shared libraries: libgtk-3.so.0

It seems that problems are only happen with Snap'ed applications. Without gtk3 libraries you would not be able even to login to GUI session.

So I would suggest to save its list with

snap list

Then purge all of them by

sudo apt-get purge snapd

And install two problematic applications from deb-packages with

sudo apt-get install gnome-logs gnome-calculator

Optionally you can install Snappy back with sudo apt-get install snapd and reinstall (some of) snaps back then.


Open file or application as root from GUI

To run GUI applications with elevated permissions, you can use the gksu command:

You can check to see if it's installed with which gksu and if so it will output the path to the command. If not you can install it with the command sudo apt-get gksu

$ gksu nautilus           # browse files as root
$ gksu gedit /etc/fstab   # edit file as root

This command is a frontend to the su and sudo commands, designed for running graphical programs, so it is used the same way as them. See the man page for more information.


18.04 (gnome) workspaces - How to manipulate (e.g. arbitrarily reorder) workspaces?

Note: Answering my own question - while leaving the accepted answer because it accurately reflects Gnome status.

There is a project xdotool which is conveniently provided as Ubuntu 18.04 managed packaged.  It offers read and write access to desktops, windows, and their relationships.  (Also many other features I didn't use.)

Using this package it was simple to code the desired functions.  Direct CLI is not useful but linking them to Ubuntu custom shortcuts meant I was, for example, able to move select and move individual desktops up and down with keys while watching the all desktops with Gnomes standard bird's eye view.

The Gnome standard bird's eye is available through "Super+a, Super+a" and then moving the mouse to the right hand side of the screen whereupon all the desktops will appear in a vertical array.

To avoid interference with Gnome, it was necessary to turn off Gnome's dynamic desktops and use the static desktops setting instead.  Using static desktops was suggested in the selected answer.

My complete code is provided as a gist.

As an example, this code excerpt is for swapping desktops:

swaprelative(){
    nbr=$1
    ndt=$(xdotool get_num_desktops)
    if [[ $ndt -lt 2 ]] ; then return 0 ; fi
    adt=$(xdotool get_desktop)
    bdt=$((( adt + ndt + nbr) % ndt ))
    if [[ $bdt == $adt ]] ; then return 0; fi
    if [[ $bdt -lt 0 ]] ; then
        echo "relative neighbor value $nbr is out of bounds"
        return 1;
    fi
    xdotool search '.*' | while read w ; do
        if ! window_has_desktop $w ; then continue; fi
        wdt=$(xdotool get_desktop_for_window $w)
        if [[ $wdt -eq $adt ]] ; then
            xdotool set_desktop_for_window $w $bdt
        elif [[ $wdt -eq $bdt ]] ; then
            xdotool set_desktop_for_window $w $adt
        fi
    done
    xdotool set_desktop $bdt
}

It must be emphasized that the coding was so simple is due to of the power of the xdotool project. That project is not dependent on Gnome, but rather operates in parallel with Gnome accessing the same X primitives. Likely it can be used across a number of different window managers, provided care is taken to avoid mutual interference between the WM and xdotool, (e.g. switching off dynamic desktops in Gnome).


I finally found an answer on this site and will post it here in case it will be helpful for someone else (don't ask me why it works though ;)). Run the following commands in the terminal:

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install freshplayerplugin

Note that I had already installed freshplayerplugin, so I guess the trick was the command line sudo add-apt-repository ppa:nilarimogard/webupd8.


This is probably the wrong site to ask such questions. Nevertheless, here is the answer:
*address is pointing to array[0] which you fill with 2. Then, you put the content of address, which is array[0]=2 into array[2], and print it. As a result, you get 2.


How can I remove Ubuntu and reinstall a fresh Ubuntu 15.04 to my computer?

If Ubuntu is going to be the only OS on your machine, then you're kind of ready already.

Download the correct version of the 15.04 installation .iso file from the Ubuntu downloads page, bearing in mind whether you have a 64bit or 32bit machine. The installer will need to be burnt onto a dvd, or a bootable usb (slightly trickier, but by no means difficult).

You will need to make your BIOS boot from the installation DVD, right at the beginning of your boot process, you'll need to press something like Del to choose your boot media, though this info will flash on screen quickly.

When installing, choose the option to install Ubuntu as your main OS, this will remove any other OS. If you have a particular partition setup in mind, select manual partitioning when you reach that option, but the automatic partitioning works well for most users.

Just remember, so long as you have your files backed up, you can always start again with the installation process so be brave! Good luck!


How do I "connect to server" in Ubuntu 11.10?

From the Desktop (or nautilus window) go to the File menu and select Connect to Server.

You need to have a nautilus window or the desktop selected to see this global menu at the top of screen.


You can always try to run it under Wine, although the versions starting from 8 to 11 are marked as Garbage (http://appdb.winehq.org/objectManager.php?sClass=application&iId=648).


How to customize distribution with predefined user and automatic installation/configuration

What is the best Ubuntu custom distribution creator (studio?) to work with?

All of them lack some (if not most) of the features you list.

I would do this myself (manually). The way to do this is to download an ISO, create a "chrooted" environment with that ISO, hack away, burn ISO to a DVD and boot from it. I have to AU topics that have good info:

How to customize the Ubuntu Live CD?
How to create a Customized Ubuntu Server ISO?

The 2nd one is very generic (works across different releases) since it does not have a desktop and you can add it yourself on top of the server.

Your list with comments, without providing actual methods on how to do each though. I leave that up to you ;-)

(comment: a kickstart file is a redhat feature for automated installers. Ubuntu has limited support for it but it can be a starter to get going).

predefined username to log into automatically with

This can be done from a kickstart file and is pretty normal to change for a personal installer/ISO. So most will have this but is also easily done manually.

predefined session customizations ($HOME customizations for OpenBox, .ssh,.compton, etc...)

Doubt any of those kits can do this. But the manual method can be used to add packages into your own install so you can also create configurations files. Problem here is that you probably will need to recompile from source since the default configs are not human readable.

If possible a far easier method would be to drop a config file from your own machine into /etc/skel/ and move it to the correct location after install.

runs software right after automatic login

Configuration of "startup applications". You only need to edit a text file.

automatic predefined software packages installed (from apt-get, but without internet need)

can also be done from a kickstart file. Or manually: when you create your own ISO you add your files to the DVD yourself using "apt-get" or by copying the archive cache from your machine into the ISO.

variable hostnames (sales00, sales01, sales02, and so on...)

If you already have a host set up like this it will be as easy as copying that file over to your ISO.
set of customized permission of system calls/programs (such as chmod 4755 on /bin/date)
Yuck ;-) You can chmod the file on the ISO. Of course you can also add your own post-install script file to the ISO.

customized /etc/skel for new user (just in case)

Easy with a manual method since that is the method to set up your user. That dir is used to create your user home and files like ".bashrc" with the options/parameters/etc set in /etc/skel.

disable automatic updates

that is a setting ... so can't be more than an edit of "gsettings". By the way: should already be set to "off" so doubt you need to do anything for this.

fresh network adapters configuration (today I have a mess on network adapters from each machine like eth49, eth88,). I wish they have all the same numbers

this one I am not sure about. I would assume these things get created during boot(?!) so doubt it will be something you can set up upfront. But if this is configurable during install I you will be able to add/edit the files you need for this (/etc/network/interfaces or dhcclient )

network adapters predefined static IP: I have three network adapters: one has a fixed IP for all machines (the same IP 1.1.1.1 for this, though), second and third network adapters are configured through my software. So I wish I have a custom installation that configures automatically this 1.1.1.1 IP for that network adapter

you can set this up on the ISO in the same fashion as you would with a normal install.


Looks like GDM is not starting. Try installing it first:

sudo apt install gdm

If it is already installed, I would try to active it:

sudo dpkg-reconfigure gdm

See if that helps :)


Getting error while running sudo apt-get update

I had this same problem. Here's how I fixed it:

First, I executed this shell command in order to add [arch=amd64] back into the Chrome Remote Desktop repository file:

sudo sed -i -e 's/deb http/deb [arch=amd64] http/' "/etc/apt/sources.list.d/chrome-remote-desktop.list"

Then I did the same to the Chrome Remote Desktop cron file:

sudo sed -i -e 's/deb http/deb [arch=amd64] http/' "/etc/cron.daily/chrome-remote-desktop"

After doing that, I executed APT again, just to make sure everything was back to normal as it should be:

sudo apt-get update ; sudo apt-get check


Error mounting samba network drive (wrong fs type, bad option, ...)

You don't have the helper program installed for either the nfs or cifs file system. For nfs based file system, following utility is required

sudo apt-get install nfs-common

To mount a Cifs file system, install the following utility

sudo apt install cifs-utils


Follow the instructions to reset a lost administrative password so that you can run sudo commands
Install the Russian localization by opening a terminal (press Ctrl+Alt+T) and running:

sudo apt install libreoffice-l10n-ru myspell-ru hyphen-ru libreoffice-grammarcheck-ru libreoffice-help-ru mythes-ru

Open LibreOffice
Go to the Tools menu, then Options…
On the left of the window, click the  to the left of Language Settings
Click on Languages

For User interface, select Russian
For Locale setting, select Russian
For Western, select Russian
Click OK
Restart LibreOffice


As mention by user @prometee in this launchpad discussion #1569237, you can find the password in:

~/.vagrant.d/ubuntu-VAGRANTSLASH-xenial64/20161221.0.0/virtualbox/Vagrantfile

or:

~/.vagrant.d/boxes/ubuntu-VAGRANTSLASH-xenial64/20161221.0.0/virtualbox/Vagrantfile

depending on your version of Vagrant. (Note the 20161221.0.0 part of the path will vary depending on when the box was downloaded. Also, there might be more than one in your directory.)

Here is mine (line 8):

# Front load the includes
include_vagrantfile = File.expand_path("../include/_Vagrantfile", __FILE__)
load include_vagrantfile if File.exist?(include_vagrantfile)

Vagrant.configure("2") do |config|
  config.vm.base_mac = "022999D56C03"
  config.ssh.username = "ubuntu"
  config.ssh.password = "fbcd1ed4fe8c83b157dc6e0f"

  config.vm.provider "virtualbox" do |vb|
     vb.customize [ "modifyvm", :id, "--uart1", "0x3F8", "4" ]
     vb.customize [ "modifyvm", :id, "--uartmode1", "file", File.join(Dir.pwd, "ubuntu-xenial-16.04-cloudimg-console.log") ]
  end
end

FYI, user @racb mention in the same discusison that the this bug report having been filed to ubuntu and so far no [...] decision has been made yet about it.


Non-symmetric core load when playing a game

I get the Sam3 process PID and then executed

  taskset -p 7160

  pid 7160's current affinity mask: 1

Another question why that was done. This question to «Steam» & game developers…
Not fault of «Ubuntu».


OK after trying some more things for a while I installed aptitude which was able propose a solution (after trying the first one and failing) that worked, downgrading libpathsea6. Details:

oz@oz-linux:~$ sudo aptitude install texlive-latex-base
The following NEW packages will be installed:
  fonts-lmodern{a} libpotrace0{a} libptexenc1{a} libsynctex1{a} libtexlua52{a} libtexluajit2{a} libzzip-0-13{a} lmodern{a}
  texlive-base{a} texlive-binaries{ab} texlive-latex-base texlive-latex-base-doc{a}
0 packages upgraded, 12 newly installed, 0 to remove and 0 not upgraded.
Need to get 83.4 MB of archives. After unpacking 188 MB will be used.
The following packages have unmet dependencies:
 texlive-binaries : Depends: libkpathsea6 (< 2016.20160513.41080.dfsg-1.1~) but 2017.20170613.44585-1~16.04.york0 is installed
The following actions will resolve these dependencies:

Keep the following packages at their current version:
1)     texlive-base [Not Installed]
2)     texlive-binaries [Not Installed]
3)     texlive-latex-base [Not Installed]
4)     texlive-latex-base-doc [Not Installed]

Accept this solution? [Y/n/q/?] n
The following actions will resolve these dependencies:

 Downgrade the following packages:
 1)     libkpathsea6 [2017.20170613.44585-1~16.04.york0 (now) -> 2016.20160513.41080.dfsg-1 (zesty)]


Is init.d "safe" enough to use or should i use `runit` or `daemontools` on a server

If you will have no access to the server in the future, there should be someone else that is able to monitor the application and the server. No automated solution can solve all possible issues.

However, solutions such as Monit can help a lot in some cases, by automatically restarting your application if for example it crashed or is using too much memory.

If your application is very simple and stable, a simple init.d or upstart script to start it on server startup can work.


How to change the path of folders in home directory to an external HDD?

First of all you need to make sure that your external hard drive actually automatically mounts successfully on-boot.

The way you're automatically mounting your drive is not recommended. Please see How To Automatically Mount NTFS Partitions (if your external hard drive or any of its partitions isn't NTFS, just change the format to whatever it is instead of NTFS) on how to automatically mount partitions/external-media on boot by editing the /etc/fstab file.

After that, what I do is make symbolic links to the folders in my external hard drive in my /home folder.

To do that, use the ln command as follows:

ln -s <target-path> <link>
So for example, to link my Music folder to a folder in my external
hard drive which has my music files, I do the following:

ln -s /mnt/data/Music ~/Music.
Then I check my ~/.config/user-dirs.dirs file, ensuring no entry is
left blank.


Restoring setings in Windows 7 after Dual mode with Ubuntu

The OSes, Windows and Ubuntu runs independent of each other.  The difference after installing Ubuntu is the boot manager.  The boot manage will load the OS, and from there it's up to the configuration of the OS, as to how it behaves.

Windows does not poll the Ubuntu partition while it's running because Windows can't read the Ubuntu file system.  While Ubuntu could poll (read) the Windows partition, it doesn't.  It reads the Ubuntu configuration from the Ubuntu installed partition.  Making changes to Windows will not affect it's partition and vice versa.

The bottom line is that you will have to describe your Windows problem to a Windows support group.  Keep in mind that if you mention Ubuntu, it might confuse the issue.  They might say you're having a problem because of Ubuntu (a similar deduction that you inferred).

You can configure how Windows defaults while Windows is actual running.  The Windows gurus will help you with this configuration.  If you were having problems with the defaults in Ubuntu, then this would be the pace where the Ubuntu gurus hang out.

Check a group such as http://superuser.com for help with configuring Windows defaults with subjects such as sounds and mouse behavior.


Only some of the PDF thumbnails showing up?

Very simple solution for Lubuntu 18.04 LXDE distro.
Remove Evince as your PDF reader and install Atril for PDF reading.
Atril also installs a thumbnailer which works flawlessly.
There might be a sequence issue with Evince thumbnailer. So I suggest to just uninstall Evince PDF reader.


vblank_mode=0 primusrun in application .desktop file

Well that command doesn't work for me either in Ubuntu 13.04, but, the idea I once had turned to be true: the solution is to make a script in /usr/bin.

$ sudo gedit /usr/bin/optiprime

now enter:
#! /bin/sh
vblank_mode=0 primusrun "$@"

save and

$ sudo chmod +x /usr/bin/optiprime

To use primus with whatever you want just type

$ optiprime <command>

which can be used with no problem in .desktop files


Can I use Ubuntu and Windows 7 simply by using the windows installer on ubuntu.com?

Yes, but it is recommended that you have Windows check the disk before installing and correct any file system errors.

After installation you will be presented with a boot menu(supplied by Windows) to boot to either Windows or Ubuntu.  You make your selection there and then it boots into the  selected OS.  If booting into Ubuntu you may also see the Ubuntu Grub screen.  If so you will need to select the Linux version you want to run....the top is the newest under that will be "Previous Versions" that will allow you to boot into the older kernels if needed(after a fresh install there will only be the one selection, the Previous menu selection will appear if and when you update to the newer kernel.

The Grub can be shown or hidden by editing your /ect/default/grub file.....there are plenty of questions on askubuntu about doing that so I will not take the space here to repeat the information.

HERE is the instruction page for Wubi from the developers of Wubi it has rather detailed instructions and some FAQ's

HERE is the detailed Ubuntu page on Wubi that includes the same instructions as the above link and some advanced troubleshooting and a more detailed FAQ.


Brightness problems on ubuntu15.10 for UEFI compatible laptop

Now that you're booted with nouveau.modeset=0, you need to actually install some working graphics drivers.

Open the Additional Drivers app by seearching for it, and let it scan. Once some options pop up, choose the newest driver version that ends with (proprietary) and click the Apply button to install the driver.

Reboot after it installs. You won't need to use the nouveau.modeset=0 flag anymore, and your brightness should work.


I went with an old 32 bit version of Linux Lite after the creator, Jerry Bezencon, responded telling how to find the older 32 bit version (at SourceForge). It worked! Thanks to all those who responded!


Can I install the vanilla MATE desktop environment alongside the Ubuntu MATE Remix desktop environment (15.04 Vivid Vervet)?

You can have multiple DE's at the same time, and you will be able to choose one of them when you boot Ubuntu. To do this, run the following commands in a terminal emulator (Ctrl+Alt+T):

sudo apt-add-repository ppa:ubuntu-mate-dev/ppa
sudo apt-add-repository ppa:ubuntu-mate-dev/trusty-mate
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install --no-install-recommends ubuntu-mate-core ubuntu-mate-desktop

The "--no-install-recommends" attribute is very important in this process. It tells APT not to overwrite anything. After all this process ends, you can log out your current session and choose other DE at the login screen (above your user icon, near the hour applet).


I figured it out. This is my new .service file;

#!/bin/sh -

[Unit]
Description=Forge Server

[Service]
WorkingDirectory=/home/<USER>/minecraft/forge-server/
User=<USER>
Group=<USER>
Restart=on-failure

ExecStart=/usr/bin/screen -DmS forge /usr/bin/java -Xmx1536M -jar forge-1.10.2-12.18.2.2099-universal.jar nogui

ExecStop=/usr/bin/screen -p 0 -S forge -X eval 'stuff "say SERVER SHUTTING DOWN. Saving map..."15'
ExecStop=/usr/bin/screen -p 0 -S forge -X eval 'stuff "save-all"15'
ExecStop=/usr/bin/screen -p 0 -S forge -X eval 'stuff "stop"15'
ExecStop=/bin/sleep 2

[Install]
WantedBy=multi-user.target

I had set the forge jar file as executable (chmod +x) and removed all the variables (%i from the initial script I copied). It now works and launches in a screen instance at boot.


Can't Install Latest Code::Blocks on 20.04.1 LTS

The question you link to points to a PPA that hasn't been updated in four years. This would never work on your system. As it stands, there is no PPA to install Code::Blocks in Ubuntu 20.04 at this time. There is one that supports up to 19.10, but it has not been updated in almost a year.
If you would like to use this application, the simplest and safest way to do so would be to download the binary from the Code::Blocks site (you'll probably want the codeblocks_20.03_amd64_stable.tar.xz file), expand it, then install the application manually.
Hope this helps.


I've realized what was happening. It is obvious now, but for others that are ignorant to Ubuntu as I am; There is another trash folder in the root directory.  I installed k4dirstat (which seems to be better than "Disk Usage Analyzer") and see that I have 114.56 GBs sitting at /.local/share/Trash.  Problem solved.  Thanks all if you had attempted to help!


How to allow Windows pc to modify Linux files over Samba server without allowing full 777 access?

I see what you want. All users/computers on your LAN should be 'guests' and have full 'read/write' access to the file share.

Steps:

Check Samba config. Does the share include these:

[Share]
available = yes
browsable = yes
public = yes
writeable = yes

Check POSIX permissions. Example ls -lh:

drwxrws---+ 1 nobody nogroup  252 May 12 14:55 Music

You will want to have the sticky bit there otherwise the fileshare won't behave like you would expect in windows. chmod 2770 [dir]...
To apply with permission to all the directories use find. Example

find . -type d -exec chmod 2770 {} \;
find . -type f -exec chmod 2760 {} \;

You will also want to set the group to be nogroup, which is the default guest group for samba.

Finally acls. Use getfacl and setfacl. You'll want to setup defaults for the user nobody and the group nogroup. Once you've done that, anything that gets created via samba will inherit good permissions. Here's an example directory ACL:

# file: Downloads
# owner: nobody
# group: nogroup
# flags: -s-
user::rwx
group::rwx
mask::rwx
other::---
default:user::rwx
default:group::rwx
default:mask::rwx
default:other::---

To get some defaults going, use find:

find . -type d -exec setfacl -d -m u::rwx {} \;
find . -type d -exec setfacl -d -m g::rwx {} \;

To fix up existing files:

find . -type f -exec chgrp nogroup {} \;
find . -type f -exec chmod 660 {} \;
find . -type f -exec setfacl -m g::rw {} \;

WANT MORE !

Let's just say that you don't want to change the POSIX group. Then you can use the ACL to explicitly add the group. Example:

setfacl -m g:linuxgroup:rw [filename]

With these settings I share between ubuntu, windows, RPi, android, and other linux apps.


The meaning of the below command, is that your X server Display will be your  windows IP:

export DISPLAY=MYWINIP:0

If you didn't install X-Server on your windows machine

X application won't be able to open / directed to Windows machine without X server support

Note that, if you have both:

X-Server running on your windows machine
ssh client on your windows machine (note that Windows 10 Bash support ssh command)

Using ssh -Y (X11 forwarding option) might be the best solution for running application on your Unix machine, and redirecting the display-output to your Windows screen.

Here - how-to-use-x11-forwarding-with-putty - You can find details how to set windows putty to use X11 forwarding

  man ssh
  -Y      Enables trusted X11 forwarding.  Trusted X11 forwardings are not subjected to the X11 SECURITY extension controls.

xming is an example for X-server application which runs on Windows.


Shared library not found for PyQt5: libxcb-xinerama.so.0 => not found

I didn't find them with pip either. I think you're stuck either compiling this from source (https://xorg.freedesktop.org/archive/individual/lib/libxcb-1.14.tar.xz) and linking to it, or installing libxcb-xinerama0.