Where Can I Find a Novell NetWare Client for Ubuntu? I am trying to build a custom version of Ubuntu for my school and they seem to be using the Novell NetWare software (for Windows) so students can log-in to their accounts. I have tried using WebDav for the NetStorage server but that was unsuccessful. I have also tried a program called Novell Client for Linux but, it didn't fully support Ubuntu, it was butt ugly, the latest release was made in 2004.

If you guys could help me out on this I would greatly appreciate it.

It is possible to access NetStorage through WebDav in Ubuntu. You need to install the fusedav package and run something along the lines of:

fusedav -D -u username -p password_here http://server.com/oneNet/NetStorage /home/greg/netstorage

This isn't quite perfect, it occasionally goes a little buggy on me, but works for the most part. You might be interested to know I started a bug about not being able to connect in Nautilus to NetStorage.

You may also be interested to know about ncpfs (see below & Google it), though I haven't used it myself.

  ncpfs allows you to mount volumes of NetWare servers under Linux and to print to NetWare print queues and spool NetWare print queues to the Linux printing system.

If it allows mounting by webdav i would try to install davfs2-package and mount directly from Places->Connect to server... -> And from type choose WebDav.

If you put bookmark on it it stays on Placec bar on nautilus (file browser) so you can easily mount it again when need.


Can a Windows virus transfer to Ubuntu? Before I removed Windows 7 from my computer and replaced it with Ubuntu, I had over 257 threats that never would go away. I don't know if the trojan horse I had also could transfer over to Ubuntu. Can my computer be infected? I'm trying to be very careful when I use my computer, because I don't want to get a new computer.

I've only had Windows 7 and my PC, for only a few years. First, I took it to Best Buy and they said a trojan horse is supposed to be on the computer. The man only "looked" at it and since he put it in factory settings, it hid and stole my PC twice in a row. Then, I took it somewhere to someone I know and they re-built it. But it had tons of issues again.

My anti-virus and my programs and other files were disappearing right before my eyes. My Wi-Fi was turned off, and I couldn’t turn it back on. It even shut down by itself. And it never did that before.

Will my infections from Windows 7 transfer over to Ubuntu? Just remember I don't have windows 7 any more, I only have Ubuntu.

Your operating system is neither the first code that executes on your computer, nor is it the code with the highest level of access. Malware loaded into the bootstrap code (including BIOS, video BIOS, RAID BIOS, NIC BIOS, UEFI, UEFI modules) not only will not be erased by installation of a new OS, it can hide itself from detection by the OS (although not perfectly, it will slow things down1 and timing analysis may be able to detect that).

Only a small fraction of all malware operates at this level, but multiple cases have been documented. Here are just a few examples:

New BIOS Virus Withstands HDD Wipes
Blue Pill is the codename for a rootkit based on x86 virtualization
Rootkit Detection Framework for UEFIWay Back Machine "UEFI has recently become a very public target for rootkits and malware. Last year at Black Hat 2012, Snare’s insightful talk highlighted the real and very significant potential for developing UEFI rootkits that are very difficult, if not impossible, to detect and/or eradicate. Since then, a couple of practical bootkits have appeared."

Also, Stack Exchange site Information Security has several relevant questions:

How to detect a virus in a network card?
Viruses on video cards?

To be pedantic, these wouldn't be called "Windows viruses", although they may be carried inside Windows malware which served as the infection vector.  And they wouldn't be said to "transfer to Ubuntu".  My point is that if you had asked the right question, which I feel is "After formatting my Windows partition and installing Ubuntu, might I continue to be affected by malware?", you would learn that the unfortunate answer is "Yes that is possible."

1 But malware that infects a coprocessor, such as the Intel Management Engine which has recently come to mainstream attention due to a critical vulnerability in the way Intel does remote authentication would not spend processor cycles.  At best it might cause some timing variances due to bus and memory contention.  Malware that infects a management subsystem is basically a worst-nightmare scenario, for both detection and removal.

A windows thread almost never infects Linux. However a thread can survive usually these ways:

By having 2 partitions in which on the one infected windows are in

This is the way that most times make Linux users regret for using Linux. If you boot into windows with Linux installed on another partition the thread goes in the Linux partition and destroys files, programs and sometimes the Linux system. However if you do not boot into windows this problem will not appear in Linux

By keeping old infected files from windows and having WINE installed on Linux

WINE, which is a compatibility layer for running windows programs on windows (wine Is Not Emulator), usually can't run windows threads and wine crashes in such situations, however sometimes it can, and the thread might be more harmful than in windows. And that's because, again, Wine Is Not an Emulator it can harm sometimes your system.

SOLUTION

Install ClamAV and its graphical frontend, ClamTK, an antivirus for linux wich can't be destroyed by a windows thread. ClamAV can scan your files for infections (even for the "windowish" ones) and most times repair them. It is very easy to install them. simply run:

$ sudo add-apt-repository ppa:ubuntu-clamav/ppa
 $ sudo apt-get update
 $ sudo apt-get install clamav gdebi
 $ wget https://bitbucket.org/dave_theunsub/clamtk/downloads/clamtk_5.09-1_all.deb
 $ sudo gdebi clamtk_5.09-1_all.deb

and if you wand to remove them:

$ sudo apt-get remove clamav* clamtk*


Digital Surround (HDMI) Output I recently built a HTPC and installed Ubuntu 12.10 on it.  It's a Shuttle XH61V with an onboard HDMI connection that I'm using to connect to the TV, which in turn connects to the speaker system (5.1).

I've tried everything I can find on this site and through Google but to no avail.  I've even tried installing Ubuntu 13.04, but that seems to present the exact same problem.

pavucontrol only shows "Digital Stereo (HDMI) Output" but no surround.  Running speaker-test -c 6 seems to play to all speakers at once for the front speakers, quieter for the back speakers and not at all for LFE.

Since it's running through HDMI, I don't know if the fact that I'm using Intel HD graphics 4000 comes into play or not.

Here's my output for aplay -L:

