How do I setup an Icecast server for broadcasting audio in my network?

Broadcast audio with Icecast2

1. Install Icecast2

2. Edit Icecast2 configuration

Open the file /etc/icecast2/icecast.xml as root in an editor. For security reasons you should setup passwords in the <authentication> section:

<admin-user>admin</admin-user>
<admin-password>hackme</admin-password>

If you changed the <source-password> or <relay-password> you need to do so on the source or relay side as well. That means leave it default or change it in the ices2.xml file (see below) as well. The same will need to be done in the Ices or Darkice configuration files.

You also need to define the hostname where your stream can be reached:

<hostname>localhost</hostname>

Leave it as localhost (no need to give a resolved IP there) when you only want to stream in your local network. The default port to listen to is 8000. Change it only when needed.

3. Edit defaults

Open the /etc/default/icecast2 file as root in an editor. The last line needs to be changed to

ENABLE=true

That's all for Icecast2. Of course there are many more settings you can play with. In the configurations files there are explanatory notes on parameters.

4. Start/Stop Icecast

The server is started and stopped by the following commands:

/etc/init.d/icecast2 start
/etc/init.d/icecast2 stop

While running the Icecast server can be administrated from any browser at http://localhost:8000/admin/ after entering your administrator credentials  defined in step 1. Further documentation is available from Icecast.org.

Stream2ip is a graphical frontend to quickly start and stop streams where a basic setup for Ices2, Ices or Darkice has already been done.

Ices2  for streaming OGG Vorbis audio from a local soundcard

To set up of pulseaudio to enable recording from the soundcard see note for Darkice below.

Make directories for Ices2

mkdir /var/log/ices   # in case you need logfiles.
mkdir /etc/ices2      # for putting ices stuff in.

Edit the Ices2 configuration .xml

Ices2 will run using an .xml file for settings. Verbous examples of configurations can be found in /usr/share/doc/ices2/examples/. These files need to be edited to meet your needs and can be copied anywhere, best in your home directory. Depending on the configuration file Ices2 uses a playlist in Ogg Vorbis format (ices-playlist.xml) or the output from your soundcard (ices-alsa.xml) as streaming source for Icecast2.

In the section <input> you may need to replace the device if you have setup your sound system to PulseAudio. To do this edit the corresponding line to:

<param name="device">pulse</param>

The name of the stream for the receiving client is defined in the following section.

<mount>/example1.ogg</mount>

Start Streaming

Streams from your soundcard will be started by first running the Icecast2 server, and then running Ices2 using the following commands:

/etc/init.d/icecast2 start
ices2 /home/user/somewhere/ices-pulse.xml # or any other name from .xml file

Setup Receiver

On the receiver side your radio "station" tunes on: <serverIP>:8000/example1.ogg where <serverIP> is the IP of your streaming server followed by the port you defined in the icecast.xml file (default 8000).

Terminate Streaming

Streams are terminated by killing Ices2 and/or stop running the Icecast2 server:

killall ices2
/etc/init.d/icecast2 stop

Ices for broadcasting mp3 playlists

Broadcasting a playlist containing mp3 files can not be done with Ices2. We need to install IceS, which we have to install from source.

After having set up the configuration file with server address, password and streaming properties (well documented example will be found in /usr/share/doc/ices/examples) we can stream mp3 audio files from playlists (e.g. in .m3u format) over an Icecast2 server by:

/etc/init.d/icecast2 start
ices -c <path_to_config_file> -F <path_to_playlist>

For further options read the documentation in the quite elaborate man page from man ices.

Darkice  for live streaming

We can stream the output of the local sound card as OGG Vorbis or as mp3 stream using Darkice. To enable streaming of the local soundcard we may need to define the recording device for Darkice in pulseaudio first. This can be done with pavucontrol . In the Recording tab choose Monitor of <your soundcard> for the "ALSA plug-in [darkice]".

The configuration file (well documented example given in /usr/share/doc/darkice/examples) needs to be adapted to the Icecast server and the local sound environment:

[general]
duration        = 0      # duration in s, 0 forever
bufferSecs      = 1      # buffer, in seconds
reconnect       = yes    # reconnect if disconnected

[input]
device          = default # or `pulse' for Pulseaudio
sampleRate      = 44100   # sample rate 11025, 22050 or 44100
bitsPerSample   = 16      # bits
channel         = 2       # 2 = stereo

[icecast2-0]
bitrateMode     = vbr       # variable bit rate (`cbr' constant, `abr' average)
quality         = 1.0       # 1.0 is best quality
format          = mp3       # format. Choose `vorbis' for OGG Vorbis
bitrate         = 256       # bitrate
server          = localhost # or IP
port            = 8000      # port for IceCast2 access
password        = hackme    # source password to the IceCast2 server
mountPoint      = mystream.mp3  # mount point on the IceCast2 server .mp3 or .ogg
name            = mystream

After saving this configuration (e.g. in ~/music/darkice.cfg) we first run the Icecast server and are then able to stream pulseaudio output from the local sound card by invoking:

/etc/init.d/icecast2 start
darkice -c ~/music/darkice.cfg

On the receiver we tune to http://<localhost>:8000/mystream.mp3 for listening. <localhost> is the IP of the Icecast server.


Why am I seeing "freezing tabs" in Chrome after upgrading to Ubuntu 12.04?

After a lot of investigating, re-installing Chrome, purging options, etc. I found the problem is caused by the internal flash of Chrome in the latest release. Very easy to fix.

First off go to the URL bar and enter about:plugins and press enter. This will bring up the plugins screen. Once there click on the plus icon next to Details to display all plugin details.

Scroll down till you find Adobe Flash Player, it should say 2 files, meaning you have Flash player installed separately in the system. Either way find the first one in the list libpepflashplayer.so and disable this one. If there is a second one /usr/lib/adobe-flashplugin/libflashplayer.so do NOT disable the second one.

Once done you can go to:
http://get.adobe.com/flashplayer/

And install the latest version of flash for your system, in this case the page will tell you to download Flash for Firefox if you have it installed, yes this is what you want.

Download and install, in my case I already had Flash installed for FF so it worked immediately no need to install anything else.

Once done, restart Chrome and it works perfectly. Something seems to be wrong with flash for Chrome in the most recent build, so gonna have to leave it off until they fix it.


Here goes bash script:

#!/bin/bash

# Set maximum amount of remaining firefox processes here
MAX_PROC=2

let COUNT=$(pgrep firefox | wc -l)
for (( i=1; i<=COUNT-MAX_PROC; i++ ))
do
  PID=$(pgrep -o firefox)
  kill $PID
# sleep 3
done


netplan issue with Ubuntu 18.04.1 Server. No network connectivity (no routes either)

The gateway must be in your net- With the /32 mask, the gateway is outside your lan. You must configure, for example, a /16 mask. (255.255.0.0).


How to setup this X server as a service with upstart?

You should probably use "exec ..." instead of "script ... end script", so that Upstart knows the process.

Another issue could be that the job is racing with plymouth or a display manager or something. Make sure display managers are disabled, and change the start on runlevel [2345] to start on filesystem and plymouth-ready so that plymouth does not try to do stuff with your graphics while the x server is running.


Kubuntu 19.10: How to paste a file in Dolphin with middle click?

https://www.reddit.com/r/kde/comments/97d7bz/middle_mouse_button_under_kubuntu_18_bionic/ explains you must select, not merely highlight, items to copy before you can middle-click to paste, in the Plasma 5 you noted you use in your Kubuntu.

It also suggests you may solve your issue with:

System Tray -> Right-click on the Clipboard icon (klipper) -> Configure Clipboard:
General Configuration -> Selection and Clipboard -> Synchronize contents of the clipboard and the selection


What worked for me was to go into /home/(user)/.config/pulse/default.pa and scroll to the bottom to set-sink-volume and change the value to 0


Apt-get won't overwrite the existing java versions.

To switch between installed java versions, use the update-java-alternatives command.

List all java versions:

update-java-alternatives --list

Set java version as default (needs root permissions):

sudo update-java-alternatives --set /path/to/java/version

...where /path/to/java/version is one of those listed by the previous command (e.g. /usr/lib/jvm/java-7-openjdk-amd64).

Additional information:

update-java-alternatives is a convenience tool that uses Debian's alternatives system (update-alternatives) to set a bunch of links to the specified java version (e.g. java, javac, ...).


Ubuntu 12.04(32bit) Dropbox keep showing "Connecting"

In my case it was because I set Dropbox to sync to an automounted partition. When I changed it to a local system partition and restarted the service it started working.


OAuth requests to Ubuntu One cloud return an empty response?

You need to use the token details you have to sign the request with the OAuth protocol.

Here's an example Python script, to be run on Ubuntu, which will sign a URL and then print out that URL; if you then request that URL, it should work.

Let me know if this is still problematic. (Note: the API returns data as content-type application/json, so this may not be loaded in a mobile browser.)

import oauth, urlparse, sys
from ubuntuone.couch.auth import *
if __name__ == "__main__":
  # If you already have token details, then use them here; you'll need
  # access_token, token_secret, consumer_key, and consumer_secret. This
  # script fetches them from a running Ubuntu instead.
  try:
      credentials = get_oauth_credentials()
  except CredentialsNotFound:
      print "COULDN'T GET CREDENTIALS"
      sys.exit()
  access_token = credentials['token']
  token_secret = credentials['token_secret']
  consumer_key = credentials['consumer_key']
  consumer_secret = credentials['consumer_secret']

  # Now we have token details; let's use them to sign a request.

  token = get_oauth_token(access_token, token_secret)
  consumer = oauth.OAuthConsumer(consumer_key, consumer_secret)

  url = "https://one.ubuntu.com/api/file_storage/v1"
  request_body = ""
  signature_method = HMAC_SHA1

  parameters = {}
  query = urlparse.urlparse(url)[4]
  for key, value in urlparse.parse_qs(query).items():
      parameters[key] = value[0]

  request_len = len(request_body) if request_body else 0
  timeout = 10 * (request_len / 1024 / 1024 + 1)  # 10 seconds per megabyte

  oauth_request = oauth.OAuthRequest.from_consumer_and_token(
      http_url=url,
      http_method="GET",
      oauth_consumer=consumer,
      token=token,
      parameters=parameters)
  oauth_request.sign_request(signature_method, consumer, token)
  print oauth_request.to_url()


Thunderbird send button does not work when sending to more than one recipient

Disabled some extensions:

EDS Contact integration 0.6 is the guilty party.

Addressbook now works/multiple email sending now works.

Not sure where this extension is meant to do or where it comes from ... but fixes problem.


How to monitor total data received/sent for current Wi-Fi session?

There are multiple options for that:

1) you can refer to the output of ifconfig <name_of_your_interface>:

