Is it possible to get Commodore 128's Basic v7 emulation to work in Ubuntu?

VICE is a fantastic emulator, even for C128. Unfortunately the documentation is abysmal, because there is heaps of information for specialists, geeks and freaks, but essential information is hidden away somewhere between 3.14.17 and 3.14.18. (At a point where the common reader has already given up...)

It's actually pretty simple:

Press F7 on your PC keyboard to switch between 40 and 80 column mode.
Perform a hard reset by pressing AltF12.

Now you will notice that the second window (note that in x128 there are two) has come to life, with a neat 80-column display.

Hope this helps.

Additional note: I've just verified again. Alas, AltF12 is a very bad default choice in Linux, as this key combination is frequently taken by window managers! Hence, invoking a hard reset via this key combination may not work, respectively may not have the desired effect!
So should it fail for you too, then please invoke the hard reset via drop-down menu: File -> Reset -> Hard. This is guaranteed to work no matter what.


You have to run this command as super user. Try the following:

sudo apt-get install python-tk

This should fix your problem. The magic extra thing to type is the sudo command. This will trigger a password prompt and after you've correctly entered your password the command following sudo (in this case apt-get install python-tk) will be run under administrative privileges.


How do I disable application notification popups?

It appears that there is an gnome extension for disabling the notification popups that you might give a whirl.

https://extensions.gnome.org/extension/1007/window-is-ready-notification-remover/

The source code for it is here:

https://github.com/nunofarruca/WindowIsReady_Remover


How can I edit the config files of BlueJ without root permissions?

I haven't used BlueJ but most applications have their default, system-wide config files, which should not be modified by users (and if that's what your sysadmin refuses to modify, he might be right in doing so) but also a user-specific config files in $HOME/. Looking at its documentation p.30, BlueJ can be invoked like this:

java -jar bluej.jar -Dbluej.language=german

and it also has a user-specific configuration file in:

<USER_HOME>/.bluej/bluej.properties


Usually that is a problem with your monitor cable, not with the OS. Check to make sure your monitor cable is securely plugged in.  If you are using a desktop computer, try using a different cable to connect your monitor to the computer.


Dualboot Windows 10, Ubuntu 16.04, Dell XPS 15 Installation Problems

Update:

I was able to solve the problem.  What I did was to update the BIOS drivers to the most recent version, reinstall Ubuntu 16.04.1 to the USB, and follow the directions in the https://ubuntuforums.org/showthread.php?t=2317843 thread.  Hope this helps someone!


The path isn't what you think it is.

If you don't specify the path, the system will search for your executable using the PATH environment variable, not in your current directory.

Use ./ before your executable name and that will work.

./ means "This directory", just like ../ means "the parent directory"


Are there any reliable sources with more frequent jdk icedtea package releases?

Unless you are willing to compile from sources for yourself or setting up an PPA to share with others in a regular manner, no, there isn't any reliable and secure way to get the latest version of any package. Ubuntu is based in stability rather than cutting edge. Security patches has priority in Ubuntu releases so there's nothing to be afraid. Now if you want to have the latest features, Ubuntu release aren't designed for that and you need the developers, third party or yourself as reliable source.

Mandatory read:

Why don't the Ubuntu repositories have the latest versions of software?


In your script, include a cd statement that sets the current directory to where the files the script needs, resides. For example, if your files reside in a folder /home/user/Documents", then add following line in the script before the commands that actually expect to find the files:

cd "/home/user/Documents"

(Quotes are needed if the pathname would contain spaces or other special characters).

This could be

cd $path

if you manage to set the working directory through a variable. To make this work though the construct you are proposing, use command substitution, i.e. $(command). Then, the output of the command will be assigned to a string, that you in turn can assign to your variable, i.e. something like:

path=$(dirname "$(readlink -f "$0")") ...


What is the easiest and secure way to install openstack?

The OpenStack installation guide for Ubuntu 12.04 can be found here: http://docs.openstack.org/trunk/openstack-compute/install/apt/content/

If you look here: http://docs.openstack.org/trunk/openstack-compute/install/apt/content/scripted-dev-installation.html - there is a scripted install.

But I have to confess I have not tried it myself. I need to understand OpenStack from an infrastructure point of view, so I am slogging through the install the hard way.


Can't open Windows 8 after installing ubuntu 12.04

Change UEFI mode to Legacy mode in bios.And then,

Boot the windows installation disk,click on Windows recovery option and then select command prompt.Run the following commands in that command prompt,

bootrec.exe /FixMbr
bootrec.exe /FixBoot
bootrec.exe /RebuildBcd

Then remove the installation media,and change the boot-order to HDD.

OR

Download boot-repair live disk.Make a bootable boot-repair live usb,change the boot-order in bios to usb.Once the live disk was boot up click on the option Recommende Repair.It will reinstall your grub.


Check out the file /etc/mysql/mysql.conf.d/mysqld.cnf
And the documentation for Server System Variables


Question about the eig() function in GNU Octave

The function eig is used to compute the eigenvalues (and eigenvectors) of matrices. In order to balance matrices you can use the function balance.
You can check Octave documentation on basic matrix functions.

If your question is related to details of its implementation you can check the eig source code. At a first glance it seems not to be implemented in the code (and no parameter for excluding the preprocessing balance is available, as for instance you can find in Matlab). Hence I would presume it is not performed. I guess you can perform the balance of the matrix yourself as preliminary step (and compare the results).


Have you tried other Undelete utilities? If nothing else testdisk has undelete feature as well.


Ubuntu 20.04 AMD GPU with Intel process stuck on 1024x768(4:3) Resolution

My situation is a little different since I'm using a headless server for crypto mining, but I was getting the same error message regarding amdgpu-dkms. I did manage to get 20.45 driver working on Ubuntu Server 20.04 using the following steps:
./amdgpu-pro-install --opencl=legacy,pal,rocr --headless -y
omit --headless if using desktop gui.  errors will still be present
get mainline kernel update script
wget https://raw.githubusercontent.com/pimlie/ubuntu-mainline-kernel.sh/master/ubuntu-mainline-kernel.sh
install kernel update script
sudo install ubuntu-mainline-kernel.sh /usr/local/bin/
run kernel update script
sudo ubuntu-mainline-kernel.sh -i
script will display most current kernel available and ask for confirmation to install. In my case it was 5.10.1-051001-generic
after reboot, mining software still didn't work.
amdgpu didn't show up in lsmod so I did:
sudo modprobe amdgpu
and suddenly my mining software worked. haven't tried rebooting because I'm just so relieved that it started working.
I also installed kernel 5.6.19 at one point and ran update-initramfs -u
I don't think that had any effect but just mentioning it for completeness.


Now that you can get into the terminal try the best answer here:
How can I add a desktop/GUI to a command-line Ubuntu installation?

sudo apt-get install <desktop of choice from above>


fatal error during ubuntu 20.04 installation

this is the page of the problem that was generated after installation. It is something related to the boot. I'm new to linux https://paste.ubuntu.com/p/WKkB3zYtRX/


Add these lines to /etc/newtork/interfaces:

iface eth1 inet static
  address 192.168.1.8
  netmask 255.255.255.0


How to update Twidge 1.0.8 form repositories to 1.1.0 from GitHub?

Yeah I too just discovered this problem. I seem to have been successful in installing from the .deb package at https://launchpad.net/ubuntu/+source/twidge/1.1.0/+build/4715800 however. It's the build for saucy, but so far it seems to be working ok!


Can't add google calendar in GNOME calendar app

You could try and force the desktop enviroment to GNOME

env XDG_CURRENT_DESKTOP=GNOME gnome-control-center


Try this solution, I find it on net

Printer

Download LPR driver and cupswrapper driver from Brother Solution Center

Create directory /var/spool/lpd/dcp195c needed to install LPR driver
Open a terminal as sudo and go to directory with drivers
Install LPR driver

dpkg -i --force-all dcp195clpr-1.1.2-1.i386.deb

Install cupswrapper driver

dpkg -i --force-all dcp195ccupswrapper-1.1.2-2.i386.deb

Check LPR driver and cupswrapper driver are installed

dpkg  -l  |  grep  Brother

Check printer is on the cups web interface

Scanner

Download the scanner driver (brscan3 for DCP-195C)
Open the terminal, log in as sudo and go to directory with drivers
Install the scanner driver

dpkg  -i  --force-all  brscan3-0.2.11-2.amd64.deb

Check the scanner driver is installed

dpkg  -l  |  grep  Brother

To enable scanner for a normal user, open for edit the following file

nano /lib/udev/rules.d/40-libsane.rule

Add the following lines to the end of the file and restart the system

# Brother scanners
ATTRS{idVendor}=="04f9", ENV{libsane_matched}="yes"


Gnome Shell Glitched Top Bar Ubuntu 11.10

This is caused by the Global Menu in Unity. You can remove it by uninstalling the appmenu package, but this will likely cause problems if you still use Unity as well.

Alternatively you could disable Nautilus from managing your desktop, but then your desktop would just be a plain wallpaper.


How do I change the runlevel on systemd?

Ubuntu 16.04 uses systemd instead of init and hence the concept of runlevels is replaced by the term targets. So there is indeed a mapping between init-based runlevels and systemd-based targets:

   Mapping between runlevels and systemd targets
   ┌─────────┬───────────────────┐
   │Runlevel │ Target            │
   ├─────────┼───────────────────┤
   │0        │ poweroff.target   │
   ├─────────┼───────────────────┤
   │1        │ rescue.target     │
   ├─────────┼───────────────────┤
   │2, 3, 4  │ multi-user.target │
   ├─────────┼───────────────────┤
   │5        │ graphical.target  │
   ├─────────┼───────────────────┤
   │6        │ reboot.target     │
   └─────────┴───────────────────┘

Now, to just change the "runlevels" in 16.04, you can use for eg:

sudo systemctl isolate multi-user.target

To make this the default "runlevel", you can use:

sudo systemctl enable multi-user.target
sudo systemctl set-default multi-user.target

From man systemctl

   isolate NAME
       Start the unit specified on the command line and its dependencies and stop all others. If
       a unit name with no extension is given, an extension of ".target" will be assumed.

       This is similar to changing the runlevel in a traditional init system. The isolate command
       will immediately stop processes that are not enabled in the new unit, possibly including
       the graphical environment or terminal you are currently using

Also have a look at man systemd.special to know more about the targets in systemd.


Add a group cuda to your Ubuntu, then set 750 permissions on the */dev/nvidia** devices and change the group ownership to cuda.
Add those users that are granted to use the GPU to the group cuda.

There are also driver parameters that do this for you during loading the nvidia driver. ( NVreg_DeviceFileGID and NVreg_DeviceFileMode ).


It is in man apt-get

  -y, --yes, --assume-yes

  Automatic yes to prompts; assume "yes" as answer to all prompts and
  run non-interactively. If an undesirable situation, such as changing a
  held package, trying to install an unauthenticated package or removing
  an essential package occurs then apt-get will abort. Configuration
  Item: APT::Get::Assume-Yes.