**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC662 rev1 Analog [ALC662 rev1 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC662 rev1 Digital [ALC662 rev1 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 0/1
  Subdevice #0: subdevice #0

Does anyone have any suggestions?  I would be greatly appreciative of any help.

Thank you in advance!

Open Sound Settings (Volume Controle), click the speaker icone - bottom of list]1
On the last tab Configuration change profile for High Definition Controller,
and choose the HDMI setting you want!
Then it will be available for selecting in the Output Device tab.
Happy Ubunting.

I had this problem as well, and it was fixed around ubutnu 15.10.  Using the most recent version might work, and you could try this with a 16.04 live CD.  Many hardware issues are fixed on more recent version.


How can I set up password-less SSH login? I want to be able to login to a remote via ssh without having to enter the password all the time.

How do I set it up?
Is a different command required to execute a password-less session?

Answer

Execute this commands:

ssh-keygen

Then you'll need to copy the new key to your server:

ssh-copy-id user@host
## or if your server uses custom port no:
ssh-copy-id "user@host -p 1234"

After the key is copied, ssh into the machine as normal:

ssh user@host

You can now login without entering a password from the particular machine you executed the commands at.

Example

not-marco@rinzwind-desktop:~$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/not-marco/.ssh/id_rsa):
Created directory '/home/not-marco/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/not-marco/.ssh/id_rsa.
Your public key has been saved in /home/not-marco/.ssh/id_rsa.pub.
The key fingerprint is:
b1:25:04:21:1a:38:73:38:3c:e9:e4:5b:81:e9:ac:0f not-marco@rinzwind-desktop
The key's randomart image is:
+--[ RSA 2048]----+
|.o= . oo.        |
|*B.+ . .         |
|*=o .   o .      |
| = .     =       |
|. o     S        |
|E.               |
| o               |
|  .              |
|                 |
+-----------------+

not-marco@rinzwind-desktop:~$ ssh-copy-id not-marco@server
not-marco@server's password:
Now try logging into the machine, with "ssh 'not-marco@server'", and check in:

  ~/.ssh/authorized_keys

to make sure we haven't added extra keys that you weren't expecting.

Explanation

This assumes you already can successfully connect to your server via SSH.

You'll need to generate an SSH Keypair which will allow you to identify you as yourself without using a password. You can opt to protect keys with a passcode if you wish, but this can be left blank allowing totally password-less SSH access.

First create your SSH Keypair by running ssh-keygen this will create an id_rsa and id_rsa.pub file. The pub file is what goes on the servers, the private key (id_rsa) is what stays with you and is how you identify yourself.
Next copy the public key to your server with ssh-copy-id user@server replacing user with your remote user and server with the machine DNS name or IP address. It'll prompt for your SSH password, enter it and if all completes successfully you'll be able to access the machine via ssh user@server without needing a password.

References

https://help.ubuntu.com/community/SSH/OpenSSH/Keys

I'd like to add an answer for those who may find they should enter the password even they have read all answers here because you have set IdentitiesOnly as yes. And the answer here can save you much time to manage multiple keys, being keys for git or server.

After I have generated the key and copied it to the server:

ssh-keygen  # change the file to /home/yourname/.ssh/something
ssh-copy-id -i ~/.ssh/something.pub lerner@192.168.20.160

I found it didn't work.

Then I went to check the ~/.ssh/config file on the client, I saw this at the bottom:

Host *
IdentitiesOnly yes

Then I add this above:

Host somename
HostName 192.168.20.160
User lerner
IdentityFile ~/.ssh/something

I can just log in by entering ssh somename.

Then you can add multiple ssh keys using your favorite names, and you only need to add the settings like the above four lines to the config file.

Host is the name you'd like to enter when you connect the server later; the HostName is the server's ip; User is the user name you log in the server; and the identityfile is the file where you store the key you have generated.


Can't find httpd.conf I have installed Ubuntu 14.04 on a laptop and installed apache 2 (version  2.4.7) and PHP 5.

I cannot find httpd.conf. I need to change it because when I try to open a .php page I see a download box.

How should I proceed?

Ubuntu doesn't use httpd.conf as standard, instead global configuration stuff for apache is found in /etc/apache2/apache2.conf. You can create a httpd.conf in the apache2 directory, and load any further configuration from it by including the following line in /etc/apache2/apache2.conf.

Include /etc/apache2/httpd.conf

You don't need that file to configure apache, but you can create it if other software relies on it being there.

httpd.conf will be in /etc/apache2/.
/etc/apache2$ ls
apache2.conf  envvars     mods-available  ports.conf       sites-enabled
conf.d        httpd.conf  mods-enabled    sites-available
:/etc/apache2$ more httpd.conf
:/etc/apache2$

I need to change it

No, you do not. The documentation states:

httpd.conf: historically the main Apache2 configuration file, named after the httpd daemon. Now the file does not exist. In older versions of Ubuntu the file might be present, but empty, as all configuration options have been moved to the below referenced directories.
because when I try to open a .php page I see a download box

How would changing httpd.conf fix that?
If you need config settings changed I would assume you need to alter apache2.conf or  the virtual host in /etc/apache2/sites-enabled/.


Energy management Ubuntu I don't have a problem with ubuntu, everything is working fine, but I'm wondering if it can be more power-efficient.
For now I have installed tlp, powertop, and cpu-frequency-scaling-indicator. When all are set in power saving mode my laptop runs for about 2-2,2 hours. That's not bad (windows 7 isn't much better), but according to powertop and Power Statistics energy consumption is pretty high, 20-23 Watts.
Here comes my question. Can I do something more to decrease energy consumption? Or is this a normal consumption?
I'm using Sony-Vaio notebook with Intel i5 cpu and nVidia 310m gpu, system: ubuntu 15.10.
Thank you for help.

EDIT

Output for   "sudo prime-select intel":

Info: the current alternatives in use are: ['nvidia-340', 'nvidia-340']
Info: selecting nvidia-340-prime for the intel profile
update-alternatives: using /usr/lib/nvidia-340-prime/ld.so.conf to provide /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf (x86_64-linux-gnu_gl_conf) in manual mode
update-alternatives: using /usr/lib/nvidia-340-prime/alt_ld.so.conf to provide /etc/ld.so.conf.d/i386-linux-gnu_GL.conf (i386-linux-gnu_gl_conf) in manual mode

I'm sorry, I do not really get how text formatting works here.

It looks like your Nvidia adapter is always in use.

Install nvidia-340 driver.

sudo apt-get install nvidia-340 nvidia-prime

Reboot.
Select the Intel adapter

sudo prime-select intel

If it does not work make sure that the Intel adapter is not disabled in bios.