$ /sbin/ifconfig wlan0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet [redacted]  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 [redacted]  prefixlen 64  scopeid 0x20<link>
        ether [redacted]  txqueuelen 1000  (Ethernet)
        RX packets 2911989  bytes 3104700566 (2.8 GiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1741814  bytes 307260264 (293.0 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

In the RX bytes line, you have the number of received bytes

        RX packets 2911989  bytes 3104700566 (2.8 GiB)

In the TX bytes line, you have the number of sent bytes

        TX packets 1741814  bytes 307260264 (293.0 MiB)

2) Refer to How to get TX/RX bytes without ifconfig?:

cat /proc/net/dev

3) You can use netstat -i (columns RX-OK and TX-OK)

4) ip -s link

5) If you want a live usage, you can use iftop (may need to be installed with apt, needs root privileges)


sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install pulseaudio-equalizer

This worked for me on 13.10.

PulseEffects is another solution (works on 17.04).

sudo apt-get install pulseeffects


What's the default traditional Chinese font?

According to this ubuntuforums.org thread, Deja vu Sans is the default chinese font.


I'd like to refer you to this answer : https://askubuntu.com/a/973582/307184

as anticipated, given the name "X" render, xrandr is incompatible with Wayland.

given Wayland is the default session on ubuntu 19.04 you cannot use xrandr (which is obsolete as 19.04 solves most to all display issues and comping with a more complete multi-monitor configurations menu built-in)

Basically your monitor is already at the correct resolution from a PC perspective and the only additional changes you can make must be found in the monitor setup itself (E.G. turn "overscan" off)


Combining git GUI with the context menu?

The program which integrates git with Nautilus is called RabbitVCS. It does integrate into Nautilus context menu.

As I remember, the version currently in Ubuntu repositories has some troubles integrating with Nautilus from Gnome 3 so you may need to search this site for suggestions.


How to enable scrolling with arrow keys?

I found the solution. In settings under Advanced/General/Accessibility you have to uncheck "Always  use the cursor keys to navigate...". Then it is possible to simply use the cursor keys to navigate again. Seems irrational, but works.

Btw: The german translation says: Die Pfeiltasten benutzen, um Text markieren zu können, which means "beeing able to use the cursor keys to mark text", which is definately a totally wrong translation.


Error: Could not create the Java Virtual Machine on linux system

There is not enough virtual memory space requested by an application thus the application fails to start. This usually happens during the application startup phase. Applications reserve a large amount of virtual memory for the JVM heap space during the startup phase.
Most of the time you can fix this problem by uninstalling the Java runtime and then reinstalling it all over again. You can also try increasing the amount of system memory allocated to the Java virtual machine by setting an environment variable.


MaaS minimum requirements with juju-jitsu?

What are the minimum system requirements for setting up a MaaS cluster, which is going to be orchestrated with juju-jitsu?

For the region controller (the master machine), you don't need anything particularly powerful unless you want to manage 100s or 1000s of machines.

Cluster controllers place even fewer demands, but unless you're dealing with more than, say, 200 machines you won't need a dedicated cluster controller anyway.

The machines you're going to manage can be pretty much anything, but I strongly suggest that you use machines with IPMI controllers, so that MAAS can control their power. MAAS can use Wake-On-LAN, but only for turning machines on, not off.

What are the minimum requirements for the master machine?

Nothing is particularly RAM or CPU intensive, so a machine with 2GB of RAM and a fairly modest CPU should get you going. You will need disk space for downloaded machine images and logs (MAAS collects remote syslogs), but even something like 20GB should be fine for starters too.

Evaluating complex tag expressions are one of the few things that MAAS does that are CPU intensive, but it does distribute this load to cluster controllers. The more machines you have under management, the more cluster controllers you will have, and therefore the more machines over which this load will be spread. When you're starting out you almost certainly have nothing to worry about in this regard.

How many machines to I need to deploy MaaS on?

Again, for getting started, you could have one machine as the region controller and the first cluster controller, and use that to manage 100s of machines.

We recommend that you have a dedicated cluster controller for each ~1000 machines, and that the cluster lives on its own broadcast domain. You must also assign a distinct IP subnetwork to each cluster.

Do I need to attach as many NICs (network interface cards) to my master machine as there are nodes, or can I simply attach two NICs and a switch?

One NIC is enough. To prevent broadcast traffic swamping the network, we suggest that you don't put more than ~1000 machines in each broadcast domain.

Is Juju now ready for local deployment?

Can I use juju on a local environment or will a reboot break my setup?

I'll leave the Juju questions for someone with more experience to answer.


To upgrade from Ubuntu 11.10 or Ubuntu 10.04 LTS on a desktop system, press Alt+F2 and type in "update-manager -d" (without the quotes) into the command box. Update Manager should open up and tell you: New distribution release '12.04' is available. Click Upgrade and follow the on-screen instructions.

Please read https://wiki.ubuntu.com/PrecisePangolin/TechnicalOverview/Beta2 as Beta releases can have errors


FN keys F9 - F12 do not work on an Asus U30sd

These issues have been resolved as of the 11.10 update. All hotkeys are working on the new OS, thanks canonical for being awesome.


sysctl: /etc/security/limits.conf(55): invalid syntax, continuing

*limits.conf * is parsed by the PAM *pam_limits * module
at session startup - it doesn't use sysctl.conf  syntax.


The key element here is:

 *Blocked in csf* for 3600 secs [PS_LIMIT]

You will need to login on your cpanel (hosting server) configuration page and look for [PS_LIMIT], it is probably set to default which minimum (5 I guess). This parameter set the port scan limitation and you can increase that. this will stop the complaints from your hosting company for now as temporary solution.

Lets look for permanent solution here and regardless I have a quick question for you here.

Are you running any server application from your PC?

Answer to the above question will give us better clue because I am pretty sure your PC application (such as DB or webserver) is causing this and LFD is likely misinterpreting your traffic as port scan.

pls also check:

   /var/log/lfd.log

and post the relevant findings (maybe grep "Blocked IP").


Turns out it was a question for Server Fault :P the problem was the network, not quite sure what is wrong with it but it works in Windows and not Linux, anyway I used another network and it's working just fine. :)


follow the link http://ubuntuforums.org/showthread.php?t=2081649to install nvidia driver on ubuntu


I solved the issue myself.

I misspelled the file authorised_keys instead of authorized_keys in ~/.ssh/

Silly but true.


What happens if you never reboot after a "reboot required" and keep "dist-upgrading"?

The reboot is required because the kernel been updated with fixes to security issues.  The fixed kernel can only be loaded on the next boot, hence the reboot is required.   If you don't reboot, your machine will not pick up the kernel security fixes until the next reboot.


Indicator-brightness icon on panel can't change in Radiance theme

Found a solution to manually change the icon after some file searching.

