Is a nook reader app for ubuntu touch being developed?

Waiting for the ASUS Nexus 7 (with Ubuntu 14.04) would be your starting point, with the question as written. You would need to be patient ..

A better question might be:
Is there a Nook-reader app. for Ubuntu?

Have you tried Calibre, to convert from the Nook format? (ignoring DRM)

Have you gone to the Nook support forums, and asked about Linux readers? (addressing DRM issues)


Error msg installing and updating Skype in Ubuntu 14.04

Instead of apt-get update make it sudo apt-get update


Difference between installing CUDA using nvidia-cuda-toolkit and the .run file

Mostly the version - Ubuntu's repository is a bit behind, as it prefers stability over cutting edge.


I don't know if it's related but my desktop has started waking from S3 if any other device, such as a phone charger, is plugged/unplugged in the extension lead its powered from; no interaction with any button or device associated with the PC required!

That only started after upgrading to 20.04.


Reinstall the driver. Since you have an iwlwifi device,
sudo modprobe -r iwlwifi
sudo modprobe iwlwifi

If you just want to upgrade to LTS 20.04.1,

Download the new ISO file from https://ubuntu.com/download/desktop.
Copy the ISO to your home directory via a USB drive.
Make a directory to mount the ISO. sudo mkdir /mnt/cdrom
Mount the ISO. sudo mount -t iso9660 -o loop ~/ubuntu-20.04.1-desktop-amd64.iso /mnt/cdrom (Use the actual name of the iso.)
Edit /etc/apt/sources.list and add deb file:///mnt kali main contrib non-free and comment out all other sources.
update the system. sudo apt-get update and sudo apt-get dist-upgrade
Unmount the iso.


Widget Engine Compatibility with Compiz Widget Layer

Everything  has more to do with how efficient the resource usage is then compatibility with Compiz.


VPN Connection only for specific service or port

In following script you can add host/route witch is routed to vpn.
The rest of traffic will be going to default gateway

#!/bin/bash
function routeadd {
    route add -host xxx.xxx.xxx.xxx dev ppp0
    route add -net xxx.xxx.xxx.xxx/xx dev ppp0
}
function makepptp {
   echo pty \"pptp xxx.xxx.xxx.xxx --nolaunchpppd\" >> /etc/ppp/peers/vpn;
   echo remotename PPTP >> /etc/ppp/peers/vpn;
   echo require-mppe-128 >> /etc/ppp/peers/vpn;
   echo file /etc/ppp/options.pptp >> /etc/ppp/peers/vpn;
   echo ipparam vpn >> /etc/ppp/peers/vpn;
pppd call vpn &
}
if [ -a /etc/ppp/chap-secrets ];
        then
        rm /etc/ppp/chap-secrets
    echo $1 PPTP $2 '*' >> /etc/ppp/chap-secrets;
else
    echo $1 PPTP $2 '*' >> /etc/ppp/chap-secrets;
fi

if [ -e /etc/ppp/peers/vpn ];
    then
    rm /etc/ppp/peers/vpn;
    echo name $1 >> /etc/ppp/peers/vpn;
    makepptp;
    sleep 8;
    routeadd;
else
    echo name $1 >> /etc/ppp/peers/vpn;
    makepptp;
    sleep 8;
    routeadd;
fi

Usage:

sudo /path_to_script/vpn username password

note: set execute permision to script

Traffic is routed via vpn only if you add route, anything else go default gw.

Edit 1

In function routeadd you can change

function routeadd {
        route add -host xxx.xxx.xxx.xxx dev ppp0
        route add -net xxx.xxx.xxx.xxx/xx dev ppp0
    }

to

function routeadd {
        route add -host ip_address_for_vnc dev eth0
        route add default dev ppp0
    }

This will route vnc traffic to specific ip address to eth0 int and all other to ppp0 int.
Try.


I found the bulk of my answer on Ubuntu Forums but the command to set the fan speed given was wrong. I also wrote the shell script myself (and I'm a noob), so feel free to comment how I did everything wrong, as long as you tell me how to fix it :) I added excessive comments so people who don't understand bash can get an idea of what I'm doing. This only works for 1 GPU, and will need modifications for multiple. By the way, the fan curve I have set is speed%=0.028*(degreesC^2).

Set-up

Run your file browser of choice as root (in my case sudo konqueror).
Go to /etc/X11 and allow write access to all groups (but keep the window open).
Open up the Nvidia X server settings window (nvidia-settings in the terminal).
Go to the nvidia-settings configuration.
Click Save Current Configuration and then click save on the pop-up window.
Close Nvidia Settings and run sudo nvidia-xconfig, then again with --cool-bits=4.
Reboot.

Script

#!/bin/bash
# Put "sleep 30" here if you run it at start-up
# to make sure this starts after the Nvidia driver does.

fan="0"
gpu="0"
echo "GPU fan controller service started."
nvidia-settings -a "[gpu:$gpu]/GPUFanControlState=1" > /dev/null
check="$(nvidia-settings -a \"[fan:$fan]/GPUTargetFanSpeed=30\" | tr -d '[[:space:]]')"
working="Attribute'GPUTargetFanSpeed'($(hostname):0fan:$fan)assignedvalue30."

if [[ "$check" != "$working" ]]; then
    echo "error on fan speed assignment: $check"
    echo "Should be: $working"
    exit 1
fi
while true
do
    degreesC="$(nvidia-smi -i $gpu | grep -owEe '[0-9]+C')"
    fanSpeed=$(($degreesC ** 2))
    fanSpeed=$(($fanSpeed / 50))
    if [[ $fanSpeed -gt 100 ]]
    then
        fanSpeed=100
    fi
    nvidia-settings -a "[fan:$fan]/GPUTargetFanSpeed=$fanSpeed" > /dev/null
    sleep 8
done

I probably won't be updating this in the future, as I'll be upgrading to an RX 480.


The history command is a feature of bash. For some reason, Your system might be running dash instead of bash. Perhaps, you need to change your login shell to /bin/bash (should have been the default). Type the below command in terminal:

chsh -s /bin/bash

Then, log out and log in.

If you did not install bash in your system, you can install it by the command:

sudo apt-get install bash

Although, you can use other shell like zsh or tcsh (including history).


Sound settings refuse to be saved; Audio works as it should

Case 1 - Tick EQEnabled and keep settings
Case 2 - If it not save open dash and search for startup application search for pulse audio sound system if it disabled enable it.
Case 3 - if the pulse audio sound system not found add click add

  In name section type: PulseAudio Sound System. In command type:
  start-pulseaudio-x11. In comment type: Start the PulseAudio Sound
  System.


First of all, in order to access a desktop environment on ubuntu server, you need to have about 1G of ram and you need to install the "ubuntu-desktop" which is not included with the server by default. Do this by typing the following commands in that terminal:

sudo apt-get update
sudo apt-get install ubuntu-desktop

I'm not exactly sure how to access the desktop once it's installed but you need the desktop before you do anything.

If you don't have much ram, you can install something like Lubuntu or Xubuntu like this instead:

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

For Xubuntu,

sudo apt-get update
sudo apt-get install xubuntu-desktop

image credits

http://www.everydaylinuxuser.com/2013/12/xubuntu-1310-same-again-please-bartender.html

http://news.softpedia.com/news/Lubuntu-14-04-LTS-Final-Beta-Is-Out-Can-Run-on-Any-PC-PowerPC-and-Mac-434620.shtml


Download file RV730_pfp.bin from this site http://people.freedesktop.org/~agd5f/radeon_ucode/ and put it in /lib/firmware/radeon


How to open currently open VLC with shortcut?

I would install kubuntu-desktop, because kde is more friendly in my opinion.
If you want to give kde a try:

sudo apt-get install kubuntu-desktop

Otherwise you need plugins to set your own hotkeys in unity:

All the custom keyboard shortcuts settings are stored in the dconf database.

You can easily access them with dconf-editor:

sudo apt-get install dconf-editor

Then go to the following dconf path in the editor:

/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/

For more details see this


Keyboard Shortcuts Not Working When Not in English

Please see this answer:

How can I set identical keyboard shortcuts when in a different input language Kubuntu 16.04


How do I maximize a gnome-terminal that has been minimized?

See the little dots the 2 arrows I included point to?

Click there.

You can also do alt-tab to line up all open items and then choose the one that shows gnome-terminal.


Stabilizing characters like ``, `{ }` and `[ ]`

I didn't get what you mean for the first time, because I got familiar with that. I think it will be OK, if you can expect results.

That behavior is a standard from Unicode Bidirectional Algorithm. So the dominant BiDi direction is taken from first strong character in the paragraph.

So what I think it happens in this case:

First direction with empty textbox is taken from locale/language configuration. As you said Arabic is an RTL language. So cursor on the right.

Input < but it showed as >. It is a neutral char so no affects on direction. Why it is flipped? Short answer: Unicode standard, :) accept that anyway. Well its name is Less-than sign, So ... In RTL/Arabic, formula's start from right side, it should be flipped. What do you think...no?!!!

Input a Latin char g. It's a strong L (left) char, so this paragraph is detected as LTR.

Backspace to delete g. But notice where the cursor.