Hardware wise buy a SSD drive.  A laptop that normally gets 2 hrs can get about 2 - 3 hrs with an SSD drive.  Actually most new laptops are reported to run with 4 to 8 hrs of battery life.  I feel your pain.  Maybe just buy a few extra batteries for your battery hogging laptop.


How to install OpenJDK 8 on 14.04 LTS? Java 8 is now available according to http://openjdk.java.net/projects/jdk8/, but http://openjdk.java.net/install/ does not yet mention how to install OpenJDK 8 (not Oracle Java) on Ubuntu 14.04 Long Term Support. (For 14.10 and later just run apt-get install openjdk-8-jdk)

How and when can this be done?

(2017-08-08:  The very short answer is:  OpenJDK 8 as of 2017-08-08 is not officially available from the official repositories as an APT package for Ubuntu 14.04.  See full summary in this answer)

Note: For now we will use Oracle Java - the optimal solution for me is, however, OpenJDK from the Ubuntu repositories, until Oracle Java is available directly and effortless from the Ubuntu repositories.

You can do this for;
Final Update
JDK
sudo apt-get install openjdk-8-jdk

JRE
sudo apt-get install openjdk-8-jre

Old Update
I found two repository but I do not recommend

OpenJDK builds (all archs)
  ppa:openjdk-r/ppa

OpenJDK 8 backport for trusty
  ppa:jochenkemnade/openjdk-8

Original Message
If you really want to use OpenJDK, you have to compile from source. There is not still any PPA for OpenJDK.
It has been requested at
https://bugs.launchpad.net/ubuntu/+bug/1297065
I recommend you to use Webup8 Oracle Java8 Installer

Note: WebUpd8 team's PPA has been discontinued with effective from April 16, 2019. Thus this PPA doesn't have any Java files. More information can be found on PPA's page on Launchpad. Hence the below method no longer works and exists because of historical reasons.

sudo add-apt-repository ppa:webupd8team/java -y
sudo apt-get update
sudo apt-get install oracle-java8-installer

To automatically set up the Java 8 environment variables
sudo apt-get install oracle-java8-set-default

Check it
java -version

So you have to wait to use OpenJDK8

It's actually also easy to build the Java 8 yourself directly from sources... Sounds scary? It really is surprisingly easy, and seriously literally takes about 15 minutes, using https://github.com/hgomez/obuildfactory/, as I've described on http://blog2.vorburger.ch/2014/06/build-your-own-jdk-at-home.html


udisks2 (udisksd) errors in syslog: how to investigate? my system logs of my Ubuntu 18.04 Intel NUC are getting spammed by these error messages:

udisksd[1369]: udisks_mount_get_mount_path: assertion 'mount->type == UDISKS_MOUNT_TYPE_FILESYSTEM' failed

I figured out that the spamming is due to Docker which is installed and got some containers running. But with Docker and all containers stopped the error also occurs in the syslog but not that often.
Googling this error message didn't get my any help.
It is not hardware related since I changed the NUC and I have a similar configured NUC running which doesn't have this errors.

Does someone have any clue how to investigate this issue?

I finally solved it: in my case it was in fact Docker related. I stated in my question that I stopped Docker and the problem persisted. This is still true. The problem was due to booting with Docker auto start enabled while it tried to start a container which had a volume on a LUKS device that wasn't present at boot. After stopping Docker the udisksd log spam persisted.
I solved it by disabling auto start for the container which has its volume on a disk that is not present at boot time.
After that no more errors appeared and I was able to manually start the container.
Thanks for the input.

This happens when some application is not putting in a valid/correct file system type into things like statvfs.

Eventually this will bubble up to udisksd if the storage in question is handled by the udisk subsystem.

I had this occur when installing 'swapspace' on Ubuntu 18.04 (from the repo, confirmed with a current build from source zip).

How to find whodunnit: here is what I did.

On what computers does it occur?
    It was only on those that I recently moved to swapspace
In what log files does it occur? The usual log files, but also in messages
    who writes to messages on an Ubuntu system... a flag goes up: bad
    coding somewhere, someone released something not properly coded
    do run on Ubuntu/Debian
When does the message appear?
    In my case a flurry of those every 5 minutes, only on hosts that did
    recently receive swapspace (to prevent browser lockup and virtual image
    size overgrowth for browser images, manage swapspace better)
Once you have determined which one of your apps is causing the appearance of
    invalid file system descriptors in a storage related call:

stop the application (I mounted a swap partition and emptied all swapfile
files into it)
remove files the app is creating if possible, or move everything over,
get to a clean environment where the app starts up 'new' (I deleted all
swap files after everything was offloaded again to the traditional swap
partition)

Start the offending application.
    In my case nothing happened at first, it has to first do some swap files
    before losing its marbles. In the swapfile case it is the use of a
    glibc internal variable for the allocated swap file types, well, glibc
    may have a use for its variable and change the content, or even use it....
    use what swapspace put in there?
    also other errors in swapspace made that the issued type actually can
    never be correct....
Make the application generate the error.
    I did create a situation where swapspace does actually have to do what
    it says it does
    once swap files were there, the messages did appear (it does not matter if
    the messages in this case relate to files owned by swapspace, it could be
    a consequence of swapspace actually changing that varialble, luckily here
    it was simple, they were all related to the swap files)
Find out under which conditions the errors appear.
    In my case: every 5 minutes when the swapspace cron ran, and
    each time I manipulated the swap files (through proper swapspace commands).

A lot of things do happen before a call bubbles up to the udisks subsystem.
The message says udisk received an invalid code in a call.
There is a whole call tree before that which ends up in udisks.

It did take a lot of log file digging, clean startups (once I had swapspace identified, with and without, comparing recently changed systems to 'ran forever' ones), then I did go into the swapspace source and looked where there is a file system interaction that could cause this, and found a big pile of poo left by some ego programmer and never checked nor tested properly....

The more important question is then: what now, the dog caught the bus and what next.

I do not fight with them open source ego thin-skinned overambitious with no backing open source ID-10ts.

The real reason I use open source:
not quality, oh no, most is hobby typists trying to do open source to impress girls, so it seems.

In a closed system I would now be back to square one (need to fix my swapping)

in open source: it will take me less than an hour to check the current source, replace all deprecated system calls, and (about 10 minutes) find all illegal uses of a particular glibc variable in there and work around it.