First download this black icon I created using GIMP (same icon as the official application's, but with inverted colors):

Open Nautilus File Manager as root. I did it graphically because I'm not familiar with much of the terminal. I used this command in Terminal.
gksu nautilus

Go to File System and navigate to:
/usr/share/notify-osd/icons/gnome/scalable/status/notification-display-brightness-full.svg

Copy the file's name, and then delete the .svg file.

Replace it with the icon I provided above and give it the same name
as the previous file (paste what you copied in the above step).

The icon should change, and look great in Radiance theme. If you want to change back, you can invert the colors of the icon I gave using GIMP and export it as a new image, and then do the same process above using the new image.
Sorry if anyone can do this easier in the terminal and I just showed a harder way, I only discovered Linux a month ago and still am not familiar with command line lingo.


Finding a specific package's name via the terminal

You can list all the present packages on your system by:

dpkg-query --list *name*  Adding any keyword you wish as name, wildcards permitted as well

Also depending on which version of Ubuntu you are using, you can write e.g.:

apt-get remove *name*  , press double Tab, and you will be shown the packages starting by your name introduced.


Put PATH=$PATH:$GRIFFON_HOME/bin:$GROOVY_HOME/bin in your ~/.bash_profile file instead of the ~/.pam_environment file.

Alternatively you can add the following to your ~/.bash_profile file:

if [ -f ~/.pam_environment ]; then
   source ~/.pam_environment
fi


How to fix Duplicity B2 (Backblaze) error

should be fixed in duplicity 0.7.18 released yesterday

  Fixed bug #1785520 with patch from Chris Hunt

  Fix for B2 version 1.3.4 just released

https://launchpad.net/duplicity/+milestone/0.7.18

..ede/duply.net


How can I perform a phone call with the new Skype for Linux Alpha?

The feature currently does not exist. Looking at the Available and upcoming features list on the information page, you can see that Alpha currently does not support PSTN calling, among other things:

(higher quality image for no real reason)

The website also has this:

  Is Skype calling for landlines and mobiles supported?
  No, currently this feature is not supported on Skype for Linux Alpha. But stay tuned!

You'll just have to wait for them to add it.


Installing Minecraft.deb. Tries to install but, gives a redirect loop

A redirection loop has nothing to do with Ubuntu. It means one of the following (previous related question):

The mirror you have chosen is misconfigured
Your ISP is hijacking traffic to that domain for it's own reasons

The solution is usually to select a different mirror and try again.

(Aside: You don't need gdebi to install a deb anymore. Apt will happily do it: sudo apt install ./file_name.deb)


openVPN client configuration of ip address

In the end the answer was simple - my lack of knowledge on networking!
All that was required was to set-up port forwarding on the DSL router - in my case I am using an old Netgear router - so I had to set-up a service for the port (1194) and then change the firewall rules to allow that service.
It should be easier on a more modern Router


Ubuntu 16.04 LTS - Freeze after out of fullscreen mode (YouTube, each others)

i had the same problem and i just solved that

just upgrade your browses and OS

if your problem is solved then don't read the text bellow

and if that dose not work follow thebellow steps

this problem mostly happens  with  Chrome version 49 and some other older chromium version . Below is a workaround that will solve the problem until Chrome fixes this bug.

1.If compizconfig-settings-manager is not installed, install it by

sudo apt-get install compizconfig-settings-manager

2.typing ccsm from the terminal and Launch compizconfig-settings-manager
3.Double click and  open the Composite plugin
4.Add & !(class=google-chrome)&!(class=Firefox)or at the end of the Unredirect Match text box

5.Close the settings manager.

but trust me in my case i just upgraded my os and browser and bug was solved.but during search i also found this method on https://bugs.chromium.org/p/chromium/issues/detail?id=550091#c43

please go click the above link

and sorry for my English! please comment if this dose not work
i hope this helps.


How can I know from which partition I had booted?

Once GRUB has handed off booting to the kernel, the kernel has no idea what started it, and /boot might not be the one which that GRUB used. You might check the access times of boot/grub/grub.cfg in each of the partitions to see which one was most recently accessed. That could tell you which partition's configuration file GRUB used.

stat -c %x /boot/grub/grub.cfg

If the access times aren't updated, you'll have to look for any differences in the kernel parameters used by the various GRUB configuration files. If you can change them, for example, add foo=1, foo=2, etc. to GRUB_CMDLINE_LINUX in each of these, run sudo update-grub2 and reboot, then you can check /proc/cmdline to see which of these values were used.


Installing libcurl3 without removing R installation

sudo add-apt-repository ppa:xapienz/curl34
sudo apt policy curl
sudo apt remove curl libcurl4

Then try:

sudo apt install curl=7.58.0-2ubuntu3ppa2 libcurl4=7.58.0-2ubuntu3ppa2

or

sudo apt install libcurl4

This will install libcurl4 package, which supports both libcurl3 and libcurl4 API. Then you do need to install another libcurl3 package for your system.


I don't know how to dual-boot Lubuntu 14.04

Partition your drive. Just know that Lubuntu won't recognize Windows drives.

Like user2548592 said, it may just be a better idea to install Ubuntu and get Lxde Desktop using apt-get.

This can be accomplished by running sudo apt-get install lubuntu-desktop.


ll is an alias defined in ~/.bashrc along with other alias's that use color:

# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
    test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
    alias ls='ls --color=auto'
    #alias dir='dir --color=auto'
    #alias vdir='vdir --color=auto'

    alias grep='grep --color=auto'
    alias fgrep='fgrep --color=auto'
    alias egrep='egrep --color=auto'
fi

# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'

# Add an "alert" alias for long running commands.  Use like so:
#   sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'

# Add a "redalert" alias to pop-up on GUI desktop screens.  Use like so:
#   redalert "Weather update: It's raining Red States"
alias redalert='notify-send --urgency=critical -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'

The last Alias: redalert I added manually and is not in normal Ubuntu distributions.

What you can do if you want no colors is use:

sudo chmod -x /usr/bin/dircolors

However in your case you might be looking at a windows partition, ie:

In which case you can simply use \ls -alF for no colors:


Please hook up the ethernet temporarily and open a terminal and do:

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

If the latter isn't installed, that's fine, just continue.

sudo apt-get install firmware-b43-installer

Detach the ethernet. Next, do:

sudo modprobe -r ssb
sudo modprobe -r b43
sudo modprobe b43

Does the wireless come to life?

You may be able to resolve the shutdown issue with a complete update:

sudo apt-get dist-upgrade

After it completes, does it reboot as expected?


How to reorder or rename logical interface names in Linux

http://www.science.uva.nl/research/air/wiki/LogicalInterfaceNames

https://answers.launchpad.net/ubuntu/+question/62716

http://wishmesh.com/2009/09/ubuntu-server-rename-eth1-to-eth0/


Does anyone know where to get printer drivers?

I'm not sure about lubuntu, but in Ubuntu I didn't find my exact model when first installing.  I had to find a similar model and it worked perfectly.  I am not sure about your particular model, but look here.

You would just go into settings and then printers and add printer.  Perhaps you use Ubuntu to set it up and then switch back to Lubuntu.

Also you could just install the ppa as you saw in the comments.

https://launchpad.net/~michael-gruz/+archive/canon if it doesn't work please submit a bug, or let me know and I will.

http://www.ubuntubuzz.com/2011/06/download-install-canon-printer-driver.html

I would just find a related model with the same features and see if it works.  Most likely it would.  It did for me.

Hope this helps.


Problems with Blender3D and ATI graphics

I have an ATI Radeon HD 4350 with the open source drivers, and Blender seems to work fine on Ubuntu 10.10 (with visual effects enabled).

You could try a 10.10 live CD to see if the problem still exists there for you.

Another thing you can test, on your 10.04 install, is to disable the "visual effects" in the Appearance configuration dialog.  Sometimes these effects interfere with applications that also use OpenGL.


`squashfs-tools` creates incorrectly compressed file

Obvious point - you complain that Unsquashfs is generating a different file, but then demonstrate this by mounting the Squashfs filesystem and comparing that....
If the bug was in Unsquashfs you would expecting mounting the filesystem to work (giving the correct output).  If both Unsquashfs and mounting doesn't work, then the bug (if any) is likely to be in Mksquashfs.

The version of mksquashfs/unsquashfs (from squashfs-tools):
mksquashfs version 4.2-git (2013/04/07)
unsquashfs version 4.2-git (2013/03/13)

These look like snapshots from my git development tree (they have -git in the version).
It is possible they have been snapshotted when the development code was in an inconsistent state or had temporary bugs.
You should try the release versions of squashfs-tools.  Squashfs-tools 4.3 was released this year and you should try that.  This however has a known bug causing incorrect filesystems in certain cases (introduced in Sept 2011), but this doesn't look like the bug you're hitting.
Depending on whether the above Squashfs-tools 4.3 works, you should also try the earlier release Squashfs-tools 4.2 (from 2011), and the latest development version from git (where the one known filesystem corruption bug has been fixed).
The release tarballs and the git development tree can be got from
http://sourceforge.net/projects/squashfs


Upgrade to 12.10 from 12.04 not available in update manager

Open "Update Manager" > click on "Setting" (bottom left) > change "Notify me of a new Ubuntu version" from "for long term support version" to "for any new version" > close

the again "check" for updates.


Just execute this commands!

Installing Node.js via package-manager:

sudo apt-get install -y python-software-properties python g++ make
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs

Check version:

$ npm -v
1.4.9
$ node -v
v0.10.28

For more info visit this guide.


Go to System --> Administration -->  Hardware Drivers and wait for the list of available drivers to load. When that loads, choose the preferred graphics driver and hit Install. After the driver is installed, restart your computer. When you log in, you should immediately notice some differences.


Use this comand line on a Terminal window/app:

  syncevolution --delete-items backend=evolution-contacts --luids '*'

I found this on=> https://gurucubano.gitbooks.io/bq-aquaris-e-4-5-ubuntu-phone/content/en/index.html, a collection of knowhow on Ubuntu Touch (search for the index item "Import and export of Contacts").

There seems to exist several similar questions, but I have not found another satisfactory answer, excepting a way by deleting the contact database, ==>Ubuntu phone - How can I delete the contacts in my phone book properly?.


Does it happen when your PC goes to sleep?  If so, make sure the keyboard is plugged into the PC and not the monitor. Xmodmap settings are not honored when keyboard devices are hotplugged.


Copy all subdirectory names and files with a particular extension to a new directory

You can do it with find and cpio, just cd into dir1 and run this:

find . -mindepth 2 -type f -name "*.py" -print | cpio -pdm ../dir2

find . will start in the current directory ie. dir1
-mindepth 2 will ignore the contents of the current directory ie. dir1 and include the contents of its sub-directories.
-type f -name "*.py" -print will include only files with .py extension.
cpio -pdm will copy. -p creates a list of files, -d creates directories as needed and -m sets the correct modification times on directories.
../dir2 will create a directory ( if it does not exist ) named dir2 one level up next to dir1 and copy everything to it.

For reference man find and man cpio.

Best of luck


Send raw data to USB parallel port after upgrading to 11.10

The /dev/usb/lpX device files you are looking for are provided by the usblp driver.  It seems in Ubuntu 11.10 though, that this driver has been blacklisted.  See the /etc/modprobe.d/blacklist-cups-usblp.conf file:

# cups talks to the raw USB devices, so we need to blacklist usblp to avoid
# grabbing them
blacklist usblp

If you want to send data directly to the device still, you can temporarily load the driver with modprobe usblp (the blacklist only prevents the driver from being automatically loaded).  Once you are done, you can unload it with modprobe -r usblp.


You can see these references for Hybrid graphics :
Ubuntu supports hybrid graphics by means of the vga_switcheroo flag

Enabling vga_switcheroo

Further links :

http://forums.mydigitallife.info/threads/24483-Switchable-Graphics-Ubuntu-10-10

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

Switching from integrated Nvidia to a Radeon card?


Launchers for installed snap applications (including Ubuntu Software) disappeared after installing GNOME Software

The .desktop launchers associated to the Snap Store and other snap applications are present in your /var/lib/snapd/desktop/applications/ directory. Under a normal circumstance GNOME Shell should be able to detect them and show them in the application list. But the output of echo $XDG_DATA_DIRS shows that this directory is not a part of your XDG_DATA_DIRS. So add the /var/lib/snapd/desktop/ directory to your XDG_DATA_DIRS.

Also as a workaround, you may copy the required .desktop launchers from /var/lib/snapd/desktop/applications/ to your ~/.local/share/applications/ directory. For example, for the Snap Store app, you can do that by running

cp /var/lib/snapd/desktop/applications/snap-store_snap-store.desktop ~/.local/share/applications/


command not found is the standard error message you receive when you enter a command that requires privileges you don't have -- in this case, it must be entered with root privilege.  If you type sudo before your command line, you'll be requesting that privilege, and will be prompted for your user password.  Then, assuming your user account is in the sudoers group, the command will be executed with root privilege.


How to make Realtek 8723 recognize the network?

You can find instructions to download and build the rtl8723 driver for Ubuntu 12.10 on various forums. I did that, and it worked. However, the driver seemed unstable. The wireless network would keep dropping out and restarting every few minutes.

So I decided to try Ubuntu 13.04 daily build version. Obviously it's not April yet, so Ubuntu 13.04 isn't officially released.

However, 13.04 does have support for Realtek rtl8723 driver, and it also has the Atheros alx driver if your wired ethernet card uses that driver.

Using the rtl8723 wireless driver supplied with Ubuntu 13.04 seems to work really good. It doesn't drop out all the time like with 12.10. I haven't tried the alx ethernet driver because the wireless works good enough that I don't need to.

The rtl8723 driver comes in the daily builds, so you don't need to download anything except the ISO. It can detect and use the wireless network even from a live USB stick "try Ubuntu" type of thingy.

If you want to try it, download the appropriate ISO file for your hardware from here:
http://cdimage.ubuntu.com/daily-live/current/

I used unetbootin to make a USB stick bootable with the ISO file I downloaded.

Caveat: while running the live version off the stick, the unity interface didn't show up properly. Only the "Examples" folder and "Install Ubuntu" showed up, nothing else. Double clicking on these icons worked like you would expect. Ctrl-Alt-T brought up a terminal window. Once Ubuntu 13.04 was installed, unity works.


Raid1 isn't show up twice, /dev/sdc and /dev/sdd are the Raid member drive, so it should have there own entry in /dev.

It looks like Ubuntu isn't assemble those two drives to RAID1 with the metadata on the drives. If the system successfully assemble the RAID, you should see something like '/dev/md125' in fdisk -l. You can also use 'cat /proc/mdstat' to check if there are any Raid Volume in the system.

And you should not mount any Raid member drive directly, you should mount the Raid Volume to the mount point like 'mount /dev/md125 /localRaid1'.

You can try reboot your system to let mdadm daemon automatically assemble the Raid base on /dev/sdc and /dev/sdd metadata. If failed, you may manually assemble them using command like 'mdadm -A /dev/md125 /dev/sdc /dev/sdd'.

BTW, How did you create RAID, using Hardware Raid Card or using mdadm to create Software Raid?


Lenovo Yoga 2 11 with no wi-fi (soft block removed)

If you have a wired connection and uname -r shows that you are using a 3.13 kernel you just need to sudo apt-get install bcmwl-kernel-source and reboot.  If uname -r shows that you are using a 3.16 kernel, then you need to go http://packages.ubuntu.com/utopic/bcmwl-kernel-source to download it


How to check the files of an installed application?

You can safely delete anything in the Downloads folder if you installed software the regular way, i.e. using Software center or using sudo apt install or snap install, or using Synaptic package manager.
If you installed software your own way, or manually, then only you can know what you installed where, so what to delete or not. No one here can help until they see the details of every application and the install procedure.


How do I use /etc/network/interfaces instead of network-manager

If you manually manage your network card in /etc/network/interfaces , network manger will not manage it , it will state "Not Managed"

Suppose your network card is eth0 :

To setup eth0 to static, enter:

open /etc/network/interfaces :

auto eth0
iface eth0 inet static
address 192.168.1.15 #------> Your Ip Address
netmask 255.255.255.0 #------> Netmask
gateway 192.168.1.254 #-------> Gateway
broadcast 192.168.0.255
dns-nameservers 192.168.1.3 #-----> Dns server

To setup eth0 to dhcp, enter:

auto eth0
iface eth0 inet dhcp

The different keywords have the following meaning:

auto: the interface should be configured during boot time.

iface : interface

inet: interface uses TCP/IP networking.

Now restart service :

sudo service network-manager restart


how can I install 5kplayer in ubuntu 14.04

There is  no official support for 5Kplayer in linux but you could use wine to install it in ubuntu.If u just want to play HEVC files you can use vlc which is natively supported in ubuntu.To install vlc

sudo apt-get install vlc && sudo apt-get install vlc-plugin-libde265


usb sticks and cards have all become read only

This answer assumes the USB format is a Windows type FAT or NTFS

The system may have lost or not have the files for writing to NTFS partitions installed.

I recommend to try this in terminal: sudo apt-get install ntfs-3g and install both ntfs-3g and all its dependencies.

Now, reboot your system, and attempt to open the NTFS drive for write access. You should now be able to write to the NTFS drive.


Steps to make Wubi work again

When you reach the prompt, try those commands (one at each line)

insmod ntfs
set root=`(hd0,msdos2)`

In the second line i reference (hd0,msdos2) as being the partition where Windows is installed (and Wubi by extension). This means the partition is on the first disk (hd0) and on the second partition (msdos2). This is true in a normal Windows7 setup. If you are using Windows XP this will probably be (hd0, msdos1).

loopback loop0 /ubuntu/disks/root.disk
set root=loop0

I think that path is the default, if it raises any error just boot on Windows and find the right path.

linux /vmlinuz root=/dev/sda2 loop=/ubuntu/disks/root.disk ro  text
initrd /initrd.img

Again here i make the assumption that the path provided is correct and Wubi is installed on the second partition of the only disk (the usual). If this is not the case update the provided path and replace sda2 for the correct device.

This should boot you in "terminal mode" (no GUI). If it starts ok you can try issuing the following command, after login:

sudo update-grub

After that when you reboot the grub entries should be corrected.


Ubuntu 10.2 to Ubuntu 12.04 LTS migration with mdadm (software RAID)

The way you make it safe is the same way you make simply having the system in the first place safe: make backups.  Should anything go wrong ( which is rare, but can happen ), you restore the backup.


Nvidia Drivers in Asus m50VC GeForce9300M Ubuntu

I have similar problem with ASUS M50VM. After update of nvidia-current-updates from 304.88-0ubuntu0.0.1 to 304.108-0ubuntu0.0.1 the ubuntu 12.04 did not load gnome.

Downgrading to nvidia-current-updates=304.88-0ubuntu0.0.1 helped.

However now I have to skip update of nvidia-current-updates every time I run update manager.


Here it talks about installing Adobe Air (a 32-bit application) on Ubuntu 64-bit,
http://kb2.adobe.com/cps/521/cpsid_52132.html

If sound does not work, then most probably a dependency (probably an application library related to sound) has not been installed.
You would use ldd and the name of the Adobe Air executable to see what libraries are missing.

However, the proper way to deal with this issue would be to ask for help at Adobe at the article
http://kb2.adobe.com/cps/521/cpsid_52132.html


How do I create a single-execution Upstart job guaranteed to complete before two other jobs begin?

I believe I have an answer to my own question that leverages CameronNemo's partial solution and Mark Russell's answer to a related but somewhat different question.

Two Upstart configuration files are required. The first is a job that starts as soon as the local filesystem is available, performs the desired file modifications as a pre-start script, and then sits idle in the running state forever:

# modify-files - Single-execution file modification job

start on local-filesystems

console log

pre-start script
  echo "$(date --rfc-3339=ns) $(hostname) $UPSTART_JOB"
  exec /path/to/your/script
end script

The second configuration file is an Upstart task that delays the start of all other jobs that might depend on the files we're trying to modify. It produces one instance of itself per dependent job:

# modify-files-wait - Helper task for modify-files

start on (starting jobA or jobB)
stop on (started modify-files or stopped modify-files)

instance $JOB

console log
normal exit 0 2
task

script
  echo "$(date --rfc-3339=ns) $(hostname) $UPSTART_JOB ($UPSTART_INSTANCE)"
  status modify-files | grep -q "start/running" && exit 0
  start modify-files || true
  sleep infinity
end script

Upstart will kill all instances of modify-files-wait once modify-files is idling in its running state. That normal exit line accounts for the possibility of being killed during its infinite sleep. We need the task line to block jobA and joB until the stopped state is reached. Whichever instance runs first will start modify-files, if it hasn't already been started.

Since modify-files never reaches its stopped state, it will never be run anew, regardless of jobA or jobB being restarted.

This solution seems to be working, but I welcome any criticisms or improvements.


Message {1.079026} ACPI PCC probe failed; starting version 219

I believe the 'ACPI PCC probe failed' is a separate issue from your display brightness.  I base this hypothesis on the following:

http://permalink.gmane.org/gmane.linux.power-management.general/56400
Similarly: http://comments.gmane.org/gmane.linux.acpi.devel/73411
You have stated you no longer see the 'ACPI' message after you upgraded
You still see 'Starting Version 219'
The boot process is controlled by 'Systemd' current version 219
I see 'ACPI PCC probe failed starting version 219' only after a previously hibernated or suspended session has been resumed and then rebooted, or shutdown and then started
There are many questions on AskUbuntu and many other sites regarding this message and each seem to have a different set of repeatable steps to replicate the message
The 'ACPI' message is a bug: https://bugzilla.kernel.org/show_bug.cgi?id=92551

My research shows that the kernel is looking for the Platform Communications Channel Interface which is a new ACPI interface that not too many devices support yet.  The error return messages are PCCT header not found. followed by ACPI PCC probe failed.  Per Ashwin Chaugule code creator found here https://github.com/torvalds/linux/blob/master/drivers/mailbox/pcc.c
My relevant journalctl output

sodu journalctl
Aug 16 23:10:55 x kernel: PCCT header not found.
Aug 16 23:10:55 x kernel: ACPI PCC probe failed.

In all I think there are too many variables for so many seeing the same message.  Statistically this makes your unique issue a higher probability that it is unrelated to your display brightness controls.  Further, if you read the emails completely in the first two points in the list above I think it is clear that a work around was developed inside the code the developers created that would be attended in the future for upstream releases.
I know this does not completely answer your issue but I am hoping it will focus others with more Linux Ubuntu 15.04 knowledge and experience to a solution or a working hypothesis to resolve it.


You are blocking incoming connections. Use

sudo ufw deny out 80
sudo ufw deny out 443

This will likely also block apt updates, so be careful.


"Trick" AeroFS to synchronize outside AeroFS folder without symbolic links

I have found a way: use bind mounts.

For every folder you wish to sync create a folder in AeroFS folder with similar name  (user - your user name, folder - the name of the folder you want to sync):

mkdir /home/user/AeroFS/folder

Edit /etc/fstab:

sudo nano /etc/fstab

Add the following line for every folder you wish to sync with AeroFS:

  /home/user/folder   /home/user/AeroFS/folder   none   bind   0   0

Run:

  sudo mount -a

And you're done.


No live media found when installing Ubuntu

Yes it seems an issues with your DVD reader. Until you solve that issue you can try making iso from that ubuntu DVD, you said its works in laptop, so insert it in laptop make an iso image out of it, and then burn that iso image to usb drive.
You can use brasero or k3b to make iso image from that DVD
Then you can use unetbootin as a gui way to burn the iso to pen drive or a you can type following command in terminal

sudo dd if=/path/to/iso/file.iso of=/dev/sdX

Where X is the name of your usb drive. Use dd command very carefully writing wrong device name can wipe out all your data. dd command first erases everything on the target device. To know the name of your usb drive run in terminal,

sudo fdisk -l


How to use windows bootloader instead of grub using UEFI?

Windows bootloader will give you no choice between systems and will load only Windows. You can change loader through Bios setting priority of Windows loader higher than Grub


Try different keyservers, and try using port 80.

A few servers you could try if keyserver.ubuntu.com doesn't work :

keys.gnupg.net (this one worked for me today)
pgp.mit.edu
sks-keyservers.net
keyserver.pgp.com

sudo apt-key adv --keyserver hkp://$pgp_server:80 --recv-keys $wanted_key


How do I assign a static IP address in Ubuntu 17.04 without rebooting?

Network manager is service manager networking on your Linux , This service contain some interfaces to work with it . nmcli is one of the richest interface to manager networking .

If you want set static IP to your Linux via nmcli try following command :

$ nmcli connection modify eth0 ipv4.address x.x.x.x/y

With above command you permanently add IP to your interface . ( replace eth0 with your interface name ) .

Than run following comand :

$ nmcli connection up eth0

To active your connection without rebooting .


Audacity snap [pango_font_description_set_size assertion 'size >=0' failed]

I don't know how to fix this error in the snap package, but a workaround would be to install the slightly older version (apt - v2.3.3, snap - v2.4.1 as of 17.08.2020) of Audacity from apt.
Open a terminal and enter the following commands.
sudo snap remove audacity
sudo apt install audacity


Adding custom programs to favourites of Ubuntu Dock

This is fairly easy. First, make a desktop application file that follows the freedesktop.org spec, e.g.

[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=MyApplication
Comment=My fancy new application
Exec=my_application
Icon=my_application.png
Terminal=false

If you want this to be usable by anyone on your system, put it in /usr/share/applications. For personal use only, you can put it in ~/.local/share/applications.   Look in /usr/share/applications for other examples.  Add your icon image to the /usr/share/icons directory, or I assume the ~/.local/share/icons, although I have not tried that last location myself.

Then, you can search for the application by name and drag it to the launcher in the usual way!


There are several problems in the script. I think so amended should work ..

#!/bin/bash
RWFILE="0"
ALL="0"
for f in *
do
if [[ -r $f && -w $f ]] ;
then
    RWFILE=$((RWFILE+1))
    echo "possible readable & writable files: $RWFILE"
fi
ALL=$((ALL+1))
echo "Number of possible readable and writable files in current directory: $RWFILE"
echo "Number of files in current directory $ALL"
echo "list of files in this directory by modification time: ls -l"
done


I think it's available from cdimage:

http://cdimage.ubuntu.com/netboot/quantal/
http://archive.ubuntu.com/ubuntu/dists/quantal/main/installer-i386/current/images/netboot/


Will removing Empathy (for Pidgin) break my desktop integration?

Yes you can safely remove Empathy. It will not break anything also remove whatever leftovers Empathy leaves.


Wvdial randomly drops 3G connection - How to auto-reconnect?

You can disable the auto reconnect feature of wvdial and provide a wrapper script instead of calling wvdial (no need for polling):

#! /bin/bash
(
    while : ; do
        wvdial
        sleep 10
    done
) &


It appears that this issue tends to create numerous duplicates over the stackexchange network. Here is the direct link to the approved solution:
https://serverfault.com/questions/275206/disk-full-du-tells-different-how-to-further-investigate
but you should be able to find more by googling "du vs df mounted disks".
Have a nice day


The device name is created by the kernel, but then you can add a rule to udev in order to rename the interface to the wanted device.

First make a backup of your configuration file

sudo cp /etc/udev/rules.d/70-persistent-net.rules /tmp/70-persistent-net.rules

You will be able to revert to the original state in case of something goes wrong by this command :

sudo cp /tmp/70-persistent-net.rules /etc/udev/rules.d/70-persistent-net.rules

Edit the file 70-persistent-net.rules in the udev rules directory :

sudo nano /etc/udev/rules.d/70-persistent-net.rules

Find the line corresponding to your persistent network device, this is something like that :

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="xx:xx:xx:xx:xx:xx", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="ra*", NAME="ra0"

Change the name value to the wanted name so you will have a line like :

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="xx:xx:xx:xx:xx:xx", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="ra*", NAME="wlan0"

Then reboot your computer and check that you have the right interface name.


The PUA mean "Potentially Unwanted Application", so it's a fairly low priority alert anyway.

The rest of the definition suggests it has found a Windows binary format that is compressed in such a way that makes introspection difficult for antivirus applications. That makes it invaluable for malware authors because they can keep changing the signature on their malware to evade detection.

In this case, I think it's just symptomatic of how Mono is built and ClamAV being over-suspicious. I ran a copy of my mscorelib.dlls through VirusTotal and it came back clean. I suggest you do the same.

  If this really is malware and I quarantine and remove these files would I break anything?

It'd break Mono but if it is infected, that wouldn't be awful. You'd just want to reinstall the Mono packages.


Terminal - Search entire directory for keyword

cd ~/path/to/your/directory
grep -rwI KeywordCaseSensitive *

Explanateion:

-r search recursively
w search for a word only (i.e. surrounded by white space and/or punctuation)
I ignore binary files

You may consider option -i (ignore case).


Change Kernel from 4.2 to 3.13 in Ubuntu 14.04

It is quite easy to downgrade kernel in 14.04.

Run in terminal

sudo apt-get install linux-generic

Then remove all 4.2 kernel image and headers packages using Synaptic.

As an option you can leave 4.2 kernels and just boot with 3.13 using grub.

According to your screenshots you already have some 3.13 kernel installed.


Will ubuntu ever have an automatically updating release like chrome and iOS?

Forcing updates is a bad idea. What if one doesn't work well with someones system, what if they have a really important deadline and the install screws up, blocking them from their PC until they sort it? Forcing updates introduces a lack of control.

With a standard configuration updates are only a click away. With the standard update manager, security updates can be set to be automatic. For automating more upgrades you can use the unattended-upgrades package, with control over which packages update. Perhaps one day unattended-upgrades will have a nice GUI which to my knowledge it doesn't yet.

As for actually doing distro-upgrades that is the sort of thing you really want to ask people about first. Are you happy with your GUI changing, some packages perhaps not being supported, and a really the update taking a long time? But still that can be only a click away.


Groups are intended to provide a broader level of ownership than just per user, to allow multiple users to collaborate and share files without necessarily allowing every user on the system to edit them.

The file /etc/group lists all groups on your system.

The chgrp command allows you to change which group owns a file.
I think this is OK. In theory, it means that if your user account is compromised, the secondary drive would be vulnerable (whereas if root owns it, the attacker would need to know your password to su to affect the drive), but in practice your personal data is already in trouble if this happens anyway. Personally I think of my external drive as an extension of my home directory, since I just use it as an extra place to store large files.
In general, yes, you should avoid using permissions of 777 for anything. If you own the files, 755 or 644 give you just as much access and flexibility with less risk that another user (if you share the machine) or a compromised service (say if your httpd gets hacked) will corrupt your data.
A good rule of thumb is to use the lowest level of access that you can for whatever you're doing. This is why Ubuntu doesn't allow the root user to log in by default and instead encourages a model where you log in as a less powerful user and only elevate privileges when it's truly necessary for system maintenance. It means that if you accidentally run something that you shouldn't, the damage is limited based on that user's access.


PgAgent-III and psql can use unix socket connections, while it looks like StackBuilder is using TCP/IP. Does:

psql -h 127.0.0.1 postgres

produce the same error? If so, check postgresql.conf and see what listen_addresses is set to; it might be set not to listen on TCP/IP. See the documentation for details and how to change it: Runtime configuration parameters

If the port directive in postgresql.conf is set to port other than the default port 5432 - say 5433 - you must specify that everywhere you connect. For example:

psql -h 127.0.0.1 -p 5433 postgres


Change default application - Button grayed out?

GNOME programs show up with their with the names shown in their respective .desktop files, ie. nautilus shows as "Files", evince as "Document Viewer" etc...

The following menu is how it displays on my system (same pcmanfm-qt version 0.14.1)


GUI feature missing from full ubuntu installation 18.04

First get your packages sorted out

If you are getting errors downloading packages, you need to enable mirrors:

How can I get apt to use a mirror close to me, or choose a faster mirror?

Then run:

sudo apt update && sudo apt upgrade --fix-missing

This should fix any broken things with apt and your package library.

Next, reinstall the GUI

sudo apt install --reinstall ubuntu-session gdm3
sudo dpkg --configure -a
sudo dpkg-reconfigure gdm3

Start the X server

You can now reboot or start the server manually to make sure it works:

startx


YOGA710 - UBUNTU 16.04 - Touch Screen not working!

Try downloading the touch screen drivers for the Yoga 710 threw the terminal  , sometimes is just that or move to Ubuntu 17.04 (it has more compatibility in drivers ) and update the computer drivers and software .

That might solved your problem mine got fix thanks to that .


Ubuntu software center stuck in applying/canceling/searcing

I would try doing sudo killall software-center. That should terminate software center. You may need to do sudo killall dpkg if there's still the 'installation' stuffs in the background.

Or:

Try adding the -9 argument to them, so it's sudo killall -9 software-center and sudo killall -9 dpkg
Thensudo dpkg --configure -a
Finally sudo apt-get update && sudo apt-get upgrade


Change password on multiple servers with chpasswd

Your input redirections and here-strings are placed incorrectly. You are giving the here-string "sudopasswd" to the standard input of sudo -S, which takes precedence over piping the echo output (which gets lost this way).

What you can do is to let sudo start a Bash shell and run the echo and chpasswd pipeline in there, separating them from the rest:

ssh user@${i} 'sudo -S  <<< "sudopasswd" /bin/bash -c "echo user:newpassword |
                                                        /usr/sbin/chpasswd"'


2 TB Hard Drives and RAID 5 in home server

I also are trying to do something like that and I can share with you something I read along, but no hands on the job :) :

You can't just take the hard drive you have and use it in a RAID, you can destroy it;
With software RAID, you can use mdadm to build your RAID. First you can create a new RAID5 with 2 new hard drive, then copy the old hard drive to new RAID and in the end, join the old hard drive to the new RAID;
Green WD are cheap but you can have more problems.

To create the RAID with only two disks:

mdadm --create /dev/md0 --level=5 -n 2 /dev/disk1 /dev/disk2

and then to join the older disk

mdadm --add /dev/md0 /dev/disk0

It's not a very good manual for a beginner, but I hope give you the starting point.


Dual boot Ubuntu with Windows on Acer Aspire

@oldfred thanks very much for your support, links you shared really help me out. Following are the steps of the solution that works for me.

Press F2 to enter into BIOS and do following:

Set supervisor password from Security menu option.
Set BootMode to 'UEFI' from Boot menu option.
Enable SecureBoot from Boot menu option.
From Security menu option - Select 'UEFI file as trusted for
executing' press Enter then 'HDD0' appears press Enter then 'EFI'
appears press Enter then select 'ubuntu' option from the list (only
listed if you have ubuntu installed already) press Enter then choose
'shimx64.efi' (In my case it's the third entry) press Enter give it a
name and press Enter.
Go back to Boot menu option and under Boot priority goto
'ubuntu' item in the list and press F6 until it become top most item
in the list. Repeat same for 'Windows Boot manager' until it becomes
second top most item in the list.
Press F10 to save changes and exit.


Installing Cuda 10 and TensorFlow 2.0 Ubuntu 19.10

Installing Cuda 10 from the repositories, I had problems with unmet dependencies. After a lot of troubleshooting the sequence that worked for me was:

sudo apt install nvidia-driver-435
sudo apt install nvidia-cuda-toolkit

Then I had Cuda 10 installed. I don't know if this solves your problems with tensorflow.


Is it possible to install MySQL Server 5.7 on Ubuntu 19.10?

MySQL server 5.7 isn't available in the repositories of Eoan Ermine (19.10) but is available in Bionic Beaver (18.04) from Ubuntu's official repostories as well as MySQL's. You can install MySQL Server 5.7 on Eoan using Bionic's repository.

To use MySQL's repository for Ubuntu 18.04

First of all create a new text file with sudo privileges:

sudo nano /etc/apt/sources.list.d/mysql.list

Add these lines:

deb http://repo.mysql.com/apt/ubuntu/ bionic mysql-apt-config
deb http://repo.mysql.com/apt/ubuntu/ bionic mysql-5.7
deb http://repo.mysql.com/apt/ubuntu/ bionic mysql-tools
#deb http://repo.mysql.com/apt/ubuntu/ bionic mysql-tools-preview
deb-src http://repo.mysql.com/apt/ubuntu/ bionic mysql-5.7

You can comment/uncomment the repository according to the packages required. Save and exit using Ctrl+X followed by Y.
Then run

sudo apt update

You'll get an error, like

Err:1 http://repo.mysql.com/apt/ubuntu bionic InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY <some key value>

Add this key using

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys <key value>

Update and check which version of MySQL 5.7 is currently available

sudo apt update
apt-cache policy mysql-server

At the time of writing this answer, 5.7.29-1ubuntu18.04 was available.
Install the required MySQL version.

sudo apt install mysql-server=5.7.29-1ubuntu18.04

Note: For some reasons in my installation APT wasn't installing mysql-client while installing MySQL Server 5.7 which is a dependency of MySQL Community Server which in turn is a dependency of MySQL Server due to which dependency issues occured. To get out of that I needed to install MySQL client using APT first

sudo apt install mysql-client=5.7.29-1ubuntu18.04

To install using Ubuntu's repositories, add Ubuntu 18.04's official repositories, update the cache and instal MySQL 5.7. Fo that run:

echo "deb http://security.ubuntu.com/ubuntu/ bionic-security restricted main" | sudo tee /etc/apt/sources.list.d/bionic.list
sudo apt update
apt-cache policy mysql-server
sudo apt install mysql-server=5.7.29-0ubuntu0.18.04.1

I'd recommend to delete Bionic's repository after the installation since having repository information of other releases can sometime break the installation. To do that run

sudo rm /etc/apt/sources.list.d/bionic.list


How can I make Firefox open magnet-links in Transmission?

Open up Firefox and its preferences window.  Go to the "Applications" tab and you should see "magnet" on the list.  Click on "Always ask" and if Transmission does not appear as an option then click on  "Use other" and navigate to /usr/bin on your file system.  Look for "transmission" or "transmission-gtk" and click that.

Update: Firefox has changed so the above no longer works.  Instead, when you click on a magnet link, a "Launch Application" window will appear, from which you can choose to always associate an application (make sure to check the checkbox at the bottom to always use the chosen app).  To find the torrent app, choose "file system" on the left side, and then navigate to /usr/bin as described above.


I dont know what to do with Ubuntu ISO file

Don't open that iso file. You have to burn it into a flash drive in order to make it bootable as a Ubuntu live disk, therefore you can install Ubuntu in your machine.
Since you're in Windows you can use one of these tools to make the pendrive bootable.

Rufus (Recomanded)
Etcher
Win32 Disk Imager


3dsp BlueW2310U bluetooth/wireless combo has no driver support in 12.04 LTS

Patched 3DSP USB driver (tested on Ubuntu 12.04 with network manager)

NOTES: This driver was tested to be working fine with Wifi. BT was not tested yet. ALso, please check and make sure your device appears as USB device as in lsusb command.

https://github.com/binghuawu/3dsp


Upgraded to 19.04 now I have Nvidia package problems

Answering my own question ;-)
Current workaround/solution for this confirmed bug:

Backup file /var/lib/dpkg/status
edit the file as superuser, look for each section that starts with "Package: libnvidia-compute-410", remove not just that line, but that section. There might be more than one.
Save the file and issue the command sudo apt-get --fix-broken install which should now, not complain
You can then go ahead and sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade
Reboot and you will probably have the non-Nvidia driver, so go to software & updates > Additional drivers and install the Nvidia driver of your choice...and reboot again.

(this is not the official fix, just a workaround someone came up with)


VIDEOIO ERROR:V4L: Can't open camera by index 0

This might help: (see https://forums.zoneminder.com/viewtopic.php?t=23361)
Do the next:

sudo v4l2-ctl --list-devices

sudo chmod 777 /dev/video0

for each device

You seem to have repeat the chmod after a restart


How to run a program as a service (silent)?

Turn it to a daemon (service)
daemon --name="yourservicename" --output=log.txt sh yourscript.sh


Ubuntu 14.04 Bluetooth Magic Mouse doesn't pair (No agent available)

Problem was I didn't have an agent registered. Normally UI should do it. A quick solution is to run:

bluez-simple-agent

Do not background the process with the ampersand (&). The program will output Agent registered. Then, try to pair it again using the Bluetooth settings in system settings.

After you begin adding the mouse, you will be prompted for the PIN on the terminal. The PIN for the Apple Magic Mouse is 0000; type this in and press Enter. Your mouse should successfully pair back in the Bluetooth settings window.

After it has successfully paired, you can close the terminal window and end the bluez-simple-agent process without affecting your mouse's connectivity. Thanks to Szymon Janc.


Logitech K750: dead_circumflex and less interchanged

I found a partial answer myself: To change < and  ^ I added the following lines to the file ~/.Xmodmap

keycode 49 = less greater bar
keycode 94 = dead_circumflex degree notsign

Unfortunately these changes get lost after a reboot/logout and I have to call xmodpad ~/.Xmodmap again. How can I make this automatically happen?


I created a new file /etc/lightdm/lightdm.conf  and this solves the requirement

[SeatDefaults]
xserver-allow-tcp=true

[security]
DisallowTCP=false


xrdp - only root can successfully connect to remote desktop session

Just a guess here.  If you are logged on physically on the ubuntu machine with the non-root user account and you try to remote desktop using the exact same user account, you will notice that the rdp connection will close immediately after connecting to it...  This is a known behavior
You cannot use the same account to login concurrently locally and remotely to the ubuntu machine.  If this looks like your issue, try the following
logout from the local session on the ubuntu machine
try to remote desktop again using the same user account and you should have access to your remote desktop
Hope this help
Till next time
See ya


You should simply try this command:

sudo apt-get install openjdk-7-jre

It will install OpenJDK JRE 7 into your system. Running a server should not require the JDK.


What are the best LaTeX editor/compiler?

Texmaker is a very good cross-platform LaTeX editor. Installation link: Texmaker


This is normal behavior. os-prober sees the core of the system, not the desktop environment; and this is what it uses to create the boot menu.

The first listing, given as just Ubuntu, is whichever install is controlling grub on /dev/sda.

I'm assuming you installed Ubuntu first, followed by Xubuntu. The menu listings will depend on how you installed the bootloader.

If you installed the bootloader to /dev/sda when installing Xubuntu, then the first Ubuntu listing at the top is Xubuntu and the 2nd Ubntu 14.04 LTS listing is Ubuntu.

If while installing Xubuntu, you installed the bootloader to its partion, say /dev/sda3, then ran update-grub in Ubuntu; then the first listing is Ubuntu and the 2nd listing is Xubuntu.


No Sound in ARM HP Chromebook Ubuntu 14.04 with Crouton

Upgrading crouton didn't do the trick for me, until I realized you said you installed pulseaudio, so don't forget that step if you are having trouble.  A simple "sudo apt-get install pulseaudio" in trusty, and with the newest crouton, and at least the my C720, you should have sound.  (I did also install the restricted drivers,but not sure if that did anythin, but worth mentioning).


can i recover my windows xp files after ubuntu install?

You can't recover the filesystem, but you can try to recover some files with:

PhotoRec: http://www.cgsecurity.org/wiki/PhotoRec
ScalPel: http://www.digitalforensicssolutions.com/Scalpel

PS: Don't recover the files on the same disk!!!


Sound on youtube works, but no offline sound, why is it so?

If it is purely opening local files then the answer is more likely to be that you do not have the correct codec installed to decode the audio in the file.

You could start by trying to install these packages.  Getting the right gstreamer plugin combination does appear to occasionally be a black art but these are the ones I have installed right now:

  apt-get install gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-plugins-good gstreamer1.0-libav gstreamer1.0-fluendo-mp3

Failing that, you could try with "vlc" as an alternative more likely to work the first time.  Lastly if you open the video file on the command line, the terminal output may hint as to which decoder you are missing.  You could try this

  xdg-open /path/to/file.mkv


Try the following commands:

sudo apt-get update && apt-get upgrade && apt-get dist-upgrade
sudo apt-get -f install
sudo apt-get install git


How to transform a desktop version of Ubuntu ISO into a server one?

The server install runs this:

Used by Server install to choose what you want

sudo apt-get install tasksel
sudo tasksel

If you uninstall the meta-package, then you may just have the server. Not sure if it un-installs too much??

The key meta packages of Ubuntu are :
ubuntu-base (the whole base system which everybody should install)

ubuntu-desktop (the whole gnome environment)

kubuntu-desktop (the whole kde environment)

xubuntu-desktop (the whole xfce4 environment)

lubuntu-desktop (the whole LXDE desktop environment)

edubuntu-desktop (the whole kids/schools oriented gnome environment)

sudo apt-get purge ubuntu-desktop

Is it possible to install Ubuntu through network?


The package name is file-roller.  This was discovered using apt-cache search "archive manager".

From the docs:

Description-en: archive manager for GNOME
 File-roller is an archive manager for the GNOME environment. It allows you to:
 .
  * Create and modify archives.
  * View the content of an archive.
  * View a file contained in an archive.
  * Extract files from the archive.
 .
 File-roller supports the following formats:
  * Tar (.tar) archives, including those compressed with
    gzip (.tar.gz, .tgz), bzip (.tar.bz, .tbz), bzip2 (.tar.bz2, .tbz2),
    compress (.tar.Z, .taz), lzip (.tar.lz, .tlz), lzop (.tar.lzo, .tzo),
    lzma (.tar.lzma) and xz (.tar.xz)
  * Zip archives (.zip)
  * Jar archives (.jar, .ear, .war)
  * 7z archives (.7z)
  * iso9660 CD images (.iso)
  * Lha archives (.lzh)
  * Single files compressed with gzip (.gz), bzip (.bz), bzip2 (.bz2),
    compress (.Z), lzip (.lz), lzop (.lzo), lzma (.lzma) and xz (.xz)
 .
 File-roller doesn't perform archive operations by itself, but relies on
 standard tools for this.
Homepage: http://fileroller.sourceforge.net/


run Blender 2.49b on Ubuntu 16.04, 64bit

I can think of three options -

Compile blender yourself or find someone that maintains an old version of blender for recent systems. Old versions fail to work as they were compiled against old library versions that are no longer available, some small patching will most likely need to be done.
Setup an old system to run blender 2.49. You can install a second system to boot from or create a virtual setup using Xen or Qemu... this will allow you to have the old system that can still run 2.49 when you need to use it.
Create an import addon for the current version of blender. Blender's python API was completely changed in 2.50 so any old scripts from 2.49 will need to be re-written for the current version. You can get blender specific scripting help at blender.stackexchange.com, if you start by asking for help importing a file format you might get someone pointing you to an addon that has already been made or offering to help you start a new addon.


Chromium: Bad HTML5/Flash Video Performance

Make sure this is installed

sudo apt-get install chromium-codecs-ffmpeg-extra

It should be by default, then you can try this, it is Google's flash  plug in that is built into there release of Chrome built for chromium

sudo apt-get install pepperflashplugin-nonfree

Some users find that they need to tell Chromium about the plugin. To do this run:

sudo update-pepperflashplugin-nonfree --install

If this doesn’t work you may need to manually configure it. With Chromium fully closed/exited, run the following command in a Terminal to launch the appropriate file in a text editor:

sudo gedit /etc/chromium-browser/default

Add the following line at the end on a new line:

./usr/lib/pepflashplugin-installer/pepflashplayer.sh

Save and then close. Re-open Chromium and check in plug ins too see if you need to enable pepper or disable the old flash.

This may at least fix flash videos.


Install LAMP and Zend Framework on Server Version (EC2)

One very good guide for LAMP on Ubuntu Server is the Ubuntu Server Guide - LAMP.


/etc/grub.d/09_lowlatency and /etc/grub.d/10_linux double list kernel

Open /etc/grub.d/10_linux for editing
Look for kernel list loop:

machine=`uname -m`
case "x$machine" in
    xi?86 | xx86_64)
        list=`for i in /boot/vmlinuz-* /vmlinuz-* /boot/kernel-* ; do
                  if grub_file_is_not_garbage "$i" ; then echo -n "$i " ; fi
              done` ;;
    *)
        list=`for i in /boot/vmlinuz-* /boot/vmlinux-* /vmlinuz-* /vmlinux-* /boot/kernel-* ; do
                  if grub_file_is_not_garbage "$i" ; then echo -n "$i " ; fi
             done` ;;
esac

Add if clause to skip lowlatency kernels

machine=`uname -m`
case "x$machine" in
    xi?86 | xx86_64)
        list=`for i in /boot/vmlinuz-* /vmlinuz-* /boot/kernel-* ; do
                  if [ -z "${i##*lowlatency}" ] ; then continue ; fi
                  if grub_file_is_not_garbage "$i" ; then echo -n "$i " ; fi
              done` ;;
    *)
        list=`for i in /boot/vmlinuz-* /boot/vmlinux-* /vmlinuz-* /vmlinux-* /boot/kernel-* ; do
                  if [ -z "${i##*lowlatency}" ] ; then continue ; fi
                  if grub_file_is_not_garbage "$i" ; then echo -n "$i " ; fi
             done` ;;
