mplayer
Try this.
mplayer http://80.237.154.83:8120

The IP-address of an online radio station can be found over at Xat radio search.
My result :

mplayer in IPv4 networks
If your router only works with IPv4, you will need to add the option -prefer-ipv4. More recent mplayer versions require this.
mplayer -prefer-ipv4 http://80.237.154.83:8120


19.10 Nautilus Terminal causes failure to fetch launchpad.net

https://www.linuxuprising.com/2018/09/get-terminal-embedded-in-nautilus-file.html says

"You can download the DEB packages directly from the PPA source, and install them on Ubuntu 19.10 Eoan Ermine (you can download the packages from the PPA for Ubuntu 18.04 or 19.04 too, in case you don't want to add the PPA). You need to download and install the following packages from this PPA:

nautilus-terminal and python-nautilus-terminal (don't install python3-nautilus-terminal)."

That same web page also illustrates an alternate Python-based method to install it. That requires pip , python-psutil, and the Nautilus Python bindings, which can be installed by

sudo apt install python-pip python-nautilus python-psutil

Run pip to install (or upgrade from an older version) the Nautilus Terminal extension for your user, then restart Nautilus, with

python2 -m pip install --user --upgrade nautilus_terminal && nautilus -q

dconf-editor can be installed to customize how you invoke the terminal

sudo apt install dconf-editor

Then you may change Nautilus Terminal settings by opening the Dconf Editor and navigating to org > flozz > nautilus-terminal.


Installed Ubuntu, now I get "fatal err. not os detected

Without knowing exactly what you did I would guess you have broken your boot loader.

Look at this question and try the second method How can I repair grub? (How to get Ubuntu back after installing Windows?)

boot from live cd and run these commands

sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair


Will Ubuntu on Local disk D be affected when I reinstall Windows 7 on Local Disk C

Reinstalling Windows on a separate drive will affect the Ubuntu installation in only one way if the installation is done correctly:

Windows will reinstall its own boot loader over Ubuntu's Grub boot loader. This will usually cause the machine to boot directly to Windows, not even giving you the chance to select Ubuntu.

This issue can be fixed here: How can I repair grub? (How to get Ubuntu back after installing Windows?)

To ensure the installation is safe, and it doesn't erase Ubuntu, make sure Windows never touches the D: drive (if that is where Ubuntu is installed). Only select the C: drive install, and triple check to make sure the D: drive isn't formatted as a Data or Backup drive.

Only now do I realize that "D:" and "C:" drive icon text make faces representing which drives are okay for Windows to modify.


What are kswapd0, kworker/num:num, ksoftirqd/num?

This are kernel processes. kswapd is basically responsible for the swap space management. If it gets busy that's usually a sign that you are low on RAM. Quite likely it causes the HD activity, which in turn keeps kworker and ksoftirqd busy.

See Kworker, what is it and why is it hogging so much CPU? and Why is ksoftirqd/0 process using all my cpu? for an explanation about those processes.


Why would my server's SSH key regenerated on an apt-get upgrade?

I actually talked with someone at DigitalOcean and they explained that when an upgrade happens, the node may be bounced from one supervisor to another.

In order for their nodes to function, they need access to the running node and they use those keys. Each supervisor will make use of different keys. So just a jump will force the regeneration of new keys.

So the fact that the key changed is benign as far as we are concerned, although it is problematic when you have automatic processes that count on those keys to never change.


How does the docky show desktop Docklet work

I'll admit, I'm also curious to know but there is a package that control the behaviour without needing to get under the bonnet.

sudo apt-get install wmctrl

From there you can run:

wmctrl -k on  # hides the desktop
wmctrl -k off # restores

Here's a script for toggling (Credit to Jeff.Smith on Ubuntu Forums):

#!/bin/sh
if wmctrl -m | grep "mode: ON"; then
    exec wmctrl -k off
else
    exec wmctrl -k on
fi

Save that somewhere, chmod +x it and create a launcher for it and you're done.


The only useful information I found was dated back to 2007 talking about problems with the Kyocera. Since then there were several fixes which you can find in the following links:

Driver - http://sourceforge.net/projects/kyo-fs1016mfp/

Information - http://www.openprinting.org/printer/Kyocera/Kyocera-FS-1016MFP (Actually the only 1016 model I found)

Information - http://www.openprinting.org/printer/Kyocera/Kyocera-KM-1820

Printing Database - http://www.openprinting.org/printers (So you can check the rest of them. I am pretty sure all of them work except the TMU which might actually be a typo and it might be TM.)

La unica informacion util que encontre fue de 2007 donde hablaban de un problema con la Kyocera. Desde entonces se han reparado varios problemas. Aqui te dejo los siguientes links que te ayudaran:

Controladora - http://sourceforge.net/projects/kyo-fs1016mfp/

Informacion - http://www.openprinting.org/printer/Kyocera/Kyocera-FS-1016MFP (La unica 1016 que encontre)

Informacion - http://www.openprinting.org/printer/Kyocera/Kyocera-KM-1820

Base de Datos de Impresoras - http://www.openprinting.org/printers (Asi puedes chequear tu mismo las demas que tengas en la empresa. Estoy seguro que funcionaran todas excepto la TMU. Si en realidad es TM entonces tambien apareceran en la lista.)


Determining what your audio device is can be accomplished with the command:

sudo lshw -C multimedia

which will provide results similar to this:

*-multimedia
   description: Audio device
   product: 200 Series PCH HD Audio
   vendor: Intel Corporation
   physical id: 1f.3
   bus info: pci@0000:00:1f.3
   version: 00
   width: 64 bits
   clock: 33MHz
   capabilities: pm msi bus_master cap_list
   configuration: driver=snd_hda_intel latency=32
   resources: irq:148 memory:f7340000-f7343fff memory:f7320000-f732ffff

As xiota indicates it's unlikely that you need a new sound card. You might just need to open Settings > Sound and turn off over-amplification as shown below:

Or System Settings > Sound and uncheck the box to allow volume above 100% as seen here:

We don't do hardware recommendations here, but you might find out sister site Hardware Recommendations useful if you do conclude that you need a new sound card.


Netgear a7000 usb wifi is not seen in 18.04

I found a solution: create an account at GitHub.
use the following:

sudo apt-get update
sudo apt-get install git dkms
git clone https://github.com/zebulon2/rtl8814au.git (will ask for username and password.
sudo dkms add ./rtl8814au
sudo dkms build -m rtl8814au -v 4.3.21
sudo dkms install -m rtl8814au -v 4.3.21


Java console running in a screen autostart on Ubuntu

I would suggest you make a start script for your java application.
Starting script: /usr/local/bin/myapp-start.sh
Make the script executable and place it in usr/local/bin and simply run it as any other application or add it to startp

example script:

#!/bin/bash

java -jar my_app.jar

To autostart you can add a line in .bash and make a .desktop file in ~/.config/autostart/

[Desktop Entry]
Type=Application
Exec=command
Name=name
Comment=whatever
EOF


There was dependency issue due to which package "freeglut3-dev" was not being installed.I downgraded the package version by running$ sudo aptitude install freeglut3 freeglut3-devRest of things were done by terminal itself.


I am one of the developers of Format Junkie, so I kind of know how avconv works, and I assure you that it sends all the important data to stderr. So, you need to grep from stderr. Actually, you redirect all the stderr to stdout and then grep:

For example:

avconv -i 111.avi 2>&1 | grep Duration

correctly outputs:

  Duration: 00:01:05.02, start: 0.000000, bitrate: 2910 kb/s

The reason why the grep works only in some of avconv's output is that this specific output is being given to stdout, not to stderr, and so it is successfully piped to grep.

Normally stderr is used so as to output error messages and stdout so as to output normal informative messages.

It is not bad that both stderr and stdout exist, because you can filter the output the way you want. For example, consider the following:

command > log.txt 2> error_log.txt

This will output all the normal output (stdout) to log.txt and all errors (stderr) to error_log.txt

I don't know why avconv specifically uses stderr to display its messages, though.


A hard crash like that usually indicates a hardware failure, or at least something closely related to it like a driver bug or firmware issue. Thus, I recommend you first run a SMART test on the hard disk. This should squawk if it finds problems with the hard disk itself, which might be causing problems if the disk is failing.

My suspicion, though, is that it's the firmware, and in particular access to the NVRAM via the efibootmgr utility, that's causing the failure. To test this, try running sudo efibootmgr -v. If that succeeds, try making some small change to the boot setup. For instance, you're likely to see several options in the BootOrder line. Keep the first one the same and swap the order of two of the last items by using -o. For instance, suppose sudo efibootmgr -v shows:

BootOrder: 0000,0001,0002,0003

You could swap those last two items (which should have no real effect) by typing:

sudo efibootmgr -o 0,1,3,2

If this action crashes your computer, then you've identified the culprit. If I'm right, though, this may not be very helpful, since I've never heard of this specific problem before, so I can't say with certainty what the solution is. My guess is that you'll have to either update your firmware or go into the firmware setup utility and reset it to its defaults (clearing the NVRAM entries). Either action could require recovery of your boot process by using efibootmgr from an emergency boot system, by running Boot Repair, or by taking other actions.


Please keep /home itself at the same disk that has your system files and ONLY move your personal directories. Move the directories in your /home to your new destination and alter ~./config/users-dirs.dirs to reflect this change.

Reason: in the case your 2nd disk does not mount your /home is not mounted leaving you with a broken system.

  I have not yet stated a mount point in fstab.

You do need to do this first though. Have a look at ...

How do I add an additional hard drive?
Adding second hard drive
Automatic mount of second drive in 15.04


AVRCP with Bluez - how to control audio on a phone from Ubuntu

After lots of digging I figured a few things out:

AVRCP is working fine, but in Bluez > 5. Ubuntu currently (14.04) has Bluez4, so building from source is needed.
The way to communicate with the Bluez stack is through DBus messages, the d-feet tool is very handy in this
PulseAudio and oFono are also needed in order to get the most of the bluetooth stack - all need to be built from source, because some of the bluetooth features are not supported in the prepackaged versions.


How do i create a partition, so all users can read wrie execute files without any permissions?

Wouldn't a fat32 partition work for viewing media and writing new media, since fat32 doesn't save any owner permissions? May be a problem for executing a file, since it doesn't save executable permissions either, but it sounds like you won't actually be storing executable files there, just media (movies, pics, etc).

Or for a permissions-aware FS (like ext) making a group containing all the wanted users, then giving that group rwx permissions for the folders in question should work... (may have trouble with new folders though, not sure there)


Where does luakit keep my bookmarks file?

They should be in your Home folder in ~/.local/share/luakit/bookmarks.


Cheese does not recognize Internal webcam in Ubuntu 16.04 LTS

This is a bug in gstreamer fixed in version 1.14.2: https://bugzilla.gnome.org/show_bug.cgi?id=796789.

I fixed it by manually downloading the relevant packages for cosmic, that have already been updated to use this version. So something like:

mkdir tmp
cd tmp
wget https://launchpad.net/ubuntu/+source/gst-plugins-good1.0/1.14.2-1ubuntu3/+build/15172738/+files/libgstreamer-plugins-good1.0-0_1.14.2-1ubuntu3_amd64.deb https://launchpad.net/ubuntu/+source/gst-plugins-good1.0/1.14.2-1ubuntu3/+build/15172738/+files/gstreamer1.0-plugins-good_1.14.2-1ubuntu3_amd64.deb
sudo dpkg -i *.deb


Problems using custom keyboard layout / symbols file

each symbol file should have a default layout.

default partial alphanumeric_keys
xkb_symbols "basic"

hope this help


How to install Adobe Flash Player for Firefox?

You can use an alternative gnash available for Ubuntu Xenial and Bionic:
sudo add-apt-repository universe
sudo apt install gnash browser-plugin-gnash

Description of browser-plugin-gnash:

GNU Shockwave Flash (SWF) player - Plugin for Mozilla and derivatives


Deleted entire harddisk. Now my laptop won't boot anything and stuck at grub rescue!

If you are getting an error when trying to boot from the Ubuntu Live CD, it might be corrupted. You should create an Ubuntu Live USB, or another Live CD, and boot from that.


Ubuntu 18.04.1 LTS Can't Enable Screen Sharing

This happened to me,  here is how I corrected it.

My network showed "wired-unmanaged"; to correct this,  I had to do the following:

  Note: If you're interested in a set of commands to copy/paste into your terminal, I'd encourage you to review these instructions first, before running the commands listed at the end of this answer.

cd /etc/NetworkManager
save NetworkManager.conf to NetworkManager.orig (as a backup)
sudo vi NetworkManager.conf

Change managed=false to managed=true

New file looks like this:

[main]
    plugins=ifupdown,keyfile
[ifupdown]
    managed=true
[device]
    wifi.scan-rand-mac-address=no

sudo service network-manager restart
cd /etc/netplan
sudo vi 50-cloud-init.yaml

Add this line just below network:

renderer: NetworkManager

New file looks similar to this (ensure the renderer line is indented as shown):

network:
    renderer: NetworkManager
    ethernets:
        enp3s0:
            addresses: []
            dhcp4: true
version: 2

save
sudo netplan apply
I had then to restart the computer for this to be effective.
After restart the network will now show "wired-connected"
Then you can go to Settings » Sharing » Screen Sharing

You should now be able to toggle Screen Sharing to ON
Under Networks (bottom of dialog), toggle those ON as well

Commands

If all you're looking for is some terminal commands, and you haven't made any manual changes to the files mentioned in the instructions above, running the commands below should take care of the file modifications:

cd /etc/NetworkManager
sudo cp NetworkManager.conf NetworkManager.orig
# Change NetworkManager.conf: 'managed=false' to 'managed=true'
sudo sed -i 's/managed=false/managed=true/g' NetworkManager.conf
sudo service network-manager restart
cd /etc/netplan
# Ensure networks are managed by NetworkManager
# Whitespace in this command is important!
sudo sed -i '/^network:/a \    renderer: NetworkManager' 50-cloud-init.yaml
sudo netplan apply
# Restart your machine, or uncomment one of the lines below:
#sudo shutdown -r now
#gnome-session-quit --reboot

After you run these commands, refer to the final step above to enable screen sharing.


/home/user can be shorted by using ~

~/User/Folder/Subfolder/File

You can shorten your typing with tab completion, type the name of what you are looking for in your directory to the most uniq character (if you don't know it is okay tab will list it) and hit tab. So if your home directory contains the folders User, Unless, work_dir You will type:

~/Us[hit tab here]/

and your shell should complete the name for you. You can continue doing this until you path is full completed

~/Us[hit tab here]/F[tab]/S[tab]/F[tab]

This should speed things up a bit.

Also if you are accessing this file very often you could save it as a bash alias
vim .bashrc
add the line: alias open_doc ='vim /home/user/User/Folder/Subfolder/File'

Save your bashrc and then source it source ~/.bashrc

Now if you type open_doc into your shell prompt it will complete the command you saved as an alias.

Apologies if these are to obvious.


15.04 USB Camera connection detection stopped working

I had the same thing with my Fuji X10. Even under devices the camera didn't show.

Going to Dolphin an type in "camera:" in the url bar. This way it is able to access the camera. At least this offers a way to access your pictures, although be it not automatic.

It seems to be related to this bug: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1310303


I found why this is happening.

I'm not sure this is a bug or a change in logic but when you search in Dash and no applications match the search, you have to clear the search box before searching for applications again.

Simply clearing the search box, waiting till the indicator stops turning and searching again "solves" or better works around the problem.


Can't uninstall apps that are being used on wine

Wine has an interface for uninstalling software, just run winecfg. If this doesn't work, you could remove the .wine directory in your home folder, but this will remove any program installed using wine.

I think you should also take a look at playonlinux. It provides you with the possibility to use different wine versions for different programs and easily uninstall software as each program has it's own environment which can be deleted as a whole so you don't have to uninstall any software.


Conda is, by definition and design, the package manager for the Python distribution Anaconda, and thus maintains its own Python versions, i.e. a complete Python installation including executables and the Python Standard libraries, inside the installation directory for the Anaconda distribution. It does not use the Python Version provided by the system. And as long as Anaconda‘s maintainers do not provide Python 3.8 on their official base channel, there is no easy way to use Python 3.8 through Anaconda, unless you find an alternate, unofficial channel that provides it - you can always specify another channel when installing packages, like for example for the community-maintained conda-forge (which has many additional packages compared to the default channel, but afaik not yet python3.8 so the below might not work yet):

conda install -c conda-forge python=3.8

Please be aware that this might introduce additional dependencies from said channel and I strongly recommend to create a new conda (virtual) environment when trying out new packages, or for any new project for that matter.

Please refer to the conda help function, Anaconda manual, and askubuntu and stackoverflow sites for more Information on how to work with conda environments and channels, and have fun playing all the new features of Python 3.8 :)


try to to split the capacity of the drive to small partitions like 1TB each, or 500gb, i think it will not have issues, although it is a bit strange to see this happen


How do I remove a folder from the Ubuntu One "Folders" tab

In nautilus, right click on the folder, enter the Ubuntu One submenu, click on "Stop Synchronizing This Folder". The same menu is also available under "File" when viewing the folder:

If the folder contains published files or shared folders you'll be warned,

And that's it, the folder is no longer extant. You need to refresh the nautilus window for the menu to be updated, however.

Alternatively, u1sdtool is a commandline tool with which you can list, create, delete, subscribe and unsubscribe from folders.


Python: module not found, immediately after installing it

I also get the same error when i start using "kali linux" . Maybe your python3 is try to find your script's module in the "/usr/local/lib/python3.x" directory . So if that module is not there then the ModuleNotFoundError: No module named 'dedupe' error is happening .

Actually I don't have permanent solution, but you can try following one ..........

To solve that problem simpley go to that directory where the module is present to see the directory just run sudo pip3 install "moduleName" command on the "terminal"
you probably get something like this :-
                            "Requirement already satisfied: 'moduleName' in /usr/local/lib/python3.x/dist-packages (moduleVersion)"
                           or
                            "Requirement already satisfied: 'moduleName' in /usr/lib/python3/dist-packages (moduleVersion)".

Then just copy that `Module` to the `/usr/local/lib/python3.` directory......

Hopefully it should work.......
  Thank you...


configure lightdm greeter in ubuntu 14.04

I have found answer to my problem and hope it will also serve best to the others who need it.

It's so simple. Just make some changes to .conf file and its done.

I had to make changes to two .conf files in order to get what I want.

1. Disable Guest Login

In Ubuntu 14.04 the .conf file to be edited has been moved to /usr/share/lightdm/lightdm.conf.d from /etc/lightdm/

run these commands :

sudo gedit /usr/share/lightdm/lightdm.conf.d/50-unity-greeter.conf

add line :

allow-guest=false

2. Enable Manual login

since, in versions earlier than 14.04 .conf file is located in /etc/lightdm/ directory which has been moved to /usr/share/lightdm/lidhtdm.conf.d/ , we need to create a lightdm.conf file in /etc/lightdm directory

run this command :

sudo gedit /etc/lightdm/lightdm.conf

add lines :

[SeatDefaults]
greeter-show-manual-login=true
greeter-hide-users=true

Thats it....
Now, restart your pc and see the change.

Screenshot...

[A full totorial is here : Customise Login Screen NetPuppet]


Nvidia driver installation results in resolution change to 800x600 with Xubuntu 10.04 (can't change)

Nvidia package has not installed properly, (dependency problem) therefore after resolving crashing issue, it is uninstalled again.
Now you have not any installed driver and resolution goes 800x600.

Try  Additional Driver tool for installing NVidia driver automatically.
Try installing Nvidia proprietary driver. If you failed to installing that, try to installing "Vesa" driver.
Also you can use following PPA to installing NVidia driver
sudo apt-add-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
sudo apt-get install nvidia-current

Good luck


Can I stop KDE from making a copy of a file I just overwrote?

You can disable this by opening your editor of text, then go to preferences and disable automatic backup.

If you are using kedit, then go to settings > configure > disable backups when saving text.


RStudio 1.4 knitting to PDF with bash script gives error: LaTeX Error: File `framed.sty' not found

You have to install single package with this framed.sty file by:
sudo apt-get install texlive-latex-extra


Bash does not remember programs with non 0 exit status in history

For my it still works as you describe it should, but maybe you need to look for something in the ~/.bashrc file that prevents some commands from showing up in the history, maybe something as described in here:
http://blog.dhampir.no/content/avoiding-invalid-commands-in-bash-history


Choose lightdm login screen location in multi monitor setup

At least with Ubuntu 16.04, which includes lightdm-gtk-greeeter 2.0.1, the following entry in /etc/lightdm/lightdm-gtk-greeter.conf can be used to fix the initial position of the login dialog on a certain monitor:

[greeter]
active-monitor=0

The xrandr workaround didn't work here, too.


Disable ATI Proprietary drivers by command line?

Boot into recovery mode
Remount read/write
Enter root shell
Go to the location where you downloaded the installer then: ./ati* --uninstall
Reboot:)

But, you can also get the drivers working by following the steps above, then follow steps 1 to 3 again and replace step 4 with: ./ati* --install.

Then type: aticonfig --initial

Then reboot.

This is how I got the latest drivers from ati working.


Upstart on Ubuntu currently does not enable user jobs by default. This situation will change when Ubuntu Raring is released. For the time being, you need to follow the process documented in http://upstart.ubuntu.com/cookbook/#enabling and copy the Upstart.conf dbus configuration file from the upstream upstart project here:

http://bazaar.launchpad.net/~upstart-devel/upstart/trunk/view/1301/dbus/Upstart.conf


Connecting to ubuntu mirror repository server

[Based on comments solution]

It seems like something might have changed your http request assuming your server is managed properly, as Ubuntu's http requests are always acting the same.

Things like a firewall or other network equipment in the middle of the client and the server might be the cause.

I would first suggest trying to browse the url or try a simple wget command from the terminal to the full request uri of the debian and assure, that is the problem.
If they work, you can actually use them to manually download a debian and install it, tho it is not the most efficient way to do so.

There is no simple solution for such situation, as it depends on your organization's security policy and server management.
You can try other source list configurations as documented by Debian: SOURCES.LIST(5), but it really depends on your network and repository configurations.

Regarding update 2: a connection fail error means you were unable to reach the server. Unlike "connection refused" or "connection reset", where the http request has reached the server but it won't process the request (wrong port number, wrong request uri and etc).

Things you may try: use the debugging options as documented by Debian:
APT.CONF(5) under the debugging section. Or if your organization allows you to: Use wireshark or tcpdump to follow the whole http request session. This might be another cause of a firewall or network configuration related error.


Can access services on my machine by localhost:port but cannot by ip:port

By default, SSH listens on all interfaces. I think the services you're running are only listening on the localhost interface (lo or 127.0.0.1). By correctly configuring the relevant service you can listen on all interfaces.

For example, Tor could be configured thus:

SocksListenAddress 0.0.0.0:8050

Apache VirtualHost definitions specify *:80, and so on.


Evolution can display contact images in messages, when the options are enabled in Mail Preferences, from:

The Face header in the message itself.
The image in the Contact as stored in an address book within Evolution itself.
The contact's image from Gravatar, if the e-mail used has an associated picture.


intex modem not recognised in Ubuntu 14.04 LTS

if your modem LED is not blinking but showing this "mobile broadband" in available network list. in that case you have to manually set your mobile broadband.
go to system setting then click on network. in network list there will show "mobile broadband". click on it, in right side there there is "network" with a blank space. click on it. now click on add new connection. give your country name and service provider name and follow any other steps.
may be that after connected to your network, still LED may not blink.
i have intex modem and i had the same problem.


The 1-liner is not an actual one-liner, but contains escaped characters (a representative sample):

hQ0MjO4DGWN\/Czoj8IR\/LX1z8\ne+M

The \ are escaped, as is the newline (\n). That's what's causing the error, I'd guess. Fix your script.

$ curl 'http://pastebin.com/raw.php?i=Qs35MkS1' -s | sed 's/\n//g;s;\\;;g' | base64 -d > blah.zip
$ curl 'http://pastebin.com/raw.php?i=Qs35MkS1' -s | base64 -d > blah.zip
base64: invalid input


How do I uninstall Telegram which was installed from the tar.xz obtained from the official website?

This Telegram app just installs a .desktop file, its icon and a folder where it saves its data:

Remove the folder with the Telegram and Updater file.

Then run:

rm -Rf \
  ~/.local/share/icons/telegram.png \
  ~/.local/share/applications/telegramdesktop.desktop \
  ~/.local/share/TelegramDesktop


Firefox add-ons incompatible with the current version

Sometimes it happens if add-on makers don't upgrade as fast as Firefox.

I have a round-about way:

1) download the xpi (just open in any other browser if installing from addons-dot-mozilla[-dot-com

2) open the xpi, in that there is install.rdf

3) search for tags <em:minVersion>4.0</em:minVersion> <em:maxVersion>13.*</em:maxVersion>

4) change the values to fit in your version.
Cheers :)


Is it possible to have .bashrc outside home directory?

You can use the --rcfile "file" bash option, that read "file" instead of /etc/bash.bashrc and ~/.bashrc.

You can create a launcher for gnome-terminal that in turns launch bash with that option.


Webcam software with live chroma keying/green screen

After some help I found that the easiest way to accomplish this is by using Open Broadcaster Software:

  Free and open source software for video recording and live streaming.
  Download and start streaming quickly and easily on Windows, Mac or
  Linux.

After installing and launching the software click on the + button under Sources to add your webcam as an input source.

Give your input a name in case you'll be using multiple camera inputs. Choose your webcam (if you have more than one) and then press OK. Back in the main window right click on the webcam source and select Filters

Press on the + button under Effect Filters and select Chroma Key and give it a new name.

From here you can select the colour that you wish to remove. You can choose from the presets or choose your own colour.

To see the full effect you'll need to have something in the background. In the main window select a new source. You can choose an image, video or additional camera.

Now you'll see the media source appear behind your webcam!


From Unity Dash you can search System Setting.

System Setting

Advance Setting / Gnome Tweak Tool / Tweak Tool

Installation:

sudo apt-get install gnome-tweak-tool

Ubuntu Tweak

Installation:

sudo add-apt-repository ppa:tualatrix/ppa
sudo apt-get update && sudo apt-get install ubuntu-tweak -y


Isn't RingCentral just a rebranded Zoom? Try Zoom's native Linux client (works in my Ubuntu 15.04 for a long time with updates that were coming out along the way) available for dl at http://zoom.us/download

Once in a meeting those 2 clients seem to look the same.


Answering my question by myself.

I think that at the beginning my question was little misleading.

The system reported me that the crash could happen because of third party library used by Gimp (/usr/local/lib/libz.so.1.2.7).

I removed /usr/local/lib/libz.so.1 symlink to /usr/local/lib/libz.so.1.2.7 and traced with strace that default library is used

access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/usr/local/lib/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/tls/x86_64/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/lib/x86_64-linux-gnu/tls/x86_64", 0x7fff82fc2f00) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/tls/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/lib/x86_64-linux-gnu/tls", 0x7fff82fc2f00) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/x86_64/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/lib/x86_64-linux-gnu/x86_64", 0x7fff82fc2f00) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libz.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P \0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=92720, ...}) = 0
mmap(NULL, 2187824, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f99b8b30000
mprotect(0x7f99b8b46000, 2093056, PROT_NONE) = 0
mmap(0x7f99b8d45000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x15000) = 0x7f99b8d45000
close(3)

That didn't fix the issue.

But after some additional research I think I've found related bug-report.


How do I get my files in alphabetical order?

In the File Upload window there is a Name column, where the files/folders are listed, and a Modified column where the last modified time is stated.

To view the files/folders alphabetically, click Name (surrounded with a red 'circle' above).


For 18.04 or newer...

boot to a Ubuntu Live DVD/USB
open a terminal window by pressing Ctrl+Alt+T
type sudo fdisk -l
identify the /dev/sdXX device name for your "Linux Filesystem"
type sudo fsck -f /dev/sdXX, replacing sdXX with the number you found earlier
repeat the fsck command if there were errors
type reboot


From the man page:

  It reads the file /etc/ca-certificates.conf. Each line gives a pathname
         of a CA certificate under  /usr/share/ca-certificates  that  should  be
         trusted.

My guess is that you did not make any changes to this file and thus did not specify that your new certificate should be considered trusted.


How can I stop sending my hostname via DHCP?

you can do it.

send host-name = gethostname();

This statement actually getting the host name of the system from the return value of function.

you can set it manually to some other name if you want.

send host-name =olathe ;

to send no host name: send host-name = ;


How to access xampp htdocs folder in Ubuntu 18.04.2

The htdocs folder can be found in /opt/lampp/.

You can navigate to your root folder from the file manager (nautilus by default), by clicking on Other locations from the sidebar, then Computer. From there you can find the opt folder that contains the lampp folder.

To make access to it easier, I suggest creating a symbolic link to it on your desktop with the following command:

ln -s /opt/lampp/htdocs/ ~/Desktop/htdocs/


How do I enable a mac-style global application menu in classic desktop edition?

Install the package indicator-applet-appmenu. Then right click on the panel, select 'Add to Panel...', select 'Indicator Applet Appmenu' and click 'Add'.


Is there a way to enable smooth scrolling for PDFs?

Try holding alt when pressing the arrow keys.

Found it out today.


sudo: /etc/sudoers is world writable on Azure

By mistake, I made sudoers file world-writable (sudo chmod o+w /etc/sudoers).

Sorry but that is not a mistake but a deliberate action. At my office you would get fired for doing something like that ...

On cloud instances you can not use a live session, grub rescue, nor use the system itself to fix this.

There is only 1 method when using cloud instances and it should be well explained on the usage pages for Azure: create a new instance, mount your disk into this instance as a 2nd disk and then chmod the file back to the correct permissions. And then reconnect the disk to the old instance.

This method should be 2nd nature when using cloud services. As well as making snapshots and restoring snapshots.


How to change default browser for wine steam game?

Have you tried just downloading steam through synaptic/ whatever default software installer is on your computer? Steam is supported in linux, so you can log in through the client without the need for WINE and a browser.

If you do need wine to run the game, I suggest downloading winetricks though the terminal with these commands:

wget  https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
chmod +x winetricks

then run it. click ok. select install a windows dll. choose a web browser to download.


How can I have my Ubuntu completely in Japanese (plus the standard typing)?

As a temporary measure you could set up Japanese input using anthy explained on this page.
Choose your favourite keyboard shortcut (I personally use Crtl+Space) and go into the advanced tab. From here, check the option "share the same input method among all applications." Now, you'll only need to hit the shortcut once.
I tested this myself, and it will only turn on if there is somewhere that you are typing, so when you launch your first application, hit the combination and you should be sorted for the rest of your session.


Copy paste a disk image with the graphical interface?

There are several possibilities.

No.1: The data inside of the RAM hasn't completely synced to ur hard drive yet, so system might be reading a corrupted image, thus prompt error. To avoid that, always run the "sync" command with root permission (normal user might work as well but just in case) after cloning the image with "dd", wait till it finishes (it'll just throw the command prompt back to u after it's done), then unmount the USB drive properly.

No.2: U've got a bad USB stick! This usually happens with cheap USB sticks that u can find on eBay, and they've modified the firmware on ur USB stick to trick the computer to show a number of storage that is larger than it actually is, but data that exceeds the actual storage will just overwrite previous data, thus cause corrupted files. So make sure u get ur USB stick from proper retailers.

No.3: Try other imaging solutions! In terms of backing up ur data, dd is probably the least effective solution. Try Clonezilla for example at HERE. There are way more options in Clonezilla that u can choose from, plus it only backs up the data part, throws the empty bytes away completely, and u can choose to apply compression on top of it.

Hope it'll help u out.


ubuntu on my nexus 7 manul download .img files not installing

Are you sure you're running adb/fastboot as root? Seems like fastboot is not able to run properly if not root.

Just a tip (unrelated to the question): first time, you should use fastboot boot. I'd never flash a recovery without trying whether it works or not...


No sound on headphones with sof-hda-dsp audio on ubuntu (and variants)

Bizarrely, changing the Input device to Headset Mono Microphone suddenly causes the output device to start working. I'm not sure why, but I thought this would be helpful to anyone to encounters this (if you know why, please let me know)


Add password option to default compress menu - 20.04

I created a very basic script to call it as a Nautilus (File Manager) Action. You can add this script as an action to your File Manager by using the FileManager-Actions Configuration Tool.
Install the FileManager-Actions Configuration Tool using:
$ sudo apt install filemanager-actions

My script uses zenity to display an input form. If zenity is not already installed, you can install it using:
$ sudo apt install zenity

The script is like this:
#!/bin/bash

if (( $# != 1 )) ; then
  aname=""
else
  aname="$(echo "$1"|sed -e 's/\.[^./]*$//').7z"
fi
answer=$(zenity --forms --title="Create Compressed File" \
 --text="Archive Name: $aname" --add-entry="New Archive Name:" \
 --add-password="Password:" --add-password="Confirm Password:")
case "$?" in
  1) echo "Cancelled" >&2 ; exit 1 ;;
  -1) echo "Error!" >&2 ; exit -1 ;;
  0) IFS="|" read -r newaname pass1 pass2 <<< "$answer" ;;
esac
if [[ "$pass1" != "$pass2" ]] ; then
  echo "Passwords do no match!" >&2
  exit 2
fi
if [[ -z "$pass1" ]] ; then
  echo "No password is given!" >&2
  exit 3
fi
[[ "$newaname" == "" ]] && newaname="$aname"
if [[ -z "$newaname" ]] ; then
  echo "No archive name is given!" >&2
  exit 4
fi

7z -t7z -p"$pass1" a "$newaname" "$@"

You can put a copy of it somewhere in your path (and make it executable). I used compress_with_pass.sh as the file name for the script.
The script prompts you for the archive file name (if there is a single file to be compressed, it automatically replaces the extension of the file with .7z) and the password for the archive.
To add this script as a "File Manager Action" use the File-Manager Actions Configuration Tool you installed as I described above and add an action like this (only the fields that are important are shown here):
Action tab:

✓ Display item in selection context menu
Context label: COMPRESS WITH PASSWORD

Command tab:

Path: gnome-terminal
Parameters: -- bash -c  "compress_with_pass.sh %F ; read a"

Execution tab:

Execution mode: Normal
Change the other fields according to your needs.

After this, you can select one or more files in your File Manager and right click to access the action called: COMPRESS WITH PASSWORD.
Notes:

The script can be improved to allow compression for other formats.
You can use yad for more advanced script input/output (GUI).

Update for Ubuntu 20.10
Since the filemanager-actions package is no longer available in Ubuntu 20.10, we have to revert to Nautilus Scripts. I modified the above script accordingly and copied the new version below:
#!/bin/bash
# See: https://help.ubuntu.com/community/NautilusScriptsHowto

msg ()
{
  zenity --info --no-wrap --no-markup --text="$*"
}

aname=$(echo "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" | head -1)
if [[ $aname != "" ]] ; then
  aname="$(echo "$aname"|sed -e 's/\.[^./]*$//').7z"
fi
answer=$(zenity --forms --title="Create Compressed File" \
 --text="Archive Name: $aname" --add-entry="New Archive Name:" \
 --add-password="Password:" --add-password="Confirm Password:")
case "$?" in
  1)  msg "Cancelled" ; exit 1 ;;
  -1) msg "Error!"    ; exit -1 ;;
  0)  IFS="|" read -r newaname pass1 pass2 <<< "$answer" ;;
esac
if [[ "$pass1" != "$pass2" ]] ; then
  msg "Passwords do no match!"
  exit 2
fi
if [[ -z "$pass1" ]] ; then
  msg "No password is given!"
  exit 3
fi
[[ "$newaname" == "" ]] && newaname="$aname"
if [[ -z "$newaname" ]] ; then
  msg "No archive name is given!"
  exit 4
fi

tmpfile=$(mktemp)
echo "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" >"$tmpfile"
out1=$(echo 7z -t7z -p\""$(echo $pass1|sed 's/./*/g')"\" a \""$newaname"\" -i@"$tmpfile")
out2=$(7z -t7z -p"$pass1" a "$newaname" -i@"$tmpfile" 2>&1)

msg "$out1
___
$out2"

rm "$tmpfile"

You have to put the script under the directory ~/.local/share/nautilus/scripts with an appropriate name (say CompressWith_Pass) and make it executable (chmod +x ~/.local/share/nautilus/scripts/CompressWith_Pass).
After that, the usage is similar: You can select one or more files in your File Manager and right click to access the Scripts menu item having CompressWithPass as a sub-item.


As you mentioned, when you modify (rename / move) Music folder it will point to the new folder.
To force it to point to a different folder, modify ~/.config/user-dirs.dirs file (it's a text file) and set the XDG_MUSIC_DIR parameter to point to your Music.


Run both Apache with mod_wsgi and Nginx with Gunicorn on same server?

It really depends on the project, but yes you can absolutely host many multiple projects on one server. It is a great learning exercise, but there are a few considerations.

Make sure they are secured. One security breach can bring them all down.
Only one service can exist on one port.
Make sure the projects don't consume too much cpu, or it will bog all of them down.
Docker containers could help host some projects in containers on the same server to avoid having configuration files clash and be overwritten if your projects are very similar.


【Ubuntu 16.04.2】Hang in Apple MacPro 1,1 only at restart

edit /etc/default/grub

GRUB_CMDLINE_LINUX_DEFAULT="acpi=force"


Which nvidia drivers in additional drivers (please describe drivers)? Please recommend post-install checks

Best choice would be the binary driver you've selected. Version 331.113 is the most recent version. Tested, I assume, means that it's the most stable version.

The difference between binary and legacy drivers is that legacy drivers provide support for video cards no longer supported by NVIDIA.

Source: Gladen

The "proprietary" bit following the NVIDIA drivers means that the driver was created by NVIDIA. The "open source" bit following the Nouveau driver means that it was created by the community.

You might consider running System Testing or Phoronix Test Suite.


If there are important files on the drive, you should at first make a block copy of the drive. In some place on your harddisk with enough space left try

sudo dd if=/dev/sdb of=sdb.img bs=4M

which means: Make a bytewise copy of the pendrive (if=/dev/sdb) to a local file named sdb.img (of=sdb.img) in blocks of 4M (bs=4M). The blocksize 4M should work in most cases and speed up the copy.

This should complete with no errors and give you the information about the records copied, size and speed of the copy process. You may then remove the pendrive; we will work with the copy further.

If there are I/O-errors at that stage the drive is damaged and I don't know any means to solve with software tools. If part of the drive could be copied, maybe part of the files could be saved.

If there were no errors so far, issue

fdisk -l sdb.img

which will show  you the partitioning of the drive. This should look like

Disk sdb.img: 29.8 GiB, 32015679488 bytes, 62530624 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xa114f2b8

Device     Boot    Start      End  Sectors  Size Id Type
sdb.img1            2048 20973567 20971520   10G 83 Linux
sdb.img2        20973568 62530623 41557056 19.8G 83 Linux

In my case the pendrive was of size 29.8 GiB and had two partitions of Linux Type. Yours may be only one partition of type 'W95 FAT32'.

If this was successful, you can try to mount the partition. You need the information about the partition start (here: 2048) and the sector size (here: 512). You can then do a loop mount by

sudo mount sdb.img /mnt -o loop,offset=1048576

where the offset in bytes here is 2048*512=1048576; could be different in your case.
If no errors occur, you will find your files in /mnt, from where you may copy them to some other place.

If you have come so far and there are errors with the mount command, just post the output of the former steps and the error message, so I could help further.


How to assign a keyboard shortcut to show an Ubuntu Desktop notification?

You can use the notify-send tool:

cd $HOME
touch foo
echo "foo\nbar\nbaz" > foo
notify-send "TEST" $(cat ~/foo)

it will create a notification like the one below:

Finally read How to add keyboard shortcuts? to enable Ctrl+Q for this notification (or better choose another combination as this one is already occupied - Thanks Jacob Vlijm).

Update:

All you have to do now is to create a small launcher (foo.sh):

#!/bin/bash

notify-send "TEST" $(cat ~/foo)

Change its permissions:

chmod 777 foo.sh

And assign to your new shortcut the full path of your launcher:


Set up two IP addresses with one gateway?

OK, it is working, and for referencing here is how I did it, hopefully someone will find it useful.

I found the solution on the following sites:

1- Multiple interfaces on the same subnet
2- Two network interfaces and two IP addresses on the same subnet in Linux

And the website that i referenced in the question as well.

suppose I have two IP addresses: 7.7.7.4 & 7.7.7.5 on network 7.7.7.0 and they have a gateway 7.7.7.1

I enabled ARP filtering:

# sysctl -w net.ipv4.conf.all.arp_filter=1
# echo "net.ipv4.conf.all.arp_filter = 1" >> /etc/sysctl.conf

And the I configured /etc/network/interfaces as following:

    # The loopback network interface
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
   address 7.7.7.4
   network 7.7.7.0
   netmask 255.255.255.0
   broadcast 7.7.7.255
   up ip route add 7.7.7.0/24 dev eth0 src 7.7.7.4 table eth0table
   up ip route add default via 7.7.7.1 dev eth0 table eth0table
   up ip rule add from 7.7.7.4 table eth0table
   up ip route add 7.7.7.0/24 dev eth0 src 7.7.7.4

auto eth1
iface eth1 inet static
   address 7.7.7.5
   network 7.7.7.0
   netmask 255.255.255.0
   broadcast 7.7.7.255
   up ip route add 7.7.7.0/24 dev eth1 src 7.7.7.5 table eth1table
   up ip route add default via 7.7.7.1 dev eth1 table eth1table
   up ip rule add from 7.7.7.5 table eth1table
   up ip route add default via 7.7.7.1 dev eth1
   up ip route add 7.7.7.0/24 dev eth1 src 7.7.7.5

And I added the following two lines to /etc/iproute2/rt_tables

10 eth0table
20 eth1table

I have Ubuntu 12.04 LTS server


How to create a file even root user also can't delete? Is there any possiblities?

It's possible only with hardware-restricted write capabilities.

But if you want prevent some files from being accidentally deleted e.g. with

rm -rf /some/dir

Try to set immutable attribute:

: ~ $ touch immut
: ~ $ sudo chattr +i immut
: ~ $ sudo rm immut
rm: cannot remove 'immut': Operation not permitted


getting cowsay to send one word at a time in putty

This seems to be a rare case where word splitting is actually desirable:

for word in $(<file.txt); do cowsay "$word"; sleep 1; done

(the sleep command is optional). Or there's always xargs:

xargs -a file.txt -n1 cowsay


How do I get the model name of my processor?

$ lscpu | sed -nr '/Model name/ s/.*:\s*(.*) @ .*/\1/p'
Intel(R) Atom(TM) CPU  Z3735F

Notes

-n don't print anything until we ask for it
-r use ERE
/Model name/ find the line with Model name
s/old/new/ replace old with new
.*:\s* anything before a colon, a colon, and any amount of horizontal space
(.*) @ save any number of characters before ' @'
\1 reference to saved pattern
p print only the line we edited

To get rid of double spaces, you can do an extra s command:

$ lscpu | sed -nr '/Model name/ s/  / /g; s/.*:\s*(.*) @ .*/\1/p'
Intel(R) Atom(TM) CPU Z3735F

The doesn't work if there are more than two spaces anywhere, so to delete multiple spaces relentlessly, use a sed loop:

$ lscpu | sed -nr ':a;s/  / /;ta; /Model name/ s/.*: (.*) @ .*/\1/p'
Intel(R) Atom(TM) CPU Z3735F

This :a;s/  / /;ta keeps on processing the stream until there are no double spaces anywhere. Notice that it won't take an address, so we had to chew through the whole stream before selecting the line. This won't take a noticeable amount of time when we're only parsing the output of lscpu, but on a huge file or on multiple files, it could get pretty slow. We could pipe the output from the original command to another sed with the loop instead to avoid working on the whole stream:

$ lscpu | sed -nr '/Model name/ s/.*:\s*(.*) @ .*/\1/p' | sed ':a;s/  / /;ta'
Intel(R) Atom(TM) CPU Z3735F


Lenovo X1 Nano with Ubuntu 20.04.2 didn't activate 4-speaker

I have found that you need to use Pulse Audio to change the Audio Controller. Play some audio and switch to "Input".


Hybrid Graphics Functional won't work with my Asus UL30V anymore

Now I think I solved my problem. I did everything like I said above. I reinstalled my nvidia divers like  Lekensteyn said, thanks for the advise. From now on it was very easy. I just have to type optirun  to start a programm with my nvidia G210m card. In glxspheres I get with the intel card 30fps and with the nvida card at least 100fps. I do think this is better than my last solution in ubuntu 11.10 with just running the nvidia card. Now I save battery life and if I want to play or if I need the card for othter programms I can use it with optirun.

Step by step:

1) deinstall the current nvidia divers ( sudo apt-get purge nvidia-current )

2) install bumblebee ( sudo add-apt-repository ppa:bumblebee/stable )

3) reboot

4) reinstall the current nvidia drivers ( sudo apt-get install nvidia-current )

5) reboot

6) use optirun to start programms with the nvida card ( example: optirun glxsphere )


Dual boot windows 8.1 and ubuntu 13.10, unusable drive space

Unless you have one primary partition for your Linux partition, there isn't much you can do. So you need to delete one of your existing partitions before you can install Ubuntu.

Unfortunately the disks are limited to 4 physical partitions, but if you need more, then you can set up the 4th partition as an extended partition. Inside that extended partition you can have several other logical partitions.

But as mentioned earlier, you need to delete one of your existing partitions before you do so.

Here is a sample layout: Partition table

Hope that helps!


the network card of this HP model seems to have just one antenna (instead of two). So, the driver had it wrong, what antenna is connected and where.

Solution: with the driver already installed try this on the command line:

$ sudo modprobe -r rtl8723be
$ sudo modprobe -v rtl8723be ant_sel=1

and

$ sudo modprobe -r rtl8723be
$ sudo modprobe -v rtl8723be ant_sel=2

and see which of the two will get you a strong wifi signal.

Then edit the option in /etc/modprobe.d/rtl8723be.conf with a command like this one:

$ echo "options rtl8723be ant_sel=1" | sudo tee /etc/modprobe.d/rtl8723be.conf


Virtualbox: How can I get a usable screen resolution inside the Guest OS

Before installing Guest Additions with the VBoxLinuxAdditions.run script, you must install the kernel headers package and a few other packages.

Run this command:

sudo apt-get install build-essential linux-headers-\`uname -r\` dkms

Then run the VBoxLinuxAdditions.run script.


I'm running Android 4.3 on Virtual Box in Ubuntu 13.10,could it harm my pc or disc?

No, although Android is optimized for SSD, it will not harm your HDD. As to the Whatsapp Touch app, I don't know.


CGI scripts on Apache2 gives 403 forbidden when the CGI are in a linked folder

It is because the symbolic link points to a directory, which is located outside of directories listed in your "virtualhost".conf files. So you need to write down necessary directives in your /etc/apache2/apache2.conf (or /etc/apache2/sites-available/*.conf or /etc/apache2/conf-available/*.conf) file to access /usr/lib/cgi-bin. Something like:

Alias /cgi-bin/linkName /usr/lib/cgi-bin

<Directory /usr/lib/cgi-bin>
        Options +ExecCGI FollowSymLinks
        DirectoryIndex disabled
        AllowOverride None
        Require all granted
        # etc..
</Directory>

And maybe (but I'm not sure that it's necessary): sudo chown -R www-data:www-data /usr/lib/cgi-bin.

If you make Alias /cgi-bin/linkName /usr/lib/cgi-bin you do not need to make a symbolic link.


Where can I get apport traceback information after I've submitted my crash report

You can find the files in /var/crash. That's pretty much the whole answer to your question, so to make my answer more interesting I'll show you how I know this, which might interest others who want to test crashing behaviour.

$ cat ~/playground/crash.c
/* crash.c - simple program that crashes by raising a segmentation fault */

#include <signal.h>

int main(void)
{
        raise(SIGSEGV);
}

The above program was written by Eliah Kagan. I have compiled it into an executable binary file called crash in the same directory (using the command gcc -ansi -pedantic -Wall -Wextra -o crash crash.c). This program reliably segfaults :)

Bash won't itself crash when I run this program, so Apport won't complain, but for interesting reasons discussed at great length in this chat, ksh will itself crash when I use it to call a program that crashes, and Apport will create a report for it. Let's try it!

zanna@toaster:/var/crash$ ksh93
$ /home/zanna/playground/crash
Memory fault(coredump)
$ exit
Segmentation fault (core dumped)
zanna@toaster:/var/crash$ ls
_bin_ksh93.1000.crash
zanna@toaster:/var/crash$ file _bin_ksh93.1000.crash
_bin_ksh93.1000.crash: ASCII text, with very long lines

There you go.

After you make the report, you will get 2 more files here, one ending in .upload and one ending in .uploaded, which may or may not be more readable, but in any case, contain the information sent by Apport.


FileZilla: The following packages have unmet dependencies

You have the GetDeb package repository configured to use the Xenial packages even though your other packages are for Trusty. You need to edit the relevant sources.list file and replace xenial with trusty. Here's one automated way to do it and update the package list:

sudo sed -i -e 's/xenial-getdeb/trusty-getdeb/' /etc/apt/sources.list{,.d/*.list}
sudo apt-get update

Then run

apt-cache policy filezilla

to identify the version you want to install. apt-cache lists package versions and their originating source lines. Choose one that has “trusty” in the source line. Now you re-install the filezilla package in the correct version while fixing package problems. Replace <VERSION> according to you findings from the previous step and run:

sudo apt-get install -f filezilla=<VERSION>


System hangs when opening a large OpenOffice file

There are a couple of programs that can open odf files, at least Koffice and Abiword should be able to open it.

You can also try to open it with Google Docs and save it again.

Anyway, you should open a bug in OpenOffice and attach the file there if it's possible (i.e. it's not confidential or personal).


From: Managing Ubuntu Linux Users and Groups

To remove a user [eg. john] from membership of a group [eg. accounts] use:

sudo deluser john accounts

And, to undo:

sudo adduser john accounts

So to match example (in other answer):

sudo deluser tachyons cdrom
sudo adduser tachyons cdrom    [to undo]


Ubuntu 13.04 Slow boot on Insipiron 15R SE

This was HUGE for me

http://blog.smartlogicsolutions.com/2009/06/04/mount-options-to-improve-ext4-file-system-performance/

Also

make sure "preload" is installed

sudo apt-get install preload

then when you boot, hit e when grub comes up, arrow over and add the word "profile" without the quotes, then hit crtl+x to boot.


How to get the files that I saved while using windows in other drives than C:?

Use The file browser, Nautilus or the GUI Disk app Gnome-disks.

In most cases the drives that are available will be shown in the File Browser.  The default file browser installed is Nautilus.

You'll see a list of drive devices on the left panel of Nautilus.  They'll usually be listed by the Volume size or the Partitiion Label, such as Windows, OS, Data, etc.

You'll also see a new device that will appear in that list if you insert a Pen drive or other media into the computer.

Just click the device to open it up and browse... much like browsing the drives in Windows File Explorer.

You can also browse the available attached drives and devices with the Gnome-Disks app.  You can get to it by typing Disks in the Ubuntu Search button.

In this GUI interface, you will see all the attached drives and partitions.  Click the one you want to browse.  It it's in a recognized formate you will see a Play button (a triangle) that will mount it.  Then you'll see a description at the bottom with a clickable link to the drive (ie Contents Ext4(version 1.0) --Mounted at /media/ljames/OS1).

You'll see all your drives and partitions that are available in this app.


Can't change Visual Effects when running Unity

The "Visual Effects" configuration is based on Compiz, while the default Unity user interface in Ubuntu 10.10 Netbook Edition uses Mutter.  If you want the regular effects in Ubuntu 10.10, you will have to run the Desktop session (you can select it from the login screen).

In the future Ubuntu 11.04 release (normally released in April next year), the Unity user interface will be based on Compiz, so then you will have "the best of both worlds"...


Install Flash Player on IE7/IE8 with Wine

Problem solved !
I resintall wine only (without PlayOnLinux) and I installed ie8 with winetricks.
I downloaded flashplayer9 and copied it in the wine ie8 folder, executed the flashplayer.exe for windows and launch iexplorer.exe from the .wine/...../IE folder.


This is probably because you don't have sufficient  privileges to change the permissions in the first place.

Try pressing Alt+F2 and then entering gksudo nautilus. Once you've entered your password, the file browser (nautilus) should launch, and you should be able to change those permissions.

You can also do this from the terminal (Ctrl+Alt+T) and running the chown command.

Eg: sudo chown [USER]:[USER] /media/USER/FOLDER/FILE


I can't install the ndiswrapped WG311v3 drivers

From the solution mentioned by the original poster:

Finally got workable status using a Marvell driver from a German site!

http://forum.ubuntuusers.de/topic/verbindungsprobleme-mit-wlan-marvel-8339-libe/#post-1888522

Then from there all I did was:

sudo ndiswrapper -r wg311v3
sudo ndiswrapper -i (the Marvell.inf)
sudo modprobe ndiswrapper

Et voila!


You will need to recover your partitions, and then attempt to re-install grub using boot-repair. Hopefully the data within the partitions is still intact.

Steps:

Step #1

Boot an Ubuntu livecd

Step #2
In terminal type

sudo parted /dev/sda

[This selects drive "sda", if you need a different drive then change appropriately.]

Step #3
In Parted type

rescue

[To exit Parted type "quit".]

Step #4

Install and run boot-repair.

[I won't type all that out as the Ubuntu community already has an excellent set of instructions available here: https://help.ubuntu.com/community/Boot-Repair .]

Notes:

Note #1

Attempting to recover deleted partitions doesn't always work, but it is always a risk. You could make things worse! If you have important data on the drive you are attempting to recover you should always perform a backup first. If you can't access the data use dd to make a sector based backup of the entire drive or partition and save it as a file.

Note #2

If Parted fails to recover your partitions you can always try Gparted which also has a recovery feature. To install Gparted type "sudo apt-get install gparted" though it's often included on Ubuntu livecds.

Note #3

After successfully recovering your partitions instead of running boot-repair you could re-try using your Windows installation disc's repair feature as it might now work.

Sources:

http#s://help.ubuntu.com/community/Boot-Repair

http://postbin.per.red/pages/article24/page.php


Virtual box not starting in Trusty Thar, i get the following error

It seems the location of that file in 14.04 is now located in ~/.config/VirtualBox instead of ~/.VirtualBox .

Open nautilus, thunar, dolphin, or your file manager as sudo like this:

sudo nautilus /home/chiku

Press ctrl H to show hidden files.

Next, rename the directory ".VirtualBox" to something else like "VirtualCopy" instead.

Then, try starting VirtualBox to see if the issue is fixed.


using the Try Ubuntu / Live with 512mb of ram?

I suggest you try Xubuntu or Lubuntu, which are somewhat lightweight. Get them here:

http://xubuntu.org/getxubuntu/
https://help.ubuntu.com/community/Lubuntu

But honestly, 512MB simply isn't going to cut it with modern desktop Linuxes. See the Ubuntu System Requirements and get more information on Low Memory Systems.

What you might do, depending on your requirements, is install a commandline system, and then install one of the ultra lightweight desktops, as described in detail on the Low Memory page I linked.


Write a Script to install an application under wine

If wine is installed on his PC the script is just:

#!/bin/bash
wine iTunesInstallerName.exe

Put that together with the iTunes installer in a directory and tell him to run the script.
It will start the installation process.


Right click menu not showing Lenovo IP 320 15ISK

I had the same problem

This linked helped https://forums.linuxmint.com/viewtopic.php?t=107118


Correct steps to mount an internal backup harddrive

If I understand you correctly, you are booting with /dev/sda as the first drive in the BIOS boot order, but are actually loading the system from /dev/sdb.  If that is true, all you have to do is mount the correct partition from /dev/sda.  You'd do something like this:

mkdir -p /mnt/wdhdd
sudo mount /dev/sda1 /mnt/wdhdd

If you have trouble figuring out which partition on /dev/sda to mount, you could post the output of cat /proc/partitions and we could help you figure it out or you could try some of the larger partitions.

Edit: With your setup, you'll want to mount /dev/sda1, and I've modified the commands above.


Right Click + ALT and add the missing item. Most likely you need "Indicator applet complete".


Is there a better alternative to Gnumeric?

I'd look into LibreOffice, and specifically within it "LibreOfficec Calc" which is a spreadsheet program.


redirecting my mail server to another domain

Sorry if it is not the step-by-step howto that you were expecting, but you need to give more details about your configuration.
Also, I suggest to split your question into several post.

But anyway, I have some clues / guidelines for your to help this to be sorted out :

At DNS level (at your registrar), you can define different names pointing to the same IP, this is not a problem. You can have name1 -> IP1 and name2 -> IP1. At the web server level, any default configuration should let you display the same web pages using both name in the URL.
At DNS level, once again, you can point the MX records of your second domain to the same mail server. But this time, you have to do some configuration in your mail server to accept mail sent to this second domain as a valid internal domain (in /etc/postfix/main.cf :

  mydestination = myserve.com, myserve2.com, $myhostname, localhost.$mydomain, localhost

Depending on how you define your users, you may have to do some more tweaking. But if you are using locally defined user (the mail users are defined as Linux users), user1 should receive mail sent to user1@myserve.com and user1@myserve2.com.

If you configure a single Postfix instance to handle both domains, you can use the same IP. Of course if you split your Postfix installation between two hosts, you will need two IP.
See above, it will depend on how you have created the users. If you use the Virtual Users and Domains and/or if you have an LDAP backend, it will be different.

I hardly suggest that if you encounter problem with the configuration of Postfix or the web server, you open new question with as many details about your config as possible.


The problem was solved with fetching the secure APT key:

gpg --keyserver keyserver.ubuntu.com --recv-key E084DAB9
gpg -a --export E084DAB9 | sudo apt-key add -

so for every package that I want to install, should I import the APT key?


sudo apt-get --reinstall install python

This will reinstall python from the command line, if you don't want to use Synaptic like loki2302 suggests. (Synaptic would be fine, of course.)


Only 1 GB of RAM. Should I go for 32-bit Lubuntu, or 64-bit?

Go for the version it is suppose to be able to hold.

Intel Atom N450 is 64-bit so I would stick to a 64-bit and match the minimum specs for any of the Ubuntu flavours. lUbuntu and xUbuntu are options. Beyond that: do consider alternatives that are around but not Ubuntu; like Puppy Linux or Damn Small Linux.

Regarding:

  What will perform better, 64-bit or 32-bit?

That depends on usage. 64-bit should perform better on heavy usage.

  Is Lubuntu indeed the best flavor?

Probably. Or xUbuntu (that is more a preference of desktop: lxde or xfce and not about processor).


The 404 error suggests there are no package candidates on that repository for ubuntu xenial. That is because the ppa does not exist for xenial (16.04), as you can see here. The latest packages available corresponds to 15.04 (vivid). It seems that the PPA for WinUSB is no longer being maintained by its author. Follow these instructions to install WinUSB on 16.04. Also, check this answer for an alternative method to WinUSB.

For workaround, you can simply removing the ppa:

sudo add-apt-repository -r ppa:colingille/freshlight
sudo apt update


Wireless network and bluetooth adapter problems

This will not be a complete answer as I believe we will have to correct a few things and check again before we reach the solution.

First, we notice that you have a Broadcom wireless driver installed. Your device is a Realtek. Let's remove the incorrect driver:

sudo apt purge bcmwl-kernel-source

Second, we notice that both Wicd and Network Manager are installed. New in Ubuntu 17.10 and later is networkd and netplan. Netplan clearly says NM is in charge. From your readings:

[/etc/netplan/01-network-manager-all.yaml]
network:
  version: 2
  renderer: NetworkManager

I recommend that you remove Wicd:

sudo apt purge wicd*

After doing so, tell us if this line remains in NetworkManager.conf

cat /etc/NetworkManager/NetworkManager.conf

Does this line remain after removing Wicd?

[keyfile]
unmanaged-devices=interface-name:wlo1

If it remains, we will need to edit the file to remove it.

Once these steps are taken, reboot and report back your result and we'll continue if needed.

EDIT: Please remove the keyfile section; from the terminal:

sudo nano /etc/NetworkManager/NetworkManager.conf

Remove this section completely:

[keyfile]
unmanaged-devices=interface-name:wlo1

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

Restart NM:

sudo service network-manager restart

It might take a reboot. Any improvement?


Is there a way to associate certain types of hyperlinks with a browser other than the default one?

As far as I know, the only way to do it would be to write a script and associate it with http/https URLs as a default browser. The script would analyze the URL and call the browser you want according to the criteria you want.


Intel Xeon E compability with Ubuntu 16.04

Usually, the intel processor type is the least of your worries when installing in a new computer.  as an example, graphics chips can often be problematic.  linux-hardware.org is a good place to start, as well as others.

You will probably need to disable secure boot, so check with the manufacturer's site.

See also this answer:
Is there a database of Linux compatible hardware?


I had the same problem, I purged the intel-microcode and it booted normally, drop the grub menu, choose recovery mode, then choose root shell, and do apt purge intel-microcode and reboot.


How to disable super+space key in Unity?

After another update this problem disappeared. (At least I can't tell what else I did)


Ubuntu 15.10 gets stuck during install (black screen and 6700HQ bug soft lockup cpu#4 stuck for 22s)

6700HQ is a very new Skylake CPU and not well supported yet. Try booting with kernel parameter nomodeset. Alternatively you might be able to get modesetting to work by installing a recent mainline kernel and booting with i915.preliminary_hw_support=1.

It looks like your kernel is also reporting kernel bug #109081 - Freezes with Intel i7 6700HQ (Skylake). It might help to boot with kernel parameter intel_idle.max_cstate=7. You might also benefit from installing the latest upstream kernel and any firmware updates for your laptop.

The latest 16.04 daily should work better than 15.10.


I had a similar issue happen where suddenly (I have no idea what I updated, or what changed in the system) I could not get sound.

I did the whole pulseaudio -k && sudo alsa force-reload thing. I didn't have any cards listed from pacmd list-cards but I could see the device with commands like:
lspci -nnk | grep -A2 Audio

I even installed a newer kernel (4.8+ since it apparently has good support for my particular machine).

In the end, I rebooted into the bios and disabled the built-in audio, applied those changes, rebooted to Ubuntu, then rebooted again into the bios to re-enable the audio. Once back into Ubuntu after that, everything seemed to work great!

Don't know if this will help with other people looking for solutions to their problems. I was using a Dell XPS 13 (9350), but might be something for others to at least try.


You use the head command to do this, with the -n argument with the number of lines from each file, like this:

head -n3 *

or

head -n3 *.txt

This also works for a single file:

head -n3 filename.txt


Juju "RegionOne" does not allow access to all required services

Your openstack cloud needs to make swift available, so that juju can use it for object storage.


Install gparted

sudo apt-get install gparted

and first delete the Windows partition and then extend Ubuntu's partition or use LVM(Logical Volume management) in order to create logical volumes.

Make sure after that you run boot-repair

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair


How to install «Hip Hop» on Ubuntu 14.04

OK. This works :

tar xvzf HipHop-0.4.6.tgz
cd HipHop/
chmod +x HipHop
sudo apt-get install libudev1:i386
sudo ln -sf /lib/x86_64-linux-gnu/libudev.so.1 /lib/x86_64-linux-gnu/libudev.so.0

To run, type

./HipHop


I can't understand where you got problem. I have compiled it successfully (even without sudo apt-get build-dep libopencv-dev):

wget https://github.com/opencv/opencv/archive/2.4.13.5.zip
unzip 2.4.13.5.zip
cd opencv-2.4.13.5
mkdir build
cd build
cmake ..
make -j16
sudo make install

And then pkg-config --libs opencv shows the following:

  -L/usr/local/lib -lopencv_calib3d -lopencv_contrib -lopencv_core -lopencv_features2d -lopencv_flann -lopencv_gpu -lopencv_highgui -lopencv_imgproc -lopencv_legacy -lopencv_ml -lopencv_nonfree -lopencv_objdetect -lopencv_ocl -lopencv_photo -lopencv_stitching -lopencv_superres -lopencv_ts -lopencv_video -lopencv_videostab -lrt -lpthread -lm -ldl

and pkg-config --cflags opencv

  -I/usr/local/include/opencv -I/usr/local/include


There's no software in Linux like the current Winamp. If you want something almost similar, try Audacious, BUT the skined interface ONLY supports winamp 2.x skins. I came from a Winamp environment so I can say this, forget about skins and use the default GTK interface and you'll like it, I know I did :)


ubuntu 17.10 conjure-up command not found

You need to run command with absolute path: /snap/bin/conjure-up


Differences in stability between Ubuntu LTS and Debian Stable

Both Debian Stable and Ubuntu LTS are stable releases.  In terms of how they develop and deploy a release there are minor differences in policy between the two but by and large their release policies are pretty similar.  There is no logical reason why one would be significantly more bug-free than the other.


Can I use the Ubuntu 12.10 live CD to resize partions and upgrade from 12.04?

Yes you can use the LiveDVD to resize partitions and to upgrade.  Boot off it then select "try Ubuntu", then when it has finished booting run Gparted to alter and resize partitions.

I would actually suggest making the Ubuntu / partition smaller, say about 25GB and increasing the size of /dev/sda3 to fill the rest of the drive and format it as ext4.  You can then use this partition to mount as /home and keep all your data on it.  That way you would have about 85Gb for /home data.

I note that /dev/sda4 is probably an extended partition with (most likely) sda5 and sda6 inside it.  You'll have to resize and move those before you can resize the extended partition.  I'm thinking sda6 is most likely a swap partition.

An alternative approach would be to delete /dev/sda3 (after backing up the 350MB of data) and increasing the size of the extended partition to the end of the disk.  You could then just make another logical ext4  partition inside the extended partion, or resize/move the existing ones according to your needs.

If you want to try upgrading 12.04 boot off the LiveDVD and select the upgrade option if it offers one.  I believe this is a better and faster way of upgrading compared to doing an on-line upgrade.


Oh well, I figured it out myself. schroot has a features called "sessions" that allows preservation of current system environment. I somehow thought that adding new users would not be a part of "environment".


No sound from headphone jack Ubuntu 20.04 with NUC107i

I had the same issue with Ubuntu 20.04 while it worked for Ubuntu 18.04. From similar problems with older versions I got this, which helped:

sudo apt install pavucontrol
start it with pavucontrol
plug in your headphones
Go to "Configuration" tab on the top right
Choose an analog profile

This magically switched the sounds to my headphones and showed them along with the microphone also in the standard sound settings dialog. It is also permanent: If I unplug my headphones, sound switches to HDMI and if I plug them in again, sound switches to headphones again. Now my headset is finally working under Ubuntu 20.04 on my NUC 6i.


Can I connect to multiple networks for double bandwidth?

No, this is not possible.  You can connect to both ISPs at once, but each will give you a different IP address.  When you say, run a web browser and try to download something, it has to pick one IP address to use, and then its traffic will all be routed through that ISP.  You could run one program on one address and one on the other, but you can't get one download split across both links.


Can't Update to 18.04 LTS from Ubuntu GNOME 16.04.4 LTS

There is still no information about new release here: http://changelogs.ubuntu.com/meta-release
So it will not upgrade


What's the equivalent of "killall gnome-panel" when using Unity?

killall mutter will restart the window manager, which includes Unity and its components (panel, sidebar, etc). The screen will flicker as it restarts, but your windows and applications should stay open afterwards.


D-link dwm-157 not working on Ubuntu 14.04 LTS

from your question i think /dev/sr0 is your DVD rom so try mounting sr1

mount /dev/sr1 /mnt it may be your modems storage.if it's mounted copy the tar.gz file to home directory. if it fails connect it to a windows system, copy the tar.gz to your home directory. after copying the file follow the instruction from this link starting from number 2 ( skip this command sudo cp xxx.gz /home it's for copying the installer file to home directory)


How can I use the gtk3 file chooser with keyboard shortcuts?

https://developer.gnome.org/gtk3/stable/GtkFileChooserWidget.html

Under signals there is mention of of default bindings for some of the common use cases


Music application that reads existing ratings from ID3 tags

There are several options that should read your ID3 tags such as Rythmbox, Clementine, Amarok or if you really wanted you could even run iTunes through wine. However, I am surprised Banshee doesn't have this feature.


Open a terminal (Ctrl+Alt+T).
Run the following commands:

sudo apt-get purge adobereader-enu
sudo apt-get autoremove


How to make chromebook keyboard work under gnome wayland?

Well after some research it seem that the script doesn't need any modification. The problem is that Gnome Shell doesn't allow to change the keyboard model. On X11 it's not a problem since we use some X11 tools to do so but they doesn't work with wayland. I hope the feature will be add to Gnome.

https://bugzilla.gnome.org/show_bug.cgi?id=777000


My xubuntu partition of my surface go dual boot boots into command line

Most likely cause:
Windows and Linux do not interpret System time the same way (UTC vs. local time).
If this is the case, possible solutions consist of having both OSs interpret the system time the same way, either UTC or local time Clock time is off on dual boot.
Possible solutions:

Set Windows to UTC, see "Make Windows use UTC" here.
Please post in your question the exact location of file WindowsTimeFixUTC.reg in Windows. Then post in your question the exact contents of that file.

Set Ubuntu to Local time, see "Make Linux use 'Local' time" here:
timedatectl set-local-rtc 1 (you may need to add --adjust-system-clock).
Please post in your question the exact output of
$ timedatectl set-local-rtc 1
$ timedatectl

If hwclock gives you trouble, you might need this solution.
Please post in your question the exact output of
$ hwclock --verbose

Possibly not applicable, since it is for old Ubuntus. Edit /etc/default/rcS, change UTC=no to UTC=yes. Create the file if needed (source). You can also add another line with VERBOSE=yes.

Idem. Edit /etc/default/rcS, change FSCKFIX=no to FSCKFIX=yes (perhaps a last resource).

Verify that power to the internal clock is provided normally. As the Surface Go does not seem to have a CMOS battery, I am not sure about checking/fixing this.
https://www.ifixit.com/Answers/View/153800/CMOS+backup+battery+inside+Surface

Sources / Related:

https://serverfault.com/a/71625/326962 and other options in the same question
Ubuntu 17.04 - Where is file /etc/default/rcS?
https://ubuntuforums.org/showthread.php?t=2433546


It is possible to do this by using groups or ACL (access control lists).

You can add multiple users to a single group, and then apply that group as having access.

Or, you can enable ACL on your ext4 filesystem by adding acl to the list of mount options for your partition.

Then, install eicel to configure the access.


How to alias 'git' to 'g' so that bash-completion rules are preserved?

Latest bash-completion upstream moved and renamed things a bit. It's now:

source /usr/share/bash-completion/completions/git
__git_complete g __git_main

Use this in recent versions of Ubuntu (e.g. 14.04, also Fedora 22+) when you encounter:

completion: function `_git' not found

during completing.


FireTray does what you need, and a lot more.


You need to install the software to use mtp devices.

sudo apt-get update
sudo apt-get install mtpfs mtp-tools


Both keys of touchpad performing the same function after 18.04 upgrade

I had this issue on my Dell Inspiron 5565 running Ubuntu 18.04. I solved it by installing GNOME Tweaks via Ubuntu Software.
I then changed the setting under "Mouse Click Emulation" to area. I had to restart for the change to take effect. Just logging out didn't do it for some reason. Here is a pic. of the tool.


Opening a terminal and typing in:

xmodmap -e "keycode 66 = Shift_L NoSymbol Shift_L"

followed by enter/return should remap the Caps Lock button the Left Shift.

However, this will need to be executed on each boot. You can do the following to automatically run this every time the system boots.

Search "Startup Applications" in the dash and open it.
Click add. For the name put "Caps Lock to Shift" and under "command" put xmodmap -e "keycode 66 = Shift_L NoSymbol Shift_L".
Press save and restart. Enjoy!

If you would rather disable Caps Lock, you can execute the following (in terminal):

setxkbmap -option caps:none

Once again, this will reset once you restart, so add a startup entry (like above) to execute this on boot.


Application development in Ubuntu using C++

If you are just learning C++, I would recommend you write simple programs using the vi editor and compile them using g++ compiler.


You can by using the preferences command for X server (http://systembash.com/content/how-to-turn-off-your-monitor-via-command-line-in-ubuntu/)

To turn off the monitor $ xset dpms force off
To turn on the monitor $ xset dpms force on

Pressing a key or moving the mouse will also switch the monitor on if it has been turned off. You can assign the command to a key if you like using shortcuts.


Correct way to route between 2 interfaces with netplan in Ubuntu 18.04

I would not be using routes to try and route traffic properly between the two subnets.  You might end up in a routing loop that'll break things.

What you should probably consider doing is actually making your system behave as a router and do all the forwarding with NAT.  A quick and simple way to do this is to have NAT MASQUERADE on each of the interfaces.  (But you'll also need to yank out the route rules you have in place, since they won't work properly.)

You need to add rules to the firewall that would handle the following cases:

192.168.254.240/28 -> 172.16.0.0/30
172.16.0.0/30 -> 192.168.254.240/28

With iptables you'd need to set it up like so (the commented lines with # at the beginning just explain what each rule does):

# Allow traffic to be forwarded from enp7s0 to enp8s0
iptables -A FORWARD -i enp7s0 -j ACCEPT
# Allow traffic to be forwarded from enp8s0 to enp7s0
iptables -A FORWARD -i enp8s0 -j ACCEPT

You also need to set up NAT rules, and this is not going to be very nice, but we have to let the 'router' be the one that we masquerade sources as.

iptables -t nat -A POSTROUTING -o enp7s0 -j MASQUERADE
iptables -t nat -A POSTROUTING -o enp8s0 -j MASQUERADE

This should permit bidirectional NAT traversal between the subnets.  Make sure you save these rules though for the future.

Let me know if this doesn't work, I'll go and dig into the issue more deeply if that happens.


Installing Ubuntu GNOME 16.04.1 on a MacBook Pro 7,1 (13 inch, Mid 2010)

Ubuntu tends to be pretty generous about what it runs.  If you are uncomfortable with it you could always dual boot for awhile until you are sure everything works fine.  I don't personally own a Macbook so that's why I definitely say you should dualboot in case anything goes wrong on the install.  When installing select a custom install so you don't wipe the disk.  If you are sure everything is working you can always get rid of the OS X partition and resize the Ubuntu partition with something like gparted.


Have you tried importing the pst file directly through Evolution? Evolution 3.2.2 should be able to import pst files directly. This function should be available in package 3.2.2-0ubuntu2 and later.

Evolution >> File >> Import

In the Evolution Import Assistant, chose Import a single file under Importer Type. After that, you can specify the file name and the file type (.pst).

The catch is that the Evolution plug-ins use the same libpst4 library to perform the import that readpst uses. Dates before Jan 1, 1970 are more likely to have problems converting. I would guess that birthdays are probably the only dates you have in your pst file that go back that far, so that's where you see the conversion problem.

The Evolution plug-in, however, converts dates with a different method than readpst does and appears to correctly handle the conversion of dates from a Windows format to a Unix format.

I suspect you are running into 1 of 2 possible problems:

1) Date format. If you are using DD/MM, libpst4 doesn't appear to adjust for this (though I could be wrong). The result is that the date conversion fails. If this is the case, you may be able to adjust Outlook (or locale settings) before creating the pst file.

2) 32- vs 64-bit issues. Although libpst4 can read a 64-bit pst file, it uses a structure to store the datetime that does not appear to guarantee (again, I could be wrong) that a 64-bit datetime is converted correctly.

If you try the pst file with Evolution directly and it still doesn't work, and none of this helps you solve the problem, your best option might be using another file format.

You can export the Outlook file as csv, tab, etc and Evolution can also import those files through the Import Assistant.


How can I install open JDK 7 on Ubuntu 18.04?

First install OpenJDK7:
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo wget -P ~/Downloads http://ftp.de.debian.org/debian/pool/main/o/openjdk-7/openjdk-7-jdk_7u161-2.6.12-1_amd64.deb
sudo wget -P ~/Downloads http://ftp.de.debian.org/debian/pool/main/o/openjdk-7/openjdk-7-jre_7u161-2.6.12-1_amd64.deb
sudo wget -P ~/Downloads http://ftp.de.debian.org/debian/pool/main/o/openjdk-7/openjdk-7-jre-headless_7u161-2.6.12-1_amd64.deb
sudo wget -P ~/Downloads http://ftp.de.debian.org/debian/pool/main/libj/libjpeg-turbo/libjpeg62-turbo_1.5.2-2+b1_amd64.deb
sudo update-alternatives --config java

cd ~/Downloads

sudo dpkg -i *.deb
sudo apt install -f
#choose Java7
sudo update-alternatives --config java

Now install Maven:
sudo apt-get install maven

Install Eclipse Luna 4.4.2 SR2
sudo su
cd /opt
sudo wget -P ~/Downloads http://download.eclipse.org/technology/epp/downloads/release/luna/SR2/eclipse-jee-luna-SR2-linux-gtk.tar.gz
tar -xvf eclipse*.tar.gz

Now edit the eclipse.ini file:
sudo nano /opt/eclipse/eclipse.ini  <br/>

and change:
If you run in Performance Issues, find for your self the best XMS/XMX Range
Texteditor start
-startup
plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar

--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.300.v20150602-1417

-product
org.eclipse.epp.package.jee.product

--launcher.defaultAction
openFile

-showsplash
org.eclipse.platform

--launcher.XXMaxPermSize
1024m

--launcher.defaultAction
openFile

--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.7
-XX:MaxPermSize=4096m
-Xms2048m
-Xmx4096m

#Texteditor end

Now run eclipse:
cd /usr/local/bin
echo 'ECLIPSE=/opt/eclipse/eclipse' >eclipse
echo 'exec $ECLIPSE "$@"' >>eclipse
chmod +x eclipse
exit
eclipse

Add eclipse to the Desktop:
sudo nano /opt/eclipse/eclipse.desktop

and add:
[Desktop Entry]
Type=Application
Name=Eclipse
Comment=Eclipse Integrated Development Environment
Icon=/opt/eclipse/icon.xpm
Exec=/opt/eclipse/eclipse
Terminal=false
Categories=Development
StartupWMClass=Eclipse

Save and exit and execute:
sudo chmod +x /opt/eclipse/eclipse.desktop
sudo cp /opt/eclipse/eclipse.desktop ~/Schreibtisch
sudo mkdir ~/.local/share/applications
sudo cp /opt/eclipse/eclipse.desktop ~/.local/share/applications

Wilffly 8.2.1
sudo su
sudo wget -P /opt https://download.jboss.org/wildfly/8.2.1.Final/wildfly-8.2.1.Final.tar.gz
cd /opt
tar -xvzf wildfly*.tar.gz
sudo mv wildfly-8.2.1.Final wildfly
Add Management-User
sudo /opt/wildfly/bin/add-user.sh
sudo nano /opt/wildfly/standalone/configuration/mgmt-users.properties
Wildfly Verknüpfungen erstellen
sudo  wget -P /opt/wildfly/bin https://api.jujucharms.com/v5/precise/wildfly-5/icon.svg
sudo nano /opt/wildfly/bin/wildflyapplicationserver.desktop
[Desktop Entry]
Type=Application
Name=Wildfly Standalone 8.2.1
Comment=Wildfly Application Server authored by JBoss
Icon=/opt/wildfly/bin/icon.svg
Exec=/opt/wildfly/bin/standalone.sh
Terminal=true
Categories=Development
StartupWMClass=Wildfly
sudo chmod +x /opt/wildfly/bin/wildflyapplicationserver.desktop
sudo cp /opt/wildfly/bin/wildflyapplicationserver.desktop ~/Schreibtisch
sudo cp /opt/wildfly/bin/wildflyapplicationserver.desktop ~/.local/share/applications


I found autossh is very helpful,

In machine A, type the following commands to create reverse connection

$ autossh -f -N -R port_num:localhost:22 username@proxy_machine

Now, you can connect machine A anywhere

$ ssh -t username@proxy_machine "ssh user@machine_A -p 38935"


Ok, solved!

Setup bridged network br0 in /etc/network/interfaces.

auto eth1
iface eth1 inet manual

auto br0
iface br0 inet static
bridge_ports eth1
address 192.168.1.2
broadcast 192.168.1.255
netmask 255.255.255.0
gateway 192.168.1.1
bridge_stp off
bridge_fd 0
bridge_maxwait 0

Edit /etc/lxc/lxc.conf and set lxc.network.link=br0

lxc.network.type=veth
lxc.network.link=br0
lxc.network.flags=up

Edit /etc/default/lxc and set LXC_BRIDGE, LXC_ADDR, LXC_NETMASK, LXC_NETWORK, LXC_DHCP_RANGE & LXC_DHCP_MAX appropriately for my LAN (192.168.1.0/24 type settings)
now juju status shows 192.168.1.0/24 addresses for my units and I can access them over the LAN from another machine

LXC_BRIDGE="br0"
LXC_ADDR="192.168.1.2"
LXC_NETMASK="255.255.255.0"
LXC_NETWORK="192.168.1.0/24"
LXC_DHCP_RANGE="192.168.1.50,192.168.1.99"
LXC_DHCP_MAX="49"


How to minimise Steam to the Unity panel (system tray)?

To do this only for your user, you need to run this command in a terminal:

echo 'STEAM_FRAME_FORCE_CLOSE DEFAULT=1' >> ~/.pam_environment

Then logout and log back in.

Alternatively, you could add it for all users with this command:

echo 'STEAM_FRAME_FORCE_CLOSE=1' | sudo tee -a /etc/environment

Then logout and log back in.

References:

https://wiki.archlinux.org/index.php/Steam#The_close_button_only_minimizes_the_window
https://help.ubuntu.com/community/EnvironmentVariables#Persistent_environment_variables


As per the pastebin details - you haven't yet installed Ubuntu 15.10 it seems(as your grub entry still has try uubuntu)
Moreover your pastebin also says that make sure your BIOS has the option to boot from the device which has the bootloader so please fix that in BIOS.

In case it's not working - try reinstall of Ubuntu 15.10 as that supports your skylake processor.
Most probably your previous successful install of Ubuntu 14.04 LTS has created your default partitions (/ and swap) which you can re-use at the time of install.


Unable to access Ubuntu after Windows install, reinstall grub fails

Boot the system with the ubuntu LiveCD.
open the Terminal and type sudo fdisk -l

It will list number of partition. look which Device contain partition of the type  'Linux'
Copy the Device name containing the partition

For example after typing sudo fdisk -l, It may list some device list like /dev/sda1/, /dev/sda2/, /dev/sdb1/. Look which device is of the Type Column for the name Linux

Now if the partition name Linux is in device /dev/sda3/ then you have to copy only sda
now type in the terminal sudo grub-install /dev/XXX

where xxx is your  device name which contain linux partition ex /dev/sda
reboot your system


Is there a environment variable that gives out version of ubuntu and version of the kernel?

No. You have to use the lsb_release and uname commands respectively to get the versions of Ubuntu and the kernel.

$ lsb_release -sr
14.04
$ lsb_release -sc
trusty
$ uname -r
3.13.0-65-generic

Alternatively, you can parse certain files, but unless you have a strong reason to do so, better use these commands.


Currently it seems that it doesn't work with ubuntu 12.04. However, it works with kernel 3.5 or with alsa driver 1.0.26 (which isn't released yet). I have the same soundcard and I guess we'll have to wait either for updates for ubuntu 12.04 or wait for the next distro of Ubuntu, quantal, that will support the soundcard, since it will use kernel 3.5.
Cheers