so yep, while open source is very low quality, done by ego maniacs who have no clue about design, test, verify, pilot, and for who context and scope are no words: I don't need to wait for someone to fix anything for me.

However, insisting on 'proper submission' for a big blooper like this will make that the usual happens: people will be frustrated with 'open source does not work' and we all lose. Because this particular thing I ran into can actually cause severe 'unrelated' data loss, system hangup, mayhem and destruction, the world comes to an end. (remember, alters a glibc internal variable.).

my wish:

change open source:

no accepting of any code unless peer reviewed and signed off, between peers at least one qualified peer (computer science degree, math, physics go too). No hobby programmers on system critical items. Doing something wrong for a long time and not getting caught does make nobody an expert.

.. and define peer review ..
make sure the work is done, this means:
symptom, error impact analysis, fix, correctness, impact analysis, verification, unit testing, system testing, release testing, all need to be fully protocoled, and the test protocols need to be properly documented
a coder may never certify their own work!


Moving folder and subfolder to another path I need to move my folder with many subfolders to another path.

I'm using putty and this is what I tried: MV -r fromflderpath tofolderpath

What am I doing wrong?

The mv command doesn't have an -R flag, it moves folders recursively:

sudo mv fromPath/ toPath/

Edit

If you want a file not to be replaced, use the -i for being prompted in case a file with the same name exists.

If you want to empty fromflderpath without renaming it, stand in the folder and use
mv * ../tofolderpath/


Xubuntu No WUBILDR error I downloaded Xubuntu trough the wubi installer on Windows 7 and it worked just fine, But when i choose Xubuntu at the boot menu i get the NO WUBILDR error and then it just continues and I log on just fine... So far it hasn't effected Xubuntu much and i am able to continue using it, But seeing the error everytime is a bit annoying, how do i fix it? I've tried tons of thing's ive tried replacing the wubildr files with the one's in the winboot folder, and uninstalling/reinstalling, but nothing works. I've checked tons of other websites and forums and the likes and havent found anything that will fix it.

Wubi uses Grub4Dos (wubildr.mbr). Part of it's job is to find it's second stage (wubildr). It looks on all partitions and outputs a diagnostic if it can't find it.

Something like this would mean that the first partition is FAT32 and there is no /wubildr:

Try (hd0,0): FAT32: No wubildr

This isn't an error. You can copy the wubildr to the root of the first partition to stop it showing, or just ignore it (my recommendation).

There is another message that shows on all Wubi installs:

Error: 'prefix' not set

There's nothing you can do to get rid of this. (No known workarounds). It's registered as a bug. My advice, is to ignore it, or install a normal dual boot if it bothers you that much.

Why don't you just check out this forum. it may help you the most. I am sick of writing long solutions. osrry, its early in the morning and I haven't slept yet.
http://ubuntuforums.org/showthread.php?t=1639198

One similar problem stating same is here:
http://ubuntuforums.org/showthread.php?t=1878427


How to display file properties via terminal? What is the command line that displays file informations (or properties), such as in GUI method Display properties in GNOME?

I know that ls -l shows properties; but how to display the same informations?

For example, instead of

rw-rw-r--

we have such GUI rendering:

abdennour@estifeda: $wishedCmd myFile
 .....
  Permissions :
    Owner Access: Read & write
    Group Access :Read & Write
    Others Access: Read only
   .....

Use the stat command to know the details of the file. If file name is file_name, use

stat file_name

You can use ls command to list files and their properties by adding the -l option.
Example:

$ls -l filename


VLC fails to install on 14.04 I'm (desperately) trying to install VLC on my 14.04.

apt-cache policy vlc

returns:

vlc:
  Installed: (none)
  Candidate: 2.1.6-0ubuntu14.04.1
  Version table:
     2.1.6-0ubuntu14.04.1 0
        500 http://mirror.switch.ch/ftp/mirror/ubuntu/ trusty-updates/universe amd64 Packages
        500 http://mirror.switch.ch/ftp/mirror/ubuntu/ trusty-security/universe amd64 Packages
     2.1.2-2build2 0
        500 http://mirror.switch.ch/ftp/mirror/ubuntu/ trusty/universe amd64 Packages