esac

Update Grub list

sudo update-grub2


If you run the command sudo zfs get all it should list all the properties of you current zfs pools and file systems. One of those properties, if correctly set, should be mountpoint=.

Zfs will mount the pool automatically, unless you are using legacy mounts, mountpoint tells zfs where the pool should be mounted in your system by default. If not set you can do so with

sudo zfs set mountpoint=/foo_mount data

That will make zfs mount your data pool in to a designated foo_mount point of your choice.

After that is done and since root owns the mount point you can change the owner of the mount with

sudo chown -R user:user /foo_mount

That will make the user user and the group user own the mount point and everything inside it, adjust the command to assign correct user:group privileges to the mount point.


Why is LSHW Only listing one of my two HDDs?

That would be a bug, lshw categorized it incorrectly, please create a lp issue and link the bug to this post. [UPDATE] you could always use lsscsi which is specifically designed for this task and has been around for a long long time.


Nevermind. Apparently my drivers weren't up to date like I thought. Updated through the software updater. Everything works now.


Why does my Python script fail with syntax errors?

Those errors are not typical Python tracebacks. Those errors look like shell errors.

I think you are trying to run a Python script with Bash (or an another shell), i.e. you are doing something like:

bash url_test.py

Instead, you should use:

python url_test.py


Windows Boot Manager still present even after removing Windows 10

