Most common:

$ file mediafile.mkv
mediafile.mkv: Matroska data

$ file ~/.bashrc
/home/users/l/j/ljames/.bashrc: ASCII text

$ file /usr/bin/passwd
/usr/bin/passwd: setuid ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=84a7c6f14ce2ce87570911abd85e19ea45b6754b, stripped

$ file /usr/bin/java
/usr/bin/java: symbolic link to /etc/alternatives/java

$ file /etc/alternatives/java
/etc/alternatives/java: symbolic link to /usr/lib/jvm/java-8-oracle/jre/bin/java

$ file /usr/lib/jvm/java-8-oracle/jre/bin/java
/usr/lib/jvm/java-8-oracle/jre/bin/java: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.9, BuildID[sha1]=c90f19ee0af98c47ccaa7181853cfd14867bc931, not stripped

For media, you can get more details of the format with these command variations:

$ identify ~/.bashrc
identify-im6.q16: no decode delegate for this image format `' @ error/constitute.c/ReadImage/504.

$ mediainfo mediafile.mkv
General
Unique ID                                : 158129335275244501904084975368798538245 (0x76F69A29135BD58AE99798A804250A05)
Complete name                            : mediafile.mkv
Format                                   : Matroska
Format version                           : Version 4 / Version 2
File size                                : 64.9 MiB
Writing application                      : Lavf56.40.101
Writing library                          : Lavf56.40.101 / Lavf56.40.101
IsTruncated                              : Yes

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L3.2
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 5 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Width                                    : 1 280 pixels
Height                                   : 720 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 59.940 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Writing library                          : x264 core 148 r2643 5c65704
Encoding settings                        : cabac=1 / ref=5 / deblock=1:0:0 / analyse=0x3:0x113 / me=umh / subme=8 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=123 / keyint_min=20 / scenecut=40 / intra_refresh=0 / rc_lookahead=50 / rc=crf / mbtree=1 / crf=22.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Default                                  : Yes
Forced                                   : No

Audio
ID                                       : 2
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Mode extension                           : CM (complete main)
Format settings, Endianness              : Big
Codec ID                                 : A_AC3
Bit rate mode                            : Constant
Bit rate                                 : 384 Kbps
Channel(s)                               : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 KHz
Frame rate                               : 31.250 fps (1536 spf)
Compression mode                         : Lossy
Delay relative to video                  : -367ms
Language                                 : English
Default                                  : Yes
Forced                                   : No

$ file image.png
image.png: PNG image data, 382 x 279, 8-bit/color RGBA, non-interlaced

$ identify image.png
image.png PNG 382x279 382x279+0+0 8-bit sRGB 52.2KB 0.000u 0:00.000

$ mediainfo image.png
General
Complete name                            : image.png
Format                                   : PNG
Format/Info                              : Portable Network Graphic
File size                                : 51.0 KiB

Image
Format                                   : PNG
Format/Info                              : Portable Network Graphic
Width                                    : 382 pixels
Height                                   : 279 pixels
Bit depth                                : 32 bits
Compression mode                         : Lossless
Stream size                              : 51.0 KiB (100%)

Note:

The identify command may take a long time to analize a media file before it outputs.  The output details may also fill numerous screens.

Update

I listed some very common tools for checking the file information and formats.  A very common tool from the repository is exiftool.  It'll provide very comprehensive details of the format of media files.


If i add 1>/dev/null to every line, will my standard out be redirected?

Yes, to /dev/null. In effect, the STDOUT will be discarded and hence no mail will be sent for STDOUT.

  Will the behavior for standard error stay the same otherwise?

Yes; just to note, if you need to redirect STDERR, you need to use file descriptor 2, for example, redirecting to /dev/null (i.e. discarding the STDERR): ... 2>/dev/null.


You write an error http://us.archive.ubuntu.com/ubuntu/dists/percise/main/installer-i386/current/images/netboot/netboot.tar.gz

it would be correct http://us.archive.ubuntu.com/ubuntu/dists/precise/main/installer-i386/current/images/netboot/netboot.tar.gz


I fixed this by installing new Nvidia drivers that I'm guessing were deleted with autoremove. So install nvidia-390 and it should work. However, I did get some heating issues with the driver, but that could just be laptop related.


Recover single disk from non-mdadm fake RAID 1

I dared to try partition recovery with testdisk, and it worked effortlessly.  The four partitions I already wrote about in the question are quickly found with the "quick search" function, but shown as deleted.  I changed marked them as primary by using the left/right arrow keys, and then just continued to writing the partition structure.  That takes no time at all.
Then the program says you have to reboot first for any changes to take effect, but that wasn't necessary here, since no bootable or root partitions were involved anyway -- after some seconds, all partitions were mounted automatically and intact.


Cannot reinstall samba after deleting its config file from /etc/samba

Well mostly your installation have install more dependent packages other than the samba package alone. So why your next install doesn't need the size of files that downloaded earlier.  So if you need to remove it completely like you asked then you need to uninstall it and remove the unwanted dependecies.

sudo apt-get remove --purge samba samba-*
sudo apt-get autoremove

After that If you find the config files in /etc/samba better rename it.

sudo mv  /etc/samba /etc/samba.old

Now you can install samba by issuing the command

sudo apt-get install samba

Thats it.


Problem configuring gamemode on lutris [kubuntu 19.10]

Nevermind this error was due to disabling the gamemode service just delete the package and the folder in home
then i followed this :

https://www.reddit.com/r/Lutris/comments/farvwt/how_to_get_feral_gamemode_to_work_with_lutris_on/

basically just

sudo apt install gamemode

sudo apt update

Reboot
In Lutris - Preferences / System options / Command prefix and type in ‘gamemoderun’ and click save.

Lutris will still show the toggle for Gamemode as greyed out though, but the command works.
to be sure run

gamemoded -s

before and after launching the game


How to safely remove python2.7-dev and libpython2.7-dev from ubuntu 18.04?

The python2.7-dev and libpython2.7-dev packages have never been required on any Ubuntu system -- they have always been optional add-ons for application development.
You can safely uninstall both packages.

Note for Future Readers: The -dev packages are not the same as the stock install of Python2.

If you're running 18.04, DON'T uninstall all Python2 packages. Doing so will break your system (the Python2-to-3 migration was still in progress).
All of Python2 can be safely removed from Ubuntu 20.04 and newer systems...unless you are running a Python2 application. (The Python2-to-3 migration was complete).


How to make changes in the Ubuntu interface?

One great way of achieving most of these tasks without having to touch the code is by installing gnome-tweak-tool with the following commands:

sudo add-apt-repository ppa:ricotz/testing
sudo apt-get update
sudo apt-get install gnome-tweak-tool

This tool will be able to achieve most of what you want to do. Whatever it can't do can usually be done with some tweaking in dconf Editor (available from the dash).


acer laptop left control key not recognized ubuntu 18.04

After battling with this problem (off and on) for three weeks, I stumbled across the root cause today.  After installing dconf-tools so I could run dconf-editor, I looked through org.gnome.desktop.wm.keybindings and found two assignments were not in their default state:  toggle-shaded was set to '<Ctrl><Alt>s' (IIRC), and move-to-workspace-12 was set to 'Control_L'.  When I deleted the move-to-workspace-12 assignment, the left Control key immediately started working correctly.

Note that the toggle-shaded assignment is a properly constructed mapping, but the move-to-workspace-12 one is not:  I think someone intended to assign <Ctrl>L' to that binding, but when they set it to 'Control_L' instead, they broke the keyboard.


There is a lengthy post with an 'ugly fix' for this problem:  I do not know what else this would break.

From a terminal window, edit /etc/init.d/udev as follows:

sudo nano /etc/init.d/udev

After the ### END INIT INFO add:

exit 0

Save and exit.

sudo dpkg --configure -a
sudo apt-get upgrade


Ubuntu 12.10 not installing via USB stick

If you have a new laptop, probably UEFI (the BIOS replacement) does not allow you to do it. I had the same problem with my new Samsung laptop. Before the secure boot was not turned off in UEFI (kinda BIOS, you can access it using F2 or something) I did not get any options about booting from CD or USB. So if you have a new laptop - turn off the secure boot and install Ubuntu!


Server 18.04.3: Boot problems, corrupted files or faulty GRUB

Solved booting problem by editing /etc/fstab to reflect current internal drive setup. Machine now boots up.


unity gone, no desktop. struggle to get back

try to go through tty1 by pressing Ctrl + Alt + F1 and install gnome from there :

apt-get install gnome


Horizontal scrolling treated as right click in Java applications

That is this bug. You can fix it as described there, by running synclient HorizTwoFingerScroll=0 (two finger scroll will still work fine).

You can add the command at startup with the "startup applications" dialog.


What is the normal metacity and nautilus memory consumption?

Correct. That's not normal at all. As comparison, on my system, nautilus uses 25,5MiB, gnome-panel uses 8MiB, indicator-datetime-service uses 9,3MiB and compiz (I don't use metacity) uses 42,5MiB with Unity.

Very odd, but with so little information, it's impossible to provide anything more helpful. Hope it helps though :)


How to fix broken `msgfmt` installation?

You have the right gettext package installed, but your PATH is a bit inconvenient and therefore you use the "wrong" msgfmt.

The path /opt/bitnami/common/bin should be after /usr/bin and so on. Place /opt/bitnami/common/bin at the end of your PATH settings.


How to remove a repository and all it's installed programs?

You can try ppa-purge.

For that, you need to already have the PPA to your system so that ppa-purge can analyse the packages installed from that PPA.

First of all, install ppa-purge by running the following command in a terminal: sudo apt-get install ppa-purge

Then, run a command similar to this: sudo ppa-purge nautilus-actions-extra

After running ppa-purge, run sudo apt-get update && sudo apt-get upgrade and the packages will be reverted to the default repository.


Have you been powering off rather than doing a clean shutdown?  I've read some say that this message happens after a file system check is run at boot. The system has to mount read-only during the check and will remount read-write afterward.


How is there a 3.1 gb filesystem WITHOUT hard drives in Ubuntu Live

Magic!

More seriously, a few things - firstly that the filesystem on the disk is compressed with squashfs, any changes are temporarily stored in a ramdisk, and lost when you reboot. All this is abstracted away into a single file system through unionfs

The 3.1gb filessytem you see is the unionfs file system, and squashfs makes it possible to fit all that into the livedisk.

Like I said, its magic ;)


From what can be found on the H&R Block website (http://www.hrblock.com/tax-software/) the software is produced only for Windows and Mac.  It may work in Wine, but that would be far from certain.  If you wish to use this software, you will probably need to load Windows into a virtual machine or dual boot setup, and run the software from that operating system.


Can I make my terminal color scheme variable upon my cwd?

You could have the $PROMPT_COMMAND change the terminal color settings, but it would change the color scheme in every terminal window, not just the current one.
For 14.04, put the below into your ~/.bashrc. You may want to backup your current gconf settings before proceeding.
_terminal_colors(){
    local dir="/apps/gnome-terminal/profiles/$TERMINAL_PROFILE"

    local bg_default="#30300A0A2424"
    local bg_xterm="#147A147A147A"
    local bg

    local fg_default="#FFFFFFFFFFFF"
    local fg_xterm="#EEEEEEEEECEC"
    local fg

    local palette_default="#2E2E34343636:#CCCC00000000:#4E4E9A9A0606:#C4C4A0A00000:#34346565A4A4:#757550507B7B:#060698209A9A:#D3D3D7D7CFCF:#555557575353:#EFEF29292929:#8A8AE2E23434:#FCFCE9E94F4F:#72729F9FCFCF:#ADAD7F7FA8A8:#3434E2E2E2E2:#EEEEEEEEECEC"
    local palette_xterm="#000000000000:#CDCB00000000:#0000CDCB0000:#CDCBCDCB0000:#1E1A908FFFFF:#CDCB0000CDCB:#0000CDCBCDCB:#E5E2E5E2E5E2:#4CCC4CCC4CCC:#FFFF00000000:#0000FFFF0000:#FFFFFFFF0000:#46458281B4AE:#FFFF0000FFFF:#0000FFFFFFFF:#FFFFFFFFFFFF"
    local palette

    if [[ $PWD == ~/Desktop ||
          $PWD == ~/Desktop/* ]]
    then
        palette="$palette_xterm"
        bg="$bg_xterm"
        fg="$fg_xterm"
    else
        palette="$palette_default"
        bg="$bg_default"
        fg="$fg_default"
    fi

    gconftool-2 --set "$dir/palette" --type=string "$palette"
    gconftool-2 --set "$dir/background_color" --type=string "$bg"
    gconftool-2 --set "$dir/foreground_color" --type=string "$fg"
}

TERMINAL_PROFILE="" # Your profile here.
PROMPT_COMMAND="_terminal_colors"

For 16.04 and newer, you'll need to adapt the commands to use dconf instead of gconftool-2. It's a totally different syntax and directory structure.

Simpler solution
So given the complexity of the above, I think it's easier to just set the color of the pwd in the PS1 prompt. This is forwards and backwards compatible, and probably cross-platform too:
_PROMPT_pwd_color(){
    if [[ $PWD == ~/Desktop ||
          $PWD == ~/Desktop/* ]]
    then
        printf "\e[1;31m" # Red
    else
        printf "\e[1;32m" # Green
    fi
}

PS1='${debian_chroot:+($debian_chroot)}\[\e[1;32m\]\u@\h\[\e[m\]:\[$(_PROMPT_pwd_color)\]\w\[\e[m\]\n\$ '


I've found a solution for this.

plug the modem into any Windows device.(I used my friends.).
copy the Linux_dialer folder into a USB or some other place.
Copy the folder into the usr folder in Linux using gksudo.
Open terminal and run sudo -i.
Change directory to the /usr/Linux_dialer.
Run the command install or dialup after installing.(Sometimes you will have to type the full path.).

I tried this only in Ubuntu 14.04. I don't know how to do it in other versions. Hope it helps.


This seems to be a known bug the solution seems to be adding an option in modrprobe.d

echo "options snd-hda-intel model=tpt460" > /etc/modprobe.d/alsadock.conf


To get the game to start in full screen, just run it once from shell by adding the argument --fullscreen:

$ warzone2100 --fullscreen

Once you run it that way, it will always run on full screen.


You may find the following a shorter example:

#!/bin/sh
lscpu |awk -F : '($1=="CPU MHz") {printf "%3.2fGHz\n", $2/1000}'

Note that, on my system, using an AMD CPU and lscpu version 2.27.1 on ubuntu server 16.04 (64 bit) I have lines in the output as follows:

CPU MHz:               4000.000
CPU max MHz:           4000.0000
CPU min MHz:           1400.0000

The awk command uses ":" as the field separator. It looks for the line starting "CPU MHz" and then simply prints the value over 1000 (convert MHz to GHz) using 3.2 format -- three significant figures with two decimal places.

From your question, you appear to be looking for "CPU-frequentie" is the lscpu output. I don't know what the output of your lscpu looks like, but I assume that you might need to substitute "CPU-frequentie" for "CPU MHz" in the awk line

For completeness, the output I get on my system is:

4.00GHz


Using Ubuntu Tweak, under Tweaks > File Manager, set "Automatically open a folder" to off.

This answer came from...
Nautilus Opens Devices on Every Log in

How to get Ubuntu Tweak. In Terminal...

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

This came from...
http://www.webupd8.org/2012/11/ubuntu-tweak-gets-full-ubuntu-1210.html

I was having this problem with opening TrueCrypt volumes and thought it was a bug involving TrueCrypt.  I now believe it is a designed feature of Ubuntu.


Try the following:
Open a terminal and run:
  cd ~/Downloads

  wget https://www.openprinting.org/download/printdriver/debian/dists/lsb3.2/main/binary-amd64/openprinting-ppds-postscript-brother_20130226-1lsb3.2_all.deb

  sudo apt-get update

  sudo dpkg -i openprinting-ppds-postscript-brother_20130226-1lsb3.2_all.deb

  sudo apt-get install -f

  sudo apt-get install system-config-printer

  system-config-printer

And see if your printer appears


Restoring previous drivers after jockey's nvidia drivers update

Do not install jockey's releases when you've got older ubuntu version - after upgrading to 14.04 and installing drivers via jockey everything should work fine, even if you've got hybrid graphics.


You're talking about "kinetic scrolling". If you're using GNOME and really want kinetic scrolling now, you could try applying this patch and building GNOME. Or wait until it's implemented in your desktop environment of choice.

libinput documentation says:

  The X.Org synaptics driver implemented kinetic scrolling in the driver. It measures the scroll speed and once the finger leaves the touchpad the driver keeps sending scroll events for a predetermined time. This effectively provides for kinetic scrolling without client support but triggers an unfixable bug: the client cannot know that the events are from a kinetic scroll source. Scroll events in X are always sent to the current cursor position, a movement of the cursor after lifting the finger will send the kinetic scroll events to the new client, something the user does not usually expect. A key event during the kinetic scroll procedure causes side-effects such as triggering zoom.

  libinput does not implement kinetic scrolling for touchpads. Instead it provides the libinput_event_pointer_get_axis_source() function that enables callers to implement kinetic scrolling on a per-widget basis, see Scroll sources.


You can see what pseudoterminals you're using with the w commmand. To kill a particular one, use pkill -9 -t pts/ n. But the behavior is a little funky if you try to kill the pseudotermnal where you're running the w command.
This also doesn't seem to remove duplicates in the result of w.  I haven't been able to reduce the number of pseudoterminals to less than 2 (plus tty1).


Restart returned to session indicator menu after upgrading to 13.10

Open dconf Editor
Go to: apps > indicator-session
Enable suppress-restart-menuitem


can a snap package depend on a .deb package provided by the distro?

The short answer to your question is: no, snaps cannot depend upon .debs in such as way that, when the snap is installed, the .deb is installed as well.

However, the longer answer is that, when building the snap, you can bundle whatever .debs you want within it. To use your example, here's the snapcraft.yaml for a snap that bundles wget within it:

name: my-snap-name # you probably want to 'snapcraft register <name>'
base: core18 # the base snap is the execution environment for this snap
version: '0.1' # just for humans, typically '1.2+git' or '1.3.2'
summary: Single-line elevator pitch for your amazing snap # 79 char long summary
description: |
  This is my-snap's description. You have a paragraph or two to tell the
  most important story about your snap. Keep it under 100 words though,
  we live in tweetspace and your description wants to look good in the snap
  store.

grade: devel # must be 'stable' to release into candidate/stable channels
confinement: strict # 'strict' confinement means fully confined

parts:
  my-part:
    plugin: nil
    # Include the wget .deb from the Ubuntu package archive
    stage-packages: [wget]

apps:
  # expose wget to end-users
  wget:
    command: usr/bin/wget
    plugs: [network, home, removable-media]

Run snapcraft on that and you end up with a snap that has a wget app. It doesn't pull wget in at install-time like you asked, but by pulling it in at build-time perhaps it accomplishes your end goal.


Why I want a light version of it is because I am not confortable with intalling 208.2 mb wine to my poor computer.

The 208.2 MB includes the base Wine framework necessary to run any Windows application or installer, no matter how small or large. You risk your application not running or installing if you don't install the base framework. You can try removing any -doc packages, etc. after your application in installed and running fine.

Briefly, no, there isn't a "light" version of Wine.


How can I find most stable and newest kernel edition for Ubuntu?

:-) The most stable is not the newest

Actually, both are mutually exclusive...  And as you have another question open with Boot fail after update kernel in Ubuntu 14.04, I would stay with the standard...

$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

$ uname -r
3.13.0-34-generic

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


Can I use the Apple Mini DisplayPort to Dual-Link DVI Adapter?

Yes it should work. Use one all the time on my MacBookPro6,2 for meetings both in OSX and Ubuntu.


What you need is ImageMagick which comes pre-instaled with Ubuntu! :)

convert -rotate 90 *.jpg

Read the on the website on how to crop (using the -crop parameter), which will vary depending on how much you want to crop and where to crop.


How could I have dropped out of sudoers?

After

usermod -G advanced dims

the user dims is only a member of the group advanced but not of any other group. So as he isn't a member of the group admin or sudo he is no longer allowed to use sudo.

To just add a user to another group you need to use the -a switch to usermod, like

usermod -a -G advanced dims


How to install pgAdmin 4 in server mode on Ubuntu 16.04

These are the steps I followed to make it run:

1) I didn't have virtualenvwrapper installed, so I (duh!) installed it

sudo pip install virtualenvwrapper

2) Standing on my home folder, I made a pgadmin virtual environment, which creates a pgadmin folder, inside of which I tell it to activate itself

cd ~
virtualenv pgadmin
cd pgadmin
source bin/activate

3) Inside my virtual environment, I make sure to have required dependencies so I'd be able to build wheel for pycrypto and psycopg2

sudo apt-get install build-essential libssl-dev libffi-dev python-dev libgmp3-dev
sudo pip install cryptography pyopenssl ndg-httpsclient pyasn1

4) Having the required deps, now I can download and pip install the latest pgadmin4 release

wget https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v1.4/pip/pgadmin4-1.4-py2.py3-none-any.whl

pip install pgadmin4-1.4-py2.py3-none-any.whl

5) pgAdmin4 is installed in my virtualenv, now I need to create a config_local.py in the same folder it was installed, and I will use config.pyas the base. So, let's find that one first:

find . -wholename "*pgadmin4/config.py"

6) It tells me it's in ./lib/python2.7/site-packages/pgadmin4/config.py so now I can copy it and run pgAdmin4:

cp ./lib/python2.7/site-packages/pgadmin4/config.py ./lib/python2.7/site-packages/pgadmin4/config_local.py
python  ./lib/python2.7/site-packages/pgadmin4/pgAdmin4.py

The webapp is now running at  http://localhost:5050

### EDIT ###

To avoid updating this thread each time a new version of pgAdmin4 is released, i made a pgadmin4_installer repo at GitHub with:

a detailed README.md
an AptFile with system packages to install
Makefile tasks to create virtualenvs specific to python2 or python3, according to your preference
Makefile tasks to install requirements (python2 or python3)
Instructions to run as an uwsgi script
Instructions to create an uwsgi service with autostart on reboots


The only way you can use AutoCAD is through VirtualBox.

I made a small tutorial in Google+

This instructions are for AutoCAD 2012, but it should be similar to newer versions as well.

Option 1

Install Windows XP or 7 (no updates) and removed a few default applications and animations to make it very light on VirtualBox. Install AutoCAD and then select Seamless on VBox. Bingo!

Set up Vbox to use only 1.5 gb of ram and it works super fast. No delays no crashes.

Now I can copy the Windows XP/7 folder from my Vbox drive and distributed to other machines.

Your machine needs at least 6gb+ of ram. I have 8gb and with Vbox/Autocad open it uses a bit less than 3gb of ram.

Option 2

This takes some time to get it running. A few days ago I made a tutorial in Spanish on how to use the Android AutoCAD version on Ubuntu. It is much faster but with less features.

Option 3

Alternatively you can use Bricscad, a really good alternative to AutoCAD and it cost one third of the price.

Or you can try Draftsight, free but I never had good luck with performance. I guess it doesn't support all graphics card.


You can do it by

. /path_to_script/script_name; proc_name


Don't use directory/folder name with space.

Example:

  Wrong  : "Mathematica 9"
  Correct: "mathematica"


How do I uninstall the Chrome (OS) desktop enviroment?

If you're getting Disturbed of The Chromium thing.

Press CTRL + ALT + T,
copy: sudo apt-get purge --auto-remove lightdm-login-chromiumos
Enter your Password and wait.

Don't worry Ubuntu will not be affected or Screwed your PC


You can set the URL using the uri parameter in the NetworkManager config file /etc/NetworkManager/NetworkManager.conf. Add the following lines there:

[connectivity]
uri=https://your.host.com/another-path

The important part is that the server must return either the header X-NetworkManager-Status with a value of online or a body content with NetworkManager is online.

You can also set interval to set the check interval in seconds and response to require a specific string in the check response. For more information see the CONNECTIVITY SECTION of the NetworkManager man page.

After that you have to restart the NetworkManager or reboot your system:

# sudo service network-manager restart


How do I get to Unity from full screen XBMC (w/o exiting the program)

Thanks to @Smile4ever and the excessive key-pushing his suggestion induced in me, I found a solution: simply pressing AltGr made the trick! Then I suddenly enter the Unity GUI. Where it wants me to enter a command, admittedly, but that does not matter, since I can now access the desktop, minimise XBMC or do whatever I want.

One headache less for me -- having to insert an external disk in the machine every time I wanted to access the Unity GUI did not really strike me as the most sleek solution.


Getting JDK error while installing anything

Did you try updating Java files on the system?

Use the below commands to see if any updates are available.

sudo apt-get update
sudo apt-get upgrade


Actually you can, go to the settings of the VM, system tab, processor sub-tab and theres the settings you're looking for.


The instruction for installing a kernel without upgrading the distribution are nicely described here.

Since these instructions have been tested by many they should have a high chance of succeeding for you.


Ubuntu 20.04LTS - Jabra Talk 25 - earpiece works but mic doesn't

After some fiddling with the settings I got it to work. In case someone else has this difficulty. I used these in Sound Settings

Output Device: Headset-Jabra Talk 25
Configuration: Headset Head Unit (HSP/HFP)
Input Device: Headset-Jabra Talk 25

It seems that the Configuration setting is key to allowing the microphone to work.


Trying to install Ubuntu 13.04 alongside Windows 7

Try boot-repair. It's the only solution that looks feasible. https://help.ubuntu.com/community/Boot-Repair


Use Evolution to back up Gmail "Sent folder"

i'm assuming your using IMAP

open edit --> preferences
select your account and press edit
goto defaults tab
change sent messages folder to: [Gmail]/sent mail

this will automatically add sent mail to your gmail account from now on.
just drag old sent mails onto this folder

Luri asked which would be best, POP or IMAP...

best is a matter of preference here. IMAP will treat all your gmail labels as seperate folders. Staying with pop, with all your sent and received mail in your inbox you could just create a filter locally. to create a filter goto: edit --> message filters. check its set to incoming. click add. for your sent mail: Sender, is, you@gmail.com, move to folder, destination folder. ok. Now goto your inbox press CTRL+A then CTRL+Y, this will apply the filter. play around a bit with filters for the rest of your email.


How can I solve my AMDGPU drivers problem?

I have used 2x 27" WQHD Iiyama XUB2792QSU screens that seem to be the problem.
I did buy 2 new AOC screens, 4K this time, and they do not produce the same bug.


Switching between Python 2.x and 3.x in Linux machine

There are two programs to translate Python code to/from Python 2 and Python 3, 2to3 and python3-3to2. 2to3 is installed by default and python3-3to2 can be installed by the following command:

sudo apt install python3-3to2

To convert a file named example.py run the following commands:

2to3 -w example.py # translates Python 2 code to Python 3 code

or

3to2 -w example.py # translates Python 3 code to Python 2 code

Usage
  Automated Python 2 to 3 code translation – Python documentation


RealTek Wireless adapter issues. (RTL8192ce and RTL8192cu)

It's a driver issue.

You might want to check out this thread. http://ubuntuforums.org/showthread.php?t=2148130&page=2

https://github.com/pvaret/rtl8192cu-fixes

COPIED FROM GITHUB:

Ensure you have the necessary prerequisites installed:

sudo apt-get install linux-headers-generic build-essential dkms git

Clone this repository:

git clone https://github.com/pvaret/rtl8192cu-fixes.git

Set it up as a DKMS module:

sudo dkms add ./rtl8192cu-fixes

Build and install it:

sudo dkms install 8192cu/1.10

Refresh the module list:

sudo depmod -a

Ensure the native (and broken) kernel driver is blacklisted:

sudo cp ./rtl8192cu-fixes/blacklist-native-rtl8192.conf /etc/modprobe.d/

And reboot. You're done.


How may I know if my devices have their drivers installed?

In a nutshell:

Since you have Intel graphics, then you have the driver you need already.

As for other components, Ubuntu will inform you if there are missing drivers for certain components, such as your wireless devices. If you are unsure, you can run jockey-gtk and it will run a check for you.

If you need to see the details of what you have installed, there are two options:

GUI (Graphical interface):

Install the hardinfo application:

This gives you a detailed readout of everything on your system, including driver information for your devices.

It won't tell you if there are newer drivers available, but that's not really a problem because on Linux the drivers usually come with the Kernel, so you don't really need to "upgrade" your drivers (except for certain drivers that are not included because they are proprietary).

CLI (Command-Line-Interface):

You can run sudo lshw to get a detailed readout of your system on the commandline:

My recommendation is that you pipe the output to a file though as it can be rather hefty. So, run:

touch sysinfo.txt
sudo lshw > sysinfo.txt

You can then view this file at your leisure:

gedit sysinfo.txt

or

nano sysinfo.txt

As izx mentioned in the comments, any device marked as UNCLAIMED has no driver.

For your touchpad, you just need to change the settings. Open System Settings>Mouse & Touchpad, and under the "Touchpad" tab, you can set up two-finger scrolling.


Download size: Ubuntu 14.04 ISO image vs online upgrade?

That notification will upgrade your system in-place by downloading the updated packages and installing them.

It's likely that most of the base packages will need to be downloaded and updated, so I don't think you would save a lot of time by doing that.


Why does Ubuntu's boot become slower with the passing of time?

Depending on the applications you install these can all affect boot time.

It is an easy thing to diagnoise just install

sudo apt-get install bootchart

After you install and reboot look in /var/log/bootchart and evaluate your data.


Clementine says "Unauthorized" on every song i try to stream

According to this post on github, updating to a newer version of Clementine fixes this on Windows, on the same version as in the Ubuntu repository 1.2.3

Clementine/xenial 1.2.3+git1354-gdaddbde+dfsg-1build1 amd64
  modern music player and library organizer

Here is a PPA for the latest stable version 1.3.1

sudo apt purge clementine
sudo add-apt-repository ppa:me-davidsansome/clementine
sudo apt update
sudo apt install clementine


Tablet Wacom Inutos Comic CTH 490 not recognized in system settings

This is most likely this bug:

https://bugs.launchpad.net/ubuntu/+source/unity-control-center/+bug/1575887


How to restart GPU without reboot (softreset)?

Run one of the next commands in terminal or, better, in TTY# using Ctrl+Alt+F#, where # is a number from 1 to 6:

sudo /etc/init.d/lightdm restart

or

sudo service lightdm restart

This will restart the graphics environment.

I don't know yet from what reason, but these commands worked for me only in TTY. Anyway, if you are stuck in a black screen after you are running one of these commands in terminal, just go in TTY and run next command:

sudo service lightdm start

From http://en.wikipedia.org/wiki/LightDM:

  LightDM is the default display manager for Ubuntu, Edubuntu, Xubuntu
  and Mythbuntu since 11.10 release, for Lubuntu since 12.04 release,
  and for Kubuntu beginning with 12.10.

So, restarting LightDM entail restarting the GDM without rebooting the machine


You should select zfs or btrfs as storage backend in the initialization of LXD to support disk quota. Other storage backends don't support quota.


Xubuntu LightDM shows blank screen half the time

It's crashing at:

[    74.599] (EE) Screen(s) found, but none have a usable configuration.

because of this:

[    74.599] (EE) intel(0): [drm] failed to set drm interface version.

[    74.599] (EE) intel(0): Failed to become DRM master.

[ 74.599] (II) UnloadModule: "intel"

So,  your Intel drivers are crashing, the X server is unloading them, and so you end up at the black screen you describe. As Kupiakos said:

  You may also
  want to try an experimental or older version of your intel video driver.

(Your current one isn't working)


Rather, you can download the .deb file on any other machine which is      connected to the Internet. Using the following command:

sudo apt-get install download openssh-server

The, install the .deb image on the server using the following command:

sudo dpkg -i /home/himanshu_code/Desktop/ssh.deb


How to tell to use the Windows recovery partition to install?

Yes. In advanced mode, if you choose /dev/sda1/, it should format /dev/sda1 and install Ubuntu where the recovery used to be.


try following

import os
import sys
sys.path.append(os.path.abspath("your installed python module path"))

hope this help

To get the module path, follow the step:

In the terminal or SSH type

 python

then type:

import pydub

then

print(pydub)

this command will give you module path


Ubuntu 14.04 Desktop install stuck in loop at Where Are You

My Ubuntu 14.04 installation hung when I entered Montreal in response to the question, "Where are you?". When I entered, New York, which is in the same time zone as Montreal, the the installation proceeded normally.


What is the process to get a winXP or win7 from its original harddrive into a virtualbox VM?

Yeah, I used to do that all the time in class.

Note: Back up everything on the hard drive before you do this. You never know.

1 - Install VirtualBox.

2 - Connect and mount the Windows hard drive.

3 - Find out which device represents the Windows hard drive by running sudo fdisk -l.

4 - Run this command as root (replacing sdx with the appropriate identifer for the Windows disk).

VBoxManage internalcommands createrawvmdk -filename /root/windows.vmdk -rawdisk /dev/sdx

5 - Open VirtualBox from the command line as root.

virtualbox

6 - Add a new virtual machine to VirtualBox. Give it enough memory, set the appropriate OS, and for the hard disk, browse to the VMDK you created (found in /root/).

7 - Download Super Grub2 Disk's ISO. Add the ISO to the VM, as a virtual CD. This will allow you to boot to Windows without having to go to all sorts of trouble with a fake MBR.

8 - Boot the VM. Once inside Super Grub2 Disk's menu, select "Find any operating system".

9 - You should see the Windows installation in the list now. Select it using the arrow keys and press Enter.

10 - Windows should now boot.


Will "apt-get upgrade" update the kernel on LTS?

Only those installing from the 12.04.2 or newer point release media
  will automatically receive a newer enablement stack by default.

To remain on the original Precise stack, Install from a previous 12.04.0 or 12.04.1 point release and update. The previous 12.04.0 and 12.04.1 releases are archived here.

Source: https://wiki.ubuntu.com/Kernel/LTSEnablementStack


spoofed mac address changes when trying to connect to network

The answer to the solution is:

sudo service network-manager stop

sudo ifconfig wlan0 down

sudo macchanger -m XX:XX:XX:XX:XX:XX wlan0

sudo ifconfig wlan0 up

sudo service network-manager start

The macchanger line can be replaced with whatever macchanger command you need. or with sudo ifconfig wlan0 hw ether XX:XX:XX:XX:XX:XX


The message from ar is a notice about the build process not an error message. As far as I understand it, it means that rebuilding the software after modification may take longer than necessary; nothing to worry about.


missing python dependencies when installing phablet-tools for ubuntu touch preview

This works for me with Ubuntu 13.04 64-bit.

Did you do first add the PPA?

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

sudo add-apt-repository ppa:phablet-team/tools

sudo apt-get update

sudo apt-get install phablet-tools android-tools-adb android-tools-fastboot


grep: how to show only one word after found one?

This should work for you.

xinput list|grep AT|grep id=|cut -f 2|cut -f 2 -d =

cut command has an option to specify the delimiter.

xinput list|grep AT|grep id=|cut -f 2

This gives you id=13, so pass it to another cut command specifying the delimiter as =

Sample

~$ xinput
⎡ Virtual core pointer                      id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ Dell Premium USB Optical Mouse            id=10   [slave  pointer  (2)]
⎜   ↳ DualPoint Stick                           id=15   [slave  pointer  (2)]
⎜   ↳ AlpsPS/2 ALPS DualPoint TouchPad          id=16   [slave  pointer  (2)]
⎣ Virtual core keyboard                     id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Power Button                              id=6    [slave  keyboard (3)]
    ↳ Video Bus                                 id=7    [slave  keyboard (3)]
    ↳ Power Button                              id=8    [slave  keyboard (3)]
    ↳ Sleep Button                              id=9    [slave  keyboard (3)]
    ↳ Dell Dell USB Keyboard Hub                id=11   [slave  keyboard (3)]
    ↳ Dell Dell USB Keyboard Hub                id=12   [slave  keyboard (3)]
    ↳ Laptop_Integrated_Webcam_FHD              id=13   [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=14   [slave  keyboard (3)]
    ↳ Dell WMI hotkeys                          id=17   [slave  keyboard (3)]
~$ xinput list|grep AT|grep id=|cut -f 2|cut -f 2 -d =
14


Removing keyboard indicator on Top panel in Ubuntu Gnome 16.04

On Ubuntu 16.04 LTS, with gnome-flashback, the keyboard applet look like this:

This icon in applet indicator cannot be easily removed as it used to be (a tick in the keyboard preference was available in the previous Ubuntu version)

But this command does the trick:

gsettings set com.canonical.indicator.keyboard visible false

(source: https://askubuntu.com/a/629072/681889)


Ubuntu 18.04 LTS, Lenovo Yoga 3 Pro, connecting external display

I just set up my Lenovo P71.  Had 2 external monitors on DVI (via docking station) with my old rig.  Now I have 1 on DVI and one on HDMI.  Please make sure you flip the monitor's input over to HDMI in order for the signal to show up.  I didn't have to tweak settings or my NVQuadro driver.


Ubuntu recovery mode. How to get backup of my home and download directories

Thanks to those tried to help. I solved the issue by following the same steps in the question to use recovery mode. Then I choose Clean (instead of Drop to root shell prompt). This provided few hundreds MB which allowed me to boot.


Trying to compile java file without success on Ubuntu (CVE-2020-2555.java)

This can be closed. Solved by compiling with JetBrains IDEA community edition.


AMD switchable graphics is now available in Ubuntu as well but it doesn't support automatic switching. You have to manually select the GPU that you wish to use.

To enable it eneter this command in the terminal,

sudo apt-get install fglrx

After the drivers have installed, restart your computer. Once it has restarted,

sudo aticonfig --initial

and restart again.

Once it has restarted again, Run AMD Catalyst Control Centre (Admin mode) from the dash and head to switchable graphics section. Switch to your desired card there.


How do you dual boot Windows 7/8 seperatly with GRUB?

Simple answer is: You can't.  Windows 8 uses a new type of bootloader, starting the operating system almost completely before asking you to select which to boot.  It then reboots into the correct OS.  In this case, if you select Windows 7 it boots into the Windows 7 bootloader and then Windows 7.  If you select Windows 8, it reboots into the Windows 8 partition with the flag to skip the Windows 8 bootloader.

Weird answer: You may be able to uninstall or disable the Windows 7 and Windows 8 bootloaders, allowing GRUB to take sole control.  This is not really an Ubuntu-related task though.  Try asking someone at M$?


Is there any way to create shortcuts to open specific section of top panel

Shortcut keys to open sections of the top panel include
Activities
Next to simply pressing Super, you can open the Activities overview with the shortcut keys Super+w or Alt+F1. There is also Super+a to immediately display the Application overview.
Application menu
The application menu, i.e. the button with the icon and name of your application, can be opened with Super+F10.
Calendar/notifications
Use Super+M or Super+V to open the calendar panel.
User menu
Somewhat surprising, no shortcut key is available by default to open the User menu at the right with the keyboard. Still, Gnome Shell can be controlled over dbus. Either of the following commands will pull down the User menu. Select one and bind it to a shortcut key using "Settings" - "Keyboards Shortcuts".
gdbus call -e -d org.gnome.Shell -o /org/gnome/Shell -m org.gnome.Shell.Eval string:'Main.panel.statusArea.aggregateMenu.menu.toggle();'

or
dbus-send --session --type=method_call --dest=org.gnome.Shell /org/gnome/Shell org.gnome.Shell.Eval string:'Main.panel.statusArea.aggregateMenu.menu.open();'


Default sshd_config file for Ubunu 20.04

You can re-download the package from here for Ubuntu 20.04.
Once you have the deb file, you can create a temporary directory and type dpkg-deb --extract <deb file> to extract it.  And then look inside for the configuration file.


Thunderbird extension Messaganing Menu and Unity Launcher Integration stopped working

Try the following extensions:

https://launchpad.net/globalmenu-extension

https://addons.mozilla.org/en-US/thunderbird/addon/messaging-menu-integration/

https://addons.mozilla.org/en-US/thunderbird/addon/unity-launcher-integration/


Got this from Dibakar Ghosal his comment:

You have to change the permissions of the .od files. Make them writable.


How do I access the home directory in a different OS

Umm, basically between the Linuxes there should be no problem, you can just use the file manager and those partitions should show up. To mount the Windows partitions you might need root.

To make it easier, you could automatically mount them or even use the same home directory for multiple Linuxes (can lead to problems), for this you would need to learn about the /etc/fstab configuration file.

To access the Linux partitions (which I hope are ext?-file systems) you need a special driver on Windows, there are like two or three to choose from, a quick search for "ext file system windows" should find them.


Ubuntu 18.04 no display on ASUS ROG (GL703VD-GC083T)

Please boot the server version of 18.04 and then check ~/x-session.errors, /var/log/Xorg* and /var/log/syslog on your original install for messages related to Nouveau, NVidia and related.


Forget to configure a separate partition for /home

You must mount the partition on a temporary directory name to copy files to it the original /home. Open a terminal (CtrlAltT).  Run it:
Find out the name of the partition
sudo -i
fdisk l

Suppose it is /dev/sda7
You create the directory
sudo -i
mkdir /media/hometemp

Mount partition
mount /dev/sda7 /media/hometemp

To copy:
cd /home
cp -ax . /media/hometemp

This last line is the only one used to clone, attention "." the end.
Now mount the new / previous home rename the /home partition and remove the old.
cd /
mv /home /home.old
mkdir /home
umount /dev/sda7
mount /dev/sda7 /home

Now you have to find the UUID of the partition and edit the /etc/fstab file to mount the partition at startup.
blkid /dev/sda7
nano /etc/fstab

And you add these lines at the end with that reported blkid UUID.
# /dev/sda7 was /home
UUID=a673dafc-1032-45c2-a1b4-a615703bdaaf /home ext4 defaults 0 2

Ctrl + O, save file. Ctrl + X, close nano.
Restarting have everything working exactly the same, but with separate partitions.
Once everything is working well, delete the /home.old and /media/hometemp
sudo -i
rm /home.old
rm /media/hometemp

Spanish version
Debes montar la partición en un directorio de nombre temporario
para poder copiar a ella los archivos del  /home original.
Abre una terminal.  (Ctrl+Alt+T).
Ejecuta en ella:
Averiguas el nombre de la partición
sudo -i
fdisk -l

Supongamos sea /dev/sda7
Creas el directorio
sudo -i
mkdir /media/hometemp

Montas la partición
mount /dev/sda7 /media/hometemp

Para copiar:
cd /home
cp -ax . /media/hometemp

Esta última linea es la única que sirve para clonar, atención con "." del final.
Ahora montas el nuevo /home previo renombrar el /home viejo y desmontar la partición
cd /
mv /home /home.old
mkdir /home
umount /dev/sda7
mount /dev/sda7 /home

Ahora tienes que averiguar la UUID de la partición y editar editar el /etc/fstab, para montar la partición al inicio.
blkid /dev/sda7
nano /etc/fstab

Y añades estas lineas al final con la UUID que informó blkid.
#/dev/sda7 was /home
UUID=a673dafc-1032-45c2-a1b4-a615703bdaaf /home ext4    defaults        0       2

Ctrl + O, guarda el archivo. Ctrl + X, cierra nano.
Al reiniciar tendrás todo funcionando exactamente igual, pero con particiones separadas.
Una vez que todo esta funcionando bien, borras el /home.old y el /media/hometemp
sudo -i
rm /home.old
rm /media/hometemp


environment-modules package breaks flashback

After installing environment-modules package with apt the following dialog usually appears when starting a graphical session:

This is due to a bad dependency definition in environment-modules ubuntu package, which depends on tcl package whereas only tcl86 is automatically installed by apt.

To solve this issue, install manually the tcl package:

$ apt-get install tcl

This issue has been solved on environment-modules ubuntu packaging in newer versions available starting Ubuntu 19.10.


I have the same issue with my new Acer A515-43-R19L on Windows 10 Pro. The laptop reboots on wake.

Installing AMD's Adrenaline driver fixed the issue.

I hope this helps.


Display driver issue on Dell Vostro i5 with Ubuntu 17.10

The graphics device that you have in your computer is still relatively new, and support for that device is still maturing.  Currently you are using what is referred to as the "i915" driver.  At some point it can be expected that Ubuntu will more fully support this device 'Out of the box'.

This does not solve your current problem, and there are a few things that you can attempt to use to improve graphics support now.

In no particular order:

the Updated and Optimized Open Graphics Drivers  often called the Oibaf drivers are available as a PPA, and may provide  some improvement for your system.  I used these drivers for my system several version ago, and foudn them quite useful.  Please read the de-installation instructions carefully.

The xorg-edgers fresh X crack  PPA is closer to the bleeding edge of graphics driver development, and may make your system perform better, or possible become less than fully stable.   Please read the de-installation instructions carefully.

For both of these PPAs, removal of the drivers is fairly simple:  Install the package PPA-PURGE  (sudo apt install ppa-purge) and execute either sudo ppa-purge ppa:xorg-edgers/ppa or sudo ppa-purge ppa:xorg-edgers/ppaor sudo ppa-purge ppa:oibaf/graphics-drivers

Finally Intel does provide graphics drivers for Linux, although I have had poor experiences with these.  They are available at 01.org, and some instructions about removal of these drivers can be found here on AskUbuntu,  Currently they support Ubuntu 17.04 and linux kernel 4.10.


VLC installation problem on Ubuntu 14.04 LTS

Try this:

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

then run:

sudo apt-get install vlc

you should get this output:

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  fonts-freefont-ttf libaacs0 libbasicusageenvironment0 libbluray1 libcddb2
  libcrystalhd3 libdvbpsi8 libebml4 libgnutls28 libgroupsock1 libhogweed2
  libiso9660-8 liblivemedia23 liblua5.2-0 libmatroska6 libpostproc52
  libproxy-tools libresid-builder0c2a libsdl-image1.2 libsdl1.2debian
  libsidplay2 libssh2-1 libtar0 libupnp6 libusageenvironment1 libva-x11-1
  libvcdinfo0 libvlc5 libvlccore7 libxcb-composite0 libxcb-randr0 vlc-data
  vlc-nox vlc-plugin-notify vlc-plugin-pulse
Suggested packages:
  libbluray-bdj firmware-crystalhd gnutls-bin videolan-doc
Recommended packages:
  libdvdcss2
The following NEW packages will be installed:
  fonts-freefont-ttf libaacs0 libbasicusageenvironment0 libbluray1 libcddb2
  libcrystalhd3 libdvbpsi8 libebml4 libgnutls28 libgroupsock1 libhogweed2
  libiso9660-8 liblivemedia23 liblua5.2-0 libmatroska6 libpostproc52
  libproxy-tools libresid-builder0c2a libsdl-image1.2 libsdl1.2debian
  libsidplay2 libssh2-1 libtar0 libupnp6 libusageenvironment1 libva-x11-1
  libvcdinfo0 libvlc5 libvlccore7 libxcb-composite0 libxcb-randr0 vlc vlc-data
  vlc-nox vlc-plugin-notify vlc-plugin-pulse
0 upgraded, 36 newly installed, 0 to remove and 5 not upgraded.
Need to get 14.9 MB of archives.
After this operation, 63.2 MB of additional disk space will be used.
Do you want to continue? [Y/n]

That should get VLC installed.

If you still get an error instead, then please post back the output.

Also post the contents of your /etc/apt/sources.list.

gedit /etc/apt/sources.list

Another alternative, is to show us the content in /var/lib/apt/lists/:

open a command prompt Ctrl+Alt+T

cd /var/lib/apt/lists/
ls

Is your 14.04 install a fresh install, or was in an upgrade from a previous version of Ubuntu?


I'm running:

vlc --version
VLC media player 2.1.6 Rincewind (revision 2.1.6-0-gea01d28)

but have had this too with some files since VLC existed...

VLC is really robust, but even VLC can sometimes not correct from all errors in badly encoded files and other players might not even play the file at all!  What I do then is a:

nice --adjustment=18 avconv -i /path/to/file.ext -c:v libxvid -vtag XVID -g 250 -bf 2 -me_method epzs -qmax 6 -metadata title="file2.ext" -metadata artist="" -r 25 -aspect 16:9 -c:a libmp3lame -metadata title="" -ar 44100 -ac 2 -ab 128k /path/to/file2.ext

This will transcode the file to xvid in the same container (most of the time you will see a gazillion timing errors and corrections) and then it'll play normally.

Every now and then you'll find a file that even with a transcode does not play well.  Then just go back to the source (DVD/CD/Download/...) and get another copy from the source.


Unity - dash cannot find files (Ubuntu 16.04)

Apparently, Unity by default uses Zeitgeist for searching files, which is why only previously opened files are found.

You can try to install Unity FileSearch Lens for full file search, or follow this answer (a bit dated though).


I think you have to use the alternative cd for this, I don't think it's included with the standard desktop cd...


Upgrading to Gnome 3.4 breaks Unity and gnome-shell in 11.10

If you can get to the terminal:

sudo apt-get install ppa-purge
sudo ppa-purge ppa:ricotz/testing
sudo ppa-purge ppa:gnome3-team/gnome3


Two Finger Scrolling not detected on an Inspirion 2-in-1 with Ubuntu 20.04

I could solve everything by updating Ubuntu to the 20.10, and with that also the kernel from 5.4 to 5.8!


My Applications are not showing after upgrading from Ubuntu 18.04 to 20.04

In my case, this was being caused by an extension. In my particular case once I deactivated the Appfolders management extension which I had included in 18.04 LTS and restarted the computer everything worked perfectly.

Here's how to do that if you can't access your applications via the Launcher:

Press Ctrl+Alt+T on your keyboard to open a Terminal window.
In the Terminal, type gnome-tweaks and hit Enter. This will launch the GNOME Tweaks application.
In GNOME Tweaks, click Extensions in the left-hand pane.
Deactivate individual extensions by clicking the switch next to them. Alternatively, you can use the switch at the top of the window to deactivate all extensions at once.
When you have deactivated the extensions, you need to restart your shell. Press Alt+F2 to open a 'Run a Command' dialog.
In the 'Run a Command' dialog, type r and press Enter. This will restart the shell.
Open your launcher to see if the problem is fixed. Use these steps and the process of elimination to determine if an extension is causing the bugged behavior.


After having installed 12.04 get error message from update-manager

If the above works then ok...
I had the same problem.

Try this:

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

Hope it works for you.


Configure larger font in Jitsi on 3200x1800 resolution on 13 inch display

Starting with 14.04 we have an option that helps a bit:

Scaling Support

In the image below we can see the scaling it has at 0.75 on the fonts and title bars:

Set this to factor 2.0 and revert your text-scale-factor to x1.0 in unity-tweak-tool,

This enhances the Juitsi interface a bit, (but not in all places)


How to uninstall Softmaker's FreeOffice 2018?

You could try to run this command to see what will happen:

sudo apt purge $(dpkg --list | grep softmaker | awk '{print $2}') --dry-run

Then, if no important system packages are being removed, run this command without --dry-run option.

Use dpkg --list | grep softmaker to see what packages associated with it in your system.

dpkg --list | grep softmaker | awk '{print $2}' command outputs only package names which is used in sudo apt purge as package names being removed.

If only one package would be removed (softmaker), then run the command without --dry-run option to remove it:

sudo apt purge $(dpkg --list | grep softmaker | awk '{print $2}')


Not all GNOME Shell features present after installation

Your screenshot indicates that Gnome-Shell refused to load and has dropped back to the default fallback mode called Gnome-Classic.
Three specific virtualbox recommendations:

I would recommend that you define your VirtualBox guest settings as per this picture:

Install VirtualBox guest additions

I would recommend you use the very latest VirtualBox version - v4.1 at the time of writing this.

Note - it is important to check that your Host graphics card is 3D Graphics capable - This is described in this linked VirtualBox chapter


Cannot add additional toolbar buttons in Acrobat reader

I finally found a perfect solution.

Okular, a good pdf viewer that hilights pdf texts.

Check the following links:

http://en.wikipedia.org/wiki/Okular

http://ubuntuforums.org/showthread.php?t=896535


How to turn off beep on suspend in xubuntu

I guess I was wrong in guessing the beep came with an update (perhaps I muted volume a lot); on Thinkpads there is a BIOS setting for the beep that comes on all "power events" (plugging cord, suspend, etc.) This fixed it :)


Nvidia graphics fllicker on 8200MG laptop

If you installed the driver directly from the Nvidia website the results can be quite horribly broken.

if this is how you installed the driver follow the following steps:

Remove all Nvidia drivers with: sudo apt remove --purge nvidia*
Reboot the system
Use the Ubuntu Driver manager to install the recommended driver.

If that doesn't work for you or this is how you previously installed your driver then try the bumblebee project.

Google and Follow instructions for "Ubuntu $YourVersion Install Bumblebee"


''EFI boot partition'' and ''biosgrub'' partition

There are four conditions (BIOS vs. EFI and MBR vs. GPT), but two of them have identical needs (and one of those is exceedingly rare):

On a traditional BIOS-based computer with a traditional MBR partition table, GRUB's executable code gets spread around like spaghetti thrown by a baby. Some of it's in the boot-code section of the MBR, some of it's in post-MBR sectors that are officially unallocated, and some of it's in the Linux /boot partition. This is a real mess, and it works only because developers have had literally decades to create clever hacks and work out (almost) all the kinks.
On a traditional BIOS-based computer with a new GUID Partition Table (GPT), the GRUB code is similar to that in the preceding case; however, the sectors immediately following the MBR are not unallocated; they're used by the GPT itself. GPT offers no analogous place for GRUB to hijack, so GRUB's developers settled on the BIOS Boot Partition (which GParted and parted identify by a bios_grub flag) to hold the code that would go in the post-MBR sectors on an MBR disk. This is actually safer and cleaner than the MBR approach, since it serves to protect the GRUB code from other programs that might try to use that unallocated space.
On a computer with a newer EFI rather than a BIOS, boot loaders are not stored in the MBR, in officially-unallocated post-MBR sectors, or in BIOS Boot Partitions; instead, boot loaders reside as ordinary files on a FAT partition known as the EFI System Partition (ESP). (Confusingly, Debian and Ubuntu installers refer to the ESP by the name "EFI boot partition," but this name is non-standard. GParted and parted identify the ESP as having its "boot flag" set, although that terminology means something completely different on MBR disks.) An ESP can exist on either a GPT disk or an MBR disk, but the former is much more common on EFI-based computers. The EFI approach is much safer and much more flexible than the BIOS approach, since it doesn't tuck raw code away in weird places; boot loaders reside in files, just like OS-level programs. This makes them easier to identify and manipulate. (OTOH, EFI also stores data on boot loaders in NVRAM, which creates a second point of failure in the boot process. EFI's newness also means it's not as well-tested, which accounts for a host of EFI-specific problems.)

GhostMotleyX, your comment to LiveWireBT's response opined that the "best" way to install is BIOS/MBR. This is subjective, of course, but I disagree with that assessment. The BIOS/MBR approach is the least safe and the most clumsy of the three approaches I've just outlined. The EFI approach is the safest and most flexible approach. I suspect you're getting hung up on the fact that separate partitions are required for the GRUB/GPT and EFI approaches, but that's not a big deal. Aside from when setting up the system or doing partition maintenance, those partitions will be pretty much invisible to you, and they give you a lot of flexibility. Unlike MBR, GPT is not limited to four primary partitions, so you needn't hoard your primary partitions like a leprechaun hoarding his gold.


Where is your /boot/efi partition?

if you disabled legacy mode in BIOS and did not set a /boot/EFI partition in Ubuntu install partition manager you in fact installed lagacy boot. Try enabling legacy boot in BIOS and run boot repair again.

EDIT: If you run legacy mode make sure this is enabled in bios and the order it boots is set to legacy first. You also have to make sure secureboot is off as it sometimes prevents you from altering the MBR. Install bootloader on /dev/sda <---


How can I remove Unity icons that launch nothing?

Right click the offending shortcut. Choose Unlock from launcher.


There are several implementations of Java. The three most common implementations when talking about it for Ubuntu are:

OpenJDK: The primary goal of the OpenJDK project is to produce an
open-source implementation of the Java SE Platform (6 and 7). This is
the default version of Java that Ubuntu uses and is the easiest to
install.
Sun Java: Sun Java is the reference implementation for Java 6. Its support has been discontinued in Ubuntu.
Oracle Java: Oracle Java is the OpenJDK Java Se Platform version 7 implementation from Oracle. Oracle introduced with this implementation a license that prevents distribution.

Since Ubuntu 11.10 (Oneiric Ocelot) and due to license issues Ubuntu will no longer distribute Oracle's JDK and JRE. Also, previous versions supplied on PPAs suffer from security issues and are not recommended to be installed on any Ubuntu system.
There are no more supported .deb releases from Ubuntu with reference to Sun Java or Oracle Java, Ubuntu officially supports OpenJDK and OpenJRE implementation of Java which is the base for Oracle's own implementation.
OpenJRE is the official implementation of Java Runtime Environment (JRE) for your Ubuntu systems and should suffice to run any Java program that you might require and it's included in the main repository and it's easily installable.
OpenJRE
By opening a terminal and typing
sudo apt-get install default-jre

this installs openjdk-11-jre (at the time of writing this, you may install a newer java version in the future, which is now, if it installs a different openjdk version I guess)
The openjdk-11-jre package contains just the Java Runtime Environment. If you want to develop Java programs then install the default-jdk package:

Also important is to install the wrapper for supporting Java applications on your web browser, the Iced-Tea Java Plugin.
IcedTea Plugin

Or via a terminal
sudo apt-get install icedtea-plugin

Or look for icedtea-plugin in the Ubuntu Software Center.

To make sure that you are running the correct version of Java, use this command to set your choice:
sudo update-alternatives --config java

java -version should display the choice you previously made.

If you need to install OpenJDK-JRE 6 or OpenJDK-JDK 6
openjdk-6-jre (click to install) is available for installation for Ubuntu 8.04 (Hardy Heron) and up.
Install it with
sudo apt-get install openjdk-6-jre

Or if you need the developers' package, openjdk-6-jdk (click to install), install it with:
sudo apt-get install openjdk-6-jdk

A version of the icedtea-plugin (click to install) is also available to install if you are going to use OpenJDK 6.
Install it with:
sudo apt-get install icedtea6-plugin

If you really want to use Oracle's Java SE Platform, see How can I install Sun/Oracle's proprietary Java JDK 6/7/8 or JRE?.


How to develop broadband router with Ubuntu?

Traffic Control HOWTO
Squid Proxyserver Documentation
hotspot - chillispot Other hotspots
iptables

and you can read the Ubuntu server guide


Can I install Linux if in Motherboard spec say only about Windows support?

If you want to be 100% sure, buy a computer which is certified to be Ubuntu compatible (https://certification.ubuntu.com).

However, I have not encountered a single computer in my life on which I would not be able to install linux. You can be pretty sure that motherboard will support Ubuntu. The most problems I have had with linux support were various WiFi adapters, where I had to compile kernel modules in order to make them work. I would not give to much attention to what is supported, as I am pretty sure linux will work.


The dash more often called the dock is the bar on the left side click the box on the bottom to access the rest of the items and find settings. From there find the language settings.


Ubuntu 13.04 Screen Brightness Only Changes Via Hotkeys

Try using acpi_osi='!Windows 2012' the same way you would use acpi_backlight=vendor
that fixed it for me, another one to try is acpi_osi=Linux


Ubuntu 12.10 recognizes me only 3GB of free space

My 2 cents

Try to use df -hT to see free space, also use df -ih to make sure you have enough inodes on the file system, sometimes file systems can run out of inodes before running out of free space.
use smartctl -a /dev/sdX to check SMART info (gsmartcontrol for GUI), make sure the HDD is in healthy condition
if the issue happens again, try using find command to find super large files (e.g. 1GB+): find / -type f -size +1G -exec ls -lhS {} \;
Remove it interactively (BE CAREFUL): find / -type f -size +1G -ok rm -i {} \;
It is possible that some nasty apps were doing something in the background and filled the disk.

BTW: looks like your / and /home are on the same partition/LV. What file system is that? Ext4? I don't think this is a bug unless you can consistently reproduce the issue.


Child windows on System Settings have become transparent

sudo apt-get --reinstall install ubuntu-desktop

if this is not working use

sudo apt-get remove gnome-settings-daemon

and
after that

sudo apt-get --reinstall install gnome-settings-daemon
sudo apt-get install ubuntu-desktop

This solved my problem with the Ubuntu settings windows


How to Add unallocated partition to my root dir

Please boot your system using a USB live Ubuntu system and use gparted to expand the /dev/sda6 for the unallocated space.


Run gnome-session-properties and either disable gnome-fallback-mount-helper or if that is not an option, add a custom command.


many thanks for the people that help me to find the solution.
the solution is with the registry file called "upperfilters" which inflecting the VM so when


well actually its not going to work in that way.

you need to enter that file name.actually cowsay can have arguments.

for example loot at the image I have attached

And I think you'd better move with its man-page.

  Cowsay generates an ASCII picture of a cow saying something provided
  by
         the  user.   If run with no arguments, it accepts standard input, word-
         wraps the message given at about 40 columns, and prints the cow  saying
         the given message on standard output.


How to install epson l130 printer ubuntu 16.04

You do not need to download the Epson drivers anymore.

Just run this in a terminal and drivers + utilities will install:

sudo apt-get install printer-driver-escpr


Have you tried to enter BIOS (Usually F1 & F2)

Look for something called Secureboot and DISABLE.

(Also it´s not long until the release of 16.04, i suggest you install that)
http://cdimage.ubuntu.com/daily-live/current/


subtitle syncing with timings copy-paste?

In vlc you can delay or speed up the subtitles by a set time.

For more software recommendations: check this thread: What apps to sync movie subtitles easily are available for Ubuntu?

Also have a look at this thread: http://forum.videohelp.com/threads/346020-Program-to-replace-timecode-in-srt-with-timecode-from-another-srt


How do I count the number of times a number satisfies a range (bigger than x, smaller than y) in LibreOffice Calc?

For a single logical condition, you can use the COUNTIF() function.

For multiple logical conditions, one solution suggested in the OpenOffice wiki Conditional counting and summation is to use the SUMPRODUCT() function:


Info: The minimum shared memory segment size to be checked (in bytes): 1048576 (1,0MB)

and

  configured size allowed: 1,0MB

are arbitrary. Who decided that 1Mb is allowed? Seems to me they are guessing here.

Large memory segments can be white listed in /etc/rkhunter.conf so you can suppress this message if you want; what to me also indicates they know about it being a false positive. Why the need to white list it? That is admitting they can not proof there is a rootkit.

Both firefox and xfce4-terminal I would assume to need more than 1Mb. The other 2... no idea if 4Mb is what they need. 4Mb is not a lot so maybe.

I would consider anything rkhunter tells you to be a false positive unless you can stave it with proof from another source. Always use TWO detectors and match their results. If both claim the same issue I'd start to worry.


Can I change from Mint Lxde to vanilla Ubuntu from the command line or do I need a fresh install?

It won't be easy. Even if they use the same package manager and mostly the same packages there are lots of differences between the two distros, so changing the repositories and doing a dist-upgrade will likely leave you with a broken system.

Do the fresh install.


Should you upgrade to ubuntu 20.04LTS from ubuntu 18.04LTS

I just upgraded and I would suggest to wait for another month. There are some repositories that do not have 20.04 support yet (e.g. TeXLive, MikTex). And I also noticed that Nautilus doesn't feel 100% smooth as before (e.g. it crashed on me, when I ctrl + c a file inside and archive).

As others wrote, the security is not significantly better, so wait if you can.


Language indicator doesn't show current language

I'm guessing you are using ibus from the details you give.

To get your languages shown at the bottom, you need to change some settings.

Click on the language indicator and follow this video:
Enabling Ibus Language Panel

(If you cannot see the video clearly: Click the ibus indicator, click preferences, and enable "Show Language Panel > When Active")

NB you might have to restart ibus after this. To do that click the icon and click restart in the menu


Ubuntu 12.04 Wired Connection Not Working

Press Ctrl+Alt+T and type echo on | sudo tee /sys/class/net/eth0/device/power/control

After that, logout your machine, pull out the ethernet cable and then plug it in again after logging it in

your ethernet should work afterwards


If you don't have any kind of port forwarding enabled in your router, any port of any local IP address won't be accessible from the Internet. So as you have used the static private IP address 192.168.1.109 for the server it won't be accessible from the Internet given no port forwarding is enabled for any port of the server.

Also note that your network address should be 192.168.1.0 and if you want to communicate to the internet from the server you should add the router's address as the gateway address. As your local IP address will be masqueraded by the public IP of the router for any outgoing request you will be safe in that case too.

You can optionally enable some packet filtering rules in iptables of the server for more fine grained firewalling.

The following network configuration should suffice:

auto eth0
iface eth0 inet static
    address 192.168.1.109
    netmask 255.255.255.0
    gateway 192.168.1.1

Assuming 192.168.1.1 is the gateway address.


Terminal not opening up after upgrading python to 3.7

This way the upgrade to 3.7 is useless.
You should edit the gnome-terminal file:

Open a terminal and issue the following commands:

cd /usr/bin
sudo nano gnome-terminal

Change #!/usr/bin/python3 to #!/usr/bin/python3.6.

This way you can still use the power of 3.7 and solve the issue with the terminal.


Well randomly deleting things doesn't usually make your life much easier... First thing always to try is have you re-installed it? Like fully:

sudo apt purge steam

then re-installing?

I had install problems on 18.04 and they were fixed by just re-installing.

Also might just be me but you'll probably find a better version for 18.04 through either the Ubuntu Software Center or by installing it through aptitude as shown below:

sudo add-apt-repository multiverse
sudo apt update && sudo apt install steam

oh also make sure you're running the right graphics drivers steam can get fussy. You should be able to find them through Software & Updates>Additional Drivers>Nvidea-Radeon(not the normally selected open source one)

Goodluck bud, I'm rootin for ya


How to install Ubuntu 18.04.* in a single partition on a dual boot with Windows 10?

I think You should go with 'Something else' option in Installation Type Menu(Your 2nd image) and then resize partitions according to your convenience.


Don't worry saisanjeev, if you can still login there isn't any problem: read this askUbuntu article to know why you background is now dynamic and not static.
For the other questions: Lubuntu is made for low end machines (like Asus EeePc) and uses less memory and less CPU than Ubuntu, but uses lxde Desktop Enviroment as Graphical User Interface and has different software & updates than Ubuntu. Pass to Lubuntu if you notice lag in your current Ubuntu installation, I also suggest to try Lubuntu in Live before using it.
Last, for the Remote Desktop feature follow this unofficial guide.

Please, if you have more questions comment under here and don't forget to press the UP arrow. :-)
Have a nice experience and Don't Panic, Linux is made for tweaking.


Installing an older version of ghostscript restores the ability to print properly.

I run this command:

sudo apt install ghostscript=9.18~dfsg~0-0ubuntu2 \
libgs9=9.18~dfsg~0-0ubuntu2 \
libgs9-common=9.18~dfsg~0-0ubuntu2

and now my Ubuntu 16.04 prints properly.

In order to stop the update happening again, I run this command:

sudo apt-mark hold ghostscript=9.18~dfsg-0-0ubuntu2

Reference: Bug #1817308 “GhostScript Update causes Blue Background”


Several applications give "libtasn1.so.3: cannot open shared object file: No such file or directory"

The libtasn1.3 library was replaced with libtasn1.6 as of the Trusty (14.04) release. For some reason you don't have the new library installed/used. Verify that you have it installed using:

sudo apt-get install libtasn1-6

If that doesn't work, upgrade your package too:

sudo apt-get update
sudo apt-upgrade


You can set the default nice value of a particular user or group in the /etc/security/limits.conf file.

/etc/security/limits.conf

It uses this syntax: [username] [hard|soft] priority [nice value]

For you try to put your user in this file and set to the priority you wish.


Ubuntu 12.10 as Oracle VM Guest. No HDMI?

install VB guest additions and enable Auto resize. here is one way to do it:
-Open a terminal
-apply these commands:

sudo apt-get update
sudo apt-get install virtualbox-ose-guest-utils

-After installation complete Restart and login to the system.
you can now resize the window and the screen will automatically adjust itself... (if it didnt work.. then make sure that the Auto-Resize Guest Display is enabled by clicking on "Auto-Resize Guest Display" under View tab)


Unable to record from USB sound card line-in connector

In alsamixer, "PCM" is muted; unmute it.
"IEC958" is the digital input; disable it.
I don't know why "PCM Capture Source" is a check box; try both settings.


How to see all computers connected to a network

Arp-scan works great for me too...

If using Wi-Fi:

sudo arp-scan -l --interface=wlan0

-or if using ethernet:

sudo arp-scan -l --interface=eth0

(this last is practically identical to what Rajesh Rajendran posted; the -l standing for --localnet)

If you don't have arp-scan (it doesn't come with Ubuntu by default), just pull up a terminal and type:

sudo apt-get install arp-scan


How to download a file from a website via terminal?

Open terminal and type

wget "http://domain.com/directory/4?action=AttachFile&do=view&target=file.tgz"

to download the file to the current directory.

wget  -P /home/omio/Desktop/ "http://thecanadiantestbox.x10.mx/CC.zip"

will download the file to /home/omio/Desktop

wget  -O /home/omio/Desktop/NewFileName "http://thecanadiantestbox.x10.mx/CC.zip"

will download the file to /home/omio/Desktop and give it your NewFileName name.


how to permanently disable ubuntu updates & hide install updates button pic included

To disable the update notifier, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

gconftool -s --type bool /apps/update-notifier/auto_launch false

Note: Keep in mind that doing so won't keep your system updated with security and other important updates.

To disable updates, in terminal do:

sudo gedit /etc/apt/apt.conf.d/10periodic

When it opens change the "1" to "0" as shown in the image below, and

Then change the Automatically Check for Updates to "Never" as shown in the image below.

Source for the last part complements of Guillermo G.


Just power on the virtual machine and keep it on.

Download and install the PuTTY in Windows to ssh into virtual machine.


13.04 to 13.10 upgrade hanging at "Installed fonts-ipafont-mincho"

I had exactly the same problem. I had to force-reboot the machine and ended up in an emergency shell. However, this answer made my system bootable again.

In the emergency shell you have to:

mount -o remount,rw /
dpkg --configure -a
mount -o remount,ro /
sync
reboot


PlayOnLinux fails to install MS Office (weird EULA blank window)

Try to do the same like this....

1) Playonlinux - wine manager - 86x - install wine 3.8

2) Create new 32 bit virtual drive with wine 3.8

*Note: If you getting error while creating virtual drive; then

sudo dpkg --add-architecture i386

sudo apt install wine32

then try to create 32 bit virtual drive again*

3) In that virtual drive - pol component setup - install riched20, dotnet20 & msxml6

4) Install ms office 2010 setup from "non listed" option. (Do not install from the given list)


You did restored a wrong configuration to /dev/rdsk/c0t4d0. But dont forget /dev/rdsk/c0t4d0 is added to some VG with some LV's but greatnews they have not mounted and they dont have any data.

Remove all LV's with lvremove
Remove VG with vgremove.

Then  do vgcfgrestore -f /tmp/vg00.backup /dev/rdsk/c0t4d0 again.

Let me know if any issues.

Hope it helps.


Try rm ~/.steam/steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libstdc++.so.6
Removes a library that steam uses, and makes steam use the system library. This fixes non proprietary drivers, but might also fix proprietary ones. This is more of a temporary fix, but hope this helps!


why samba share files are not able to access by some user for some time?

This is a Windows issue, not Linux/Samba. It means that there is already a drive mapped to that drive letter. I have seen it happen that even after disconnecting a drive mapping in Windows that it still seems to "hold on" to that drive letter. Running this from the Windows client should free it up:

net use * /del /yes
net use /persistent:no

Also, with Windows, you cannot map two drives to the same server with different credentials. If you use a username/password with develop, then you must use that same username/password with test.


Ubuntu Installation on Lenovo Ideapad G780

The disk isn't booting because your computer doesn't recognize 32-bit OS. Burn and boot the 64-bit image for windows 8 with UEFI.


How can I make my Ubuntu 12.04 auto-shutdown when battery is fully charged?

Here is a small python program which uses terminal to look into file for battery status and handles the operation with defined function. This will work for general case, but though, there might be a little problem. It uses the package "acpi" which monitors the battery status. The program is:

import commands
import pynotify
from threading import Timer

def battery_check():

    rem = float(commands.getoutput("grep \"^remaining capacity\" /proc/acpi/battery/BAT0/state | awk '{ print $3 }'"))
    full = float(commands.getoutput("grep \"^last full capacity\" /proc/acpi/battery/BAT0/info | awk '{ print $4 }'"))
    state = commands.getoutput("grep \"^charging state\" /proc/acpi/battery/BAT0/state | awk '{ print $3 }'")

    percentage = int((rem/full) * 100)

    if percentage == 100:
        pynotify.init("Battery Full! Now shutting down")
        os.system("sudo shutdown now -h -k") //shutdown command issued

    timer = Timer(300.0,battery_check)
    timer.start()

if __name__ == "__main__": battery_check()


The solution is to install the gnome-keyring package manually.

sudo apt install gnome-keyring


I had the very similar problem. In my case the cause of the problem was scripts created by elementary-os in /etc/profile.d/ :

gtk-csd.sh
qt-style-override.sh
qt-qpa-platformtheme.sh

that set environmental variables preventing VMRC from proper rendering content area. I had removed them an it resolved the problem.

As you use elementary os probably this solution will not satisfy you, however you can try to run env GTK_CSD=0 vmrc -H your.vmware.host to check if it would resolve the problem.


Best place(mount folder) to keep media files on hard drive

Leading me to wonder what is best and most appropriate place (mount , partition) to keep huge media files like movies etc on linux.

Basically ... wherever you want.

If you want to keep it as intended...

/media/ is intended for removeable media so not to mount an internal disk/partition.
/mnt/ is intended for a temporarily mounted filesystem
/home/ is intended for users and their documents.

I tend to use a custom partition. All my stuff is in /discworld/. Makes it easy to recognize during a re-install. And makes it easy to backup.


Why do most of my drivers not load after updating kernel to 3.13.0-36?

I have same problema here, my server didn't start with USB and network. I saw that package "linux-generic-pae" was missing. System 32-bit need this package, I found this Why are there so many "linux-" kernel packages on my machine, and what do they all do?.

This solve for me:
apt-get install linux-generic-pae


Create a proper partition table for ubuntu installation with 128GB SSD and 1TB HDD

This section of the Arch Wiki can give you some insight into some sensible paths to dedicate a separate partition to.
This said, everyone has different needs and preferences, so there cannot be a perfect way of partitioning your disk.
I think that if you had the need for this level of granularity with your system, you would know how to organize partitions. The link I provided can help you with this if you have a rough idea of what you want to achieve. Otherwise just stick to the default automatic partitioning the Ubuntu installer offers and you'll likely be completely fine.


Take this advice with caution, as it may not be entirely the best, but I found someone with your similar issue and they said this helped:

"Hi all, and I apologize for the late response. I was away for a few days.
Thank you to jschiwal and Electro for your help. While I tried your solutions (they did not work), I accidentally did stumble upon the source of the problem and the solution. It turns out that there was a single nvidia script (/etc/rc2.d/S20nvidia-glx) that was the root cause of all this headache. Simply changing its permissions to not allow it to be executed fixed the problem. Hopefully this post will show up on the google search of the next guy who's having to reinstall the driver after each reboot."

What I took from this was that there might be a script that has a line in it that causes this issue, if someone else can verify that would be great, but if you feel comfortable with it, feel free to check this.


How to change "Activities" text on Ubuntu 17.10

Yes, you can do both.

You may use a GNOME shell extension called Activities Configurator to achieve your goal. It lets you

  Configure the Activities Button and Top Panel. Select an icon. Change the text.

And provides many more customisations.

(screenshot source: extension's homepage at extensions.gnome.org)


There is a tool to repair GRUB. Here is its documentation : Boot-Repair

If you have delete your linux-swap partition, boot on a live-CD, open gparted (or install it with sudo apt-get install gparted and open it).

In gparted, recreate a partition (type linux-swap), apply, and reboot.


From https://userbase.kde.org/KDE_System_Administration/Configuration_Files

  For scripts or modifying files from the command line, the command line app
  kwriteconfig is very useful. kwriteconfig expects a configuration file name,
  a group, a key, an optional type and a value, such as:

kwriteconfig --file kickerrc \
             --group General \
             --key AutoHidePanel \
             --type bool \
               true

From https://manned.org/kwriteconfig/d47c2de0

  kwriteconfig is a command line tool to write values in KDE configuration
  files.
  Nonexisting files/groups/keys will be created.

This site gives also more detailed information about the syntax of the command.

Typing kwriteconfig --help in terminal will display something helpful.
man kwriteconfig does not work, a man-page does not exist in my system.

To read a Kconfig-entry you can use the command kreadconfig. kreadconfig --help displays useful information about the command. A manual does not exist in my system. https://manned.org/kreadconfig/40c5a73d gives more details.

These commands seem to be part of the packages kde-cli-tools,kde-cli-tools-data, these packages should be installed by default in Kubuntu.
You use KDE 5 on Ubuntu and these packages might not be installed, you should check that...


Take a look @ logrotate package, you can see a tutorial on this page

you could either

Lower the level of logging of your firewall: modify the LOGLEVEL directive into the /etc/ufw/ufw.conf file to one of 'off', 'low', 'medium', 'high' and sudo service ufw restart
reconfigure your firewall so that it logs in another part where you have more space
configure logrotate to rotate the logs more frequently instead of being into /etc/cron.daily/logrotate for example into /etc/cron.hourly/logrotate (see this post)

sudo ln -s /etc/cron.daily/logrotate /etc/cron.hourly/logrotate
Modify the /etc/logrotate.d/ufw file according to this post to manage the size of rotation and man logrotate for more configuration options. It could be that your file is not rotated because of file size which is not setted, by default the size directive is not setted into the  /etc/logrotate.d/ufw file so it is only rotated weekly according to the configuration file directive. So changing it putting a size directive (for example size 300M) will do what you expect maybe. Please note: If the size directive is used, logrotate will ignore the daily, weekly, monthly, and yearly directives. If you want logrotate to consider both log size AND timestamp, the minsize directive should be used.
Run manually if you want the logrotate job to test it with sudo /etc/cron.daily/logrotate
Check the logrotate jobs into the /var/lib/logrotate/status file (see this post)

If you don't want ufw to log into your kern.log check this post


Thunderbird: I accept an invitation, but the sender does not see it

If you have multiple email addresses setup in Thunderbird you could be experiencing a problem where the email to accept the invite is being sent using a different address, thus they aren't seeing the accept in their calendar.

https://support.mozilla.org/en-US/questions/1206863

You may also want to try running Thunderbird 60 (newest version) as some of these problems are considered bugs - it's hard to tell if they have been fixed since there is a large chain of duplicates in their bug tracker. (source)

Download for the latest version of Thunderbird is on their homepage - extracting and running that version should load the same settings as your existing installation. For safety you can package up your current settings in ~/.thunderbird before using it.


Go to that folder and make it executable:

chmod -c +x craftbukkit.sh

Then execute it as:

bash craftbukkit.sh

or

./craftbukkit.sh


The LAN side seems to be working fine (dhcp is assigning ip and connecting) however there is no internet conection to any of the clients.

To give your client or guest on your LAN or NAT network access to internet, make sure that:

Your Server can ping 8.8.8.8 or google.com
Your client or guest can ping server gateway

Do to following:

iptables -t nat -A POSTROUTING -p tcp -s 192.168.0.0/24 -j MASQUERADE

Replace your network or just IP address of the HOST with the IP above, then from try to ping google.com or 8.8.8.8


1GB memory size is very low for Ubuntu.  Either install at least one more, for the 32-bit version or use Lubuntu 32-bit instead.


You installed Ubuntu 16.04 with the original 4.4 kernel that doesn't support your new wireless adapter.

If you downloaded and installed the 16.04.4 image, it would work without any additional effort.

For now the easiest solution is to upgrade the kernel. Connect to the internet by some other means (wire, tethering, etc) and run in a terminal:

sudo apt update
sudo apt install linux-generic-hwe-16.04 linux-firmware

Reboot after the kernel packages are installed. Your wireless adapter should work.


Why does libappstream3 break apt update on Ubuntu 16.04 (Dell Precision 7520)

Try the command sudo apt-get install libappstream3. It will fix whatever problem is there with the package.


Would installing make the computer faster?

I am using old laptops with Linux for a long time. It works really good. Here some ideas I've gathered over the years:

Do not use Gnome (this is the desktop environment), such as Ubuntu. I
would suggest Xubuntu, which has a XFCE Desktop which has matured over
the years.
If your laptop has a NVIDIA card - use the proprietary drivers. (See
here for how to install
it).
Make sure you have a swap partition, especially if your laptop runs on
a hardisk. Explanation: If you run out of Memory Linux (and windows) will copy part of your memory unto your disk. That is called swapping. Lately some Linux distros (such as Ubuntu) setup files (like pagefile.sys) instead of a dedicated swap partion on the disk. I'd recommend the latter.(This is finetuning, if you don't know how to setup a swap partion, don't. You can do it any time later -just ask a new question)
If possible get 4-8 GB RAM - the more memory you've got, the better.

Linux will not be fast on certain drivers - Old AMD GPUs are not be supported very well - no matter which Ubuntu flavour you have.
You could install XFCE besides Gnome, but in my experience the best way would be to make a clean install with Xubuntu.


How To resize power indicator plus icons in Ubuntu 16.04(xfce, gnome)

(Originally this was part of the Question - CW'd this to complete the Q&A)

As I installed prime-indicator-plus for my Optimus Laptop, and searched for answers, no luck with the proper solution for my problem. I decided to make a quick-fix explanation of resolving this problem without breaking stuff for my Ubuntu 16.04 on XFCE environment.(same was in Gnome-shell for this distro).

If you have too big/large icons after installing power-indicator-plus like I did.

Just follow the instructions below to fix this icon-size bug in a minute.

Locate the icons folder for power-indicator-plus or powerindicator(can be different from distro to distro or environments you use).
Take a good look at the image format *.svg , *.png etc. and add it to the code example as shown below.
Use admin sudo privileges in order to change/convert icon file for the given location according to your environment.

For example, my location of the icons and indicator is /usr/lib/prime-indicator/icons/

4.

  sudo convert /usr/lib/prime-indicator/icons/prime-indicator-intel.svg -resize 24x24 /usr/lib/prime-indicator/icons/prime-indicator-intel.svg

there are 4 icons in the folder so repeat this step for the rest of them(3 icons), just change the file names/format at the source/destination so code from above becomes

sudo convert /usr/lib/prime-indicator/icons/prime-indicator-intel-symbolic.svg -resize 24x24 /usr/lib/prime-indicator/icons/prime-indicator-intel-symbolic.svg


System Monitor showing incorrect number of CPUs

In Short

Your system configuration is probably fine. Gnome-system-monitor is simply reporting the wrong number.
No need to worry.
As already mentioned in a comment above, the “System” tab is gone in Ubuntu 14.04.

In More Detail

You have hit a hard upper CPU number limit that is set in libgtop (a library which is used by gnome-system-monitor). Quoting from the code:

/* Nobody should really be using more than 4 processors.
   Yes we are :)
   Nobody should really be using more than 32 processors.
*/
#define GLIBTOP_NCPU        32

This limit has been increased to 1024 in more recent libgtop versions than the one shipped with Ubuntu 14.04.

Aside from being annoying to not see a good bunch of CPUs in gnome-system-monitor, this bug should be harmless. You might be able to fix it by installing a more recent version of libgtop. Alternatively, you could upgrade to a newer Ubuntu version. The question is whether the gnome-system-monitor annoyance is worth the hassle of upgrading or trying a more recent version of libgtop.


wmctrl - focus most recent window of an app

This script does what you want:

#!/bin/bash

app=$1
workspace=$(wmctrl -d | grep '\*' | cut -d ' ' -f1)
win_list=$(wmctrl -lx | grep $app | grep " $workspace " | awk '{print $1}')

IDs=$(xprop -root|grep "^_NET_CLIENT_LIST_STACKING" | tr "," " ")
IDs=(${IDs##*#})

for (( idx=${#IDs[@]}-1 ; idx>=0 ; idx-- )) ; do
    for i in $win_list; do
        if [ $((i)) = $((IDs[idx])) ]; then
            wmctrl -ia $i
            exit 0
        fi
    done
done

exit 1

EDIT: This script always focuses on the last focused window, as opposed to cycling through the windows in the order they were opened.

EDIT 2: I modified the script (turns out wmctrl and xprop use slightly different formats for displaying hexadecimal numbers).

EDIT 3: app name should be taken from the 3rd column of wmctrl -lx to avoid certain conflicts.


Dual Boot Installing Ubuntu 12.04 with Windows 7 (64) on a non UEFI system

You are making a mistake somewhere. The LiveCD does NOT use grub as a bootloader, it uses Syslinux.

Boot from the Desktop Live CD and press the Down-Arrow when you see the below:

Press Enter and select English:

Press F6, go down to nomodeset, and press Enter. You will see an X next to it. Then press Esc, and "Try Ubuntu"

If the above doesn't work, repeat steps 1-2, but press F6 and then Esc to see the command-line. There, replace quiet splash with nomodeset and press Enter.


correct syntax for combining filters in mplayer-command

for those interested: with the help of some friendly and knowledgeable people from the mplayer-mailing-list I found the solution to the problem:

Using the -af-option commas have to be used for two or mor entries # OR:
making use of the -af-add-option.

These two commands work equally well:

mplayer -af scaletempo=scale=1.2:speed=pitch,lavcresample=44100,equalizer=0:0:0:0:0:0:0:0:7:7 -srate 44100 test.wav

mplayer -af scaletempo=scale=1.2:speed=pitch -srate 44100 -af-add lavcresample=44100 -af-add equalizer=0:0:0:0:0:0:0:0:7:7 test.wav

Many greetings.
Rosika


if you go to ubuntu software center and click edit, then software sources, it will list all your PPAs, if you do have a beta PPA you can remove it, uninstall firefox, then reload the PPA's to reinstall the version in the ubuntu repos

if you need better control of your PPAs you can install Y PPA manager, its great to manage PPAs

http://www.webupd8.org/2011/11/y-ppa-manager-0084-released-finally.html


computer won't boot from DVD, how do I upgrade?

First, download the ISO file from http://www.ubuntu.com/download/desktop. Then, go to the system menu, administration, and select 'Create a USB startup disk'. Select a blank USB drive to use, and your Ubuntu 14.04.3 ISO file. Click the Make Startup Disk button, and wait for it to finish. Once finished, you can boot from your USB drive and start the upgrade.

Source: http://www.jonathanmoeller.com/screed/?p=1645