Manually installing ia32-libs-multiarch on Ubuntu 12.10 64bit I manually downloaded ia32-libs-multiarch from packages.ubuntu.com and the version should be compatible with the 64bit 12.10.
From terminal, I get a 'package has no installation candidate. After several manual attempts with dpkg, I tried manually installing ia32-libs from HERE, but failed.
What is the correct way to install ia32-libs?

First of all, did you try installing Skype before installing the libs? I've seen a few reports that there's no need to manually install ia32-libs on Quantal (ie - 32bit applications install just fine), though I haven't confirmed that myself. If you haven't, try that first. If you have, then continue on (and, since you're new, it'd be good to read on, anyway).

You don't need to download packages from packages.ubuntu.com in order to install them. That site is really only there for documentation and reference purposes.

All you need to do is open up terminal and run:

sudo apt-get install ia32-libs

It'll prompt you for your password. Put it in, and let it do its thing. Once it's done, you should be able to install Skype without issue.

Download the deb package either from Ubuntu updates or Ubuntu Packages and install manually using dpkg.


Ubuntu killing processes when no more RAM is available On an ubuntu box with 4GB, I am running apache with some mpm + mysqld.
Furthermore, there is a postfix, mongod and ocassionaly some imagemagick/convert processes active.

On 99% of the days, that's fine. However, sometimes (not at peak times, but e.g. at 3am in the morning - although backup process start few hours late) the server runs out of RAM. Then it's killing processes and unfortunately it's starting with apache and/or mysqld :-(

Do I have a chance to define which process is "important" or high-priority?
E.g. i'd define
1) apache
2) mysql
3) postfix
4) convert
5) mongod <- as far as i know, mongod is very polite and will release ram for other applications if needed.

Btw. the system is not running out of memory because of ghost processes; i use some cleaner scripts which make sure that unused ram is recycled :-)

Thx

This is behavior determined by the kernel.  When the kernel runs out of memory, it reacts poorly and kills the process using the most amount of memory.  On the desktop, this can sometimes be the xserver, another poor choice to kill first.  This shouldn't happen with adequate swap.

If your strategy was to go without a swap file in order to force the OS to use RAM, I suggest you instead have a swap file, and use the swappiness setting to make the OS use primarily RAM.  Find out how to do that here: How do I configure swappiness?

10 is a typical aggressive value for swappiness.  I found that with values less than 10, the OS seemed to prioritized unloading the swap over the actual running of programs.  In other words, when I ran out of memory, things slowed down immensely.  So maybe start with 10, or something close, and see how well it uses the RAM.

Well, in System Monitor you can simply assign a priority via right-clicking a process and choosing change priority. If you don't have a GUI running, you should use the command renice, just check out the manpage.


WIFI not working on hp15 ab522tx machine I am using HP 15ab522tx ,after installing Ubuntu 16.04 ,I am not able to fix WIFI issue.Also I tried various answers to this problem.But nothing seem to work for me.Installing BROADCOM driver did not work for me..Please help.

lspci -knn | grep Net -A3; rfkill list

gives:

03:00.0 Network controller [0280]: Broadcom Corporation BCM43142 802.11b/g/n [14e4:4365] (rev 01)
    DeviceName: Broadcom BCM43142 802.11 b/g/n 1x1Wi-Fi + BT4.0 M.2 Combo Adapter
    Subsystem: Hewlett-Packard Company BCM43142 802.11b/g/n [103c:804a]
    Kernel modules: wl
0: hci0: Bluetooth
    Soft blocked: yes
    Hard blocked: no

List of Wireless Drivers in windows 10 version:

Broadcom Wireless LAN Driver
Intel Wireless LAN Drivers
Realtek RTL8723BE/RTL8188EE 802.11b/g/n Wireless LAN Drivers

You can try changing to a newer kernel. Either by manually downloading and installing the .deb files or by using a gui tool.

http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.12/

Download depending upon your OS type i.e (64-bit/amd64 or 32-bit/i386):

linux-headers-4.12.0-xxxxxx_all.deb
linux-headers-4.12.0-xxx-generic(/lowlatency)_xxx_amd64(/i386).deb
linux-image-4.12.0-xxx-generic(/lowlatency)_xxx_amd64(/i386).deb

Install by the following command

sudo dpkg -i *.deb

This will install the latest kernel files. Restart ubuntu for changes to take effect.


New to Ubuntu. How do I access my files? My Laptop is running Windows 8 Pro (upgraded from Windows 7).

I decided I wanted to try a new OS so here I am.

I've installed Ubuntu using the WUBI.exe installer.

When I boot my laptop, I get given a choice of Windows 8 or Ubuntu. Cool, just what I wanted!

I want to try Ubuntu for a few weeks or so to see if I prefer it over Windows. But for now, I want to keep W8 so I decided to go for this dualboot/run alongside option.

Only thing is, my files. I have a lot of music, pictures, movies, tv shows and documents on my 500GB HDD which I make use of daily. But I cannot seem to find out how to access them in Ubuntu.

That's all I want ;)

Any help would be appreciated! Thanks for your time.

(I'm not a computer tech geek, I'm just an avid computer and internet user, I'm a noob at this sort of thing.)

Step 1: Hit ctrl+alt+T
This will open a terminal window

Step 2: Type sudo mount -a and type your root(login) password.
This will mount all partitions on your 500GB HDD

Step 3: Go to file manager named FILES. Navigate to 'File System'.
You will see lots of directories(etc, bin, home, lib, dev, mnt...). Check the media directory for your partitions.

Sorry for my English.


Trying to install via snap I'm trying to install Rocket Chat server via snaps. When I try to execute:

sudo snap install rocketchat-server

I get the following error:

error: cannot communicate with server:
Post http://localhost/v2/snaps/rocketchat-server:
dial unix /run/snapd/socket: connect: connection refused

I'm getting the same error when I try to list snaps or any other related command. Any ideas please?

Here is the output of journalctl -u snapd.service

systemd[1]: Started Snappy daemon.
/usr/lib/snapd/snapd[6186]: patch.go:65: Patching system state from level 3 to 4
snapd[6186]: 2017/01/18 18:31:48.253833 patch.go:65: Patching system state from level 3 to 4
usr/lib/snapd/snapd[6186]: patch.go:72: Cannot patch: cannot get snap state from "rocket-server": <nil>
snapd[6186]: 2017/01/18 18:31:48.267963 patch.go:72 Cannot patch: cannot get snap state from "rocket-server": <nil>
snapd[6186]: error: cannot patch system state from level 3 to 4: cannot get snap state for "rocketchat-server": <nil>
snapd.service: Main process exited, code=exited, status=1/FAILURE
snapd.service: Unit entered failed state.
snapd.service: Failed with result 'exit-code'
snapd.service: Service hold-off time over, scheduling restart.
snapd.service: Stopped Snappy daemon.

Just try restarting snap service.

sudo systemctl restart snapd.service

Most likely it will resolve if updating snapd doesn't work

I'm an upstream snapd developer. Let me look at the error you saw.

Which version of snapd are you on?

EDIT: I just spoke to other developers and it seems that until 2.21 is out of proposed you are out of luck. Can you try snapd from proposed please (and report back if that fixed the problem for you).


Passwordless SSH only works when I'm already logged in on SSH So I set up passwordless ssh using the following: How can I set up password-less SSH login?

After setting this up, I'd expect that I wouldn't need a password to ssh.  My issue is that on my first connection to ssh, it will ask me for a password, but additional sessions on top of that will not ask for a password.

I've already checked my sshd_config to make sure that it contains:

RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile  %h/.ssh/authorized_keys

Pretty sure my permissions are right, because if they weren't then passwordless ssh wouldn't be working at all.

To add more "fun" to this problem, I noticed that when I restart my computer (either the client computer or the ssh server computer), sometimes it will work.  Then when I shut down the computer and try it again the next day, it doesn't work anymore.  Maybe this is completely random, but it's something I've noticed.

This is common issue with encrypted home, and was answered many times, for example on Unix, but is covered even in official Ubuntu documentation.

This is probably caused by the fact, that your home directory (and therefore the key) is not accessible during the login time. This can be caused by the fact, that your home is mounted from network drive (on shared system) after login or your home directory is encrypted (usually installs of workstations).
Solving this is complicated, but I will have a look for some discussion. Solution is to move the AuthorizedKeysFile to some other place, that will be accessible or us global store for keys (/etc/security/authorized_keys), or some kind of SSO management system (IPA, LDAP), which will get your key from directory server (yes, can be local). Depends on how much control of the target system you have.
Probably best solution is to store your keys in other place, changing the value in sshd_config:
AuthorizedKeysFile /etc/ssh/%u/authorized_keys

Anyway, if you will move your authorized_keys, make sure they have proper permissions and count with the fact, that if you log in using public key, you will not be able to access your home directory (it is encrypted by your password!), unless you change the way how it is encrytpted.

If certificate copied correctly, then it should work with the connection formated like this:

ssh hostname\ip -l username

Where username is the user, who have you certificate in .ssh/authorized_keys


How to simply convert video files (i.e.: MKV to MP4)? I simply want to convert files, any format to any format (at the moment, I need to convert MKV to MP4-h264), without losing quality. I don't want to resize (scale) the video, I don't want to change its aspect ratio and I don't want it to lose quality (this is very important); all I want is "to change the format", that's all. Reason: my DVD player won't recognize any formats other than AVI or MP4. I don't care about file size, unless the difference between the input and the output files is absurdly huge. So, how do I do that?

I've already tried programs such as WinFF, Arista, Format Junkie, but their presets always change something which I don't want to be changed (size, aspec ratio, etc.). I'm not really sure, but I think the best way to get what I want is to go with the pure ffmpeg commands. But how?

By the way, Ubuntu 13.04 (64-bit), here. Thanks for your time, guys.

If you only want to convert MKV to MP4 then you will save quality and a lot of time by just changing the containers. Both of these are just wrappers over the same content so the CPU only needs to do a little work. Don't re encode as you will definitely lose quality.

It's very straight forward using ffmpeg:

ffmpeg -i LostInTranslation.mkv -codec copy LostInTranslation.mp4

Here, you are copying the video codec and audio codec so nothing is being encoded.

Tip: To convert all MKV files in the current directory, run a simple loop in terminal:

for i in *.mkv; do
    ffmpeg -i "$i" -codec copy "${i%.*}.mp4"
done

For future conversions, like from AVI to MP4, check out HandBrake.

Here is one you haven't tried. Handbrake


When I have 2 Ubuntu versions, Can I uninstall one of them? If I have two Ubuntu versions installed in my PC, let's say: Ubuntu Studio 15.10 and Lubuntu 15.10, Can I remove one of them (whichever) without to having to format any partition?

Is there some bash command to perform this?

How?

As I know there is not a Bash command for this.

Do you know the tool gparted? It's a graphical tool to manage your disk space. Install it in this system, that you want to keep. It's available in Ubuntu-software-center.

With this tool you should be able to delete partition of the other system. Don't forget to start it as root.

There are people way smarter than me here, but is it a dual boot situation? Like, they both are separated by a partition? If so then yes just format the partition of the OS you no longer want. Just save all your stuff first.


Anonymous Internet browsing Could you please suggest me a good anonymous internet browsing application for Ubuntu?

Tor is one of the best tools for anonymity on the internet. The most common way today is to use Tor is the Tor browser bundle, see this answer for more. You can use Tor without a proxy server, although the Tor project suggests using a proxy for better performance.

Installing Tor

Using any method, edit your repositories and add the Tor repository. See also detailed instructions for installing Tor from the Tor project.

deb http://deb.torproject.org/torproject.org trusty main
deb-src http://deb.torproject.org/torproject.org trusty main

Replace trusty with the codename for your release (check the output of lsb_release -sc). Make sure Universe and Multiverse Repositories are enabled.

Add the Tor GPG key:

gpg --keyserver keys.gnupg.net --recv A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89
gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -

Update repositories and install Tor:

sudo apt-get update
sudo apt-get install tor deb.torproject.org-keyring

Install Privoxy:

sudo apt-get install privoxy

Some GUI for Tor:

Vidalia is a graphical config tool.
Tor Browser can run off  from a thumb drive without needing to install any software.

Note:
Privoxy is optional. It is a proxy and it offers additional features including adblocking. The advantages of privoxy include built in adblock.

Tor FAQ
Privoxy FAQ

You could also use the "FoxyProxy" plugin, and some anonymous proxy action... that'd give you the same effect.


Ubuntu CD Not Booting! I am trying dual booting Ubuntu 12.04.01 LTS with Windows 7.
So I downloaded the ISO from the site, burned it on a DVD.
Now when I run wubi.exe (as auto play) it says Pemission Denied. After googling it, I found that it is just a bug and that it is properly installed already.

Now I am trying to boot the laptop with the disc inside, its just starting to boot to Windows 7 again.
Please help!

To elaborate on the previous answer, you need to:

1: When your PC is booting, press the relevant "F key" to get you into your BIOS.

2: Navigate to the menu entitled "Boot"

3: Configure the settings in that menu to boot from the CD first.

4: Exit and Save Changes.

5: Your computer should reboot automatically, and boot from the CD.


How to install ace stream on Ubuntu 15.04 How can I install Ace Stream Media on Ubuntu 15.04?
I tried it using the repository key for Ubuntu 14.04 LTS but it didn't work.

I tried many times to install acestream on lubuntu and ubuntu that I almost gave up.

Actually it seems that there are no more official repo for acestream.

So, what I did is to install Acestream with Wine.

To install Wine, enter the following commands in your terminal):

sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get -y install wine1.8

Or find more information there: https://wiki.winehq.org/Ubuntu in order to install Wine

Then, find "Configure Wine" (probably in your "Start Menu") and find the tab "Applications" and change "Windows version" to "Windows XP".

Then browse your C: drive (shortcut is the Start Menu or browse /home/YOURNICKNAME/.wine/dosdevices/c:/ If you don't see the folder /.wine/ try to press Ctrl+h to see hidden folders) and copy/paste the Windows installer you downloaded from http://wiki.acestream.org/wiki/index.php/AceStream_3.0/en

Then install the software.

The software is supposed to be installed in /home/YOURNICKNAME/.wine/dosdevices/c:/users/YOURNICKNAME/Application Data/ACEStream/player

So just launch the file ace_player.exe to launch it. Maybe it is already launched in background. So close it and re-launch it.

After make a shortcut of the folder to your desktop. So go back to /home/YOURNICKNAME/.wine/dosdevices/c:/users/YOURNICKNAME/Application Data/ACEStream/ and select the folder /player/. Then click on Ctrl+Shift and move the folder to your desktop to make it a shortcut.

And then it works :)

hmmm did you try this?

sudo tee /etc/apt/sources.list.d/acestream.list
$sudo wget -O – http://repo.acestream.org/keys/acestream.public.key | sudo apt-key add –
$sudo apt-get update

Edit

if that dosent work go here
https://drive.google.com/file/d/0Bw2xofe4Yj9veDMwUlFXN2w1akE/edit?usp=sharing
the above contains all the needed dependencies and should work the same for 15.04 but I could be wrong
and use this code
$sudo dpkg -i acestream-engine-fix-Ubuntu_14.04.deb

Edit
I just double checked a website and it says its not out yet for 14.04 and 15.04


Fixing Screen Tearing on Ubuntu 20.04 LTS w/ NVIDIA GeForce GTX 1650 Mobile on a PRIME Display? I'm really new to Ubuntu and I'm having screen tearing issues whenever I use it. I changed some settings on Firefox and that improved the tearing a little bit, but the tearing is a system-wide issue, which is really annoying. I still get tearing when I watch videos, scroll on websites + when I move windows around on the desktop, watch videos on VLC, etc.
I am using the NVIDIA driver metapackage from nvidia-driver-440 (proprietary, tested).
One of the possible solutions I found online was to change some settings in the NVIDIA X Server Settings, but I don't get the options the tutorial had listed because apparently I have a "PRIME display" (I don't know what that means). There's a note on NVIDIA X Server Settings that says "PRIME Displays cannot be controlled by nvidia-settings and must be configured by an external RandR capable tool." Since I'm very new to this, I don't know what that means lol.
For more context, I'm running Ubuntu on my laptop and am using the laptop display. The screen resolution is 3840 x 2160 and the refresh rate is 60,00Hz. The OS is scaled 200x times and I'm not using Fractional Scaling.
What do I need to do to get rid of the screen tearing? Should I be using "nvidia-driver-440" or another driver? Can I fix tearing using terminal commands or do I need to do something else? What is an "RandR capable tool" and a "PRIME display"? Do I need to do something different because of this or no?
Thanks so much in advance for helping a noob out!!

What do I need to do to get rid of the screen tearing?

If you haven't tried modesetting option of Nvidia driver already then I'd suggest you do that as that made things better by a good margin for my laptop with hybrid graphics. See this page for details: http://ubuntuhandbook.org/index.php/2018/07/fix-screen-tearing-ubuntu-18-04-optimus-laptops/
Enable GPU acceleration in your browser to benefit from this setting because otherwise integrated GPU settings apply and with intel we also suffer from screen tearing. Intel driver has an X setting for dealing with this ("TearFree" option) but after I started using on-demand option of Nvidia PRIME, to make the switch to dGPU on the fly, I can't find a way to include this option in my X settings without breaking the PRIME display

Should I be using "nvidia-driver-440" or another driver?

Ubuntu 20.04 now has nvidia-driver-450 which also supports reverse prime i.e. you can use your dedicated GPU as an output sink for example to support external display while still using integrated GPU for power saving. There are many other improvements as well so this is what you'd want to use if you have an Optimus dGPU.

What is an "RandR capable tool"

RandR is a communication protocol for X server. The message you get from Nvidia settings mean that you display manager is controlling the displays. 'xrandr' utility on Ubuntu is such a tool but AFAIK it can't help you here.

and a "PRIME display"?

PRIME is a term for technology to support hybrid graphics under Linux.
Happy tweaking!

Same problem on Ubuntu 20.04 running on Lenovo X1 Extreme with GTX 1650. I've tried several options but with no success. For now as some workround I've selected integrated graphics in NVIDIA configuration tool. Since I'm not playing games that's kind of OK. Now video playback is without problems.
Hope video tearing issues will be fixed some day.


How add panel 3d unity in gnome shell (not panel 2d unity) How to add panel 3d unity in gnome shell, not panel 2d unity.

I guess this is not possible because unity-3d needs compiz and gnome-shell needs mutter (another window manager) and you can't run compiz and mutter at the same time.

it is not possible.
unity is strongly depended on compiz and compiz is not possible in gnome-shell.
you can use just unity 2d pannel or launcher in gnome shell.
if you use unity 2d panel, you must activate appropriate extension for gnome-shell to put shell panel on bottom and put unity 2d panel on top. but am can't figureout why you want this?
am understand if you want  unity launcher with dash funcion. if you want that find "main meny" app in meny and find unity 2d launcher and check it to be visible in meny.
then, activate gnome-shell extension "light overview" and you have in activities just window-s preview and workspace swicher.

or use unity 2d panel, cairo-dock , compiz and openbox/gnome if you dont like unity launcher


PHP with pdo-mysql in ubuntu 16.04 I've been trying to install php (7.2) in Ubuntu (16.04) with PDO enabled. I don't need php as apache module, because I want to use PHPs built-in server (in cli mode, like php -S localhost:80).

So, here is what i do:

sudo apt-get install php

sudo apt-get install php-mysql

sudo cp /usr/lib/php/7.2/php.ini-production.cli /etc/php/7.2/cli/php.ini

Now, in php.ini uncommented:

extension=pdo_mysql

And still when i run php -v I get the error:

PHP Warning:  PHP Startup: Unable to load dynamic library 'pdo_mysql' (tried: /usr/lib/php/20170718/pdo_mysql (/usr/lib/php/20170718/pdo_mysql: cannot open shared object file: No such file or directory), /usr/lib/php/20170718/pdo_mysql.so (/usr/lib/php/20170718/pdo_mysql.so: undefined symbol: pdo_parse_params)) in Unknown on line 0

php -m output:

[PHP Modules]
Core
date
filter
hash
libxml
openssl
pcntl
pcre
Reflection
session
sodium
SPL
standard
zlib
[Zend Modules]

I solved the problem this way:

sudo apt-get --purge remove php-common

sudo apt-get install php-common php-mysql php-cli

Now there is no error and php -m shows it has everything:

[PHP Modules]
calendar
Core
ctype
date
exif
fileinfo
filter
ftp
gettext
hash
iconv
json
libxml
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
Phar
posix
readline
Reflection
session
shmop
sockets
sodium
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
Zend OPcache
zlib

[Zend Modules]
Zend OPcache

Still don't know what caused the issue in the first place

I created the same issue for myself on my work box by manually uncommenting several

;extension=<module>

lines in the php.ini.  Which was really me second-guessing the apt-get install process. I think modern php7+ handles these extensions using conf.d specific files like:

/etc/php/7.3/cli/conf.d/10-pdo.ini
/etc/php/7.3/cli/conf.d/20-pdo_mysql.ini

The answer then for me was re-commenting these ;extension lines in the cli's php.ini file.


Ubuntu 13.10, Perl complaining about setting locale I'm getting rather annoyed with Ubuntu 13.10. I need to go about fixing locales on my server, or else I see junk like this happening:

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

Most fixes online state that adding

export LC_ALL=en_US.UTF-8
export LC_CTYPE=en_US.UTF-8
export LANG=en_US.UTF-8

to .bashrc and .bash_login should fix the problem.

Some mention that running the following from the commands:

$ sudo locale-gen en_US en_US.UTF-8
$ dpkg-reconfigure locales

should also help. I also tried rebooting the server on top of all the above.

It seems to work for when I'm SSH'ed into that server via terminal, but when I run remote deployment scripts from capistrano, I still get the Perl errors in my output.