As pointed out by Parsa Mousavi in comments.
"Have you the folder /boot/efi/EFI/Microsoft/ in your SSD? If yes, you can delete it. I'm not 100% sure but I think that would be enough"
And yeah this did work.


I had the same issue, so the solution is to follow simply rules.
alias alias_name='command '

no other symbols between equal sign.
I had whitespaces between the sign and the source ~/.bashrc always failed for me.
so be attentive


How can I import an address book in Ubuntu-for-devices?

Importing using the answer from Ralph indeed worked. Thanks. You do need to make sure that you have no contacts without phone number (I had a couple of these in the address book I imported from Google).


bluetooth does not appear on ubuntu 14.04

Check the output and find dmesg:

dmesg | grep -i blue

Also update the firmware:

sudo apt-get install linux-firmware


There are multiple ways to set wobbly windows up.

Traditional method

The traditional way to do this is by using the CompizConfig Settings Manager (ccsm). Install it by searching for it in the Ubuntu Software Center or by entering in a terminal:

sudo apt-get install compizconfig-settings-manager

You can then  open it by searching for it in the Unity dash or by running ccsm in either the Alt+F2 prompt or a terminal.

Once in CompizConfig Settings Manager, look for the Wobbly Windows plugin under Effects:

All you should need to do is click the checkbox next to it to turn the plugin on, and windows should start jiggling around. You may have to restart compiz with a compiz --replace in the terminal or Alt+F2 if it doesn't take effect right away.