Now, example [, it was wrongly named Left square bracket. It should be some thing like Open square bracket (It is BiDi neutral and flipped in RTL)

All developers try to follow standards. So noway they will force textbox to be RTL or LTR, Auto is the best for most users.

So for you, the best thing I can offer is to use Unicode BiDi Control Char's.

U+200F right-to-left mark (RLM)

In empty address bar, Ctrl+Shift+u, small underlined u shows up, enter 200f then Enter

See < did not flip as LTR.

Ctrl+Shift+u is GTK/Gnome specific. KDE misses for such option and it seems not to be fixed, as this bug report mention the conflict between KDE/Qt/Xorg Need way to insert arbitrary Unicode characters in Kubuntu.
As it is just a matter of few characters, you could remap non needed keys or map non used ones. For example, I'm using US English (international AltGr dead keys)

Open its xkb layout file for editing:

sudo nano /usr/share/X11/xkb/symbols/us

Look for the group definition that with same name:

xkb_symbols "altgr-intl" {

    name[Group1]= "English (international AltGr dead keys)";

Let's look as example for r (easy to remember),: AltGr+r → RLM, Shift+AltGr+r → LRM. Instead of ë & Ë. Replace:

key <AD04> { [        r, R,           ediaeresis,   Ediaeresis      ] };

With:

key <AD04> { [        r, R,           U200F,        U200E           ] };

Update xkb

sudo dpkg-reconfigure xkb-data

Switch to another layout then back, it will be active immediately.

Notes:

Use same method to add them to Arabic layout, if you want to be able to use it from both layouts.
You may use U+061C  arabic letter mark (ALM) instead of RLM as you are an Arabic user.
xkb supports other Unicode code entry format, 0x100200f eq. U200F (ie 0x100 as prefix)
To avoid overwriting of the modified key map by xkb-data updates, the best is to create a new custom XKB map. See How to add a new keyboard layout (Custom keyboard layout definition) or What are the steps needed to create new keyboard layout on ubuntu?
It's possible add all other Unicode control characters. Some application has already an option in Popup Menu of the Multi-line Input Text Box. Example Poedit:

Nice to read for further understanding:

Wikipedia: Bi-directional text
Understanding Bidirectional (BIDI) Text in Unicode

References:

Unicode Bidirectional Algorithm
How to enter any Unicode not available on keyboard, see Cannot type “ć” on Hungarian layout
Howto: Custom keyboard layout definitions
Wikipedia: Unicode input
Reconfigure keyboard layout - 13.10, 14.04
Wikibooks: FOSS Localization/Annex B: Technical Aspects (Ref. for 0x100 prefix)


Is there a way to apply LD_LIBRARY_PATH=$LD_LIBRARY_PATH:. for every command automatically?

When you do something like

SOME_VARIABLE=some_value some_command

you run some_command, but with an environment variable SOME_VARIABLE set to some_value for only this single command.

When you write the assignment on a separate line, without any following command, the variable will be set to this value for the entire shell session, i.e. normally until you close your terminal. You will most likely have to export the variable, so that it is not only available within the shell but also to all of its subshells and child processes, i.e. the commands you will run:

export SOME_VARIABLE=some_value

some_command
another_command and so on

This way the variable lasts for your whole shell session, but it won't persist across sessions. It will be gone when you open a new terminal. To persist variables for all your shell sessions, you have to set them within your shell startup scripts, usually ~/.profile. Simply append the line that exports your variable to the end of this file and all your shells that you open from then on will have it set.

Another note for your specific case of LD_LIBRARY_PATH=$LD_LIBRARY_PATH:. though: You should avoid specifying relative paths (here . referencing your current working directory) in any path-related environment variables. These relative paths will always be resolved relative to your current working directory whenever you run a command that uses it, not relative to your working directory at the moment when you define the variable. This can have unintended and confusing side effects and even be security threats. Always use absolute paths.


server seems like restoring like begining

Read man last and do something like

last --fulltimes --hostlast  --dns --limit 999

As an aside, you should consider installing the man pages for your language.

Select from the results of

apt-cache search manpages
apt-cache search language


The hidden partition will not affected if you just shrink other partition (e.g. D:  or E:) to create a partition for Ubuntu it will fine.


How do I preserve LVM while changing the physical disk?

Your cloned disk should work as you expect. The configuration for LVM is contained within the cloned disk and the cloned disk /boot partition.


I accidently ran 'sudo chmod -R 775 /' and it completely broke my OS/Shell

Back-up important files (if you have any) after booting from a live-cd, then reinstall system. This is the only option that I know of.


Error while rebuilding tcl 8.5 to disabling threadings

You have to install two packages:

apt-get install zlib1g-dev debhelper

After:

dpkg-buildpackage
debuild -us -uc


Upgraded Ubuntu from 12.04 to 12.10 Ati radeon HD 3450 Catastrophe!

Ati has removed support for Radeon 2xxx, 3xxx and 4xxx series of graphic cards for their newest drivers, which Ubuntu 12.10 now uses. You need to install AMD's legacy drivers to use these older cards. Here is a blog post which gives several ways to do this. The post's recommended solution,  and what worked for me, was to use a 3rd party repository provided by Tomasz Makarewicz. It just required 4 terminal commands.

First though, you need to be able to get access to your applications. Unity glitches under this problem, removing access to the dash, so you should switch to using the GNOME classic desktop environment. You can do this from the login screen, after booting your computer. Click on the small icon to the right of your name, and you should see a dropdown list of desktop options. Select GNOME Classic (No effects). Then logon as  usual. You should now have an "applications" menu in the upper left corner of your desktop. Most applications should be in obvious places. To get to the terminal, follow the menu path Applications > Accessories > Terminal.

To install the legacy drivers using Makarewicz's repository, open a terminal and enter the following commands. The first command will require your sudo password, and will also give you a text dump explaining what's going on.

sudo add-apt-repository ppa:makson96/fglrx
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install fglrx-legacy

Then restart your computer. Your graphics problems should be fixed.


illegal list name: mailman configuration with FQDN

I think I got it:

root@dur:/etc/mailman#
root@dur:/etc/mailman# newlist mailman
Enter the email of the person running the list: hawat.thufir@gmail.com
Initial mailman password:
To finish creating your mailing list, you must edit your /etc/aliases (or
equivalent) file by adding the following lines, and possibly running the
`newaliases' program:

## mailman mailing list
mailman:              "|/var/lib/mailman/mail/mailman post mailman"
mailman-admin:        "|/var/lib/mailman/mail/mailman admin mailman"
mailman-bounces:      "|/var/lib/mailman/mail/mailman bounces mailman"
mailman-confirm:      "|/var/lib/mailman/mail/mailman confirm mailman"
mailman-join:         "|/var/lib/mailman/mail/mailman join mailman"
mailman-leave:        "|/var/lib/mailman/mail/mailman leave mailman"
mailman-owner:        "|/var/lib/mailman/mail/mailman owner mailman"
mailman-request:      "|/var/lib/mailman/mail/mailman request mailman"
mailman-subscribe:    "|/var/lib/mailman/mail/mailman subscribe mailman"
mailman-unsubscribe:  "|/var/lib/mailman/mail/mailman unsubscribe mailman"

Hit enter to notify mailman owner...

root@dur:/etc/mailman#
root@dur:/etc/mailman# ll
total 52
drwxr-xr-x   3 root list  4096 Aug 27 11:46 ./
drwxr-xr-x 170 root root 12288 Aug 27 11:17 ../
-rw-r--r--   1 root root  2477 Oct 19  2011 apache.conf
drwxr-xr-x   2 root root  4096 Aug 26 16:32 en/
-rw-r--r--   1 root root     0 Aug 26 16:32 leftover
-rw-r--r--   1 root root  4370 Aug 27 11:48 mm_cfg.py
-rw-r--r--   1 root root  4344 Aug 27 11:46 mm_cfg.py.1
-rwxr-xr-x   1 root root  6240 Oct 19  2011 postfix-to-mailman.py*
-rwxrwxr-x   1 root root  4090 Oct 19  2011 qmail-to-mailman.py*
root@dur:/etc/mailman#
root@dur:/etc/mailman# diff mm_cfg.py mm_cfg.py.1
66c66
< DEFAULT_EMAIL_HOST = 'dur.bounceme.net'
---
> DEFAULT_EMAIL_HOST = 'dur'
69c69
< DEFAULT_URL_HOST   = 'dur.bounceme.net'
---
> DEFAULT_URL_HOST   = 'dur'
root@dur:/etc/mailman#


How do I replace Ubuntu with Ubuntu studio on a dual boot system (Windows 8-32 bit and Ubuntu 12.04

The best way to replace Ubuntu with Ubuntu Studio is to get the latest or long-term support (LTS) Ubuntu Studio image (32-bit in your case), burn it to a DVD or USB stick (using Startup Disk Creator or Unetbootin), then boot from whichever you created.

When the opening screen appears, select "Install Ubuntu Studio." Proceed to select your installation language and make sure the requirements are met (whether or not you are connected to the Internet makes no difference). When you are asked how to install Ubuntu Studio, select "Replace Ubuntu  with Ubuntu Studio." After that, set your time zone, layout, and user info, then sit back and relax as Ubuntu Studio installs.


Resolved:

in this case, command cannot to assign value to variable (value in my example) and simultaneously save value in file. Than must erase string value=$
for save result in file just adds >filename

  40 07 * * * curl -d '{"query":"java-middle", "turnOff":true}' -H
  "Content-Type: application/json" -X POST
  http://localhost:8080/explorer >/path/filename


How can I record the sound of my guitar without a microphone jack?

The combo jack uses a 4 contact connector (three little rings on the 3.5 mm end) to handle the singals - you can by an adaptor to separate the signals and access just the microphone part.
An alternative would be to get a USB conversion device to connect your guitar in that manner.
Both of these solutions may be less than optimal, but could be worth a shot if your not looking for professional results.


How to make AMAROK "see" my ipod 6Gen classic?

I restarted the PC, plugged the iPod and waited for a WHILE(more than 5 minutes), and the database of the the player was read. Amarok did it  comparatively  slower to other players, so be warned.


xdg-open equivalent for opening file manager for all variants?

Not directly, but you can tell it to open the directory containing the file:

xdg-open $(dirname /home/file.txt)

Be warned that this may have unexpected results on occasion. After I installed links, this started opening links instead of nautilus.


Are you sure GRUB is installed on your primary hard drive?

If not I would try to boot any of your systems and try to install GRUB on your primary hard drive.You can google on how to do that.


You seem to have a broken compiler setup.  The symbol you referred to should be in libHSrts_thr.a (or a variant, such as the non-threaded).  I suggest you download and use a new copy of GHC, might as well be 7.0.3 while you're at it.

If you really want to investigate more then grep for rtsTimerSignal in the objdump -t libHSrts*.a output.  Also, you could try to use the threaded rts (ghc -threaded) or non-threaded depending on which one is failing here.


How do I create a chroot of an earlier version of Ubuntu?

The package pbuilder is exactly what you need.
It will allow you to construct a chroot environment, build and install your package. Even a pbuilder-cross variety exists. It is a set of command line tools, so no virtual machine point and click required. After a steep but short learning curve, you can probably automate building different architectures and distribution revisions.


When I try to install vscode, snapd shows error code 400

vscode is a 'classic' snap which unfortunately cannot currently be installed in software center. However, you can install it from the command line via snap install vscode --classic.


Error while installing Trelby on Ubuntu 16.10

Short answer:

Do the following:

sudo apt-get -f install
sudo apt-get install libc6 libgcc1 libstdc++6 python python-wxversion
Download and manually  install (using sudo dpkg -i <package-name>.deb) the following in the exact order:

libpng12-0
libgstreamer0.10-0
libgstreamer-plugins-base0.10-0
libwxbase2.8-0
libwxgtk2.8-0
libwxgtk-media2.8-0
python-wxgtk2.8

And finally install Trelby.

Long answer:

Trelby depends on the package python-wxgtk2.8 that is not present in Ubuntu 16.10 repository.
You can download python-wxgtk2.8 package from here
Don't install it now. Package python-wxgtk2.8 depends on:

libc6 libgcc1 libstdc++6 libwxbase2.8-0 libwxgtk-media2.8-0 libwxgtk2.8-0 python python-wxversion

But these three are not available in Ubuntu 16.10 repository :

libwxbase2.8-0 libwxgtk2.8-0 libwxgtk-media2.8-0

Unfortunately, libwxgtk-media2.8-0 depends on:

libpng12-0 libgstreamer0.10-0 libgstreamer-plugins-base0.10-0

and these too were removed from 16.10 's repo.

Search and download the above packages from http://packages.ubuntu.com/
OR simply google with package-name followed by "ubuntu package"

So to solve your issue, first install all dependencies of pyhton-wxgtk2.8 and then install trelby.


The second error is implying that you have a broken DNS setup on the docker engine side (if you're not running the client on the same machine as the daemon).

Try using a tool such as nslookup to test resolving index.docker.io a couple of times. If you get the same sort of result, then try investigating your network setup. Otherwise, submit a bug report to the docker issue tracker at https://github.com/docker/docker/issues

Good luck.


Ubuntu (VM) showing two different workspace when connected to external screen

Press the windows button to open Dash. Search for Displays, and open it. You should find everything you need right there, but for a quick fix, select the checkbox Mirror displays on the right side.

Most likely, the windows are considered to be side by side. Moving the mouse pointer out of the screen towards left or right should get you to the other workspace. You can click and drag windows to choose what to display on each screen.


nvidia driver stops working after kernel update

To insure that you receive all Nvidia updates without need to reinstall them each time kernel updates use PPA below

sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
sudo apt-get dist-upgrade


Cant start ubuntu 3d after installing the nvidia drivers

Painful answer but generally the only way to fix these issues is to download the proprietry drivers from nvidia for linux and then uninstall the experimental drivers and install the proprietry ones.

this link should help you resolve your issue:-

Nvidia 295.59 released

Hope this helps.


You're able to resolve that issue by removing .config/monitors.xml.
Steps are:
 1.rm ~/.config/monitors.xml in terminal
 2.log out and log in
 3.call monitors utility and setup your 2 monitor configuration again.


ubuntu16.04: External Monitor not recognized with Radeon HD 8250/8280G (radeon driver)

I had to activate kernel mode settings (KMS) for the radeon driver by setting the kernel parameter 'radeon.modeset=1'. This can be done by adding it to '/etc/defaults/grub' and running 'update-grub', then restarting the system.

Better try this out without saving the parameter permanently first -- I heard it can lead to problems on some machines: During boot hold SHIFT in order to force the 'GNU GRUB' menu to appear. When the 'GNU GRUB' menu appears, release SHIFT and press the 'e' key. Move the cursor to the line beginning with the word 'linux'. At thhend of this line you will find 'quiet splash' and perhaps 'radeon.modeset=0'. Change it to 'radeon.modeset=1'. Then press Ctrl + x to finish the boot process.


virtualbox's copy and paste between host and base not working

did you try this answer? Specifically, after guest additions installed, open a terminal and type this:

sudo VBoxClient --clipboard

after that it should work even after reboot.


The multiple click problem has happened to me a couple of times since now; in both cases was a faulty mouse. My opinion is that the quality of the switches in most modern mice is at least questionable.

Check the mouse in another machine with (possibly) another operating system.
If you can, try to blow the mouse interior with compressed air (there are electronic-grade bottles around). That solved my problems once.
If the problem persist just on your computer/operating system, now it's time to search for a software problem.


Error message when booting ubuntu on windows 8

Read everything first!

Go to the uninstall software feature of windows, remove all ubuntu off system to start.
I have this issue with windows/ubuntu dual boot atm. EASY FIX thanks to linux!
(See, as opposed to running windows as dual boot i'm choosing to have vista within virtualbox within ubuntu 13.04, this can also be done in opposites (Running ubuntu on windows 8 within VMware AKA Virtual Machine Software (Ware))) (Make sure to uninstall ubuntu so you don't have a bunch of your precious gigibytes going into software of no use floating around the universe of nothingness cluttering space for no reason!)

To run ubuntu 13.04 through VMware, go to virtualbox website (Find official through duckduckgo or bing search engines) Get a virtualbox, re-download ubuntu 13.04s ISO file (You will want a fresh file you haven't messed around with AT ALL) (I find there is a possibility of bugs during download if the ISO files moved to many times or if there's a single error whatsoever during install), the virtual box should be able to run ubuntu 13.04 within VMware easily.

To make dual boot. Windows 8 & Ubuntu (This may have started to void microsoft warranty but that pop-up on ubuntu might have been something to do with Restricted Extras Package)
Use universal usb installer (If on windows) To make a bootable USB.
Load the ubuntu 13.04 onto universal usb installer (UUI is a windows program) (Ubuntu has links on sidebar direct after download for linux edition of usb ISO installer.)
Boot the ubuntu installer directly through the boot menu of windows (Pressing F2, F6, F11, or F12 on boot screen, whichever your computer has i've seen all of them).
Load the installer at #1 boot priority and choose to install ubuntu alongside windows 8, (OR erase all windows (Note: If you do this save every single windows file you wanna keep, this method can be used for massive de-clutter of system (If you do this though make sure you have a windows 8 disk and than install windows back on as dual boot after installing ubuntu)))


Turning off Bluetooth also turns off Wi-Fi on HP Pavilion dm4-1150ea

I've got the same problem here on a Siemens laptop and I researched this about 9 months ago under 12.04, so I don't remember all the details, but the conclusion was that the Siemens uses the same DSP chip for both the Bluetooth and the WiFi and the key combination to turn on Bluetooth and WiFi (in my case: Fn+F1) blocks the chip, not the functionality inside the chip, so there is only one thing to do: live with it and blame it on the beancounters to use only one chip instead of two...  :(


Ubuntu keeps trying to execute text files in shared NTFS drive, forgets default application

To fix the "executable text files" part of the problem, you can follow answer to this question.  Basically you can set masks so that each file is not mounted as executable.


Caveat: I am running a brand new Asus Z590 motherboard and 11900k 11th gen CPU.
This IS possible but I did not fully do it because when I tried my Parted Magic USB would not boot up. AFTER I just did a clean install on my new M.2 drive array I decided to tinker around. I was able to boot a Ubuntu usb by choosing "safe graphic" (there is still an issue with Ubuntu and this new hardware)
From there:
1)install mdadm then run "sudo mdadm --assemble md0" to assemble the one existing array I had installed in the live environment.

install gparted and clonezilla (sudo apt install)

Fire up gparted and check for the array

Fire up clonezilla. I elected to make an image of my array to another drive. Since I can make an image of an array it is only logical I could also clone an image onto an array. I may still try that and/or just clone array to array to prove it can be done even though I now have no need (clean install)

Now this presents one BIG problem. When you clone software raid arrays you are only cloning the raid partitions on the physical disks, this means the boot-efi partition would NOT be cloned. What I would recommend is when you create the new array FIRST make a 512mb fat partition on each THEN make your raid partitions and build your array. I would then clone your original boot-efi partition to one of these partitions in the new array. I prefer to put my boot-efi on the first drive. Since it's efi you could just copy the files over as well I suppose.
So the answer yes it seems entirely possible and when I get time I will do it just to prove it can be done. My motherboard supports 4 M.2 drives so hardware is not an issue for me.
It is VITAL you install mdadm first and reassemble your array(s) otherwise clonezilla will NOT recognize them. OR, and I won't test this, you could just clone drive for drive ie raid A drive 0 to Raid B drive 0 and raid A drive 1 to raid B drive 1. I see no reason that would not work assuming all drives are the same size.
!!! In before the naysayers !!!
I KNOW raid 0 is risky and software raid 0 is riskier still! I have a 12tb REAL raid array running on a server card for data in this machine with SSD caching and 6 HDDs in Raid 5. My home directory rsync's to a separate M.2 nightly and from there to the big raid weekly, rotating every 8 weeks. I also have an install script I keep updated to make installs go quickly. I just happen to like the performance of really fast OS drives. I cut my teeth back in the old days on ultrawide SCSI drive arrays, then ultra2, ultra160, ultra320 and eventually hardware SATA/SAS arrays. I actually beta tested for Microsoft several Win2k service packs and some experiemental drivers allowing me to run 8 SCSI drives for my OS in raid 0, boy I thought that was fast at the time!


How to really, truly remove old kernels?

You need to purge the kernels instead of just remove.
A handy tool is purge-old-kernels which is shipped with the byobu package on Ubuntu 16.04.
EDIT: on Ubuntu 18.04 and up you can use apt autoremove to remove old kernels as well.


You have 4 CPU cores, with Hyper Threading (HTT) support you have one additional logical core per CPU.

So you have:

4 physical cores
8 logical cores

and the results of the commands are correct.


Arduino over /dev/ttyACM0 recognized but on group tty instead dialout. IDE fails to open the serial console

Sometimes if you have put a service to allocate the port is is impossible to send or send data to the arduino. In order to do that disable any service that allocate the required USB port with the following command set:

sudo systemctl stop serial-getty@ttyACM0
sudo systemctl disable serial-getty@ttyACM0

Usually the common suspect is the service serial-getty in case you play with other boards (such as raspberry pi).

Further answers can be found over: http://forum.arduino.cc/index.php?topic=546660.msg3726479#new


Ubuntu there is a program to write iso on usb key and not make file system readonly?

This is called a "persistence" file, since it allows filesystem changes to be 'persistent'.  For details on setting it see this How-to Geek article, or the Ubuntu wiki here.
In short, the easiest way will be to use the mkusb software: currently, that is only found in a PPA, so you'll need to do the following commands:
# Ensure the Universe repository is availible
sudo add-apt-repository universe
# Add the PPA
sudo add-apt-repository ppa:mkusb/ppa
sudo apt update
# Install the software
sudo apt install mkusb

That should get you to where you need to be.


Please try:

wget http://ftp.br.debian.org/debian/pool/main/libx/libxp/libxp6_1.0.2-2_amd64.deb
sudo dpkg -i libxp6*.deb


Hardware buttons problem. The panel with hardware buttons is missing

For Wifi you can use NetworkManager or Wicd or KnetworkManager or other tool.

For Bluetooth you can use blueman:

  Blueman is a GTK+ Bluetooth Manager. Blueman is designed to be simple and intuitive for everyday bluetooth tasks such as:

  Connecting to 3G/EDGE/GPRS via DUN profile.
  Connecting to/Creating bluetooth networks
  Connecting to input devices
  Connecting to audio devices
  Sending/Receiving/Browsing files via OBEX
  Pairing

Installation:

sudo apt-get install blueman

For camera you can use Cheese.

Great site on setting up your camera here.

Just search for a few tools and try them out, to see what you like the most.


Interesting, I am able to reproduce your problem, exactly, in both Byobu, as well as tmux, which is used by byobu-tmux.  Curiously, this does not happen in byobu-screen or screen.

This does look to me like a bug, somewhere in or around tmux or PAM.

Full disclosure: I am the author and maintainer of Byobu.


I am trying to install Steam on ubuntu 14.04 LTS 64 bit

Try resolving the dependencies manually, i.e.

apt-get install libcheese7
apt-get install libcheese-gtk23
apt-get install libglapi-mesa

If that doesn't work, try using aptitude, as its dependency resolution is often more effective than apt-get

apt-get install aptitude && aptitude -f install <thing-it-failed-on>


Creating wifi-hotspot using Unity's default network manager without downloading any tool/software.

The method described in this answer only works if your wireless device supports master mode.  To check whether it does, open a console and type

sudo iwconfig wlan0 mode master

Replace wlan0 with whatever Ubuntu calls your wireless device.

If you get an error, your device does not support master mode and this solution unfortunately does not work. Source: Community Help Wiki, this comment.

Disable WIFI and plug in an internet cable or mobile-broadband modem to your Ubuntu so that your Ubuntu is connected to wired or broadband connection and wireless is disabled.
Go to Network Icon on the top panel → Edit Connections, then click the Add button in the pop up windows.

Choose Wi-Fi from the drop-down menu when you're asked to choose a connection type:

In the next window, do:

Type in a connection name. The name will be used later.
Type in a SSID
Select mode: Infrastructure
Device MAC address: select your wireless card from drop-down menu.

Go to Wi-Fi Security tab,select security type WPA & WPA2 Personal and set a password.
Go to IPv4 Settings tab, from Method drop-down box select Shared to other computers.

When done, click the save button.

After above steps, a configuration file created under /etc/NetworkManager/system-connections directory. File name is same to the connection name you typed in step 4.

Now press Ctrl+Alt+T on keyboard to open terminal. When it opens, paste the commands below and hit Enter to edit the configuration file.

gksudo gedit /etc/NetworkManager/system-connections/wifi-hotspot

Replace wifi-hotspot with the connection name you types in step 4.

When the file opens, search for the line mode=infrastructure and change it to mode=ap.

Finally save the file.

When everything's done, enable WIFI from Network Manager icon on the panel. It should automatically connect to the hotspot you created. If not, select "Connect to Hidden Wi-Fi Network" and select it from the drop-down box.

Now you can search and connect the access point from your Android mobile ..... enyou <^_^>

Credit: UbuntuHandBook


Yes!  The Ubuntu installer should take care of that for you, but if you already have an installation or something, you can install the grub-efi packages.  Running grub-install /dev/sdX will install grub as the default boot entry and copy the needed files to /boot and your first partition.  You can then chainload to windows (assuming the installer doesn't detect this option automatically).

I have an EFI boot of Ubuntu working on my MacbookPro (which I am using to post this).  You can build your own grub image (detailed here) for maximum portability (which I recommend).  If you build your own image, it will work as a recovery image even when you don't have Ubuntu installed.

To summarize:

The Ubuntu installer will setup grub for you.
The installer should detect Windows for you.
If it does not, use your intellect to find a way to boot into your installation and install grub2-efi-amd64 or similar package and run grub-install /dev/sda1.  Note that this will squash your current boot option and make grub the default.  You may also want to run grub-update.


Problem with the "sudo apt-get update" command

You should edit gnome3-team-gnome3-precise.list with administrative privileges and manually remove all references to 'ME'. You can edit this file by opening terminal (shift+ctrl+T) and pasting the following commands (replace gedit with any text editor):

gksu gedit /etc/apt/sources.list.d/gnome3-team-gnome3-precise.list

Sources :[SOLVED] Cant update packages due to error


A parameter containing real numbers not accepted on Linux

The parameter {0.1,0.1},{0.1,0.1} is subject to the brace expansion in Linux shell. You can check it with echo:

$ echo {0.1,0.1},{0.1,0.1}
0.1,0.1 0.1,0.1 0.1,0.1 0.1,0.1

$ echo A{0.1,0.1},{0.1,0.1}B
A0.1,0.1B A0.1,0.1B A0.1,0.1B A0.1,0.1B

To prevent this behavior, enclose the parameter into single quotes ('...').

kdu_expand -i /home/tmp/1.jp2 -o /home/tmp/1.tif -region '{0.1,0.1},{0.1,0.1}'


We will win!
Try to follow the known path
sudo su
dpkg --print-architecture
amd64
dpkg --print-foreign-architectures
i386
If there is no i386 architecture dpkg --add-architecture i386
apt update
apt-get install -f

A very useful command that lists all the dependencies that a package has, including recommended packages.

apt-cache depends steam
or https://packages.ubuntu.com/groovy/steam
The most common problem that needs to be fixed manually is:
sudo apt install libgl1-mesa-glx:i386

If the problem persists
apt-get install --reinstall steam
This is a package groovy steam (1:1.0.0.61-2ubuntu3) [multiverse]

If the problem persists
sudo apt purge steam

and
wget -O ~/steam.deb https://cdn.cloudflare.steamstatic.com/client/installer/steam.deb
sudo apt install -f ./steam.deb


No, there is no such command. Different packages are meant for different things. Also .tar.gz or .tar.bz2 (or .tgz, or .tar.xz, etc…) are not exactly packages. They are simply archive files, like a .zip file would be. They may or may not contain software.

The easiest way to install things, is to use Software Center to find the applications which are packaged in Ubuntu, and install them from there.


Can I install an Ubuntu on an internal harddrive and then I will put it as external/USB harddrive?

Ubuntu does not care if the drive was internal or external when it was installed. You can install to an internal drive then move it to external enclosure or vice versa.

The procedure to install to internal drive, external drive or flash drive is the same.

There should not be any problem installing proprietary drivers, (Nvidia), if the drive will remain on one computer.

I prefer a drive that will boot both BIOS and UEFI as it is often tempting to move the drive from computer to computer: Ubuntu on a USB stick - boot in both BIOS and UEFI modes


How to Install fresh 12.04 install to a PC with dual booting Windows 7 & Ubuntu11.10?

I've already done what you want to do. I also use to have Windows 7 in one partition and Ubuntu 11.10 in another partition.

I also did a fresh install of Ubuntu 12.04. Now I have Ubuntu 12.04 and Windows 7 in different partitions.

Do the following: first, backup your information. Second, boot your computer from a LiveCD. At a certain point of the installation process you will see something similar to this:

Choose the option that says that you want to "Erase Ubuntu 11.10 and reinstall" and click "Install Now". Nothing will happen to your windows partition. Your old Ubuntu 11.10 will disappear and a new Ubuntu 12.04 will be installed.

Let me tell you something about fresh installs: sometime they are great, I do it once a year. But after you do a fresh install you will realise all the changes you made to your old Ubuntu, and that you will have to do it again. The problem is when you don't remember how you did it, so you will spent a lot of time configuring everything again.

Think about doing a fresh install and good luck.


Main Terminal Window Displaying Commands Only

I know little about programming languages, but Bash can definitely set up to behave like you want it, so here's how I would do it.
General Setup
Define a function in your ~/.bash_aliases or ~/.bashrc file that allows you to start your command in a new terminal, e.g.
foo () { ( xterm -hold -e bash -c "$*" & ) ;}

This way foo echo bar opens up a new xterm which shows just the output of echo bar, here this would be a window with just the word bar in it. A chain of commands must be quoted, e.g. foo "echo bar && echo baz". You can substitute xterm by the terminal emulator of your choice, but you need to figure out what the stay open option is – read the man page. Option -e should work for all of them. Note that as a function name you can choose even a single symbol like :, _ or · (AltR+,).
Explanations

foo () { … ;} – define a function foo which does …
( … ) – start … in a subshell, this releases the original terminal so that a new command can be executed even when other output terminals are still open
xterm -hold -e … – run xterm, run … and -hold it open after the command finished
bash -c " … " – execute the command(s) …, needed for being able to run multiple commands
$* – matches every argument of foo = the full chain of commands after foo

Fine-tuning
Closing the output terminal window
You can close the output terminal using your desktop environment's standard shortcut for that – Alt+F4 by default.
If you want the output terminal to stay open for let's say five seconds after the command finished, you need to define the function like so:
foo () { ( xterm -e bash -c "$* && sleep 5" & ) ;}

Replace && by & for the terminal to stay open only until the command is finished, but at least five seconds.
Input facilitation
Using xdotool (ugly and dirty, boo)
It'll bother you to type foo before every single command in your main terminal, so I set up a dirty workaround for that – install xdotool first if necessary. When you open your main terminal, first set this variable:
PROMPT_COMMAND='xdotool type "foo "'

This will automatically type foo followed by a space after, but unfortunately also before every new prompt. All left for you to do is to type your (chain of) command(s).
Using a perl function (massively cool)
The question how to perform the following was asked on Unix.SE and got a brilliant answer by Stéphane Chazelas, whose solution is used here. If this helps you in any way please visit the linked question and upvote his answer.
Add the following lines to your ~/.bashrc file and save it:
insert() { perl -le 'require "sys/ioctl.ph"; ioctl(STDIN, &TIOCSTI, $_) for split "", join " ", @ARGV' -- "$@" ;}
auto_enter() { bind $'"\u200b":"\1'$1' \5"'; PROMPT_COMMAND="insert $'\u200b'" ;}

Now when you open a new terminal and run auto_enter foo, the string “foo ” (with the space automatically added) will appear after every new prompt. If you type something while a command is executed, “foo ” is going to be inserted even before this text.
User-friendly interaction
This version of the function saves the output in a temp file, counts its lines and asks the user whether to display it in a new window:
foo () {
  limit=10 # set line limit
  tf=$(mktemp) # create temp file
  "$@" > $tf # execute command, save output in temp file
  lc=$(wc -l < $tf) # get output's line count
  [ $lc -ge $limit ] && # if line count >= limit then
  ( read -p "The output is $lc lines long, do you want to open it in a new window (y/n)? " yn
    case $yn in
        [Yy]* ) xterm -hold -e "cat $tf" & exit;; # open in new window, send to background and exit
        [Nn]* ) cat $tf; exit;; # print output to stdout and exit
        * ) echo "Please answer yes or no.";; # wrong answer
    esac ) || # else
  cat $tf # print output to stdout
}

Of course this can be highly tweaked and customized, but I think it's a good start.
And Now for Something Completely Different™
A totally different way of achieving your goal is using shell output redirection. who gives you a list of running terminals, e.g.:
> who
username tty7         2017-09-07 20:46 (:0)
username pts/2        2017-09-07 20:47 (:0)
username pts/1        2017-09-07 21:05 (:0)

You can send the output to any of them by simply appending e.g. > /dev/pts/1 to your command, which of course can also be used in a function as shown above.
GNOME Terminal emulator (gnome-terminal) sessions are not displayed by who, nonetheless the pts devices exist equally for them. You can determine open terminal sessions just by trying or with ls /dev/pts | sed '/^[0p]/d' instead.


I would suggest Calibre (available in the software center)

http://calibre-ebook.com/

The only issue may be with handling DRM; over drive uses Adobe Digital Editions to manage the DRM.

  http://www.adobe.com/devnet/digitalpublishing.html


I simply did

apt-get install afpfs-ng

Then I was able to mount AFP shares via the CLI as

mount_afp afp://user:password@192.168.1.101/sharename /media/AFP

Works beautifully!


Wacom Intuos 4, Ubuntu 19.04 Studio, Krita ... POOF! go segfault

Seems to be this bug in Qt. Someone implemented a fix, but the reviewers don't seem to be sure about it, and there's been no updates since January.

Krita claims to have implemented a workaround, but I'm using that version and still seeing the error. As expected, the AppImage build works properly, because it includes an older version of Qt.


Why do removed packages still appear in dpkg?

You have removed the package as seen by un or rc in the first column of dpkg's output.

u - unknown
n - not installed
r - removed
c - only config files installed/remaining on the system

As for your question, the package might still be referenced somewhere in /var/lib/dpkg/status and/or /var/lib/dpkg/available


My AGP GeForce2 does nothing while compiz eats up all my CPU time

Just have a look at this benchmark to see what your problem is...  Although plain vanilla Ubuntu requires a GPU, yours is just not up to the task any more.  If I were in your position I wouldn't evaluate anything and just go straight for Lubuntu as this will give you a stable and well-supported environment for years to come.

Sorry to be the harbinger of bad news...  :-(


I have the same problem so I have found this answer. I hope it helps.


Read here more detailed information about differences between package managers.

As for apt-get you reffered to new dependencies of a package that gets hold or etc. apt-get has a command (function) which is not always used in common for example to update and upgrade packages:

sudo apt-get update && sudo apt-get upgrade --with-new-pkgs

the command with --with-new-pkgs is very useful sometimes and it means:

   Allow installing new packages when used in conjunction with
   upgrade. This is useful if the update of a installed package
   requires new dependencies to be installed. Instead of holding the
   package back upgrade will upgrade the package and install the new
   dependencies. Note that upgrade with this option will never remove
   packages, only allow adding new ones.


SOLVED: I deleted profile of ethernet connection in Network Manager and new connection works ok.


Yes, that's fine. All new Intel and AMD processors suppot the AMD64 instruction set. Generally AMD64 just means 64 bit and will work on any modern processor.


I tried updating the initramfs again and this initramfs worked.  I didn't change my kernel cmdline, so I am guessing that either the build process (I was using) didn't invoke update initramfs OR I didn't copy the latest file.

My kernel cmdline is still:

linux /vmlinuz-5.0.0-34-generic consoleblank=300 root=<DEVICE> rootfstype=squashfs rw cryptopts=source=/dev/disk/by-uuid/<UUID>,lvm,rootdev overlayroot=tmpfs:recurse=0


What happens to gnome shell when I upgrade to 12.04?

I have the same setup on my desktop and laptop and upgraded them both.

On my desktop I used the alternate iso to upgrade and after rebooting, I got a gnome related error when I tried to login.

On my laptop I used the update manager and it worked perfectly. I was able to login and gnome-shell was still my default desktop environment.

I suspect it failed on my desktop, because I told it not to download updates while it was upgrading.


When you enter ssh hostname SSH tries password-based auth by default. So you have to enter an additional option to the command:

ssh -i .ssh/private-key-of-host hostname

After the -i option should be the filename of your key. Now you can login without entering a password.

However there another possibility: You can have a configuration file in .ssh/config. Enter here:

Host Foo
  HostName 123.45.67.89
  IdentityFile ~/.ssh/private-key-of-host

Now you can enter ssh Foo and SSH tries to connect to the host mentioned in HostName (can be a IP address or a hostname) with the key from IdentityFile.


Ubuntu won't start from USB surface pro 6

Rufus downloads some boot files to be booted instead of those who are in the ISO.
It did not work for me too, try Etcher.


How do I manually set the system time in VirtualBox?

I have found a solution. Read the following material: link

Basically if you have Windows host and Ubuntu guest, do the following:

Find a name of your VM (Virtual Machine) - run VB (VirtualBox), select your VM, open settings, in 'General' tab check the name, e.g. in my case Ubuntu 12.04 32bit
In Windows, start a command line interpreter, go to C:\Program Files\Oracle folder and click VirtualBox to select, then holding left shift key, do a mouse right-button click and select "Open command window here" menu, the interpreter has to be running now
Paste the following command (change the VM name to your name!):

VBoxManage setextradata "Ubuntu 12.04 32bit"
"VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled" 1
Finally, start your Ubuntu guest and set the time and date manually.

Undo

If required, to get the guest to sync time with the host again, repeat the above steps but change the final 1 to 0.


Is there such a thing as an Ubuntu 16.04 custom install, so I only install the apps that are necessary/dependant and my own choice?

https://help.ubuntu.com/community/LiveCDCustomization
https://help.ubuntu.com/community/LiveCDCustomizationFromScratch

These two links should walk you through most of the steps necessary for creating a custom LiveCD. The LiveCD is created by first creating a custom iso with all of your desired settings preset. You can install/remove packages and modify the contents of the filesystem and persist those across installs. It's quite a bit of work but it accomplishes everything that you want.


How can I add more disk space to /boot for update

I'm going to guess that Update Manager is trying to load a new kernel in /boot and there's not enough room, so we can free up space by removing older kernels.

Firstly and foremost, please be careful.

Let's look at what's in the /boot partition - I'll use Nautilus as Super User from my computer to provide an example.

lkristie@TinMan:~$ sudo nautilus
[sudo] password for lkristie:

This is the procedure I follow when I need space for new kernels.

Open /boot when Nautilus comes up (screenshot below).

Note the tagged objects are all of the same version - delete them; I'd recommend this: free up the disk space you need and that's it.

If you're tempted to do some housekeeping here, understand the impact of whatever it is you decide to do and - if you're not sure - do the required reading before taking any action.

Leland


Title bar disappears suddenly when Compiz is enabled

Try to run compiz setting manager than(you can run it from terminal typing ccsm).
Than enable than disable Windows Decoration than restart your computer.


How to change /var/log/lightdm/lightdm.log timestamp

You can get a time format of the type you want by piping the lightdm log-file to systemd journal. Here is an adapted version of a solution taken from a blog post by Daniel Aleksandersen. Another discussion of the same idea can be found here. I tried it with Raspbian and lightdm and it worked like a charm.

Modify the existing lightdm.service file like this, for example:

# /lib/systemd/system/lightdm.service

[Unit]
Description=Light Display Manager
Documentation=man:lightdm(1)
After=systemd-user-sessions.service

[Service]
# temporary safety check until all DMs are converted to correct
# display-manager.service symlink handling
ExecStartPre=/bin/sh -c '[ "$(cat /etc/X11/default-display-manager 2>/dev/null)" = "/usr/sbin/lightdm" ]'
ExecStart=/usr/sbin/lightdm
Restart=always
BusName=org.freedesktop.DisplayManager

# /etc/systemd/system/lightdm.service.d/pipelog.conf

[Service]
ExecStartPost=/bin/sh -c 'tail -n 20 "/var/log/lightdm/lightdm.log" | systemd-cat -t "lightdm" '

Then, once you updated the system (for example by rebooting) the lightdm log entries are accessible via the journalctl command. Try journalctl -t lightdm, for instance, and you get the output with both the relative time timestamps and the absolute local time.


Please refer to ServerGUI.

The answer is to use this commands in terminal:

sudo apt-get install xorg openbox


make: No targets specified and no makefile found

For builds a source code packETH from github.

follow the commands with type :

sudo git clone https://github.com/jemcek/packETH.git
cd packETH
sudo sh ./autogen.sh
./configure
make && make install

The autogen.sh will be execute autoreconf -i to store Aclocal, autom4te files and other. and the configure file will be create Makefile and other for build make c file on dependencies your needs.

if you don't have Makefile after type ./configure, you need following the commands with type :

sudo apt-get install build-essential
sudo apt-get install pkg-config
sudo apt-get install gtk+-2.0

and reconfiged again with ./configure and then build again make && make install, if successfully that will open with :

Hope this helps.


How to stop pidgin to run at Ubuntu start up?

Is it listed in

  System > Preferences > Startup Applications


Any setup to version control ALL ubuntu settings?

Those settings are all within your home folder, so backing up .config, .gnome and so on should do the trick. You can use unison to sync those across devices.


The repo is maintained by a Canonical employee so as far as "trust" goes, you should be pretty safe with this one.

But whether or not it fixes things, is another question. It could make things worse, but you can always use ppa-purge to remove the PPA and reset the packages back to their sock Ubuntu versions.


I had the same problem with my login and when looking into it saw that dpkg was corrupt - after trying the steps from this article I had better luck: http://ubuntuforums.org/showthread.php?p=8753631

I had to actually delete the offending line in /var/lib/dpkg/status that prevented dpkg from updating any packages but after that these steps worked to get me back up and running on 12.04.

sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
sudo aptitude update
sudo aptitude full-upgrade

Then make sure to restart.

Hopefully that helps you too


A 32GB USB stick, successfully written by Startup Disk Creator or mkusb, is reported by gparted as 118.89GB

The comment by @oldfred set me on the right track. I formatted a USB disk with 2 partitions; 4GB FAT32 and 120GB ext4. I mounted the 4GB and issued the commands:

  $ 7z x -y ubuntu-17.04-desktop-amd64.iso -o"/media/'myname'/'disk-id'"
  $ sudo parted /dev/sdb set 1 boot on

Now I can boot the Live USB and mount the 2nd partition in case I want to save data during the Live Ubuntu 17.04 session.


I am not able to delete a corrupt NTFS  partition on my pen drive. How can I force its deletion?

If you are completely, positively, SURE that you want to erase the current contents of your pen drive, then you can try the dd command as described below.

First, check one last time that /dev/sdb refers to the pen drive you want to erase. As another answer has pointed out, you want to have no doubt that you are erasing the correct device. (I would probably run the command sudo fdisk -l as an extra check.)

The dd command below should write zeros to the first MiB of the pen drive which will erase any partition table. This should completely remove any partitioning.

sudo dd if=/dev/zero bs=1M count=1 of=/dev/sdb

If you decide you want to write zeros to the entire device, just omit the count=1 parameter. This will take longer, of course. How much longer depends on the size of the pen drive you are erasing.

sudo dd if=/dev/zero bs=1M of=/dev/sdb

After you have erased the partition table with zeros, you can partition the drive. I would do this using gparted simply because I am familiar with that tool and know how to use it.

Here is how I would do it.

If gparted is not already available on your system, install it. You could, for example, use the command below.
sudo apt-get update && sudo apt-get -y install gparted
Start gparted, entering your password when it is requested.
Perform the following steps.

Select the pen drive as the current gparted device.
Select the free space region on the pen drive.
Select Create Partition Table in the Device menu and create an MS-DOS style partition table.
Select New in the Partition menu to create a new primary partition on the pen drive. Or if you prefer, you could close gparted at this point and use fdisk to partition the pen drive.

Note:

If you wanted to do this in Windows I suggest using the DISKPART command in a command window. Once in DISKPART select the correct disk and then issue the command CLEAN.

(You can issue the command HELP CLEAN while in DISKPART form more information about what the command does.)


X2GO with Ubuntu Mate/Xfce 16.04 fails to start

To work around the problem set in ~/.profile the system default value for XDG_DATA_DIRS and to GSETTINGS_SCHEMA_DIR.

export GSETTINGS_SCHEMA_DIR=/usr/share/mate:/usr/share/mate:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop

export XDG_DATA_DIRS=/usr/share/mate:/usr/share/mate:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop


can you set socks5 proxy from Linux command line?

You are using the wrong tool to test your SOCKS proxy settings. wget does not have built-in support for SOCKS, it has support for HTTP / HTTPS.
curl on the other hand has built-in support for SOCKS and thus you should use it instead.
See man curl for information and usage.


I managed to get this working after doing two things.

First as the country code wasn't being set initially I did sudo iw set GB to set it to the UK.

I also did a comparison with a Debian installation where the wireless came up before logging in and the only difference I found was the /etc/network/interface file. I commented out the entry for wired ethernet card and left only the one for the loopback interface and it worked.

I think that it was probably the entry for the wired ethernet card in the interfaces file that was causing the problem. I think that this was done in the initial install as I didn't add it. My guess that this was causing the system to waiting for the wired interface to come up but it eventually timed out and then continued with the boot and that commenting out the entry leaves it to the Network Manager to handle the network and it switches over to the wireless card once it determines that the wired card isn't connected.


How can I accept end user license agreement for ttf-mscorefonts-installer?

Press Tab key, when <OK> is highlighted press Enter key.


The file you edited is contained in the "nautilus" package. You can easily restore the original version shipping with 12.04 by doing the following.

Remove the old file:

sudo rm /usr/share/applications/nautilus-home.desktop

Reinstall nautilus:

sudo apt-get --reinstall install nautilus

After this, the behaviour of the quicklist should be the default for 12.04, no duplicates that is. The default behaviour in 12.04 will already give you access to your standard directories in your home.

You can make additional and safe customisations to your quicklist in your home directory.

In case you make changes to a quicklist or other system file like you did previously always make a backup in order to avoid situations like this one! :)


How do I allow local IPv6 subnets in ufw?

Keep in mind there are no IPv6 "local ranges" - each IPv6 "local range" is its own (at least) /64 segment of v6 addresses in a specifically defined prefix.  As such, any 'private range' address you receive is going to be specific to the subnet your router sets you up on rather than the external v6 address you have (there's logic inside routers to set up the subnets automatically, but when you get into Enterprise-grade routing with advanced firewalls, routers, switches, etc., IPv6 has to be manually configured by hand and set up.

When you add into the equation that you will quite possibly (and frequently) have a changing subnet all the time, there is no way to accept them all dynamically without accepting all IPv6 inbound connections - at least on a consumer-grade network setup (with a much-more-complicated and much-more-expensive firewall appliance, you can explicitly do VLAN separation to prevent things from communicating with the outside and accept only internal v6, but you can't do this on consumer-grade router technologies).

As well, firewall rules are designed in ufw (and the underlying iptables and netfilter technologies which ufw works with) to have specific rules (such as ALLOW aaaa:bbbb:cccc:dddd::dead:beef INBOUND TO dddd:eeee:ffff:0000::dead:beef PORT 22/tcp (obviously not a rule, but just an example)) and if you are always having different addresses on different v6 subnets, (either internally or externally, but especially internally), it breaks the requirements that firewalls have for those kinds of rules.

You would therefore need to know all the subnets you'll get, and add a ufw rule that would be for each individual subnet.  If that subnet is always changing and you do not know which subnet you will get, then you can't reliably create a firewall rule in any setup that can do what you're looking to accomplish on a dynamic ever-changing basis.

This also applies to port-forwarding at home - you can't reliably set up a port forward UNLESS the internal IP address (v4 or v6) isn't going to change.  (The router transparently handles INBOUND from the internet, on its own, so long as you set up the internal v6 in a static setup, but you can't guarantee this will happen without much more time-consuming network configuration and setups, and possibly more enterprise-grade level equipment which can get expensive)


Why is iSCSI support not included on the alternate installer?

Colin Watson answered this in Launchpad:

  I think it was just because I didn't expect much demand for it and it
  would have been an extra half-megabyte on the already
  strapped-for-space alternate install CD. You're more than welcome to
  consider it a wishlist bug, though - questions aren't a very good way
  to record this kind of suggestion for the longer term.


You need to extract the .jar from that compressed file and add it to Eclipse.

Inside it you will find mysql-connector-java-<version>-bin.jar, which is the jar you are looking for and some other files (like source code and documentation).

Note: package libmysql-java indeed provides the jar you need (it is placed in /usr/share/java/mysql-connector-<version>.jar), so if Eclipse does not find it you may need to change something in "Java Build Path".


Download the deb driver from:

The 32 bit drivers are:

http://download.ebz.epson.net/dsc/op/stable/debian/dists/lsb3.2/main/binary-i386/epson-inkjet-printer-201303w_1.0.0-1lsb3.2_i386.deb

The 64 bit drivers are:

http://download.ebz.epson.net/dsc/op/stable/debian/dists/lsb3.2/main/binary-amd64/epson-inkjet-printer-201303w_1.0.0-1lsb3.2_amd64.deb


No such schema “com.canonical.indicator.datetime"

I found the problem.
I had to set format to custom.

I used dconf-editor and went to org/mate/panel/objects/clock/prefs/. I set format to "custom" and custom format to %a %b %d %Y %I:%M %p.

NOTE: If you accidentally delete your panel, you get to do this all over again.


A google search for J2EE sdk results in 1.4 showing up right on top. Sad that google search does not show the latest sdk. Even the oracle site does not mention anywhere that 1.4 is old and is a newer version.

During install, the first step is install location. I provide that. After install this folder is empty. Now I need to figure out where the jar's are.


Update to Grub2.x broke Xubuntu 12.04 client in VirtualBox

My first try in situations like this would be Boot-Repair.  You can run it off of a (virtual) LiveCD.

https://help.ubuntu.com/community/Boot-Repair


How to change the cursor to hourglass in a python gtk3 application

Here's a working example of what you want.
You need to grasp the concept of what the GTK main loop does to understand why it is important to separate GUI manipulation code from long blocking code. Hopefully, the comments and the debugging statements in my example will help you understand. This PyGTK FAQ entry is useful, and the concept applies to Python with GTK3 and GObject introspection as well.
Example code:
This code creates a window with a simple button labelled "Click me". Once you click it, it will change to "Working", the cursor will become an hourglass, and the GUI will remain responsive. Once ten seconds have elapsed, the button label will change to "Done" and the cursor will return to normal.
import time
import threading

from gi.repository import Gtk, Gdk, GObject

window = None

def main():
    GObject.threads_init()
    Gdk.threads_init()

    # Build GUI:
    global window
    window = Gtk.Window()
    button = Gtk.Button(label="Click me")
    window.add(button)
    window.set_default_size(200, 200)
    window.show_all()

    # Connect signals:
    window.connect("delete-event", Gtk.main_quit)
    button.connect("clicked", on_button_click)

    Gtk.main()

def on_button_click(button):
    print "Debug on_button_click: current_thread name:", threading.current_thread().name

    # This is a callback called by the main loop, so it's safe to
    # manipulate GTK objects:
    watch_cursor = Gdk.Cursor(Gdk.CursorType.WATCH)
    window.get_window().set_cursor(watch_cursor)
    button.set_label("Working...")
    button.set_sensitive(False)

    def lengthy_process():
        print "Debug lengthy_process: current_thread name:", threading.current_thread().name
        # We're in a new thread, so we can run lengthy processes without
        # freezing the GUI, but we can't manipulate GTK objects except
        # through GObject.idle_add
        time.sleep(10)
        def done():
            print "Debug done: current_thread name:", threading.current_thread().name
            window.get_window().set_cursor(None)
            button.set_label("Done!")
            return False
        GObject.idle_add(done)

    thread = threading.Thread(target=lengthy_process)
    thread.start()

if __name__ == "__main__":
    main()


Better way to select window from GNOME-3 expose?

Install the windowNavigator shell extension. When you enter the overlay view and hold Alt, you'll see some numbers appear over your windows; Alt+number will select a particular window.


You can accomplish this using a case modification parameter expansion of $USER instead of \u inside the PS1 environment variable. The expansion would be ${USER^} to uppercase only the first letter of the username).

You can run this variable assignment on the terminal to see the effect:

PS1='\[\e]0;${USER^}@\h: \w\a\]${debian_chroot:+($debian_chroot)}${USER^}@\h:\w\$ '

If do you want to make this change permanent, you can use this method:

Edit the .bashrc file in your home folder
Locate these lines:

if [ "$color_prompt" = yes ]; then
    PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
    PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi

In the two lines that begin with PS1=, replace \u by ${USER^}, so it looks like this:

if [ "$color_prompt" = yes ]; then
    PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]${USER^}@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
    PS1='${debian_chroot:+($debian_chroot)}${USER^}@\h:\w\$ '
fi


If you have installed TexLive from Ubuntu repository - then you need to reinstall package which provides this cmr10.tfm file with single command below:

sudo apt-get install --reinstall texlive-base

and then the problem will be solved.

If the problem persists - you can detect problematic packages with debsums or reinstall all with brute-force method:

sudo apt-get install --reinstall $(dpkg -l | grep ^ii | grep -i texlive | awk '{print $2}')


GCC related issue(Need to install latest version of GCC 4.9.0)

You will need to build from sources gcc-4.9 (latest version is 4.9.1), here is a good, step by step, description of how to build and install gcc-4.9.1 on Ubuntu 14.04:

https://solarianprogrammer.com/2014/08/26/building-gcc-on-ubuntu-linux/

A short resume of what you need to do, please check the above link for more details:

Install build-essentials, gawk, m4, gcc-multilib
Download the source code for GMP, MPC, MPFR, GCC
Build and install them in this order (see the link for details):

GMP
MPFR
MPC
GCC

After that you should be able to invoke gcc-4.9.1, g++-4.9.1 and gfortran-4.9.1 from the Terminal.


Headphones not detected on Asus ROG Zephyrus M-GU502

Same issue with GU502 and Ubuntu 20.04.  My solution is to use an external usb audio interface, probably overkill if you aren't seriously into sound.  Though before when I ran into the same problem with earlier versions of ubuntu on different hardware, I solved it with a cheap usb audio adaptor on ebay, just a little dongle with headphone and mic jack effectively. Might be something to consider if you don't come across a better solution (though YMMV when it comes to cheap kit from China).


How do I make a Google Presentation appear on the projector display?

Use Firefox. This is an issue only with Chrome.

Once again, I've found that a Google product works better on Firefox than on Chrome. Go figure!


How to fix my USB headset microphone (works for one second then input stops working)

Fresh install of Ubuntu 12.04 solved it. Cheers!


Install Ubuntu without using a USB or disc?

Yes, it's absolutely possible.

This is how you do it (for safety do a backup before following the instructions, in case something go wrong);

First make sure you boot Windows, then download your iso if you haven't already. Afterwards download https://sourceforge.net/projects/partedmagic/files/partedmagic/Parted%20Magic%205.5/pmagic-5.5.iso.zip/download

and lastly http://unetbootin.sourceforge.net/

Now, run the Unetbootin installer. Choose your Parted Magic iso and choose frugal install.

Install it to your windows partition (normally C:) when it tells you it's done you can reboot.

When you reboot into your unetbootin installation you should be able to choose to load Parted Magic entirely into RAM. This means that, once running, it will not actually be using the hard disk at all - leaving you free to resize the partitions.

Once Parted Magic has booted, select the gparted application. It's fairly easy to use. simply select your Windows partition, click edit, and shrink it by about 8Gb.

Make sure you leave the empty space to the right of the partition. Then click apply.

Unetbootin may prompt you to remove the installation. If not running the unetbootin installer again should remove it. (If neither happens then control panel and add/ remove programs on XP or Programs and features on vista/7 and remove it there).

Run the Unetbootin installer again and this time, select your Ubuntu iso to use for the frugal install. Reboot into this new installation. Once in Ubuntu, run gparted.

In the spare space create a new partition, and format it as ext4 (often you'll be told to create a swap partition; you can if you want; I don't normally; google will tell you more). Click the install icon on the desktop. When it gets to partitioning, click specify manually. Choose your new partition and pick use as: ext4, mount point: / Let the installer do its job. now you have a choice. Left like this the system will allow you to dual-boot (i.e. choose between Ubuntu and Windows when you switch on the pc).

Reinstall Parted Magic as we did in step 1. Reboot to parted magic (loading it to RAM again). Open up gparted, move the Ubuntu partition to the left, then grow it to the right. Do not try to grow it to the left. (This is the time to create your swap partition if you want one). Now reboot. You have now installed Ubuntu alongside Windows without even touching a disc or usb! :)

The source: http://community.linuxmint.com/tutorial/view/171


Ubuntu screen scaling affecting unmodified monitors too

I enabled fractional scaling and that seemed to stop GNOME from auto scaling the other two. Then I kept my 4K at 200% scaling and the other two to 100% scaling using the fractional display setting being enabled. For whatever reason, the fractional display setting must be enabled for it to work for me.


Netbeans thinks it's supposed to use java 8.1 still you just need to reinstall it so it can see the correct java version


Do you have Google Chrome installed? If you do have it installed, you can just make a link to the libpdf.so plugin in the Chromium folder:

sudo ln -s /opt/google/chrome/libpdf.so /usr/lib/chromium-browser/

After that, enter about:plugins in Chromium, search for Chrome PDF Viewer and enable it.

If you don't have Google Chrome already installed, I suggest you to download the .deb  package and extract it. Then, you must navigate to the folder data/opt/google/chrome and copy the libpdf.so to the /usr/lib/chromium-browser/. More details.


How do I fix this error I get when trying to run DS9?

Problem summary

This indicates that a certain file (namely, "libXss.so.1") is missing for DS9 to work.

How to solve problems like this on your own

To find out which package provides (or contains) a certain file in Ubuntu, you can use the "apt-file" command.

First, make sure "apt-file" is installed.

sudo apt-get install apt-file

Now, using "apt-file" is simple enough.

apt-file search filename-to-search.for

This outputs a list of packages that provide a file named "filename-to-search.for", thus allowing you to install the necessary package(s) using apt-get.

Real-life answer

In your case, you would need to run the following command:

apt-file search libXss.so.1

This outputs the following:

libxss1: /usr/lib/i386-linux-gnu/libXss.so.1
libxss1: /usr/lib/i386-linux-gnu/libXss.so.1.0.0
libxss1-dbg: /usr/lib/debug/usr/lib/i386-linux-gnu/libXss.so.1.0.0

This indicates that the package you need to install in this specific case is most likely "libxss1".

So, to install it, run the following command:

sudo apt-get install libxss1

Now, try running DS9 again, and you should find that the error message is now gone.


Why do Firefox, Preferred Applications and x-www-browser disagree on default browser?

Honestly, I don't know where the Firefox / Preferred Application setting lives. However, x-www-browser is managed by the "alternatives" system in dpkg. You can interactively change it by typing this at a command prompt:

sudo update-alternatives --config x-www-browser

So, not a complete answer but might let you straighten things out and move on :)

Update
This page describes where Gnome keeps its preferred applications settings. The page refers to Linux Mint, but the same principles should apply: http://www.libre-software.net/change-the-default-application-linux-mint-ubuntu

So yes, they're different.


Reverse-Engineer Driver for Multi-colored Backlit Keyboard on Clevo Laptops

Well, as it turns out, someone else actually figured it out. A huge "Thank You" to "klystron34" over in the notebookreview.com forums. Check out the forum thread for more information.

Note: As far as I know, this will work for many/most laptops based on the stock Clevo P150EM and the P170EM. This was personally verified by me on a Sager NP9170 on Ubuntu 12.04. Proceed at your own risk. I'm not responsible for any damage you might cause doing this, and any other standard internet disclaimers. Proceed at your own risk. Now, onto the good stuff:

First, you need to be able to compile a kernel module, so update your repositories:

sudo apt-get update

Now, install git, the build tools and the kernel source:

sudo apt-get install git build-essential linux-source

Now create a working directory. I prefer to use a "dev" folder located in my home directory:

cd ˜
mkdir dev
cd dev

Now, download the source for the kernel module:

git clone git://git.code.sf.net/p/clevo-wmi/code clevo-wmi-code

Go into the directory with the source code:

cd clevo-wmi-code

"Make" the kernel module:

make

You should now have a file called clevo_wmi.ko

Now, let's test and see if the module actually works by loading the module:

sudo insmod /home/<your-username-here>/dev/clevo-wmi-code/clevo_wmi.ko

If it worked, you should now have a new directory called:

  /sys/devices/platform/clevo_wmi/kbled

Change over to that directory:

cd /sys/devices/platform/clevo_wmi/kbled

You should now be able to change the colour of the middle section of your keyboard by executing the following command:

sudo su -c 'echo 100 > middle'

The middle section of your keyboard should now be green. Replace middle with left or right to change the corresponding section of the keyboard. Here's a list of the color codes:

GRB (Green-Red-Blue)
000 - Off
111 - White
100 - Green
010 - Red
001 - Blue
110 - Yellow
011 - Purple
101 - Aqua

To install this kernel module permanently, copy it into the same location as the rest of your kernel modules (NOTE: You will probably have to perform this step and the next step anytime you change your kernel):

sudo cp ~/dev/clevo-wmi-code/clevo_wmi.ko /lib/modules/`uname -r`/kernel/drivers/platform/x86/

Next, do this (I think rebuilds the list of kernel modules):

sudo depmod -a

Then edit your /etc/modules file and add this line to the end of the file:

  clevo_wmi

Save your changes to /etc/modules.

Now, whenever you reboot, the module should be loaded and you can then change the colour of the backlight on your keyboard. Figuring out how to have it change colours on reboot and remembering your last colour setting is an exercise left up to the reader. Check the docs directory in the sourcecode for instructions on how to use the dynamic colour changing features.

Thanks agin to the developer(s) that worked hard on writing this kernel module!


lm-sensors reports incorrect chassis fan speed on ASUS M5A78L/USB3 in 12.04LTS

For me in the begining when i was on ubuntu 10.10 it was working correctly , but now it is displaying this :

ucefkh@01Tek:~$ sensors
atk0110-acpi-0
Adapter: ACPI interface
Vcore Voltage:      +1.26 V  (min =  +0.85 V, max =  +1.60 V)
 +3.3 Voltage:      +3.23 V  (min =  +2.97 V, max =  +3.63 V)
 +5 Voltage:        +5.02 V  (min =  +4.50 V, max =  +5.50 V)
 +12 Voltage:      +12.14 V  (min = +10.20 V, max = +13.80 V)
CPU FAN Speed:     675000 RPM  (min =  600 RPM)
CHASSIS FAN Speed: 2909 RPM  (min =  800 RPM)
CPU Temperature:    +17.0°C  (high = +60.0°C, crit = +95.0°C)

High Speed CPU FAN


A gtkToolbar accept any gktWidget, like any other container. An example in python:
import gtk
root = gtk.Window()
toolbar = gtk.Toolbar()
root.add(toolbar)
spinbutton = gtk.SpinButton()
toolbar.add(spinbutton)
root.show_all()
gtk.main()

So this works just like adding the GtkToolbar to the GtkWindow.


MariaDB 10.0.33 Configuring MariaDB for Remote Client Access

English
The answer was already in the file my.cnf where it explains the configuration order so that the last file is the one that applies.
The problem I got is that the MariaDB docs recommends to comment out the lines skip-networking and bind-address.
In my case, to comment out lines does nothing, it doesn't override the previous configuration, because it only applies if it defines something new, so I had to go to the source where it was defined that keywords to comment that out in the first place.

I had to comment out this file /etc/mysql/mariadb.conf.d/50-server.cnf where it was firstly defined skip-networking and bind-address.

/etc/mysql/my.cnf

# The MariaDB configuration file
#
# The MariaDB/MySQL tools read configuration files in the following order:
# 1. "/etc/mysql/mariadb.cnf" (this file) to set global defaults,
# 2. "/etc/mysql/conf.d/*.cnf" to set global options.
# 3. "/etc/mysql/mariadb.conf.d/*.cnf" to set MariaDB-only options.
# 4. "~/.my.cnf" to set user-specific options.
#
# If the same option is defined multiple times, the last one will apply.
...

I hope this could save time to someone else.


What is /proc/sys/vm/pagecache in Ubuntu?

Nothing, I suspect. A glance at kernel version 2.6.18's Documentation/sysctl/vm.txt and Documentation/filesystems/proc.txt shows no such parameter, so it must be something patched in by Red Hat. Note that the docs you're referring to is for RHEL5, which is now 10 years old. This paywalled RHEL article suggests that that parameter was dropped in the next version. Presumably whatever it was they patched was deemed no longer worth the effort.


RDP to my laptop from my PC both running ubuntu 20.04 over wifi?

RDP is usually notation for Microsoft Windows Remote Desktop.
But you can try VNC.
On the "server" device, the laptop, open Terminal:
sudo apt-get install x11vnc
sudo ufw allow 5900/tcp
x11vnc

Edit: If you get error like XOpenDisplay failed. No -display or DISPLAY. and it fails, try running DISPLAY=:0 x11vnc. Shouldn't be an issue with graphical edition (Desktop), but thought to mention it if someone else trys it in other circumstances.
See more details eg here: https://linuxconfig.org/how-to-share-your-desktop-in-linux-using-x11vnc
To see local IP open Terminal again and type:
ip a

Look for something like inet 192.xxx.xxx.xxx or inet 172.xxx.xxx.xxx (can be 10. as well, but usually its 192.). That's your IP.
Also in Terminal try
hostname

That's name of your laptop.
On "client" device, your PC:
sudo apt install tigervnc-viewer

Enter either IP or hostname of your "server" laptop, port 5900 (default), and try connecting.
Also, make sure firewall is setup, that's what "ufw allow 5900/tcp" did, but could be other firewall (unlikely), or local/hardware firewall (also unlikely, but have to mention it).
If that works, you can setup a password and other parameters.


Use ntp orphan mode to sync time two stand-alone computers

In addition to the tos orphan line all members of the Orphan Mode group must be configured in a mesh (i.e. they must all be clients / peers of each other). Any NTP association mode may be used to set up this mesh.

The TK1 configuration is lacking configuration for the TX1. Unless you've truncated the configuration, you should also need the appropriate "restrict" line(s) to allow each other to connect.

restrict default kod nomodify notrap nopeer noquery
restrict 10.20.3.0 mask 255.255.255.0 nomodify notrap
restrict 127.0.0.1


Try appending either "\n" or "\r" to each echo statement.

i.e.

echo "hello\n" > /dev/ttyUSB0

or

echo "hello\r" > /dev/ttyUSB0

or even

echo "hello\r\n" > /dev/ttyUSB0


Ubuntu 17.10 Server running Ubuntu Desktop. Network Manager will not detect Ethernet

If you want Network Manager to handle networking, I suggest that you change the netplan file:

sudo mv /etc/netplan/01-netcfg.yaml /etc/netplan/01-network-manager-all.yaml

Then change the file:

sudo nano /etc/netplan/01-network-manager-all.yaml

Change the file to read:

# Let NetworkManager manage all devices on this system
network:
  version: 2
  renderer: NetworkManager

Save and close the text editor. Next:

sudo netplan apply
sudo service network-manager restart

Any improvement? It may take a reboot.


Stuck mouse pointer on high CPU usage since upgrade to Ubuntu 19.10

Problem went away after upgrading to ubuntu 20.04


Does Ubuntu on computer with 64 bit processor, need to be 64 bit as well?

64-bit Ubuntu is very very well supported, and at this point you will likely have more difficulty finding 32-bit versions of your applications than 64. 64-bit is almost always the recommended choice.

To anwser your question though, technically 32 bit should have still worked.


Well, this is a bit old-tech, but you could try sneaker-net, with a USB drive.


I need a good solution to bypass internet censorship on Ubuntu

I would use wine to run FireFox and FreeGate :)

http://www.internetfreedom.org/FreeGate

http://www.mozilla.org/en-US/firefox/new/

Just switch FireFox's proxy to the ip/port listed in the FreeGate application!


Its seems that your mdrun command is sourced to the gromacs-4.6.6 installations which is perhaps the preinstalled version in Ubuntu.  You need to uninstall (remove) the gromacs-4.6.6 version in Ubuntu using sudo apt-get remove gromacs*

See if this works


Unable to configure wireless/bluetooth on laptop

Connect by cable

Update by terminal then upgrade sudo apt-get update ; sudo apt-get upgrade
restart you laptop check if work and check Fn+F2

if not work ,Try

install Additional Drivers Additional Drivers
Open it and update the Drivers


Where are the configuration files for the Wire messenger app saved?

After a bit searching, I found the config-files for Wire messenger app. They are orderly located in the folder:

/home/USER/.config/Wire


mysql-workbench and Gnome keyring daemon problem

The bug has been fixed in MySQL Workbench 6.2.5 / 6.3.0 releases. http://bugs.mysql.com/bug.php?id=74771

A possible workaround was to add this code to the top of file /usr/bin/mysql-workbench

export GNOME_KEYRING_CONTROL=1

This fix work on my ubuntu 14.04 with MySQL Workbench community 6.2.4 from deb http://repo.mysql.com/apt/ubuntu/ trusty workbench-6.2


Can I choose the position of a partition while installing Ubuntu as a dual boot with Windows?

While running the ubuntu installer, you are given two options:

Use entire harddisk
Manually configure partition table

Select the second option and layout the disk as you like. This works best if the disk is empty. Otherwise you could destroy existing files/partitions if it's not done correctly.

eg first partition 'ext4'(300gb), second partition 'linux swap'(4-12gb), third partition 'ntfs'(rest)


Manual command not known 'dkpg --configure -a'

With commands to a computer, you need to be very exact, more so than what you may be used to in everyday live. In everyday live, the recipient of your messages may correct small mistakes, because they can guess what you've probably meant.

When you're "talking" to a computer, there's no such guessing, or only to a very small degree. If you get a typo into your command, put a space in the wrong place, use the wrong number of hyphens or anything like that, the computer doesn't understand you and your command won't work.

In your case, at least in the question you wrote

dpkg-- configure -a

You probably meant to say

dpkg --configure -a

Also, in the question title you've mixed up dpkg and dkpg. As I said, small mistakes like that can break things if you're "talking" to a computer.

Additionally, you might want to look into what privileges the user account you're using on your machine has. dpkg is a command that requires more privileges than the "usual" user account has, because you can break things quite badly with it. Maybe you need to use sudo with it.

In general, I'd suggest that you read up on a few basics. As I said, it's easy to break things on a computer with a single typo or a small oversight. But don't be disheartened, everybody started out as a beginner once ;)


Error with apt-get update: Invalid 'Date' entry in Release file

Seems like the software source list file mentioned in your error messages got corrupted somehow.

Delete the invalid list file and then let apt fetch it again from the repository server:

sudo rm /var/lib/apt/lists/developer.download.nvidia.com_compute_cuda_repos_ubuntu1604_x86%5f64_Release
sudo apt update


From our discussion here

After installing node.js and npm

Create a symbolic link for node:

sudo ln -s /usr/bin/nodejs /usr/bin/node

Now verify commands working with

node -v
npm -v

Run it by using,

node hello.js

In order to test the application, open another terminal session and connect to your web server. Be sure to substitute in the app server's private IP address for APP_PRIVATE_IP_ADDRESS, and the port if you changed it:

curl http://APP_PRIVATE_IP_ADDRESS:8080

reference here


Couple of solutions which worked for me - As of Mar 20, 2017

Solution #1. Play directly in Firefox/Google Chrome

In your browser, Open https://www.hlsplayer.net/ and select M3U8
player (if not selected already)
Now we have to get the url to paste it in the input box.

First, get id from video page. Say your video page is http://www.hotstar.com/sports/cricket/india-vs-australia-day-4/2001805383, id is 2001805383
Open http://getcdn.hotstar.com/AVS/besc?action=GetCDN&asJson=Y&channel=TABLET&id=123&type=VOD . (Replace 123 with your actual video page id. Here it is 2001805383)
In the json response, get the value of src. This is the url. Ex: It will be something like.

I like this way because it allows you to go back in video/streaming.

Note: In case if it throws some error, repeat Step 2 and get url again (every time you do step2, you get a new url)

Source: Inspired by this solution Quora

Solution #2. Play in Vlc

Install the dependencies

sudo apt-get install php7.0 livestreamer

Clone/Download the project here
Open terminal (bash), go to folder where its downloaded and run

cd hotstarsportslivestreamer-master
./hotstarlivestreamer.sh

(Follow the instructions provided by the script. Few tips: You can get hotstar link from browser. Write quality can be either "best" or "worst" according to your bandwidth)

Advantage: You can download the video as well

Solution #3. Play in Firefox

You can follow instructions here - HBONOW on Ubuntu 16.04LTS

Advantage: Once you do the step, videos will play seamlessly and effortlessly without performing any step for next videos.

Disclaimer: I haven't tried this solution personally though

So, upto you to pick one ;)


Can't login to my Ubuntu 14.04 after system update

You can get into console by pressing Ctrl+Alt+F1.

You can login there and install or remove drivers.

If your video adapter is new, run

sudo apt-get install --reinstall fglrx-updates

That will install AMD drivers.

You can remove them by

sudo apt-get purge 'fglrx.*'


Nvidia-settings is installed according to apt-get, but is missing

It could be a permissions problem with nvidia-settings.

Run the following command on your system in a terminal window to see what permissions that nvidia-settings might have:

find / -type f -name nvidia-settings -printf '%M %p\n' 2>/dev/null

It should have the following permissions set for it:

-rwxr-xr-x /usr/bin/nvidia-settings

If it does not look like above, type in the following to correct it to make it so it can be run:

sudo chmod 755 /usr/bin/nvidia-settings

Also, it should have root at both the user and group for it.  Type in the following to show permissions, user, and group info:

ls -l /usr/bin/nvidia-settings

the output should look like:

-rwxr-xr-x 1 root root 208160 May 21 03:23 /usr/bin/nvidia-settings

if you don't see root root then type in the following to correct it:

sudo chown root:root /usr/bin/nvidia-settings

EDIT:

Well, we have certainly found out something here.  Somehow your package of nvidia-settings has been diverted.   Go to the bottom of the manpage about diversion here and see if you can't remove the diversion then reinstall nvidia-settings.  If push comes to shove, you could always create a link to nvidia-settings so it will launch.

Or check here for diverted package removal and reinstall here.

You might also be able to find the diversion first by typing in the following:

dpkg-divert --list | grep nvidia-settings

then when you find it, type in the following to remove the diversion:

sudo dpkg-divert --rename --remove --divert "/var/lib/stil/diverted-files/usr/bin/nvidia-settings" /usr/bin/nvidia-settings

You can try replacing the diversion names in the command above for all diversions that were found during the dpkg-divert -list by replacing the entries that you listed here:

$ dpkg-divert --list | grep nvidia-settings
diversion of /usr/share/doc/NVIDIA_GLX-1.0/nvidia-settings.png to /var/lib/stil/diverted-files/usr/share/doc/NVIDIA_GLX-1.0/nvidia-settings.png by stil-nvidia-run-dkms-340.76
diversion of /usr/share/applications/nvidia-settings.desktop to /var/lib/stil/diverted-files/usr/share/applications/nvidia-settings.desktop by stil-nvidia-run-dkms-340.76
diversion of /usr/share/man/man1/nvidia-settings.1.gz to /var/lib/stil/diverted-files/usr/share/man/man1/nvidia-settings.1.gz by stil-nvidia-run-dkms-340.76
diversion of /usr/bin/nvidia-settings to /var/lib/stil/diverted-files/usr/bin/nvidia-settings by stil-nvidia-run-dkms-340.76

So, how the command would work for each one listed here, is that the first link listed after diversion of is the original name.  And after the to part of that line is the diverted package name, so another example would be:

sudo dpkg-divert --rename --remove --divert "/var/lib/stil/diverted-files/usr/share/doc/NVIDIA_GLX-1.0/nvidia-settings.png" /usr/share/doc/NVIDIA_GLX-1.0/nvidia-settings.png


What BigTIFF capable image viewers are there for Ubuntu?

The very versatile ImageJ with the BioFormats plugin will do the job. Using virtual stacks you can also display multipage BTFs with more pages than fit into your memory.


A reboot alone didn't work for me. I had success after I rebooted (a second time) and held F2 to enter the system config, then reviewed the Wireless settings and verified that Bluetooth was enabled, then exited the config and finished the startup. At that time, Bluetooth was working again.

TMI

Prior to the reboot, I ensured that I was not dealing with a softlock with rfkill. I tried to run bluetoothctl, but it only hung.

I also executed /etc/init.d/bluetooth restart prior to the second reboot, but I don't suppose that that had any bearing.


installing RT5370sta driver for D-Link DWA-123 rev b1 in lubuntu 14.04

Install the device drivers for Wifi devices:

sudo apt-get install build-essential libssl-dev linux-headers-`uname -r` linux-firmware-nonfree


Failed to load package list when updating 12.10 (fresh install)

Mediubuntu doesn't exist anymore, so the best thing you could do is remove it from your ppa's list:

sudo rm -vf /etc/apt/source.list.d/medibuntu.list*

And try again the update:

sudo apt-get update
sudo apt-get upgrade


Broadcom BCM4311 Wireless not recognized in USB Live install of 13.10 on Dell 6400 Laptop

With a working ethernet connection, please do:

sudo apt-get remove --purge bcmwl-kernel-source

I know you said you removed it, but let's be doubly certain. Then do:

sudo apt-get install linux-firmware-nonfree
sudo modprobe -r b43 && sudo modprobe b43

You should be all set.


Ubuntu 18.04.3 stops working after using for long periods

As a new user, I only have reputation of 11 and you need a reputation of 50 in order to comment.  As heynnema commented, this should be a comment.

My Ubuntu 18.04.3 LTS acted similar when an alert warning popped up.  I believe that the issues lies with how gnome is handling UI layers since when I pressed the Windows key on the keyboard the activities layer was shown.  I was then able to interact with that screen layer and my issue was resolved.

Try the activities button (windows key on keyboard) in case that temporary solution works for you.

Another should be comment in response to heynnema's swap size.  I read that swap partition should be the same size as ram.  I have 16 GB RAM so I have 16GB of swap partition.