Unable to Connect MTS Mblaze modem in Ubuntu 12.10? I am using Ubuntu for 1st time and I do have an modem MTS Mblaze in India which I am using in Windows.

But when I tried to connect in Ubuntu 12.10 using give default method (i.e. choose country, modem type, connection, add details and then connect) its not working.

Then i came over another solution at http://www.e-dirts.com/2012/how-to-setup-mts-mblaze-usb-modem-in-ubuntu-gnulinux/

But no installation of CrossPlatformUI-V2.1.2-SSTL-ALL-ubuntu.deb happens at all. Is it because I'm using 12.10 version while its tested using 12.04 version.

And does that another 'Advanced user method' can be followed without internet?

I have been using MTS Mblaze connection for quite sometime. I have never felt the need of a third party tool to get to use MTS Mblaze connection in India. Once you connect your usb-modem at system startup, you should be able to see your MTS Mblaze usb device listed under your network. All you need to do is chose the MTS Mblaze connection. Ubuntu does automatically configure it for you. If necessary, have a reboot and wake up your USB modem connection up and running.

Try sakis3g. It's some kind of an all in one script. http://www.sakis3g.org/


Nautilus won't launch [16.04] If I try to launch Nautilus in whatever way (from Unity, Terminal), it doesn't launch. Terminal gives me these outputs:

launch

name@machine:~$ nautilus

(nautilus:4367): GLib-GIO-ERROR **: Settings schema 'org.gnome.nautilus.preferences' is not installed

Trasovací/ladící past (SIGTRAP) (core dumped [obraz paměti uložen])

launch with sudo

name@machine:~$ sudo nautilus

(nautilus:4672): Gtk-WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files

(nautilus:4672): GLib-GIO-ERROR **: Settings schema 'org.gnome.nautilus.preferences' is not installed

Trasovací/ladící past (SIGTRAP) (core dumped [obraz paměti uložen])

check

name@machine:~$ nautilus -c
running nautilus_self_check_file_utilities
running nautilus_self_check_file_operations
running nautilus_self_check_directory

(nautilus:4689): GLib-GIO-ERROR **: Settings schema 'org.gnome.nautilus.preferences' is not installed

Trasovací/ladící past (SIGTRAP) (core dumped [obraz paměti uložen])

I tried to reinstall Nautilus (with purge), reboot, remove ~/.config/nautilus, step by step at first and then all at once but nothing worked. I haven't changed any configuration or made any significant changes in Ubuntu system since installation. Yesterday Nautilus worked, today doesn't. Does anybody know how to fix it?

For me terminating the running nautilus process and restarting it worked.

ps awx | grep nautilus

I found the process id and then terminated it with

sudo kill -TERM <id>

killall nautilus

will kill all instances.


How can I adjust brightness settings when I am on battery? I can't find brightness settings that work from battery mode in the Ubuntu 11.10 screen settings.

There are some settings from Ubuntu 11.04 in gconf, 90% for AC and 60% for battery, but it doesn't work.

How can I have my display brightness dim automatically when on battery power?

I tried a lot of things to no avail to get gnome-control-center in 11.10 to handle this like gnome-power-manager used to.

I decideded to create a script and install it into pm-utils.

#!/bin/sh

ON_AC=##
ON_BATT=##

if ["$1" = "true"]; then

    echo $ON_BATT > /sys/class/backlight/<device directory>/brightness

fi

if ["$1" = "false"]; then

    echo $ON_AC > /sys/class/backlight/<device directory>/brightness

fi

exit 0

I kept it simple because (hopefully) it is a temporary solution. You must manually set your desired values in the two variables above. Use the slider in the "Screen" settings gui to set your desired brightness, then use cat /sys/class/backlight/<device directory>/brightness to retrieve the corresponding numerical value. Substitue the name of your device's directory for <device directory>. Do it once for AC brightness and once for battery brightness. Plug the name of your device directory and the brightness values into the script.

Save the script to a file in your home directory or wherever. I called it backlight. Make it executable with chmod a+x backlight and install it to pm-utils with sudo install backlight /usr/lib/pm-utils/power.d/

I'm not sure how it works resuming from suspend/hibernate because I don't use it, but it works well when booting with or without ac, as well as when hotplugging the charger.

You don't say you've tried the obvious, so just in case ...

Does you machine have Fn keys to do that? On mine it's Fn-up and Fn-down to adjust brightness.

Try it, it might even work! ;)


How to setup one ethernet interface as dhcp server and another interface as static ip? I am getting a static ip from provider. But in my Ubuntu 11.04 pc i have two reserved ethernet interface mostly both are like getting automatic dhcp IP as of now.

But i want my Ethernet interface 0 as static ip WAN. And Ethernet interface 1 as dhcp server.

How can i do this setup?

I think it should work this way: setup the two interfaces in /etc/network/interfaces. Install dhcp3-server package. After that, in the /etc/defaults/dhcp3-server configuration file, you can tell the DHCP server, on what interface(s) it should listen: INTERFACES="eth0". That's all!

Never tried to use both at the same time. I don't know if this is going to work...

but you can try this:

sudo -i
vi /etc/network/interfaces
iface eth0 inet static
address 192.168.0.2
netmask 255.255.255.0
gateway 192.168.0.1

auto eth1
iface eth1 inet dhcp

It's the first thing It came out from my head.


login loop ubuntu 12.04 Today I restarted Ubuntu 12.04, after installing some packages and having updated firefox. When I came in the login screen, I typed my password. After about one second processing, the screen blacked out and returned to the login screen. It gave no errors (like invalid password).

I read something about lightdm causing this issue, so I tried to install gdm in TTY. When I tried to do this, TTY gave me an 'incorrect password (or login)' error. I am very sure my password was correct and I even tried ticking it in the command section so I could rule out changes in the keyboard layout.

I would be very thankful if someone could help me out of this problem since I am now unable to use Ubuntu and similar questions won't solve my problem (since i can't get in TTY altogether).

Edit: I forgot to tell that 2D login and guest login don't work either. I've tried to use mv ~/.Xauthority ~/.Xauthority.old, which didn't work (the tty didn't give a reaction and it didn't resolve the problem).

I also tried to install gdm (to stop using lightdm) using sudo apt-get install gdm and it responded with:

sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins

other than this, I haven't tried anything yet.

Edit(2): I tried the command sudo rm ./.Xauthority, which gave the same error as above. Do I need to reïnstall (or retrieve a backup of) my system or can it be saved?

Edit(3): I solved the sudo problem (thanks Shantanu!). I needed to change ownership of several (sudo-related) files. I used pkexec to change ownership using the terminal. I now realize that this shift in ownership may be the cause of my loginloop problem. sudo does work now, so I'll try some other commands. I would be thankful if someone can offer me help on this matter!

I had a similar problem running Kubuntu 12.04 for a long time: The login screen appeared as normal, but logging in would not take me to a plasma desktop, but rather back to the login screen. I assume the problem works about the same way for Ubuntu with gdm as it did for me using kdm.

As a temporary solution, I was able to get to a proper desktop environment by entering:

sudo service kdm stop
startx

from a tty console, which I escaped to with ctrl+alt+f3 from the login screen.

Suspecting a permissions issue with .Xauthority and or my /tmp/ directory (as per many other answers to this same question), I ran:

ls -la ~/.Xauthority

and verified its owners were set to username username and not root root, and ran

ls -ld /tmp

and ensured its permissions read as drwxrwxrwt. I also tried removing the .Xauthority file altogether, hoping it would be regenerated properly upon next login, but this didn't work for me (others seem to have had success trying this, however).

Next I checked my ~/.profile for extraneous lines, and read through my .xsession-errors file for clues to no avail.

What eventually worked for me was removing  my ~/.dmrc file.

From https://help.ubuntu.com/community/dmrcErrors:

  "The .dmrc is an initialization file which the system checks during
  session login. Specifically, gnome checks the file for any specific
  language or session information it hasn't located elsewhere. While
  often the file is blank except for the basic header data, it may
  contain a specific language to use at session startup."

This file must have 644 permissions to work properly (EDIT: The above link actually gives a few other permissions that will work besides 644, but 644 is the explicitly given permission to set), so before removing it verify that

ls -la ~/.dmrc

yields the permissions drwxr-xr-x 143 user user, and if not try using

chmod 644 /home/username/.dmrc

If none of the above solutions worked, try backing up and removing this file with:

cp /home/username/.dmrc /home/username/.dmrc.backup
rm /home/username/.dmrc

Upon next login, a new .dmrc file will be generated and configured correctly, and in my case I was finally able to log in properly without escaping to tty, killing kdm, and starting x manually.

NOTE: I suspect the root cause of this came when the partition my home folder was on filled up during a session, which caused a whole slew of other issues with configuration files not being written that needed to be written. The infinite login loop problem started immediately after that, and I noticed that the .dmrc file had a size of 0, rather than containing:

[Desktop]
Session=default

as it does now in the fully functioning condition. It seems from the above quote that this file is read on login, and maybe my login loop occurred because Kubuntu didn't know how to handle an empty .dmrc file, but I'm only speculating.

Press CTRL+ALT+F1 and log in there and run:

sudo chown -R $USER:$USER $HOME

$USER is your username

Ex - sudo chown -R singh:singh /home/

Then press CTRL+ALT+F7 and try to log in


Is it recommended to do apt-get upgrade? Should anyone running Ubuntu  as a normal user (not a server) do any of:

apt-get upgrade
apt-get dist-upgrade
apt upgrade

regularly? I am asking because running apt update && apt upgrade has led to issues for me in the past. The system works fine when I do not upgrade, but I don't know if this may cause any (security) issues later on. I am aware what the difference between this commands is, but I do not know and could not find any best practices regarding their usage.

According to this post, "Many recommend that when doing a CLI update, all three commands be used":

sudo apt-get update        # Fetches the list of available updates
sudo apt-get upgrade       # Strictly upgrades the current packages
sudo apt-get dist-upgrade  # Installs updates (new ones)