Within the plugin itself you should also be able to tweak some related settings to configure it just the way you want it.

  WARNING

  CompizConfig Settings Manager is known to break Unity if you mess
  around with certain settings or options in it, even ones that seem
  innocent enough. You are taking a risk by following these instructions
  or any other answers that recommend the use of CCSM.

Alternative method

If you want to enable wobbly windows but don't want to take the risks involved with using ccsm, you can also set this option using Ubuntu Tweak, under Tweaks > Compiz Settings > Desktop Effects:

See How do I install Ubuntu-Tweak? for installation instructions.


Couldn't installl NtopNG on Ubuntu 18.04 x64

Run sudo apt remove ntopng-data then try again.  You've got conflicting packages trying to write to the same file, which is a Bad Thing.


have ubuntu on clean SSD want to add windows

While I can't help you with installing Windows, I can help you with the partitioning.

Boot from an Ubuntu LiveCD or USB and choose "Try Ubuntu".  GParted is installed by default.  Fire up GParted and it will show you your partitions.  From here you're able to shrink your Linux partition.  Shrink it enough so you have enough room for Windows and whatever extra amount of free space you'll need.  Create a new NTFS Partition to fill up the free space.

From this point on, I would consult someone on SuperUser or elsewhere as someone else mentioned.


Codeblocks Permision denied after update from 12.10 to 13.04

