XBMCbuntu no gui after killing xbmc using kill -9

After logging in via ssh, I observed that lightdm was not running using the command sudo status lightdm. Starting lightdm using sudo start lightdm showed the lightdm process was getting killed immediately after it starts. Looking at /var/log/lightdm/lightdm.log I saw a line similar to Process exited with signal 6. Purging lightdm and re-installing it did not fix the issue and the same problem persisted. I then uninstalled lightdm and installed gdm. The login page came up and then I set up auto login for the xbmc session as described here. The media center was back to perfection as before. But login with gdm seems to be a tad bit slower than it was with lightdm.


Problems with installation on Xubuntu 11.10 LibreOffice

What PPA, and why? Libre Office is in the repositories, so that you didn't have to add anything. All you had to do was search for the libreoffice in Synaptic and install it. Xubuntu uses the same repositories as the rest of the *buntu family.


Ubuntu Read Only File System On Almost Every Boot Even After FSCK

I formatted my hard disk and installed 15.10. This time I didn't install Chrome or Chromium and my computer has been ok since.


Are Ubuntu Server and Desktop configured/compiled differently?

They all have the same repositories. The only difference is what packages get installed by default. Once you have an Ubuntu server up and running you can say tasksel install ubuntu-desktop and you get a fully-functional Ubuntu desktop. You could in principle start with Ubuntu desktop and then remove packages, but that would be a lot of useless work.

Some applications, such as Emacs and Vi, come in multiple variants, with or without GUI support. For Emacs, on a server with no graphics you would install the package emacs-nox.


I cannot install any package (linux-image-server, linux-server dependencies errors)

The way I fixed this was to manually install a newer version of the linux-server package as such:

wget https://launchpad.net/ubuntu/+archive/primary/+files/linux-server_3.2.0.37.45_amd64.deb
sudo dpkg -i linux-server_3.2.0.37.45_amd64.deb

If you're running a 32-bit system you'll need a slightly different URL and package name that you can find here.

Thanks to @Eliah Kagan for his answer here https://askubuntu.com/a/253581/79271 and help with question-meta-issues.


Hit Super-A.
Type "keyboard" (no quotes).
Click on the Keyboard Shortcuts icon.
Click the Add button.
Enter a name (Update Manager) and a command (update-manager) and click Apply
Click the Disabled button in the new entry which will then ask for the new keyboard shortcut.
Click the keyboard shortcut you want to
Apply to the action.
Click Close to close the keyboard shortcut window. Test your new keyboard shortcut.


This command has now changed in recent versions of snappy to the following:-

sudo snap install classic --devmode --edge

Followed by the following to enter classic mode:-

sudo classic


So I fixed the problem, all I had to do was add a & after the done. That fixed it all. Thanks everyone for the help.

#!/bin/bash
tail -f /path/to/error.log|while read LINE;do
if grep -q "Fatal" <(echo $LINE); then
(
    echo "From: noreply@example.com"
    echo "To: inbox@example.com"
    echo "Subject: PHP Error (URGENT!)"
    echo $LINE
) | sendmail -t
fi
done &


Dual Boot with Common shared space for storage folders

In Ubuntu, you can access your Windows partition by opening Home Folder and clicking you Windows partition (usually named Windows 7 or OS) from the sidebar.

In Windows, accessing you Ubuntu partition is a bit more complicated because Ubuntu uses the ext4 filesystem.

Steps to access a Ubuntu partition in Windows(source):

  First, download ext2Fsd.
  You need to set the compatibility options in order to install it in Windows 7.  Right-Click the ext2Fsd file you downloaded and select
  Properties.  Choose Windows 7 from the dropdown list and select Apply.
  Install the Program.
  Download the patch for ext4 filesystems here.
  Unzip the file and Open the 32-bit or 64-bit folder(Depends on your system processor).
  Copy ext2fsd.sys from the folder to C:\Windows\System32\drivers.
  Restart your computer.
  Run Ext2Mgr, select your Ubuntu Drive (this should be easy) and choose a mount point.  You are done!

  Warning: If you have a 64-bit processor, then you will have to patch the driver.  Download Driver Signature Enforcement
  Overrider, run it, then select Sign a System File.  Next
  select ext2fsd.sys in the C:\Windows\System32\drivers
  directory and then select Enable Test mode.  Complete the
  operation by clicking "Next" and reboot.


18.04 Unversal access cursor size changes at will

I found the problem the 3.0 USB hub was stepping on the wifi trackball. The dealer on the hub warned me. I had the hub on the opposite side of the computer away from the wifi dongle, not good enough. Switched to a USB trackball problems gone.


How can I stop ubuntu-mate-welcome appearing when I log in?

Found this via search.  For 18.04 Ubuntu Mate, you can turn this off from the Start menu:

System - Preferences - Personal - Startup Applications

At the very bottom is Welcome Ubuntu MATE Welcome autostart


wacom intuos disable cursor select when pen makes contact with tablet (CTH480)

You need to change settings of stylus buttons. Use xsetwacom list to find name of your stylus, in my case output of command is:

Wacom Intuos S Pad pad              id: 15  type: PAD
Wacom Intuos S Pen stylus           id: 16  type: STYLUS
Wacom Intuos S Pen eraser           id: 17  type: ERASER
Wacom Intuos S Pen cursor           id: 18  type: CURSOR

Stylus is "Wacom Intuos S Pen stylus".

DEVICE_STYLUS='Wacom Intuos S Pen stylus'
xsetwacom set "$DEVICE_STYLUS" Button 1 "button +0" # nothing on touch
xsetwacom set "$DEVICE_STYLUS" Button 2 "button +1" # left click on lower button
xsetwacom set "$DEVICE_STYLUS" Button 3 "button +3" # right click on upper button

That's it, Button 1 of stylus is touching of pad, not real button. Script above disables this action.
Lower button is Button 2, assign left click to it.
Upper button is Button 3, you may want to assign right click to it or something else.
If you have more buttons you can assign additional actions to them. Note that pad buttons belong to pad device, not stylus.

Settings of xsetwacom are not persisted after system reboot, so you may want to write small script and run it manually or automatically after boot.
Reconnection of pad also resets settings to their defaults, you can play around and then reset.
You can check all current settings of each device like this:

xsetwacom -s get "$DEVICE_STYLUS" all

It may be very helpful to check which options can be changed for concrete device. Note that some options may not work for your model.


The installation of Ubuntu allows you to upgrade 12.10. If you want to delete your current version select Erase Ubuntu 12.10 and install 13.04. If you just want to upgrade use the "upgrade" option


Installing additional drivers resulted in command line interface

I had a similar problem after choosing the nvidia_current driver. I had my background picture displayed after logging in, but nothing else except for an error message.

In my case, it turned out that the nvidia_current driver had been blacklisted, so it was not loading correctly. To check if that's your problem, run the following:

grep nvidia_current /etc/modules /etc/modprobe.d/*

I had a file called blacklist-local.conf containing the line blacklist nvidia_current. Since that was the only line in the file, I used sudo to remove it, and everything worked.

I've raised bug #1083998 to complain that the Additional Drivers utility didn't spot the blacklist.


Step 1.)  Click on the Menu

Step 2.)  Select "Settings" on the menu.

Step 3.)  Select "Advanced Sync Everthing" under "Sing In" group shown as Orange

Step 4.) Select "Ok" on the dialog, and make sure the Combobox is on the value as "Sync everything" shown as green.


Unable to start webcam via Cheese: cluttervideosink missing

After reading this redhat bugzilla : https://bugzilla.redhat.com/show_bug.cgi?id=1047389

it came to the part where the dev team suggested this:

rm ~/.cache/gstreamer-1.0/registry.x86_64.bin

this worked for me... :)


Why don't I have the option ''Install Ubuntu alongside'' my other systems?

The ubiquity installer offers to Install inside Windows when it cannot install alongside. i.e. when you already have 4 primary partitions used. This means that splitting the Windows partition is not possible.

If you select this option, it copies wubi.exe to the Windows Startup folder, so that when you next boot Windows it will automatically run Wubi.

Since you don't want to install with Wubi, you'll need instead to remove one of the primary partitions, and try installing again.

Here is an example of what ubiquity shows (although in this case the user has Windows XP, not Windows 7):


Current and older versions of Qt along with installation instructions are available here.


Phone: 15.4 update to Build 107 => no media player

Solved:

media player is installed but does not appear under Applications

When you download a video (e.g. .3gp) it is saved in the video directory

to start from there does not work

just copied it to the archive "com.ubuntu.camera" within the video archive

it appears now in the galery and you can open it with the media player

as media player does not appear in the application overview I just sticked it to the side bar;)


Cannot load Ubuntu 18.04 live USB on Dell XPS 15

Issue 1: (initramfs) Unable to find a medium containing a live file system

My boot USB was set to MBR while my system was GPT. I created a new boot USB with GPT setting.

Issue 2: USB was not listed under BIOS boot devices.

I always had Secure Boot off. For some reason, I had to set Secure Boot On, then restart, boot into windows, shutdown, and then go into BIOS, set Secure Boot Off, restart, then USB appeared. Weird. Not sure what's going on there.

Issue 3: Ubuntu grub menu is not available. Machine boots directly into Windows.

Once I could boot into the live USB, I used the boot repair tool as described here to get GRUB back.

Issue 4: Resizing ubuntu partition

Once you have access to the live USB, it is easy to start gparted and change partition size.


Regarding Graphical issues and performance In ubuntu 14.04 LTS server with GUI

Use the following command to fix this issue

Switch to console mode (TTY1):

Alt+Ctrl+F1
Kill lightdm service:

sudo service lightdm stop

Generate new xorg.conf.new file in the current directory:

sudo X -configure

Move and rename the file:

sudo mv xorg.conf.new /etc/X11/xorg.conf

Open /etc/X11/xorg.conf, replace the graphic driver mga with vesa
Return to GUI:

sudo start lightdm


Google saves the day again! When you installed pppoeconf, it became the manager for your ethernet connection. To give control back to the Network Manager, run

sudo gedit /etc/NetworkManager/NetworkManager.conf

and change the line "managed=false" to "managed=true"

After saving the file, run sudo service network-manager restart

Source: network manager says "device not managed"


ffmpeg - How do I convert x265 10bit to x265 8bit

This will require re-encoding with thus some loss of quality but a recent copy of FFmpeg will allow you to convert to 8bit hevc from 10bit quite easily.

I tested with the following 10bit sample:

andrew@illium~$ mediainfo --Inform="Video;%Format%:%BitDepth% bits" 10_bit.mkv
HEVC:10 bits

This sample was re-encoded as follows:

ffmpeg -i 10_bit.mkv \
       -c:v libx265 -preset medium -x265-params crf=28 -pix_fmt yuv420p \
       -c:a copy \
       8_bit.mkv

The crucial option here is: -pix_fmt yuv420p. The output file demonstrated a successful conversion to 8bit:

andrew@illium~$ mediainfo --Inform="Video;%Format%:%BitDepth% bits" 8_bit.mkv
HEVC:8 bits

If you can try and avoid re-encoding in this manner though, better to encode from the original media file thus avoiding some degradation of the image and loss of quality...

References:

Set bit depth in FFmpeg encoding for HEVC? Some more details about setting the bit depth for hevc...


asus fx-503 touchpad and fn keys not working

after rading latest comment and upgrading ubuntu to 19.04 , and reaching kernel 5.0
function keys problem solved.
touchpad works better now . but some times stops suddenly and still has not expected performance , but at least its usable .


Is it possible to have the opened application bar on top with the launcher bar (Gnome Metacity)


It turned out to be a firewall problem.

Solution as suggested at https://fitzcarraldoblog.wordpress.com/2017/08/11/prevent-linux-firewalls-interfering-with-samba-commands-in-a-home-network-that-uses-broadcast-netbios-name-resolution/

iptables -t raw -A OUTPUT -p udp -m udp --dport 137 -j CT --helper netbios-ns
Add the following lines to the end of the file /etc/ufw/before.rules

    # The following is needed to enable Samba commands to
    # work properly for broadcast NetBIOS name resolution
    #
    # raw table rules
    *raw
    :OUTPUT ACCEPT [0:0]
    -F OUTPUT
    -A OUTPUT -p udp -m udp --dport 137 -j CT --helper netbios-ns
    COMMIT

Restart UFW!


Bluetooth 14.04 on Lenovo H50 - RTL8723BE

Those answers aren't dated; they're less than a year old. 14.04 is almost two years old. For major changes, Ubuntu gets a new version. The method for something like that would not change within the same version.

If it was a solution for 6.10, then the procedure would likely be different, but it's not. Something I found important in Pilot6's answer:

It builds against all supported Ubuntu kernels.

It makes me think that it would work everywhere, and that it's kernel-dependent and not OS version dependent.

To sum it up, there is no harm in trying. Nine-ish months is not long enough in my book to rule out answers as invalid. A few years can even be fine. Try it out! :-)


Wifi not working after fresh install of ubuntu 14.10

Some computers have a specie of button that activate the wireless, like Fn+F8. If it does not work, try activating the drivers at the settings. (Sorry for bad English, I am Brazilian). Hope that I solved your problem =D


Notebook is booting when battery is removed

Looking at your dmesg output file it appears that on boot the kernel does not recognise your battery and lists the following error message:

ACPI: Deprecated procfs I/F for AC is loaded, please retry with CONFIG_ACPI_PROCFS_POWER cleared

There is a bug report here that describes the issue you are having.

Not knowing what version of Ubuntu you are currently running or your hardware I would recommend installing a later version of Ubuntu where the kernel is a later version and checking to see if it resolves your issue, otherwise you can follow this LONG Ubuntu Forums thread to try and solve the issue yourself.


Ex Falso is a graphical application that can generate MP3 tags for multiple files from their filenames. Ex Falso can generate tags for all the songs in one album at the same time. Here is an example of generating a tag pattern of three tags from the filename of an MP3 file in Ex Falso:

The generated tags under the Tags From Path tab in Ex Falso for this example song are:

 01
 name of artist
 name of song

Another convenient feature of Ex Falso is that if you have an album with filenames in an irregular pattern, you can rename multiple files backwards from their tags under the Rename Files tab.

generate tags from filename in EasyTAG (sudo apt install easytag)


Nautilus File Browser Shows Details For Choosen Item

You can choose 3 information items to show below files in the preferences

You'll need to zoom in to see all the data
f.ex.

If you want to request a new feature in nautilus/files app I think you should use https://gitlab.gnome.org/GNOME/nautilus/-/issues


media software to combine video and audio

You can try install AutoGK in Ubuntu through Wine. I found these informations, they're a bit old, but maybe they can help you with this:

Run "winecfg" and change:

Graphics tab: Emulate a virtual desktop, at least 800x600
Direct3D Vertex Shader Support none

Audio Tab: Hardware Acceleration: Emulation
Check driver emulation.

Applications tab: Windows Version Windows XP

Libraries (I think this is the important one) tab

Add the following overrides:
mfc42u, msvcrt, msvfw32, vorbis

Download and installed AutoGK on this machine.
Then, copy the DLL's "mfc42u, msvcrt, msvfw32" from a windows machine's system32 directory to the WINE system32 directory.
Rename msvcrt.dll MSVCRT.DLL. Probably not necessary, but I know linux is case sensitive (although WINE probably isn't) and the virtualdub error message had a capital msvcrt.

Copy vorbis.dll from the autogk\virtualdubmod directory to the windows\system32 directory.
Type "wine AutoGK.exe" in the AutoGK directory

Troubleshooting:
If the installer doens't come up (just a blue screen), make sure you have the graphics resolution at least 800x600 in the graphics tab of winecfg

If trying to encode a movie fails on the audio portion (Demuxing, decoding, normalizing, encoding happens in about a second, then fails) it is probably your virtualdub. I fixed this by copying a new msvcrt.dll over to wine, and the vorbis.dll. Try manually running "wine autogk/tools/virtualdubmod.exe" and see if virtualdub comes up. If it doesn't, fix whatever it complains about.

Source

More info on installing AutoGk through Wine

There's also some alternatives to AutoGk:

Handbrake

MediaCoder

MakeMKV

Lemon Rip

k9copy

acidrip


The only practical way to downgrade that I'm aware of is to reinstall, clean, from a pre-point release ISO image.  Obviously, you'll need to make appropriate backups before you proceed.  This will certainly be the quickest way, assuming (per comments) that it's a non-production system (i.e. one with little or no user data present, installed just for testing, learning, or certification).

You'll also need to unselect the option to load updates during installation, and turn off automatic updating on the new installation, otherwise the new install with promptly update itself to 16.04.1 again.


If it actually works with mplayer:

mplayer -vo vdpau -vc ffh264vdpau somefile.mkv

in SMPlayer, it should be as simple as setting it to use vdpau in Options / Preferences / General / Video. Set the Output driver vdpau (it should be there in the drop-down list in a recent enough version, without the need to use the User defined setting).

How did you install the proprietary drivers and are you sure the required libraries for vdpau are installed?


Desktop shortcut to Bash script crashes and burns

The problem is the script relies on the TERM environmental variable being setup. The Ubuntu Unity Desktop does not have this initialized when scripts are called. If you open a terminal with Ctrl+Alt+T the variable is setup.
To test your system create a little script called test-term.sh and make it look like this:

#!/bin/bash

#See if $TERM has been set when called from Desktop shortcut

echo TERM environment variable: $TERM > ~/Downloads/test-term.txt
echo "Using env | grep TERM output below:" >> ~/Downloads/test-term.txt
env | grep TERM >> ~/Downloads/test-term.txt

exit 0

Create a link in Nautilus to test-term.sh and run the link. Then check the output file:
$ cat ~/Downloads/test-term.txt

TERM environment variable: dumb
Using env | grep TERM output below:
(... blank line appears here ...)

As you can see the environment variable TERM is blank when the command env | grep TERM is used. Also the variable $TERM is set to dumb which doesn't suit the color-based, mouse-supported command dialog very well.

Boilerplate solution
The short term solution was to include boilerplate code at the top of the two scripts in question:
# $TERM variable may be missing when called via desktop shortcut
CurrentTERM=$(env | grep TERM)
if [[ $CurrentTERM == "" ]] ; then
    notify-send --urgency=critical "$0 cannot be run from GUI without TERM environment variable."
    exit 1
fi


It turns out for some reason the drivers broke... I downloaded the drivers from Realtek and installed them, reboot, and it now works as a charm!

tar -xvzf myDriver.tar.gz
cd myDriver/
sudo make
sudo make install
reboot

Thanks to everyone who helped :)

EDIT: I had to follow this guide for a source code error on their driver code


Hy, I used this and this works fine (I'm using ruby1.9.1 on my ubuntu)

#!/bin/sh
cd $GEDIT_CURRENT_DOCUMENT_DIR
ruby1.9.1 $GEDIT_CURRENT_DOCUMENT_NAME

Good luck.


Fresh Ubuntu 14.04 LTS on MSI GS40-6QE-Phantom - Both wifi and wired connection not working

Well, in order to get your laptop working, you need the latest Linux kernel available.
This issue seems to be fixed in Ubuntu 15.10: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1383184


libpng* does not mean what you think it means for two reasons:

The shell expanded it to be libpng12-0_1.2.50-1ubuntu2.14.04.2_amd64.deb because there was a file of that name in your current directory.
Even if the shell hadn't expanded it, apt-get would take it as a regular expression. So, it will install any packaging containing libpn in the name.

You might want to do:

sudo apt-get install libpng12-dev


#!/bin/bash
let "limit = 0"
while(true)
do {
let "limit = limit + 1"
mkdir rep && cd rep && echo $limit
}
done


How to convert sshfs command to fstab entry?

You can use this syntax:

sshfs#USER@HOST:REMOTE_PATH LOCAL_PATH fuse defaults,allow_other 0 0

E.g.

sshfs#jverstrynge@devjverstrynge:/home/httpd /home/jverstrynge/httpd fuse defaults,allow_other 0 0

But this works only if you use ssh keys for authentication.


Install gsettings-desktop-schemas

sudo apt-get install gsettings-desktop-schemas

Compile schema

sudo glib-compile-schemas /opt/robotux/share/glib-2.0/schemas/

I had this problem recently and had to solve it myself. It's a really great application IMHO, but there's not much support about it. LOL

TIP: If you want to disappear the notifications, comment this line of code

self.current_notification.show()

on /opt/robotux/robotux/MainClass.py

Hope this helps!


How to make rsync run automatically when a new file or directory is added?

What you're looking for is inotifywait, from the inotify-tools package, which uses the inotify mechanism.

reference:
http://blog.lagentz.com/general/automate-your-shell-scripts-using-inotify-and-inotifywait/
http://linux.die.net/man/1/inotifywait


how can i properly install ubuntu onto my hp pavillion dv6000?

What did you do? did you install it from a bootable device like a CD or usb pen?
You have to be more specific about what happened before, I mean, what you did to install ubuntu.


After each reboot cannot resolve host by Dns

I see that you're already trying to use the solution described here:
https://unix.stackexchange.com/questions/280264/no-dns-resolution-after-upgrade-from-ubuntu-14-04-to-16-04

While not ideal, a work-around would be to automatically run your commands on boot. This page includes some methods of doing that:

http://linuxtechlab.com/executing-commands-scripts-at-reboot/

Another possibility is that you're affected by the bug in the March 2017 update:

https://www.digitalocean.com/community/questions/how-to-fix-the-march-2017-ubuntu-dns-resolution-issues

Another very thorough answer appears here:
16.10 fail to resolve DNS

I don't know enough about your precise circumstances to advise a particular one of these to try first, but hopefully one of them will work for you.

Update: Based on the knowledge that it's failing when the server reboots with a non-standard VPN client up, it's reasonable to assume that this VPN client could be modifying resolv.conf and removing some of the default entries in an attempt to avoid DNS leakage. I would recommend then making sure that your VPN client is disconnected before shutdown, and possibly still automatically resetting the resolv.conf after boot.

Alternatively, you could try adding a legitimate nameserver of your choice, such as nameserver 8.8.8.8 to the file /etc/resolvconf/resolv.conf.d/head, which might help. I am not sure if this will affect functionality of your VPN or not, or cause DNS leaking, so use it cautiously. Source:
https://ubuntuforums.org/showthread.php?t=2352821&page=2


Does HD 6450 graphics card work fine on Ubuntu?

ATi have official Linux drivers for it so I imagine it works fine

Source: http://support.amd.com/us/gpudownload/Pages/index.aspx


I found a way to wake up the monitor. It is not ideal but much better than restarting X server or rebooting. I created a simple shell script which forces graphics mode to be reset.

#!/bin/bash
xrandr --output HDMI2 --primary --mode 2560x1440

or a simpler one

#!/bin/bash
xrandr --output HDMI2 --auto

Then I assigned a hot key combination to invoke my script. This way the monitor wakes up but only on specific key press vs any key or mouse event.

I will wait for a better answer before accepting my own answer. I am still hopeful that somebody knows a way to fix the actual problem.

UPDATE 2018-01-12
I upgraded kernel from the default LTS version to the latest (https://wiki.ubuntu.com/Kernel/LTSEnablementStack) and the monitor now behaves as it is supposed to. Thanks to @Ellis Whitehead for pointing out it could be a problem in the kernel implementation.


You write your code in Python 3 (looking at "print"), but the shebang suggests Python 2. Change the shebang to

#!/usr/bin/env python3

and run it by:

python3 /path/to/script.py

and it will run fine :)

Explanation:

As hinted in Florian Diesch' comment, input() has changed in Python 3:

In Python 2, input() tries to use the input as a Python expression (like eval()), while in Python 3, input() replaces the raw_input() from Python 2.


Try nvlc --no-color to run in mono mode.

I usually run vlc -I ncurses --no-color, gives the same result.

To persist this mono color mode, best to make a shortcut in your path, and run that instead. This should do:

#! /bin/sh
# run nvlc in monochrome mode
gnome-terminal -x nvlc --no-color

put this in your path, like /usr/local/bin/vlcmc (for vlc MonoChrome or whatever you prefer) and make the file executable. Use sudo to edit this file. It should now be executable like any other app.

From here you can also pass the --window-with-profile=[PROFILE] option to terminal, so you can customize the colors/fonts/transparency for your nvlc instance.


SOLVED

I kept plugging away and trying different things.

I found a fix.

I used this

gksu synaptic-pkexec

instead of

synaptic-pkexec

Now when I click on Visit homepage within synaptic, it uses Seamonkey instead of Firefox.


MacBook Air MID 2012 Fan Control on Ubuntu 13.10 and higher

I think the following link solves my question/problem:

http://ubuntuhandbook.org/index.php/2013/11/ppa-install-fan-control-ubuntu-macbook/

Ubuntu 14.04:

  For Ubuntu 14.04 Trusty, search for and install macfanctld package in Ubuntu Software Center after checking for updates.


while configuring apache server on ubuntu i got this massage "the apache2 configtest failed" when i tried to restart

I suggest you verify the config file /etc/apache2/sites-vboxsf.conf yourself. Without the content of the file it is quite impossible to provide any sensible response.


Installation of Ubuntu(12.04, Intel Extreme graphics2) on a Dell XP desktop

Here are some helpful links I have found to help with the installing Ubuntu 12.04. This setup is to dual boot Ubuntu 12.04 and Windows XP, meaning you will have both operating systems on your computer. Make sure you have another computer with internet access around so if you any questions you can ask us, because while the Ubuntu 12.04 is installing you won't be able to use XP on the Dell to browse the Web.

First use this link to put the ISO you downloaded on a CD:

http://www.ubuntu.com/download/desktop/burn-a-dvd-on-windows

Than follow this any of these links to install Ubuntu 12.04. They talk about the same installation process just in different ways.

http://www.wikihow.com/Dual-Boot-Windows-XP-and-Ubuntu

Dual boot windows Xp and Ubuntu 12.04


Not clickable transparent window on ubuntu desktop

Open a terminal.

Run xprop.

Click on the window. In your terminal, all information will appear.


Can not connect both wireless and ethernet on ubuntu 14.04

This question has been answered at How to set up dual wired and wireless connections?

Basically, you can only have one default gateway.  Ubuntu is going to choose wired e-net over wireless every time because wired is faster.  If the wired and wireless connections go to completely different networks (e.g. a secured e-net network at work and an insecure wireless network for guests) the above answer explains in detail how to accomplish what you want.


How can I remove Ubuntu from my computer?

Have you overwritten your Win7 volume with Ubuntu installation?

Please don't try removing Ubuntu first, instead, recover your data before writing anything to your hard disk, as early as you can. Try boot WinPE from your USB disk, and run data recovery tools like Easy Recovery, FinalData, Recuva, etc. (Please be patient while your data are recovered, while running any of those tools or others.)

After that you just need to reinstall Win7 on that partition. If you can't boot from your new Win7 on you hard disk, you should repair your MBR, perhaps this blog can help you.

Best luck with you!


HowTo longtime monitor the amount of used and open ports and their state (like Fin_wait2, time_wait, eg.)?

I found it, it really took me a while to find it with the right search terms in Google.
The tool is called darkstat. You can install it via apt.

apt install darkstat


How to block certain characters from a string in Python

The issue is that file.readlines() returns a list of strings  - one for each line in the file - rather than a single string. The [' and '] characters are just python's way of indicating the containing list object. It doesn't know ahead of time that your file only contains a single line.

You can print the individual strings (in this case there is only one) by looping over the list e.g.

for SaveDir in lines :
    print SaveDir


How to use free -m to get memory usage for all users

One option is to use  smem  as free does not offer this functionality.

$ sudo smem -u -k -t
User     Count     Swap      USS      PSS      RSS
daemon       1        0   196.0K   197.0K   360.0K
rtkit        1        0   304.0K   317.0K     1.4M
[...]
root        44        0   164.3M   197.7M   284.4M
gert        88        0     1.7G     1.8G     3.2G
---------------------------------------------------
           159        0     1.9G     2.1G     3.6G

For explanation on what USS and PSS means, here's an excerpt from the manpage of smem.

            [...] Unshared memory is reported as the USS (Unique Set
   Size).  Shared memory is divided evenly among the processes shar‐
   ing that memory.  The unshared memory (USS) plus a process's pro‐
   portion of shared memory is reported as the PSS (Proportional Set
   Size).  The USS and PSS only include physical memory usage.  They
   do not include memory that has been swapped out to disk.

I suspect RSS is the Residential memory usage also referred to as RES in other utilities. For more information on expression of memory usage see this Q&A on Superuser.com: What I should know about memory management?


In this case even though I can't give you a certain anwser, you may try this:

Since a classical way of dual-boot is "Ubuntu alongside Windows" but not "Windows alongside Ubuntu", I strongly suggest physically unmounting your Ubuntu HD/SSD first before you install windows on the caddy ssd. Why? Since your motherboard normally will automatically assign your Ubuntu disk as primary disk (say /dev/sda), so despite you want to install Windows on caddy SSD (say /dev/sdb), it may overwrite boot partition on your /dev/sda, which leads to your ubuntu unbootable. So, by physically removing your /dev/sda, since you only have one ssd on your caddy on your motherboard, windows installer can now assign its own boot partition and install everything it needs over /dev/sdb. Once your done, remount your ubuntu disk, boot into your ubuntu and in terminal type sudo update-grub  , if it detects windows boot file, then I think you're good to have dual-boot.


Ubuntu 12.04 Unity starts in 2D mode even when 3D is selected - ATI Radeon HD 4250 Legacy Driver 13.1

GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub was set to "nomodeset". I changed it to "quiet splash", which is the default. Then I ran sudo update-grub and rebooted.


Linux giving severe problems with Windows dual boot

I see one simple solution to clean up the disk and do it all over again. In order like:

Create 1 (or 2, with "reserved") partitions for Windows, and lave free space
Install Windows
Boot Linux, create partitions, install it
Run os-prober to create grub entry for other system

Enjoy.


Laptop restarts sometimes when I move the lid

Just to make sure: please check your BIOS and confirm you did not put 'boot from LAN' as the 1st boot option. I assume it is not since moving the lid crashes your system.

PXE errors are generated by the network boot ROM: the boot process is attempting a network boot (probably your BIOS' 4th boot option), which means that your system was unable to boot from a HDD, CD-ROM, or USB device (the 'standard' first 3 boot options).

The error you posted "media test failure, check cable" to me holds the most sensible answer: the hardware inside is faulty. When moving the lid it causes a power shortout causing it to reboot/crash. Find someone or a company that can safely open it and have a look inside.

I do not believe it to be a HDD failure that would result in other type of errors more focused on files not found. You can some what try to confirm this by inserting a bootable cd and start from it. Move the lid and if it crashes you can comfirm it to be more likely to be hardware related.


No previous OS detected when installing Ubuntu 13.04

You do not just need reserved BIOS space for Ubuntu. You should also have at least 10GB of ROOT space. ROOT space is like the C:\ drive on Windows. It is where Ubuntu is actually installed. This partition will be formatted, so be sure you know what you're doing.


You will need to get root privileges at boot time. Then you can revert the change you made and reset the password on the primary account.

How do I reset a lost administrative password?

Be very careful changing usernames. /etc/passwd associates each username with a user ID (number). In some places in the system the number is used, in others the name. To change a username without breaking things you therefore have to change the name everywhere it occurs. I would recommend that you not try to change your username unless you are an expert. If you are an expert then I don't have to tell you about usermod(8).  ;-)


How do I ignore missing trusted keys in apt sources.list?

I just ignored the error and installed python2.6 I just had to say Yes, install although I don't have the signed key


how to use ubuntu desktop as a mail server?

There are several mailservers to choose from. Full featured beasts like postfix or sendmail for example. On a desktop machine I would recommend exim4 as it is relatively easy to configure. Just

apt-get install exim4

to install. A configuration wizard should start automatically after installation. If not, start it with

dpkg-reconfigure exim4-config


How do I install the ClamAV extension for PHP 5?

Between izx's answer, 32bitfloat's comment and a bit of googling, I got this working (on Ubuntu 12.04 LTS). Here's exactly what I had to do. All these commands are as root, and some details may be different on your setup.

Preparation

First, clear out any traces of existing ClamAV:

aptitude install zlib1g-dev php5-dev
aptitude purge clamav clamav-base clamav-data clamav-docs clamav-freshclam libclamav6

Install ClamAV

Download the latest ClamAV, make and install it:

wget http://downloads.sourceforge.net/clamav/clamav-0.98.4.tar.gz
tar xzf clamav-0.98.4.tar.gz
cd clamav-0.98.4
./configure
make
make install
ldconfig

Make freshclam work and run it:

useradd clamav
mkdir /usr/local/share/clamav
chown clamav /usr/local/share/clamav
cp /usr/local/etc/freshclam.conf.sample /usr/local/etc/freshclam.conf

Edit the file /usr/local/etc/freshclam.conf and comment out the line that says Example. Then update:

freshclam

If that ran successfully, test it works by scanning a file:

clamscan somefile

Install PHP-ClamAV

Download the latest PHP-ClamAV, make and install it:

wget https://launchpad.net/php-clamav/trunk/0.15.7/+download/php-clamav_0.15.7.tar.gz
tar xzf php-clamav_0.15.7.tar.gz
cd php-clamav_0.15.7
phpize
./configure --with-clamav
make
make install

Install into Apache and restart:

echo "extension=clamav.so" > /etc/php5/conf.d/clamav.ini
service apache2 restart

I hope that lot's useful to somebody. I really wish php-clamav was still supported on Aptitude. It would be far nicer than the above.


Error while exporting picture through content hub

I think the problem is you are trying to charge it before the transfer is ready.  Look at this as an example:

http://bazaar.launchpad.net/~ken-vandine/+junk/hub-exporter/view/head:/hub-exporter.qml#L426


Difference between / and /root in Ubuntu?

In a nutshell:

/ is called the root directory, for the whole system; all directories of the system descend from this directory one way or another.
/root is the root user's (more precisely the user with UID 0's) home directory


Using Ubuntu, how do i connect to a windows share on my Windows Server 2008

Try the following steps:
Open "Home", go to "File > Connect to server".

This way you can connect to your Windows share and even stored the credentials in secure store (see application named "Passwords and Keys").

Please note that this will make the share accessible by using the Gnome's GVFS, which works pretty well for all gnome-aware applications. However, I've experienced problems when I tried opening Word document directly from such network folder (by using Microsoft Word started by Crossover...on the other hand, this works well with LibreOffice)


Can't create custom screen resolution, and terminals are inaccessible

So far, after many days, I've been succesful in getting the terminal to work again. If anyone else has that problem, it's related to GRUB's resolution. Try this:

sudo -H gedit /etc/default/grub

Change the GRUB_CMDLINE_LINUX_DEFAULT= line to this:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset video=uvesafb:mode_option=1024x768-32,mtrr=3,scroll=ywrap"

Remove this line:

GRUB_GFXPAYLOAD_LINUX=

Save and close, and then do this:

sudo update-grub && sudo update-initramfs -u

Reboot. Should fix that particular problem. As for the terminals, I'm still having no luck as of this writing.


Ubuntu 16.04 Live USB Gnome Terminal not opening by any means

I had the same problem after upgrading from Ubuntu 15.10. I needed to reconfigure my locales.

Before you do this: Remember that you get back to the GUI ("normal screen") by pressing Ctrl + Alt + F7

Open Text-and-Terminal Emulator (without GUI)

Press:  Ctrl + Alt + F1

Reconfigure Locales

$ sudo dpkg-reconfigure locales
$ sudo locale-gen "en_US.UTF-8"
$ sudo localectl set-locale LANG="en_US.UTF-8"

Confirm result

$ locale
LANG=en_US.UTF-8
LANGUAGE=en_US:en
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=en_US.UTF-8
LC_TIME=en_US.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=en_US.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=en_US.UTF-8
LC_NAME=en_US.UTF-8
LC_ADDRESS=en_US.UTF-8
LC_TELEPHONE=en_US.UTF-8
LC_MEASUREMENT=en_US.UTF-8
LC_IDENTIFICATION=en_US.UTF-8
LC_ALL=

and

$ locale -a
C
C.UTF-8
en_US.utf8
POSIX

Switch back to GUI

Press:  Ctrl + Alt + F7

Terminal should now work again. You might have to reboot.


for ubuntu my hard drive is a thumbstick i still have my hard drive but it doesnt show it in file system what can i do

So, the HDD is recognized physically and electronically BUT not as a filesystem. Therefore, I would reboot with a USB loaded with the open source (free) distros, System Rescue http://www.sysresccd.org/SystemRescueCd_Homepage or the commercial package PartedMagic https://partedmagic.com/ to then use GParted to completely wipe the HDD and reformat and mount it.


Apparently the changes I made to /etc/xdg/user-dirs.defaults worked. It didn't remove the folder nor did it give me the option to delete it with a right click, but I was able to drag the Desktop folder into another and there I was able to delete it.


You can redefine proxies as below in terminal , define these environment variables into the global /etc/environment file , so they will be always available

export http_proxy=abc.com:8080
export https_proxy=abc.com:8080


You can't, Compiz is not supported by gnome-shell, it uses mutter as it compositor—so you can't use compiz effect for now.

There is a possibility though, it seems one of compiz former developer has created the libanimation project, reportedly few effect has been added as gnome-shell extension.

I suggest you to read this following article → https://www.omgubuntu.co.uk/2018/09/wobbly-windows-new-libanimation-linux-library

If you really want to draw full compiz experience, you could use say Ubuntu MATE— compiz works very well with it.


What does & mean exactly in output redirection?

The & in 2>&1 simply says that the number 1 is a file descriptor and not a file name. In this case the standard output file descriptor.

If you use 2>1, then this would redirect errors to a file called 1 but if you use 2>&1, then it would send it to the standard output stream.

This &> says send both, standard output and standard error, somewhere. For instance, ls <non-existent_file> &> out.file. Let me illustrate this with an example.

Setup:

Create a file koko with the following content:

#!bin/bash

ls j1
echo "koko2"

Make it executable: chmod u+x koko
Now note that j1 doesn't exist
Now run ./koko &> output
run cat output and you will see

ls: cannot access 'j1': No such file or directory
koko2

Both, standard error (ls: cannot access 'j1': No such file or directory) and standard output (koko2), were sent to the file output.

Now run it again but this time like so:

./koko > output

Do cat output and you will only see the koko2 like. But not the error output from the ls j1 command. That will be sent to the standard error which you will see in your terminal.

Important note thanks to @Byte Commander:

Note that in command >file 2>&1 the order of the redirection is important. If you write command 2>&1 >file instead (which is normally not what you want), it will first redirect the command's stdout to the file and after that redirect the command's stderr to its now unused stdout, so it will show up in the terminal and you could pipe it or redirect it again, but it will not be written to the file.


Fail to start apache2 and mysql server on startup

Those are just warning because you are supposed to add more info, if you want to avoid them you should add this in your init.d script:

### BEGIN INIT INFO
# Provides:          scriptname
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start daemon at boot time
# Description:       Enable service provided by daemon.
### END INIT INFO

you can get more information there: https://wiki.debian.org/LSBInitScripts


Celestia is just the app you were looking for!

You can install it with this if you use GNOME:

sudo apt-get install celestia-gnome

And with this if you use something else:

sudo apt-get install celestia

Description:

  Real-time visual space simulation Celestia is a free
  3D astronomy program. Based on the Hipparcos Catalogue, it allows
  users to display objects ranging in scale from artificial satellites
  to entire galaxies in three dimensions using OpenGL. Unlike most
  planetarium software, the user is free to travel about the Universe.

The celestia-gnome package contains the GTK+ frontend for Celestia, and integrates with GNOME.

Screenshots:


How do I upgrade to the latest version of Shotwell?

There is a PPA on launchpad which the maintainer supports for new shotwell releases for both Lucid and Maverick.

sudo apt-add-repository ppa:flexiondotorg/shotwell
 sudo apt-add-repository ppa:gstreamer-developers/ppa
 sudo apt-get update
 sudo apt-get dist-upgrade
 sudo apt-get install shotwell

As you can see - it does involve upgrading to the latest gstreamer from the gstreamer developers themselves.

So you could have two choices:

Install just that gstreamer PPA and then compile your shotwell code from source or...
Install both PPA's and have the "almost" newest version of Shotwell available!

As for all PPA's - they can make your system unstable, so have a backup before installing - or use ppa-purge to remove misbehaving PPAs.


You need to install the depot modules, this can be done with:

$ cpan install Switch JSON LWP :: UserAgent

Unfortunately I do not know much about "Windows Subsystems For Linux"


Different environment

Cron passes a minimal set of environment variables to your jobs. To see the difference, add a dummy job like this:

* * * * * env > /tmp/env.output

Wait for /tmp/env.output to be created, then remove the job again. Now compare the contents of /tmp/env.output with the output of env run in your regular terminal.

A common "gotcha" here is the PATH environment variable being different. Maybe your cron script uses the command somecommand found in /opt/someApp/bin, which you've added to PATH in /etc/environment? cron ignores PATH from that file, so runnning somecommand from your script will fail when run with cron, but work when run in a terminal. It's worth noting that variables from /etc/environment will be passed on to cron jobs, just not the variables cron specifically sets itself, such as PATH.

To get around that, just set your own PATH variable at the top of the script. E.g.

#!/bin/bash
PATH=/opt/someApp/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

# rest of script follows

Some prefer to just use absolute paths to all the commands instead. I recommend against that. Consider what happens if you want to run your script on a different system, and on that system, the command is in /opt/someAppv2.2/bin instead. You'd have to go through the whole script replacing /opt/someApp/bin with /opt/someAppv2.2/bin instead of just doing a small edit on the first line of the script.

You can also set the PATH variable in the crontab file, which will apply to all cron jobs. E.g.

PATH=/opt/someApp/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

15 1 * * * backupscript --incremental /home /root


How do I remove Inbox as my search engine?

It sounds like your default search engine got changed to the Inbox.com search engine, which is known for being really hard to remove.  It's possible that you've already uninstalled the actual extension, but some of the preferences that it changed are still set.

To fix things:

Type about:config into the Location Bar, and press Enter.
If you haven't done this before, Firefox will warn you about voiding your warranty.  Click "I'll be careful, I promise!"
In the box labeled "Filter" do a search for "browser.search".
Anything that was changed by the Inbox.com extension should be in bold.  Right click on anything that looks related to Inbox.com and choose "Reset".  You'll probably want to make sure that browser.search.defaultenginename and browser.search.order.1 are both set to Google or Yahoo.

Let me know if this works.


Apparently
sudo setfacl -m u:$USER:rw /dev/snd/
rebbot
works, but I have to do it every time that I start the computer if anyone knows how to make it work permanently would be great.


How do you find the Ubuntu Software Center in the File System

Alternatively you may open up a terminal ctrl-alt-t and type: $ software-center and just type flash in the search box and see if its not ready installed...also have you installed ubuntu-restricted-extras?

Hope this helps,

Luis


Sorry I don't have an answer for you, but how do you like the FX 6300 overall? I am looking at building a new system and want to avoid hardware problems. My last system used the 950 phenom but it looks like there is nothing from AMD anymore besides FX cpus.

Also, what Nvidia are you using? On board or no?


Some models of Raspberry Pi can be booted from USB media. The Raspberry Pi Foundation publishes a brief tutorial on their website that explains how to do this.

Most of the Ubuntu installations you'll see in a Google search on the topic are for Ubuntu MATE. However, the Ubuntu website details a procedure for installing Ubuntu Core... on an SD card. However, if you'll follow the instructions & make the minor alterations required to write the Ubuntu Core image to a USB thumb drive instead of an SD card the procedure should work. However, please note that I have not actually done this myself, and so this qualifies only as "theory" for the moment.

One other thing to keep in mind: Raspberry Pi's Raspbian is configured to minimize wearout of the SD card. Ubuntu won't have that "built in", so you'll either need to set it up yourself, or accept reduced lifetime of the SD card.


The ~/.bash_logout file is only sourced when you exit a login shell (from man bash):

When an interactive login shell exits, or a non-interactive login shell executes
the exit builtin command,  bash  reads  and  executes  commands  from  the  file
~/.bash_logout, if it exists.

When you open a terminal, you are running an interactive non-login shell, so ~/.bash_logout is not relevant. For more on the different types of shell, see my answer here.
In order to have something executed each time you close the terminal, you could use trap to set a command to run every time an interactive bash session exits. To do this, add this line to your ~/.bashrc:
trap /home/user/Documents/logout_msg.sh EXIT

Of course, if that script is printing a message to the terminal, you need to make sure your logout_msg.sh includes a sleep command so the user will have time to read the message. Something like:
echo "Whatever message you want"
sleep 10 ## wait for 10 seconds


Keyboard lighting and display switch control buttons (fn+f7,fn+f8) does not working(Asus ZenBook Pro 15, Ubuntu18.04)

Try to hover the power icon and use the mouse wheel. This works with my old laptop with Xubuntu 18.04.


Run script no more than twice a day WITHOUT using cron

As you mentioned about cron I suppose you are trying to run the script automatically twice a day.

It's better to use cron, however you can also use at command, lets say my script is located at $HOME/script.sh and is executable.

First I need to add these lines in the beginning of my script:

SCRIPT=$(realpath "$0")
V=$(pstree -sp $$ | grep "($(pgrep -n atd))" -c)

if [ "$V" -ge 1 ];
then
        echo "$SCRIPT" | at "$(date +%H:%M) tomorrow"
fi

The I need to run:

echo $HOME/script.sh | at 18:00
echo $HOME/script.sh | at 20:00

Now my script will be run at 6PM and 8PM and each time if it has been executed using at daemon it will schedule itself to be run tomorrow at the same time.

It's just a funny idea that I wanted to share ;)


Is there a way to make spread mode/expose/super + w highlight the current window?

This effect is implemented using Compiz's Scale functionality. There is plugin that is not enabled by default in Ubuntu called Scale Addons, which has the highlight behaviour in it.

To enable it you will need CompizConfig Settings Manager installed. In the Filter search box of the config manager enter Scale Addons and tick enable.

Then click the Scale Addons button and in the setting choose the Appearance tab.

Enable the Draw Window Highlight and choose a colour for the highlight.


How do I verify that my partitions are being used

The df command shows how much free/used space is on each mounted filesystem, and the mount command shows what filesystems are mounted.  You can use either to make sure /home is mounted.  free shows how much used/free ram/swap you have, so you can use that to verify that your swap partition is mounted, or cat /proc/swaps for a simple list of mounted swap partitions.


Ubuntu and Windows 7 are installed in same Drive, is it safe?

The Windows-based Ubuntu Installer (Wubi) allows you to install and uninstall Ubuntu from within Microsoft Windows. It lets a Microsoft Windows user try Ubuntu without risking any data loss due to disk formatting or partitioning.

Source: https://help.ubuntu.com/community/Wubi

No, it wont make any problems, and you are not really creating another partition.


Default positioning for terminal on Ubuntu 17.10

Copy the terminal launcher (terminal's .desktop file) from  /usr/share/applications/ to ~/.local/share/applications/ and edit the Exec field accordingly.

E.g. for gnome-terminal:

Exec=gnome-terminal --geometry 73x31+100+300

This was from don_crissti's answer here: https://unix.stackexchange.com/questions/48984/how-can-i-set-the-position-that-terminal-opens-at


This is a confirmed bug with low priority, known since 14.04: https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1291359


cd tray get ejected automatically Ubuntu 16.04 LTS

eject -i on

This option controls locking of the hardware  eject  button.  When enabled, the drive will not be ejected when the button is pressed. This is useful when you are carrying a laptop in a bag or case and don't want it to eject if the button is inadvertently pressed.

Source: man eject


Cannot open gedit (or firefox, etc) from command line after `su` to another user: "Error: cannot open display: :0.0"

Background

Graphics from an "su'd user" does not work because that other user is not allowed to write (open windows) in your desktop environment. It works if you log out and log in as that user, or if you use some special tool, like steeldriver suggests.

The light-weight solution is using xhost and gksu, but there might still be some problems because you [try to] write, where you are not 'supposed to' write.

Using an ssh server and ssh -X into the same computer is 'overkill' and adds unnecessary overhead, but can be used if you want to run like that once in a while (particularly if you have the ssh server installed already for other purposes). ssh -X works in a very reliable way with most GUI programs.

xhost and gksu

It is possible to run graphical programs as another user with xhost and gksu. It is important to use gksu to avoid overwriting your configuration files with those of the other user. This can create problems for you to run the same GUI program as your own user, the same problem as if you run GUI programs with sudo. In other words, use gksu or gksudo with GUI programs.

Text after the character # is a comment and not used.

In newer versions of standard Ubuntu you must install gksu

sudo add-apt repository universe  # at least in live and persistent live systems
sudo apt-get update
sudo apt-get install gksu

Prepare with xhost

xhost local:other-user           # general
xhost local:sudodus              # example, use the actual user ID

Now it should work to use gksu to run a program as the other user

gksu -w -u other-user gedit file-to-edit   # general
pwd > i-am-here                            # only to show 'where you are'
gksu -w -u sudodus gedit i-am-here         # example

I noticed that the current directory of gedit will be the original user's directory. And the other user should not write there. In other words, it is a good idea to use the full path to the file to edit, or use for example

gksu -w -u sudodus gedit /home/sudodus/file-to-edit  # example

When you do a simple text mode su

su - other-user                  # general
su - sudodus                     # example

the current directory will be the home directory of the other user.

See Eliah Kagan's answer at this link for more details

askubuntu.com/questions/168815/how-to-get-graphical-display-when-executing-commands-as-another-user ...

Look for Running Graphical Commands Directly as Another User

ssh -X

ssh (text only) and ssh -X (also graphics) are intended for log in to another computer, but it can be used locally too, if you have installed an ssh server, for example

sudo apt-get install openssh-server

I can log in like this

$ ssh -X sudodus@127.0.0.1
The authenticity of host '127.0.0.1 (127.0.0.1)' can't be established.
ECDSA key fingerprint is SHA256:XZBdC58tpt8ud63Z7DfZRX9DYp4xPq6uh0aI07fLlqg.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '127.0.0.1' (ECDSA) to the list of known hosts.
sudodus@127.0.0.1's password:
Welcome to Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-64-generic i686)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

9 paket kan uppdateras.
0 uppdateringar är säkerhetsuppdateringar.

Last login: Tue Feb 14 13:51:52 2017 from 192.168.0.2
sudodus@xenial32 ~ $

Now, if I start for example firefox, it will work. Some graphical programs might not work, but most programs work this way. See the following links

help.ubuntu.com/14.04/serverguide/openssh-server.html

askubuntu.com/questions/886313/what-is-the-simplest-way-to-have-remote-gui-access ...


Dual Boot windows 8 and Ubuntu 12.10 grub error

Windows8 uses UEFI boot, so you should follow the advice of the 1st paragraph of the Ubuntu Community Doc about UEFI: https://help.ubuntu.com/community/UEFI


Steps that solved the same problem for me:

sudo apt-get remove nodejs
sudo ln -s /usr/bin/node /usr/bin/nodejs

Explanation

You have installed two versions of nodejs on your computer, so you need to remove one of them. Your situation:

node v5.0.0 - you will keep this one
nodejs v0.10.25 - this you can remove

You can remove nodejs package via apt-get remove command. This will also remove the file /usr/bin/nodejs and you will not get your error message again.

Now you can create a symbolic link called "/usr/bin/nodejs", that points on source "/usr/local/bin/node". In your example you have wrong order of paths "from" and "to"

sudo ln -s source_file myfile

More info about links creation: How symbolic links works


A shell file containing count but not showing when I try to run from crontab

I suppose the reason is your cron environment. Maybe it does not know where the psql command is.

To investigate the problem try to add another script to your cron, with this command:

#/bin/bash

which psql >> /tmp/investigation

Add this script to cron so that it will be executed as soon as possible.
I believe in /tmp/investigation you will see that shell cannot found psql command. To provide shell with psql you have to add it to PATH variable exactly before command execution.

Also read this wiki question


Set the nameserver in ubuntu with netplan

You can inject nameservers at runtime using the resolvectl tool.  However, note that these settings will not persist across reboots of the target system.  It is probably better to emit your config to a separate file under /etc/netplan/ that you manage exclusively with ansible, and which lists only the dns server settings that you wish to provide, and then call netplan apply, so that the setting persists across reboot.


How to set TortoiseHG to work with Caja on Ubuntu 16.04 LTS?

It is possible because of the fact that Caja integration is already included into Python-extension (see my patch from 2014 year) and current version of nautilus-thg.py file.

So we need to install tortoisehg-nautilus and copy extension from it to home folder, install Python Caja extension and then remove tortoisehg-nautilus package:

sudo apt-get install tortoisehg-nautilus caja-extensions-common python-caja

mkdir -p ~/.local/share/caja-python/extensions
cp /usr/share/nautilus-python/extensions/nautilus-thg.py ~/.local/share/caja-python/extensions/caja-thg.py

sudo apt-get purge tortoisehg-nautilus
sudo apt-get autoremove
sudo apt-get install tortoisehg mercurial

restart Caja with caja -q and enjoy.


Using xev in an existing window with the -id option

Run xwininfo and then click on any window and it should show you details including the Window ID.


Logitech C922 webcam not detected on Ubuntu 18.04LTS

I manage to get it to work by plugging the Webcam into a USB 3 port directly on the computer (not using a usb hub or any other intermediate) and then rebooting the computer.
Cheers
(Works on Ubuntu 18.04LTS and 18.10)


What are the consequences after accidentally executing umask 077 in folder /etc/apt

umask is not folder specific, but tells applications what default permissions to give newly created files.  The default umask is 022 which disables group and world write permissions.
If instead you did a chmod to change the permissions of /etc/apt, you can execute the command "chmod /etc/apt 755" to restore its proper permissions.
This is what you should see:
ls -latd /etc/apt
drwxr-xr-x 7 root root 4096 Aug 21  2019 /etc/apt/


I don't know if this will work on Ubuntu, but it worked for me on elementary OS
https://elementaryos.stackexchange.com/questions/2870/change-specified-apps-icon/2913#2913


If your Ubuntu install is working properly, and the only problem is that Manjaro is listed in GRUB, that should be fixable. If you open a terminal and type sudo update-grub, then enter your password when prompted, there is a chance that simply running this command will fix the problem.


Facing problem while trying to install texstudio in 18.04

Method 1: Reconfigure Package Database
The first method you can try is to reconfigure the package database. Probably the database got corrupted while installing a package. Reconfiguring often fixes the problem.

sudo dpkg --configure -a

Method 2: Use force install
If a package installation was interrupted previously, you may try to do a force install.

sudo apt-get install -f

more methods: link to itfoss.com


Having issues with 2 video cards - 1 AMD and 1 Nvidia, works but is eventually "hanging", cannot CTRL+ALT+F2 but can SSH from another machine

Edit:  It was a bad card, same problems in a different PC it was tried in.
Update:  I don't know if it was the card or drivers...  I ended up taking the fan off this old Nvidia card causing the issues and moving to the other card that I had where the fan broke which was why I went to the old nvidia card in the first place.
Personally, I have not had good experience with Nvidia cards on Ubuntu OSs...  not saying it's something someone can't fix but I have had too many troubles with them to bother trying anymore and I prefer AMD or others over Nvidia now.
Hope this helps.


The return value is stored in $?. 0 indicates success, others indicates error.

some_command
if [ $? -eq 0 ]; then
    echo OK
else
    echo FAIL
fi

Like any other textual value, you can store it in a variable for future comparison:

some_command
retval=$?
do_something $retval
if [ $retval -ne 0 ]; then
    echo "Return code was not zero but $retval"
fi

For possible comparison operators, see man test.


set left handed mouse, then wacom stylus buttons switch too

I had the same issue, but I found the solution.

After you switch to left handed button (in preferences > mouse) you must execute this in the terminal to map the touchpad taps correctly

manolo@manolo-TravelMate-5720:~$ synclient TapButton1=3
manolo@manolo-TravelMate-5720:~$ synclient TapButton2=1

Now just program those lines to execute this every time Lubuntu starts.


Getting an error while mounting machine_config

It appears that the correct path is home/jack/video-jack-app/machine_config so missing video in the path shortened to home/jack/jack-app/machine_config throws an error as the path doesn't exist.

Neither of the options 2 or 3 you suggest will have the desired result, regarding #1 see the comment above by Wilf


Ubuntu 12.04 USB keyboard stopped working

I don't know if this qualifies as an answer to your question, but I had the same problem and I solved it by upgrading further to 13.10.  It was nasty for me because I had no PS/2.

I used a different system to downloaded Ubuntu 12.10 and made an install key.  Then I booted my broken system off that 12.10 key.  The keyboard and mouse worked, so I chose the upgrade 10 12.10.  Once I upgraded and removed the 12.10 installer key, the keyboard and mouse stopped working.

But then I did the same procedure but with version 13.10. This time it worked.


Try looking into using udev rules.  You can create symlinks to the underlying device so no matter which order they are detected you use the alias name that never changes.  See "Writing udev rules" by Daniel Drake (dsd).


Gnome-session not installing because of gnome-session-common even though it is installed and updated

Just replaced the last string in sources.list with

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

and it fixed the problem.


How can I disable tap-to-click on Ubuntu 17.10

Right, so to disable this behaviour I tend to run:

#Disable tap to click
synclient MaxTapTime=0
#Disable drag
synclient TapAndDragGesture=0
#enable palm detection
synclient PalmDetect=1

To make it stick we can add a desktop file to ~/.config/autostart
Such as "touchpad.desktop":

Version=1.0
Type=Application
Name=Touchpadset
Icon=Icon
Exec="synclient MaxTapTime=0 && synclient TapAndDragGesture=0 && synclient PalmDetect=1"
Comment=Set touchpad options
Categories=Login
Terminal=false

This should keep working until ubuntu switches to libinput.


Dual Booting 14.04 and Windows 8.1 on Sony Vaio Tap 20

When I had the same problem I used to press F2 and the windows boot manager allowed me to chose the Grub and then Ubuntu. Try all the Fcommands and c if that works for you.
You don't need to disable secure boot as Ubuntu is recognised by your Bios as  asecure OS


Another program is already using port 53. Maybe dnsmasq is already running or you have another DNS server installed.

What does

sudo fuser -v 53/tcp 53/udp

print?


How do I get Gmail to start on my second desktop window?

Click new in the "Windows with fixed viewport" section, then click the plus button, then select "Window Title", then click "Grab", then click over the Gmail Window. It will grab the correct window title.


How to edit VSCode settings? ctrl + s DOES NOT WORK with React

The config.json file must contain one object - yours contains a few. Try wrapping the whole thing in {}.


Is it possible to download from the internet using filezilla?

This HOWTO is quite old (it's from 2001) and the FTP links don't work any more.

But Ubuntu has the packages ax25-apps, ax25-tools, and libax25 in the official repositories and I guess this are those programs from the HOWTO. So you can just install them via Software Center or apt-get.


Cannot update 12.04 due to "Failed to fetch" warning

It seems there's a problem with the server mirror you are using.

One possible option would be to open Update Manager; click the Settings button; under the "Ubuntu Software" tab choose a different "Download from" Server.


Uninstalling hadoop on Ubuntu 14.04, files/directories left over

locate is not looking directly in the filesystem, it uses a database (or more than one).  The database is updated using the updatedb command, which is usually scheduled as a daily cron job.

So I guess in this case, what you are seeing is the indexed information from yesterday. Once the updatedb cron job completes, you should not see these anymore.

You could run find / -name "*hadoop* instead, as find looks directly in the filesystem. Since it does the search when you run it, it will take some time to complete.

As for the hadoop group, you can run sudo grep hadoop /etc/group, if it does not show anything, then the group has been removed.


How do I store Wine related program files in Ubuntu's partitions?

It should be accessible on drive Z:\ I think, or something similar.

Programs running in wine can definitely access the ubuntu file system.


So I got it to work by downloading all the following drivers:
LPR printer driver (deb package)
CUPSwrapper printer driver (deb package)
Generic LPR printer driver (deb package)
Generic CUPSwrapper printer driver (deb package)

Then under Printer Properties my Make and Model is:
Brother HL2240 for CUPS

I have no idea which driver's worked, I just threw everything against the wall and hoped something sticked.  And now it works.


Sony VAIO laptop SVF11N11CLB not start Ubuntu 16.04 without acpi = off

Try to boot holding the shift key.
choose recovery mode at prompt.
Once in recovery, do an update Grub.

once done, back to the main menu, ro Resume. It should boot.

It happens to me to.


iPhone 6 as Bluetooth A2DP Source in 15.10

It seems this problem solved itself over time, without me doing anything (other than installing the normal updates). My iPhone now appears as an Input device in sound settings.


might be more simple to pull the source from nvidia, i did that a few months back for a crypto mining rig.

The general procedure

sudo apt-get install dkms build-essential linux-headers-generic
sudo apt-get purge --remove nvidia*

wget nvidia and cuda
chmod +x both
ctrl+alt+f1 to init1
su to root

sudo service lightdm stop / sudo service gdm stop )

(cant recall if neveau blacklist required, the installer will let you know. If - may see How to disable Nouveau kernel driver)

ctrl+alt+f3 to init3 if the installer wants network access

if the installer fails for some reason and you need to reboot, end up with black screen - hit ctrl+alt+f1 for init1 again and resume setup or uninstall the failed install with ./installer.run --uninstall.
./installer.run

nvidia-smi or `cat /proc/driver/nvidia/version`
nvcc --version (or `-V` cant recall) altern `cat /usr/local/cuda/version.txt`


It seems Google Chrome is not as good as it was only four months ago.

Not many months ago, perhaps August of last year, back when Firefox became hopelessly problematic, I became an outspoken advocate of using the Google Chrome browser.  Since then I've encountered unexplained total lockups of Google Chrome, and in later discussions discovered that both my girlfriend and another friend had been having the same experiences.

At the moment, my solution is to use a third, and much more difficult to install web browser known as Opera.  Since installing it, I've discovered that my home security system software works better with Opera than either Firefox or Chrome, so now I feel I need to have it on any computers I intend to use.  It is not uncommon to find me using two browsers concurrently, and sometimes three.

There are many tutorials on how to install it, some even on this site, and I've discovered that not all of them appear to work for me.  The one I continually return to is linked here.

https://help.ubuntu.com/community/OperaBrowser

I realize that one might say this isn't a direct answer to your question, I mean I can't tell you how to make the Chrome browser work properly, and I doubt anyone can.  I would advise you to try another browser for a while and return in a few more months to see if Chrome has been fixed yet.


Flash video doesn't work after upgrade to 11.10

I got tired of the adobe-flashplugin package failing on me so I did it manually.

Download the flash plugin from the adobe website. Pick the 64 bit, .tar.gz version. Take the libflashplayer.so file from that archive and move it:

sudo mv libflashplayer.so /usr/lib/mozilla/plugins.

Make sure it is executable:

sudo chmod +x /usr/lib/mozilla/plugins/libflashplayer.so

Screw the buggy installers.

Pros : It's gonna work.

Cons : It won't update automatically.


Should my Ubuntu be running a swap file?

A system with only 2GB RAM should definitely have a swap partition or file!

Swap is used if your RAM is not large enough to fulfil the memory demands of your system and running applications. It's located on your HDD and therefore magnitudes slower than RAM, but without it, if your RAM is 100% used up, the system starts killing processes to free up some. Otherwise it may swap out memory pages to the swap area on disk.

You can verify whether you have any swap enabled already by running the command swapon which will list them all (or nothing, if nothing is set up).

I would recommend you to configure about 2GB - 4GB swap space for your setup.

To add a swap partition, check out How do I add a swap partition after system installation?.

If you want a swap file instead, read Adding a new swap file. How to edit fstab to enable swap after reboot?.


How to create a dual-boot pen-drive supporting UEFI and Legacy BIOS

I also have a Laptop whose motherboard BIOS supports both Legacy and UEFI Boot options.

I use RUFUS as a utility to create bootable media for both Linux and Windows platforms.
It has options such as Partition scheme and target system type which creates the bootable media for below mentioned types.

MBR Partition scheme for BIOS (Legacy) and UEFI
MBR Partition scheme for UEFI
GPT Partition scheme for UEFI

And also for specific type of ISO files supported with EFI-CSM , the utility is able to create bootable media accordingly.

To create a bootable USB that supports both Legacy and UEFI Boot options proceed as follows.

Open Rufus utility.
Select the USB drive onto which you want to create the live bootable media.
In order to support both UEFI and Legacy boot select the first option i.e MBR Partition scheme for BIOS and UEFI under partition scheme and target system type.
Select file system as FAT32 and Default Cluster size.
Tick the box with Create a bootable disk using and browse for the ISO file.
Click START and wait for it to complete.

After completion boot the USB on any PC and you will see that it provides option to boot through LEGACY and also through UEFI.

(NOTE: Ensure that your BIOS settings have been set to allow Legacy Boot options and not strictly UEFI.)

Here is a picture of how it works.!


The nvidia proprietary driver comes with its own OpenGL library, which should provide support for the latest OpenGL standard that your card is capable of. The free drivers use the OpenGL implementation in Mesa, which only supports OpenGL 2 (3.0 is coming in Mesa 8.0 for Intel only - progress is typically slow on this front).

You can use the Additional Drivers tool to install the nvidia binary-only driver.


how export all software upgrade links (.deb) in text file by terminal

You can using --print-uris parameter:

sudo apt-get -y --print-uris upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  m4
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 250 kB of archives.
After this operation, 39.9 kB disk space will be freed.
'http://ftp.us.debian.org/debian/pool/main/m/m4/m4_1.4.17-2_i386.deb' m4_1.4.17-2_i386.deb 249782 MD5Sum:d0611ffe92bb0d666492333f3c652b40

you can make it more quiet:

sudo apt-get -qqq -y --print-uris upgrade
'http://ftp.us.debian.org/debian/pool/main/m/m4/m4_1.4.17-2_i386.deb' m4_1.4.17-2_i386.deb 249782 MD5Sum:d0611ffe92bb0d666492333f3c652b40

Then redirect the output using stdout redirections:

➜  ~  sudo apt-get -qqq -y --print-uris upgrade > upgrade
➜  ~  cat upgrade
'http://ftp.us.debian.org/debian/pool/main/m/m4/m4_1.4.17-2_i386.deb' m4_1.4.17-2_i386.deb 249782 MD5Sum:d0611ffe92bb0d666492333f3c652b40

I would recommend to do sudo apt-get clean to prevent that apt-get doesn't print the uris of previous downloaded packages.


Development environment for Linux wireless using sparse

In the context of kernel development, sparse is a tool for checking kernel code, not a development environment. You can read more about sparse at the sparse homepage.

You may be able to use eclipse for your kernel development environment; as long as you can edit sources and run make, any development environment should be fine.


Problem with IPv6 sudo apt-get update/upgrade

Thanks to this Unix and Linux post by mmoya on Unix and Linux for the answer.

We can try and force apt to use IPv4 instead.

Try this command set, based off the information in the aforementioned link:

apt-get -o Acquire::ForceIPv4=true update
apt-get -o Acquire::ForceIPv4=true upgrade

This should force IPv4 in place of IPv6.

You can make this persistent for all apt-get in the future (so you don't have to provide the arguments to make this work) by doing the following (also from the other U&L post):

echo 'Acquire::ForceIPv4 "true";' | sudo tee /etc/apt/apt.conf.d/99force-ipv4

This will make a configuration file for apt and apt-get to parse, which will then include the ForceIPv4 true options going forward for all apt-get runs.


installing ubuntu alongside windows vista failed

The problem is solved. I used the ¨Do something else¨ option and followed the tutorial at http://linuxbsdos.com/2013/10/23/how-to-install-ubuntu-13-10-on-an-external-hard-drive/


File "/usr/lib/update-notifier/package-data-downloader", line 29, in  import debconf

Your installation of debconf seems corrupt due the lack of the debconf library. If you don't get this:

$ ls -l /usr/lib/python2.7/dist-packages/debconf.py*
lrwxrwxrwx 1 root root   34 nov  3 14:20 /usr/lib/python2.7/dist-packages/debconf.py -> ../../../share/pyshared/debconf.py
-rw-r--r-- 1 root root 6013 dic  9 01:58 /usr/lib/python2.7/dist-packages/debconf.pyc

$ ls -l /usr/share/pyshared/debconf.py
-rw-r--r-- 1 root root 5971 nov  3 14:20 /usr/share/pyshared/debconf.py

Then you are in pretty screwed. You may try to repair it using:

mkdir -p ~/debconf.bk
sudo mv /usr/lib/python2.7/dist-packages/debconf.pyc ~/debconf.bk
sudo mv /usr/share/pyshared/debconf.py ~/debconf.bk
apt-get download debconf
dpkg --extract debconf*.deb
sudo pycompile -p debconf
sudo apt-get -f install


/tmp in tmpfs, how do this only with systemd?

Please note that using /etc/fstab is still the preferred approach with systemd!

See the man page for systemd.mount which states:

  In general, configuring mount points through /etc/fstab is the preferred approach.

systemd ships systemd-fstab-generator which converts those to mount units.

If you really want to turn that mount into a mount unit, my recommendation is to check its current exact configuration, with the following command:

$ systemctl cat tmp.mount

Or:

$ systemctl cat /tmp

Which will show you the dynamic unit created by systemd-fstab-generator, and should look similar to:

# /run/systemd/generator/tmp.mount
# Automatically generated by systemd-fstab-generator

[Unit]
SourcePath=/etc/fstab
Documentation=man:fstab(5) man:systemd-fstab-generator(8)
Before=local-fs.target

[Mount]
What=tmpfs
Where=/tmp
Type=tmpfs
Options=noatime,nosuid,nodev,noexec,mode=1777

You could save these contents into /etc/systemd/system/tmp.mount and run systemctl enable tmp.mount to activate it. (You will need to add an [Install] section and a WantedBy=local-fs.target to be able to successfully enable it.)

(Another option is to use the tmp.mount from the systemd sources. Some other distributions, like Fedora, are shipping and enabling that one.)

Don't forget to remove the one from /etc/fstab, otherwise they might conflict. (I believe the one in fstab would prevail, as I'd expect /run to have priority over /etc.)

But, as said before, managing through /etc/fstab is still the preferred solution... So I'd probably recommend you still stick with that one.


power meter ACPI000D:00: Ignoring unsafe software power cap and lost video signal

The kernel is setting a graphical mode that the console cannot show.

Try adding this line in /etc/default/grub

GRUB_GFXPAYLOAD_LINUX='text'

run update-grub and reboot

You should now have a login prompt


What is the meaning of building packages in a PPA?

When you upload your source code to Launchpad, it is being placed into the queue, depending on a point system (usually the more important the package the more points it has). As it is mentioned here: https://help.launchpad.net/Packaging/PPA/BuildingASourcePackage you have to use debuild -S and then upload your source via the .changes file that is being created.

So, what you have to understand is that a package isn't being built by launchpad exactly when you upload your source code for building. So you have to wait some time (usually 10 mins to 1 hour). Then Launchpad starts building your source code into a DEB, depending on what you have specified in your debian/control file. For example, if you have specified that your package is only for the i386 architecture, then it will build a package only for it, but if you have specified Any architecture, then it will build for both i386 and amd64 architectures. The supported architectures are listed here: https://help.launchpad.net/Packaging/PPA#Supported_architectures

Till the package is waiting at the queue, it will be at the "Needs building" state, and, as you can understand, the DEB packages haven't been created yet. If the building process is finished, then launchpad provides you with the DEB packages that it produced. You can see the DEB packages on the 'View Package Details':

and then you click at the arrow on the left of the package:

Basically, you can use this so as to build your packages to all the available architectures if you have an i386 machine or so as to distribute your software to more people using the add-apt-repository method. With this method everyone will be able to receive updates from the specific PPA.


Leftover traces of removed Ubuntu in UEFI and Recovery Devices on Windows

What you're seeing are NVRAM entries. You can delete them in Windows using EasyUEFI, or using an Ubuntu live CD with the efibootmgr command-line program. (You'll type sudo efibootmgr to see the entries, then delete them with sudo efibootmgr -b {####} -B, where {####} is the four-digit hexadecimal number for an entry found with the first efibootmgr command.)

That said, these entries are basically harmless, so long as they aren't set as the default. You can safely ignore them.

For future reference, re-installing Windows was drastic overkill. Most computers provide an EFI boot manager that you can access by hitting Esc, Enter, or a function key (usually something in the F8-F12 range). Using that, you could have booted Windows, then used bcdedit or EasyUEFI to reset the Windows boot loader as the default.


Are you talking about the Nokia N900?

Personally I haven't heard of anybody porting Ubuntu Touch to the Nokia N900. Supposedly it is current in progress. So currently it wouldn't be possible, to easily, install Ubuntu Touch on your device.

If you wish to contribute to the Ubuntu Touch project check out the porting guide and get some help from the ubuntu-phone team

If you aren't talking about the Nokia N900, but instead some other no-name brand tablet. Then it is even more unlikely you'll be able to get it working on your tablet.


The easiest way to do this is using the default File manager "Files" and right-click on the location where the missing folder was, then choose "Restore missing files..." and follow the prompts.
So open the Downloads folder and just right click!
This works in Ubuntu 18.04.5


Mount of XP share hangs on Ubuntu 16.04.5

Terrance answered the question.  It is now necessary to add the vers=1.0 parameter to the mount command if the target of the mount is an XP system.  The revised command is  as follows:
mount -t cifs -o user=guest,passwd=,rw,iocharset=utf8,file_mode=0777,dir_mode=0777,noperm,vers=1.0 //toller/z /media/z


How can I install the Android SDK system-wide?

Your IT person can install the SDK into the /opt folder.  For instance:

/opt/android/android-version/

The /android-version will be the specific location of the android installtion.  A directory listing of that would be (for instance):

drwxrwxr-x  2 ljames ljames 4096 Nov  5 10:04 temp
drwxrwxr-x  7 ljames ljames 4096 Nov  5 09:54 system-images
drwxrwxr-x  7 ljames ljames 4096 Nov  5 08:36 platforms
drwxrwxr-x  5 ljames ljames 4096 Nov  5 08:35 platform-tools
drwxrwxr-x 12 ljames ljames 4096 Nov  5 08:35 .
-rw-rw-r--  1 ljames ljames   16 Sep 26 15:29 .knownPackages
drwxrwxr-x 11 ljames ljames 4096 Sep 26 13:24 tools
drwxrwxr-x 25 ljames ljames 4096 Sep 26 13:24 docs
drwxrwxrwx  3 root   root   4096 Aug 16 21:45 ..
drwxrwxr-x 11 ljames ljames 4096 Jul 30 19:59 build-tools
drwxrwxr-x  6 ljames ljames 4096 Jul  6 17:20 add-ons
drwxrwxr-x  5 ljames ljames 4096 Jul  6 16:29 sources
drwxrwxr-x  4 ljames ljames 4096 Jul  5 05:17 extras
-rw-rw-r--  1 ljames ljames 1158 Oct 13  2015 SDK Readme.txt

Each user can access/link to is by typing this from their commandline:

ln -s /opt/android/android-version ~/android-sdk

Of course as George mentioned in his comment, only the IP person (or someone given sufficient permission by the IT person) can perform the updates.


What is Docky.exe in /usr/lib/docky/plugins?

This is the Linux native version of Docky.

.dll and .exe files are typical for applications developed in Mono.

As you can see from the docky package file list, no other binaries are included. Docky wouldn't work if only Windows binaries were included. Also, your statement about you see that process running, indicates the same.

And yes, it's safe. It's the nature of Mono-developed applications.


Assuming that the Steam icon is a quick launch icon it is under the very first "Application Launch Bar" in Panel Preferences.  Navigate to that and click it.  Choose edit and do whatever you want to do; delete, up, down.  This is also the place where you add an icon of an application that you have installed.  For more information on menus, look at http://lxlinux.com/#9


Ubuntu Budgie: How to use Alt+Shift to switch keyboard layouts?

In Ubuntu Budgie 17.04, you would have noticed that using the GUI Settings - Keyboard - Typing - Switch to Input Source does not respond to a ALT+Shift by itself.  You need a third keystroke.

However you can go behind the scenes and install the package dconf-editor and edit one or both of the following keys to get things working:

Go to org.gnome.desktop.wm.keybindings

change switch-input-source to ['<Alt>Shift_L']

Likewise the key switch-input-source-backward change to ['<Shift>Alt_L']


HUD, Unity Launcher and menu bar not working on Ubuntu 16.04

Had this exact problem on vanilla Ubuntu 16.04 after a recent update.  I just renamed the .cache folder so it would make a new one.  This is a bit of a sledgehammer approach, but it worked for me.


Can I increase the size of the preview in Gnome's Application Switcher (alt+tab)?

Without editing source code, one cannot customize the preview size of the default Alt+Tab window switcher. However, you could try well maintained Gnome Shell extension Coverflow Alt-Tab by p91paul. It provides an alternative Alt+Tab switcher showing large previews.


Installing Ubuntu alongside windows on Lenovo Yoga 720

Install Ubuntu 17.10 along Windows 10 on Lenovo Yoga 720-15IKB (7700HQ, FHD, GTX 1050)

(I added some german translations in brackets)

Backup of your important Windows files! Then resize your Windows Partition in the partition manager to get free space for Ubuntu.
Switch your SSD settings from RAID to AHCI (Source):

Right-click the Windows Start Menu. Choose "Windows PowerShell (Admin)". Type this command and press ENTER: bcdedit /set safeboot minimal
Restart the computer and enter BIOS Setup (Click "Restart now" from the Recovery Settings; choose "Troubleshoot" (Problembehandlung); "Advanced Options"; "UEFI Firmware Settings")
Change the "SATA Controller mode" from RAID to AHCI (There will be a warning "All data will be erased" but this is not the case here, since we selected "safeboot" earlyer)
Disable Boot->"Fast Boot"
Optional BIOS settings I used:

disable the "Hotkey Mode" in Bios too if you prefer to have ordinary Function Keys F1-F12
Set "Thermal Control" to "Balanced" so the fan will start less often
Enable "Intel Virtual Technology" in case you want tu run VMs on your Laptop

Save changes and exit Setup with F10 and Windows will automatically boot to Safe Mode (skip the filesystemcheck if asked)
In "Windows PowerShell (Admin)" enter: bcdedit /deletevalue safeboot
Reboot once more and Windows will automatically start with AHCI drivers enabled.
Disable the Fast Boot checkbox "Turn on fast startup (recommended)"  ("Schnellstart") in your energy options (so later you can access your windows partition read-writable from Linux.)

Now you should be able to install Ubuntu in a dual-boot configuration:

Install Ubuntu on a USB Device with UNetbootin (This can keep the existing data on your USB Device and just add the install-image as extra folders)
Reboot and press F2 to enter BIOS again or just F12 to select the Boot Device
In Boot-Settings choose the USB Stick with your Ubuntu install Image
Attach a USB Mouse, since the Touchpad is not working at the beginning
Install Ubuntu 17.10 and Choose "Install third-party software" and "turn off secure boot"

Tweak Ubuntu

I guess at first, you want to remove the Amazon Links in your dash ;)
Get the touchpad running
You have to use at least the kernel 4.14. You can install the 4.14-rc5 with this script to get the touchpad running. You need to disable secure boot in you BIOS. With the new kernel at first the networking will be broken due to a bug in the apparmor settings, but you can fix this:

sudo apt install apparmour-utils
sudo aa-complain /etc/apparmor.d/sbin.dhclient

Optimise Power Consumption

apt install powertop
powertop --auto-tune
# install as a service:
cat << EOF | sudo tee /etc/systemd/system/powertop.service
[Unit]
Description=PowerTOP auto tune

[Service]
Type=idle
Environment="TERM=dumb"
ExecStart=/usr/sbin/powertop --auto-tune

[Install]
WantedBy=multi-user.target
EOF
systemctl daemon-reload
systemctl enable powertop.service

Remap Menu key to Print
Since there is no MENU key on the yoga 720, if you are not lucky using Shift+F10, you can remap the PRINT key to MENU: go to Settings -> Keyboard -> Shortcuts -> Screenshots, and disable the mapping using the Print Screen, then add this command to your Startup Applications:

/usr/bin/xmodmap -e "keycode 107 = Menu"

Tweak Settings and Fix legacy tray icons

Install Topicons Plus from https://extensions.gnome.org/extension/1031/topicons/
 or install manually with:

sudo apt install gnome-tweak-tool make
git clone https://github.com/phocean/TopIcons-plus.git /tmp/TopIcons-plus
cd /tmp/TopIcons-plus
sudo make install INSTALL_PATH=/usr/share/gnome-shell/extensions

Now, reload GNOME Shell. You can either hit Alt+F2, type r, and hit enter (or login/logout). Finally, launch the gnome-tweak-tool utility (german: "Optimierungen") to manage extensions. There, you can enable TopIcons Plus and then tweak its look and feel.
Adapter for Ethernet, SDCARD and HDMI

I use an adapter for the combi USB Type-C/Thunderbolt/Displayport, i.e. this one to supplement the missing adapters. Also I have a 3-Port USB Ethernet Adapter, which both work fine on the yoga 720.
Related solved problems

After upgrade to 18.04 I had to solve this: Boot hangs for 30 seconds at "Begin: Running /scripts/local-premount"


Getting hybrid graphics to work nvidia-prime GT650M

I have had problems with bumblebee since 13.10. What works for me now is nvidia-prime. This allows you to choose which graphics driver you want to use in the nvidia control panel. This only works with lightdm (unity). I'm using this myself on Ubuntu 14.04

How to install

1. Use nvidia driver

Open the dash (super/windows key) and type in "drivers". Open "Aditional drivers"
Select the nvidia binary (331.xx) driver.

Click "apply changes". Wait for the driver to be downloaded and installed, and click close.

2. Remove bumblebee and install prime

Open the shell by pressing ctrl-alt-t.

First let's make sure we have the latest software catalog.

sudo apt-get update

Now remove everything bumblebee related.

sudo apt-get purge bumblebee*

Then install prime.

sudo apt-get install nvidia-prime

Now restart your computer.

How to use prime

After your computer has restarted, open the dash and type "nvidia". Open "Nvidia x-server settings".

Here you can choose between the intel and nvidia graphics driver. Choose the intel one for maximum power saving, choose the nvidia one for maximum performance.

After changing graphics card, you'll have to logout and log back in to apply the changes.

Difference between nvidia-prime and bumblebee

The current version of nvidia-prime uses one graphics card for the complete desktop. You either login with nvidia or intel. With bumblebee, you can start individual programs with a specific graphics card, like it is the case on windows.

Sadly, I can't get bumblebee to work on ubuntu 13.10 or higher...

source:

10 things to do after installing ubuntu 14.04


Installing CImg on ubuntu from bash script

I found the answer here, it turned out I needed to figure out how to install the timezone (tzdata) program non-interactively, rather than cimg.

For those interested my script is

apt-get update -y
apt-get upgrade -y

apt-get install -y libx11-dev

export DEBIAN_FRONTEND=noninteractive
ln -fs /usr/share/zoneinfo/Australia/Brisbane /etc/localtime
apt-get install -y tzdata
dpkg-reconfigure --frontend noninteractive tzdata

apt-get install -y cimg-dev


How will my distro be affected when transitioning to Ubuntu 17.10

your customizations should stay intact unless there is a drastic change in desktop. (for example KDE going from plasma 4 to plasma 5)

third party applications may be removed if dependencies can not be satisfied with the updated software. the distribution upgrader will tell you what it is going to remove, read the list carefully. if you have the repos for the software enabled it will try to update the software if dependencies can be met

I recommend the following commands before doing the upgrade to be sure you have the newest packages for your current version:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

then upgrade to the newest version


Lubuntu 16.04.1 LTS - No option to try without installing

Yes, in that case you should get the Desktop edition. You can always find the currently supported Lubuntu releases on its official web page, though you need to scroll down a bit for the 16.04 release.


Crashing when switching between aplication

I Found The Solution.
I tried several ways to fix this problem and when i rebooted my system i saw my ubuntu is working safely.
i think the solution is this:

1-open unity-tweak-tool(if it's installed).

2-open all pages and tabs and click restore to default in all of them.

3-reboot your system.

please write your feedback because i'm not sure.


How to hide sub-menu from Applications menu remotely?

Edit /usr/share/desktop-directories/Game.directory and add a NoDisplay=true line.

This will hide the Games category (and all of the games) from the default menu.  Individual users will be able to re-enable the category in alacarte if they so choose.


Exo Smart R9 F2445 wifi card not detected

Your wireless device is this:

  0bda:b720 Realtek Semiconductor Corp.

It uses the driver rtl8723bu. I will propose a method to install the driver and, if successful, amend it a bit to avoid recompiling the driver after every kernel upgrade.

Please open a terminal and do:

sudo apt-get update
sudo apt-get install git
git clone https://github.com/lwfinger/rtl8723bu.git
cd rtl8723bu
nano Makefile

Find the line at about line 21 that reads:

EXTRA_CFLAGS += -DCONFIG_CONCURRENT_MODE

Comment it out with the symbol # so that it now reads:

#EXTRA_CFLAGS += -DCONFIG_CONCURRENT_MODE

Save (Ctrl+o followed by Enter) and close (Ctrl+x) the text editor.

Now proceed:

make
sudo make install
sudo modprobe 8723bu

Is your wireless working?

EDIT: You will have compiled the driver for your currently running kernel only. When Update Manager installs a later kernel version, also known as linux-image, after the request reboot, recompile:

cd rtl8723bu
make clean
make
sudo make install
sudo modprobe 8723bu

Please retain the file and these instructions for that time.

EDIT2: To get the module to load automagically on boot, please do:

echo 8723bu | sudo tee -a /etc/modules


How to create a GPT partition from Ubuntu

It is not the partition GPT but the partition table, read the wikipedia page to get more information: https://en.wikipedia.org/wiki/Partition_table

BE-CAREFUL!!!

The system save your data, you cannot create a GPT partition table where there have already a MBR partition table! You were lucky the system not let you perform the operation, because you could potentially have a lost of your data.

What you have to do is to convert the MBR to GPT, and this cannot be done while the disk is on-line, you have to perform this conversion in to a live system (like gparted live, which provide you also the tools to convert the partition table).

follow the steps at this links to how to proceed: http://slavisa-jovanovic.com/linux/2015/02/19/mbr-to-gpt.html

Anyway I would recommend you to have a data backup before proceed.


How to identify the exact brand of the embedded smart card reader of my laptop

Unfortunately, the manual for your laptop does not appear to provide much information about the smart card reader. It occurred to me that your reader might be using the AU9540 controller, but it looks like that might just be used for external USB smart card readers.

If lspci and lsusb don't find a device, or don't give enough information about it, then I recommend you use lshw. Although you can run it as a non-root user, I recommend running it as root, with sudo lshw, for best results.

If you're willing to look through what may be a lot of output, you can just start with this, which I think is the most likely way to find information about it, of all the easy ways:

sudo lshw

It occurred to me that you might find your card reader listed in the storage or disk classes -- though that might just show the SD controller but not the smart card reader. This will produce significantly less output, though:

sudo lshw -C disk,storage

You may also find brand and related information about devices that your system attempted to use (whether or not it succeeded) in your dmesg. Just running dmesg will usually produce an enormous amount of output, but you can filter it with grep:

dmesg | grep -Fi alcor

The -F option makes grep treat your search pattern as a "fixed string" rather than a regular expression (and is, in this case, optional). The -i option makes it match case-insensitively. That displays lines from dmesg that contain alcor, Alcor, ALCOR, and so forth.


Monitor goes into permanent sleep after boot up

Probably either wrong resolution or wrong frequency rate. You may try executing this from the terminal you have access to:

sudo dpkg-reconfigure xserver-xorg


Can't connect to my personal Ubuntu server with SSH outside LAN

I finally got it working by using a different external port in my router settings (instead of port 22). I don't understand what was the problem before, but it works now !


There is a known issue https://bugs.launchpad.net/ubuntu/+source/unity8/+bug/1430828
You should be able to reset the network connection and see them, perhaps toggle flight mode on and off or toggle the WiFi connection.