I thought that's exactly what the exports in .bash_login should have fixed.

I even tried running

apt-get install language-pack-en-base

Nothing works!

A couple of notes:

System wide locale settings are stored in /etc/default/locale.
It makes no sense to set all of LC_ALL, LC_CTYPE and LANG.

A cleaner solution is to let /etc/default/locale contain only

LANG=en_US.UTF-8

and drop those entries in /etc/bash.bashrc.

I executed locale-gen en_US.UTF-8 as root and it worked great.

source


how to setup default runlevel to 3 after preseed install ubuntu 16.04 how to setup default runlevel to 3 after preseed install ubuntu 16.04

I install an os ubuntu 16.04 with preseed.cfg
on boot get stuck
boot stuck on /dev/sda1 clean
it seems the same question even the same about plymouth

please check out

https://www.linux.org/threads/boot-stuck-on-dev-sda1-clean.27627/

alt+F2 log in to the system.
I find the runlevel is 5 not 3
So how can I setup runlevel to 3 in preseed

because it is a server not a desktop.

try to fellow this

https://help.ubuntu.com/community/UpstartHowto#How_do_I_change_the_runlevel.3F

but I cannot find file /etc/init/rc-sysinit.conf

ls /etc/init/rc-sysinit.conf
ls: cannot access '/etc/init/rc-sysinit.conf': No such file or directory

init 3 works

but I want defalut after a preseed install.

In Ubuntu 16.04 and other newer version of Linux, the concept of runlevel has been changed with systemd targets.

To change runlevel to 3, then use the following command:

sudo systemctl set-default runlevel3.target

For checking your current target, use the following command:

systemctl get-default

For more information you can visit systemd man pages.

man systemd

Run:
tasksel tasksel/first multiselect standard

or:
tasksel tasksel/first multiselect ubuntu-server


Grub2 installed on Legacy thus EFI windows boots directly I have windows 7 installed on EFI, I installed Ubuntu on legacy as Windows had secure boot on and I had a message which asked to install Ubumtu on legacy instead of EFI. Now when I boot the laptop, windows starys automatically, if I want to acccess Ubumtu, I have to emter bios and select booting from ubuntu grub(2 are listed for some reason), when the menu appears, an option to boot into either Ubuntu or Win7 is shown.

How do I solve this problem to get the grub showing at boot?

Here is a link to Bootinfo Summary:
http://paste2.org/9kwD8mf8

Disable secureboot from BIOS settings and then clean install Ubuntu on EFI.
Don't forget to turn secureboot on back. Worked on my machine.


Can an Android phone control Ubuntu like a remote? I am looking at making a budget media centre. I am new to Linux and have not yet installed it but think I can manage. I want to use Ubuntu and would like to use my Android phones to control or work as a remote for media playing to a TV.

My setup will be the media box to TV via HDMI (no keyboard or mouse connected) then to my Wi-Fi router via Ethernet.

So I want to be able to turn this PC on and after it's booted directly from my phone control the PC remotely to open the media application and run videos and open photos directly to the TV.

I am using a Samsung Galaxy S II and soon a new Sony for the wife.

If you install the xbmc packages (and use that environment), you can control your machine from android, because there is an app called xbmc remote in google play.
It works flawlessly for me.

You can use TeamViewer. This simple and easy tool to control your pc using your android device. You need to install teamviwer in ubuntu and android mobile.


basic outgoing mail function I've looked for tutorials and guides about this topic but seems really complicated to make it work.

I'm working with php, I would like to send mails in some scenarios such as password recovery and email confirmation... And I'm running all those projects in my Ubuntu 14.04 server as a vps digital ocean droplet... But after trying for days I can't make it works.... Since almost every guide is made as a full email server configuration

What I want is just to set a mail system which aloe me to send basic mail as I said before but having it secure and with a good performance....

What should I do? What's the best way to accomplish it? Thank you very much

PHP mail() function for sending basic email.

Link: http://www.php.net/manual/en/function.mail.php


My computer like Disk Usage Statistics bar in Ubuntu Is it possible to view disk usage statistics, like free space left, as in "My Computer" in Windows, but for Ubuntu 14.04 LTS ?

What you're looking for is Disk Usage Analyzer

Disk Usage Analyzer comes pre-installed with Ubuntu, and allows you to view detailed breakdowns of your disk usage.

It can be launched by searching for Disk Usage Analyzer from the Dash, or by using the command baobab in the Terminal.

Found answer in the form of Cinnamon Desktop Environment. Hope this helps.

As you can see, free space is shown on the bottom bar.


GRUB showing the wrong operating system I have a USB stick with a UNETBOOT produced Lubuntu operating system install.  When I boot from the USB stick, on my computer with Linux Mint (intending to replace it) ONLY the Mint listings are in the GRUB menu.  I tested them and indeed they boot to Mint, which is mind blowing, since the USB stick doesn't have Mint on it!!

On top of that, I tried a different computer and everything worked perfectly.  USB stick showed Lubuntu in the GRUB and it installed.

What could be going on here?  I'm stumped!

Check your BIOS settings and make sure USB is the first device to boot.
My first answer, hope it helps.


Shrew Soft VPN fail to attach key daemon I'm trying to use Shrew Soft to connect to my school VPN. But as you can see here, it says

  failed to connect to key daemon

I searched for the solution and people who use Shrew Soft Trace Utility and easily solved this on Windows OS as seen here.

Yet, I don't know how to solve this on Ubuntu 14.04.

Also, is there a substitute application for Shrew Soft VPN for Ubuntu?
Thanks!

You can always check it if it's running by using the following command:

pgrep iked

if you get a result, it means the process is running

if not run the below command:

sudo /usr/sbin/iked

it starts service

Look in services.msc, I'm assuming that one of the Shrewsoft services isn't running. Should have two or 2 of them(shrewsoft IKE Daemon, Shrewsoft IPSEC Daemon, and Shrewsoft DNS Daemon). You may not have the last one.


apt-get: command not found after installed the aptitude I tried to install npm in my ubuntu 18.04 using apt-get, my thrown some errors called,

npm: depends: node-gyp (>= 0.10.9) but it is not going to be installed.

I found one solution that says install aptitude first the install npm using

sudo aptitude install npm

And then the npm installed successfully, but i cannot do any apt operations.

Please help me to fix this.

Thanks in advance.

As you are working on the Ubuntu 18.04, By default It will have the apt-get Installed. if this Command is not found means the Installation of Ubuntu is not Proper. Please have a check with it.

Follow this Link.

As the @Sunil Valmiki said, Aptitude is also a package manager and has pros and cons. You can continue to use aptitude if that is ok for you.
As your apt-get problem, there is no way i can think of to repair apt-get. Apt-get is a part of the installation, the operating system. When you tried to solve your npm problem you may have caused some conflict between aptitude and apt-get that you haven't notice. You may need to install ubuntu again.


Watching a DVD 14.04.1 Thinkpad T410 OK so I have the 'restricted extras' installed and have run the following:

sudo apt-get install libdvdread4
sudo /usr/share/doc/libdvdread4/install-css.sh

Still can't view a region 2 DVD in VLC Player or Videos. I get a read error in Videos and nothing happens in VLC. I'm pretty new to Ubuntu so fear I may be missing something obvious. Any help or guidance would be very welcome?

OK, so I seem to have resolved the issue for me!:)