Which raises the question, in what case should I do a 'CLI update'? I like to have an up-to-date system, but not at the cost of weird issues. I am afraid that upgrading this way will cause the same issue. A more practical subquestion is: how can I upgrade my system without the virtualbox-guest-dkms, virtualbox-guest-utils, and virtualbox-guest-x11 packages (I suspect the problem is in one of those, and I'm not sure why I'd need them, so I'd rather just not have them).

It is the standard way of updating your Ubuntu and your apps through terminal. As you yourself have mentioned, basically you need to use these two commands:

sudo apt-get update
sudo apt-get upgrade

Before posting new question, do a simple search. In most of the cases you will get to answer easily.


Cannot purge nvidia drivers I'm trying to reinstall nvidia drivers + cuda. I've installed drivers for 440, but accidentally installed cuda-11 which installed drivers for 450 and messed my system up.  Now am trying to purge all of my drivers via sudo apt-get remove --purge '^nvidia-.*'. However, I get the following error
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 cuda-drivers-450 : Depends: libnvidia-compute-450 (>= 450.36.06) but it is not going to be installed
                    Depends: nvidia-compute-utils-450 (>= 450.36.06) but it is not going to be installed
                    Depends: nvidia-dkms-450 (>= 450.36.06) but it is not going to be installed
                    Depends: nvidia-driver-450 (>= 450.36.06) but it is not going to be installed
                    Depends: nvidia-kernel-common-450 (>= 450.36.06) but it is not going to be installed
                    Depends: nvidia-kernel-source-450 (>= 450.36.06) but it is not going to be installed
                    Depends: nvidia-utils-450 (>= 450.36.06) but it is not going to be installed
                    Depends: nvidia-modprobe (>= 450.36.06)
                    Depends: nvidia-settings (>= 450.36.06) but it is not going to be installed
 libnvidia-decode-450 : Depends: libnvidia-compute-450 (= 450.36.06-0ubuntu1) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

Regardless what I do, whether I run apt --fix-broken install or purge other packages, I seem to always get this error.
I've seen quite a few posts run into similar problems (see links below) -- but the only solutions that I've seen is to reinstall ubuntu (which is not a preferable option). I have seen one post that suggests how to manually remove broken packages, has anyone had any luck, with this?
http://www.piprime.fr/1480/manually-remove-broken-package-debian-ubuntu/
NVIDIA driver problem after apt upgrade ubuntu 18.04

Actually, I think I fixed the problem.  I was able to manually traverse the dependency tree
sudo dpkg --remove --force-remove-reinstreq cuda
sudo dpkg --remove --force-remove-reinstreq cuda-11-0
sudo dpkg --remove --force-remove-reinstreq cuda-runtime-11-0
sudo dpkg --remove --force-remove-reinstreq cuda-demo-suite-11-0
sudo dpkg --remove --force-remove-reinstreq nvidia-driver-450
sudo dpkg --remove --force-remove-reinstreq cuda-drivers-450
sudo dpkg --remove --force-remove-reinstreq nvidia-driver-450
sudo apt purge *nvidia*

So now I am able to remove all of the nvidia drivers. grrr

I installed the driver from Nvidia download. I call below
sudo nvidia-uninstall
It deletes all the nvidia driver completely.


The find function does not work in Ubuntu14.04 I installed Ubuntu 14.04 on my PC a couple of days ago.
Frankly speaking, it is a very great OS with high performance.
But what brings me trouble is the Ctrl + F function does not work in every application(such as chrome, gedit).
I am not sure whether this problem is caused by some bug of this OS or by myself resulted from unsuitable settings.

Not sure if this will answer your question but should push you along the right lines,

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

Here you will find a list of the existing short cuts and an example of how to make your own!

thanks,

Mathew


apt-get stuck at 0 [Connecting to us.archive.ubuntu.com] When I do upgrade it gets stuck here:

user@plato:~# sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  bind9-host coreutils cpio curl dnsutils libbind9-90 libc-bin libc-dev-bin
  libc6 libc6-dev libcgmanager0 libcurl3 libcurl3-gnutls libdns100
  libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libdrm2 libisc95 libisccc90
  libisccfg90 libjasper1 liblwres90 libplymouth2 libsepol1 libssl-dev
  libssl-doc libssl1.0.0 linux-libc-dev mime-support multiarch-support ntp
  ntpdate openssl plymouth plymouth-theme-ubuntu-text python3-distupgrade
  ubuntu-release-upgrader-core unzip
39 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 16.0 MB of archives.
After this operation, 12.3 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
0% [Connecting to us.archive.ubuntu.com (2001:67c:1562::15)] ░

When I do update it gets stuck here:

user@plato:~# apt-get update
0% [Connecting to us.archive.ubuntu.com (2001:67c:1562::14)] [Connecting to sec░

I'm able to ping us.archive.ubuntu.com just fine:

user@plato:~# ping us.archive.ubuntu.com
PING us.archive.ubuntu.com (91.189.91.23) 56(84) bytes of data.
64 bytes from economy.canonical.com (91.189.91.23): icmp_seq=1 ttl=54 time=81.5 ms
64 bytes from economy.canonical.com (91.189.91.23): icmp_seq=2 ttl=54 time=81.5 ms
64 bytes from economy.canonical.com (91.189.91.23): icmp_seq=3 ttl=54 time=81.5 ms
64 bytes from economy.canonical.com (91.189.91.23): icmp_seq=4 ttl=54 time=81.4 ms
^C
--- us.archive.ubuntu.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3004ms
rtt min/avg/max/mdev = 81.425/81.528/81.582/0.355 ms

What can i do to fix this?

What I have tried so far.

I've tried following directions on this blog: http://nickescobedo.com/719/ubuntu-apt-get-hangs-at-0

To force apt-get to use IPv4 exclusively

Create a file in /etc/apt/apt.conf.d/99force-ipv4
Add this line to newly created file Acquire::ForceIPv4 false;
Apt-get will now use IPv4 exclusively

I figured out how to get apt-get to work again.

Edit gai.conf:

sudo vim /etc/gai.conf

change line ~54 to uncomment the following:

precedence ::ffff:0:0/96  100

write and quit:

:wq

CAUTION

Look out line 50 which looks almost identical:

precedence ::ffff:0:0/96  10

This is the wrong line. Go ~4 lines down and you'll find the correct line to uncomment because it ends with 100 instead of 10

What worked for me was to switch my VirtualBox Network settings for my Ubuntu guest to "NAT" from "Bridged Adapter".


how fix the issue that so that ubi-usersetup crash doesn't happen when I try to install ubuntu Whenever I try to install ubuntu 14.04 lts I get a message saying:

  ubi-usersetupcrash

  ubi-usersetup failed with exit code 10. Further information may be
  found in var/log/syslog

What do I do so I can install ubuntu without it crashing?

This could just be a corrupted installation media.
You can try to burn a new installation cd / rewrite the installation stick.
If you want more input please post your syslog.

I had similar problem during setup Ubuntu 14.04.1 (ubi-partman failed with exit code 141). The problem was with dmraid. There was /dev/mapper/ddf1 on /dev/sda. It caused the error in Ubuntu setup and in sudo gparted. It not solved with sudo dmraid -E -r /dev/sda, but sudo apt-get purge dmraid solved the error.


Why the software center doesn't allow multiple downloads? I was wondering why the software center doesn't download all the requested apps and install one by one as they finish to download.
Or instead why the software center doesn't download an app while the other is installing

That is a good question. It is because it's based on the same package tools that apt-get and others use. These are designed in a way that expects you to provide all the packages to be installed, and then the rest is automatic. This is very good in most cases, but for the Software Center, it causes some issues. You would either need to first select the packages you want to install and then click a button to actually download and install them, or you have to queue applications and then download and install one by one. This provides a much better user experience if you're installing one application than having to use those extra clicks, but it is also annoying when you're "shopping".

It is possible to fix this, so I expect that in the future, this will be remedied, but it does mean recreating or rewriting existing tools, so I don't think it'll have very high priority.

Let me elaborate:

A package may depend on other packages. If these packages aren't available, then the package cannot be installed. So tools like apt-get will first download all the packages you ask for and all the packages they depend on, etc, and then install all of them. So you would then normally provide all the packages you wanted in one go, and they would first be downloaded and then installed.

When you choose to install an application in the software center, you'll usually want it to start downloading and installing immediately. But in order to ensure that everything is in order, only one installation can be done at any one time. That's why when you install an application, you have to wait until that application is completely downloaded and installed before the next download and install can begin.

This could be fixed by not using apt-get to install the packages, but instead downloading the packages manually and then using dpkg to install them once they're ready. You still wouldn't be able to install two packages simultaneously, but you would be able to start downloading new packages while the previously started installations were finishing. In some cases, that would save quite some time, so it is a good idea. But in most cases, it wouldn't really matter so the effort is better focused elsewhere.

you get download the package whilst the other is installing e.g in terminal1

sudo apt-get install vlc

then also download another package in another terminal2

sudo apt-get download openssh-server

to see other options available with apt-get refer to its man simple type

apt-get <press tab on your keyboard>


Cannot Boot Kubuntu||Ubuntu Live USB, SPROM revision: 11 Error I am unable to boot off live USBs of Ubuntu 16.04.2 LTS, Ubuntu 17.04, Kubuntu 16.04.2 LTS, and Kubuntu 17.04 on my desktop. I have tried making the live USB with UNetbootin and Universal USB Installer and I have installed Ubuntu on other computers with the USB working; but whenever I try to boot off a live USB on the aforementioned desktop it starts up then prints this error:

[   3.516984] bcma: Unsupported SPROM revision: 11
[   3.517071] bcma: bus0: No SPROM available

How can I fix this?

nomodeset and proprietary driver

After a short dialogue in the comment field, you found that it works with the boot option nomodeset. This link, boot options, and links from it describe how to do it.

When you can get into the system, you can install a proprietary graphics driver for your nvidia chip.

Tweaks for the motherboard or the wifi chip/card

Other people with a similar(?) problem may need some special tweaks for the motherboard, or a proprietary driver for the wifi chip/card.

As suggested by @sudodus in the question comments, adding the boot parameter "nomodeset" to the Kubuntu live option in Grub2 allowed me to boot off the USB just fine. It probably had to do with my NVidia GPU. Thanks!


Kana input with Japanese 106/109 key keyboard in Ubuntu 18.04 I have a  Japanese 108-key keyboard that I have been using for a long time on en-US Windows 7. It works correctly including keys that switch alpha/hiragana/katakana etc.

Recently I installed Ubuntu 18.04 as dual-boot on the same desktop and keyboard.

Japanese has been added in Language Support.

In Settings → Regions & Language → Input Sources, I added Japanese, and “Japanese” for the keyboard type (there is no 106/109 keyboard layout).

It seems to recognize this keyboard since it correctly matches some special character positions that are different from an en-US keyboard.

But keys for switching half-width/full width, hiragana/katakana etc. do nothing.

I checked some related questions but it seems to be an unanswered topic.
Surely Ubuntu is used in Japan so I expect there is some solution or workaround.

I would like to learn the setup if anyone is successfully using such a keyboard. AFAIK, IME should be a separate matter. I have ibus and fcitx installed but maybe that’s a next step.

Well I did some more research on this.

First, setup Japanese language support and install ibus. I would remove fcitx if it is there, as I read this might cause problems.
I won't repeat these steps since they are well documented, but at this point you should see the following in Settings -> Region and Language:

To get the keyboard switching, I found two additional steps are needed.

Follow the steps on this page: Ubuntu で日本語キーボードレイアウト
It's in Japanese, but the steps are easy to follow.
Follow the instruction in the answer here: Japanese (Mozc) Wrong Keyboard Layout to modify mozc.xml.

mozc.xml can't be modified without root privileges, so it needs to be edited from the Terminal. In the directory containing mozc.xml, I used
sudo nano mozc.xml

Then restart.

Open some text app., and now hankaku/zenkaku or katakana/hiragana keys switch function as expected. For kana, the IME works as expected.

Half width you should see:

Full width you should see this:

Have you tried switching off PC and then switching on manually instead of rebooting? E.g. Russian Dvorak layout starts working after reboot.

Have you tried removing keyboards except Japanese or except Japanese and English if you are going to reboot? E.g. English Dvorak layout starts working after removing English QWERTY layout.


Run Android Studio on reboot using shell script I'd like to start Android Studio while my computer starting.
I used crontab and @reboot parameter:

crontab -e

and scheduled this task

@reboot /home/ziko/reboot_cron.sh # JOB_ID_1
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

then in my home dir added script - reboot_cron.sh

echo "It is now $(date +%T) on $(date +%A)" >> cron_reboot.log
/opt/android-studio/bin/studio.sh

After restart my computer I  didn't see log in cron_reboot.log and Android Studio wasn't fired. What did I wrong?

UPD. I added second scheduled task and it works

#!/bin/sh
#!/bin/bash
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

@reboot root /home/ziko/reboot_cron.sh # don't work!
*/5 * * * * /home/ziko/mycrontest.sh   # it works!

And if I manully run reboot_cron.sh then it works but in crontab it don't!

Did you try "@reboot root su -l ziko sh (script.sh)" from system crontab?

You may not get @reboot to work as non-root.

-

In system /etc/crontab:

@reboot root su -l (user_to_run_as) (your_sh_script)

or non-root 'crontab -e' user:

@reboot sh (your sh script)

( per : https://askubuntu.com/a/549646/169878 )

-

Note: I am not entirely sure if you need to be root to execute @reboot properly via crond under Ubuntu or Debian (or for that matter if it needs to be in the system wide crontab). Try the "@reboot sh " first and see if that works as non-root user.. Also consult https://unix.stackexchange.com/q/109804

EDIT:

Unless you really need this executed via crond, it might be a better idea to set this up as an init script (based on runlevel) or rc.local entry.. either one can be executed on a normal startup. Your script will execute after system is completely up. Since you do not need much more control over the script other than having it execute at startup (once), rc.local should be fine.

Example for "rc.local":

sudo nano /etc/rc.local

add this line before 'exit 0':

su -l ziko /opt/android-studio/bin/studio.sh

save.

sudo chmod 755 /etc/rc.local

(Reboot.) 'studio.sh' should have executed/started as the ziko user on startup


How can I find my hardware details? Is there any built-in software or terminal method allowing me to view the hardware profiles on my system? Windows equivalent of such a feature would be Device Manager.

There are a few options:

lspci will show you most of your hardware in a nice quick way. It has varying levels of verbosity so you can get more information out of it with -v and -vv flags if you want it. The -k argument is a good way to find out which kernel driver a piece of hardware is using. -nn will let you simply know the hardware ID which is great for searching.

But it is only a very simple, quick way of getting a list of hardware. I often ask people to post the output of it here when trying to identify their wireless hardware. It's great for things like that.

It doesn't show USB hardware other than the USB busses.

Here are three real world examples:

Graphics:

$ lspci -nnk | grep VGA -A1
03:00.0 VGA compatible controller [0300]: NVIDIA Corporation GF110 [GeForce GTX 580] [10de:1080] (rev a1)
    Kernel driver in use: nvidia

Audio:

$lspci -v | grep -A7 -i "audio"
00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Kabini HDMI/DP Audio
    Subsystem: Acer Incorporated [ALI] Device 080d
    Flags: bus master, fast devsel, latency 0, IRQ 34
    Memory at f0940000 (64-bit, non-prefetchable) [size=16K]
    Capabilities: <access denied>
    Kernel driver in use: snd_hda_intel
    Kernel modules: snd_hda_intel

--
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller (rev 02)
    Subsystem: Acer Incorporated [ALI] Device 080d
    Flags: bus master, slow devsel, latency 32, IRQ 35
    Memory at f0944000 (64-bit, non-prefetchable) [size=16K]
    Capabilities: <access denied>
    Kernel driver in use: snd_hda_intel
    Kernel modules: snd_hda_intel

Networking:

$ lspci -nnk | grep net -A2
00:0a.0 Ethernet controller [0200]: NVIDIA Corporation MCP79 Ethernet [10de:0ab0] (rev b1)
    Subsystem: Acer Incorporated [ALI] Device [1025:0222]
    Kernel driver in use: forcedeth
--
05:00.0 Ethernet controller [0200]: Atheros Communications Inc. AR242x / AR542x Wireless Network Adapter (PCI-Express) [168c:001c] (rev 01)
    Subsystem: AMBIT Microsystem Corp. AR5BXB63 802.11bg NIC [1468:0428]
    Kernel driver in use: ath5k

lsusb is like lspci but for USB devices. Similar functionality with similar verbosity options. Good if you want to know what's plugged in.
sudo lshw will give you a very comprehensive list of hardware and settings.

It gives you so much information, I suggest you pipe it through less or output it to a file and open that in something you can move around in:

sudo lshw | less

Of course this is usually a lot of information. You often only need info on a small subset of your hardware and lshw will let you select a category. If you just wanted to see your network devices, for example, run this:

sudo lshw -c network

If you want something graphical, I suggest you look at hardinfo. You'll need to install it first:

sudo apt-get install hardinfo

You then just run it from the same terminal with hardinfo. I don't know that it has a menu location by default.

But it can give you slightly more information (boots, available kernels, etc) than the other options, as well as giving you similar lists of PCI and USB hardware like the first two commands.

It also provides some simple benchmarking. I think the developers aim to make it a replacement for Sandra (a popular Windows hardware information gathering tool).

It even has options to output a nice report that you can send to somebody (though it can easily be too much information).

For my Acer Travelmate-P243-M, the following works well:

$ lspci -vv

However, there are many other options beautifully presented here: https://www.binarytides.com/linux-commands-hardware-info/


Flash player does not work probably with Arabic language The Flash plug-in version 11.2 which is the latest version does not support the Arabic language.

It shows the characters separated and oriented from left to right; whereas it has to display them as joined characters and oriented right to left.

Adobe says that they will only provide a security update and nothing else, so that clear bug will be kept for Firefox, Opera and other browsers that depend on the standalone plug-in.

Google Chrome display the language correctly because of it's own built in plug-in.

Since Adobe will not update flash for Linux.

  Adobe will no longer provide new releases of Flash Player for Linux
  after version 11.2, the company has today announced.

  Google will, instead, take over the implementation of Flash Player via
  a new plugin API called ‘Pepper‘.1

Consider using HTML 5 instead of flash for You Tube.  It doesn't have that problem.  As you see in the below image, it doesn't have the problem.

1Source:OMG

You can go to https://www.youtube.com/html5 and activate the HTML5 player, it works for me.


Super key not working in Ubuntu 20.04 I just updated to Ubuntu 20.04 LTS and my super key has lost its main functionality. Previously in Ubuntu 18.04LTS, I was able to click the super key and the applications drawer would show. Now it doesn't do that. I can still open it by clicking super+a but it's annoying that it doesn't do that.

I restarted my machine and still nothing.

I have the same issue but only when I select languages: Spanish, Italian, Russian.
On English and French it works perfectly (which are in 1st and 4th position).
As a workaround I put the two languages I use the most in 1st and 4th position, and for the rest I use ALT + F1 , that works in the same way...
Hope the information helps.

gnome guys fix this,
just do

sudo apt-get update
sudo apt-get upgrade

to get the fix for the super key to work on sec layout

still didn't fix the launcher shortcut super+/


Interface trouble, eth1 doesn't exist I add in virtualbox 2 interfaces like bridge, Internal network 192.168.. and external 195...*

Internal config:

auto eth0
iface eth0 inet static
address 192.168.*.250
netmask 255.255.255.0
network 192.168.*.0
broadcast 192.168.*.255
gateway 192.168.*.254

External config:

auto eth1
iface eth1 inet static
address 195.*.*.182
netmask 195.*.255.248
network 195.*.*.176
broadcast 195.*.*.183
gateway 195.*.*.177

Now if i restart the networking eth0 successfull is up, but eth1 make the error:

root@Tudor-LX:/home/theo# /etc/init.d/networking restart
 * Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces
 * Reconfiguring network interfaces...
SIOCSIIFADDR: No such device
eth1: ERROR while getting interface flags: No such device
SOICSIFNETMASK: No such device
SIOCSIFBRDADDR: No such device
eth1: Error while getting interface flags: No such device
eth1: Error while getting interface flags: No such device
Failed to bring up eth1.
ssh stop/waiting
ssh start/running, process 1260

Run this...

How to restart the networking service?

Do not run this in a root shell, just run it using sudo.  I've seen the SIO errors the first time you run the command, but not the second time.  You may have to run it twice in a row.

I would also comment out the auto eth statements.

I believe saying that auto eth is for DHCP only is WRONG!

The auto =  just means to: Automatically Launch The Ethernet Device Listed!

I Setup Mines Similar! Maybe this can help!

Using AUTO & STATIC IP!:

auto eth0
iface eth0 inet static
        address 192.168.x.x
        netmask 255.255.255.0

#########

    auto eth0:1
    iface eth0:1 inet static
    address 192.168.x.x
    netmask 255.255.255.0
    gateway 192.168.0.1
    dns-nameservers 8.8.8.8 8.8.4.4

Both Host & eth0:1 - Have There Own Static IP!

With eth1. I will receive the same error!


Last upgrade crashes network manager (no internet connection, no applet) While upgrading today, something caused my wireless network manager to disappear. Not even connecting via wired connection.

This error is being shown by files:

**(nm-applet:2716): WARNING **: Could not initialize NMClient /org/freedesktop/NetworkManager: The name org.freedesktop.NetworkManager was not provided by any .service files

(nm-applet:2716): nm-applet-WARNING **: Error connecting to ModemManager: Error calling StartServiceByName for org.freedesktop.ModemManager1: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ExecFailed: Cannot launch daemon, file not found or permissions invalid

(nm-applet:2716): nm-applet-WARNING **: Could not find ShellVersion property on org.gnome.Shell after 5 tries

(nm-applet:2716): nm-applet-WARNING **: Failed to register as an agent: (2) The name org.freedesktop.NetworkManager was not provided by any .service files

Is there a patch I can download through windows and send through to my ubuntu, or is it a case of having to reload everything? I tried running two versions back but still no internet access.

Cause

This is caused by a regression introduced with a fix for libnl3 bug #1511735.
Resulting network-manager crash has been reported in network-manager bug #1539513 or network-manager bug #1539634

Solution

Downgrade libnl packages and wait for an upgrade of network-manager package

Step 1

Try to downgrade libnl with apt-get as in @Max answer:

sudo apt-get install libnl-3-200=3.2.21-1 libnl-route-3-200=3.2.21-1 libnl-genl-3-200=3.2.21-1

Step 2

If Step 1 fails,
because the packages aren't anymore in your cache and obviously cannot be downloaded by package manager, you need to downgrade libnl packages manually (download + install):

Download and copy them to your system
[ from booting a live distrib/rescue cd or from another computer + usb stick ]
Download links for amd64:
libnl
libnl-genl
libnl-route
Download links for i386:
libnl
libnl-genl
libnl-route
Back to your system, where you saved these .deb files, install them with dpkg:

sudo dpkg -i libnl-*.deb

Step 3

Now you should be able to (re)start NetworkManager and bring back networking:

sudo service network-manager restart

Notice

These bugs hits ubuntu trusty 14.04 with Pre-released updates : trusty-proposed

Where last update of libnl packages from version 3.2.21-1 to 3.2.21-1ubuntu1 introduced a regression causing network-manager to crash

There isn't yet any upgrade on network-manager in trusty-proposed
Current version: 0.9.8.8-0ubuntu7.2
An update of network-manager is now available in trusty-proposed
Updated version: 0.9.8.8-0ubuntu7.3
please test proposed package (#1539634 comment n°11)

Thus until an upgrade for it triggers on your package manager you should apply a "hold" - as mentioned in libnl3 bug #1511735 comment n°29:

sudo apt-mark hold libnl-3-200 libnl-genl-3-200 libnl-route-3-200

Once the future upgrade from trusty-proposed is installed you can remove that hold with:

sudo apt-mark unhold libnl-3-200 libnl-genl-3-200 libnl-route-3-200

Which then will allow you to upgrade again libnl

i am a very very new beginner to ubuntu and that too a non technical man having very little background of this computer languages and all.

i faced the similar problem with nm

as instructed by r2rien i downloaded the three files from the links given by him

(first i could not understand that they are three links but thanks to his precise use of english: the word "files" made me look up again and i downloaded the rest two files)

then i could not install it

i was not able to understand the asterisk in "sudo dpkg -i libnl-*.deb"

how much ever i tried to install first files individually, then together, then by apt-get; sometime interchanging = in place of _ like 3-200=3.2.21-1 in place of 3-200_3.2.21-1. still no result. searched on net then found out very easy way of doing it. by dragging the file in terminal after "sudo dpkg -i "

then encountered another problem: processing triggers...
that too as someone gave suggestion by just "enter and then username and enter" got it solved. was skeptical still.
finally it worked. thanks r2rien and friends.


Error when reinstalling mysql-server "postinst: line 102: mysqld: command not found" I removed mysql-server because I set it up incorrectly. When I try to install it now I get this error:

matthew@matthewserver:~$ sudo apt-get update
Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://archive.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Ign:4 http://download.webmin.com/download/repository sarge InRelease
Get:5 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
[387 kB]
Hit:6 http://download.webmin.com/download/repository sarge Release
Fetched 559 kB in 1s (862 kB/s)
Reading package lists... Done
matthew@matthewserver:~$ sudo apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
mysql-server is already the newest version (5.7.23-0ubuntu0.18.04.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up mysql-server-5.7 (5.7.23-0ubuntu0.18.04.1) ...
Renaming removed key_buffer and myisam-recover options (if present)
ERROR: Unable to start MySQL server:
/var/lib/dpkg/info/mysql-server-5.7.postinst: line 102: mysqld: command not found
Please take a look at https://wiki.debian.org/Teams/MySQL/FAQ for tips on fixing common upgrade issues.
Once the problem is resolved, run apt-get --fix-broken install to retry.
dpkg: error processing package mysql-server-5.7 (--configure):
 installed mysql-server-5.7 package post-installation script subprocess returned error exit status 127
No apport report written because the error message indicates its a followup error from a previous failure.

dpkg: dependency problems prevent configuration of mysql-server:
 mysql-server depends on mysql-server-5.7; however:
  Package mysql-server-5.7 is not configured yet.

dpkg: error processing package mysql-server (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 mysql-server-5.7
 mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

I have no idea what this means. How do I go about installing it?

sudo apt-get clean
sudo apt-get update
sudo dpkg -r mysql-client-5.7
sudo dpkg -r mysql-server-5.7
sudo dpkg -r libmysqlclient20:i386
sudo dpkg -r libmysqlclient20:amd64
sudo dpkg -r libmysqlclient18:amd64
sudo dpkg -r mysql-common
sudo dpkg -r mysql
sudo apt-get install mysql mysql-client* mysql-server*


Can't install VirtualBox extension in ubuntu I want to install VirtualBox extension to use a wireless usb but everytime I tried to install it I got this error:

VBoxExtPackRegister returned VERR_VERSION_MISMATCH, pReg=0000000000000000 ErrInfo='VirtualBox version mismatch - expected 5.1 got 5.0'.

Result Code:
NS_ERROR_FAILURE (0x80004005)
Component:
ExtPackManagerWrap
Interface:
IExtPackManager {edba9d10-45d8-b440-1712-46ac0c9bc4c5}

The VM VirtualBox Extension Pack you have tired to install does not appear to match the version of VirtualBox you are running.

5.1.2 is latest version of Virtual box

To get USB working I had to un-install and downloaded latest version and corresponding  Extension Pack.

You must install the right VirtualBox Version for this extension like the error code displays:

VirtualBox version mismatch - expected 5.1 got 5.0

Or download the extension pack for 5.0 and install it from:
https://www.virtualbox.org/wiki/Download_Old_Builds_5_0


How to install KDE Plasma without installing full Kubuntu Desktop? I'm currently using Ubuntu 17.10 and I recently installed Kubuntu Desktop to get KDE, the installation succeeded, but my PC got messed up as it installed dozens of applications, modified the boot configuration and start screen that made my PC run a bit slow. I finally uninstalled the Kubuntu Desktop and the applications that came with it. But I liked the look of KDE Plasma, isn't there any way to install just the KDE Plasma and not the full Kubuntu Desktop?

As DK Bose said, I tried executing this command:

~$ sudo apt-get install plasma-desktop

And voila, it worked! It certainly does. It neither installed full kde-desktop, nor installed any more annoying apps nor modified my bootup configuration. I'm now using KDE without any problems, and the best part is my PC doesn't slow down.

Thanks to DK Bose and the Ask Ubuntu community who put efforts to solve my problem. I appreciate their efforts.

I suggest you not to install just plasma-desktop as it is just desktop environment, using it without it's supporting programs may make the DE less productive, or may spoil your work. You can install full kubuntu-desktop if you want to try out kde.


Cannot change backlight brightness Ubuntu 14.04 This morning I found that I cannot change the brightness of my Dell XPs 13 laptop's display anymore. I tried the following to change the brightness

Use keyboard brightness keys
Run the commands shown below
Boot with kernel option acpi_backlight=vendor. This resulted in a dell_something folder being present in the /sys/class/backlight folder. Changing the brightness file in that folder does not help.
Add 'intel_backlight' to xorg.conf
Set "load legacy option ROM" BIOS option to enabled and "secure boot" to disabled
Boot with kernel option i915.disable-pch_pwm=0
Boot from a fresh Ubuntu 12.04 USB stick installation. I can still not control the brightness. This is strange as the laptop came preinstalled with 12.04. Maybe this a hardware problem?
Install latest intel video driver

Any ideas why this broke suddendly? I've upgraded from 12.04 to 14.04 in April and till yesterday the brightness keys were working fine.

Thanks!

echo 100 > /sys/class/backlight/intel_backlight/brightness
echo 100 > /sys/class/backlight/acpi_video0/brightness

I got a fix for my dell 5521 laptop, working for Ubuntu 14.04 but will work for kernels v3.13+.

Open /etc/default/grub

sudo nano /etc/default/grub

to change the line

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

to

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video.use_native_backlight=1"

then save and exit and
run

sudo update-grub

then reboot

The explanation is that ACPI adds its own back light control even if one is already present which is intel_backlight, adding this line forces CPI to use the Intel back light.

For MANJARO 18 users:

I have a LENOVO with hybrid GPU, but I'm using just the NVIDIA card. Brightness buttons didn't work. The edition sugester elsewhere with a 10-nvidia-brightness.conf file didn't work. After reading a lot of, this solution, from Ubuntu users, worked for me.

Open a terminal and type:

ls /sys/class/backlight

For me, it pointed to intel_backlight. I don't know how this works for the acpi_backlight.
I createad the file

sudo <text_editor> /usr/share/X11/xorg.conf.d/20-intel.conf

Put your favourite text editor in <text_editor>, mine is xed.

Then write inside:

Section "Device"
        Identifier "card0"
        Driver "intel"
        Option "Backlight" "intel_backlight"
        BusID "PCI:0:2:0"
EndSection

The correct PCI should be that from the output of lspci | grep VGA (mine is 00:02.0). Save the file, then sudo pkill X (or reboot) and that's all.


How to create a Windows Bootable USB? How to make a bootable USB. I am using UBUNTU 13.04 LTS and want to make a bootable usb to install windows

Suggest any Ubuntu based usb creators to make a bootable Windows Flash drive.

I did this when my windows 8 was wiped.  Just go to the store and serch unetbootin.  Download it and find ur iso to burn onto the usb.  if u have any questions just ask.
thx


How to install the latest versions of NodeJS and NPM? I noticed over at the https://nodejs.org/ website that node is currently at v 0.12.0.

Can someone let me know how to install the latest version of node together with npm (terminal commands please)?

Fresh installation

Use the NodeSource PPA. For details look at the installation instructions. First, choose the Node.js version you need and add the sources for it:

v=8   # set to 4, 5, 6, ... as needed
curl -sL https://deb.nodesource.com/setup_$v.x | sudo -E bash -

Then install the Node.js package.

sudo apt-get install -y nodejs

P.S.: curl package must be installed on server for these code lines.

Upgrading

If you have nodejs already installed and want to update, then first remove current instalation and install it again using scripts above.

sudo apt-get purge nodejs npm

Updating Package Manager

sudo apt-get update

Adding PPA

sudo apt-get install python-software-properties

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

Installing NodeJS and NPM

sudo apt-get install nodejs

For Reference : Installing NodeJS in Ubuntu - WebCheerz


How to delete Gnome Panel? I am trying to get rid of my Gnome panels so that I can go to a purely Docky/Gnome-Do environment.

I have got rid of everything, except for a single remaining panel which I cannot delete.

The text "Delete this panel" is greyed out - any pointers about how to get rid of it?

I haven't used gnome for a while, but I used to do that with gconf-editor.

Open "desktop >> gnome >> session >> required_components", then double-click the "panel" option, then remove the "gnome-panel" value and close it, then just:

killall gnome-panel

Last time I used this method was with Karmic tho.

i solve it by just uninstalling and re-installing compiz manager.


No VNC extension on display :1 On Ubuntu 18.04 I ran sudo apt-get install tightvncserver. I then run vncserver which gives

New 'X' desktop is user:1

Starting applications specified in /etc/X11/Xvnc-session
Log file is /home/user/.vnc/user:1.log

as output. When I run more /home/user/.vnc/user:1.log I get

23/10/18 00:27:27 Xvnc version TightVNC-1.3.10
23/10/18 00:27:27 Copyright (C) 2000-2009 TightVNC Group
23/10/18 00:27:27 Copyright (C) 1999 AT&T Laboratories Cambridge
23/10/18 00:27:27 All Rights Reserved.
23/10/18 00:27:27 See http://www.tightvnc.com/ for information on TightVNC
23/10/18 00:27:27 Desktop name 'X' (user:1)
23/10/18 00:27:27 Protocol versions supported: 3.3, 3.7, 3.8, 3.7t, 3.8t
23/10/18 00:27:27 Listening for VNC connections on TCP port 5901
Font directory '/usr/share/fonts/X11/75dpi/' not found - ignoring
Font directory '/usr/share/fonts/X11/100dpi/' not found - ignoring
No VNC extension on display :1
Killing Xtightvnc process ID 5196

I have no idea on how to resolve this issue and cannot find anything on No VNC extension on display :1.

If you have installed tigervnc before tightvnc, it has replaced some files inside /etc/X11/. /etc/X11/Xvnc-session in particular, which will now call vncconfig, that in turn writes this message. vncconfig is not part of tightvnc, so it will silently die.
To fix this you will have to replace the contents of /etc/X11/Xvnc-session with the contents of ~/.vnc/xstartup or with a call to ~/.vnc/xstartup.

This cures the font problem but there is still the problem of display :1 not being recognised

apt-get install xfonts-75dpi
apt-get install xfonts-100dpi


How can I uncompress a *.7z file? How can I uncompress a *.7z file in Ubuntu and keep the directory structure?

First install the p7zip-full package:

sudo apt-get install p7zip-full

With this, Nautilus should have an option to uncompress 7-Zip Files.

I also recommend p7zip-rar so it also includes support for RAR files.

This is assuming you want to do it via GUI with Nautilus. If not, after downloading the packages above do the following:

7z x PACKAGE.7z

that should eXtract the packages with full path.

First install the according package
sudo apt install p7zip-full

use x flag to extract files with full path
use -o flag to set output directory

7z x <archive_name> -o{Directory}
for example
7z x file.7z -o/home/michael/Documents/NewFolder
Notice that that is no space between -o and the output directory. If the file was encrypted, it will automatically ask for the password.


Does Quickly support GTK3? Simple question: can Quickly use GTK2 only or also GTK3 for GUI?

As of 12.04
Gtk3 is the default on 12.04.

For 11.x
Simple answer: No, it does not (Quickly 11.10).

Extended answer:
Since all the code produced by quickly can be edited, you can change it to support gtk3, but it does not come with support.

There is however a branch of quickly in development that (only) supports gtk3. You can see the difference in the templates: some have from gi import ... (which is needed for gtk3) and the older templates have import gtk (which does not work with gtk3).

You should be able to uninstall your current quickly version and get the gtk3-enabled version with:

bzr branch lp:~quickly-committers/quickly/gtk3-projects

I have however not tried it and it is of course not the current stable version of quickly (which has lots of implications...)

Ubuntu 11.10 uses Gnome3/GTK3 by default, as well as Unity, so yes, it supports GTK3 :)

I see that you've added a pygtk tag to your question. You should consider dropping it in favor of GObject Introspection, as g-i and PyGTK are not compatible anymore. It's an easy transition though, and g-i provides many other tools as well. PyGTK is not going to be developed any more either, so sooner or later, you are going to have to make the switch. There will never be a GTK3 version of PyGTK.


I downloaded Dwarf Fortress. Why won't it run? I downloaded the version of Dwarf Fortress for Linux onto my computer, but when I click on the df file, it doesn't do anything. When I run it in a terminal, it gives me this message:

error while loading shared libraries: libSDL_ttf-2.0.so.0: cannot open shared object file: No such file or directory

The Dwarf Fortress archive you downloaded features no dependency resolution, and that error indicates you haven't installed the necessary libraries to play.

Open a terminal and enter the following:

sudo apt-get install libsdl1.2debian libsdl-image1.2 libsdl-ttf2.0-0

That should allow Dwarf Fortress to run correctly unless you are on a 64-bit installation. On 64-bit installations, you may need to add ":i386" as seen here:

sudo apt-get install libsdl-image1.2:i386 libsdl-ttf2.0-0:i386 libgtk2.0-0:i386 libjpeg62:i386 libglu1-mesa:i386 libopenal1:i386

You may also run into problems with sound. If so, you can follow the directions on the dwarf fortress wiki, which suggest the following:

$ cd df_linux/libs
$ ln -s /usr/lib/i386-linux-gnu/libopenal.so.1 ./libopenal.so
$ ln -s /usr/lib/i386-linux-gnu/libsndfile.so.1 ./libsndfile.so

I was having the same issue and found a very easy workaround.  Install Wine using software center and download the windows version of Dwarf Fortress.

After Dwarf Fortress is downloaded and wine is installed, go in dwarf fortress folder and right click Dwarf Fortress.exe and select Open With and then wine program loader.  It just works. I thought it was easier than playing around with the libraries.


Getting error message when trying to start a virtual machine I have been using VMWare on Windows for a long time. But after a long wait, I moved to VirtualBox on Ubuntu 11.10. I installed Ubuntu, 32 Bit, installed all available updates and installed Virtual Box. When I try to create a new Windows installation inside VirtualBox, I got the following error messages.

VirtualBox - Error

Failed to open a session for the virtual machine Windows XP.
The virtual machine '**Windows XP**' has terminated unexpectedly during startup with exit code 1.
Details

Result Code:
NS_ERROR_FAILURE (0x80004005)
Component:
Machine
Interface:
IMachine {5eaa9319-62fc-4b0a-843c-0cb1940f8a91}

2nd error dialogue

Virtualbox - Error in suplibOsinit
Kernal driver not installed (rc--1908)
Please install the virtualbox-dkmbs package and execute 'modprobe vboxdrv' as root.

I have already tried reinstalling VirtualBox.
Google result seem to indicate the the problem happens due to Kernel updates.

Is there anyway I can get this working? I need this for malware analysis and if VirtualBox is going to crash on me all the time, then I won't be able to use Ubuntu for work.

Output to dpkg -l | grep virtual

 server
rc  virtualbox                             4.1.2-dfsg-1ubuntu1
x86 virtualization solution - base binaries
rc  virtualbox-qt                          4.1.2-dfsg-1ubuntu1
x86 virtualization solution - Qt based user interface
cute 'modprobe vboxdrv' as root.<p>

Wierdly, for me it worked by closing VirtualBox and then running

sudo modprobe vboxdrv

from the terminal and then restarting VirtualBox

Something that seems to not be covered is kernel source. You need the kernel headers for your current kernel installed or it will fail to build the modules needed, resulting in this error.


What is a good alternative to Axure RP in linux? I have been using Pencil on Windows for several months, but I had to change to Axure RP because in Pencil there are no master templates.

While Pencil is okay for small projects, changing the header on bigger projects requires changing it page by page(bye, bye...time).

I tested justinmind in WINE, but it isn't stable. It would hang often, and there were many errors.

Are there any good alternatives? (Not web-based if possible)

You can try Apache OpenOffice Draw

Or several other ones that do similar things. Poke around find one that fits you


How to install specific version of some package? My questions are divided into two parts:

How to know the version of installed package?
How to install a specific package version?

How to know the version of installed package?

apt-cache policy <package name>

The above command will shows installed package version and also all the available versions in the repository according to the version of Ubuntu in which you are running.It doesn't display the package version which was intended for another version of Ubuntu(not your's).

Example:

$ apt-cache policy gparted
gparted:
  Installed: 0.16.1-1
  Candidate: 0.16.1-1
  Version table:
 *** 0.16.1-1 0
        500 http://ubuntu.inode.at/ubuntu/ saucy/main amd64 Packages
        100 /var/lib/dpkg/status

So the installed gparted version is 0.16.1-1.

How to install a specific package version?

sudo apt-get install <package name>=<version>

Example:

$ sudo apt-get install gparted=0.16.1-1
Reading package lists... Done
Building dependency tree
Reading state information... Done
gparted is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 265 not upgraded.

There is no general way to check the version of installed packages, but most of them can be checked using the command:

command -v

for example to know  the version of apache2:

apache2 -v

But this may not work with other packages so the best practice is to search the manual.

man XXX

and search for the option of showing the version.

To install a specific version of a package:

sudo apt-get install package=version

For example:

sudo apt-get install apache2=2.3.35-4ubuntu1


Cannot open 'PDF portfolio' How can I open a pdf portfolio (pdf file which contains multiple pdfs) that was made with Adobe on Mac or PC?

I've tried FoxIt, Evince, and qpdfview but none of them work.

I get a message saying "For the best experience, open this PDF portfolio in Acrobat X or Adobe Reader X, or later." Unfortunately this is not possible since Adobe does not seem to support these on Ubuntu any more.

My solution is based on this answer which suggests a few different PDF applications:

I found that not all these programs actually work for this. In my case pdftk did not work and okular did. One down side with Okular is that you have to export the PDFs contained in a portfolio into individual files:

Open with Okular

Click first item then ctrl+a to select all

You'll be prompted to select a file name and location. You can just keep hitting enter.

It's not as good an experience as using Adobe but it gets the job done.

Type "about:plugins" in the Chrome address bar, and then Disable 'PDF Viewer'. You will then be able to open PDF Portfolio documents as well. Check it out.


Errors using Wubi on Windows 7 Home Premium 64 bit I tried to install Ubuntu on my Windows 7 64-bit PC and encountered multiple error screens.  It finally showed an error with users\appdata\local\temp\wubi-11.10-rev245.log.

Without the log file it's not possible to identify the exact cause of the problem.

However, the easiest way to install Wubi is to download wubi.exe and the desktop CD ISO yourself and save them both in the same directory on your harddrive.
e.g. the 11.10 64-bit desktop CD ISO and the 11.10 wubi.exe

Then remove all Ubuntu USB and CDs from the computer (any ISO on the root of a drive e.g. E:\ as well). This is important. Now run that wubi.exe

Some software will associate itself with the .iso extension and identify the ISO as an archive or offer to do some default action. Just select to save the ISO. Or right click on the link and select "Save link as" to bypass the software. If you go direct to http://releases.ubuntu.com/11.10/ there are other download options e.g. the .torrent extension which will open up in your bit torrent client. It doesn't matter where you save the ISO as long as it's in the same place as the wubi.exe of the same release.

Did you try Wubi straight from the Ubuntu website AND make sure to pick an installation of above 15 gig? The Wubi installer has a little bit of difficulty determining bit versions, and while not normally a problem for 64 bit computers the "program" nature of Wubi doesnt always work well running 32 on a 64 bit machine. Otherwise anytime I've encountered that error (usually from XP however) i fixed it running a live USB (instead of live CD) and installing via the icon in the live USB system.

Hope this helps bro.


Installing nVidia Driver in Ubuntu 14.04 LTS I was trying to install the latest driver for my graphic card which is a nVidia GT525M

I opened Software & Updates and I found many options :

Using NVIDIA binary driver - version 331.38 from nvidia-331
(proprietary, tested)
Using NVIDIA legacy binary driver - version 304.117 from
nvidia-304-updates (proprietary)
Using NVIDIA legacy binary driver - version 304.117 from nvidia-304
(proprietary)
Using NVIDIA legacy binary driver - version 331.38 from
nvidia-311-updates (proprietary)
Using X.OrgX server - Nouveau displary driver from
xserver-xorg-video-nouveau (open source)

Which one is the correct (read latest) one to download for my system

Also, what is the difference between all of these drivers?

To install just check one of them, you will see a bar in the lower right conner, when it's done the driver is installed.

As MrVavkadii said, the highers numbers are newer, in your case, 331.38.

You have all these option cuz sometimes they don't work so you have mirrors to download them from.

Binary driver is the normal one.
Legacy binary driver is the ones that nVidia don't have avaible in the site to download anymore.
Xorg driver is the one made to be compatible to your OS, while it is opensource and made by users.

Proprietary are the ones made by nVidia
Proprietary (tested) is the one that will most of the times work at your system, so is the first choice you should make.
Open source means you can see and edit the driver.

Still newbie, but I had the same question some days ago and searched for info... If someone see that I'm saying **** please say.

If the top of the list does not work properly (from experience), try the next one down the line until you find one that works.  Or you could work up the line from the bottom?  Nvidia 9 series, 8 series, 7 series, 6 series, 5 series and 4 series was my experience (different option of drivers than yours?)?
edit: This was Ubuntu 12.


Gnome Tweak Tool does not show extensions I cannot use the user the gnome-shell-extensions-user-theme because there is no button on the tweak tool to enable extensions!
I've completely uninstalled and reinstalled the gnome-tweak-tool, no difference. Any suggestions?
Bruce.

I had the same problem. Seems that the file metadata.json has a wrong shell-version. At least for Ubuntu 11.10. To solve the issue I had to:

cd ~/.local/share/gnome-shell/extensions/
cd into the desired extension directory.
edit the metadata.json file and change

"shell-version": [ "3.3.2" ]
to
"shell-version": [ "3.2" ],

logout from Gnome-Shell and login again. Now you should see all the estensions in gnome-tweak-tool.

Had the same problem 10 minutes ago :D. This very brief command saved the day:

sudo apt-get remove fglrx*

It purges all installations and references for the proprietary graphics driver and once you restart gnome-shell, 3D acceleration is re-enabled and gnome-shell plus other applications requiring 3D acceleration run properly.


Missing password-asking dialog popup on session via VNC-SSH I've almost got to have a remote Ubuntu Desktop working exactly as id it was a local session, but still can't solve a little issue wich is driving me crazy.

I have a remote machine with Ubuntu Desktop. I connect to it via VNC over SSH, and as I say "almost everything" works perfectly, except for a problem I'm not getting to solve and I can't figure out whether it's a problem regarding to permissions, to the own VNC (I don't think so), or whatever.

When, for example, I open the Ubuntu Software Center and try to install any program clicking on "Install", nothing happens, because the password-asking popup dialog never appears and so, Ubuntu can't install it.

It's not about installing packages, since I can do it with aptitude, or even executing the USC as root, but I would like to fix it in other way since I don't want to be executing programs as root when it's not the proper way.

My question is: Anybody knows why could this be happening and how to solve it?

Following with the example of installing some app with USC, the messages on /vat/log/syslog are these (no errors though, but never appears the password-asking dialog):

Apr  9 22:11:33 noname-machine dbus[551]: [system] Activating service name='org.debian.apt' (using servicehelper)
Apr  9 22:11:33 noname-machine AptDaemon: INFO: Initializing daemon
Apr  9 22:11:33 noname-machine dbus[551]: [system] Successfully activated service 'org.debian.apt'
Apr  9 22:11:33 noname-machine AptDaemon.PackageKit: INFO: Initializing PackageKit compat layer
Apr  9 22:11:51 noname-machine AptDaemon: INFO: CommitPackages() was called: dbus.Array([dbus.String(u'gameconqueror')], signature=dbus.Signature('s')), dbus.Array([dbus.String(u'')], signature=dbus.Signature('s')), dbus.Array([dbus.String(u'')], signature=dbus.Signature('s')), dbus.Array([dbus.String(u'')], signature=dbus.Signature('s')), dbus.Array([dbus.String(u'')], signature=dbus.Signature('s')), dbus.Array([dbus.String(u'')], signature=dbus.Signature('s'))
Apr  9 22:11:51 noname-machine AptDaemon.Trans: INFO: Queuing transaction /org/debian/apt/transaction/be384a2ba642461dbf4c33e8fdb363ec

(No messages on /var/log/auth.log)

Exactly the same problem when clicking "check" on Update Manager:

Apr  9 22:43:53 noname-machine AptDaemon: INFO: UpdateCache() was called
Apr  9 22:43:53 noname-machine AptDaemon.Trans: INFO: Queuing transaction /org/debian/apt/transaction/35fae3fa030a497f8cb5405701c8d2d2
Apr  9 22:43:54 noname-machine AptDaemon: INFO: UpdateCache() was called
Apr  9 22:43:54 noname-machine AptDaemon.Trans: INFO: Queuing transaction /org/debian/apt/transaction/13c03177009847dc9ce23c7913d44be7
Apr  9 22:43:55 noname-machine AptDaemon: INFO: UpdateCache() was called
Apr  9 22:43:55 noname-machine AptDaemon.Trans: INFO: Queuing transaction /org/debian/apt/transaction/e2db780da371473099d3655f76e2510d
Apr  9 22:43:55 noname-machine AptDaemon: INFO: UpdateCache() was called
Apr  9 22:43:55 noname-machine AptDaemon.Trans: INFO: Queuing transaction /org/debian/apt/transaction/6f7a8a32df864d12b5372a11bc10481e

Anybody can see the problem?

(please excuse my english)

This command should do it:

sudo chmod +s /usr/lib/policykit-1/polkit-agent-helper-1

I had this problem when I moronically changed the owner of /usr/lib recursively.


Can I run a 12.04 64-bit server with only 1GB RAM? My friends ask me to build him a web server with 12.04 64-bit server edition in his 1GB RAM server.

Is it recommended or safe? Because I heard 64-bit system need at least 2GB RAM.

The server guide lists the minimum requirement as 128 megabytes for all architectures. I don't see any reason why 1GB wouldn't be fine.

However, that's just the installation. How much RAM you should have to run a particular workload depends on what that workload is.


Can't install NVIDIA driver even after stoping lightdm I want to install NVIDIA-Linux-x86_64-346.59.run using command
from tty1

sudo su

sudo service lightdm stop

that generate output

Stop : Unknown Instance:

then continue with

chmod +x NVIDIA-Linux-x86_64-346.59.run
sudo sh NVIDIA-Linux-x86_64-346.59.run

But I can't install and they said I must closed the X Server.

I'm using Ubuntu 14.04. Any idea?
thanks

The correct command to stop lightdm is:

sudo stop lightdm

But it is a really bad idea to install drivers this way.

Maybe you could try to change your runlevel with the  command telinit:

telinit 3

Here is an extract of the man page of runlevel which describes the different runlevels:

   ┌─────────┬───────────────────┐
   │Runlevel │ Target            │
   ├─────────┼───────────────────┤
   │0        │ poweroff.target   │
   ├─────────┼───────────────────┤
   │1        │ rescue.target     │
   ├─────────┼───────────────────┤
   │2, 3, 4  │ multi-user.target │
   ├─────────┼───────────────────┤
   │5        │ graphical.target  │
   ├─────────┼───────────────────┤
   │6        │ reboot.target     │
   └─────────┴───────────────────┘


VLC will sometimes have issues displaying video in fullscreen. Recently VLC has been having issues displaying video in fullscreen mode. AFAIK, nothing has changed with the video card drivers and it's certainly the same version of VLC.  (/me shakes a fist at the repository maintainers)

This has worked without issue in the past.  In fact, I've had as many as 6 instances of VLC running, each playing a video.  One was always fullscreen on my second monitor, while the others were tiled on my primary monitor.  I was able to toggle any of the other 5 into fullscreen mode and the video displayed without issue.

Lately, I've been having trouble running 2 instances in fullscreen mode.  (Sometimes, even a single instance will not display the video in fullscreen.)  VLC will continue to play the video, but in fullscreen mode I see nothing but a black screen.  Sometimes, the video will display if I maximize the VLC window.  Other times, I have to settle for a smaller sized window.

I don't know if this is pertinent, but sometimes changing the min/max state of a Firefox window (Minefield, specifically) seemed to allow the troublesome instance to display the video in fullscreen mode.  However, that did not prove to be a consistent workaround.  Sometimes, it seemed that closing a Firefox window did the trick, though that isn't consistently successful either.  (I futzed with Firefox, because with the crazy number of windows and tabs that I normally have open, it regularly hogs about 1 GB of RAM.)

Another bit of funkiness that comes to mind is the fact that my secondary monitor is considered the primary on boot-up.  I use xrandr to designate the real 1st monitor as primary after boot-up, as suggested by someone in a question I asked on the Unix & Linux SE site.

Specs:

Ubuntu 10.10  w/ Gnome and Compiz
8GB RAM
AMD Phenom II 965 Black Edition
Asus M4A79 Deluxe mobo
XFX ATI Radeon HD 5750 w/ 1GB RAM

VLC is configured to use the hardware overlay for video (as per the default setting)

Does anyone have an idea what may cause this issue or how I may go about troubleshooting it? Right now I have 2 instances of VLC playing, each in fullscreen mode on a separate monitor.

In Tools > Preferences > Video > Output change the Default to X11, save and restart vlc.

Not knowing much about computers, you might try this:

http://forum.videolan.org/viewtopic.php?f=13&t=78308

from VLC


Failed to get GUI / graphics Ubuntu 20.04 (Nvidia 2080Ti) I got a brand new computer with a Nvidia2080Ti. I am trying to install Ubuntu 20.04 (no other OS on the system). Install seems to work fine (I used safe graphics mode). But after rebooting (and removing USB stick), got a messed-up screen locked on Live-Patch. Can't do anything.... The only clue / message I got is something including "SEV: failed to get status. Error: 0x0" (2 lines).

For now, I am only trying to get ubuntu 20.04 running in graphical mode.

Any help really welcomed (I googled around but I was surprised to not find a direction to look into).

longan

How comes you think that it's graphic card related?

I think you need to update the motherboard first.

I would do:

Check if installation USB is not corrupted
Reinstall again.
Same    Problem? -> Update/Downgrade Motherboard.
Reinstall again.

I think it's because you PC is new and you obviously didn't update motherboard. :-)

I suggest you try this image made by me, which is almost the original focal with latest nvidia drivers installed and with prime-select fully functioning without reboot.
If testing with a live image is ok, you can install on your HDD.
You have to manually add an option pcie_port_pm=off to the end of your kernel_cmdline_atboot and also modify your /etc/default/grub:
The line beginning GRUB_CMDLINE_LINUX_DEFAULT should be like this:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pcie_port_pm=off"

And then run
sudo update-grub

so as to enable real switch off of nvidia gpu card when switching to intel integrated graphics.
If you don't do this you are still able to switch back and forth between intel and nvidia without reboot, but your nvidia gpu remains on all the time. Just some 5-10 W ...more from your battery !!!!
And you have latest nvidia driver on latest Ubuntu.
PS. If you had downloaded the image before 2020aug09 and get stuck at "initramfs with rootfs cannot be found" ,do not throw your usb stick,it's
usable.
Reboot with the stick,at boot prompt menu showing "Try ubuntu without install...." just do
1  type "e"  to edit the "Try ubuntu.." grub's config line
2  Replace "maybe-ubiquity"  with "boot=casper"
3  type "F10"  to boot
that should work .


How do I install driver for the Linksys WUSB6300? I recently installed Ubuntu´s recent os 14.04 and am unable to install the driver for my wireless adapter which is the Linksys WUSB6300. Is there any way to configure the driver in any way, or should I purchase another one?

Please install a new driver:

sudo apt-get install git
git clone https://github.com/abperiasamy/rtl8812AU_8821AU_linux
cd rtl8812AU_8821AU_linux
make

Reinstallation after a kernel upgrade:

cd rtl8812AU_8821AU_linux
make clean
make
sudo make install

Directions come from here.


Can I enable OS X-style mouse wheel scrolling (not natural scrolling) This is the way that Mac OS scrolling with a boring old handheld mouse works (as opposed to fancy soap bar and multitouch mice): The more and the faster you scroll, the further the mouse scrolling goes.

For instance, if I scroll one little tick on the mouse, the window scrolls a tiny amount. However, if I scroll twice in fast succession, the window scrolls a small amount once and then a faster amount the next time, etc.

Ubuntu has boring old pure linear scrolling. Is there nay way I can enable the Mac OS scrolling?

This feature is often referred to as mouse scroll acceleration, or mouse wheel acceleration.
Unfortunately, this feature is not implemented yet.
Here is the corresponding XServer issue (reported by me originally, also my patch...), this is the launchpad report, and here is a similar report for lipinput in Wayland.
I guess you could help with your vote on the issue. Or with an updated patch for libinput.

I implemented such a feature in user space here (mouse-scroll-wheel-acceleration-userspace).
This will increase the scroll speed, or accelerate the scroll speed.
You would just run this in the background, with your preferred options.
The code is quite simple Python code, and should be easy to modify as well.

There is software called NaturalScrolling.

sudo add-apt-repository ppa:zedtux/naturalscrolling

sudo apt-get update && sudo apt-get -y install naturalscrolling

Happy scrolling.


Ubuntu 14.04 64bit - 'GStreamer ffmpeg video plugin' problem I can't install gstreamer0.10-ffmpeg on Ubuntu 14.04

Doug McMahon has a launchpad PPA for Ubuntu Multimedia for Trusty here where you can view the packages he has available.

sudo apt-add-repository ppa:mc3man/trusty-media

and

sudo apt-get update

after that do

sudo apt-get install ffmpeg gstreamer0.10-ffmpeg gstreamer0.10-fluendo-mp3 gstreamer0.10-gnonlin gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-bad gstreamer0.10-plugins-ugly totem-plugins-extra gstreamer-tools ubuntu-restricted-extras libxine1-ffmpeg gxine mencoder mpeg2dec vorbis-tools id3v2 mpg321 mpg123 libflac++6 totem-mozilla icedax tagtool easytag id3tool lame nautilus-script-audio-convert libmad0 libjpeg-progs flac faac faad sox ffmpeg2theora libmpeg2-4 uudeview flac libmpeg3-1 mpeg3-utils mpegdemux liba52-0.7.4-dev libquicktime2

Make sure you have all the appropriate software sources enabled under "Software and Updates" because,I don't believe those proprietary codecs are in the "main" repo. After you double check and enable those sources, run:

sudo apt-get update

Then try to install it again.


Indicator Synapse keyboard shortcut I'm trying to change Indicator Synapse keyboard shortcut using dconf-editor.

net -> launchpad -> synapse-project -> indicator

On shortcut i set

<Control>space

but nothing changes.

Notice that event the default keybind is not working (Super Alt space)

I am using ubuntu 13.10

Any ideas?

This is a known issue Shortcut to activate synapse resets to Control-space every reboot and still pending. If you feel up to it, there is a patch.

Even if the shortcut is correctly saved in $HOME/.config/synapse/config.json, it won't works.

It's Ctrl+Space. I just tried it and it works.


Another question about Netflix on Ubuntu I know, the issue of Netflix's Watch Instantly not working on Linux has been (sort of) handled by using Wine to run Firefox with Silverlight installed, but that solution isn't working out so well for me. (The Wine window freezes up on attempted loading of Silverlight.)

I have not come to ask for help with this, however.
I have come to ask if anybody has made a "mod" for Moonlight (the open-source equivalent of Silverlight,) to spoof DRM.

I already have the User Agent Switcher add-on spoofing Windows, and the player will load, but it never gets past the part with the blue circle.
I want to know if there is a fork of Moonlight that emulates Silverlight. I don't care whether the DRM is real or spoofed. I'm probably not going to be hosting illegal downloads of Netflix movies anyway (I like Netflix too much to do that ;)

Anyway, I don't need a link, although that would be nice; I just need someone to point me in the right direction.

I hate to be a buzz-kill but spoofing DRM is illegal. Have you tried the netflix-desktop app? It's a specialized version of wine made just to run netflix/silverlight.

http://www.iheartubuntu.com/2012/11/ppa-for-netflix-desktop-app.html


USB drive - cp: cannot create regular file, Read-only file system I am able to copy files from a USB flash drive, but I cannot get the data (files) into the flash drive. It is showing:

cp: cannot create regular file `PENDRIVE/12_angrymen.avi': Read-only file system

Please suggest how to copy files from my system to the flash drive. The permissions of the flash drive are:

drwx------  3 santhosh santhosh 2048 Jan  1  1970 PENDRIVE/**

I also can't change the flash drive's permissions. Please help me out.

IF its a sd card look on the left side of the card there is a little switch to change it from read only so you can also write to it.


Copy files from one folder to another folder within specific date range I am already using below command to copy files from a specific date.

Previously I used this command and it worked well but now it was showing an error:

-bash: /bin/cp: Argument list too long

Commends used:

cd /share/new/
cp `find . -type f -newermt '16 july 2018'` /share/test

I need to copy all files in the folder "new" from July 20th to today date. How can I achieve this?

Don't use cp directly with the output of find.

It might passes way many too files in a single step (and that's why you get the error Argument list too long).

Use the -exec parameter of find, which execute the given command passing a every matched file to cp, one at a time:

cd /share/new/
find . -type f -newermt '16 july 2018' -exec cp {} /share/test \;

You should try this syntax:

find /share/new/ -type f -newermt '16 july 2018' -exec cp -R /share/test/ {} \;


How do I add environment variables? I'm running Ubuntu 11.04. I use the terminal to start a bash session, and I want to add an environment variable:

$r@hajt:~$ env THEVAR=/example

But it's not working. It shows all the variables with THEVAR being the last one, but another call to env does not show THEVAR anymore- env | grep THEVAR returns nothing.

Similarly, scripts with export (export THEVAR=/example) or other variable assignments (THEVAR=/example) don't add the environment variable.

I know I'm doing something wrong, I know it should be something simple, but I just can't find what.

UPDATE:
The real meaning of my question was this one: https://stackoverflow.com/questions/496702/can-a-shell-script-set-environment-variables-of-the-calling-shell

(Anyway I'll choose the most voted answer and leave the edited title -that wasn't what I was asking)

env runs a program in a modified environment, then dismisses all the changes.

To set variable only for current shell:

VARNAME="my value"

To set it for current shell and all processes started from current shell:

export VARNAME="my value"      # shorter, less portable version

To set it permanently for all future bash sessions add such line to your .bashrc file in your $HOME directory.

To set it permanently, and system wide (all users, all processes) add set variable in  /etc/environment:

sudo -H gedit /etc/environment

This file only accepts variable assignments like:

VARNAME="my value"

Do not use the export keyword here.

You need to logout from current user and login again so environment variables changes take place.

If you are using Ubuntu or any Unix-based system then export the variables in the ./bashrc.sh file. It's a hidden file and you can get there through the terminal or by unhiding hidden files in the file system.
Then edit the file and set export THEVAR=/example there, save and it's done.


sometimes xfce4-power-manager stuck sometimes the xfce4-power-manager does not show up in the panel and it`s not working at all, and sometimes is working.

when it`s not working I have 2 solutions:

log out, and log in.

start system monitor and kill xfce4-power-manager, then start terminal and type:

xfce4-power-manager --no-daemon

usually I use second solution, but to simplify the process I tried to write a shell script that restarts the xfce4-power-manager, with no success.

I cannot shut down the xfce4-power-manager from terminal.

xfce4-power-manager --restart

-is not working

xfce4-power-manager --quit

-is not working

I tried:

#!/bin/bash
PID=`pidof xfce4-power-manager`
kill $PID
xfce4-power-manager --no-daemon

-is not working.

If I type:

xfce4-power-manager --customize

-an error window appears with:

Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

in the system monitor at Waiting Chanel says: futex_wait_queue_me.

Thank you

xfce4-power-manager not started, applet not visible

Delete > Desktop configuration file:
/etc/xdg/autostart/xfce4-power-manager.desktop

.

Settings Manager / Session and Startup / Startup Applications

Item disabled:
Energy Management (power Management Xfce environment)

New item enabled with new command:

Mame:          Xfce Power Manager (For example-Your name)

Description:   Power manager startup

Command:       xfce4-power-manager --no-daemon

http://ubuntuset.url.ph/power_manager.html


Android device is not recognized in adb I'm having a huge problem with my android samsung galaxy tab 7".

Whenever I try to connect it to my computer, instead of showing normally in my adb devices, the name of the device is : ????? and it status is online or device.

I really don't know what is the problem, any help would be really appreciated.
If you need more info, I would be happy to give it.

Ubuntu : 11.04

Device : Samsung galaxy tab 7"

Android version : 3.2 HoneyComb

I also added the rules in /etc/udev/rules.d/51-android.rules

The '?' means that it can't determine the serial number , but adb may still work. The first thing you should try if it doesn't is to try a different USB cable/and socket. There are enough anecdotes involving Samsung devices to suggest that this is the problem.

You probably don't have adb over tcp/ip enabled but if you do turn that off.

If it says "no permissions", then that usually means a udev problem. If it works when you run adb as root then it is a problem with your udev rules: sudo /path/to/adb devices. One thing to watch out for with udev is that your computer needs to be rebooted for your changes to be recognised.

Try this:

sudo adb kill-server
sudo adb start-server
adb devices

Please note that either you have adb on your path or you go to the platform-tools directory and then run these commands.


How can I reinstall GRUB to the EFI partition? I want to reinstall GRUB 2 and I found these instructions:
How to Repair, Restore, or Reinstall Grub 2 with a Ubuntu Live CD or USB.
In my case, the boot loader is installed in the EFI partition. If I use the commands provided in this guide, will GRUB be reinstalled to the EFI partition automatically, or will it be installed into the root partition where Ubuntu is installed ? Obviously, I do not want this to happen.

Reinstall the GRUB boot loader to your Ubuntu installation in EFI mode this way ...
Boot from the Ubuntu installation medium and select 'Try Ubuntu without installing'.
(Boot your install medium in EFI mode, select the Ubuntu entry with UEFI in front.)
Once you are on the Live desktop, open a terminal and execute these commands :
sudo mount /dev/sdXY /mnt
sudo mount /dev/sdXX /mnt/boot/efi
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
sudo chroot /mnt
grub-install /dev/sdX
update-grub

Note : sdX = disk | sdXX = efi partition | sdXY = system partition
To identify the partitions use GParted, the tool is included in the installation medium.
After having run the commands GRUB will be installed in the separate EFI partition.

During the last months there have been some updates to the libraries involved.
The steps below were useful for me. They took ideas from old answers as well as from other forums.
Make sure that you booted using EFI
efibootmgr -v

Run grub-install
sudo mount /dev/nvme0n1p5 /mnt
sudo mount /dev/nvme0n1p1 /mnt/boot/efi

for i in /dev /dev/pts /proc /sys /sys/firmware/efi/efivars /run; do sudo mount -B $i /mnt$i; done

sudo chroot /mnt

grub-install --target=x86_64-efi /dev/nvme0n1
grub-install --recheck /dev/nvme0n1

# as a second attempt, you could also try (assuming _debian_ is your distro)
# grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=debian
# grub-mkconfig -o /boot/grub/grub.cfg

update-grub2

exit &&
sudo umount /mnt/sys &&
sudo umount /mnt/proc &&
sudo umount /mnt/dev/pts &&
sudo umount /mnt/dev &&
sudo umount /mnt

Make sure that efibootmgr lists your Linux as an entry
efibootmgr -v


What is the best way to automate my linux setup At work, I had to rebuild my WSL a number of times and I was wondering what will be the best way to automate my Ubuntu setup. For .dotfiles files, I'm using the bare-git approach (https://www.atlassian.com/git/tutorials/dotfiles) but when it comes to package installation or system wide config I wonder what other people are doing?
Is the best way is to use a simple bash script or Ansible or another way??
Feedback greatly appreciated
Oren

For system-wide config, etckeeper is a nice tool that integrates git.


How do I install a package outside of the APT database? I am new to Linux, so this might sound like a simple question, but how do I install a package outside of the APT database? I am trying to install the following package:
https://launchpad.net/ubuntu/+source/pdb2pqr
Any help will be appreciated. Thank you!

Let's assume you are currently running Huriste Hippo (21.04).

Expand "The Hirsute Hippo (current stable release)" section.
You will see a list of Package files.

Select and download the the *.deb (*.ddeb) files for your architecture.
For AMD64, you would pick:

pdb2pqr-dbgsym_2.1.1+dfsg-7build1_amd64.ddeb - Debug symbols for pdb2pqr. Note, this is probably optional, unless you need to debug the software.
pdb2pqr_2.1.1+dfsg-7build1_amd64.deb - Preparation of protein structures for electrostatics calculations
pdb2pqr-doc_2.1.1+dfsg-7build1_all.deb - Example files accompanying pdb2pqr

Open a terminal and execute the following commands.
Let's assume you downloaded these files to your Downloads directory.
cd ~/Downloads

Add the universe repository so Ubuntu can download other dependent packages you may need. Also this is needed for the gdebi command below.
sudo apt-add-repository universe
sudo apt update

Install gdebi, a tool to allow you to install *.deb files and automatically install their dependencies.
sudo apt install gdebi-core

Install your downloaded packages.
sudo gdebi pdb2pqr_2.1.1+dfsg-7build1_amd64.deb
sudo gdebi pdb2pqr-doc_2.1.1+dfsg-7build1_all.deb
sudo gdebi pdb2pqr-dbgsym_2.1.1+dfsg-7build1_amd64.ddeb


Nteflix streams really choppy I installed netflix on edubuntu 12.04lts. it will stream movies but is real choppy. I know its not my comp  unable to handle because i use to have windows on here and it ran fine. Is there any fixes to get the choppiness to stop

On Ubuntu, you are running netflix through wine, a sort of Windows emulation software, because Netflix won't support Linux. This is not so efficient as running the Netflix software natively. I've found it can work, but it seems to be sensitive to everything else running on your system as well as the quality of your wifi signal.

Try it with a good wifi signal with nothing else running.


add folder to home directory Instructions on the airwave github requires me to download and install the Audio Plugins SDK.

This step confuses me as new Ubuntu user:

  Unpack the VST SDK archive. Further I'll assume that you have unpacked it in your home directory: ${HOME}/VST3\ SDK.

I have two options:

Create a folder in home directory. I am unable to do that and my guess it has to do with root privileges. I believe it is recommended to use sudo for temporary access root privileges? I don’t know what command to use or how to create a folder in home directory otherwise
Use another folder in my user directory, but can someone explain the following ${HOME}/VST3\ SDK.. What is with the slash and backslash etc. Can someone explain? I wouldn’t know how to direct the command to my user  directory in here:

cmake -DCMAKE_BUILD_TYPE="Release" -DCMAKE_INSTALL_PREFIX=/opt/airwave -DVSTSDK_PATH=${HOME}/VST3\ SDK ..

Since I am a new user to Ubuntu some basic explanation would do me well.

Thank you for your time and answers

${HOME} means your home directory which is /home/username by default. Simply create a new Folder there named "VST3 SDK" and unpack the archive there.

The "\ " is used to indicate a whitespace, because if you would use a terminal command a whitespace also seperates arguments.

To create a folder in home, do the following:

Open up the terminal
You should already be in home (if not, do: cd ~)
mkdir <folder_name> or sudo mkdir <folder_name>


Installing MATLAB Ubuntu 12.10, persistent "permission denied" problem I'm trying to install MATLAB on Ubuntu 12.10, I had it in my last laptop with 12.04 and I didn't have much trouble to install it.

I'm getting this problem:

j@jgb:~/Programs/Instaladores/matlab$ ./install
Preparing installation files ...
Installing ...
./install: 1: eval: /tmp/mathworks_1436/sys/java/jre/glnxa64/jre/bin/java: Permission denied
Finished

And it doesn't change if I change the permissions to the java file or to the install file as other posts say.

In my /etc/fstab file I had this line added (But nothing changes if I comment it):
tmpfs /tmp tmpfs nodev,nosuid,noexec,mode=1777 0 0

Thanks

I had the same problem. I tried installing the MATLAB R2012b.

The problem was the login name. Make sure you write the correct login name during the installation process, and its case sensitive.

I deleted the files and re-installed it and it worked.

Good luck.

Try to add the x permission to the "java" file

see ! it's easy ;)

http://tylau0.blogspot.com/2011/12/matlab-linux-install-error.html


Is there a way to disable a laptop's internal keyboard? A week ago, I spilt the contents of my cup onto my laptop keyboard. Half of the keys no longer work, except one! The letter Q which is very active regularly.

This is very disturbing as I work.

Is there a way to disable the internal keyboard of a laptop?

Is it possible with xmodmap?

You can use xinput to float the input device under X.

Execute the command xinput list to list your input devices.
Locate AT Translated Set 2 keyboard and take note of its id number; this will be used to disable the keyboard. Also, take note of the number at the end, [slave keyboard (#)]; this is the id number of the master, which will be used to re-enable your keyboard.
To disable the keyboard, execute the command xinput float <id#>, where <id#> is your keyboard's id number. For example, if the id was 10, then the command would be xinput float 10.
To re-enable the keyboard, execute the command xinput reattach <id#> <master#>, where master is that second number we noted down. So if the number was 3, you would do xinput reattach 10 3.

Here's a demonstration:

$ xinput list
⎡ Virtual core pointer                      id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ SynPS/2 Synaptics TouchPad                id=11   [slave  pointer  (2)]
⎜   ↳ Logitech USB-PS/2 Optical Mouse           id=12   [slave  pointer  (2)]
⎜   ↳ Logitech Unifying Device. Wireless PID:4004   id=13   [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)]
    ↳ Sleep Button                              id=8    [slave  keyboard (3)]
    ↳ Acer CrystalEye webcam                    id=9    [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=10   [slave  keyboard (3)]
$ xinput float 10
$ xinput list
⎡ Virtual core pointer                      id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ SynPS/2 Synaptics TouchPad                id=11   [slave  pointer  (2)]
⎜   ↳ Logitech USB-PS/2 Optical Mouse           id=12   [slave  pointer  (2)]
⎜   ↳ Logitech Unifying Device. Wireless PID:4004   id=13   [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)]
    ↳ Sleep Button                              id=8    [slave  keyboard (3)]
    ↳ Acer CrystalEye webcam                    id=9    [slave  keyboard (3)]
∼ AT Translated Set 2 keyboard              id=10   [floating slave]
$ xinput reattach 10 3
$ xinput list
⎡ Virtual core pointer                      id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ SynPS/2 Synaptics TouchPad                id=11   [slave  pointer  (2)]
⎜   ↳ Logitech USB-PS/2 Optical Mouse           id=12   [slave  pointer  (2)]
⎜   ↳ Logitech Unifying Device. Wireless PID:4004   id=13   [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)]
    ↳ Sleep Button                              id=8    [slave  keyboard (3)]
    ↳ Acer CrystalEye webcam                    id=9    [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=10   [slave  keyboard (3)]

xinput float "AT Translated Set 2 keyboard"

After spending hours over years with different methods with different distros and releases. The above terminal command is what I rely on after problems..... I use this now with neon plasma and was using it a month ago in straight ubuntu 18.04.
(needs applying after restart - can be placed in startup)
* My built in keyboard on my HP Laptop that is damaged and starts typing which causes serious problems - I use a wireless keyboard and mouse - touchpad is on/off as part of KDE topbar options - neon/plasma 5).
In system settings / autostart
A text file with the following line of code is saved as a .sh file and set as executable (txt files properties)
    xinput float "AT Translated Set 2 keyboard"

The text file is given a name > keyboardoff > and placed in autostart (executable)
When you restart/start system > built in keyboard is switched off.
(use xinput list to test)


Wifi is not working on my Dell E6400 I installed Ubuntu 12.10 on my Dell E6400, everything is working fine, except my wifi.

The switch on the laptop is on but still Ubuntu does not recognize my wireless adapter.

I ran the lspci | grep Network command and it shows this:

Broadcom Corporation BCM4322 802.11a/b/g/n Wireless

If there is a way to connect to the Internet, you can install the following packages in order to use wireless connections.

Open the Software Center and search&find&install these packages:

b43-fwcutter

firmware-b43-installer

or you can install these packages with a terminal command(Short cut:Ctrl+Alt+T):

sudo apt-get install b43-fwcutter firmware-b43-installer

If your pc haven't a another internet connection, you can download driver packages from the following urls.

http://packages.ubuntu.com/quantal/b43-fwcutter

http://packages.ubuntu.com/quantal/firmware-b43-installer

Please, be careful of packages architecture(The packages architecture you will choose must be same as your Ubuntu architecture.)

After this operation reboot your system and connect a wireless network.

That Ubuntu version is quite old. Update your Ubuntu version or install it clean and in the additional drivers tab you may find the driver you are missing. The latest Ubuntu version is Ubuntu 15.04.