I have solved by making the NTFS partition executable You find these steps if you search for How to get permission to compile a C program from a NTFS Hard Drive.

Follow these steps to make a NTFS partition executable:

Open a terminal and type

sudo blkid -c /dev/null

This command allow you to identify your NTFS drive and your UUID number. Example :

/dev/sdb1: LABEL="my_label" UUID="xxx" TYPE="ntfs"

Open the /etc/fstab file from terminal typing

gksudo gedit /etc/fstab

Don't edit the existing lines, but add new one at the end like this example:

UUID=xxx /media/my_label ntfs-3g defaults,auto,uid=1000,gid=1000,umask=002 0 0

NOTE: Replace the UUID number and the mounting point /media/my_label according to your situation!
Save the file and close the text editor.
Enter the next command in the terminal:

sudo mount -a

After I have done this it said that it can not be mounted, but after I have restarted Ubuntu it worked.
And restart Ubuntu. Done

Now, every time you mount your NTFS partition, you will be able to run executable files.


Grub Rescue: No such partition error ! Cannot boot from USB

Finally overcome the issue but it was tricky and long..

1. Reset BIOS

First, I decided to try the BIOS reset in order to remove the admin password that do not allow me to change boot order and give priority to USB. I completely disassemble the laptop (don't forget to get out the battery and power cable) and remove the CMOS battery for 10 minutes and put it back. After that I could enter in BIOS with admin privileges.

I think that part is not quite difficult, but a bit dangerous and could damage the laptop. It should be your last try to solve grub rescue or bios error.

2. Boot on USB flash drive

I created an USB live partition with the last Ubuntu Os from the .iso file thanks to rufus software. I choose MBR system (for BIOS or UEFI) and in NTFS format I think.

Then, I changed boot order in BIOS and I could boot on Ubuntu.

3. Fix grub bootloader

I follow the second section of that blog (without understanding exactly how lilo works) : https://mashtips.com/fix-grub-bootloader-after-deleting-ubuntu/amp/

4. Reboot on windows

After that, the computer booted directly on the recovery windows partition. As I've already used it (the reason of my issue) I press the cancel button, and I could boot on windows system partition. The final installation was quite long and the OS rebooted several times, but now everything seems ok.

Don't know if my description is very clear but it could help someone !


Newbie in Ubuntu. I got the exact same error messages in 2 new fresh installs of Ubuntu 16.04 on VMware player 12. One consequence of this problem was that all icons in the Ubuntu Software Manager ended up being blanks.

Additionally the error message stated:

UnreportableReason: You have some obsolete package versions installed. PLease upgrade the following packages...

I completed the update process:

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

Those steps resolved my problem.

note: apt-get upgrade left the gnome package and a few others kept back, so apt-get dist-upgrade allowed those left over packages to be installed. I understand there are some concerns about using apt-get dist-upgrade but since I had a fresh install of Ubuntu I went ahead with it and it solved my problem. Hope this helps.


mount does not work after migration to 18.04

Impossible to answer the question since you didn't post the mount command you used to connect to the server. So I am going to guess:

The version of samba you are using is not relevant because a CIFS mount is Linux kernel based. What is relevant is the version of the Linux kernel you are using.

Before kernel 4.13 CIFS defaulted to using SMB1 to connect to the server. The version of the kernel in 18.04 is set to negotiate the SMB dialect from SMB2.1 to SMB3.

So if your NAS is set up to only use SMB1 add an option to your cifs mount: vers=1.0 Or you can modify your NAS to go up to SMB3.


Why does clicking by mouse or touchpad sometimes stop working?

there is a fix on next kernel update.
https://www.ubuntuupdates.org/package/core/bionic/main/proposed/linux-hwe
https://bugs.launchpad.net/ubuntu/+source/linux-oem-osp1/+bug/1836020
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1835150


Unable to choose Ubuntu 13.10 during startup

maybe something went wrong with grub ... you can boot from a live distro and reinstall grub (here a tutorial) or you can also get something like "supergrub", choose Ubuntu in OS list and boot Ubuntu, do a grub update and then reboot from your HDU.

Cheers,

Silvia


Color problem on Kubuntu 16.04 - themes aren't applied

I'm guessing you've installed some other GTK based Desktop Environments (Such as Lubuntu or Xubuntu) in your Kubuntu installation. Though the theme changes, they revert back to the ugly Striped look after a reboot. The solution is installing gtk3-engines-breeze.

sudo apt-get install gtk3-engines-breeze kde-config-gtk-style

After installing, Open System Settings -> Application Style -> Gnome Application Style and Change the theme for both Gtk2 and Gtk3 to Breeze Dark.

If the theme doesn't change immediately after applying:

If all the theme component doesn't change to Breeze Dark immediately, Go to Settings -> Workspace Theme and select Breeze Theme by clicking it, this will activate the Apply button. Now, change the selection back to Breeze Dark Theme by clicking it and finally Click the Apply Button.


Why video played by VLC media player are blurred compared to MPV media player?

I did the following and it helped:
Go to Tools -> Preferences -> Show settings: All -> Video -> Output modules -> OpenGL
There set OpenGL extension to GLX and Open GL/GLES hardware to VA-API ... for X11 (as in my case I'm still using X11). Restart the player to see the effect!


Moving /sys to another partition without reinstalling

I'd like to move /sys

Don't bother

It's SysFS, a virtual file system. The kernel presents information to the userspace by this. It's not taking up space on your disk, it's not configurable.

  Sysfs is a virtual file system provided by Linux. Sysfs exports information about devices and drivers from the kernel device model to user space, and is also used for configuration.

  [...]

  sysfs is an in-memory filesystem that was originally based on ramfs.

  [...]

  Sysfs is used by several utilities to access information about hardware and its driver (kernel modules) such as udev or HAL. Scripts have been written to access information previously obtained via procfs, and some scripts configure device drivers and devices via their attributes.


Boot the computer from the same drive you've used to install.

From there, using the file manager, you can see the amount of damage caused and try to recover anything.


VMware what to download for a webserver&workstation?

There is only 1 Ubuntu version and all others are either older versions or derivatives (where the (lack of a) desktop is the difference) but all have the same core. The basic Ubuntu version is Ubuntu server (that one does not have a desktop).

In general I would advice Ubuntu server for this and a separate desktop system where you use SSH to copy files to and from the server. A desktop takes to much resources away from your webserver.


JVM is crashing randomly when trying to use Eclipse

I would switch to the 32-bit jre/jdk and file a bug report...once they sort it out back to 64-bit.  Alternately, you could try the binary installer from Sun directly instead of the openjdk, but this may mess with your dependencies and you'll have to set some environment variables in .profile or .bashrc


How do I automatically resolve server names on a customized .local SLD?

You may be interested in configuring additional search domains.

Depending on how your system is configured, it'll be one of two ways.

First Way: If your system is configured with /etc/network/interfaces

  WARNING: This section assumes that you have sudo or root access, and can edit your system configuration directly without the IT team making changes as an administrator.

If your system is static-IP'd with /etc/network/interfaces then you might have something like this in that file:

auto enp7s0
iface enp7s0 inet static
       address 10.75.250.20
       netmask 255.255.255.0
       gateway 10.75.250.1
       dns-nameserver 10.74.0.10 10.74.0.10
       dns-search foobar.baz

If this is the case, then just add the additional subdomains to your search domains and it'll work - so you'd see something like this:

auto enp7s0
iface enp7s0 inet static
       address 10.75.250.20
       netmask 255.255.255.0
       gateway 10.75.250.1
       dns-nameserver 10.74.0.10 10.74.0.10
       dns-search foobar.baz qa.foobar.baz

My guess is that if you're doing static configuration, you may need to specify the additional DNS Search Domains, which are quite possibly already being handed out by static DHCP reservations under the Windows DHCP system.

That said, if your network is DHCP and not statically configured, you'll see something else, like this in /etc/network/interfaces:

auto enp7s0
iface enp7s0 inet dhcp

If this is what you see, then you need to talk to your IT people and make sure they update the Search Domains option that DHCP is capable of sending out.  That way, they have all the intermediate subdomain portions populated so what you expect to happen will happen when you just try and go to a hostname directly.

You can define the search domains though if you really have to in a DHCP setup, like this:

auto enp7s0
iface enp7s0 inet dhcp
    dns-search foobar.baz qa.foobar.baz

Note that both of these /etc/network/interfaces approaches require you to edit the file as an administrator, and then reboot your system afterwards to apply the configuration changes properly.

Second Way: If you use Network Manager to configure your system

There's actually two cases here.  In both cases, once you've changed these configurations, you need to disconnect and reconnect using Network Manager.

Case A: Your network is statically configured.

If you go into Network Manager and the "Edit Connections" option in the network manager drop down menu, and edit the ethernet connection option (you probably only have one, called "Ethernet Connection 1" or similar):

You'll have to add the additional search domains to that search domains box, using commas or spaces to separate the search domains.  As such, you'll then be able to auto-query the 'search domains' to find the hostnames, as Windows already does.

Case B: Your network is dynamically configured.

If your network is dynamically configured, then you may want to talk to your IT team to make sure the DHCP assigned search domains are actually up to date with all the additional intermediate domain names in there.

But assuming it's just a case of not having all the search domains set up, and it's all DHCP, we'll see this kind of IPv4 settings:

If this is what you see, then like in the First Way section, you just need to add the additional intermediate domains (qa.foobar.baz for example) to the "Additional Search Domains" configuration option.

That said, you should probably still talk to the IT team if this is how it's configured - they aren't pushing the search domains of course and probably should be.


WNDA3100 wireless adapter has stopped working under Ubuntu 12.04

Just in case anyone else encountered this, I had to build and install ndiswrapper again after updating the kernel. The wifi dongle worked fine after this.


Ubuntu-one - host requires authentication

Workaround was presented in this bug report, check page for current fix status.

Start seahorse
Delete UbuntuOne token for https://ubuntuone.com


System administration: Password incorrect

Note: First to be clear, sudo requires the password of the user that wants super user to do something. Sudo's password is separate from root's password. The user must also be part of that OSs super user group. In Ubuntu that is "sudo"
Usual things to check are: Is/was caps lock active during password entry and if you usually do not use the US keyboard layout, if you might have entered a different password than you thought. Consult a us keyboard1 an retrace what you might have entered.
If that does not help, an option to recover access is to boot your system with a Live-CD and mount your root partition. An Ubuntu install disk will do. During boot up select "try" Ubuntu. From there you will need to discover your root partition.
[Rought steps]
$ sudo -s
# fdisk -l (discover your root partition, possibly by its specific size, filesystem)
# mkdir other_root
# mount /dev/your_root_partition other_root
# chroot other_root

(Option A: You know your password, but not part sudo group)
# usermod -a -G sudo your_username

(Option B: You are part of sudo group, but don't know your password)
# passwd your_username

-All done and reboot-

If in doubt, your just mount a suspected root partition and look around. If it contains folders like etc, usr, mnt then its likely your root partition.
There are also other ways to regaining root access with a Live-CD, like editing /etc/shadow file to reset password, or directly adding your user to /etc/sudoers, but using chroot might be the easier way.
US Keyboard Layout


Dual boot Lenovo Y400 with Windows 8 and Ubuntu 16.04.1 won't boot ubuntu since Nvidia driver update on WIndows

I think you can login to your linux in nomodeset:
when in grub, press e, then in the line that starts with linux, add "nomodeset" just before "quiet splash".
you will login to ubunutu and then update your kernel to the latest version.

I had some similar problems with some drivers that prevented my linux from booting. and also caused trouble while shutting down. managed to get in with nomodeset and after upgrading my kernel from 4.4.0 to v.4.8.3 the problems were solved.


Postfix using gmail relay without a domain name gets dns error

In /etc/postfix/main.cf set:

relayhost = smtp.gmail.com:587
relay_domains = gmail.com

then reload/restart postfix.


How can I set my Ubuntu 12.04 LTS to boot to console without GUI?

That instructions works like a charm to me in my Ubuntu 12.04.1

Change (edit) in /etc/default/grub file:

From:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

To:

GRUB_CMDLINE_LINUX_DEFAULT="text"

Now you must update the grub configs:

sudo update-grub

And its done!
After reboot, to start the gui just login and type:

sudo service lightdm start


Image Writer not working - missing partition table

This is the solution for Windows 10.
Please assume that /dev/sdx is the block device of the USB stick.
Note: there are little differences between < v1809 and >= v1809 that are noticed in screendump.
Open a terminal session, then:
sudo su
DEVICE=/dev/sdx

# wipe MBR
dd if=/dev/zero of=$DEVICE bs=1M count=1

# new partition table
fdisk ${DEVICE}
n
p
1
ENTER
ENTER
t
c
a
w

# new filesystem
mkfs.vfat ${DEVICE}1

# mount it
mkdir /mnt/usb
mount ${DEVICE}1 /mnt/usb

# win 10 as loop device
mkdir /mnt/Win10
mount -o loop /path/to/Win10_x64.iso /mnt/Win10

# copy files from iso to usb-stick:

# if win 10 version < 1809
  cp -a /mnt/Win10/* /mnt/usb

# if version >= 1809
  apt install wimtools
  rsync -avP --exclude='sources/install.wim' /mnt/Win10/ /mnt/usb/
  wimsplit /mnt/Win10/sources/install.wim /mnt/usb/sources/install.swm 2500

# clean up
umount /mnt/usb
umount /mnt/Win10
rm /mnt/usb
rm /mnt/Win10


Ubuntu Support for Shure MV7 USB Microphone

Pulseaudio seems to be interrogating the MV7 in a way that causes it to reset. As a test, try to pulseaudio --kill and then plug the MV7 in (while making sure that pulseaudio has not launched from any other sources)
If you can manage switch the configuration within pavucontrol/Pulse Audio Volume Control so that it uses the profile "Multichannel Input" or "Mono Input", it should come up without going into the restart loop and let you use just about all of the mic's functions. The headphone monitor within the mic will still work, however, you will just not be able to send audio from other sources up into the mic.


You can check the folder /var/log/ where you can find all log files. Check syslog for the system log


How to install Apache with Openssl 1.0.1?

Yes, you can compile it yourself.

Download OpenSSL 1.0.1f:

wget http://www.openssl.org/source/openssl-1.0.1f.tar.gz

Extract openssl-1.0.1f.tar.gz:

tar -xvzf openssl-1.0.1f.tar.gz

Enter the created directory:

cd openssl-1.0.1f

Configure OpenSSL:

./config

Compile OpenSSL:

make

Test if everything went right:

make test

Install OpenSSL:

sudo make install

Now OpenSSL is installed on your PC and you can test it.


Cannot store VPN username in Ubuntu 20.04

So I managed to figure it out by following advice from this thread, Basically I had to to use the following format for my .nmonnection file:
[vnp-secrets]
form:frmLogin:realm=<realm>
form:frmLogin:username=<username>

So instead of using the form form:main.username=<username>, I changed main to frmLogin. This makes sense as my login prompt says "frmLogin", althought I am not sure what an "frmLogin" is...


when trying to update 14.10 get message "you are not allowed to preform this action"

I had the exact same problem. Something gone wrong in the upgrade process and there is a problem that Ubuntu doesn't ask your admin password to elevate the user privileges.

I didn't know what the problematic package was, so what I did is a full reconfigure-reinstall of every package using the following script.

#!/bin/bash

for pkg in `dpkg --get-selections | awk '{print $1}' | egrep -v '(dpkg|apt|mysql|mythtv)'` ; do apt-get -y --force-yes install --reinstall $pkg ; done

Save this script as reinstall_all.sh

Open a Bash shell, change the script's owner to "root", and make it executable. Like this:

sudo chown root:root reinstall_all.sh
sudo chmod 755 reinstall_all.sh

And finally execute it:

sudo ./reinstall_all.sh

Now sit back relax and drink a nice coffee.

Source: http://ubuntuforums.org/showthread.php?t=735693

I hope that helps.


Ubuntu 15.04 : Sound, keyboard, terminal shortcut stopped working

Try to turn off or on shortCuts(Commands) in CompizConfig Setting Manager (Icon with keyboards keys y+z+Ctrl). This solved my problems with shortcuts in Unity Ubuntu 15.04.