It is however not mentioned in man apt for this reason:

  apt provides a high-level commandline interface for the package
  management system. It is intended as an end user interface and enables
  some options better suited for interactive usage by default compared
  to more specialized APT tools like apt-get(8) and apt-cache(8).

  Much like apt itself, its manpage is intended as an end user
  interface and as such only mentions the most used commands and options
  partly to not duplicate information in multiple places and partly to
  avoid overwhelming readers with a cornucopia of options and details.


How to efficiently send text entered on the command line to the system clipboard without using the mouse?

You could also use a clipboard manager like parcellite. It's a GTK+ clipboard manager which also has command-line clipboard capabilities

You can use it via command-line by

echo "some very long command that I want to copy to the clipboard" | parcellite
##or##
parcellite "some very long command that I want to copy to the clipboard"

It is not installed by default and so you'll have to install parcellite by sudo apt-get install parcellite


How to upgrade Python to the latest version

It looks like binary packages in Ubuntu for python are up to 3.6.9.
I think you would need to download required version of Python from
Python relesases and then follow documentation.


I am trying to unzip bz2 file but then I get the error saying No space left

It's a big world ;-) The error is reasonable.
From https://wiki.openstreetmap.org/wiki/Planet.osm:

on 2021-02-01, the plain OSM XML variant takes over 1370.5 GB when uncompressed from the 99.3 GB bzip2-compressed downloaded data file).

You could ...

get more disk space
download osm files for only the regions you really need
for small regions, use the API.
use osmosis to extract the needed data from the planet.osm  file yourself. But instead of the .bz2 file, you should use the pbf version , which will be much faster.


Minecraft on Cairo Dock Opens Another Instance

Old question but the issue is still there. The solution is simple. Follow these steps.

Open the application that creates an additional icon in the dock, minecraft in this case.
Make sure if is not hidden behind any other windows since you're going to have to click on it.
Right click on the minecraft icon in cairo dock, and select "edit"
Expand "Extra Parameters"
Click "Grab" button to turn your cursor into crosshairs
Click on minecraft window. This should put minecraft application class beside the "grab" button and eliminate that duplicate icon right away.
Click Apply -> Close

Hope it helps someone.


At the bottom of https://www.ubuntu.com, there is a link titled "Report a bug on this site" which goes to https://github.com/ubuntudesign/www.ubuntu.com/issues/new


Unity Launcher and Top Panel disappeared in 14.04

Enter the following commands:- Ctrl+Alt+F1
login there with username and password

  WARNING! THE FOLLOWING COMMAND WILL TERMINATE YOUR ACTIVE SESSION!

try:

sudo service lightdm restart

If restarting lightdm doesn't fix the problem, install aptitude and then install unity:

sudo apt-get install aptitude
sudo apt-get update && sudo aptitude -f install && sudo aptitude dist-upgrade
sudo aptitude install unity

Read the outputs carefully. If you do have broken dependencies, aptitude will give you the "solution" of NOT installing unity. Say no to this solution. Then it will give you another solution which will install broken dependencies. Say yes to this one. Once installation is complete,
sudo service lightdm restart again. If you still have some issues, also reinstall ubuntu-desktop:

sudo apt-get install --reinstall ubuntu-desktop

followed by another sudo service lightdm restart.

(Credit to @DinGODzilla from this question)


Install Ubuntu 14.04 alongside Windows 7 fails

I have had the same problem, you can make a boot able USB stick, then go to BIOS and select boot from USB drive.


Keyboard shortcut: Changing Focus Term to VLC 14.04

I don't understand why don't you use the good old Alt + Tab

Maybe I misunderstood the question but it looks like what you describe is this.


OpenJDK 7 Runtime Doesnt show up in my right click menu

You can make a .desktop file for Java:

Create a file called java.desktop
Open java.desktop in a text editor
Add this in your java.desktop file:

[Desktop Entry]
Name=Java
Exec=java -jar %f
Terminal=false
Type=Application
Categories=Utility;Application;

Install that java.desktop file with the command sudo desktop-file-install java.desktop
Now you can right-click on the .jar file and choose to open it with Java.

If I helped you, please upvote this answer and accept this answer.


What is the correct way to disable SSH password authentication

PermitRootLogin without-password is a bit of a misnomer (which is why in recent versions of OpenSSH it is deprecated in favour of PermitRootLogin prohibit-password). What it does is allow root to login, but only through methods other than password authentication; for example key-based authentication is allowed. It has no effect on users other than root.

PasswordAuthentication no prohibits password authentication for all users. Note that, by using a Match block, it is possible to prohibit password authentication for only some users, or to allow it for some users when it is globally prohibited:

# Prohibit password authentication only for user foo
Match User foo
    PasswordAuthentication no

# Prohibit password authentication for all users other than foo
PasswordAuthentication no
Match User foo
    PasswordAuthentication yes

Match blocks can also match other things, for example by using hostname matching you can allow password authentication from machines on the local network only. See man sshd_config for details.


Regarding partitions for dual-booting Ubuntu with pre-existing Windows 7

Your understanding is correct. Go ahead and make the space by reducing the size of your D: partition. Leave the space an unallocated.

The ubuntu installer will do the rest of the partitioning for you.

On the next screen, select "specify partitions manually"

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

Alternately , gparted is on the live CD and you can make partitions before you run the installer.


How to use DSL connection and ethernet Network concurrently

Yes, you can do that in Ubuntu too. There is a detailed description here. I hope you should follow that and see if you can solve your problem.


What do the HWE-Next or linux-oem packages do/mean

In response to your edited question. HWE kernels provide support for newer hardware. I've had good luck with them on some newer systems. You have learn more about them here.