I deleted the ~/.dvdcss folder. (For the unitiated like me, that means it's in your home folder, but also be aware you will need to show the hidden files in order to see it.)

From my limited understanding, it seems that if you try a disc and it doesn't work first time you will need to delete this file or your player will always try to use the wrong encryption code.

You may need to wait some time for libdvdcss to crack the DVDs encryption. If you encounter other errors, refer to

https://help.ubuntu.com/community/RestrictedFormats/PlayingDVDs


trying to install Node js, but it seems like in the source files or package there in an extra space so error are there trying to install Node js, but it seems like in the source files or package there in an extra space so error are there.

$ curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
W: Failed to fetch http://apt.postgresql.org/pub/repos/apt/dists/trusty-pgdg/main/binary-amd64/Packages  404  Not Found [IP: 204.145.124.244 80]
W: Failed to fetch http://apt.postgresql.org/pub/repos/apt/dists/trusty-pgdg/main/binary-i386/Packages  404  Not Found [IP: 204.145.124.244 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.

Error executing command, exiting

see, what seemed to me is, this links have extra space in the error urls

http://apt.postgresql.org/pub/repos/apt/dists/trusty- pgdg/main/binary-amd64/Packages

see trusty- pgdg the space before pgdg
when I copy-pasted the url without the space, I was able to download the packages.

What should I do to solve this?

When I copy pasted it here, the space were gone, but I have attached the screen-shot.

If you want to install node.js you should install it via apt:

sudo apt-get install nodejs

You can list further node.js packages with following command:

apt search nodejs

Using the command

nodejs -v

you can check the installed verison.

https://tecadmin.net/install-latest-nodejs-npm-on-ubuntu/

//steps 0;;;;

//

sudo apt-get install curl python-software-properties

curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -

sudo apt-get install nodejs

//

//this will install things, even if some error are there, it may work fine.

//if this doesn't work.

//OR --- step 0;;;;;;;

Directly install nodejs from ubuntu software installer, binary file.
**https://nodejs.org/en/download/

**Check version;;;;;;;;;;

node -v

v10.0.0

if above doesn't work,Try opening 2nd terminal & Check

node -v

if it's still not working,
step2:::::::::

Having trouble to find the node in ubuntu 14.04 after installing

#which nodejs

**In my case it displayed /usr/bin/nodejs

**then Make a link, change environment variable or change node command path or something

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

------log----

root@mayank-Vostro-460:~# which node

root@mayank-Vostro-460:~# which nodejs

/usr/bin/nodejs

root@mayank-Vostro-460:~# sudo ln -s /usr/bin/nodejs /usr/bin/node

root@mayank-Vostro-460:~# node -v

v0.10.25

Check if node is working??

Step 4 – Create Demo Web Server (Optional)
then check this from https://tecadmin.net/install-latest-nodejs-npm-on-ubuntu/

----------log----------

root@mayank-Vostro-460:~# vi http_server.js

root@mayank-Vostro-460:~# cat http_server.js

var http = require('http');

http.createServer(function (req, res) {

res.writeHead(200, {'Content-Type': 'text/plain'});

res.end('Hello World\n');

}).listen(3000, "127.0.0.1");

console.log('Server running at http://127.0.0.1:3000/');

root@mayank-Vostro-460:~# node http_server.js

The program 'node' can be found in the following packages:

node
nodejs-legacy

Try: apt-get install

root@mayank-Vostro-460:~# which node

root@mayank-Vostro-460:~# which nodejs

/usr/bin/nodejs

root@mayank-Vostro-460:~# sudo ln -s /usr/bin/nodejs /usr/bin/node

root@mayank-Vostro-460:~# node -v

v0.10.25

root@mayank-Vostro-460:~# node http_server.js

Server running at http://127.0.0.1:3000/

in Chrome or Firefox broweser open ;;;

127.0.0.1:3000/

output:
Hello World...

So nodejs running.........


How can I install Ubuntu on my MacBook Pro without EFI interference? I have a late 2011 macbook pro, that I bought in early 2012. Is it possible to cleanly install ubuntu without the irritating EFI mac 'shell' surrounding the install, making the mac boot sound and generally slowing boot up time by 15-25 seconds?

To Avoid long EFI wait before GRUB
If your Macbook spends 30 seconds with "white screen" before GRUB shows, try booting from your Mac OS X install disc, select language, then click Utilities- Terminal, and enter:

bless --device /dev/disk0s1 --setBoot --legacy

Assuming that the bootloader is on sda1, otherwise /dev/disk0s2 if it's on sda2, etc.

Credit for answer to Alaukik in this post.

You can install Ubuntu but under virtualization platform live VMware or VirtualBox this is the easy way for try Ubuntu.

But, if you want to going to install Ubuntu as a whole system I think you have to disable EFI interference like installing Ubuntu with Windows 8 installed.


How to export stored password from seahorse Is there any way to export stored secrets from seahorse 3.8.2 (running on Ubuntu 13.10) (not public keys) in order to import them (directly or after a transformation) into a keepass2 database? I researched for some time now without a result (neither positive nor negative).

Answering to the Amias' request, due to Apacar's response...

In Seahorse interface, Passwords tab, click the right button on your Keychain folder (named <name>), click Change Password, enter your Old Password in the first field and leave the other fields empty and click OK button, then click the Use Unsafe Storage button. After that, the <name>.keyring file, in ~/.gnome2/keyrings or ~/.local/share/keyrings, will be decrypted.

Then, in order to keep your passwords more secure during transportation, you could make a compressed copy of the file (protected and encrypted by password, <name>.keyring.{7z,rar}) through the Compress option of the Nautilus context menu. And, after that, undo the password change of your Keychain.

you can remove the keyring password and will find a decrypted version of the keyring in ~/.local/share/keyrings/<name>.keyring

A simple Python script should be enough to convert the file to XML


How do I install only Chrome on a minimal installation? It's something like Chromium-OS, however even more minimal.

I was thinking, if it is possible at all???
That I use an Ubuntu 12.04 minimal, just to install the base OS, and then on top of it only the chromium browser, without any GUI like gnome, KDE, etc.

If this is not possible, then is it possible to browse the internet directly through the terminal which comes immediately after installing the base minimal OS. I don't want to install anything except for a GUI browser (not the text browser).

Just install Xorg, your graphic card driver, and Chrome. Then put Chrome in Xorg's startup script (.xinitrc). Though if you want something minimal like that you'd probably be more suited with Arch Linux, which is designed to let you build up your whole system from the ground (without too much effort).

Some command line web browsers are Links and Lynx.

I'm not sure, but this should be how to achieve it...

sudo apt-get install xorg chromium-browser
Install your graphic card driver. You can choose whether you want the open source or the proprietary one. If you can tell me what graphic card you have, I'll try to tell you which driver you need. The MESA driver should work with any card, if I'm not mistaken, but has terrible performance.
echo chromium-browser >> .xinitrc (Might be a different command. once again; I'm not sure.)
startx

You can browse the Internet via the apps lynx or curl.

sudo apt-get install curl or sudo apt-get install lynx.

curl|lynx www.askubuntu.com


18.04 Boot freezes at "Started Hold until boot process finishes up" boot reboot, FYI I'm not using ubuntu as dual I tried to install some updates and after that when I rebooted the laptop it runs some commands and at last shows "Started hold until boot process finishes up. " Ctrl+alt+f2 opens command line but there is no display whatsoever. I tried recovery mode and deleting some files but that is of no use as I already had enough memory. Please help thanks in advance.

From a shell via recovery mode, try this:
stat /

If the owner and group of / are anything other than root.root, then run:
echo "chown root.root / && sync && shutdown -r now" | sudo sh


Ubuntu 18.04 || Remote access - remote server display not supported I've been running anydesk and teamviewer on my headless ubuntu (18.04LTS) box for a while now (over 6 months) without issue. I had to set up an xorg.conf to allow things to run headless over anydesk or teamviewer. I've had an issue crop up in the last week where anydesk will display the error remote server display not supported and refuse to connect. If i plug the box into a screen, it will allow it to connect. I've seen others with the same issue being attributed to wayland, but when checking my desktop session is running in X11 so its not wayland.

Any idea where i should start?

This was very well answered at the following link, which worked for me: Anydesk remote server display not supported e.g Wayland

After installing Anydesk on my Ubuntu 18.04 server and trying to connect from a Mac, I would get a display_server_not_supported error. I was able to resolve this by going into the /etc/gdm3/custom.conf file and changing:
[daemon]
    # Enabling automatic login
    AutomaticLoginEnable=true
    AutomaticLogin=$USERNAME

After rebooting the Ubuntu server, Anydesk now connects and shows the login screen and I can login just
fine.


How do I get a Ralink RT2070 wireless USB stick to work? I put in the wireless LAN card into the usb port, being new to Ubuntu i'd expect something like Windows... Auto installing itself, but nothing happened.

With the card I have a disc for the wireless LAN card to install. Inside of the disc there is a folder called Linux. I'm assuming that that is how I install the driver.

Inside of that folder there are two more folders. One is which is for the driver.  Inside of that is a .tar.bz2 folder and inside of that is two more folders called Module and WPA supp.

I have no idea and I did tried to search. I found a little bit of stuff but I don't think I understand. Could someone please give me the exact instructions to install the driver/files for it?

I'm using Ubuntu 10.10 and the card is a RT2070 Ralink Lan USB 11B/G 54M Wireless card 802.11.

Pastebin of dmesg: http://pastebin.com/UrFY3NSR

Representative portion in case pastebin wipes this entry:

[  234.984025] hub 1-0:1.0: Cannot enable port 8.  Maybe the USB cable is bad?
[  234.984041] hub 1-0:1.0: unable to enumerate USB device on port 8
[  235.184037] hub 5-0:1.0: unable to enumerate USB device on port 2
[  235.744031] usb 5-2: new full speed USB device using uhci_hcd and address 8
[  235.864020] usb 5-2: device descriptor read/64, error -71

Ralink also has a page for support...
http://eng.ralinktech.com.tw/support.php?s=2

This is what the readme file says, but it is to complicated to understand, maybe someone can translate it so it'll be less complicated?

http://pastebin.com/hTFrhY2w

Here are all folders/file names that is in the folder for the wireless USB driver

http://pastebin.com/1y8uvyqY

Solved over on ubuntuforums.  Long and painful.  Does require compiling the driver if you do it exactly according to the forum directions here.

You need to extract the .tar.gz into a folder.  To do that you can right click on the file and choose extract.  Once the file is extracted, go into the folder, and look at the readme or install files.  Follow the instructions on how to install the driver.

In most cases, once you extract the file, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, navigate to the folder where the file got extracted, and run the commands below

sudo ./configure
sudo make
sudo make install

Where,

  ./configure will configure the software to ensure your system has the    necessary functionality and libraries to successfully compile
  the    package.
  make will compile all the source files into executable binaries.
  Finally, make install will install the binaries and any supporting    files into the appropriate locations.

Source:cyberciti


Help! Can't boot Windows 10 after installing Ubuntu 14.04 I'm quite new to Ubuntu and I'm facing this current issue.

So.. yesterday I installed Ubuntu 14.04 64bit via live USB formatted it everything reading this manual anyway the installation went all smooth, but when I tried to boot windows I could not see it in grub2.

The only options I had were:

Ubuntu
Advanced options for Ubuntu
efi/EFI/ubuntu/MokManager.efi
EFI/ubuntu/MokManager.efi sda7

I went ahead and also performed a boot-repair it gave me this printed summary below but also saying that I should "Make BIOS boot from sda7/EFI/ubuntu/shimx64.efi whatever that means. Below is the url summary.

Any kind of help would be much appreciated!!

http://paste.ubuntu.com/13297517/

Yep, gone...
Did you choose this option when installing ?

Well, you can't boot Windows 10 after installing Ubuntu 14.04, so ... What's the problem?

Jokes aside;) UEFI is a headhache. Perhaps you find some clues in this IMHO excellent AskUbuntu post.  -->
How can I dual-boot Windows 10 and Ubuntu on a UEFI HP notebook?


How to add Android Studio to the launcher? I'm trying to install Android Studio so that I can launch it from a launcher instead of via terminal.

Android Studio > Tools > Create Desktop Entry doesn't do anything

Can someone give specific instructions please?

I think this is something to do with the permissions in /usr/local/ I tried doing a chmod as explained in this article and it still didn't work.

I tried modifying the Android Studio launcher file that was in /usr/share/applications/ and it would not launch the app under my user. If I launch it as root it's fine, but that's not very practical.

Android Studio -> Tools -> Create Desktop Entry

Now, you should be able to see in your system menu:

For Android Studio 1.2+ the WM_CLASS is jetbrains-studio. So you have to add or change

StartupWMClass=jetbrains-studio

to your android-studio.desktop file.


Problem with `notify-send` I have been working in a script to change audio output when you (dis)connect am HDMI screen/TV. Basically it uses UDEV to check any change in the connection and acts accordingly.

Everything works fine except one thing: I can't use notify-send to warn about the change. I use the following code (output is just a wrapper to subprocess.check_output):

output("sudo -u {0} notify-send \"{1}\" \"{2}\"".format(user, title, message))

but I don get any notification at all.

What is really odd is that if I run hdmi_sound_toggle (as a normal user or with sudo) everything works just fine!

So what could be the problem here? There is any better way to present a notification than with notify-send?

The notify-send has trouble putting notifications on a user's screen when called from a script run by root or another user.

You should use:

output("export DISPLAY=:0; sudo -u {0} notify-send \"{1}\" \"{2}\"".format(user, title, message))

So, use:

export DISPLAY=:0

Normally a user is on display :0, but to be sure, you can find which display a user is on using who command as follow:

who | grep -m1 ^username.*\( | awk '{print $5}' | sed 's/[(|)]//g'

This worked for me in this script.

See also: Can I launch a graphical program on another user's desktop as root?

You can use pynotify instead of a shell command. It's quite simple and is installed by default in Ubuntu. A quick sample:

import pynotify

pynotify.init("Name")
n = pynotify.Notification("Name", "This is a notification")
n.show()


Volume control 'out of phase' with actual volume and Alsamixer I'm setting up a friend's HP Presario (quite old) laptop with Ubuntu 12.04 which used to work fine in 11.10. However, the volume is completely silent until it is turned up to about 3/4. Past this point, it makes giant leaps all the way up to 100% when volume is on full.

Alsamixer, however, shows this perfectly. The 'master' bar stays at zero until the normal   volume setting is past 3/4, so it's measuring actual volume perfectly. This suggests that it's a problem with Ubuntu's volume control.

EDIT - on the sound settings labelled volume slider (at the bottom), the volume seems to be zero at the 'unamplified' point (75% across the bar) and 100% at the '100%' point.

I have had the same problem. I fixed this by going to configuration settings -> sound -> output i chose headphone + amplifier, on the tab hardware i selected analoge output profile instead of analog stereo duplex. With these settings, it's less out of phase.


Unable to install Ubuntu on on Sony Vaio Y Series E-450 Hi guys I am not able to install Ubuntu 11.10/SUSE on my new Sony Vaio, All the Linux distributions get hanged on the Initial USB boot saying "Syslinux 4.04 EDD XYZ"

Can anyone suggest how can I proceed with the installation.

Configuation of system is as below:
AMD E450
6320 GPU
AMD VT Enabled
2GB RAM
320 GB HDD

I have tried 32 bit and AMD64 bit versions of Ubuntu.

thanks
Shakti

If the computer has an optical drive (CD/DVD drive) you can try burning a CD for it. Some computers can be touchy about USB booting still.

Had the same issue with mine.  You have to use the cd and then open the cd and click the option that has the ubuntu logo next to it, can't remember the name.  I couldn't get my Vaio to boot from the USB stick.  Warning:  you'll have problems with the wireless card.  Working on that right now.


Can't resize VM disk, 2nd disk partition blocking first? I have before me the following problem:
Filesystem                                                     Size  Used Avail Use% Mounted on
/dev/sda1                                                       28G   26G  240M 100% /

So, looking to expand this disk, I do the following:
$ sudo parted /dev/sda
GNU Parted 3.2
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Model: ATA QEMU HARDDISK (scsi)
Disk /dev/sda: 50.5GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start   End     Size    Type      File system     Flags
 1      1049kB  30.1GB  30.1GB  primary   ext4            boot
 2      30.1GB  40.0GB  9934MB  extended
 5      30.1GB  34.4GB  4293MB  logical   linux-swap(v1)

(parted) resizepart
Partition number? 1
Warning: Partition /dev/sda1 is being used. Are you sure you want to continue?
Yes/No? Yes
End?  [30.1GB]? 40GB
Error: Can't have overlapping partitions.

I was surprised to find Number 2 and 5, and also that number 2 appears to go to 40GB and number 5 starts at the same point and only goes to 34.4GB.
Someone must have tried this before me but also failed.
Also strange: /dev/sda2 exists but does not show up in the output of df -h.
I don't know what to do here. Do I need to merge sda1 and sda2 somehow? How would I even do that? What about that swap partition? Do I need to change it to start at the end of sda2? How do I do that?
Any help would be appreciated. I just want to get this system to be simple and orderly, easy to manage.

/dev/sda2 is an extended partition.  What this means is it's one large partition that within it can be placed multiple 'logical' partitions - in this case, /dev/sda2 is an extended partition that fills the rest of your disk after the first partition /dev/sda1, and within /dev/sda2 your swap partition exists as /dev/sda5.
To extend your /dev/sda1 you need to do the following first:

Disable your swap partition.  sudo swapoff /dev/sda5
Using gparted, shrink /dev/sda2 so it contains only /dev/sda5 and no free space.
Using gparted, move /dev/sda2 and /dev/sda5 together to the end of the disk.
Resize (grow) your /dev/sda1 after the previous tasks are completed.
Reenable your swap partition.  sudo swapon /dev/sda5`

Alternatively, you can do the following instead, which gets you more in line with what modern Ubuntu does (which is to use swapfiles instead of swap partitions):

Disable your swap partition.  sudo swapoff /dev/sda5

Delete both partition 5 and Partition 2 via parted

Grow your /dev/sda1 and its filesystem.

Use a swapfile instead of a swap partition, from within your single partition.
sudo fallocate -l 4GiB /swapfile
sudo swapon /swapfile

Once the swapfile is created, add this to /etc/fstab on the end of the line so that the swapfile is enabled automatically at boot time:
/swapfile    swap    swap    sw    0    0

You can use these two commands
sudo growpart /dev/sda
sudo resize2fs /dev/sda


Why is only 3.2GBs out of 5 showing up? I have 64Bit Ubuntu installed, and a MSI Graphics card.

Any ideas on why this might be happening?

Check in the motherboard BIOS for an option similar to "map around memory hole." Your motherboard's chipset may not support this option.

Older, especially laptop, chipsets (for example, the Intel 945p chipset) did not support true 64 bit memory addressing and had a ceiling of 4GB even in 64 bit mode. If that is the case with your system then this is a hardware limitation that can't be addressed without replacing the chipset (motherboard.)

You need to install pae kernel. This will allow usage of memory on a computer larger than 4GB

Most times you can install with:

sudo apt-get install linux-generic-pae

Once you restart you should see the correct memory size.


Dash to dock application drawer icons to big Hello I use dash to dock and the icons under the app drawer are huge.
I've attempted to modify them through the gnome shell css without any luck
nautilus slider doesn't change anything either. any help will be greatly appreciated.
Thanks in advance

You can change the icon size from the Dash to Dock settings. To achieve this, just look for Gnome Tweak Tools in the application, look at Extensions tab, and click on the small wheel beside the Dash to Dock extension. Adapt the icon size according to your needs.


Error when plugging iPod Touch into MacBook Whenever I plug my iPod Touch (2nd gen) into my MacBook running Ubuntu 10.10 I get the following error:

  DBus error org.freedesktop.DBus.Error.NoReply: Message did not receive a reply (timeout by message bus)

It will show up in the file browser but whenever I try to mount it I get that error.

EDIT: I thought that this might be because I had it plugged into a dock, but I tried plugging it in directly to the MacBook with the USB Cable and it still does not work, same error message.

sudo add-apt-repository ppa:pmcenery/ppa
sudo apt-get update
sudo apt-get dist-upgrade

i did it yesterday, and worked flawlessly for me (4.2.1 iOS)

Well, it seems that since I am running 4.2.1, it just isn't possible.


Unable to install Skype on 64bit Ubuntu Note: The legacy Skype for Linux application (v4.*) is now discontinued and was removed from Canonical’s partner repositories, so this question and its answers are obsolete. Please refer to a newer answer of our canonical Skype installation question.

I am receiving the following message while I am trying to install Skype:

nidhin@ubuntu:~$ sudo apt-get update
nidhin@ubuntu:~$ sudo apt-get install skype
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 skype : Depends: skype-bin but it is not installable
E: Unable to correct problems, you have held broken packages

How can I fix this?

12.10 and newer
I had that same issue and what helped was to enable the 32-bit architecture by doing this:
sudo dpkg --add-architecture i386
sudo apt-get update

then I was able to install skype via the Canonical Partner Repository:
sudo add-apt-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner"
sudo apt-get update && sudo apt-get install skype

Install Synaptic if you don't have it, Open it, then go to Edit > Fix Broken Packages. After that try to install Skype.


Is it possible to remove 'Contacts' from Gnome Shell? Whenever I search for a program in Gnome Shell's search panel, some contacts from Pidgin will appear. E.g. when I search for Chromium, by typing chr, Chris Andersen will appear.  I don't want this to happen. Is it possible to disable this function?

Go to: Settings | Search | Contacts | OFF

It is by default search handling technique in gnome , better way is to use synapse for search, it is very light and very fast, plus it provides filters to search. it will solve your problem,


Can I get some help with making Live USBs? I run 13.04 on this laptop and 12.04 on my netbook. I am trying to dual Boot with 13.04 and another distro, but all my Live USBs won't work. I have tried sudo dd if[ur.iso] of=/dev/sd(x), which isn't booting to the live USB but to my Ubuntu installation.

I have tried Unetbootin which gives me a black screens or "This is not a bootable device". I also have tried to do it on my netbook and re-downloading the .iso file. I have now also tried the live disk creator and I get up to the selecting install but it reads "Cannot Mount" in Ubuntu 13.04. I really want to do this and I am desperate for answers. Is there anything I can do?

Why don't you try the LinuxLive USB Creator:

  LinuxLive USB Creator is a free and open-source software for Windows. It will help you in your journey of discovery with Linux.

  For you, LiLi creates portable, bootable and virtualized USB stick running Linux.


cannot change screen size from 640x480 after 14.04 installation on VirtualBox OSX After installing Ubuntu 14.04 guest on VirtualBox running on a Max OSX host, I am stuck with 640x480 screen resolution. Adding guest additions again doesn't help. Previous Ubuntu installations are fine with bigger resolution. The 'Detect Displays' button on the 'Display Settings' Settings screen is not reachable, because 640x480 is too small. I could not find a /etc/X11/xorg.conf file to configure manually.

Independently of your installed version of VirtualBox you should install the latest version of the VirtualBox Guest Additions into your Ubuntu-Guest. You can get it from the Ubuntu-Software-Repository.

Startup your guest and hit Ctrl+Alt+T to open a terminal session. Type

sudo apt-get install virtualbox-guest-dkms

to install the latest package. Restart the VM and enjoy screen-size.

Just had exaclty the same problem with Ubuntu 14.04 on Windows 7 VirtualBox. I've updated to latest version of Virtualbox (4.3.10 r93012) and it now works correctly. Make sure to install the latest version of Guest Additions (v4.3.10 at the moment).


How to disable Zend Server CE auto start? I'm using Ubuntu 12.10 (Quantal Quetzal) and Zend Server CE 5.6. For some reason I want to try XAMPP, but Zend Server CE automatically start every time I boot up my laptop. Is there a way to stop it?

I don't want to uninstall Zend Server CE.

Zend Server CE installs a run script in /etc/init.d/zend-server (which is in fact a symlink to /usr/local/zend/bin/zendctl.sh).  The easiest way how to stop Zend Server CE from starting is to remove the symlink, e.g.:

rm /etc/init.d/zend-server

That way the original file will be kept on your system, but it will not run at startup.

[Edit]: If you want the service back just symlink it back:

ln -s /usr/local/zend/bin/zendctl.sh /etc/init.d/zend-server

This is happening because the OS is starting the default HTTP service when it boots.  Zend Server has a dependency on the Linux httpd service when it installs. So you'll have to configure httpd to not start automatically and start it manually when you want.


How can I specify the default save directory for gnome-screenshot? Are there any sort of configuration options for specifying the default save location for gnome-screenshot, or is this hard-coded into the source code?
It used to be ~/Desktop, which seems to have changed to ~/Pictures (in 12.04).
The only possible solution I've seen is about Setting the default name (as it includes time stamp information now instead of simply 'Screenshot#'), but that solution doesn't really seem ideal to me.
Also, this post suggested that the last save location is remembered the next time you take a screenshot, but in my experience, this doesn't seem to be the case. And in any case, following on from that, that entry in gconf-editor doesn't even seem to accurately reflect the last location, so more than likely an entry related to an older version of gnome-screenshot.
Table of contents:

For Ubuntu 17.10 and later
For Ubuntu 12.04

For 12.04
Via GUI

Install dconf-editor

From the command line, run the command sudo apt-get install dconf-editor

Or click here to install from the Ubuntu Software Center:

Press Alt + F2 and type dconf-editor

Go to org -> gnome -> gnome-screenshot

At "auto-save-directory" type the desired directory in the following format: file:///home/user/Desktop/

A tip for anyone who is using the configuration editor in unity: click on the arrow to the left the org text to expand it.
Via Terminal
Simply run this command, replacing the path with your preferred directory.
gsettings set org.gnome.gnome-screenshot auto-save-directory "file:///home/$USER/Downloads/"

For those who can't install dconf-editor and are terminal users, I would suggest to edit the .bashrc file in your home directory. Put anywhere in the file the line "mv ~/Pictures/Screenshot* ---put-here-desired-path---". The only problem with this method is that, in case you have a file starting with the string "Screenshot", it will be moved to the desired path you've put above.


How to correctly enable/test VA-API on Intel Sandy Bridge? I would like to know which package I have to install and how to test that is working fine?

I know there are many question similar but no one is complete and clear to me

libva-intel-vaapi-driver  vainfo

Then run vainfo to check if you see the entry points for some profiles:

[...]
vainfo: Supported profile and entrypoints
    VAProfileMPEG2Simple            : VAEntrypointVLD
    [...]

For all GStreamer-based video players, this package should be sufficient: gstreamer0.10-vaapi . If I'm correct most standard video players like Totem are GStreamer based.

VLC is a different story, but it's being built with the --enable-libva build flag in Ubuntu (as shown by the apt-get source vlc). This means it should just work by enabling it in the configuration:

Or, manually, on the command line:

vlc --ffmpeg-hw -v
[...]
libva: VA-API version 0.32.0
[0x7feeecc02a28] avcodec decoder: Using VA API version 0.32 for hardware decoding.

Just install vainfo and you are all set.
To install that open your terminal with CTRL + ALT + T

sudo apt-get install vainfo


system does not power off on "poweroff", just halts I've installed Xubuntu 15.04 on a Lenovo IdeaCentre A740 QHD with a Haswell CPU (BIOS revision 00KT19AUS) and NVIDIA GeForce GTX 850A 2GB. It's mostly working, except when I do a shutdown or reboot, it doesn't actually turn off the power after quitting everything:

So I have to click the power button to actually turn it off.

I've kept the Windows 8.1 installation in case there's any future firmware. Before installing Xubuntu, I turned off Fastboot from Windows, then installed Xubuntu. Unfortunately, the UEFI BIOS didn't let me change boot order so that Ubuntu actually started as default. I tried bcdedit /set {bootmgr} path \EFI\ubuntu\shimx64.efi, tried turning off "quickboot" (whatever that is) in BIOS, tried the Boot-Repair program from a Live Session, and tried turning off SecureBoot, but still it would just boot Windows. I ended up, with the help of EricC^^ of #ubuntu on freenode, just switching around the .efi files to trick the boot manager into thinking Ubuntu was Windows:

cp /boot/efi/efi/boot/bootx64.efi{,.backup}
cp /boot/efi/efi/microsoft/boot/bootmgfw.efi{,.backup}
cp /boot/efi/efi/ubuntu/grubx64.efi /boot/efi/efi/boot/bootx64.efi
cp /boot/efi/efi/ubuntu/grubx64.efi /boot/efi/efi/microsoft/boot/bootmgfw.efi
cp /boot/efi/efi/ubuntu/grubx64.efi /boot/efi/efi/microsoft/boot/grubx64.efi
sudo vim /usr/lib/os-probes/mounted/efi/20microsoft
# and changed bootmgfw.efi to bootmgfw.efi.backup
update-grub

I don't know if any of this has a bearing on the shutdown trouble.

EDIT: Come to think of it, the reboot from the Xubuntu installation (when I was booted through a USB drive) didn't work either.

What I've tried so far to get it to shut down:

acpi=off → no difference
acpi=force → no difference
install proprietary Nvidia drivers → that just made X not start with the message "bbswitch: No discrete VGA device found"
various variations on sudo poweroff, sudo shutdown now, sudo shutdown -h now etc.

Also, if I reboot instead of shutdown, I get this psychedelic lightshow on my monitor and have to long-click the power button to turn it off:

If it's helpful, here's a journalctl --all output right after booting up and perhaps even better: journalctl -b -1 (journal from bootup to shutdown).

Also, perhaps related, I notice now that pressing the power button while logged in to XFCE turns the computer right off, even though I have XFCE power settings to "Ask when power button pressed" and "Do nothing" on any other buttons.

My /etc/systemd/logind.conf has no uncommented lines apart from the [Login] header.

There is a /usr/sbin/acpid process running as root.

EDIT: More revelations: Ctrl+Alt+Delete actually reboot fine from GRUB.

EDIT2: I've filed a bug report since this doesn't seem fixable with the regular tricks.

EDIT3: Solved with acpi=noirq and kernel 4.4 and newer.

Try adding

acpi=noirq

to the kernel boot parameters. This lets it poweroff on shutdown/restart (tested with kernels 4.4 and 4.7rc5).

It seems to suspend too, but unfortunately does not resume from suspend on pressing the power button.

This has worked fine for over three months now on the A740, so I'm calling this solved.

Your hardware might not support software shutdown.  I've had that happen before, and the way to test is this:

sudo poweroff

If that does not shutdown the hardware, it's a hardware issue and not software.


Key server receive failed when installing through PPA I'm fairly new to Linux. I have Ubuntu, and now I want to install the Pantheon desktop, but as soon I run the command

sudo add-apt-repository ppa:elementary-os/daily

I get an error message saying:

gpg: keyserver receive failed: No keyserver available

I have tried looking up a solution to the problem online, but I couldn't find any solution that worked for me. How do I solve this problem?

Try the manual way,

Open terminal and open sources list:

sudo gedit /etc/apt/sources.list

Add the lines: Look your ubuntu version and change zesty to
yours.

deb http://ppa.launchpad.net/elementary-os/daily/ubuntu zesty main
deb-src http://ppa.launchpad.net/elementary-os/daily/ubuntu zesty main

Add key:

 sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4E1F8A59

Run command:

sudo apt-get update

Now you can install packages from this repo.

This is a template to add any repository from ppa.

I experienced the same issue. I am not behind a firewall, but need to use a HTTP proxy. It seems gpg does not honour these settings, at least not when invoked through add-apt-repository. So, the solution for me was to get on a network without need for a proxy; of course, that may not be possible for everybody.


ralink rt3290 driver module not launching and I can't figure out why I have an HP Envy 15 with the RT3290 from ralink. It had Win8 on it which I have completely removed and installed ubuntu 16.04 on it.

I have been trying to get the wireless to work and haven't been able to.

I have followed these two guides here:

How do I get a Ralink RT3290 wireless card working?

How do I get an RT3290 wireless card to work?

and have compiled the source, generated the module and it is installed. I also added the module in /etc/module file so it will launch at boot. lsmod shows it there:

:/usr/src$ lsmod | grep rt
rt3290sta            1155072  0

:/usr/src$ lspci
08:00.0 Network controller: Ralink corp. RT3290 Wireless 802.11n 1T/1R PCIe
08:00.1 Bluetooth: Ralink corp. RT3290 Bluetooth
..with -n
08:00.0 0280: 1814:3290
08:00.1 0d11: 1814:3298

but ifconfig still shows this:

rename6   Link encap:Ethernet  HWaddr 00:00:00:00:00:00
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:17

:/usr/src$ ifup rename6
Unknown interface rename6

:~/Downloads/RT3290_Linux_v2600$ iwpriv
virbr0-nic  no private ioctls.

rename6   Available private ioctls :
          set              (8BE2) : set 1024 char  & get   0
          connStatus       (0004) : set 1024 char  & get 2047 char
          driverVer        (0005) : set 1024 char  & get 2047 char
          bainfo           (0006) : set 1024 char  & get 2047 char
          descinfo         (0007) : set 1024 char  & get 2047 char
          radio_off        (000A) : set 1024 char  & get 2047 char
          radio_on         (000B) : set 1024 char  & get 2047 char
          show             (0015) : set 1024 char  & get 2047 char
          adhocEntry       (0016) : set 1024 char  & get 2047 char
          bbp              (8BE3) : set 2047 char  & get 2047 char
          mac              (8BE5) : set 1024 char  & get 1024 char
          rf               (8BF3) : set 2047 char  & get 2047 char
          e2p              (8BE7) : set 1024 char  & get 1024 char
          stat             (8BE9) : set   0       & get 2047 char
          get_site_survey  (8BED) : set   0       & get 1024 char

virbr0    no private ioctls.

eno1      no private ioctls.

lo        no private ioctls.

lspci -v output:

08:00.0 Network controller: Ralink corp. RT3290 Wireless 802.11n 1T/1R PCIe
    DeviceName: Ralink RT3290LE 802.11bgn 1x1 Wi-Fi and Bluetooth 4.0 Combo Ada
    Subsystem: Hewlett-Packard Company Ralink RT3290LE 802.11bgn 1x1 Wi-Fi and Bluetooth 4.0 Combo Adapter
    Flags: bus master, fast devsel, latency 0, IRQ 17
    Memory at 61510000 (32-bit, non-prefetchable) [size=64K]
    Capabilities: <access denied>
    Kernel driver in use: rt2860
    Kernel modules: rt2800pci, rt3290sta

The above lspci -v would seem to show that I have two kernel modules for this device, so I ran modprobe to remove rt2800pci and did lsmod to confirm it is gone. but when I ran lspci -v again it still shows.

I also searched for the kernel and rt3290sta.ko is present:

:/lib/modules/4.4.0-22-generic/kernel/drivers/net/wireless$ ls
adm8211.ko       ath           b43        hostap    libertas           mwifiex   ray_cs.ko      rt2x00        zd1201.ko
airo_cs.ko       atmel_cs.ko   b43legacy  ipw2x00   libertas_tf        mwl8k.ko  realtek        rt3290sta.ko

davy@davy-envy:/lib/modules/4.4.0-22-generic/kernel/drivers/net/wireless/rt2x00$ cat /etc/modprobe.d/blacklist-ralink.conf

#Wireless drivers conflicting with rt3290sta
blacklist rt2800pci
blacklist rt2x00pci
blacklist rt2860

I tried rebooting, and to search in /var/log/messages and dmesg, both files are empty, not messages. So I greped the whole /var/log folder for anything rt3290 but I got nothing.

So now I am out of ideas.

just found this post,
[LINK STRIPPED]
the driver file has u16 version for U16. install that and it works.
Edit: You can also reinstall Ubuntu 16 under the OEM mode, that seems to have mysteriously fixed the wifi module. --July 4th

The link that was here has since gone dead and is now linking fully to Malware.  The rest of the post's content has been left alone for historical reasons.  -- Moderator Team


Failed to Log in to Ubuntu Software Centre to Review Items I successfully Signed-Up to Ubuntu Software Center once, to Review an Item and I successfully Reviewed it. But later when I wanted to review an Item again and clicked on "Write Your Own Review" it is saying "Failed to Log in". I searched every where in Software Center to find a place to get Logged in and Couldn't find it. My question is Where can I Logged in ?. I'm Using Ubuntu 14.04LTS version.
Also I couldn't find Ubuntu Software Center in the "Passwords and Keys" window.

Try logging in by going to the toolbar at the top of the Ubuntu Software Center and clicking File > Reinstall Previous Purchases > and a a new Dialogue should open up to sign in.

Try Uninstalling and re-installing the software center.

First open terminal CTRL + ALT + T

and copy and paste the following

sudo apt-get --purge --reinstall install software-center

If this dont work I would recommend reporting a bug


How to use KDE global menu with Firefox? I would like Firefox to use the global menu on KDE Plasma 5.19 running on X11.

The widget set for both GTK and KDE is Breeze.
I am currently using Kubuntu 20.10, but also have machines running 18.04 and 20.04. Global menu does work on 18.04, but not 20.04 or 20.10.
Existing questions on the topic are outdated, mostly related to issues with appmenu on Unity.

The global menu has never worked for me with Firefox. The global menu does work with other applications that have menus.

GTK2: xournal
GTK3: geany, geeqie
KDE: Falkon, Konsole
Others: Google Chrome, LibreOffice

The following potentially relevant services are running:

Application menus daemon
GNOME/GTK Settings Synchronization Service

The following do not work:

plasma-browser-integration package and associated add-on.

xdg-desktop-portal-* packages.

Wayland. The global menu of GTK apps do not work in Wayland. Wayland also has too many other defects.

Restarting Firefox with a fresh profile.

Installing the following packages. Most of them were not necessary for other applications to use the global menu.
appmenu-gtk2-module appmenu-gtk3-module appmenu-gtk-module-common appmenu-registrar gir1.2-dbusmenu-glib-0.4 gir1.2-dbusmenu-gtk-0.4 gir1.2-dbusmenu-gtk3-0.4 indicator-appmenu indicator-appmenu-tools libappindicator1 libappindicator3-1 libappmenu-gtk2-parser0 libappmenu-gtk3-parser0 libdbusmenu-glib4 libdbusmenu-gtk3-4 libdbusmenu-gtk4 libdbusmenu-qt5-2 libdbusmenu-tools libindicator3-7 libindicator3-tools libindicator7

What needs to be done to get Firefox to use the global menus?

To use the global menu with Firefox currently requires a patch. Archisman Panigrahi explains:

Global menu used to work with Firefox in KDE Neon 18.04 (and probably Kubuntu 18.04 as well), because (as far as I know) Ubuntu developers used [to] patch it for compatibility with Unity (which also had global menu). As Unity was dropped, the patch was discontinued

Specifically, the patch exports the menu via dbus. Without it, Firefox does not export the menu, so other applications can't access it. No global menu.
The current options:

Use the method described in this answer to install the latest version of firefox from repository of Ubuntu 18.04. You don't need to use apt-mark or find updates manually (unlike the next bullet point) if you use this method.

In this method, you would receive firefox updates normally as you did before (at least, until 18.04 is supported).
Results

Find and use patched binaries. Firefox in 18.04 repositories continue to apply the menu patch. There are other patched and renamed versions of Firefox, but they should probably be avoided for various reasons. You can prevent the package from upgrading to an unpatched version with sudo apt-mark hold firefox.

Recompile the source with the patch. This is the "safest" option. A minimal development toolset can be installed to upload the source to launchpad.net for compilation and inclusion in a PPA.

Live without Firefox global menus, and hope they're eventually implemented upstream. (Is there anything in the menu that you really need?)

See also:

Get HUD & Global Menu working with Firefox
Firefox bugzilla search: global menu

Partial success on my side (and it was running on 20.04 until upgrading):
Based on https://forum.manjaro.org/t/howto-enabling-kde-global-menu-support-in-mozilla-firefox-and-thunderbird/7405 I created /etc/profile.d/mozilla-common.sh:
export MOZ_PLUGIN_PATH="/usr/lib/mozilla/plugins"
export GTK_USE_PORTAL=1

Starting Firefox will show the global menu. Switching to another window and back to Firefox and the global menu is gone.


Why can't my non admin users use mlocate command? I have a node.js software agent running on 14.04 not able to run many of his bash scripts on a new server. The problem I seem to have is the limited user returns nothing from the locate or mlocate command.

I need to figure out why this command works under my admin user but not under the agent's username.

admin@host ~ $ locate 6831-7
/home/example/6831-7.txt
/home/example/6831-7.pdf
/home/example/6831-7.psd

admin@host ~ $ sudo login limited
Password:
limited@host ~ $ locate 6831-7

#it returns nothing

Nothing is returned to stdout, which is the problem I have with my scripts. What would cause this program to not return under this limited user?

Even though I added the user to the group, only this seemed to do the trick. I edited the permissions for the database with the following command:

sudo chmod o+r /var/lib/mlocate/mlocate.db

Provided that the database is located in /var/lib, this adds world read permissions to the database. The limited user was instantly able to return locate to stdout like normal.

Edit: The problem with this solution is that updatedb returns the world permissions to 0. So this is only a temporary solution.

There is a bug report on this problem:

Unable to use 'locate' to locate files mlocate.db permission denied

I didn't follow any of the suggestions there because I know how I had broken my system by using chown to $USER on / instead of /tmp/$USER/ recursively. It took a day to rebuild my system to boot. locate command is one of the left over things to fix.
Because my system is over-powered and under-utilized, I already have sudo updatedb running every 15 minutes via cron. So I just modified it to reset permissions.
Before change:
$ sudo ll /var/lib/mlocate/mlocate.db

-rw-r----- 1 root mlocate 110953861 Jun 29 20:02 /var/lib/mlocate/mlocate.db

Here's tail end of changes to crontab -e and what permissions look like:
# m h  dom mon dow   command
0   0   1   *   *     /bin/journalctl --vacuum-size=200M
*/15 *  *   *   *     nice updatedb && chmod o+r /var/lib/mlocate/mlocate.db
0  20   *   *   *     /sbin/fstrim /

$ while : ; do ll /var/lib/mlocate/mlocate.db ; sleep 5m ; done

-rw-r----- 1 root mlocate 110953861 Jun 29 20:02 /var/lib/mlocate/mlocate.db
-rw-r----- 1 root mlocate 110953861 Jun 29 20:02 /var/lib/mlocate/mlocate.db
-rw-r--r-- 1 root mlocate 110954083 Jun 29 20:15 /var/lib/mlocate/mlocate.db
-rw-r--r-- 1 root mlocate 110954083 Jun 29 20:15 /var/lib/mlocate/mlocate.db
-rw-r--r-- 1 root mlocate 110954083 Jun 29 20:15 /var/lib/mlocate/mlocate.db
-rw-r--r-- 1 root mlocate 110959759 Jun 29 20:30 /var/lib/mlocate/mlocate.db
-rw-r--r-- 1 root mlocate 110959759 Jun 29 20:30 /var/lib/mlocate/mlocate.db

This is just a band-aid until the root cause (pun noted) is found.


How can I have xfce automatically adjust to changing available outputs? In xfce, I can run Settings -> Display to change my preferred output monitor. What I haven't found an option for is to have it automatically adjust to a change in available outputs.

For example, if I'm using a DVI display, but undock my laptop, XFCE will not automatically realize that I no longer have a working display and change the output. Gnome did do this, though I'm not sure through what service. I'd like to have some way of making sure I always have at least one working output automatically.

SIDE NOTE: This is related to another question of mine, If I just use a window manager and not a desktop environment, how do I get automatic dock/undock resolution updates?, but is for xfce, not any generic window manager.

$ xrandr --auto

From xrandr man page:

--auto: For connected but disabled outputs, this  will  enable  them  using their  preferred mode (or, something close to 96dpi if they have no preferred mode). For disconnected but enabled  outputs,  this  will disable them.

There is no such option since the technology behind desktop agnostic hardware event detection (udev) is rather new for a hobbyist project like xfce.

You might get some good results digging into D-Bus and udev. Have a look at udev not running remove events for starters.


Why does a Ubuntu guest in VirtualBox run very, very slowly? I'm using currently Ubuntu 12.04 LTS as a host machine, and I've virtualized three machines:

a Xubuntu 12.04 guest
a Windows 7 guest
a Ubuntu 12.10 guest

All the guests have the same VirtualBox default settings, but Ubuntu 12.10 is slower!

The installation took 1h 40 min! (Normally, it takes 40 minutes.) Now it is impossible to use it, and all operations are very, very slow.

I'm using VirtualBox version 4.2.4.

Any ideas?

Why is it slow? And how can I make it faster?

Ubuntu 12.10 no longer includes Unity 2D, which was implemented for platforms that can't provide 3D acceleration. Instead, Ubuntu 12.10 has Unity run under LLVM, making code intended for the GPU run on the CPU. It is much slower than using the GPU.

To check if your Ubuntu 12.10 guest is using 3D acceleration, run this command:

$ /usr/lib/nux/unity_support_test -p
Not software rendered:    no
Not blacklisted:          yes
GLX fbconfig:             yes
GLX texture from pixmap:  yes
GL npot or rect textures: yes
GL vertex program:        yes
GL fragment program:      yes
GL vertex buffer object:  yes
GL framebuffer object:    yes
GL version is 1.4+:       yes

Unity 3D supported:       no

As you can see, "Not software rendered" and "Unity 3D supported" both return "no" in this example, which means Unity is using slow LLVMpipe.

How to enable 3D acceleration (VirtualBox 4.2.x only)

These instructions are intended for VirtualBox 4.2.4 or 4.2.6, installed from VirtualBox's website, not from Ubuntu's repo. Future versions of VirtualBox may fix this problem automatically, or may need a different workaround.

Install VirtualBox Oracle VM VirtualBox Extension Pack.
Create a VirtualBox instance and install Ubuntu 12.10 on it.
Install some required packages for the guest additions:

sudo apt-get install linux-headers-$(uname -r) build-essential

Install the guest additions by clicking Devices, Install Guest Additions and running this command from the CD-ROM's directory:

sudo ./VBoxLinuxAdditions.run

Add the vboxvideo driver to the instance by running:

sudo bash -c 'echo vboxvideo >> /etc/modules'

Shutdown the VirtualBox instance.
Open the settings of the Virtualbox instance, navigate to "Display", and tick "Enable 3D acceleration".
Boot your Ubuntu 12.10 guest, and check that 3D acceleration is working by running:

/usr/lib/nux/unity_support_test -p

If windows seem to disppear, install CompizConfig Settings Manager and disable Framebuffer Object (FBO) in the OpenGL section:

Install the CompizConfig Settings Manager:

sudo apt-get install compizconfig-settings-manager

Run the CompizConfig Settings Manager:

ccsm

Select the OpenGL section and then untick the Framebuffer Object option. If this fixes the issue it should be immediately visible. No reboot is required.

for me what simply worked was Enabling 3D Acceleration in virtual machine display settings


Netbeans - Starting of Tomcat failed I am trying to run Tomcat 7 from Netbeans 8.1 but getting the following output
on the server console.

    java.util.logging.ErrorManager: 4: Unable to create [/usr/share/tomcat7/logs]
java.util.logging.ErrorManager: 4: Unable to create [/usr/share/tomcat7/logs]
May 20, 2016 8:34:47 AM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/usr/share/tomcat7/common/classes], exists: [false], isDirectory: [false], canRead: [false]
May 20, 2016 8:34:47 AM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/usr/share/tomcat7/common], exists: [false], isDirectory: [false], canRead: [false]
May 20, 2016 8:34:47 AM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/usr/share/tomcat7/server/classes], exists: [false], isDirectory: [false], canRead: [false]
May 20, 2016 8:34:47 AM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/usr/share/tomcat7/server], exists: [false], isDirectory: [false], canRead: [false]
May 20, 2016 8:34:47 AM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/usr/share/tomcat7/shared/classes], exists: [false], isDirectory: [false], canRead: [false]
May 20, 2016 8:34:47 AM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/usr/share/tomcat7/shared], exists: [false], isDirectory: [false], canRead: [false]
java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina
    at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:210)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)

What could be wrong?

You must have configured NetBeans to use the system tomcat instance which fails because NetBeans doesn't and shouldn't have permissions to write to /usr/share/... (i.e. don't do what you've been told in (the) other answer(s)).

Instead configure NetBeans to use a tomcat instance in your home directory, e.g. by downloading a zip from their download site, extracting it and let NetBeans find it in the corresponding server setup (suppose you're looking for a Java Web server).

You have to try chown -R /usr/share/tomcat7/logs to get the current userID(have access to create the logs directory in tomcat7. It seems the userID that you are using to start NetBeans doesn't have that permission.


Can I use the Ubuntu logo on t-shirts produced non-comercially? Possible Duplicate:
  Is it possible to create Ubuntu Shirts ( Merchandise )

Is it permited to use(print) Ubuntu logo on a "Ubuntu users group" T-shirt which is not sold public but to the group members ?

(I read this question.)

Your usage will be fine. Per the Trademark & copyright policy.

  Ubuntu is built by and largely for its community. We share access to
  the Trademarks with the entire community for the purposes of
  discussion, development and advocacy. We recognise that most of the
  open source discussion and development areas are for non-commercial
  purposes. We therefore allow the use of the Trademarks in this
  context, provided the Trademark is used in a manner consistent with
  the guidelines below:

  there is no commercial intent behind the use
  what you are referring to is in fact Ubuntu. If someone is confused into thinking that what isn't Ubuntu is in fact Ubuntu, you are
  probably doing something wrong
  there is no suggestion (through words or appearance) that your project is approved, sponsored, or affiliated with Ubuntu or its
  related projects unless it actually has been approved by and is
  accountable to the Ubuntu Community Council

You can use the Ubuntu logo freely, as long as it isn't used to create a bad brand identity.

Use the Ubuntu Brand Guidelines as a guide - though make sure you don't misuse the logo as pointed out in the 'Incorrect Use' section.

Source: Ubuntu Brand Guidelines.


What is the difference between "chmod +x" and "chmod 755"? When it comes to making a file executable what is the difference between chmod 755 and chmod +x and when would I use which? I so far have only used chmod +x and I just read something and it used chmod 755 and I could not tell whether or not it was better to use chmod 755 or chmod +x.

Short version:

To be able to compare them, we should look at them from the same perspective, so:

chmod +x is equal to chmod ugo+x (Based on umask value)
chmod 755 is equal to chmod u=rwx,go=rx

Explanation:

Firstly you should know that:

+ means add this permission to the other permissions that the file already has.
= means ignore all permissions, set them exactly as I provide.

So all of the "read, write, execute, sticky bit, suid and guid" will be ignored and only the ones provided will be set.

read = 4, write = 2, execute = 1

Here is the binary logic behind it (if you're interested):

Symbolic:  r-- -w- --x  |  421
Binary:    100 010 001  |  -------
Decimal:    4   2   1   |  000 = 0
                        |  001 = 1
Symbolic:  rwx r-x r-x  |  010 = 2
Binary:    111 101 101  |  011 = 3
Decimal:    7   5   5   |  100 = 4
           /   /   /    |  101 = 5
Owner  ---/   /   /     |  110 = 6
Group  ------/   /      |  111 = 7
Others ---------/       |  Binary to Octal chart

Using +x you are telling to add (+) the executable bit (x) to the owner, group and others.

it's equal to ugo+x or u+x,g+x,o+x
When you don't specify which one of the owner, group or others is your target, in case of x it will considers all of them. And as @Rinzwind pointed out, it's based on umask value, it adds the bit to the ones umask allows. remember if you specify the target like o+r then umask doesn't have any effect anymore.
It doesn't touch the other mods (permissions).
You could also use u+x to only add executable bit to the owner.

Using 755 you are specifying:

7 --> u=rwx (4+2+1 for owner)
5 --> g=rx (4+1 for group)
5 --> o=rx (4+1 for others)

So chmod 755 is like: chmod u=rwx,g=rx,o=rx or chmod u=rwx,go=rx.

In addition to these beautiful answers I want to mention a small but probably important difference. The command chmod 755 file is equivalent to chmod 0755 file. If we run this command on a file which has the SETUID-bit or SETGID-bit set, it will remove the SETUID/SETGID-bit. chmod +x file will leave the SETUID/SETGID-bit untouched. We can see this in the following example:

~$ touch test
~$ chmod u+s test
~$ ll test
-rwSrw-r-- 1 mook mook 0 Sep 14 00:49 test
~$ chmod +x test
~$ ll test
-rwsrwxr-x 1 mook mook 0 Sep 14 00:49 test
~$ chmod 755 test
~$ ll test
-rwxr-xr-x 1 mook mook 0 Sep 14 00:49 test


hadoop fs command is not working in my system I installed a single cluster node on my personal laptop. It has successfully installed and jps is displaying all 5 demons, but when I try to enter into on top of hdfs by using hadoop fs command it shows "command not found".

Can anyone explain what is the problem and what we have to do to run hdfs commands?

go to the hadoop installation directory

and type

bin/hadoop fs -ls /

it will return with the directories and files available on the HDFS

The following command may be needed:

sudo su hduser

then

hadoop fs -ls /


Poor battery life UX32VD Ubuntu 14.04 with optimus 4000/620m I'm running Ubuntu 14.04 ux32vd laptop and am getting only 2 hours of battery life where as on my Windows partition I get 6. I'm using a zenbook ux32vd with Intel 4000/nvidia 620m. I have the nvidia-331 / nvidia-prime 0.5 driver installed.

I tried installing tlp and still have terrible battery life (no noticeable improvement).

Is there a way to check if the nvidia card is still running in the background?
In nvidia-settings I have it specified to use Intel graphics, but I'm wondering what is killing the battery?

I have the lighting down to 30%. I'm running the flux 2013 script and default applications, along with chrome. Thanks!

You need to install Bumblebee to turn off the Discrete graphics card. Follow this link https://wiki.ubuntu.com/Bumblebee. Also see https://help.ubuntu.com/community/AsusZenbookPrime for kernel parameters to improve battery life. I am getting 5 hours with Ubuntu 13.10.

I don't assume that your issue is the still running Nvidia Card (while I still believe bumblebee was more effective in switching it off compared to prime). I had a similar battery life. Then I did some optimzation by using the information from powertop to configure pm-utils.

And now I have 4:20 battery life time.


How to grep for tabs without using literal tabs and why does \t not work? When I search for tabs in a file with (e)grep I use the litteral tab (^v + <tab>). I can not utilize \t as a replacement for tabs in regular expressions. With e.g. sed this expression works very well.

So is there any possibility to use a non-litteral replacement for <tab> and what are the backgrounds for a non working / not interpreted \t ?

grep is using regular expressions as defined by POSIX. For whatever reasons POSIX have not defined \t as tab.

You have several alternatives:

tell grep to use the regular expressions as defined by perl (perl has \t as tab):

grep -P "\t" foo.txt

the man page warns that this is an "experimental" feature. at least \t seems to work fine. but more advanced perl regex features may not.
use printf to print a tab character for you:

grep "$(printf '\t')" foo.txt

use the literal tab character:

grep "^V<tab>" foo.txt

that is: type grep ", then press ctrl+v, then press tab, then type " foo.txt. pressing ctrl+v in the terminal causes the next key to be taken verbatim. that means the terminal will insert a tab character instead of triggering some function bound to the tab key.
use the ansi c quoting feature of bash:

grep $'\t' foo.txt

this does not work in all shells.
use awk:

awk '/\t/'

use sed:

sed -n '/\t/p'

See the wikipedia article about regular expressions for an overview of the defined character classes in POSIX and other systems.

awk '/\t/' is my favorite workaround:

printf 'a\t\nb' | awk '/\t/'

Output: a\t.


Sound problem in ubuntu 16.04 (on wake up and suspend/resume) For some reason when I wake my laptop up, there is no sound. No matter what I try through the terminal, or by playing with the volume controls, no audio. I can only get audio working again by a restart.
And when I suspend, and resume, the same issue occurred, no audio.
Does anybody know why, and/or how to fix?

Use Pulse Audio Volume Control (pavucontrol).  It has more control options over the default Sound app.

You can install it with this command:

$ sudo apt install pavucontrol

Run it from the Search button of Ubuntu Launcher by typing volume.

From the Pulse Audio Volume Control app click on the Configuration tab.  Select your preferred profile.  Depending on how many devices you have available, the best one would most likely be one of the Built-in Audio profile options.

In my case, Analog Stereo Output (unplugged) profile always work.

After making this setting, going back to the default Sound app and clicking on the closest match (which again has the words Built-in Audio included in the description, will bring the sound back.

The only time this has failed to bring back the sound for me was on a few occasions where my external sound system was either physically disconnected or turned down.

I know the latter isn't your case, because rebooting has brought your sound back.


Can't paste items into directory if it is made by another user I can't add documents to directories made by other users of my samba file server.  Say I'm user1, and there is another person user2.  If user2 makes a folder, and I (user1) try to add something to it, it says you don't have permission, but user2 can drop all the stuff he wants into it.  What am I doing wrong?

Thats the dealing with the permission the user2 set. The folder was created by user2 so the rightful owner of that folder is user2 only.unless he gave the permissions to you , you can not view that.

how can you access it ??

well you can access that in two ways.

If you are the root /admin user then you can directly access the folder by using your root power.
ask him for the permissions.

There are no other ways legally.

Update

OP as you mentioned , If something there to deal with SAMBA , then you must look over /etc/samba/smb.conf

for example:

[music]
path = /home/shared/music

for that shared file If you made the permissions as

read only = Yes  # only read only
create mask = 0775  # this is the mask value as root can do anything , but users and others can read and execute can not write.
writeable = Yes  # giving write permissions.

So everything to deal with sharing will be at samba configuration file. The path already gave you.

It turns out I needed a force create mode = 0777 setting in my smb.conf along with a force directory mode = 0777.

It works just fine now.