Burning Ubuntu 12.04.3 in to DVD errors?

If you are unsure, boot from the DVD, and when you see the logo, press a key, select a language, and select the option where you can check the CD's integrity.

If you cannot boot from the DVD or if the check results in an error, check the .iso file and try creating a new USB burning on minimum speed.


Android SDK can't be installed on Ubuntu 12.04-64

It is highly recommended that you install ia32-libs so that the SDK is compatible with your 64-bit machine.

sudo apt-get update
sudo apt-get install ia32-libs

Or, if you're running Ubuntu 12.04, you may have to install ia32-libs-multarch instead:

sudo apt-get update
sudo apt-get install ia32-libs-multiarch

I've been maintaining this thread on XDA-Developers for a while now, I took bits & pieces from other forums, and put this method together. Googles method never worked for me, and made me hate Ubuntu. But, eventually it grew on me and I've gotten more advanced with Linux distros. Hope my thread can help someone. Enjoy the possibilities!!!!!

http://forum.xda-developers.com/showthread.php?p=9393280#post9393280


Upstream kernel compiled for Ubuntu are available here: http://kernel.ubuntu.com/~kernel-ppa/mainline/. And the version you're requesting is available here.

However, it is possible that those kernel be less well integrated, since they are less tested than kernel provided by the standard updates.