The linux-oem package is just a meta package that has dependencies that install a [newer version of the kernel. and currently include updated firmware and microcode.

You can find out a great deal about packages in future by simply utilizing Ubuntu Packages Search. You often can resolve problems with a specific piece of hardware by installing an HWE kernel as updated firmware typically provides improves support for some hardware. Whether your particular issue will be solved in the nest point release remains to be seen. Unfortunately I am unable to tell the future.


Ubuntu 20.04 Slow on Acer Aspire TimeLineX 4830T

What io scheduler is being used on your system?
For rotational media (classic HDD) BFQ is by far the best if you want a responsive system.
Find out by using this command in a terminal:
cat /sys/block/sda/queue/scheduler

This will show between brackets the scheduler that is currently in use and the available schedulers on your system.
If BFQ is not on the list, you will need to enable it (it is a kernel module) with modprobe:
sudo modprobe bfq

If BFQ is on the list but not selected, or you just used modprobe to install it, you can enable it as follows:
echo "bfq" | sudo tee /sys/block/sda/queue/scheduler

Check if it is being used by issuing the same cat command as we started with, it should now show BFQ in between brackets.
With BFQ as your scheduler, now try to use the same applications that took so long to open, if it is faster you can make the scheduler change permanent by creating an UDEV rule.
Go to or create (if it does not exist) the following directory: /etc/udev/rules.d
Open or create a file in that directory (as root) named 60-scheduler.rules
Insert or add the following line to that file:
ACTION=="add|change", SUBSYSTEM=="block", DRIVERS=="sd|sr", ATTR{queue/scheduler}!="bfq", ATTR{queue/scheduler}="bfq"

save the file, next time you reboot, your scheduler will be set to BFQ automatically


Refresh clock panel plugin after time is changed from terminal

Let's start by understanding what you've done:

 set-timezone [TIMEZONE]
           Set the system time zone to the specified value. Available time
           zones can be listed with list-timezones.

If the RTC is configured to be in the local time

this will also update the RTC time. This
               call will alter the /etc/localtime symlink. See localtime(5) for
               more information.

Note that it is not recommended to configure the RTC to local time. UTC is recommended.

You may wish to use the set-time option instead:

set-time [TIME]
           Set the system clock to the specified time. This will also update
           the RTC time accordingly. The time may be specified in the format
           "2012-10-30 18:17:16".

Source:

man timedatectl


I fixed this by switching to the F12 key to display Guake. No more conflicts! Happy :D


set CapsLock as Esc, and Ctrl when pressed in combination

Sounds impossible. As soon as you press Caps Lock once it would be interpreted as an Escape. If you were to hold Caps Lock down it would be repeated as many Escape's. So I think you can remap CAPS to ESC or you can remap CAPS to CTRL but not both.

The reason you can press and hold Control, Alt and Shift without repeats is because they are known as Modifier keys and do not send a keystroke until another non-modifier key is pressed.


Will Tunnel Bear ever be supported on Ubuntu?

It may be supported shortly

...because TunnelBear already has some limited support for linux (including Ubuntu), since the end of march 2014.

In this post TunnelBear befriend penguin it is stated that users with a Giant or Grizly account (paid) can connect to the VPN. Tunnelbear provides users with openvpn profiles (for each country you wan't to connect to).

Software (openvpn) is very easy to install sudo apt-get install openvpn network-manager-openvpn-gnome.


Try the following: launch Terminal and enter

sudo rm -rf '/path/to/locked/folder'

And be VERY careful with the path to folder!


How can Shared Memory be dangerous in server environments & how to secure it?

It can be dangerous if the program creating it is written wrong and sets up the permissions so that other users can attach to it.  You secure it by writing the program properly to restrict the permissions to only that user.  As such this isn't an administration problem.


curl in bash script adds ? at end of the file name

Your script has Windows line endings.

If you run your script using ./script.sh, it should output:

bash: ./script.sh: /bin/bash^M: bad interpreter: No such file or directory

If you run bash script.sh, it will save the file with ? at the end like you are reporting.

Change your editor to use Unix line endings or use dos2unix script.sh to convert to Unix line endings.


You can use:

alt+f2 gksu cp /home/adi/RXTXcomm.jar /usr/lib/jvm/java-7-oracle/jre/lib/ext.

Or you can run it in the terminal:

sudo cp /home/adi/RXTXcomm.jar /usr/lib/jvm/java-7-oracle/jre/lib/ext.


No "startup applications" menu in Ubuntu 14.10?

I'm using ubuntu Gnome and do not seem to have gnome-session-properties. Instead I found you can use the gnome-tweak-tool and there is a section for startup programs in there.


To set a dns server:

Edit /etc/dhcp/dhclient.conf ; uncomment line supersede domain-name-servers ( or add this line, if you don't have it ) and list your desired dns servers separated by coma, end with semicolon. It is line 20 of the /etc/dhcp/dhclient.conf. For example, mine looks like this:

supersede domain-name-servers 208.67.222.222,208.67.220.220,8.8.8.8;

With this option set , I get IP from no matter what access point I connect to, but DNS is same everywhere.

15.04  has very interesting feature that you can modify connection with nmcli. Doing  nmcli connection modify id "My Connection" +ipv4.dns "" +ipv4.dns 208.67.220.220 +ipv4.ignore-auto-dns yes will be equivalent to setting "Automatic(DHCP) Address Only" and adding your own dns server in GUI.

For multiple connections you can run this script:

#!/bin/bash
set -x
for file in /etc/NetworkManager/system-connections/*; do
    file=$(echo $file | cut -d'/' -f5-)
    nmcli connection modify id "$file" +ipv4.dns "" +ipv4.dns 208.67.220.220 +ipv4.ignore-auto-dns yes
done

Also , 15.04 has nmtui command line tool, which allows you to edit information for connections that you have saved on your machine. Open nmtui in terminal, go to Edit Connection, select one from the list, and by hitting TAB switch to side panel to click <Edit . . .> option. There you will be able to see information about particular settings for your connection and under IPv4 CONFIGURATION ->  you can set DNS servers. Scroll down to the bottom of the page, hit . The big disadvantage IMHO of this is that you have to set DNS for every single one of connections and it does not seem to have "get ip but let me use my own dns" type of option, which is present in GUI app.

To find out another way of setting DNS, which does the job for all network connections, see my answer to another question. I wrote a little script that you can do to update DNS to whatever you want after connecting to an access point at least one time.

To see what DNS server you are using

14.04 and earlier versions have nm-toool command which will show extended information about your connection. To see only DNS use nm-tool | grep -i dns or nm-tool | awk '/DNS/' . You can also do nmcli dev list | awk '/DNS/' or nmcli dev list iface wlan0 | awk '/DNS/' for specific interface

15.04 does not have nm-tool, however nmcli still works with different syntax. nmcli dev show will show extended information about interfaces, nmcli dev show wlan0 will show only about wireless interface, and nmcli dev show | awk '/DNS/' ornmcli dev show | grep DNS` will show specifically what DNS you are currently using

Regardless of the release you should be able to cat /run/resolvconf/resolv.conf to see nameservers for your active, current connection.


Pipelineing works in cron just as well as in bash. You could pipe the output to a script, that examines it and sends the mail. Or even easier use grep:

# in /etc/crontab

MAILTO=a.b@c.de
SHELL=/bin/bash

# m h dom mon dow user      command
30  * *   *   *   confus    /home/confus/bin/someCommand.sh | grep -A 11 -B 10 "Error:"

This will send an e-mail to a.b@.c.de when the stirng "Error: " occures in the output of someCommand.sh. In this case the text of the e-mail will be the output from 10 lines before and 11 lines after the occurrence of "Error: " (hence the -A for after and -B for before).

The mail is only send if the computer running cron has a working mail-server installed. A script to process the output is of course more flexible and considerably more work.


Unable to change the refresh rate to 60hz with xrandr

Your xrandr -q output shows that you have 1920x1080_59.90 resolution available

You can use this to set the new resolution

xrandr --output default --mode 1920x1080_59.90

Also, if you are creating newmode using

xrandr --newmode "1920x1080_59.90"  172.51  1920 2040 2248 2576  1080 1081 1084 1118  -HSync +Vsync

You also need to add this mode using

xrandr --addmode default 1920x1080_59.90

And then set the new resolution using

xrandr --output default --mode 1920x1080_59.90


How to turn off automatic pre-rendering of pages in Google chrome

click the little wrench icon top right

choose preferences

under the search section de-select Enable instant...


There are problems with your .service file.

You are running the script as root. Bad Idea. You should run as a non-root user, in case your server gets compromised. Add a User=<username> line to the [Service] section.

Use the .service file to trigger screen directly using the ExecStart= line. That way you can use systemd the way it's intended as a tool to start, stop, restart, and monitor the Minecraft server.

Here's an example from my own Minecraft server....
[Service]
RemainAfterExit=yes
WorkingDirectory=/home/minecraft
User=minecraft
# Start Screen, Java, and Minecraft
ExecStart=screen -s mc -d -m java -server -Xms512M -Xmx1024M -jar server.jar nogui
# Tell Minecraft to gracefully stop.
# Ending Minecraft will terminate Java
# systemd will kill Screen after the 10-second delay. No explicit kill for Screen needed
ExecStop=screen -p 0 -S mc -X eval 'stuff "say SERVER SHUTTING DOWN. Saving map..."\015'
ExecStop=screen -p 0 -S mc -X eval 'stuff "save-all"\015'
ExecStop=screen -p 0 -S mc -X eval 'stuff "stop"\015'
ExecStop=sleep 10


If I add some packages to "Recommends:", will apps pull them in with the update?

Yes, Ubuntu (starting with Ubuntu 10.04 a.k.a. Lucid Lynx) installs packages listed in Recommends by default. However, this can be changed by the user at any time.


How to know if a authenticate box is real or fake?

So you're [probably] looking at a PolicyKit escalation prompt there. Anybody without one of those who wants to play along can just run run pkexec echo (or something like that) and they'll get something similar.
How can we check it's really PolicyKit, not some custom-made phishing window?
Well you can get information about a Window with xprop and you can get command information with ps so let's combine them! Before we steam on, because we're being super-paranoid here, I'm using full paths just in case somebody has added a local hacked copy of any of these commands. Here's me running it on my pkexec echo box:
$ /bin/ps $(/usr/bin/xprop _NET_WM_PID | /usr/bin/awk '{print $NF}')
  PID TTY      STAT   TIME COMMAND
 3989 ?        Sl     0:00 /usr/lib/kde4/libexec/polkit-kde-authentication-agent-1

So as far as we can tell (note that I'm a KDE user) this is a legitimate prompt. It's not running off some local script so as long as something evil hasn't already rooted the system (but hey, why would they need our password again?), we're probably safe.
How can we tell what it's going to do?
In the case of gksu, kdesu and pkexec the prompts are fairly explicit about what they're going to run. In the case of the first two the command above will tell you what they're planning on running:
$ /bin/ps $(/usr/bin/xprop _NET_WM_PID | /usr/bin/awk '{print $NF}')
  PID TTY      STAT   TIME COMMAND
10395 ?        Sl     0:00 /usr/lib/kde4/libexec/kdesu -u root -c /usr/sbin/synaptic

In the case of PolicyKit, you can click that details tab and you'll see which permission it wants to execute. In KDE you'll also see the caller PID which can be looked up (ps <PID>). Here's what it looks like in KDE:

You can hover over the action and get the PolicyKit policy it wants to execute. In Ubuntu the policy is shown by default. These policies can be looked up. The one above comes from /usr/share/polkit-1/actions/org.kubuntu.qaptworker2.policy and a service specified in /usr/share/dbus-1/system-services/org.kubuntu.qaptworker2.service. You can see what's being run and by whom. And these services can only be added by root so again, unless you've already been rooted, you can probably trust these.
But don't blindly trust PolicyKit!
PolicyKit has these rules and services so select actions can be performed as root without having to run the entire process like that. You need to be vigilant though. Obviously if you're running gnome-calculator and a org.freedesktop.policykit.exec prompt pops up, something's dodgy.
It might be nothing but investigate before you stick your password in. After is too late.
And even if it's all legit, who's to say you don't have a keylogger stealing all your passwords anyway? Or something overriding $PATH or that has dumped something horrible in your ~/.bashrc that's making it look like you haven't been hacked? I'm fairly sure with enough concentration you could circumvent all the detection procedures above.
Sleep well.


You can list the rules with the following two commands:

sudo iptables -v -x -n -L
sudo iptables -t nat -v -x -n -L

Those are the ones I prefer, because it can be informative to observe the packet counters, particularly when trying to debug. Also, not doing name resolution can save a lot of time.

However, there is another command, which pretty much provides the same information:

sudo iptables-save -c


Fry, try to install it from various sources - you probably need to find a gtk3.10 compatible version of the theme (at a guess from the 14.04 gnome-shell version):

The Numix PPA should have a package that works for trusty:

sudo add-apt-repository ppa:numix/ppa
sudo apt-get update
sudo apt-get install numix-gtk-theme

Or try the zip files from it's Github page and/or it's DeviantArt page, and extract them to ~/.local/share/themes or ~/.themes or /usr/share/themes.

If you cannot get a working version, you should report it as a bug. This can be done on it's GitHub page - you need to include your ubuntu version, desktop environment, how you installed it, and the names of applications that have issues (if you are having problems with Java apps, first try this.)


/dev/mapper/vg_main-lv_main the name of the logical volume where your root filesystem is located.

At first, I would suspect a log file keeping growing rapidly or a lack of log rotation. (logs are in /var/log).

What you can do is to run the command :

$ sudo du -h --max-depth=1 -x /

this will show the size of each directories immediately below /.
In the output, look for a directory with big amount of date.
The repeat the du command on this directory (replacing / by the name of this directory, e.g.: /var) to find which sub-dir is big.

This will avoid to do a full scan of the root filesystem, which can be very long.

Once you identify a directory with using a lot of space, go and see what's in it.


EFI System Partition (ESP) should already exist if Windows is preinstalled. It is part of UEFI.


Where are the MySQL InnoDB log files stored?

ls /var/lib/mysql/ did the job. Every file ib_logfile0, iblogfile1 is a InnoDB logfile, if I am not mistaken, that is. :-)


How to install the grub image on a bios_grub partition and esp at the same time?

Using GRUB for both modes can be problematic, because the grub.cfg file may need to be subtly different for the two modes -- or at least, I've seen problem reports from people who try to use the same file in both modes. Thus, I recommend using one boot loader in BIOS mode and another one in EFI mode. It's likely to be easiest to set up GRUB in BIOS mode and another boot loader for EFI mode. See my Web page on the topic for a rundown of what's available. rEFInd is likely to be the easiest to set up and manage, but ELILO can work well, too, if you're comfortable with a LILO-style configuration file.


Ok, you need to be more specific. The link you sent, doesn't mention any steps(at least not an approved one). So i dig around a little and learned that GNU/Linux kernel does not recognizes this type of wireless card(Surprise!!! ASUS... Right -.-). So what you can try is that install the propriety driver for that wireless card. One link is supplied below. Second thing you can do is upgrade your computer to 16.10 version which may also help. Or third option sends us error messages, images, steps that you followed and results to us so that we can suggest more reliable solutions.

Visit https://www.asus.com/us/Networking/PCEN53/HelpDesk_Download/


"Can't open /var/lib/dhcp/dhcpd6.leases for append." during start of ISC DHCP IPv6 Server

Looks like simple access rights for the file '/var/lib/dhcp/dhcpd6.leases'. Check that it is owned by the same user that is running the dhcpd daemon and that that user has write rights to the file.


My Ubuntu SHA256SUM doesn't match no matter release or mirror... what am I doing wrong?

There appears to be a custom configuration on one network that is corrupting the download, and changing the sha256sum of the file. I have taken the same computer on a different network and I am getting the proper sha256sum result. I will ask the network admin at a later time, but moving on from this one. Thanks for @guiverc for pointing me in the right direction in a separate Q related to this very issue!


Why can't my installer load the "libglib-2.0.so.0" shared library?

libglib-2.0.so.0 should exist on all Ubuntu Desktop installations -- it will not on a command-line system. Are you running a desktop Ubuntu -- which version?


Is there a simple way to filter files by date across all directories?

Basically if you want to have a full backup you should use something like rsync or a complete backup solution to create incremental backups.
However for your question, I guess find can be helpful:
find /media/username/sdcard -mtime -1

The above command would find all files modified from yesterday till now.


Why do I suddenly have this erroneous font in prompt and output of gnome-terminal?

This can happen after reading from /dev/random or /dev/urandom with cat. This seems to be fixed in version 3.20.2 of gnome-terminal. In older versions it's necessary to open a new terminal or try @Meow's solution below.


"Unmet Dependencies" problem when trying apt-get install

It's possible that the "No space left on device" error is related to the "unmet dependencies" problem. Either way, you have to fix both.

Check free space with any of these methods (such as df -h). If if you're low, free some up using these methods (removing old kernels; also applies when /boot is not a separate partition) and these methods (removing unused packages and cached package archives).

Especially if the "unmet dependencies" problem arose from software not being properly installed and configured after disk space ran out, you should be able to fix it simply:

sudo dpkg --configure -a
sudo apt-get update && sudo apt-get -f install

But if that doesn't work, don't fret--there are many other powerful (and easily applied) techniques for fixing "unmet dependencies":

How do I resolve unmet dependencies after adding a PPA?


Resume interupted upgrade (14.04 to 16.04) and

The sources.list seems fine and its most likely an issue with the DNS.

You can add 8.8.8.8 as your temporary DNS and see if it helps by running the following command

echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf > /dev/null

Then run the following

sudo apt-get -f install
sudo apt-get update
sudo apt-get upgrade

If this fixes your temporary resolving messages then either wait and see if your ISP fixes the issue for you or you can permanently add a DNS server to your system:

echo "nameserver 8.8.8.8" | sudo tee /etc/resolvconf/resolv.conf.d/base > /dev/null

8.8.8.8 is Google's own DNS server.


Lets check your Ubuntu file system first...

boot to a Ubuntu Live DVD/USB
open a terminal window
type sudo fdisk -l
identify the /dev/XXXX device name for your "Linux Filesystem"
type sudo fsck -f /dev/XXXX # replacing XXXX with the number you found earlier
repeat the fsck command if there were errors
type reboot

Note: If dual-boot with Windows, and you've installed a Windows driver to be able to read/write to Linux ext2/3/4 file systems, uninstall it asap, as it corrupts ext2/3/4 file systems.


What are differences between a lens and scope?

You use a lens to look at the data returned by a scope.

For instance, you have one single music lens, which uses different scopes to display its results: local music, music in the Ubuntu One Music Store, music from the Amazon MP3 Store, etc.

The main idea is that there can be lots of different, but very similar, data providers. The scope is used to make them act the same way and the lens is used to display that data with categories, filters, etc.


What are my licensing obligations when publishing a container built on ubuntu?

Not a lawyer, but as I understand it, you don't publish the base layer. The thing you upload are the layers above with just your additions. This shouldn't be different from any other third party software running on Ubuntu.


Remove spaces between tags in an html file in vim

The best way I could find was to use tidy to clean the file up and then use:
:%s/<b>\s*/<b> and several such commands in a macro


Software & Updates showing wrong linux distribution

We will need to edit /etc/apt/sources.list. To do this open your terminal and type in sudo gedit /etc/apt/sources.list (you can use the text editor of your choice), now remove everything and add:

# Ubuntu main repos

deb http://archive.ubuntu.com/ubuntu/ xenial main universe

# Ubuntu security

deb http://security.ubuntu.com/ubuntu xenial-security main universe

# Ubuntu updates

deb http://archive.ubuntu.com/ubuntu/ xenial-updates main universe

Save your changes and exit the text editor. Go to your terminal, type in: sudo apt-get update. Check if your problem was solved.

For more information on what I just told you to do, you can find it here.


canceling gparted ( resize ) and a the data disappeared

If you data was initially in a ntfs partition you may still be able to use GetDataBack to recover some of your data. The company u work for has used that to recover data from hard rives with a partition corruption/overwrite.

If you did a full format (the long one) however, your data is most likely gone.


MAAS open ports between region and rack controller

found the answer in the documentation: https://docs.ubuntu.com/maas/2.2/en/installconfig-rack

"In regards to region controller and rack controller communication, each rack controller must be able to initiate TCP connections:

for HTTP, to each region controller on port 5240. If high availability is implemented then this will typically become port 80. See MAAS HA.
for RPC, to each region controller between port 5250 and 5259 inclusive. This permits up to 10 maas-regiond processes on each region controller host. At present this is not configurable."


Ubuntu 11.10, Wireless Connection but no internet

I have also the issue after installing Ubuntu 11.10 (oneiric) on two IBM T40 one with internal WiFi the other with NEC adapter, at the setup sequence the WiFi was working perfect, after restarting , the both PC WiFi got invalid gateway: 192.168.1.1 instead of 192.168.1.10 as my router is set. to resolves this issue at the moment I'd setup the adepter manually, very easy;

Right click on network icon,
Choose the WiFi you use (exp.HOME 1) go to EDIT CONNECTION
Choose wireless, take manual option , click ADD  fill the IP you
give to you post (exp, 192.168.1.5) valid with ENTER; give mask
(255.255.255.0), valid, give gateway of your router(exp.
192.168.1.1).
now add the DNS ( open CONNECTION INFORMATION to see the DNS is
available.)

I'd like to know why the WiFi adapters don't toll the good GATEWAY.


Is it possible to install windows7 or any linux to a loop file from ubuntu?

Windows: no, Linux yes.  In the case of Ubuntu, it isn't supported by the regular installer, but you can set up the loopback mount yourself and then use debootstrap to initialize the system, then configure a custom grub entry to boot it with the loop= command line argument to point the kernel to the image file.

You may find it easier to set up a virtual machine, or LVM, which makes it a snap to add, remove, and resize partitions without even needing to reboot or unmount anything.


You have no rights to read the content of the folder /opt/lampp/htdocs/vocab/files.

If you start your script as user peter and the group and owner of the folder is www-data, than you have to set x (execution rights, which are necessary to see the contents of directories--you "execute" them when you access their contents) to the rights for others.

sudo chmod o+x /opt/lampp/htdocs/vocab/files

And you should add the p switch to preserve mode, ownership, timestamps.

cp -pR $working_directory $target_directory

(Alternatively you can start your script with sudo rights )

From man chmod

The letters rwxXst select file mode bits for the affected users: read (r),
write (w), execute (or search for directories) (x), execute/search
only if the file is a directory or already has execute permission for some
user (X), set user or  group  ID on execution (s), restricted deletion flag
or sticky bit (t).  Instead of one or more of these letters, you can specify
exactly one of the letters ugo: the permissions granted to the user who owns
the file (u), the permissions granted to other users who are members of the
file's group (g), and the permissions granted to users that are in neither of
the two preceding categories (o).


Run in a terminal:

echo $PATH

or

printf "%s\n" "$PATH"

what you see is a list of directories, looking like:

/home/jacob/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

If you put an executable in either one of these directories, you do not need to set the path to the executable / script, but you can run it by its name as a command.

Executables in $PATH should not have a language extension by convention (although they would work)

Editing your $PATH variable

You can (permanently) add a directory to $PATH by adding the following line to your ~/.profile file (invisible by default, press Ctrl+H in the file manager to make it visible):

export PATH=$PATH:/path/to/dir

More usefull information on environment variables

(such as $PATH) can be found here (thanks for the suggestions @Letizia)


Asus n-10 nano wireless adapret not connecting to the internet

Please detach the USB wireless temporarily. We will install a better, more stable driver for the USB:

sudo add-apt-repository ppa:hanipouspilot/rtlwifi
sudo apt-get update
sudo apt-get install rtl8192cu-dkms

Now, let's blacklist the internal device:

sudo -i
echo "blacklist rtl8192se"  >>  /etc/modprobe.d/blacklist.conf
exit

Reboot with the USB inserted and tell us if it is working.

To accomplish this offline, go here: http://packages.ubuntu.com/

Select Vivid in the drop-down box. Search for linux-headers-generic and build-essential. Be sure to locate their dependencies and the dependencies of the dependencies. Be sure to download the correct version, either 32- or 64-bit. Once you've download about fifteen or so packages on another computer, transfer them with a USB stick or similar to the desktop of your Ubuntu computer. Open a terminal and install them:

cd ~/Desktop
sudo dpkg -i *.deb

It may complain that a package is missing a dependency. If so, download that and add it to the desktop and try again.

Write many posts to tell old Chili how you're stuck. Rinse and repeat.

Once that's all done, get this: https://github.com/lwfinger/rtlwifi_new/archive/master.zip Download it and then transfer it to your desktop, too. Right-click it and select 'Extract Here.' Now, back to the terminal.

cd ~/Desktop/rtlwifi_new-master
make
sudo make install

Reboot.

After you are then connected, I recommend that you then follow the more permanent dkms method I described above.

Obviously, if you are able to get, even for a few moments, an alternate internet connection, the process will be immeasurably faster and easier.


Elantech touchpad does not work (i2c-hid)

TL;DR; WTF!?

MS created a new protocol, HID over I2C.  Neither MS nor touchpad manufacturers actually follow the specs.
As a result, many touchpads that require the new protocol don't work well with the Linux kernel module i2c-hid. Sometimes kernel updates can resolve the problem (or cause it to return).
If possible, disable HID over I2C.  On some computers, the setting may be in BIOS.  But on other computers, the setting may changed only from within Windows.
Sometimes rebooting or switching the touchpad on and off can help.  Sometimes detaching the touchpad, as on an MS Surface or Acer Switch Alpha, can get it working again.

The underlying problem is HID over I2C, an input device protocol created by Microsoft and first used in Windows 8.  Because device manufacturers often don't read, or perhaps intentionally don't follow, specs, Microsoft has put a lot of little quirks into the driver to make it work.  Or perhaps, it's the other way around?  Microsoft has a lot of quirks in the driver so manufacturers cannot follow specs if they are to expect their devices to work (on Windows, until there is one of those "Creator" updates -- so named because they create new, never-before-seen bugs).

On Linux, the kernel module that handles this protocol is i2c-hid.  People have varying degrees of success getting the touchpad to work by changing or patching kernels because fixing the driver for one device can break another device.  If you find a kernel for which this device works and have no other problems, freeze that version immediately.  Never uninstall new kernels unless you have two or more consecutive kernels for which the touchpad consistently works because the touchpad has quantum circuits that activate quarky behavior when it detects the number of stable kernels you have installed is less than or greater than 1.4142, plus-or-minus a counter-anti-counterclockwise spin, which is a single spin in three independent directions, simultaneously.  (Such puzzles are not for us to question.)

A potential solution is to turn off HID over I2C in BIOS.  There is no consistent name for this setting.  It may be tied to some other setting, like EFI.  It might be doable only from within Windows.  It may be impossible.  Consider performing a ritual in which plenty of alcohol is imbibed before attempting this.  If this setting can be disabled, the psmouse kernel module will take care of the touchpad.

But sometimes you have to turn on HID over I2C.  The nature of these devices is they may not work properly with the psmouse module.  Sometimes it is helpful to perform ancient rituals in which sacred, so-called four-letter, words are shouted and while the computer is rebooted or the touchpad on-off switch is pressed multiple times in a pattern that is pleasing to the gods of computation.  If that does not work, the hopeless sometimes receive answers to their prayers upon ripping the touchpad from the rest of the computer.

We must be vigilant in these trying times.  As we continue our Exodus, may our prayers be heard so that we may someday see freedom from the reign of MS.


Should I update the Ubuntu release name for PPAs?

if the repo has a raring source switch to it, for getdeb & playdeb you should use quantal since there is no raring yet
edit the inside of the file the file name is not important


You have the SetUID and SetGID bits set, which are causing things to be owned root.root, and otherwise making you have a Bad Day.

sudo chmod -R u-s,g-s /media/Storage should fix you up.


I figured out that purging console kit fixes this error


Removing plex user has solved for me.

sudo userdel plex


apt update failing because it can't connect to ppa.launchpad.net

Okay it is solved now, when I connected to the network in my college hostel. Was probably some issue with the ISP or router maybe.
UPDATE:
Ok I actually found out the issue and I thought it would be nice to add it to the discussion here so that other people might find it helpful.
The problem was that ipv6 was not enabled in my home internet modem. So I went to the modem configuration ip address and enabled it and the issue got solved in my home too.
It might also be the case that your ISP does not support ipv6, which is the case with BSNL in India, so look out for that too.


First, try to connect with the wired Internet connection (or you can use Mobile Tethering) and use the following commands to install missing Wi-Fi drivers.

Clone the repository (use your Terminal):

git clone https://github.com/lwfinger/rtlwifi_new.git

Enter the cloned folder:

cd rtlwifi_new

Check out the extended branch:

git checkout extended

Start installation:

sudo make install
sudo modprobe -r rtl8723de
sudo modprobe rtl8723de

That's it! You have now successfully installed the RTL8723de Wi-Fi driver on your Ubuntu 18.04 system. This repo also contains the driver for RTL8723be and much more RealTek devices.

If that doesn't work just go and do this:

sudo apt purge bcmwl-kernel-source
sudo sed -i '/blacklist bcma/ d' /etc/modprobe.d/blacklist.conf
sudo sed -i '/blacklist brcmsmac/ d' /etc/modprobe.d/blacklist.conf

Reboot. If wifi does not come on, do:

sudo modprobe -v brcmsmac
sudo modprobe -v bcma


capturing current user in variable and inserting it into file

Found the problem, using single quotes... i was meant to use double quotes as below

#!/usr/bin/env bash

username=${USER:=$(/usr/bin/id -run)}

sed -i -r "s/^#?(live_user)\s*=.*/\1=$username" live.conf

exit 0

it works now.


You can use Ctrl+H if you are browsing files using Ubuntu File Browser (Nautilus)


Black screen when logged in Ubuntu after Nvidia drivers update

Ctrl + Alt + F3 to a shell before logging in. Login on the shell and update/upgrade.

answer #1 if it doesn't work

If it's still not working, sudo rm /var/lib/dpkg/lock should allow apt-get to return to normal use.

Once that is sorted, try purging the nvidia drivers and install xserver-xorg-video-nouveau. How can I uninstall a nvidia driver completely ?


Cannot resize root partition not even from live environment!

From the comments...
Boot to a Ubuntu Live USB/DVD and sudo fsck -f /dev/sdc1 then resize2fs -f /dev/sdc1.


Can't find the window for a process whose status is `Sl`

From man ps:

PROCESS STATE CODES

  Here are the different values that the s, stat and state output
  specifiers (header "STAT" or "S") will display to describe the state of
  a process:

       D    uninterruptible sleep (usually IO)
       R    running or runnable (on run queue)
       S    interruptible sleep (waiting for an event to complete)
       T    stopped, either by a job control signal or because it is
            being traced
       W    paging (not valid since the 2.6.xx kernel)
       X    dead (should never be seen)
       Z    defunct ("zombie") process, terminated but not reaped by
            its parent

  For BSD formats and when the stat keyword is used, additional
  characters may be displayed:

       <    high-priority (not nice to other users)
       N    low-priority (nice to other users)
       L    has pages locked into memory (for real-time and custom IO)
       s    is a session leader
       l    is multi-threaded (using CLONE_THREAD, like NPTL pthreads
            do)
       +    is in the foreground process group

(Since you used aux, you're running ps in BSD mode.)

So you have a multithreaded process which is currently sleeping.


Just go ahead and install BackTrack. When you're done, boot to Ubuntu, and then execute this from the terminal:

sudo burg-install /dev/the_target_disk

Replace the_target_disk with the device name of the disk you want to reinstall Burg to. In most cases it is sda or hda, but yours can be different. After that, run this:

sudo update-burg

Good luck!


fstab wont mount share, cant see what im doing wrong?

FIXED: I was missing a portion of the line in fstab, it seems I was incorrectly providing information about my user. Simply use 'id' to get this information on your system to apply to you're own fstab entry:

//kaboom.local/media    /home/noki/KaboomMedia  cifs    credentials=/home/noki/.smbcredentials,iocharset=utf8,dir_mode=0777,gid=1000,uid=1000,sec=ntlm  0   0

Not sure if all of those options are required but it is now working for me.


is it okay to torrent without an anti-virus? will it affect my windows 7 if I catch Malware?

Your Ubuntu is pretty safe from all viruses you catch.

As long as you don't make them, partitions do not interfere with each other, so your Windows should be safe if you don't copy infected file from  Ubuntu to Windows.
I'm not the only one who thinks so. Moreover, you do have Windows anti-virus, don't you?

If you want to pass a file from Ubuntu to Windows, you can use something like VirusTotal to scan it.

Nevertheless, saying goes, better safe then sorry. Check Ubuntu wiki for a list of reasons, why linux in general is pretty safe from viruses and optional anti-virus programs.


How can I clean my software caches from the command line?

I've never used any such software but if you're talking about caches, I think you might mean downloaded APT packages in /var/cache/apt/archives which are cleaned with sudo apt-get clean.

If you mean package/source package caches, then these can be re-generated with apt-cache gencaches. If you want to remove them for some (odd) reason, they're held in:

/var/cache/apt/pkgcache.bin
/var/cache/apt/srcpkgcache.bin


When switching viewport, focus stays in last viewport

Ok I found the solution in compiz settings.

compiz / General options / Focus & Raise behaviour

Untick the "Click To Focus"


didn't detecting any mobile phone that i connected to pc by using usb

Just today I had a similar issue. I used the USB cable (rather thin) of my previous phone, an Acer. Its also just started charging. Then I used the cable (thicker) supplied with my Galaxy S5 and immediately my phone was detected.


Installing new wacom driver for CTH-680 or CTH-480

Solution was to use the drivers from

Sourceforge

directly and not the git repository.
Anything else is the same.


Dual boot with Windows 8.1 and Kubuntu 15.04 on Acer notebook (failed boot-repair)

In the UEFI / Bios you can configure which bootloader should be loaded first by the UEFI. Maybe you should check if this is configured correctly. It needs to be set to load GRUB first, not the Windows Bootloader.
In my UEFI setup there is a tab named "Boot" where an option "Boot device priority" can be found. Please make sure that the entry "ubuntu [...]" is on top of that list, not "Windows [...]"


Why doesn't my Rosewill RNX-N180UBE wireless adapter seem to be broadcasting?

This question was solved by the OP:

  It turns out that the Linux driver does not support "Master" mode. I
  had to set it up to run in "Ad Hoc" mode in the end.


Mounting an additional hard drive, guide question

Yes as per first comment, you can get full details with man fstab, or the command to display the reference manual page for fstab (file system table).

man fstab will tell you

   The fifth field (fs_freq).
          This  field  is used by dump(8) to determine which filesystems need to be dumped.  Defaults to zero (don't
          dump) if not present.

   The sixth field (fs_passno).
          This field is used by fsck(8) to determine the order in which filesystem checks are  done  at  boot  time.
          The  root filesystem should be specified with a fs_passno of 1.  Other filesystems should have a fs_passno
          of 2.  Filesystems within a drive will be checked sequentially, but filesystems on different  drives  will
          be  checked  at  the  same time to utilize parallelism available in the hardware.  Defaults to zero (don't
          fsck) if not present.

Field 5 is the dump parameter (use 0 as it's very rarely used)

Field 6 is a fsck (file system check) parameter for ordering; 0 usually for key system drives, 2 for less system-critical data drives.

Rather than a device (/dev/sdb1) I'd suggest using the UUID (unique ID) which you can get from blkid once formatted; I'd also use ext4. sda = first drive, sdb=second drive, the number is partition - but these values can change if you change BIOS/UEFI/settings or add/change hardware.

eg.

guiverc@d960-ubu2:/var/crash$   sudo blkid
/dev/sda2: UUID="4f59600e-1f6b-4e3a-a466-941a2168e327" TYPE="swap" PARTUUID="6c8394c6-02"
/dev/sda1: UUID="afa7971f-3dd5-4b30-9c98-0af3e56a6f2b" TYPE="ext4" PARTUUID="6c8394c6-01"
/dev/sda4: UUID="06863296-81b3-4263-8665-21f1864fa399" TYPE="xfs" PARTUUID="6c8394c6-04"
/dev/sda5: UUID="5b4267e5-8b90-4f6b-84b0-c4ee9d5e104d" TYPE="ext4" PARTUUID="6c8394c6-05"
/dev/sda6: UUID="ba0dca2e-0799-4340-b565-a649842c8a69" TYPE="xfs" PARTUUID="6c8394c6-06"

results in a file system entry for one of my partitions as

UUID=ba0dca2e-0799-4340-b565-a649842c8a69       /more           xfs             defaults        0 2

/more is what I've called "more space", which in my case is an encrypted (XFS not EXT) home partition for my other [dual-booted] Ubuntu system.  The UUID or Universally Unique Identifier being much more exact than sda6 which is all lsblk would tell me

guiverc@d960-ubu2:/var/crash$   lsblk
   ..redacted as only for example ..
└─sda6   8:6    0  53.8G  0 part /more


Why won't hp print driver print past a test page?

Disabling bi-directional printing on your printer will fix this problem. Take a look at this: How to send print to Windows XP?

Even when this answer refers to Windows XP acting like a print server, the same rules applies to HP printers when connected to a Linux machine. Give it a try and please inform.

Good luck!

Edit:

Additionally, take a look at HPLIP (The HP Linux Imaging and Printing). This can help you but the majority of the HP's are working perfectly right out of the box, I insist that you may be experiencing bi-directional printing issues. Unfortunately I don't have an HP physically connected to my computer at this very moment in order to run a test. HPLIP can, however, help you.


I was able to add the input method once I killed all of these highlighted processes:

I don't know why restarting the computer did not work, but this did!


how to upgrade firmware intel wifi iwlwifi ? unstable wireless Intel 7260 with lenovo t440p

Have you tried

sudo cp /lib/firmware/iwlwifi-7260-10.ucode /lib/firmware/iwlwifi-7260-10.ucode.bak
sudo cp /lib/firmware/iwlwifi-7260-12.ucode /lib/firmware/iwlwifi-7260-10.ucode

Then reboot, renaming the file works sometimes

You could edit the source from the backports by going into the backports directory and into /driver/net/wireless/iwlwifi and edit iwl-7000.c line 72 as it should be

#define IWL7260_UCODE_API_MAX   10

and change it to

#define IWL7260_UCODE_API_MAX   12

Save and exit text editor, then you can

make clean
make defconfig-iwlwifi
make
sudo make install

and see if it will load the 12.ucode without changing file names.


does replacing ubuntu with my current operating system erase all my previous data

Backing up your data is always a good idea in case of problems.

50 GB unallocated space is enough to install Ubuntu.
It will not erase the other partitions, provided you pick the right install option (use free space).


Way to get graphics tablet TRUST TB-6300 working in Ubuntu 14.04

Here is the way that finally worked in my case.
I've downloaded deb-files of libwacom here and libwacom-common here
To the date of this post most actual versions were:

libwacom2_0.22-1_amd64.deb
libwacom-common_0.22-1_all.deb

Below is connected to above versions so make sure you download and replace with actual names.
I've installed packages with:
$ sudo dpkg -i libwacom2_0.22-1_amd64.deb libwacom-common_0.22-1_all.deb

Then I've included following repository and installed package:
$ sudo add-apt-repository ppa:doctormo/wacom-plus
$ sudo apt-get update
$ sudo apt-get dist-upgrade
$ sudo apt-get install wacom-dkms

Upon reboot my graphics tablet works as it should. Thanks Age of Asparagus for giving great hint!


You do not need Wubi to install Ubunrtu alongside Windows. Do the following.

Boot Windows. Go to System Settings, find there Administration - Disk manager. This utility would allow you to shrink partitions. Shrink any and leave some free space (10Gb  to boot)
Reboot to Ubuntu disk and install Ubuntu to that free space.
Upon next reboot you will be presented a list (grub bootloader) to choose which OS to boot. Well, in 80% cases. If not, look for manual on how to restore a list, depending on what OS does boot.


Internet connectivity does not work in Ubuntu Server 14.04 on Windows 8 VirtualBox host

You might have configured the wrong network interface in Controller's /etc/network/interfaces. Find the correct network interface name and modify /etc/network/interfaces, replacing eth1 with the correct interface name:

auto eth1
iface eth1 net dhcp

You might also want to remove one of the two stanzas in /etc/network/interfaces, either:

auto eth0
iface eth0 inet static
    address 10.10.10.10
    netmask 255.255.255.0

OR

auto eth0
iface eth0 inet dhcp

as they might conflict.


I found this tutorial which is working for me! Hope this helps.

http://lists.unix-ag.uni-kl.de/pipermail/vpnc-devel/2009-February/002990.html

Quoted relevant text below.

8.1 Step 1
----------

List all the hosts you need to access in the corporate network.
In the following example we will consider:
- mail server, to read messages: pop3.mycom.com;
- smtp server, to send messages out: smtp.mycom.com;
- ldap server, to search mail accounts: ldap.mycom.com;
- internet proxy, to access internal websites: proxy.mycom.com.
Avoid a long list; keep security in mind and just map what you really need.

8.2 Step 2
----------

Resolve IP address of all the names you listed in Step 1, and put them in your
local file /etc/hosts. We suppose all of them are fixed IP.
Sometimes two or more servers are mapped to the same IP. Practically it is the
same server that implements multiple functions. In the example below, we
suppose that pop3 and smtp services are on the same server.
Example of /etc/hosts:
    ______________________________________________________________________
    127.0.0.1   localhost.localdomain localhost
    ::1     localhost6.localdomain6 localhost6
    10.0.0.130  pop3.mycom.com smtp.mycom.com
    10.0.14.1   ldap.mycom.com
    10.1.0.5    proxy.mycom.com
    ______________________________________________________________________

8.3 Step 3
----------

Create a copy of your working vpnc config file:
#> cp /etc/vpnc/corp.conf /etc/vpnc/split.conf

8.4 Step 4
----------

Edit the new file "split.conf" and add the following line:
    Script /etc/vpnc/vpnc-script-corp-split
It will force this new configuration to use a special script file.

8.5 Step 5
----------

Create the file /etc/vpnc/vpnc-script-corp-split with following content
    ______________________________________________________________________
    #!/bin/sh

    # Add one IP to the list of split tunnel
    add_ip ()
    {
        export CISCO_SPLIT_INC_${CISCO_SPLIT_INC}_ADDR=$1
            export CISCO_SPLIT_INC_${CISCO_SPLIT_INC}_MASK=255.255.255.255
            export CISCO_SPLIT_INC_${CISCO_SPLIT_INC}_MASKLEN=32
            export CISCO_SPLIT_INC=$(($CISCO_SPLIT_INC + 1))
    }

    # Initialize empty split tunnel list
    export CISCO_SPLIT_INC=0

    # Delete DNS info provided by VPN server to use internet DNS
    # Comment following line to use DNS beyond VPN tunnel
    unset INTERNAL_IP4_DNS

    # List of IPs beyond VPN tunnel
    add_ip 10.0.0.130   # pop3.mycom.com and smtp
    add_ip 10.0.14.1    # ldap.mycom.com
    add_ip 10.1.0.5     # proxy.mycom.com

    # Execute default script
    . /etc/vpnc/vpnc-script

    # End of script
    ______________________________________________________________________

Parameter passed to "add_ip" is used, in /etc/vpnc/vpnc-script, to set routing
table by running either "ip" or "route" command, depending on system
configuration.
While "route" accepts both host names and IP in the command line, "ip"
strictly requires numeric IP.
This is quite annoying, since would be easier using only host names in the
script abobe, keeping numeric IP relations in /etc/hosts only.
Eventually, could be possible improving the script above by resolving names
before running /etc/vpnc/vpnc-script.
The command "gethostip" could be used for name resolution. Does anybody knows
if the command "gethostip" is present in every Linux distro?

8.6 Step 6
----------

At last, provide the proper execution permission:
#> chmod 755 /etc/vpnc/vpnc-script-corp-split

That's all, folks!
You can now run:
#> vpnc split.conf

Reading routing table, you can verify the split is active.
#> route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
proxy.mycom.com *               255.255.255.255 UH    0      0        0 tun0
ldap.mycom.com  *               255.255.255.255 UH    0      0        0 tun0
pop3.mycom.com  *               255.255.255.255 UH    0      0        0 tun0
vpn.mycom.com   192.168.1.1     255.255.255.255 UGH   0      0        0 eth0
192.168.1.0     *               255.255.255.0   U     0      0        0 eth0
10.2.0.0        *               255.255.255.0   U     0      0        0 tun0
169.254.0.0     *               255.255.0.0     U     0      0        0 eth0
default         192.168.1.1     0.0.0.0         UG    0      0        0 eth0


Apt-get fails to fetch inside an LXC container

After a little more Google Surfing (because now I'm really curious about your problem!), I found This Post, describing a similar issue in which the accepted solution was to remove or comment out the  gateway  lines from the host config, leaving the guest configs on DHCP.

Also, verify your subnet settings because that's messed me up before (on Windows, mind you, but still...)


You tried to create the bootable usb with universal application like usb-installer?

http://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/


Audigy LS sound card plays static or white noise on Dell 9100 with ubuntu 14.04 LTS

With alsamixer, locate and mute SPDIF/IEC958 channel (m to mute when fader is selected with arrows key)
(from there)


In Linux, folders and files starting with a dot are not displayed by default. A ls -al will show them in the terminal. In many GUIs, ctrl-H will show the hidden files. For the Desktop, I am not so sure (I use Xfce4). I can assure you that the folder is in you ~/Desktop, it is just not displayed


How can I copy more than 300 pictures with the Ubuntu file manager?

Use the Terminal instead of the file manager:

press CRTL+ALT+T or choose Terminal from the launcher
navigate to the source directory by typing cd /path/to/source
use cp * /path/to/destination to copy all files to the desired destination directory. Don't worry, if this takes a while and you don't get any output.
check the content of your destination directory

Note:
If you have other files than the 300 Pictures in the Directory, you may want to use something like *.jpg instead of * in the cp command to copy only files ending with .jpg.


Enable svi plugin .

plugins=(git svn)

Modify the plugin line as follows.save and close. Then restart zsh again.


How can I tell if my system was booted as EFI/UEFI or BIOS?

The easiest way is to check to see if /sys/firmware/efi exists.  It does not appear if you booted using traditional BIOS.
#!/bin/bash
[ -d /sys/firmware/efi ] && echo UEFI || echo BIOS


Cannot boot either Windows 8 or Ubuntu after installing ubuntu

I think it will be best to step back to your original system:

HP Restore pre-installed windows8 system

and then install Ubuntu next to your windows by using the guidelines mentioned in this post:

Installing Ubuntu on a pre-installed windows 8 64 bit uefi system


ASUS UX533F ethernet on USB not working?

My problem was in fact caused by a hardware issue with the I-Tec dock-station itself (model C31FLATDOCKPDV2), so not an Ubuntu issue.

I was putting the dock-station upside down on the table, in order to have its USB cable on the right side of my ASUS UX533FN (USB-C port on the right), whereas the dock-station was upside up for use with my ASUS UX430 (USB-C port on the left).

After I suspected this to be the cause of the issue, I turned the dock-station back to the standard upside up position. Since then, I never had the issue anymore! Ethernet and HDMI (DisplayPort) over USB-C are working fine.

For a "normal" electronic device, turning it upside down shouldn't be a problem...so I assume there is a hardware quality issue with my I-Tec dock-station. I suspect a soldering defect such as described here or something of the kind.


Did you use HPLIP?
http://hplipopensource.com/hplip-web/downloads.html
you may also try to type "hp-setup" in terminal.


gcc static linking tries/fails to find libgcc_s.a

Unfortunately, it appears the -static link option in gcc (Ubuntu 4.8.4-2ubuntu1~14.04.4) 4.8.4 is broken. Maybe a specs error of some sort?

Anyway, I worked around the problem by upgrading to gcc (Ubuntu 8.3.0-6ubuntu1) 8.3.0 and this version links with -static AOK.


I want to image or copy all my external hard drive content to a folder in my pc

Try using rsync with the -v option. It will show you a progress bar, and if it happens to get stuck at some point, you'll know exactly at file it gets stuck.
To use rsync:

Insert your external hard drive. Navigate to the folder you want to copy and press Ctrl + L in the navigation bar to get the path of that folder.
Now open up terminal and type

rsync -rv --partial /path/on/the/hard/drive /folder/you/want/to/copy/to

Now it will start copying. You'll see a list of files being copied. If it gets stuck on some point, it will either throw up an error message or be stuck. The latter probably means it's copying a large file. Have some patience and and just wait for it to copy.

That's it.


If you are NOT the owner of the machine, then ask the owner (or admin) for a login account with appropriate permission.

If you ARE the owner of the machine, consider wiping the disk and doing a complete fresh install of Ubuntu. You don't know how the previous owner configured the system...and what backdoors they may have left behind.

Well, that's not quite true - you DO know that their login account and full admin permissions still work! All your data is already open to them anytime they wish.


Can't enable Rhythmbox's Google Music Plugin

I installed using PPA, but it didn't work. However, installing using PIP worked just fine:

sudo apt-get install python-pip git-core
sudo pip install git+https://github.com/nvbn/rhythmbox-gmusic.git#egg=rhythmbox-gmusic

I also installed python-dateutil, python-requests and python-validictory.


Ubuntu 15.04 failed to boot, stuck at purple screen after trying to upgrade to 16.04

My suspicion is that /boot/efi (you EFI System Partition (ESP) has a damaged filesystem. This often happens when dual-booting with Windows 8 or later if the Windows Fast Startup and Hibernation options are enabled. Disabling them is covered here and here, respectively. Note that if you disable these filesystem-damaging features, you may need to run dosfsck (from Linux) or CHKDSK (from Windows) on the ESP to correct any lingering problems. In extreme cases, it's necessary to do a file-level backup of the ESP (with rsync, cp, tar, or a similar file-level tool), create a fresh FAT32 filesystem on it, and then restore the backed-up files. This in turn may require updating the "UUID" (really a serial number) for the ESP in /etc/fstab.

If disabling Fast Startup and Hibernate doesn't help, please run the Boot Info Script. This will generate a file called RESULTS.txt. Post that file to a pastebin site and post the URL to your document here. This will give us more details about your configuration.


Is Ubuntu still planning on coming out with a phone?

The Ubuntu Edge is dead, however it has been announced that Ubuntu will be shipped on a phone in select European markets. It’s a 5.4-inch screen powered by a MediaTek octa-core processor, with 2GB of RAM, a 418ppi display, 20MP camera, LTE radio, and a retail price of around $350.


You are reading old instructions off the internet. tlp is included in Ubuntu's universe repository so all you need to type is:

sudo apt install tlp

If you want to utilize the Radio Wizard also use:

sudo apt install tlp-rdw

Thinkpad users can install optional packages for battery threshold levels:

sudo apt-get install tp-smapi-dkms acpi-call-dkms

Source: Welcome to TLP!


Lubuntu installation on Dell Inspiron 6400 - no wifi networks

You can connect to the internet using a modem or cable then use the command sudo modprobe b43 and see the outcome.

If it doesn't work, open the terminal (ctrl+alt+t). Then type:

sudo apt-get remove --purge bcmwl-kernel-source
sudo apt-get install firmware-b43-installer

Then restart yout computer. (The changes only take place when you restart.)

Let me know if this works for you.


Follow the normal install procedures and pick the usb drive as the destination for installation.

The install process provides an option for which drive to install Ubuntu.  Most likely your main drive is /dev/sda.  Your Pendrive will be the next available letter.  If you only have the two drives it'll be /dev/sdb.

When performing the install it'll give you a size and desciption of the drive you choose.  This should make it clear which drive is your usb drive.

Proceed with a normal install.  On the option for specifying the Boot drive, you can pick either /dev/sda or /dev/sdb.

Picking /dev/sda Your main drive will not interfere with your Windows installation... just the boot manager.  Picking your main drive will add both your Ubuntu from the pendrive and your Windows from your main drive to the boot options when you boot your computer.  If you remove the Pendrive, you'll still see the Ubuntu boot option... it'll just not come up if you select it.  Your Windows will still boot, undisturbed.

If you select the pendrive as your boot drive, you will have to access the  computer's BIOS each time you decide to change which operating system to boot to.


How to install ionic-lab on Ubuntu 14.04 and run app?

It's really simple :)

Open a terminal (Ctrl+Alt+T).

Download ionic-lab :

wget http://ionic-io-assets.s3.amazonaws.com/labs/IonicLab-linux-x64.tar.gz

Extract IonicLab-linux-x64.tar.gz archive.
Open ionic-lab by double clicking on the file named IonicLab. That's it.

If you need to install it, please refer to this question : What is the best place to install user apps?


Alt+Tab will bring the first window back.


how to access the windows program installed uisng wine?

After Installing Wine,you are able to install any windows programer running .exe. If you have proper installed Windows program than you can find it in Dash.


q4wine: Cannot find or execute the 'wine' binary

Use sudo apt-get install wine.

WINE is a Windows API implementation on Linux which q4wine depends on.

Look into Wikipedia article for more information.

If you need to set up your $PATH, you can set it inside /etc/environment. It should look like:

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"


sudo snap connect brave:camera core:camera

Reference:
https://www.patrickweber.info/webcam-funktioniert-nicht-in-brave-browser-ubuntu/


Try this:

Steps:

sudo eject /dev/sr0
file /dev/sr0
sudo eject -i off


How do I restore the Trash icon on the desktop?

Using the graphical tool GConf Editor :

Alt+F2, type gconf-editor and click Run.

Navigate to apps ➜ nautilus ➜ desktop and check the trash_icon_visible checkbox.

From the Command Line :

gconftool --set --type=bool /apps/nautilus/desktop/trash_icon_visible True

EDIT ~ UPDATE

In later systems GConf Editor/gconftool is outdated and the settings are not there.

Using Dconf Editor:

org > gnome > nautilus > desktop


First run this:

winetricks quartz

I assume you installed wine with apt install wine which comes with winetricks.

Then install the game normally.

I recommend for a flawlessly installation use CrossOver instead of plain Wine: https://www.codeweavers.com/compatibility/crossover/screenshot/settlers-3

Regards


Very slow wireless connection (unrelated to power management) using  Netgear N150 WNA1100 in 12.04

Did you consult the following logs:

/var/log/pm-powersave.log
/var/log/syslog
/var/log/dmesg

?

Do you see any useful information in any of them?

What happens if you run this command:

sudo bash -x /usr/lib/pm-utils/power.d/wireless true

?


How to install a wireless driver on my dell mini 9 running ubuntu 12.10 off a usb?

I go to System Settings, open up Software Sources, go to end tab Other Sources and there is where I turn on the Broadcom wireless card.

Hope it works for you cause that's how I turn mine on running from USB.


It appears that your devices are timing out because the top layer is not able to unmount because it is still in use, which causes the layers underneath to never be able to close out properly.

You may need to write a helper script which runs at shutdown which unmounts things and closes the cryptsetup in the proper order.

As a more complete answer about the order:

General Rule: If you had to mount it in a certain order, unmount it in reverse order.

More Specifically: In your case, from the output you gave, the order to unmount would be your partition(s) which are mounted as part of you encrypted directory (sda5_crypt) including possible encrypted swap with a sudo swapoff /path/to/swap; sudo umount /path/to/swap and once everything is unmounted from the encrypted drive, then close the crypt device with sudo cryptdisk_stop sda5_crypt . If this gives you an error, then you missed unmounting something.

Now if your LVM happens to be one of those, you will need to do vgchange -a n /dev/vgname before closing your crypt device, which will allow for the lvm pv to be cleanly stopped.

Hope this helps...

Edit:
At another glance, you might also want to try this link: Unattended upgrades failing as I think you might be hitting a bug in the unattended Upgrades service.


Wireless is Connected but No access to Internet 12.10

Upgrade to 13.04 for one, it's out now. You obviously can get to this site and ask this, download it, it's much better.

This seems to be an issue mostly with Rf kill ect. That works for most people. You can google or bing these results very easily. They can describe details much better than me.

One possible solution at the end of all others....Oddly we did this in backtrack 5 kde r3 when we had internet issues, add a wireless windows driver if you have a windows computer (Find the computer build through terminal, IOW exactly the computer name and details you're using, find all the drivers names on google for that computer hardware, install the specific up-to-date driver from the official driver website only (Use duckduckgo to find official websites, enable WOT website ratings in results.))


Should I replace the customized configuration file '/etc/gnome/defaults.list'?

Since your addition is only one line, and since the unselected version will also be saved alongside irrespective of which option you choose, replace the customized version with the new one and add yours over after the upgrade finishes. The sole line you added would be:

x-scheme-handler/bitcoin=armory.desktop;armorytestnet.desktop;armoryoffline.desktop


How do I make a sh file for running my software automatically?

You need to give yourself the privilege to run that command without a password. See

http://manpages.ubuntu.com/manpages/trusty/en/man5/sudoers.5.html
http://manpages.ubuntu.com/manpages/trusty/en/man8/visudo.8.html

There are plenty of examples in the first page.


rsync exclude option with file names with spaces

The exclude option of rsync works on relative paths not absolute ones. So for your example something like the following will work:
rsync -avz --exclude 'directory' source_directory/ destination_directory/

In this generic example you can see that --exclude 'directory' assumes that directory is a sub-directory of source_directory.
I have included the -z option for the rsync line, compression gives a few small speed increases...
Notes:

How to Exclude Files and Directories with Rsync: The page that got me to finally understand the --exclude option of rsync :)


I can't install i386 arch on ubuntu 14.04.3

I've tried with aptitude and I've that :

...The following packages have nonsatisfied dependences: libcgmanager0: Breakage: libcgmanager0: i386 (! = 0.39-2ubuntu2~ubuntu14.04.1) but 0.24-0ubuntu7.5 must be installed. libcgmanager0: i386: Breakage: libcgmanager0 (! = 0.24-0ubuntu7.5) but 0.39-2ubuntu2~ubuntu14.04.1 is installed. The following actions will make it possible to solve these dependences: To preserve the following packages in their current version: 1) libcgmanager0: i386 [Not installed] 2) libgl1-mesa-glx-lts-vivid: i386 [Not installed] 3) libqt4-opengl: i386 [Not installed] 4) libqtwebkit4: i386 [Not installed] 5) libudev1: i386 [Not installed] 6) skype [Not installed]

Than, I've made :

bruno@bruno: ~$ sudo aptitude libcgmanager0

installation: i386 E: Impossible to obtain the /var/lib/dpkg/lock bolt - open (11: Resource temporarily nonavailable) E: Impossible to lock the repertoire of administration (/var/lib/dpkg/). It is possible that another process uses it. W: Impossible to lock the file hides: that is in general due to a simultaneous installation of packages with dpkg or another tool like APT. Opening in reading mode alone: NONE the modifications of the state of the packages which you will be able to make will be preserved. E: Impossible to obtain the /var/lib/dpkg/lock bolt - open (11: Resource temporarily nonavailable) E: Impossible to lock the repertoire of administration (/var/lib/dpkg/). It is possible that another process uses it.


First remove MySQL:

sudo apt-get remove --purge mysql-server mysql-client mysql-common -y
sudo apt-get autoremove
sudo apt-get autoclean

Then install MySQL again:

sudo apt-get update
sudo apt-get install mysql-server -y


How does dpkg-reconfigure know which category an application belongs to?

It gets the choices within its the config control file in the .deb package:

CHOICES=
if db_metaget shared/default-x-display-manager choices; then
  CHOICES="$RET"
fi

You can see meta-info about a package, including virtual functions it provides like "x-display-manager", with the apt-cache command:

steven@wind:~$ apt-cache show lightdm | head
Package: lightdm
Priority: optional
Section: x11
Installed-Size: 440
Maintainer: Robert Ancell <robert.ancell@ubuntu.com>
Architecture: i386
Version: 1.2.3-0ubuntu2.2
Provides: x-display-manager
Depends: debconf (>= 0.5) | debconf-2.0, upstart-job, libc6 (>= 2.4), libglib2.0-0 (>= 2.28.0), libpam0g (>= 0.99.7.1), libxcb1, libxdmcp6, libpam-runtime (>= 0.76-14), libpam-modules, adduser, libglib2.0-bin, dbus, plymouth (>= 0.8.2-2ubuntu31.1)
Pre-Depends: dpkg (>= 1.15.7.2)
steven@wind:~$

The Provides: x-display-manager line is the relevant piece here.

One way to find out which other packages provide this function is apt-cache search ...:

steven@wind:~$ apt-cache search x-display-manager
kdm - KDE Display Manager for X11
lightdm - Display Manager
gdm - GNOME Display Manager
lxdm - GUI login manager for LXDE
slim - desktop-independent graphical login manager for X11
wdm - WINGs Display Manager - an xdm replacement with a WindowMaker look
xdm - X display manager
steven@wind:~$

If you really want to dive into the details, the Debconf Programmer's Tutorial is a good place to start.


Open your terminal using Ctrl+Alt+T and type the following:

locate *.jpg

Your jpg files should all be displayed with their paths.


What is an extended partition for? Is it comes by default when Ubuntu installed via a CD?

The partition table has room for only four partitions. For more partitions, one of these four partitions can be divided into many smaller partitions, called logical partitions. The original four are then called primary partitions. If a primary partition is subdivided in this way, it is known as an extended primary or extended partition.

Typically, the first primary partition will be small ( /dev/hda1, say). The second primary partition will fill the rest of the disk as an extended partition ( /dev/hda2, say). In this case, the entries in the partition table of / dev/hda3 and /dev/hda4 will be blank. The extended partition can be subdivided repeatedly to give /dev/hda5, /dev/hda6, and so on.


So, I am running 14.04 instead of 14.10, but here's what worked for me:

You need to open the file shown in the crash dump, (if using Vim, type ":set nu" without quotes to get line numbers) and go to line 79, and you will see:

 executable_name=cmd_old.split('\x00')[1]

You want to change that 1 to a zero.

Then relaunch.

Again, this works for me on 14.04, but your results may vary.

Please let me know if this works for you.


How do I add groups to Empathy's contact list?

Select any contact.
Right-click on it.
Choose Edit.
You'll be presented by a window in which you can add groups (and not only for that particular user).

For reference see "3. Add New Group" in http://digitizor.com/2009/09/21/5-tips-to-help-you-get-started-with-empathy/


Apt update command took 213503982334601 days to complete (that's what it says)

Just a little bit more searching, seems like it's some 2 year old issue https://www.reddit.com/r/linux/comments/5qpmbu/it_took_longer_than_the_age_of_the_universe_for/

https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1783190

  fix released

but apparently not for 18.04


If your requirement is to use a document management system with PHP and MySQL you could use OpenDocMan, otherwise, if you have more space you should try LogicalDOC (MySQL+Java) which integrates a great search engine (Lucene)


UBUNTU 20.04 I Installed on USB Does Not Boot Properly

Greetings.
Did you create the recommended partitions on your pen drive before installing ubuntu? If yes, could you please share the detail.

Thanks

Mohammad


Lock screen password misses first character in 14.04

Are you using a wireless keyboard? I think this has something to do with the keyboard (and/or keyboard driver) "sleeping" if it is not used for few minutes. This only seems to occur on my first attempt at entering my password, or if I haven't hit any keys for awhile.

I would think this is most likely an issue with my keyboard. It is a cheap wireless keyboard by Logitech. It probably has some built-in sleep mode to conserve battery. Higher-end keyboards may have built-in "turn on and send first entry" process. I don't know. Just what I have observed.

Maybe try getting in the habit of waking your machine via keystroke? (Hit 'Enter' to wake instead of moving your mouse...)


Try to disable GPU acceleration on settings board.

To fix it:
go to settings.
search for "acceleration" on the search box.
clear the check box on the "Use hardware acceleration when available."
restart it.

It is bug in chromium.
you can see here.


How can I install Ubuntu in 128 MB space?

I wouldn't. I don't think it's practical to even try to install Ubuntu within 128MB.

Ubuntu is compiled to be useful, not frugal with disk space. A prime example of this is: each of Ubuntu's kernel packages is about 150MB. It's designed to be flexible, not small.

Yes, you could roll your own for just your hardware (make localmodconfig) but you'll likely end up needing to roll a lot more too. A customised start-up process, strip out Upstart/Systemd, streamline the Xorg drivers.

Your biggest problem, perhaps, is installing. Assuming you can get the final payload beneath 128MB, the only way I can think to get it on the end device is to do a raw copy onto its media (essentially, flashing it from a virtual install you've done and trimmed elsewhere).

And it's not just the up-front time needed, you also have to consider maintenance. The more you customise, the less can be updated automatically. Keeping on top of security issues will be harder because you won't have somebody compiling and packaging things for you.

So yes, you could spend a lot of time doing this just to get Ubuntu and the useful things Ubuntu brings with it. Or you could use something that is designed to be used on an ancient computer. I know which I'd pick.


How to add `Python 3.x` interpreter in Pycharm

First locate your interpreter on your Ubuntu system, then
Try these steps:

From the file menu click or select settings:

From left pane select project name, then on the right click on project interpreter

On the right click on the project interpreter drop down arrow and choose show all from the options there.

On the dialogue box that appears click on the + button on the right then click on Add Local text that will appear.

In the Add local interpreter dialogue box that appears select System Interpreter then click on the three dots to the right and navigate to your python location mine is usr/bin/python3.5. And with that you should have your project use that python version.


Use find instead of ls. It'll give you a relative path based on what you pass it. I'm using tail to snip off the first line which would normally show the base directory.

find scripts/html | tail -n+2 > out.txt


First, a word of warning: the solution to your problem requires something rather risky that may render your Ubuntu installation unbootable. It involves moving your /boot partition. If anything of value is on this installation, back it up before proceeding. Anyways here's the steps:

To disable the swap partition, open /etc/fstab as root and remove the line pertaining to your swap partition. Then, run sudo swapoff /dev/sda1 or whichever sdx# your swap partition is on.

Reclaiming the space from your swap partition would ordinarily be a matter of opening gparted, deleting the old swap partition and resizing the original, but since you want to add it to your home partition you'll need to do it either with your hard drive plugged into another Linux machine or from a live USB with gparted.

Once you are on another machine/live USB, run sudo gparted. The reason you can't resize it immediately, based on your image, is because the swap partition isn't consecutive with your home folder. For partitions to be merged, they need to be 'next' to each other (a partition is a consistent region of data space, and can't be broken up or it'd just be two partitions). It's still possible, but a step needs to be added; move the swap partition next to your home partition.

Doing this is a bit of a process, though. I used a flash drive to show you what needs to be done; here's the starting partitions:

You can see I have 2 partitions and some empty space. To expand partition A into the empty space at the end of the disk, I need to move partition B. Right click partition B and select "resize or move" to get this window:

From here, copy the value in "free space following" into "free space preceding". This will move it to the end of the free space, or simply drag the partition to the end with the slider.

Once that's done, apply the operation and your free space will now be next to your home partition. Using the move/resize option should now allow you to adjust the size of your home partition.


How to download a file from a website that prompts a popup form?

The website requires you to have two cookies set: A valid JSESSIONID and the abaDataCaptureCookie called agreement cookie. The first can be obtained with your first wget command, the second one needs to be added manually.

Obtain a valid JSESSIONID and save it to cookies.txt:

wget --post-data="agreementValue=Agree" frbservices.org/EPaymentsDirectory/submitAgreement --save-cookies cookies.txt --keep-session-cookies --delete-after

Add the abaDataCaptureCookie line:

echo -e "frbservices.org\tFALSE\t/EPaymentsDirectory/\tFALSE\t0\tabaDataCaptureCookie\tabaDataCaptureCookie" >>cookies.txt

Download the file:

wget --load-cookies cookies.txt frbservices.org/EPaymentsDirectory/FedACHdir.txt

I'm not quite sure how long the first cookie stays valid, but I assume you won't download the list multiple times per hour, so obtaining a new one on every run seems OK to me – that's the failsafe approach after all.

Script version of the above steps, using a tempfile as the cookie file:

#!/bin/bash
cookiefile=$(mktemp)
wget --post-data="agreementValue=Agree" frbservices.org/EPaymentsDirectory/submitAgreement --save-cookies $cookiefile --keep-session-cookies --delete-after
echo -e "frbservices.org\tFALSE\t/EPaymentsDirectory/\tFALSE\t0\tabaDataCaptureCookie\tabaDataCaptureCookie" >>$cookiefile
wget --load-cookies $cookiefile frbservices.org/EPaymentsDirectory/FedACHdir.txt

Running this script will save the current FedACHdir.txt to the current directory without leaving a cookies.txt lying around, if there's already a file with this name wget adds a number and saves it as e.g. FedACHdir.txt.1.

On resolving this issue I found great help here: Format of cookies when using wget? · U&L


How do I get a Samsung SCX-4729fd multifunction printer/scanner working?

Install the common scan driver packages in Ubuntu. Then it will able to open with simple-scan.

sudo apt-get install sane xsane xsane-common sane-utils libsane libsane-common libsane-dbg libsane-dev libsane-extras libsane-extras-common libsane-extras-dbg libsane-extras-dev


How to install a specific version of java?

As far as I remember I have installed it with the following command:

sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-jdk

But here is the official way from Oracle how to do it: jdk6_30 install


How do I setup apache to only allow local devices to connect to my website/app?

Allow, Satisfy and related directives have been deprecated, and they only still work for backwards compatibility as part of the module mod_access_compat

The new way is using the module mod_authz_host and the Require directives. (link)

Mixing the two is discouraged. Quoting this official source

  The Allow, Deny, and Order directives, provided by mod_access_compat,
  are deprecated and will go away in a future version. You should avoid
  using them, and avoid outdated tutorials recommending their use.

If you want to restrict to local network, you can do something like

<Directory /var/www/ncp-web/>
  Require host localhost
  Require ip 127.0.0.1
  Require ip 192.168
  Require ip 10
</Directory>

Remove all Allow directives.


What happens to the swap partition after upgrading to Ubuntu 17.04

As far as I know, you'll only get swap file

if you're doing a clean install, and
you're not using LVM

If you're upgrading from a previous version to 17.*, your swap drive will stay and work the same. More on this.