When I try to install, then I get the infamous vlc-nox issue:

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.
 vlc : Depends: vlc-nox (= 2.1.6-0ubuntu14.04.1) but it is not going to be installed
       Recommends: vlc-plugin-notify (= 2.1.6-0ubuntu14.04.1) but it is not going to be installed
       Recommends: vlc-plugin-pulse (= 2.1.6-0ubuntu14.04.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Attempt to install vlc-nox leads to request of installation of libfreerdp1, and then to this message:

sudo apt-get install libfreerdp1

Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  freerdp-x11
The following packages will be REMOVED
  libfreerdp-cache1.1 libfreerdp-client1.1 libfreerdp-codec1.1
  libfreerdp-common1.1.0 libfreerdp-core1.1 libfreerdp-crypto1.1
  libfreerdp-gdi1.1 libfreerdp-locale1.1 libfreerdp-plugins-standard
  libfreerdp-primitives1.1 libfreerdp-rail1.1 libfreerdp-utils1.1
  libwinpr-crt0.1 libwinpr-dsparse0.1 libwinpr-environment0.1 libwinpr-file0.1
  libwinpr-handle0.1 libwinpr-heap0.1 libwinpr-input0.1
  libwinpr-interlocked0.1 libwinpr-library0.1 libwinpr-path0.1
  libwinpr-pool0.1 libwinpr-registry0.1 libwinpr-rpc0.1 libwinpr-sspi0.1
  libwinpr-synch0.1 libwinpr-sysinfo0.1 libwinpr-thread0.1 libwinpr-utils0.1
  libxfreerdp-client1.1 remmina-plugin-rdp
The following NEW packages will be installed
  libfreerdp1

Now, I don't understand why vlc installation would lead to removing these packages? Is there any way around this issue?

Already went through (reasonable) solutions suggested here, here, here, here, here apart from adding repositories.

Output of apt-cache policy libfreerdp-cache1.1:

libfreerdp-cache1.1:
  Installed: 1.1.0~git20140921.1.440916e+dfsg1-2ubuntu1~trusty1
  Candidate: 1.1.0~git20140921.1.440916e+dfsg1-2ubuntu1~trusty1
  Version table:
 *** 1.1.0~git20140921.1.440916e+dfsg1-2ubuntu1~trusty1 0
        500 http://ppa.launchpad.net/remmina-ppa-team/remmina-master/ubuntu/ trusty/main amd64 Packages
        100 /var/lib/dpkg/status

Output of apt-cache policy remmina-plugin-rdp:

remmina-plugin-rdp:
  Installed: 1.1.1-ppa1+484+201508180831~ubuntu14.04.1
  Candidate: 1.1.1-ppa1+484+201508180831~ubuntu14.04.1
  Version table:
 *** 1.1.1-ppa1+484+201508180831~ubuntu14.04.1 0
        500 http://ppa.launchpad.net/remmina-ppa-team/remmina-master/ubuntu/ trusty/main amd64 Packages
        100 /var/lib/dpkg/status
     1.0.0-4ubuntu3 0
        500 http://mirror.switch.ch/ftp/mirror/ubuntu/ trusty/main amd64 Packages

The first part of your problem is that you have disabled unstable PPAs or repos. Please take a look at this post for additional information. This would be the first step in solving your issue.

After you cleared up that, please enter the following into a Terminal window.

 sudo apt-get remove --purge vlc-nox
 sudo apt-get autoclean
 sudo dpkg --configure -a
 sudo apt-get -f install
 sudo apt-get autoremove
 sudo apt-get update
 sudo apt-get dist-upgrade
 sudo apt-get install vlc

Another recommendation would be using the official VLC repo than the Ubuntu one. These are kept up to date and are a lot more efficient in my opinion. If you want to do that, please enter the following below:

 sudo add-apt-repository ppa:videolan/stable-daily
 sudo apt-get update && sudo apt-get upgrade
 sudo apt-get install vlc

I recommend using aptitude on the command line to resolve dependency issues and broken packages, then revisit the answer given by Nickolaus L.


Mysql not starting - innodb not found I have a fresh install of ubuntu 12.04 server edition and mysql server is not starting properly.
I did a simple apt-get install
apt-get install mysql-server

But, it's failing with this error message

root@test:~# mysqld
120618 20:57:32 [Warning] The syntax '--log-slow-queries' is deprecated and will be removed in a future release. Please use '--slow-query-log'/'--slow-query-log-file' instead.
120618 20:57:32 [Note] Plugin 'FEDERATED' is disabled.
120618 20:57:32 InnoDB: The InnoDB memory heap is disabled
120618 20:57:32 InnoDB: Mutexes and rw_locks use GCC atomic builtins
120618 20:57:32 InnoDB: Compressed tables use zlib 1.2.3.4
120618 20:57:32 InnoDB: Unrecognized value fdatasync for innodb_flush_method
120618 20:57:32 [ERROR] Plugin 'InnoDB' init function returned error.
120618 20:57:32 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
120618 20:57:32 [ERROR] Unknown/unsupported storage engine: InnoDB
120618 20:57:32 [ERROR] Aborting

I can start the server with the "--skip-innodb --default-storage-engine=myisam" flags, but would like to use innodb.
Does anyone know what the issue here is?

It was a configuration file issue. We are creating chef scripts to do deploys, and had used OpCode's mysql package, which did some very odd things that messed up Mysql on the machine that we had no expected, setting some configuration values to things that just didn't work.

If using chef, I advise to use the package available though apt-get

package "mysql-server" do
  action :install
end
package "mysql-client" do
  action :install
end

Then change the password through the code provided by OpCode, or changing it after the server install.

This was on Rackspace with Ubuntu 12.04 Server.

By default, MySQL should start automatically when you install it and then restart after a reboot; if not then you must have some configuration problems.

The mysqld command you're issuing isn't the usual way to start MySQL in Ubuntu, and could conflict with the normal setup: The recommended way to start/stop/restart is using the service command--eg mysql service restart--and it's also common to run the script at /etc/init.d/mysql, which you might see in older tutorials.


How to change Ubuntu server GRUB background image? I installed Katoolin on Ubuntu server. After apt upgrade it changes some text and
images like GRUB background image which is now similar to Kali Linux image. Also, also while booting up it says "kali GNU/linux rolling".

So I have two questions:

How to change the background image of GRUB menu?
How to change the start up text?

I found this page on AskUbuntu but the tips mentioned there don't work in my case.

Install the grub customizer

sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer

Then open it and select the third panel (appearance settings) scroll down and choose a back ground image.

To uninstall use

sudo apt-get remove --autoremove grub-customizer


How do I fix unsatisfied dependency and install Chrome in 13.10? When I try to install chrome I get the error message

dependency is not satisfiable: lib32gcc1 (>= 1.4.1.1).

What do I do to install chrome (version 30.0.1599.101-1)?

someone at Google goof up and put 64 bit dependencies in the 32 bit architecture. So basically we have to wait on them to fix it. But you can install chromium in the software center.

Try installing the dependencies.

Run this command:

sudo apt-get install lib32gcc1

Do you get any errors now?


Installing the latest Docker version on Ubuntu 14.04 When I follow the official instructions for Ubuntu 14.04, I end up with docker 0.9.1. When I do it for Ubuntu 12.04 it correctly installs the latest version: 0.11.

How can I install 0.11 on Ubuntu 14.04?

http://docs.docker.com/engine/installation/ubuntulinux/

Upgrade Docker

To install the latest version of Docker with apt-get:

$ apt-get upgrade docker-engine


Unable to activate HDMI output with AMD/Nvidia hybrid graphics card I have an Asus TUF Gaming FX505D Laptop with Ubuntu 18.04.04 LTS.
And I'm unable to connect a Monitor with HDMI to my Laptop.
It has an AMD Radeon RX Vega 10 / NVIDIA GeForce GTX 2060 Hybrid Graphic card.
lspci | egrep 'VGA|3D'
01:00.0 VGA compatible controller: NVIDIA Corporation Device 1f11 (rev a1)
05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Picasso (rev c1)

I have the nvidia-driver440 installed.
With prime-select query I only found nvidia.
If I try to start the nvidia-settings I get the following output:
ERROR: Unable to load info from any available system

(nvidia-settings:3752): GLib-GObject-CRITICAL **: 12:39:36.941: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
** Message: 12:39:36.945: PRIME: No offloading required. Abort
** Message: 12:39:36.945: PRIME: is it supported? no

And an empty window.
Can someone help me?

try to go to Applications-> Software & Update -> Additional Drivers and check if there aren't some blocked drivers related with nvidia or radeon. And just in case if you're trying to use your hdmi cable with the USB-C port, it just doesn't work on linux.


Differences between /bin, /sbin, /usr/bin, /usr/sbin, /usr/local/bin, /usr/local/sbin I have six directories with command files. These are /bin, /sbin, /usr/bin, /usr/sbin, /usr/local/bin and /usr/local/sbin.

What are the differences between these? If I'm writing my own scripts, where should I add them?

Related:

How to understand the Ubuntu file system layout?
/usr/bin vs /usr/local/bin on Linux
Where should I put my bash scripts

Please refer to the Filesystem Hierarchy Standard (FHS) for Linux for this.

/bin : For binaries usable before the /usr partition is mounted. This is used for trivial binaries used in the very early boot stage or ones that you need to have available in booting single-user mode. Think of binaries like cat, ls, etc.
/sbin  : Same, but for binaries with superuser (root) privileges required.
/usr/bin : Same as first, but for general system-wide binaries.
/usr/sbin : Same as above, but for binaries with superuser (root) privileges required.

  if I'm writing my own scripts, where should I add these?

None of the above. You should use /usr/local/bin or /usr/local/sbin for system-wide available scripts. The local path means it's not managed by the system packages (this is an error for Debian/Ubuntu packages).

For user-scoped scripts, use ~/bin (a personal bin folder in your home directory).

The FHS says for /usr/local:

  Tertiary hierarchy for local data, specific to this host. Typically has further subdirectories, e.g., bin/, lib/, share/.

I had a similar question myself a year+ ago: Best directory to place my bash scripts?
System directories for binaries
man hier (hierarchy) lists all the directories. To get the ones just for binaries use:
$ man hier | grep -E 'bin$|sbin$|^.{7}(/bin)|^.{7}(/sbin)' -A2

       /bin   This directory contains executable programs which are needed in single user
              mode and to bring the system up or repair it.

--
       /sbin  Like  /bin,  this  directory  holds commands needed to boot the system, but
              which are usually not executed by normal users.

--
       /usr/X11R6/bin
              Binaries  which  belong  to the X-Window system; often, there is a symbolic
              link from the more traditional /usr/bin/X11 to here.
--
       /usr/bin
              This  is the primary directory for executable programs.  Most programs exe‐
              cuted by normal users which are not needed for booting or for repairing the
--
       /usr/local/bin
              Binaries for programs local to the site.

--
       /usr/local/sbin
              Locally installed programs for system administration.

--
       /usr/sbin
              This directory contains program binaries for  system  administration  which
              are  not  essential  for the boot process, for mounting /usr, or for system

Where to put your own scripts?
For all users to access your scripts you can put them in /usr/local/bin. Keep in mind you need sudo access to add / change files here. See: Is there a standard place for placing custom Linux scripts?
For your own user ID scripts put them in /home/YOUR_NAME/bin. Keep in mind you have to create this directory first and relaunch the terminal to get the path automatically setup by ~/.profile. See: How to add /home/username/bin to $PATH?

What I know I don't know
I'm contemplating taking some of my more complex bash scripts in Ask Ubuntu and setting them up with install scripts on github. Here are few examples:

Automatically adjust display brightness based on sunrise and sunset
A timer to set up different alarms simultaneosly
Application that will lock screen after a set amount of time for Ubuntu
Code version control between local files and AU answers

I think the scripts should be installed in /usr/bin which is in the $PATH, but I'm not sure on the appropriate place yet.


Web spider for Ubuntu I'm looking for a web spider for Ubuntu like this one Webripper - Calluna Software. You can download a whole site like you can with

wget -r -m example.com

but the feature I'm looking for is you can input a search term like "Linux" and it searches the Web and downloads them.
Are there any programs on Ubuntu like this?

Give httrack (CLI) or webhttrack (web interface) a shot, it's in the universe repo. I'm not sure about the search-term-feature you describe, but it does offer a bunch of easily configurable options.

http://packages.ubuntu.com/de/oneiric/webhttrack

HTTrack Website Copier - Free Software Offline Browser (GNU GPL)

There are adequate modules at Perl's CPAN. You just need a little bit of perl scripting.

In particular, take a look at the WWW:Mechanize module at the WWW:Mechanize module.


unable to work with cgi on ubuntu16.04 debian I'm a newbie and trying to create the following simple cgi script and stored it in /usr/lib/cgi-bin/hello.py:

 #!/usr/bin/python
 print "Content-type: text/html"
 print
 print ""
 print "Hello, Linux.com!"
 print ""

Also, I have add the following code to the /etc/apache2/sites-available/000-default.conf:

<Directory "/var/www/cgi-bin">
  Options +ExecCGI
  AddHandler cgi-script .py
</Directory>

and tried to run on browser by http://usr/lib/cgi-bin/hello.py. It's not working

Finally, This article worked for me.

Instead of modifying '/sites-available/000-default.conf', I write the following code in '/etc/apache2/conf-available/serve-cgi-bin.conf':

   ScriptAlias /cgi-bin/ /var/www/cgi-bin/
         <Directory "/var/www/cgi-bin/">
              AllowOverride None
              Options +ExecCGI
         </Directory>

Also, I saved the hello.py in /var/www/cgi-bin folder and then open the file in the browser.


Trying To Install Java 8.. Unable to locate package openjdk-8-jre I'm attempting to install JAVA JRE 8. I have tried following the apt-get's, but it cannot be found there. I attempted to download it straight off Oracle's website, and i have the folder now in my /downloads/javajre folder, but I still have JDK7 on my computer and I don't know how to override it. I added the path variable to my ~./bashrc folder, but it still recognizes JDK7 as the main java version. I also tried to apt-get purge JDK7 and it did uninstall, but it is still appearing for java --version. I also tried to locate the environment variable for JDK7 and I can't find it, it is not in /etc/environment. So I'm trying to get the apt-get to work so I can just change the version via change-configuration, but it can't be found.

I also tried this one, but it didn't work:

sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update
$ sudo apt-get install oracle-java8-installer

I need to get this to work. The first is my version, the second is the command and the output.

  lsb_release -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description:    Ubuntu 14.04.4 LTS
    Release:    14.04
    Codename:   trusty

sudo apt-get install openjdk-8-jre
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package openjdk-8-jre

Any ideas? I've been trying to figure this out for like 4 hours now.

OpenJDK8 is not included in Ubuntu 14.04 repositories.

You can install Openjdk8 to Ubuntu 14.04 from a PPA this way:

sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-8-jre

I have done the following in the .profile in my home directory.

JAVA_HOME=/opt/jdk1.7.0_79;export JAVA_HOME
PATH=$JAVA_HOME/bin:$PATH

once this was added, just log out and login. This will over ride the path to include jdk1.7.0_79 first. You need to use java 8 folder in this case. eg. if you installed java in /downloads/javajre  then add the following in the .profile file of your home directory

JAVA_HOME=/downloads/javajre;export JAVA_HOME
PATH=$JAVA_HOME/bin:$PATH

Log out and login. This should set your java -version to java 8.


16.04 upgrade broke mysql-server My overall upgrade went well, but I am left with a critically lingering issue of mysql-server not being able to install itself, and nothing I am trying gets it to work.

This is the error I see when trying to install/reinstall it:

Setting up mysql-server-5.7 (5.7.11-0ubuntu6) ...
Job for mysql.service failed because the control process exited with error code. See "systemctl status mysql.service" and "journalctl -xe" for details.
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing package mysql-server-5.7 (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mysql-server:
 mysql-server depends on mysql-server-5.7; however:
  Package mysql-server-5.7 is not configured yet.

dpkg: error processing package mysql-server (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                   Processing triggers for systemd (229-4ubuntu4) ...
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
 mysql-server-5.7
 mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

I've tried completely removing it, though doing so attempts to install MariaDB because of dependencies (?). Any suggestions on what I can do to fix this would be most welcome.

EDIT:
Looks like I'm not the only one: https://bugs.launchpad.net/ubuntu/+source/mysql-5.7/+bug/1573279

The instructions @andrew-beerman posted are on the right track, though they aren't quite clear to me and seem  to recommend more than is necessary. I pieced together the answer from the above and a helpful post in the bug thread.

These are the steps I took to correct this:

Back up your my.cnf file in /etc/mysql and remove or rename it

sudo mv /etc/mysql/my.cnf /etc/mysql/my.cnf.bak

Remove the folder /etc/mysql/mysql.conf.d/ using

sudo rm -r /etc/mysql/mysql.conf.d/

Verify you don't have a my.cnf file stashed somewhere else (I did in my home dir!) or in /etc/alternatives/my.cnf use

sudo find / -name my.cnf

Backup and remove /etc/mysql/debian.cnf files (not sure if needed, but just in case)

sudo mv /etc/mysql/debian.cnf /etc/mysql/debian.cnf.bak
sudo apt purge mysql-server mysql-server-5.7 mysql-server-core-5.7
sudo apt install mysql-server

In case your syslog shows an error like "mysqld: Can't read dir of '/etc/mysql/conf.d/'" create a symbolic link:

sudo ln -s /etc/mysql/mysql.conf.d /etc/mysql/conf.d

Then the service should be able to start with sudo service mysql start.

That got it working!

None of the answers on this page worked for me.

I ended up going to the Oracle downloads page, downloading mysql-apt-config_0.8.8-1_all.deb, and installing MySQL from Oracle repo:

sudo dpkg -i mysql-apt-config_0.8.8-1_all.deb
sudo apt update
sudo apt install mysql-server


Internet connection sharing from PC to Phone over Bluetooth I have already read other questions relating to sharing Internet connection from the Phone to the PC. This as most of us know works out of the box in latest Ubuntu (and for some it just needs to either add an additional package or install a package in the cell). This is not the case here.

What I am looking for is the following:

Internet arrives at the PC via ethernet cable.
PC has Bluetooth and I would like to share the internet via Bluetooth.
Phone should connect to Bluetooth and receive Internet via Bluetooth.

How can I share an Internet connection via Bluetooth from the PC to the Phone. Already tested Blueman and is not working for this.

I am using a Nokia n900 and a Samsung Galaxy S.

I am not sure if there is any good way using native bluetooth app that ships with ubuntu but I am going to use a pretty old app called blueman.

install it using

sudo apt-get install blueman

Now from unity search (from dash) for blueman and you will get bluetooth manager click on that and you will get window and blueman service will be enabled.

now you can see two bluetooth icons on top panel of unity. one will be native and other will be blueman's

click on blueman's icon and click local services.

Now a new window **Local Services** pops up, in it click on 'network' and enable Network Access point, click apply and save it.

Now you can access internet using bluetooth of your computer after pairing them and connecting.

Works fine with 16.04.4

When you link your phone to your computer per bluetooth, be sure that your bluetooth works with an internet connection.
You have to wait a few seconds after the internet bluetooth link is up


Where to see the available apps to use? (Using freshly installed Ubuntu 11.10)
I know this is a totally ignorant question, but I can't seem to find any menu in which to see available applications that I may want to use.
For example, I know I have GIMP installed but where do I go to open it?

Is there anything like the Start or Orb (Vista/Win7) menu?

I know this has to be simple as pie but I can't seem to find it.

Do I open the Ubuntu Software Center on the Windows Sidebar looking thing on the left of the desktop and click "Installed"?

Please tell me this is not the place, it's horribly un-intuative.

Click the grey circular icon at the top =)

See also

http://www.ubuntu.com/tour/

Tips and Tricks for Unity

Use Ubuntu Unity's Dash, located at upper-left side.

or go to file system - /usr/bin some programs are located there.


Upgrade manager wants me to do a partial upgrade So here is my story...

I was doing upgrades to ubuntu the other day, and the power went out right in the middle of the upgrade, so now when I try to do upgrades it keeps asking me if I want to do a partial upgrade. I have heard this is bad and should be avoided, I also know there is a way to fix this via the command line, but I can't remember how, nor can I find anything on the internet.

Any help would be appreciated. Thanks

It looks like sudo dpkg --configure -a is the magical command.

Here is the dpkg man page’s explanation of the --configure -a options:

  --configure package...|-a|--pending

  Configure a package which has been unpacked but not yet configured. If -a or --pending is given […], all unpacked but unconfigured packages are configured.

  […]

  Configuring consists of the following steps:

  Unpack the conffiles, and at the same time back up the old conffiles, so that they can be restored if something goes wrong.
  Run postinst script, if provided by the package.

you can try sudo apt-get update through this files will be updated.
and then you can upgrade through terminal by typing sudo do-release-upgrade when it will ask
Installing the upgrade can take several hours. Once the download has
finished, the process cannot be canceled.
then press 'Y' thats all.


GNU Octave Installation Problem I experienced compiling problems with a previous installation of octave. I uninstalled it and am trying a re-installation using:

sudo apt-get install octave

when I do this, I get the following error:

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 resolve the situation:

The following packages have unmet dependencies:
 octave : Depends: libcholmod2.1.2 but it is not going to be installed
          Depends: liboctave4 (= 4.2.1-2~octave~trusty2) but it is not going to be installed
          Recommends: default-jre-headless but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

I have looked at many related posts on this site and tried their recommended fixes to no avail. When I attempt to install the dependencies that are missing for the Octave installation (like libcholmod2.1.2 and liboctave4) I get further missing dependency issues and go further and further down the rabbit hole.

Any recommended fixes would be greatly appreciated.

If you've upgraded any packages since you installed the OS, that can cause problems when you try to install anything that depends on that package.

The first thing to try is apt-get install -f octave. This will make apt try to fix the problem.

If that doesn't work, I would try downgrading whatever dependencies are failing back down to the version that came with your operating system. (This has worked for me in the past.)

To do this, you can use the Synaptic Package Manager. Just use the Package > Force Version.. menu item or press Ctrl+E, then select the version marked with your version code name (e.g. "trusty"). This shouldn't break anything, and after all, you can always upgrade the package again.

Alternatively, you could try using aptitude. It will try to fix the problem for you. (I have never used it myself, but it's worth a shot.)


What will happen when the Code Names of the Ubuntu releases get to Z The last release was Natty Narwhal (Letter N) for the 11.04. Then it was Oneiric Ocelot (Letter O) for the 11.10. This time, the newest one will be Precise Pangolin (Letter P) for the 12.04.

At this pace, what will happen when Ubuntu gets to Z? Will it start with numbers (007 Edition), will it start with double letters (AA Battery), or will it start from the beginning (Amazing Apple)? What will happen?

Astonishing Antelope
As questions go - this pretty much will be a decision made by Mark Shuttleworth himself.

Maybe we could start doubling the initial like in Aalenian Aal or
Aalenian Aardvark  We could restart using flowers or plants instead of
animals. e. g. Apologetic Anemone  For release 17.10 i suggest
Ambitious Aye Aye  Maybe: Awesome Alebrije?  I like the idea of using
plants next. Or perhaps rocks/minerals.

Thus as you have indicated we are in the realms of speculation.
On the link below - the wrap around to A is described up to F - Flying Fox, etc., i.e., Ubuntu 20.04
What is beyond that - happy speculating.

Useful link:

https://wiki.ubuntu.com/DevelopmentCodeNames

I'd advised to call it:

Autistic Aardvark

That would rise autism awareness and PRs for Canonical which could donate to some organizations.


"Untitled window" icons when using Android Studio While using Android Studio on 12.04.3, I keep getting a lot of untitled window icons in the left bar:

I can't click or close them (the only options are "keep in launcher" or "close", which does nothing).

Is there any way I can fix this?

Edit

Some additional info:

This also happens in 13.10, but those icons appear and dissapear almost instantly.
It seems to be caused by the tooltips that appear in the IDE (ex: method signature).
This happens while using the launcher created by Android Studio or launching directly in the terminal.

this is a temporary solution to this issue:
open android studios normally, and then press alt + f2 and type unity, you will see those icons dissapear.

I would uninstall Unity, then reinstall Unity and reboot, then try it. If that doesn't work, then run [sudo] path-to-androidstudio/bin/studio.sh , and try it. Hope this helps!


Chromium "Always on Visible Workspace" I am on Xfce4 and use several wokrspaces as well as two monitors. And I often use "Always on Visible Workspace" option from window menu summoned from titlebar. But Chromium does not have a title bar how can I call this option for its windows?

Right-clicking the top bar a drop-down menu pops up, which contains an "Use system title bar and borders" entry;

Click on it in order to enable the system title bar, which when right-clicked will show the workspace-related options.

There is option in chromium to "allow window to look like other windows".
I forget the exact words.
Please look for it.


Virtual Host Configuration Problem I have Ubuntu running with Apache2, my website shows in browser when www.example.com but doesn't show when example.com, my website is in /home/username/public_html/example.com/public.

I used following, which doesnt work

sudo bash -c "cat >> /etc/apache2/sites-available/example.com <<EOF

<VirtualHost *:80>

  ServerName  www.example.com
  ServerAlias example.com
  DocumentRoot /home/username/public_html/example.com/public

</VirtualHost>

EOF"

You should look into /etc/hosts. You need to include both:

127.0.0.1 www.example.com
127.0.0.1 example.com

Let me know if that works.


I have 2 versions of Adobe Reader I once installed Reader from the Adobe website. It was full of bugs and didn't come with text in the menu so I decided to uninstall it and install a different version. I tried:

sudo apt-get autoremove acroread
sudo apt-get remove acroread
sudo apt-get purge acroread

In the end the program still stayed on my computer and managed to launch. Then I installed nearly the same version of Reader from the Software Center. The one from the Software Center worked perfectly but I still have the buggy version. How do I remove it? I have tried searching for it in the Software Center but didn't find it there. Thankfully PDF documents open with the new version but when I search the program in the launcher, I see 2 exact icons of Reader.

Reinstall the version of the old reader via sudo command in the terminal or thru the browser if that's how you got it. Once you install it you need should go thru the software centre and uninstall it from there and if that doesn't work then try sudo .... You could also just change the name of the application I'm assuming by its .jason or json file ?? I know that works via windows and or you could find the package in your system folder and try to do it from there however I would use the first two and I strongly thing the last shouldn't be used becuase it may cause instability on the system if you remove bits an peice instead of chunks ... Have you checked to make sure the package name is correct if you have two of the same application I wouldn't think they could run at the same time using the same package name. Also just thought of it : have you tried removing both thru the software centre ??? Try removing the new and then the old or via versa ..

A wild guess also check your system for viruses some are cross platform and adobe reader would be a good way to sneak in a virus.....  And yes I know you said that you had downloaded it from there website but maybe it was a very good phishing version??? It's happened to me before with avg