It seems that you have broken download. The patches folder came from the same git-repository.
On my clean Ubuntu 16.04 LTS VM I got it installed with simple commands below:
sudo apt-get install git
cd ~/Downloads
git clone https://github.com/devttys0/sasquatch.git
cd sasquatch
./build.sh

As the result I have sasquatch executable in  /usr/local/bin:

$ which sasquatch
/usr/local/bin/sasquatch

$ sasquatch -v
unsquashfs version 4.3 (2014/05/12)
...

Try again with this method.


E: The package needs to be reinstalled, but I can't find an archive for it

The commands that resolve the above problem are:

sudo rm /var/lib/apt/lists/* -vf
sudo apt-get update

After that just run the Update Manager, and you should be all ready to go.


How to install Diablo 2 Lord of Destruction?

In order to configure Diablo II to read the CD, you have to change Wine propierties (I assume that you are using Wine because it is impossible otherwise) and change the letter of the CD drive linking it to the iso mounted.

If not, use another .exe to run the program ;)


instalation of ubuntu touch in Defy plus, 'adb shell getprop ro.cm.device ' returned non-zero exit status 255

It seems that ADB is not detecting the device...

You can try entering "fastboot mode" by turning the device off, holding Vol Up + Power, and then trying phablet-flash.

If this does not work, check your USB cable and research how to place your device into Fastboot mode.

---or---

Boot up your phone, enter Settings, enter "Development Menu", and enable ADB. I believe the installer uses Fastboot. If the above method fails, try this way. Also remember that you need your bootloader to be unlocked:

https://wiki.ubuntu.com/Touch/Install


Why Ubuntu isn't installed in UEFI by default?

Ubuntu automatically detects whether a machine has been booted in legacy mode or in UEFI mode and chooses the installation type based on that.

So the installation type is determined based on how the installer has been booted.

So this is really dependant on the UEFI settings rather than on how Ubuntu is designed.


How to install debug symbol for OpenMPI on 16.04

You should use special repository with debug packages:

echo "deb http://ddebs.ubuntu.com $(lsb_release -cs) main restricted universe multiverse
deb http://ddebs.ubuntu.com $(lsb_release -cs)-updates main restricted universe multiverse
deb http://ddebs.ubuntu.com $(lsb_release -cs)-proposed main restricted universe multiverse" | \
sudo tee -a /etc/apt/sources.list.d/ddebs.list

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 428D7C01 C8CAB6595FDFF622

sudo apt-get update

Then install debug packages:

sudo apt-get install openmpi-bin-dbgsym


Error while launching `pwgui` after istallation

This is  a clear hint that you do not have the command installed.
Open a terminal and type:
sudo apt update & sudo apt install pgn2web
Then try again p2wgui


Nautilus becomes unresponsive, dmesg reports: "Valid eCryptfs headers not found..."

It sounds like you created a root-owned file/dir that's not readable by you. You can find the file(s)/dir(s) with the "find" command.

sudo find $HOME \! -user $USER -ls

The "sudo" is in there so that find can traverse root-owned directories. You can (probably)  fix them with find, as well:

MYgroup=$( id -g )
sudo find $HOME \! -user $USER -exec chown $USER:$MYgroup {} \;

Note: I should have a single backslash (for shell quoting) before each exclamation or semicolon.


My touchpad stops working when my computer's memory is full

I would suspect that this is because you do not have Swap enabled.

Swap space will allow your computer to continue functioning after you run out of memory.

See more at: Ubuntu Swap Faq


We are creating a live server for 18.04 LTS that will enable simpler installation in the common cases, but also be generally useful for everyday testing. See http://cdimage.ubuntu.com/ubuntu-server/daily-live/current/ for the current build, bugs and comments welcome.


pip installs Python modules in python 2.7 rather than 3.4

Install Pip for Python3

sudo apt-get install python3-pip

And then use it to install packages into Python3

sudo pip3 install paperclip