As far as I can tell, you should be fine. NVIDIA graphics have problems on Ubuntu, so it's good you use AMD graphics. I actually have a similar rig (same RAM, graphics and CPU) and Ubuntu runs just fine. Just as a sort of caveat, Ubuntu tends to cap game FPS at your monitor's refresh rate (VSync), which isn't necessarily bad, just something you should know. A quick Google search didn't show any errors, but I did skim. I think you're good, and of it doesn't work, it's easy to uninstall Ubuntu and put something like Fedora or Windows on.


Ubuntu Server - using Byobu: Ctrl+F2 does not split screen in vertical

$ sudo nano /usr/share/byobu/keybindings/f-keys.tmux

# Change
bind-key -n C-F2 display-panes \; split-window -h -c "#{pane_current_path}"

# To
bind-key -n C-H display-panes \; split-window -h -c "#{pane_current_path}"

# Save the file

$ byobu-keybindings
Byobu keybindings: [OFF]
$ byobu-keybindings
Byobu keybindings: [ON]

Now, press Ctrl-H and it should split horizontally. Do this for any other keys that might be un-F'd.


Every time I start my Hp Laptop I have to set up my ant_sel=1 setting on rtl8723be on Ubuntu 16.10

You can set this permanently by running in terminal

sudo tee /etc/modprobe.d/rtl8723be.conf <<< "options rtl8723be ant_sel=1"


Generally Ubuntu will detect hardware at boot time. This means that any hardware changes we had made between boots will be taken care of from the next boot.

From my own experience this will work fine even when we changed a sensible piece of hardware like a graphic card. In the usual case we just plug in the new hardware, boot and may have to install proprietary drivers only in case we feel we need them for better performance.

However in some cases there may be issues from a propretiary driver we may had installed for the previous card. Also we may need to purge an altered X.org configuration if this was done from the previous graphic card's settings. This can all be done from booting a root shell in case the graphic system was badly tampered.

There is no need to reinstall Ubuntu.

To avoid sitting on a Ubuntu booting to command line only we may want to consider removing all proprietary drivers before we change our graphic card.


I found the issue.  My system is utilizing ConnMan to manage the ethernet connection, so making changes to /etc/network/interfaces was being ignored.  In order to configure the interface, first I had to find the mac address of the interface, by typing connmanctl services.  I then used this command to configure the interface:

connmanctl config ethernet_<mac_address>_cable --ipv4 manual <ip_address> <netmask> <gateway> --nameservers <ip_address>

So in my case, it looked like this:

connmanctl config ethernet_ec24b8f6d60b_cable --ipv4 manual 192.168.4.123 255.255.255.0 192.168.4.1 --nameservers 8.8.8.8

This seems to be persisting thru reboots and holding the IP.


Why does computer show device mapping table on EFI shell after Ubuntu installation?

As a temporary workaround, try typing these commands at the EFI shell (the Shell> prompt in your image):

fs0:
cd EFI\ubuntu
shimx64.efi

This sequence should launch GRUB, which in turn should launch Ubuntu. There are a number of reasons why this might fail, but chances are good that it will work.

Once Ubuntu is booting, run the Boot Repair utility and select the "Create BootInfo Summary" option. (DO NOT click "Recommended Repair," at least not yet!) When asked whether to upload the report, click "Yes," and then post the URL provided here. This will give us more details about your configuration, which is required to base a more permanent answer on more than guesswork.

If you can't get Ubuntu to boot using my workaround, you can run Boot Repair from the Ubuntu installer booted into its "try before installing" mode.


Failed to load module "unity-gtk-module" by skype in ubuntu 13.10

Skype 4.2.0.11 was working (I had the noise problem , if somebody tried to call me , than all I heard was a long buzz, which stopped only if I shut Skype down)

I wanted to upgrade to Skype 4.2.0.13 downloaded from Skype.com the ~ skype-ubuntu-precise_4.2.0.13-1_i386.deb ~

I removed the old skype with:

sudo apt-get remove --purge skype

I run the

sudo dpkg -i skype-ubuntu-precise_4.2.0.13-1_i386.deb

then I tried to run

skype

Then this shows up:

Gtk-Message: Failed to load module "overlay-scrollbar"
Gtk-Message: Failed to load module "unity-gtk-module"
Gtk-Message: Failed to load module "canberra-gtk-module"

Now skype wont even start.
Any ideas?

Thank you


How can I install Sun/Oracle's proprietary Java JDK 6/7/8 or JRE?

There is a similar answer on how to install JRE 7.

Install Java JDK

The manual way

Download the 32-bit or 64-bit Linux "compressed binary file" - it has a ".tar.gz" file extension.
Uncompress it

tar -xvf jdk-8-linux-i586.tar.gz   (32-bit)

tar -xvf jdk-8-linux-x64.tar.gz   (64-bit)

The JDK 8 package is extracted into ./jdk1.8.0 directory. N.B.: Check carefully this folder name since Oracle seem to change this occasionally with each update.
Now move the JDK 8 directory to /usr/lib

sudo mkdir -p /usr/lib/jvm
sudo mv ./jdk1.8.0 /usr/lib/jvm/

Now run

sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.8.0/bin/java" 1
sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.8.0/bin/javac" 1
sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/lib/jvm/jdk1.8.0/bin/javaws" 1

This will assign Oracle JDK a priority of 1, which means that installing other JDKs will replace it as the default. Be sure to use a higher priority if you want Oracle JDK to remain the default.
Correct the file ownership and the permissions of the executables:

sudo chmod a+x /usr/bin/java
sudo chmod a+x /usr/bin/javac
sudo chmod a+x /usr/bin/javaws
sudo chown -R root:root /usr/lib/jvm/jdk1.8.0

N.B.: Remember - Java JDK has many more executables that you can similarly install as above. java, javac, javaws are probably the most frequently required. This answer lists the other executables available.
Run

sudo update-alternatives --config java

You will see output similar to the one below - choose the number of jdk1.8.0 - for example 3 in this list (unless you have have never installed Java installed in your computer in which case a sentence saying "There is nothing to configure" will appear):

$ sudo update-alternatives --config java
There are 3 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                            Priority   Status
------------------------------------------------------------
  0            /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java   1071      auto mode
  1            /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java   1071      manual mode
* 2            /usr/lib/jvm/jdk1.7.0/bin/java                   1         manual mode
  3            /usr/lib/jvm/jdk1.8.0/bin/java                   1         manual mode

Press enter to keep the current choice[*], or type selection number: 3
update-alternatives: using /usr/lib/jvm/jdk1.8.0/bin/java to provide /usr/bin/java (java) in manual mode

Repeat the above for:

sudo update-alternatives --config javac
sudo update-alternatives --config javaws

Note for NetBeans users!

You need to set the new JDK as default editing the configuration file.

If you want to enable the Mozilla Firefox plugin:

32 bit:
ln -s /usr/lib/jvm/jdk1.8.0/jre/lib/i386/libnpjp2.so ~/.mozilla/plugins/

64 bit:
ln -s /usr/lib/jvm/jdk1.8.0/jre/lib/amd64/libnpjp2.so ~/.mozilla/plugins/

N.B.: You can link the plugin (libnpjp2.so) to /usr/lib/firefox/plugins/ for a system-wide installation (/usr/lib/firefox-addons/plugins from 15.04 onwards). For Ubuntu 13.10, the path to the plugin directory is /usr/lib/firefox/browser/plugins/.

Depending on your configuration, you might need to update the apparmor profile for Firefox (or other browsers) in /etc/apparmor.d/abstractions/ubuntu-browsers.d/java:

# Replace the two lines:
#  /usr/lib/jvm/java-*-sun-1.*/jre/bin/java{,_vm} cx -> browser_java,
#  /usr/lib/jvm/java-*-sun-1.*/jre/lib/*/libnp*.so cx -> browser_java,
# with those (or adapt to your new jdk folder name)
/usr/lib/jvm/jdk*/jre/bin/java{,_vm} cx -> browser_java,
/usr/lib/jvm/jdk*/jre/lib/*/libnp*.so cx -> browser_java,

Then restart apparmor:

sudo /etc/init.d/apparmor restart

The easy way (Obsolete)

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

The easiest way to install the JDK 7 is to do it with the Web Up8 Oracle Java OOS. However, it is believed that this PPA is sometimes out of date. Also note the dangers of using a PPA.

This installs JDK 7 (which includes Java JDK, JRE and the Java browser plugin):

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
# or if you want JDK 8:
# sudo apt-get install oracle-java8-installer
# these commands install Oracle JDK7/8 and set them as default VMs automatically:
# sudo apt-get install oracle-java7-set-default
# sudo apt-get install oracle-java8-set-default

Source

N.B.: Before someone screams this is against the Oracle redistribution license - the PPA does not actually have Java in the personal repository. Instead, the PPA directly downloads from Oracle and installs it.

The Script way

If you're on a fresh installation of Ubuntu with no previous Java installations, this script automates the process outlined above if you don't want to type all that into a console. Remember, you still need to download Java from Oracle's website -- Oracle's links are not wget friendly.

Before using this make sure that this script is in the same directory as the .tar.gz file extension that you downloaded and there are no files that start with jdk-7 in the same folder. If there are, please move them out of the folder temporarily. Remember to make the script executable (chmod +x <script's file>).

#!/bin/sh

tar -xvf jdk-7*
sudo mkdir /usr/lib/jvm
sudo mv ./jdk1.7* /usr/lib/jvm/jdk1.7.0
sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.7.0/bin/java" 1
sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.7.0/bin/javac" 1
sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/lib/jvm/jdk1.7.0/bin/javaws" 1
sudo chmod a+x /usr/bin/java
sudo chmod a+x /usr/bin/javac
sudo chmod a+x /usr/bin/javaws

If you want to install the plugin for Firefox then add this to the end of the script:

mkdir ~/.mozilla/plugins
ln -s /usr/lib/jvm/jdk1.7.0/jre/lib/amd64/libnpjp2.so ~/.mozilla/plugins/
sudo /etc/init.d/apparmor restart

Check if installation was successful

You can check if the installation succeeded with the following command:

java -version

You should see something like

java version "1.8.0"
Java(TM) SE Runtime Environment (build 1.8.0-b132)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode)

You can check if the JRE Mozilla plugin has been successful by using the official oracle website.

For Java 6: How do I install Oracle JDK 6?


Will getting Ubuntu on my usb stick screw up any files on my computer?

Using a tool like UNetbootin (http://unetbootin.sourceforge.net/) To put Ubuntu on a usb will not harm your computer in any way (provided you have told it to write to the usb and not the hard-drive.)

Once you've booted into it, the only way to do any harm to your computer is if you tell Ubuntu to install to the hard-drive. Even then, you can dual-boot so that you can keep your stuff and get to use both Operating Systems.

Hope that clarifies!


How can I install ansys, nastran or any designing software?

You can use wine to run windows applications in ubuntu. But ansys and fem softwares take so much processing and wine cant handle that, wine even lags with autocad(3D). Its better you run them in windows. Use can dual boot between ubuntu and windwos.


There is a difference: tee duplicates the output: it sends it both to the file and to the display.

But there is more:

For example, if you want to write some string into two files at once, the command with tee you can use is:

 echo "some text" | tee file1 > file2

Another thing tee can help you is to avoid one problem when using sudo. The normal output redirection operator is always executed with your user privileges, also when you write a sudo in front of the command which generates the STDOUT text. In other words, this will fail if you dont have the permission to write to that file:

 sudo echo "something" > bar

But with tee, everything will go well:

echo "something" | sudo tee bar

2 examples from this site. It has some more.


Chrome on Linux will not work with Java, as NPAPI support was dropped in Chrome 35.0. As such, you will need to use Firefox.

It seems like you do not have the Java browser plugin installed. You can install Java JDK 8 and the browser plugin from the Web Upd8 Java PPA. Open the terminal and enter these commands in, line by line:

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

After that, you will have to add your WebEx domain to the Java plugin's Exception Site List. To do this, open "Oracle Java 8 Plugin Control Panel" and click "Edit Site List" under the Security tab:

After that, click "Add" and enter the domain that your WebEx meeting has: (I'm using the WebEx test meeting as an example here)

After you're done, click OK and OK to exit and save changes. Open Firefox and browse to your WebEx meeting link. When you're prompted to allow Java to run ("Activate Java"), click either "Allow Now" or "Allow and Remember", depending on your preference.

At this point, the Java loading screen will show, and a security warning should pop up soon. Check "I accept the risk and want to run this application", and click Run:

A progress bar will show up and the WebEx meeting center will show up soon too, if everything has been successful.


Temporary failure resolving 'mirrors.aliyun.com' error after set static ip in /etc/netplan/0...yaml

Netplan is quite specific about spacing and indentation. As well, your yaml file omits the renderer. I suggest that you edit your file to:
network:
  version: 2
  renderer: networkd
  ethernets:
    ens33:
      addresses:
        - 192.168.134.127/24
      gateway4: 192.168.134.1
      nameservers:
        addresses: [192.168.134.1, 8.8.8.8, 1.1.1.1]

Source: /usr/share/doc/netplan/examples/static.yaml
Follow with:
sudo netplan generate
sudo netplan apply

Did you connect? Test:
ping -c3 8.8.8.8
ping -c3 www.ubuntu.com


Remove xscreensaver using

apt autoremove

This should fix it.

(As per OP's comment)


Yes you can remove Ubuntu-SDK without re-installing Ubuntu. Once it is removed, you can also remove all library files associated with it.

Run following commands in series:

$ sudo apt-get autoremove ubuntu-sdk
$ sudo apt-get --purge remove ubuntu-sdk
$ sudo apt-get autoclean
$ sudo apt-get autoremove
$ sudo apt-get -f install

Above commands will remove Ubuntu-SDK from your system. If you get any error after any command, just edit your question and paste the result. Reply for further assistance.


Netbeans 8.0.2 freezing at startup on Ubuntu 15.10 64bit

To make it work with OpenJDK 8, edit /etc/java-8-openjdk/accessibility.properties and comment out the following line

assistive_technologies=org.GNOME.Accessibility.AtkWrapper

as suggested here: https://bugs.launchpad.net/ubuntu/+source/openjdk-8/+bug/1510009.


That worked for me:

$ scp -r full/path/to/the/folder root@my.server.ip:/root

excerpt from man page:

Note that scp follows symbolic links encountered in
             the tree traversal.


How (if at all) can I recover lost gnome settings after unclean shutdown?

After some research, I found that the "errors on disk" part meant that fsck was run and the fact that it fixed "something" essentially meant that some data on disk became corrupt.

I checked lost+found folder - and indeed, it contained some of the data I was missing. Most of it, however, is gone forever.


Hamachi version 2.1.0.174 doesn't work because it's not compatible with the newer glibc version 2.26, which is included in Ubuntu 17.10. The hamachi daemon will crash the moment you try to login with the following error:

hamachid: relocation error: hamachid: symbol __res_maybe_init, version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference

See this forum post for more details

I'm affraid the only way to solve this is to wait or push for LogMeIn to release a new Hamachi version that is compatible with glibc 2.26.

UPDATE 18th January 2018:
LogMeIn has released Hamachi for Linux beta version 2.1.0.189. This version is compatible with glibc 2.26 and can now be downloaded from https://www.vpn.net/linux


maybe there's a typo in your list file or the key is invalid or have been changed, you can check it with:

cd /etc/apt/sources.list.d
gedit mono-official-stable.list # read only

if you have the right key or find the typo try:

sudo gedit mono-official-stable.list

edit, remove or comment the line 4


Integrity Check after an update fail in Xubuntu

Well, the fact that you can already boot is a good sign. I went once through a botched LTS upgrade and the system wouldn't boot; I clearly stumbled onto an update bug, but managed to find a workaround and in the end it worked.

In your place I would (to make sure that all packages are up-to-date):

sudo apt-get update
sudo apt-get upgrade

Then I would check which distribution the system is running (see upgrade from lucid to precise):

lsb_release -a

If all checks out, and the system boots, I wouldn't worry too much about it.


Try

sudo chown robert:robert /home/robert/.config/google-chrome -R

If failed remove /home/robert/.config/google-chrome and allow it to create new configuration.
 I hope you have backup of your bookmarks.

sudo rm -R /home/robert/.config/google-chrome

relaunch google chrome.


Home folder encrypted, hacker has physical access - safe to ssh to it?

I am just guessing but I would say no because first the hacker has to get passed the os security like your password on you computer and to do that they would need to eather know the password or atempt to crack the password to do that I would say they would need to shut the computer down and load a os from a usb so if they know the password it dosnt matter and you would not be able to ssh if they loaded a os from usb.

As for you reading your files while you are using ssh and reading files, based on this the home folder is never fully decrypted and the decypted data is never stored on the hard drive only in the RAM, a hacker might be able to get something from the ram but it would not be your whole home folder and I think to do it they would need to shut your computer down (this is what i am referring to) to do it and I dont think it would be to easy to read a raw memory dump.

so I dont think I would be to worred if they have access to your computer then there are probably easyer ways of getting the information stored on the hard drive.

Update

With the whole hard drive being decrypted when you login over ssh if the hacker could get passed os security then by loging in you would be giving the hacker access to your files.


Is it safe to resize home and root partition

Resizing usually works, and although rare, problems can occur. Back up your data first and you probably need to resize in steps (resize / -> apply changes -> resize /home -> apply changes).


How to change niceness of process by name

If you have only one java instance running, simply:

renice -n 5 -p $(pgrep ^java$)

$(pgrep ^java$): command substitution; bash replaces this with the output of pgrep ^java$; pgrep ^java$ returns the list of PIDs of the processes whose name matches the regular expression ^java$, which matches all processes whose name is exactly java

If you have multiple java instances running:

for p in $(pgrep ^java$); do renice -n 5 -p $p; done

for p in $(pgrep ^java$); do renice -n 5 -p $p; done: almost the same as above; $(pgrep ^java$) is a command substitution; bash replaces this with the output of pgrep ^java$; pgrep ^java$ returns the list of PIDs of the processes whose name matches the regular expression ^java$, which matches all processes whose name is exactly java; this is expanded into the for loop, which assigns a new line of the output of pgrep ^java$ to the variable $p and runs renice -n 5 -p $p at each iteration until the output of pgrep ^java$ is consumed


Is it possible to hide unity's panel on a second monitor?

If you mean the top panel: no, that's not possible. The launcher bar on the left side should only be on the primary monitor and hide wrt. to your launcher hide settings in the CompizConfig Setting Manager (ccsm).


How to install `gstreamer0.1-ffmpeg` on ubuntu (17.10) artful?

gstreamer1.0-libav supports mp4 and video/x-h264 in Ubuntu 17.10 and later. To install it open the terminal and type:

sudo apt install gstreamer1.0-libav


Docky can't open apps which are added by "pin to dock"

I had a similar problem with some java application. You can try to drop some applications' shortcut from /usr/share/applications to your dock. (If some applications are not in this folder you just need to create a new .desktop file).


Ubuntu 18.04 is consuming battery like crazy

It is most probably caused by your GPU, your OS is probably using your Nvidia card to do all the work.

I suggest you update to the latest drivers for your cards, as well as using Nvidia's proprietary driver if you have no problem with that.

Probably the easiest way you can go about fixing that is to try the prime indicator extension for GNOME, and set the default card to your Intel card. You might also wanna install dim on battery power for a little more kick.

P.S., check for your battery health as well. You can check for this by comparing energy levels, what you get and what your battery is designed to give you.


If you want to combine two videos safely, you need to change the video codec and audio codec of input files into the same codecs.

For example, using xvid (video codec) and mp3lame (audio codec):

sudo apt-get install mencoder libxvidcore4 libmp3lame0

you can encode the input videos by the below commands:

mencoder -ovc xvid -oac mp3lame -xvidencopts bitrate=1000 first.avi -o video1.avi
mencoder -ovc xvid -oac mp3lame -xvidencopts bitrate=1000 second.avi -o video2.avi

To be matched your videos, you can change the options "bitrate" etc. (and also the codecs).

If the encoded video names are "video1.avi" and "video2.avi", and the output video name is "joined-video.avi",

mencoder -ovc copy -oac mp3lame video1.avi video2.avi -o joined-video.avi

Using this command, you can make the joined video file.


if you are just doing an apt-get update, apt-get upgrade, you can do this

sudo crontab -e
1 0 * * * apt-get update;apt-get -y upgrade
6 58 * * * pkill -9 apt-get


Installing lo-menubar package for Libreoffice 3.4rc

See the Global menu support section here:

http://linuxforums.org.uk/ubuntu/upgrading-libreoffice-to-3-4-1-in-ubuntu-11-04/

or download lo-menubar as a LibreOffice extension from here:

https://bugs.freedesktop.org/attachment.cgi?id=47502

and just double-click it to install.


Cannot format 500GB USB HD: cannot create partition table

It's possible your partition tables have become corrupted this can happen for many reasons but I have a possible solution that may help anyone who comes across a USB device where disk utilities or gparted throws you errors when trying to format or partition a faulty USB device.

I've pulled my hair out trying to sort out numerous USB devices that I have corrupted with Ubuntu 12.04.

Ok let's get started.

Plug in your faulty USB device and start up disk utility you can find it by typing disk utility in the Dash home icon very top left left coroner of the Unity Dash board.

Once it's open look on the left hand side and locate your faulty USB device click on it and a page will open, on the right hand side of the screen you should see Device: then what should look like /dev/sdb or maybe /dev/sdb1 depends on what your screen says.

Open up the terminal by pressing Ctrl+Alt+T now type: sudo fdisk /dev/sdb where you see /dev/sdb after /dev/ this is where you type what you saw on the disk utility screen so if it said /dev/sdb1 on the disk utility screen then the command would be sudo fdisk /dev/sdb1

STOP After typing sudo fdisk /dev/sdb if the terminal gives you the following fdisk: unable to open /dev/sdb: No medium found" Your device is BRICKED, the following commands won't help you in Ubuntu! STOP

Now enter the following commands:

type n and hit Enter
type p and hit Enter
type 1 and hit Enter

Now it will ask you where to start the sector/cylinder just hit enter then it will ask you where to end, again just hit enter where going to let it use the default fields.

Next:

type w and hit Enter

You should now see:

  The partition table has been altered!

If you see this were in business!

Now you should be out of fdisk and back at your home terminal. Now type:
sudo mkfs -t ext3 /dev/sdb or like I said above if in disk utility it said something else then the command would end with /dev/? Whatever disk utility said the device name was.

Ok now exit the "terminal" by typing exit then hit enter. Go back to disk utility and eject the device if it doesn't allow you make sure gparted is not running or any other program that might be interacting with the USB device like the "terminal".

Once the USB device is safely ejected plug the device back in and look at the disk utility program again and open the device once it registers now go to format volume and try to format the volume to FAT with whatever volume name you like. If all goes according to plan the device will format to FAT and you will now be able to control the USB device normally.

So now you should be able to reformat and control the USB to whatever format you like.

For those that are wondering why at sudo mkfs -t ext3 /dev/sdb I didn't just make the device fat instead of ext3 for some reason in Ubuntu after I tried fat instead of ext3 I wasn't able to control the device in disk utilities the same way as the method I described maybe a bug I'm not sure but all my USB devices are now free from errors.

Hope this helps someone.


How to create a file or folder and the same time write it to the .sh file

Echo will print whatever you've given it in quotes, literally. So

echo 'wc filename.txt > ./folder/newfilename.txt' >>ToThefilename.sh

Should append this text to the end of ToThefilename.sh

  wc filename.txt > ./folder/newfilename.txt

If you want to write the output of wc filaname.txt to "ToThefilename.sh" you'd just do wc filename.txt >>ToThefilename.sh So if I do wc examples.desktop > foo.txt then foo.txt will contain the results of that command:

amanda@mona:~$ cat foo.txt
 240  569 8980 examples.desktop

if you just want to keep a log of things you've done to or with filename.txt you can do history | grep filename.txt > ToThefilename.sh

If that isn't what you're trying to accomplish, please clarify your question! To do something more complex, you're probably going to need to write a shell script that takes the input and does a few different things with it.


No Network Manager icon in the notification area, so I can't use my VPN connection

I fixed it!

The solution was to remove eth0 from /etc/network/interfaces - it ended up there because I installed this system over the network rather than using a CD.  I logged out and went to a console window, and did the following:

sudo stop gdm
sudo stop network-manager
sudo ifdown eth0
sudoedit /etc/network/interfaces # comment out eth0 entry
sudo start network-manager
sudo start gdm

I then logged back in, and the icon was present! Rar!


Trying to import a friend's public OpenPGP key - but nothing happening and I cannot see the key

Importing keys

The key you want to import is a normal public OpenPGP key, nothing special, so there should not be any problems.

I guess you ran into two different issues.

Using the Seahorse GUI

For importing a key, you did everything right. But by default, Seahorse only shows your own keys (i.e. those, for which you have the private key). Click "View" and "Show any" to see the public key.
Using the command line

sudo gpg --import <file will import into root's GnuPG keyring, which is probably not want to you want to achieve. Import to your user's keyring instead by omitting sudo:

gpg --import key.txt

Afterwards, it should be visible running

gpg --list-keys

Very likely you already imported it successfully, anyway.

Private and Public Keys

Another issue you have seems to be the understanding of public/private key cryptography. With the key listed above, you will not be able to decrypt mail, you need the private key to decrypt a message. Public keys can only be used to encrypt messages to others (and verify the other's signatures), but not decrypting messages encrypted using that public key.

If you want to exchange messages with a friend using OpenPGP (or public/private key cryptography in general, eg. using S/MIME), each of you should generate his own key pair. Now exchange the public keys. If you want to send a message to your friend, use his public key to encrypt the message, now he will be able to decrypt it using his private key. The same applies the other way round.


Ubuntu 13.10 fails to suspend on closing laptop lid

Suspend or hibernate problems on any OS it's generated from bad drivers. See what differences is between power settings on battery and on AC and try to make, one by one, the battery settings to be like AC settings and when you see that your laptop it's ok than look what was the last modification and change for that device the driver. If you can't find a better driver for that device your only option remain to downgrade to 13.04. I hope that was usefull.


WinFF (FFMPEG): Unknown encoder 'libvo_aacenc'

I confirm with vinay, but you must modify a command line to this:

sudo apt-get install libavcodec-extra

P.S. Edited command.


Strange behavior on Gnome after update on from 13.04 to 13.10

gnome-session-fallback is a transitional package, which causes gnome-system-flashback to be installed.  It actually is installed, but the bash suggestion tool doesn't know about the change, so it keeps suggesting that you install it.

As to your actual problem, there are several related questions posted here on AU, but none of them have a real solution (as of 10/22/2013):

Ubuntu 13.10 VNC server not working
Does gnome-fallback.desktop require accelerated graphics in 13.10?


By reading the bug description, we can see that the Ubuntu dev team has released a proposed update of Nautilus for 18.04. (https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/1767817)

If you want to test it, you should enable the 'proposed updates' source in software-properties-gtk app, at developer tab.

Tested with Cosmic (18.10), it works but Nautilus gets quite unstable.


How to remove the rounded menu items from a theme?

I've performed the following grep on the theme directory:

grep -R "border-radius: [0-9]\+px [0-9]\+px 0 0;" /usr/share/themes/Ambiance/gtk-3.0

It basically searches for "border-radius" followed by any top-left and top-right value.

The result is:

/usr/share/themes/Ambiance/gtk-3.0/apps/nautilus.css:    border-radius: 3px 3px 0 0;
/usr/share/themes/Ambiance/gtk-3.0/gtk-widgets.css:    border-radius: 4px 4px 0 0;

Inside gtk-widgets.css I can see a property called .menubar.menuitem which seems what you are looking for. Simply set all border-radius values to 0 (px is not needed for value 0).

You can also search for:

grep -R "border-radius" /usr/share/themes/Ambiance/gtk-3.0

Which gives you all occurrences of border-radius simplifying your task of flattening the whole theme.


Why does "man x-terminal-emulator" return the output of "man gnome-terminal"?

x-terminal-emulator is a virtual package. The terminal emulator is configured by Debian's alternative system.

On Ubuntu you can easily follow this symlink construction, e.g. for gnome-terminal:

$ which x-terminal-emulator
/usr/bin/x-terminal-emulator
$ ls -lF /usr/bin/x-terminal-emulator
/usr/bin/x-terminal-emulator -> /etc/alternatives/x-terminal-emulator*
$ ls -al /etc/alternatives/x-terminal-emulator
/etc/alternatives/x-terminal-emulator -> /usr/bin/gnome-terminal.wrapper*

Now regarding the man pages, update-alternatives also links the man page of gnome-terminal to x-terminal-emulator as explained in the update-alternatives manual:

   It is often useful for a number of alternatives to be synchronized,  so
   that they are changed as a group; for example, when several versions of
   the  vi(1)  editor  are  installed,  the   man   page   referenced   by
   /usr/share/man/man1/vi.1 should correspond to the executable referenced
   by /usr/bin/vi.  update-alternatives handles this by  means  of  master
   and  slave links; when the master is changed, any associated slaves are
   changed too.  A master link and its associated slaves make  up  a  link
   group.

Source


Trouble getting rename working with regex groups

The rename installed wasn't the Perl version. Once I switched issues resolved


Rename file which uses the first 2 letters of every word

You can do this using a single rename command (i.e. you don't need a bash script for this, or you can use this command within your bash script in place of the for loop):

rename -n 's/(^| )([^ ]{1,2})[^ ]*/$2/g; s/$/.mp4/' *.mp4

This will just mimic the behavior of echo mv [...], so that you can see the result without actually renaming anything.

If the result is the expected one, then run:

rename 's/(^| )([^ ]{1,2})[^ ]*/$2/g; s/$/.mp4/' *.mp4

Command breakdown:

rename: renames multiple files using PCREs
*.mp4: renames only files with extension .mp4

Regex #1 breakdown:

s: performs a substitution
/: starts the regex
(: starts grouping the allowed strings
^: matches the start of the line
|: separates the second allowed string
: matches a  character
): stops grouping the allowed strings
(: starts the second capturing group
[^ ]{1,2}: matches from 1 to 2 occurrences of any character not
): stops the second capturing group
[^ ]*: matches any number of characters not
/: stops the regex / starts the replacement
$2: replaces with the second capturing group
/: stops the replacement
g: replaces all the pattern occurences in the line

Regex #2 breakdown:

s: performs a substitution
/: starts the regex
$: matches the end of the line
/: stops the regex / starts the replacement
.mp4: adds a .mp4 string
/: stops the replacement


How to access ext4 type partition in Ubuntu?

Did you run as root ? If the partition was not writable, probably the device is mounted as read-only, or you don't have permission to write.


gettting this error when i try to run eclipse in ubuntu please help

The problem that you are having is your JDK installed version.  Version 9 isn't totally compatible with a number of Java applications.  Most applications that are optimized for Version 9 have downward compatibility to at leave version 8.

You can resolve this installation issue by installing Java version 8 (which is the default version for Ubuntu 16.04 LTS and 17.X.

Install the default Java JDK version with this command:

$ sudo apt install default-jdk

Then switch to the version 8 default with this command:'

 $ sudo update-alternatives --config java

Now your Eclipse installation should proceed without problems.  You'll also be able to run the installed without problems.

From time to time if you want to test the compatibility of the version 9, you can use the update-alternatives --config java command above to switch between versions.

Note:

For your information, once installed Eclipse will work with Java version 9.  The problem with the version is a glitch in the installer.  So it may not matter much which version you enable once you have installed the Eclipse IDE.


Ubuntu does not repond to mouse clicks and freezes

Fixed it by adding ' nomodeset ' in grub when booting,
Installed Ubuntu and Nvidia drivers,
Rebooted

Works properly now.


In order to have a separate home partition, set the mountpoint off the HDD as /home when you format it in the Ubuntu Setup.


If the offending tool is lame enough to call /bin/sh directly, instead of respecting your system setup by using /usr/bin/env sh, your options are very limited. I originally thought you'd be able to basically do what virtual environments do for Python, but after attempting to write a script that did so I couldn't get around the direct call to /bin/sh via any $PATH magic.

Before calling the tool, re-symlink sh to bash, then undo your change after the call to the tool.
Better yet, change your assumption that you can't edit the tool. What's the tool? If it's open source, which it seems like it is given you have some knowledge of how it works, fork it, change it to use /usr/bin/env sh and submit a pull request. Huzzah for open source contributions!

If the offending tool isn't actually calling /bin/sh directly, as your recent comment may indicate, the following should work.

#!/usr/bin/env sh
BASH_VENV_HOME=$HOME/.bash_venv

if [ ! -d $BASH_VENV_HOME ]; then
    mkdir $BASH_VENV_HOME
fi

# Make an `sh` binary in the front of your path that points to bash
if [ ! -e $BASH_VENV_HOME/sh ]; then
    ln -s /bin/bash $BASH_VENV_HOME/sh
fi
orig_path=$PATH
PATH=$BASH_VENV_HOME:$PATH

# Call your tool

# Reset path
PATH=orig_path

The tool, should it execute sh, will then find the one in the front of your path, which is a symlink to bash.


How to install multiple themes all at the same time in Ubuntu 16.04?

To install multiple themes
make a folder .themes in your home directory
copy all theme folders to this directory

mkdir ~/.themes

Then open Unity Tweak Tool and select themes and you will see all the themes there

Similarly same for installing fonts and icon themes too

mkdir ~/.fonts

and copy all the fonts

mkdir ~/.icons

and copy all the icon themes

warning:
icon themes should be in .icons

If the themes are of .deb files just do the following steps
make new folder

mkdir newfolder

you can give any name you like but make sure that it contains only your theme files
next change directory to that new folder

cd 'your folder path'

next run the flllowing script,be sure you are in the new directory you have created and it contains only .deb theme files

for theme in *;do sudo dpkg -i $theme;done

Here dpkg means debian package


Why the pipe command "l | grep "1" " get the wrong result?

First of all, what you're trying to do , l| grep <filename> is bad. Don't do it. Here's why.

l command is really an alias to ls -CF

$ type -a l
l is aliased to `ls -CF'

By default in Ubuntu's bash , ls is an alias to ls --color=auto. As steeldriver pointed out in the comments --color=auto is supposed to turn off colorization. In your specific case , you have alias ls="ls -alh --color" and alias l="ls -CF" , which basically ends up being ls -alh --color -CF. This particular combination of switches still sends colorized output over a pipe. For example:

$ ls -alh --color -CF ~/TESTDIR | cat -A
^[[0m^[[01;34m.^[[0m/  ^[[01;34m..^[[0m/  1.txt  2.txt  3.txt  out.txt$

Notice how the . and .. directories have same escape sequences.

What does this all mean

This means that l will output colorized list of files according to file type. Problem is that colorization happens with the use of escape sequences. That's what 1:34m things are - they're escape sequence for specific colors.

The main problem is that parsing ls often leads to wrong output and disasters in scripts, simply because ls allows escape sequences like explained earlier and other special characters. See this article for more info: http://mywiki.wooledge.org/ParsingLs

What you should be doing:

Use find command  :

bash-4.3$ ls
1.txt  2.txt  3.txt  out.txt
bash-4.3$ find . -maxdepth 1 -iname "*1*"
./1.txt

You could do something like this with shell glob and modern test [[ command:

bash-4.3$ for file in * ;do if [[ "$file" =~ "1"  ]] ;then echo "$file" ;fi ; done
1.txt

Or maybe use python, which has far better filename handling capabilities than bash alone

bash-4.3$ python -c 'import os;print [f for f in os.listdir(".") if "1" in f ]'
['1.txt']

If there's no need to process the output of ls , simple globbing with ls can do the work, too. ( Remember, this is only for viewing list of files, not for passing it to another program to deal with the output text)

bash-4.3$ ls *1*
1.txt


How to set the default program to open a certain file type in a certain folder?

You need a desktop file, and a wrapper script:

The desktop file

Create a desktop file

nano ~/.local/share/applications/jpeg-wrapper.desktop

Add the configuration below (change the property for Name)

[Desktop Entry]
Name=Special or Standard
Comment=Open a JPEG depending of the path
Exec=/home/user/bin/jpeg-wrapper %f
Icon=
Terminal=false
Type=Application
Categories=Editor;
StartupNotify=true
MimeType=image/jpeg;

Replace user in Exec=/home/user/bin/jpeg-wrapper %f with your username, the output of

echo $USER

Replace the icon name in Icon= with a name or path of your choice
Use MimeType=image/jpeg to specify the mime types of files for which the decision is to apply. Separate multiple mime types via ;

Get the mime type via

mimetype your_file

e.g. for a text file

text/plain

The wrapper script

Create a new script

mkdir -p ~/bin
nano ~/bin/jpeg-wrapper

Add the code below

  #!/usr/bin/env bash
image_path=$(dirname "$1")
my_special_path="$HOME/tmp"
open_with_special="gimp"
open_with_standard="eog"

if [[ $(mimetype -b "$1") == "image/jpeg" ]] && [[ "$image_path" == "$my_special_path"* ]]; then
        "$open_with_special" "$1"
else
        "$open_with_standard" "$1"
fi

Change my_special_path to your artwork folder. All subfolders are also considered.
Change open_with_special to your special application (e.g. gimp)
Make your wrapper script executable

chmod +x ~/bin/jpeg-wrapper

Restart Unity/GNOME Shell, for the GNOME Shell e.g. Alt-F2, type r and Enter
Associate one or more file types with the desktop file

Open your file manager and right click on a file for which the decision is to apply
Click Properties
Activate the tab Open With
Select the entry Special or Standard
Click Set as default

Enjoy ;)

Script checked here.


Password not working for sudo ("Authentication failure")

I had this problem when I was using a special keyboard layout (Bépo). The terminal was not recognizing the special characters. Maybe this is your problem too ?

How to change the keyboard-layout in the console, with special characters?


Is it safe to place symlinks in /bin directory ?

It isn't recommended to mess with /bin and with /usr/bin even though this will work it is somewhat unsafe. Also, you don't need to place your symlinks there.

I've had the same problem like you mentioned. It's cumbersome to navigate to your scripts and call them like ./myscript each and every time. Here is what I did.

Define your own bin-directory

You can create your own bin-directory and put your scripts there. Create it with

mkdir ~/bin

Now you will need to tamper with the PATH environment variable. This is a sensitive area. If you mess up the PATH variable you won't be able to execute commands with relative paths anymore. If that happens ls might not work any more /bin/ls will still do.

What I'm going to show right now will only affect the current running terminal session. So if anything goes wrong you simply log out with Ctrl+D and everything is like it was before.

echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
export PATH=$PATH:~/bin
echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games:/home/madmike/bin

The echo-command shows what's in $PATH before and after. export allows you to change the environment variable. Your additional bin-directory is appended to the end of the variable. This means your commands have the least priority should there be more than one command with the same name. This is good, since you don't want to override essential system commands.

To make the changes permanent, edit your ~/.bashrc file.

nano ~/.bashrc

add export PATH=$PATH:~/bin to the end of that file.

Now every new terminal-session will have the $PATH variable expanded with your directory.


I've tried your code (copy paste into a terminal) and it produced a different result from what you posted:

for i in {1..3};
do
    echo "Iteration $i"
done
#---OUTPUT BELOW---
Iteration 1
Iteration 2
Iteration 3

Im using Linux Mint 12 Lisa (derived from Ubuntu) with bash version 4.2.10(1)-release


Connection to PPTP server drops continually

In my case, the cause was that the mtu size of the vpn, was bigger than the path to the host, so you can use traceroute to discover the lower mtu in the path to the host.
the command is:
traceroute <host> --mtu

In my case the lower MTU was 1280, so I used 1200 to make the vpn in the router configuration.


How do I create a WiFi hotspot sharing wireless internet connection (single adapter)?

Simple steps:
Create wifi hotspot in ubuntu

Disable Wifi (Uncheck Enable Wi-Fi)
Go to network connection (Edit Connections...)
Click "Add"
Choose "Wi-Fi" and click "Create"
Type in Connection name like "wifi-hotspot"
Type in SSID as you wish
Choose Device MAC Address from the dropdown (wlan0)
Wifi Security select "WPA & WPA2 Personal" and set a password.
Go to IPv4 Settings tab, from Method drop-down box select Shared to other computers.
Then save and close.
Open Terminal (Ctrl+Alt+T) and type in the following command with your connection name used in step 5.

sudo gedit /etc/NetworkManager/system-connections/wifi-hotspot

Find mode=infrastructure and change it to mode=ap
Now check the network section where wi-fi will be connected to the created hotspot automatically. If you can not find it, go to Connect to Hidden Network... Find the connection and connect to it.

Source: http://ubuntuhandbook.org/index.php/2014/09/3-ways-create-wifi-hotspot-ubuntu/


Speech recognition for regional language

Sure, you can train a model for your language with CMUSphinx

http://cmusphinx.sourceforge.net

For details see the tutorial

http://cmusphinx.sourceforge.net/wiki/tutorialam

CMUSphinx is available in Ubuntu repository but it is recommended to install latest version from github

http://github.com/cmusphinx


How do I avoid having to unlock twice when using xtrlock?

On Ubuntu-Gnome you can disable the password request on Settings/Brightness, by removing the flag from "Lock" and/or from "Lock the screen after resuming from suspend"...try and check if there's something similar on Unity!


Give this command a try:

cp -ar /source/dir/. /destination/dir/

The -a option is an improved recursive option, it preserves all file attributes, and also preserve symlinks.

the r in -ar is an option to copy files/directories recursively, it is required for copying folders within the folder where your files are located.

The . at end of the source path is cp syntax that allows you to copy all files and folders, included hidden ones.

Since the -a option preserves file attributes, you will need to use sudo to view them or or run this command. (change user and group names)

sudo chown -r user:group /directory/of/file/backups

The above command will make you the owner of the backed up files.


did you visit the scarygliders?!

Try it, it's a very nice website

OK, Finally I am ready to provide you my script

check this link on gitHub and download the folder

I have uploaded all needed packages for installing x11rdp and xrdp together

I have pre-answered all dialogs and choose Ubuntu-2D for Interface and for All Users

What You have to do is to only execute the setup.sh script via sudo sh setup.sh

*Uploaded on GitHub, and changed the link


Having trouble installing any form of Ubuntu onto my fresh AMD build. Via USB

When using Lili, let Lili download the appropriate image for Ubuntu and then post any errors you encounter. Maybe someone can help you from there.


Disable all Gnome Notifications (Gnome 3.20.4)

Install dconf-editor, run it, and go to

org.gnome.desktop.notifications

here is a large string there that has all the applications that will receive the gnome notification. If the app has its own notifications you can enable them in the app and disable the system notification.

I had to go into /usr/share/gnome-shell/js/ui/components/autrunManager.js and comment out the following line:

Main.messageTray.add(this);

For me it was on line 546, but who knows how it scoots around in other versions of gnome (cause it's constantly changing).

If the above methods do not work the try this out. but don't delete the line as suggested in answer just comment (#) it.


chromium 89 dumps core: how to revert to 87?

I experienced the same issue. I think chromium stopped working because it now requires SSE3. I uninstalled the app and downloaded the previous version packages chromium-browser and chromium ffmpeg extra from Ubuntu website and ok now. I used binary build from below.
https://launchpad.net/~canonical-chromium-builds/+archive/ubuntu/stage/+build/20310560


The virtual machine lives inside a large file. So depending from your goals it might be sufficient to encrypt this file.

You can use TrueCrypt. This software is available as a portable app and can be used with all major operating systems. So first prepare Virtualbox and install Ubuntu. Now encrypt the virtualbox file with TrueCrypt.

When you insert your USB stick in another computer, you can decrypt the file with TrueCrypt. When this finishes successful, you can boot your Ubuntu.


Whether it is a lot or not totally depends on the size of your boot partition. Each kernel takes about 25Mb of space in /boot, and you have 8 of them, so if your /boot is around 200Mb then everything can be explained easily.


Pixma TS6052 scan error only with 1200 DPI

I recommend installing gscan2pdf.  And add the ppa for sane stable. https://launchpad.net/~rolfbensch/+archive/ubuntu/sane-git?field.series_filter=focal
And install the sane-backends.  If gscan2pdf can't do it then report back.


Keyboard and touchpad not working during 2016 12" MacBook install

Yes!

There is definitely hope. There has been a a patch submitted to the Linux Kernel Mailing list

it's unclear if it will make it into the 5.1 Kernel cycle of if we have to wait longer.

Until then use can install using an external USB keyboard and then follow the instructions on the github repo you linked to get the keyboard working


How should I uninstall/remove Adobe Flash Player in Ubuntu?

In case you installed it using Apt, run this to find the package name:

dpkg --get-selections | grep -v deinstall | grep flash | awk '{ print $1 }'

Then you can uninstall the package by

sudo apt-get purge package-name

In case you copied the plugin so to Firefox plugins, simply delete it from there.


I would recommend you using tor browser bundle since it automatically configures proxy settings for you...So above you should specify the application name and local address ..and socks5 uses 127.0.0.1 9050


First, ensure your script begins with the correct hash-bang, e.g. #!/bin/bash

Then make sure the .sh file is executable -

Open a terminal using Ctrl+Alt+T or from the applications menu
Navigate to the location of the .sh file. e.g. cd ~/location/to/my/file
Run

chmod u+x <file name>.sh, or
if permission is an issue, sudo chmod u+x <file name>.sh and enter your password to confirm

Alternatively, you can right-click the .sh file from the file browser and update permissions via the Properties option

To make .sh files executable from nautilus(file browser) follow these steps:
Referring - How to execute a script just by double clicking like .EXE files in Windows?

Install dconf-editor because it isn't installed by default.
Hit Alt+F2, type dconf-editor and hit Enter.
In dconf-editor goto: org ➤ gnome ➤ nautilus ➤ preferences
Click on executable-text-activation and from drop down menu and  select:

launch: to launch scripts as programs, OR
ask: to ask what to do via a dialog.

Close dconf-editor.

(Source: How do I run executable scripts in Nautilus? Answer courtesy of Basharat Sial)


If you can not create files/folders as root then their is normally 2 things I would check. First I would check there is space on the disk.

df -h

The other to check is that the file system is not read only, you can check this using the mount command, if you do not understand the output then paste it here.

mount

after the open bracket '(' on each line it should show 'rw' to mean read/write.

note: as a system administrator I would advise against anyone running as root, there is no need for it. I would also set PermitRootLogin No in */etc/ssh/sshd_config*. It is better to run as a normal user and then use sudo command or sudo -s if you need to perform any actions as the super user.


This article in commandline.ninja about /bin/false, /sbin/nologin and SSH seems to answer your question.

Executive Summary

A hacker can bypass the protection of using /bin/false as the shell for that user using port forwarding via the ssh command like:

[user@panel~] ssh -N testacct@linuxserver.cconn.info -L 2525:127.0.0.1:25

Temp fixes

Disable port forwarding

  The simplest and most drastic, if possible in your scenario, is to
  simply disable TCP port forwarding in your sshd configuration file
  (/etc/ssh/sshd_config on many systems):

AllowAgentForwarding no
AllowTcpForwarding no
X11Forwarding no

Block user account/password

Edit /etc/shadow and set the user’s password to be *
Confirm that no SSH key for this user exists in your system.

Shadow password
having * as the encrypted password in /etc/shadow means that the account is locked, the user will be unable to log-in via password authentication but other methods (e.g. SSH key) may be still allowed.

More info can be found at commandline.ninja about /bin/false, /sbin/nologin and SSH.


Go to System Settings -> Details -> Removable Media

and disable there Shotwell as a media handler program.

You can disable starting programs in all cases like I did.


How do I install legacy drivers for an HD4250 on 12.04?

ati Hd 2xxx-4xxx series not supported in 12.10 with 12.9 catalyst so check this link how to install it

http://www.ubuntuvibes.com/2012/10/how-to-install-amd-catalyst-legacy.html


Desktop wallpaper goes Black when Nautilus is opened in xfce

I had installed mint-artwork-cinnamon package from mint repos. I removed it and then everything works fine again.


Hybrid Cloud Automation using Ubuntu JUJU

Juju GUI (source: lp:juju-gui; live demo) allows you to deploy services in a Juju environment through a web browser. It's a free software with AGPL v3 license, so you can probably fork it and modify it as needed, if it doesn't quite fit your needs. To use it, you'll need to deploy it in your environment and expose it. See the deployment instructions.

If that is not suitable for your purpose, you can use the Juju websocket and HTTPS-based API directly (that's what the GUI does from JavaScript). The documentation about that is not quite polished and it's most autogenerated from the Go sources. There is some concise developer documentation in juju-core source.

Yet another choice for automated/scripted (not web-based) deployments with Juju is the Python-based Juju Deployer.

The concept of role-based permissions and multiple user accounts is not yet supported by Juju, but it's planed. So, Juju can't directly help with user account management for your customers, except perhaps if you write custom charms that provide that.

Juju API works over a websocket with JSON-encoded requests/responses. It's designed to be language-independent. There are presently clients for it in Go, JavaScript and Python, but alas not as standalone libraries, but as parts of other products (juju-core, GUI and Deployer, respectively).

Lastly, each Juju environment is specific to a single cloud provider. So in order to choose where to deploy a service, you'll need to generate the configuration for the chosen public cloud in environments.yaml, then bootstrap it (per customer), and finally deploy the service(s). An interesting idea is the manual provisioning, which allow you to add any existing machine to an environment, as long as you can connect to it using SSH and the machine can connect back to the state server node (and the other machines as well, if you'll be adding relations to it).

So you see, even though Juju can help you with the deployments and orchestration, a fair amount of "glue" has to be custom-built around it to enable such type of hosted solution you're aiming to provide to end-users.


This should remove them:

sudo apt-get remove --purge burg burg-common burg-emu burg-pc burg-themes burg-themes-common


boot stuck on "load/save rf kill switch status"

If you are installing dual-boot so you have to install first Ubuntu and then other OS.
and if you are installing only Ubuntu so first format the disk and then make memory partitions allocate boot-files memory then install Ubuntu.


how can I manually build usb multiboot drive without multiboot manager like yumi

Pendrivelinux.com has instructions for building a grub2 Multiboot from scratch:

http://www.pendrivelinux.com/boot-multiple-iso-from-usb-via-grub2-using-linux/

I prefer the script from MultiBootUSB, again this uses grub2:

SourceForge.net

Github.com

their homepage

Ubuntu forums thread


I am not able to compile a simple program using gcc

The options for gcc is '-m32' or '-m64' to generate code for a 32-bit or 64-bit environment. Not '--64'


Geeting issue with installing php5-dev libssh2-1-dev libssh2-php

The DigitalOcean guide you're following is deprecated and not updated for the proper versions of Ubuntu nowadays.  It says this in their guide at the top.  It was written for Ubuntu 12.04

However, in 16.04, PHP5 does not exist, as it uses PHP7 now.  Also, libssh2-php is renamed to php-ssh2.

Install php-dev (which installs the PHP 7 dev libraries) and php-ssh2:

sudo apt-get install php-dev php-ssh2

This should install the 16.04-equivalent packages that you're looking for.


How to delete program installed with .bundle?

VMware comes with a shell script named as .bundle. With this script all applications bundled with VMware will be installed. Unless a package manager is called from this script (which isn't) it will be done without the help of a package manager. Therefore our package managers can not help uninstalling the software.

However the installer that comes with VMware (vmware-installer) should have an option to uninstall components:

vmware-installer -h

To display all options you have with this program. Whether this will work, and if really all packages can be removed by this I don't know.

An example of how to remove the vmware-player is given at the Ubuntu Community Wiki:

sudo vmware-installer -u vmware-player

Also given there is a long list of things to do for a manual uninstall in case this fails.


Did you resize the filesystem? I don't think command line partitioning tools do this step automatically.

To resize a the filesystem to fill the partition:

resize2fs /dev/YOUR_DEVICE


This can happen when the clock on the node is too far out of sync for the OAuth verification to work, which results in the node timing out when trying to download from the metadata service and eventually continues booting to a login prompt without finishing the commissioning script.

Try checking the clock on the node and reset it if it's very different from the MAAS server's clock.

Another problem can be /etc/maas/maas_local_settings.py having the wrong DEFAULT_MAAS_URL.


When I use sudo pip to install software I get the message "the directory... is not owned by the current user"

When you run sudo your environment is passed along while the effective user switches to root. Your environment includes that your ~/ or home directory (the value of the environment variable HOME) is /home/bijay.

pip looks for an http cache before downloading packages. Probably for a combination of security, sanity and privacy reasons pip disables the cache so as not to write to a cache directory not owned by the current user. It's just telling you that it did that.

As it hints, using sudo -H would set the HOME environment variable before executing the command passed to sudo, using root's home directory /root as $HOME instead of your user's. The cache could then be written in /root/.cache/pip/http with no errors.

As a sidenote, you probably shouldn't be running pip as root anyway.


Unity Tweak Tools missing schema in 14.04

I removed a package I don't remember and this problem occurred to me too. To reinstall this webapp I tried this:

sudo apt-get install unity-webapps-common

and it resolved the issue.


Bad contrast with simple-scan and Canon TR4550

Finally, I created a defect on sane-project backend GitLab : it appears it is not a bug, the TR4550 scanner does not expose contrast. Simple-scan does not provide a software layer to do this work.
Workaround to the issue :
Use the xsane software which allows you to do this work.


As stated in one comment to this answer:

  What you need to make sure, that all system you are using are using same setting. Either local time or UTC time. Windows by default uses local time. So if you tweak Ubuntu to local, both systems are in sync and problem should be gone.


Machine Learning. Ubuntu 16.04 vs 14.04?

Use whichever release that works best for the hardware.

The release that works well with your hardware would be the most relevant choice, given that machine learning tools are capable of running on CUDA-enabled graphic processing unit (GPU). Both Keras and Caffe seems to have been tested running on some hardware models.

When your hardware support is good, then only look at how to install the packages. Apparently, which release to use does not really matter according to the documentation for Keras and Caffe.

From documentation for Keras:

  Keras is compatible with: Python 2.7-3.5.

  You can install Keras from PyPI (easiest method):

sudo pip install keras

From documentation for Caffe:

  Caffe has several dependencies:

  CUDA is required for GPU mode.

  library version 7+ and the latest driver version are recommended, but 6.* is fine too
  5.5, and 5.0 are compatible but considered legacy

  BLAS via ATLAS, MKL, or OpenBLAS.

  Boost >= 1.55
  protobuf, glog, gflags, hdf5

The instruction to install Caffe varies by Ubuntu releases.

For Ubuntu (>= 17.04)

  CPU-only version:

sudo apt install caffe-cpu

  CUDA-version:

sudo apt install caffe-cuda

Installation seems to be easy on newer releases of Ubuntu. On the other hand, packages must be installed separately on releases older than 17.04 (ouch).

Note that I have merely quoted relevant information from the documentation for Keras and Caffe; I have no experience for using these tools.

One thing for sure: Most users wouldn't want to deal with trivial issues i.e. unable to use Wi-Fi connection, screen tearing, etc. even before attempting to install the desired packages. Hence my suggestion to use whichever release that works best for the hardware. That comes first.


Creating a bootable dvd disk with Windows

Ubuntu comes along with an ISO Burner. I don't know the English name of the program, but the icon of it is an Ubuntu logo and an arrow pointing at a disc drive
If you have a Win7 ISO, you can burn it using this program. If not, you need to download the one you need (I hope you got a valid license). Here are the links to various Win7 versions in German and English (German site, sorry)


How to notify a package maintainer about upstream updates?

Try the command apt show fence-agents, which will output some information about the package. For example on 16.04 this returns (emphasis mine):

Package: fence-agents
Version: 4.0.22-2
Priority: optional
Section: universe/admin
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Debian HA Maintainers <debian-ha-maintainers@lists.alioth.debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 592 kB
Depends: perl, python:any, libc6 (>= 2.15), python-pycurl, python-pexpect
Recommends: libnet-telnet-perl, openssh-client, sg3-utils, snmp
Suggests: python-requests, python-suds
Conflicts: cman (<= 3.0.12-2ubuntu4)
Replaces: cman (<= 3.0.12-2ubuntu4)
Homepage: https://fedorahosted.org/cluster/wiki/HomePage
Download-Size: 169 kB
APT-Sources: http://ftp.uni-stuttgart.de/ubuntu xenial/universe amd64 Packages
Description: Fence Agents for Red Hat Cluster
 Red Hat Fence Agents is a collection of scripts to handle remote
 power management for several devices.  They allow failed or
 unreachable nodes to be forcibly restarted and removed from the
 cluster.

You see that this package metadata contains names and email addresses of the Maintainer for Ubuntu and the Original-Maintainer, as well as a link for reporting Bugs (in this case the generic Launchpad link) as well as a specific project Homepage. This information should be a good start to get in contact with the responsible people or teams.


Ubuntu Server 18.04.1 guest on Ubuntu Server 18.04.1 host, KVM

I'd recommend taking a look at uvtool which in my experience works much better than virt-builder.

Actually given it is no more 2016 I'd even more recommend taking a look at the more modern and even cross platform solution of multipass.

Both tools will give you a CLI interface to spawn guests based on Ubuntu cloud images. This works much better than virt-install style deployments as "installing" in the classic meaning is neither required nor useful in a world deploying workloads in a "cloud style".

For further customization - if needed - both provide means to provide cloud-init user data.


Does "dd" command without parameter or input/output redirection do anything?

The dd command by default will copy stdin to stdout. You either have to end it with Ctrl+D or kill it with Ctrl+C.

So, it would not have made any harm, unless you have redirected its input or output.

See http://manpages.ubuntu.com/manpages/latest/en/man1/dd.1.html for more information.


There was a bug in the old cron, for explanation see this launchpad entry.


You could try Kino. In this link they mention your same problem.
TL;DR: Go to view -> FX -> Filter -> Titler. Then you could use:

#timecode#

#dv.timecode#

#dv.datetime#


Set difference of packages installed on 2 machines

Get the list of all packages for each machine as text files:

$ ssh server-a dpkg --get-selections | grep '\binstall$' | cut -f 1 > server-a.txt
$ ssh server-b dpkg --get-selections | grep '\binstall$' | cut -f 1 > server-b.txt

Use shell "set operations" to generate the desired results:

$ comm -12 <(sort server-a.txt) <(sort server-b.txt) > both.txt
$ comm -23 <(sort server-a.txt) <(sort server-b.txt) > only-server-a.txt
$ comm -13 <(sort server-a.txt) <(sort server-b.txt) > only-server-b.txt

Review how many packages are in each set:

$ wc -l *.txt
  2238 both.txt
   948 only-server-a.txt
    89 only-server-b.txt
  3186 server-a.txt
  2327 server-b.txt
  8788 total


Not on the Debian and Ubuntu repositories but you can try this one out from Github davidgu/thesaurus-cli.

Installation instructions and usage are on the repository link.


What's the location of a personal 'gtkrc' file in Ubuntu 12.04?

What I do is open a terminal and use this command:

sudo update-alternatives --config x-cursor-theme

You should get a list of numbered cursor themes, simply choose the number of the theme you want to use, hit enter, then log off and log back on.


There is a whole collection of printer handling/configuration tools provided by HP, installed with apt-get install hplip-gui.

The command to directly open a dialog to add an USB printer is hp-setup. It can also be used in text mode with the -i option, if you like to use it over ssh or so.

Run
hp-check
and
hp-doctor
for automatic diagnostics.
You can access many of the other tools for
hp-toolbox for others.


The answer to both my problems is found in the question:
In the Software Updater, go to the first pinta maintainer line, click remove. All of the above problems go away.


After editing .bashrc commands return 'command could not be located because '/bin' is not included in the PATH'

It looks like your PATH variable got messed up.

If this ever happens to you, and you are running a /bin/sh (or variant such as /bin/bash)....enter the following on the command line:

 export PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin

Then you will be able to easily use the base UNIX commands without having to prefix them with /....blah..../command while you are fixing the problem.


Ubuntu 13.10 boots into blank screen after grub

you must boot your Ubuntu from a live cd or a live USB stick and choose the option Try Ubuntu.
open a terminal and type( or just copy paste) this following command

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

hit ENTER

then type this command also

sudo apt-get install -y boot-repair && boot-repair

after installing boot repair choose recommended repair.

then reboot your computer and all must work  like charm.


Why compressed directories cannot be extracted in /opt?

You can specify in which directory you want the files extracted using the -C option. Change your command to:

sudo tar -xvzf ~/Downloads/file.tar.gz -C /opt/


Combining two laptops to increase memory

If you mean you want to run the computers as a computer cluster, so that you can use the processors and RAM as one computer, I think you'll want to use the TORQUE program ... I've never used it, but I'm pretty sure that's what it's for.


Worth installing Ubuntu on 15" Powerbook G4?

I have 12.04 installed on a PowerBook G4 and it works great. I have >1GB RAM and I even updated the hard drive to SSD and the machine is zippy! Much happier now with Ubuntu than OSX.

Before you proceed with the install, I recommend you check out the "Known Issues" in my second link below. Although the install was relatively straight forward, there are some hiccups, and you will have to be patient (and willing to do some googling / askubuntu-ing) if you run into problems

Installation tips

You need to use the PowerPC (PPC) version of Ubuntu here: http://cdimage.ubuntu.com/releases/12.04/release/ubuntu-12.04-alternate-powerpc.iso
Some additional info, including help with installation:
https://wiki.ubuntu.com/PowerPC
Things will go most smoothly if you use a CD to install, and are connected to internet via Ethernet cable.


How can I get wine to work on my amd64 computer?

Its really just a case of sudo apt-get install wine honest.


Battery charging in Ubuntu ridiculously slow

I had the same problem. Sometimes my battery not charging or charging slowly.
To solve the problem,
I changed ADVANTAGE CHARGE BATTERY CONFIGURATION on Enabled (Bios).


PS4 controller is not recognised by Steam - 18.04

To get my steam controller working in 18.04 I had to install steam-devices.

sudo apt install steam-devices

This may solve your problem.


Ubuntu SSH Server freezes client after password over internet

Sounds like port 22 is blocked. Depending on where you are running your server from there are several options. The first is accessing your router and unblocking port 22. You could also try running ssh from port 80.

ssh -p 80 myserver.net

btw, what kind of address are you using to access your server? If you are using an IP address make sure you are not using the local network IP (They usually start with 192.)


Why does destroy-service also destroys the machine?

I'm new to juju but what I do to prevent this is by deploying an ubuntu charm on that machine and then deploying the service on it.
So, first assign a tag in MAAS UI to that node and deploy ubuntu charm

$ juju deploy ubuntu --constraints tags=<tag that you set>

A new node will be up with ubuntu charm. Now deploy the service that you want.

$ juju deploy <your charm url> --to <newly added machine id>

P.S setting a tag to node is optional.


You will only be able to burn a cd at a speed as low as 4x if the media supports it; if not, programs will not be able to give you the option, but they will present to you the lowest speed that the disk is rated for (usually 10x or 16x today).

People have tried to force command-line programs such as cdrecord and wodim (a fork of cdrecord) to record at a lower speed, but have not succeeded as these discussions and these at the Ubuntu forums show.

It is also unnecessary to burn an iso at such a low speed as 4x; the websites that tell you to do this contain outdated information. It is likely your problem lies in the software you are using rather than the speed of the burn. You mention active iso burner and free iso burner and yet those are both Windows programs; are you trying to do it in Wine or Windows? If you are actually using Ubuntu (and I'll continue my answer for the benefit of the Ubuntu users), I should use the command-line to burn the iso correctly. Install wodim with

sudo apt-get install wodim

Then place your media in the drive and find out about the speeds supported with

wodim -prcap dev=/dev/sr1

Which will give something like this:

Number of supported write speeds: 5
  Write speed # 0:  8467 kB/s CLV/PCAV (CD  48x, DVD  6x)
  Write speed # 1:  7056 kB/s CLV/PCAV (CD  40x, DVD  5x)
  Write speed # 2:  5645 kB/s CLV/PCAV (CD  32x, DVD  4x)
  Write speed # 3:  4234 kB/s CLV/PCAV (CD  24x, DVD  3x)
  Write speed # 4:  2822 kB/s CLV/PCAV (CD  16x, DVD  2x)

The lowest here is 16x, which is write speed 4, so with this knowledge you can enter the following and burn an iso (subsituting your drive device name):

wodim -eject -tao speed=4 dev=/dev/sr1 -v -data /my/iso/location.iso

Occasionally the speed setting is not honoured on some drives by wodim, so if not, just choose the lowest speed in a gui burner program such as k3b or Xfburn.


Try to restore your .bashrc
Start xterm shell Alt + F2 the type command xterm -e sh

Then Type the commands:

cp /etc/skel/.bashrc ~/
source .bashrc


Virtualbox installation dependency failure on Ubuntu 18

Try downloading it off there website here;
https://www.virtualbox.org/wiki/Linux_Downloads

Then click Ubuntu 18.04 / 18.10 / Debian 10

Run the file that downloads. The one on the Ubuntu Software center did not work for me to. But that one did


Big size difference between apt-get install and binary file of apache Maven

You are conflating three things:

the size of Maven itself
the size of Maven + all its dependencies, like Java
the size of the compressed packages (vs its actual size).

The size of the Maven package is only about 1.3 MB because of compression (see apt-cache show maven | grep -i size). The total size of the packages you are installing is 139 MB (compressed, which is what you'll download) - 229 MB after unpacking. This includes the OpenJDK 6 JDK.

Since you have already installed Oracle JDK, it might be best for you to manually install Maven, instead of using apt, since you'll have to download the OpenJDK version as well if you use apt.

If you want to be fair, add the size of the Oracle JDK (around 135 MB) to that 7 MB, which should tell you it's around the same size as well.


How do you open pgp-encrypted documents from nautilus?

The seahorse-plugins package that provides the nautilus integration that you're talking about has been removed from 11.10. There is a bug report here:
https://bugs.launchpad.net/debian/+source/seahorse-plugins/+bug/796752/ To summarise: it seems related to the Gnome 3 upgrade, since the last seahorse-plugins package appears to be for Gnome 2.30.


How to avoid error "Value too large for defined data type"?

You could use mount -t ubifs -o ro /dev/ubi0_0 /mnt/ubifs to mount read only, so you don't have to change permissions any more.


How do I schedule a Python script to run in a Linux VM?

You have a couple of syntax errors there. First, if you want to run myScript.py with python3.7 which is in /usr/bin, then you need:

/usr/bin/python3.7 myScript.py

Next, you need to give the full path to the script. So if the script is in your home directory, use (change /home/marcelo/ to your actual home directory):

02 19 * * * /usr/bin/python3.7 /home/marcelo/myScript.py

And no, you don't need nohup or anything else. This won't be connected to your ssh session in any way.

Finally, it is more common to use shebangs for this sort of thing. Just add this line as the first line of your script:

#!/usr/bin/python3.7

Then, make it executable (chmod +x /home/marcelo/myScript.py) and you can run your script directly:

02 19 * * * /home/marcelo/myScript.py


Create a hamachi like NAT based VPN tool

OpenVPN is the server and client side program that does the communication, and there are a number of GUI tools for configuring OpenVPN to do pretty much everything that Hamachi2 does:

Here's a good list:

cclint@ubuntu:~$ apt-cache search openvpn configuration
collectd-core - statistics collection and monitoring daemon (core system)
gadmin-openvpn-client - GTK+ configuration tool for openvpn (client)
gadmin-openvpn-client-dbg - GTK+ configuration tool for openvpn (debug for client)
gadmin-openvpn-server - GTK+ configuration tool for openvpn (server)
gadmin-openvpn-server-dbg - GTK+ configuration tool for openvpn (debug for server)
openvpn-auth-ldap - OpenVPN LDAP authentication module
tunneldigger - Configures OpenVPN tunnel networks

I don't use any of them, but they all should be safe to try out for sure.


VLC Crashes when attempting to open any video (Ubuntu 18.04 with Unity)

Hooray! I just solved it. I had to go to VLC Preferences, Video, switch to Xvideo (XCB) output, and then also go to Input/Decoder, switch to VDPAU Decoder..
And voila, it worked! Phew. Hope this info helps others.


Use remastersys.

http://www.remastersys.com/ubuntu.html

Please read the instruction carefully.

In Firefox, go to :

http://www.remastersys.com/ubuntu/remastersys.gpg.key.

save file as text someplace where you can find it.
In synaptic, go to Settings/Repositories; select Authentication tab and Import Key File just downloaded.
Still in synaptic, go to Other Software tab and click Add, then enter the apt
line

deb http://www.remastersys.com/ubuntu oneiric main
After adding it, a new apt line will automatically added ended with Source. You need to uncheck it
Leave the repositories tab and "Reload".
Search for remastersys and select for install.  Edit/Apply Marked Changes.


Laptop keyboard not working after boot (Ubuntu 18.04)

My chromebook was using SeaBIOS as a BIOS in RW_LEGACY. I just recently learned that I could install SeaBIOS in Full ROM (so I did) and now my keyboard works perfectly. I hope that I could help someone in the future :)


Why two partition deleted while I chose one (fdisk)?

That is because /dev/sda5 is your only logical partition inside /dev/sda2, which is a extended partition. So by removing your extended partition, your logical partition will be removed as well.


Unwanted automatic connection to hotspot

You should be able to delete the MyHotspot from Edit Connections. However, you can also disable the autoconnect by editing the MyHotspot profile, and unchecking the "Automatically connect to this network when it is available".


You can use xbindkeys to override certain keys on your keyboard. You can catch them with  bindkeys, and then emit new keypresses using xmacro

see the following howto

It could be also a Compiz Setting. check if you have installed Compiz
Enter the following in your command-line, this should do the job

bindkey '^[[5D' emacs-backward-word
bindkey '^[[5C' emacs-forward-word


How to check data usage of a USB datacard on Ubuntu?

Use vnstat

sudo apt-get install vnstat

Then first check which Interfaces are available through

vnstat --iflist

Available interfaces: lo eth0 , the eth0 for Wired connection, yours will be different (wlan0 i guess)

Then run

vnstat

It will be something like this

 eth0 since 05/23/12

          rx:  20.66 GiB      tx:  5.35 GiB      total:  26.01 GiB

   monthly
                     rx      |     tx      |    total    |   avg. rate
     ------------------------+-------------+-------------+---------------
       Jun '12      9.18 GiB |    2.28 GiB |   11.47 GiB |   37.11 kbit/s
       Jul '12      6.35 GiB |    1.48 GiB |    7.83 GiB |   47.50 kbit/s
     ------------------------+-------------+-------------+---------------
     estimated     12.30 GiB |    2.87 GiB |   15.16 GiB |

   daily
                     rx      |     tx      |    total    |   avg. rate
     ------------------------+-------------+-------------+---------------
     yesterday    241.20 MiB |  122.44 MiB |  363.64 MiB |   34.48 kbit/s
         today        81 KiB |      54 KiB |     135 KiB |    3.22 kbit/s
     ------------------------+-------------+-------------+---------------
     estimated        --     |      --     |      --     |

You can use vnstat accordingly ,

 vnstat -s   << -s for short output mode

                      rx      /      tx      /     total    /   estimated
 eth0:
       Jun '12      9.18 GiB  /    2.28 GiB  /   11.47 GiB
       Jul '12      6.35 GiB  /    1.48 GiB  /    7.83 GiB  /   15.17 GiB
     yesterday    241.20 MiB  /  122.44 MiB  /  363.64 MiB
         today        35 KiB  /      14 KiB  /      49 KiB  /      --

Similarly vnstat -d for daily basis record ,vnstat -h for hourly basis and you can refer other usage through the Vnstat Manpage .

Another Web Browser based utility  is NTOP


after 11.10 update and compiz install, desktop vanished - only functional keys are ctrl-alt-del

I suggest you disabled the unity plugin. This sometimes happen. Now do the following:

Restart your computer (if necessary, by cutting the power off)
On the login screen, select "Ubuntu 2D"
Open Compiz
Reactivate the Unity plugin
Restart your computer
On the login screen, select "Ubuntu"

This should solve your Problem. If not, leave a comment.


You can install Android Studio on Ubuntu which is installed on a Chromebook, but you don't need to install a separate Java package because Android Studio contains its own embedded JDK. You will get disappointing performance if your Chromebook does not meet the following system requirements.
System Requirements

GNOME or KDE desktop
64-bit distribution capable of running 32-bit applications
GNU C Library (glibc) 2.19 or later
2 GB of available disk space minimum, 4 GB recommended (500 MB for IDE + 1.5 GB for Android SDK and emulator system image)
1280 x 800 minimum screen resolution

     3 GB RAM minimum, 8 GB RAM recommended; plus 1 GB for the Android Emulator
To change various settings for your Android Studio project, open the Project Structure dialog by clicking File -> Project Structure. It contains the SDK Location which sets the location of the JDK that your project uses.


build gimp separate-plus: undefined reference to symbol 'pow@@GLIBC_2.2.5'

I just ran into this issue.  I thought it was out of order libraries but it looks like I just needed to include the math library.  Edit the Makefile like so:

among the library listings (pkgconfig stuff) add a line for math lib like:
M_LIB = -lm

comment old library listing and add new one like:
LIBS = $(M_LIB) $(GIMP_LIB) $(GTK_LIB) $(LCMS_LIB) $(TIFF_LIB) $(JPEG_LIB)

The linker should now stop complaining.  Be sure and set your PREFIX to something local if installing to your home dir, as po/Makefile will try to install locale files under /usr otherwise.
Hope that helps.


If you are looking for command, it is this:

sudo pm-suspend


How to use fingerprint reader and card reader on my laptop running on ubuntu 13.10?

Make sure you have one of the supported finger scanners. You can check if your device is supported by checking this list of supported devices. To check which one you have, type

lsusb

I have Dell Vostro 3450 with:

Bus 001 Device 003: ID 138a:0011 Validity Sensors, Inc. VFS5011 Fingerprint Reader

By the way for Dell i found this link, you could try it:

Driver for VFS5011 Fingerprint Reader on Dell Vostro 3550


STAR_sellist_com.ca-bundle  file is a chain bundle. In Nginx, you have to convert the chain bundle and .crt file into one file for this run command.

cat STAR_sellist_com.ca-bundle STAR_sellist_com.crt > STAR_sellist_com.chained.crt

after that change virtual host syntax

ssl_certificate     /etc/ssl/nginx/STAR_sellist_com.chained.crt;
ssl_certificate_key /etc/ssl/nginx/private.key;

I hope it helps.


They could try to brute-force your password, you might want to set it up so accounts are locked out after too many failed attempts. You didn't ask how,  but if you're interested you can read more here https://web.archive.org/web/20190831173642/http://blog.bodhizazen.com/linux/ubuntu-how-to-faillog/
Edit : including steps as requested
Open /etc/pam.d/common-auth and add the line AT THE TOP OF THE FILE:
auth required pam_tally.so per_user magic_root onerr=fail

To set the number of attempts allowed & timeout
faillog -m 3 -l 3600

Where 3 is the number of attempts allowed and 3600 seconds (1 hour) is how long to lock out the account for.
You can omit the -l part and the account will be locked out forever, however I would really not recommend that since your hard drive is encrypted. It would make your files very difficult to recover if you locked yourself out. If you choose to omit the lockout time, I would at least increase the number of attempts, because it's not that difficult to enter your password wrong 3 times.


Program launches only as root but not normally

Just give a recursive write permission to .matlab directory,

sudo chmod -R 776 /home/uname/.matlab

Incase of directories, 776 -> drwxrwxrw-

Incase of files,         776 -> -rwxrwxrw-


Cluster size conflict while making a Bootable USB Stick

Rufus developer here. Unless you know what you're doing, you should just go with the default.

The default cluster size is dependent of the size of your USB drive, which is why drives of different sizes don't always have the same default (e.g. it may be 4096 for some drives, 8192for others, etc.)

I have yet to see a single report, from the millions and millions of people who have ever used Rufus, indicating that using one cluster size compared to another could prevent a drive from booting. The only thing it may change (slightly) is how fast individual files can be read or written, but it certainly does not need to be set to a specific value for the drive to boot. Thus, unless you know what you are doing, just use the proposed default, even if it doesn't match the screenshots you see, and don't worry about it.


mandatory is just the root partition( / ); however, many like to have a seperate /home partition so they can do clean installs without losing data in /home.
The most common installations use a /swap partition, though a swapfile can be used instead. If you will use hibernate, 8GB swap is a common recommendation for 4GB RAM. If you won't hibernate less will work.

A good partitioning scheme would be:
  / 20GB
  /swap 8GB
  /home 40GB
the remaining space can be divided into data, backup, and other partitions as you desire.

If you are completely removing windows, I would recommend copying the data from the windows data partition to a linux partition since NTFS error correcting support is weak in linux.

Data partition can be auto mounted or manually mounted as needed.  An automount data partition can be setup when installing. You just have to manually define a mount point for it.


The software center is pretty good at finding available packages. See below:

As you can see, there are several related packages that come up. Performous being the top hit.  I believe the others are aimed toward creation of karaoke effects.You can install and try any or all of these to determine which of these (or combination thereof) best fits your requirements.


I've done something similar to establish an Ethernet connection for a Raspberry Pi (and an Xbox 360, which is more similar to your situation, I suppose).

I've got a script on Github here which will do the job: https://github.com/le1ca/rpi-router/blob/master/rpi-router.sh

There are a few things you need to know in advance for this script to work:

The name of your ethernet interface (obtain this using ifconfig).
The name of your WiFi interface (same deal).
A static subnet for your ethernet network (this is something you can set up using the instructions on the answer you already linked to).

My script sets up NAT (which is kind of like what your WiFi router does to "hide" your local network from the public Internet) so it will behave slightly differently from a true bridged connection. Sometimes this is necessary, if you are on a very picky WiFi network for example.

To get everything working, just do the initial setup for the static IPs, set the configuration in the first few lines of the script, then run it like sudo rpi-router.sh.


Trouble with computer finding DVD or USB drive to boot from on windows xp system

You can't just burn the .iso file to the media.  You have to prepare it to make it bootable.  Directions are here for USB and here for DVD.


Appalling browser performance despite fast 3G connection

I would continue debugging by trying a different connection with the same machine. Find some other internet source, and see if you get similarly terrible results.

If you find the same performance with another connection, then the issue is with the computer, and the list of potential causes is over 9000


sudo apt update Error 403 Forbidden [IP: 213.180.204.183 80]

I connected to another wi-fi and successfully updated system and installed putty. I don't know what was wrong.


Mouse cursor freaks out when Xbox 360 controller connected

Fixed. I Removed xserver-xorg-input-joystick and used jstest to correct a mis-mapped axis.


XFCE - How to change padding between the menu items?

Download and read about improved Adwaita theme here :
http://www.webupd8.org/2011/04/adwaita-improved-reduced-padding-for.html


Hopefully you found an answer in the last 6 months, but in case anyone is still running into this problem, here are some options:

Update Node + NPM

If you installed Node.js through the official 12.04 repositories (which looks like the case, from this line: node -v v0.6.17), your Node version is badly out of date by now.

Back in late February, shortly before this question was posted, npm stopped supporting self-signed certificates. As a result, lots of people working on Node projects ran into similar issues.  The fix? Update npm.

For instructions on upgrading, see this question on AskUbuntu.  Personally, I recommend managing Node versions using NVM, but you can also get the latest version via PPA.

Living behind a proxy

It's also possible to run into issues like these if you're trying to access the npm repository from behind a proxy (e.g. at a corporate office).  While this is less likely to be your issue, it can be solved by the following (taken from here):

npm config set proxy http://proxy.company.com:8080
npm config set https-proxy http://proxy.company.com:8080

You can also set a proxy for a single npm install command by running:

npm --https-proxy=http://proxy.company.com install express -g

Don't disable SSL checks

It's true that you can suppress the error by setting npm's strict-ssl setting to false. Disabling security warnings is a bad idea.


The default syntax highlighting colours are defined in /usr/share/geany/filedefs/filetypes.common in the section named

[named_styles]

You can edit/remove one or more but while some are intuitive as colors like

comment=0xd00000

there are some that are a bit weird, like

selection=0x000000;0xc0c0c0;false;true

and I have no idea what they really mean. So it's a case of trial and error, but you can get to a simple white on black theme eventually by removing them.

If you just wanted to disable syntax highlighting for certain file types, there is a mechanism which allows you to overwrite the themes for each file type, but it's tedious. The individual file type configuration files are in the same directory.

But for your purpose, you just want to hack the [named_styles] section in the common conf file which will nuke syntax highlighting in all file types.

EDIT: The other method suggested to you, i.e. removing the file extension from Menu->tools->configuration files->filetype_extensions.conf will have the effect of removing all functionality the ide provides for those file types, while the method I suggested directly affects only the syntax highlighting. But it's up to you which method you adopt, depending on your ultimate goal is.


tail: inotify cannot be used, reverting to polling: Too many open files

This was solved for me by following the instructions on http://peter-butkovic.blogspot.com/2013/08/tail-inotify-resources-exhausted.html

Permanent solution (preserved across restarts)
Adding line:

fs.inotify.max_user_watches=1048576

to:

/etc/sysctl.conf

fixed the limit value permanently (even between restarts).

then do a

sysctl -p


Touchscreen and digitizer not working on Sony Vaio Duo 11

I have filled a bug report about touchscreen. It is at  https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-evdev/+bug/1121379 . Please press the "affects me too" button in order to increase the "heat" and make more people/developers notice it. I can help with more tests or trying fixes. So if you have to propose something to test (e.g. install a newer kernel or X version, apply some patch, tryout some config), please tell me.


How do I get full permission to my files?

@Avinash Raj
is useful but ,
I think what user meant
without realizing it
is how to run a script ./script
you need to change the mode and
get the permission you can
achieve that with

chmod +x script_name.extension

which makes the script executable and let you run it !

or you can right click the file go to properties and then
permissions and check the executable checkbox

and then back to terminal to actually run it .

after if you double click it you get options to open in text editor or run in terminal etc..


Okay, so here is the solution:

step make sure that flash-player is installed, if it's not than here's the code:

sudo apt-get install flashplugin-installer
Download an older release of Adobe flash player!

Archive of Older versions

Extract the archive and search the libflashplayer.so file! If you found that, than gksu nautilus (if you are using Lubuntu: gksu pcmanfm)

Go to the /usr/lib/flashplugin-installer/ Folder and replace the libflashplayer.so

Now you are able to use the Flashplayer in any browser! (I used the 10.x.x version of Flash player)

Don't forget to lock the Version in Synaptic Software Center!


Ubuntu 14.04 QtCreator Qt5 examples missing

To get the Qt5.2 examples available in Qt Creator/Ubuntu SDK, you basically need two extra packages, open a Terminal with Ctrl+Alt+t an type:

sudo apt-get install qtbase5-examples qtbase5-doc-html

Restart Qt Creator to get:


Ok, I realized that I press the enter key at the initial bootup screen.  When I press F6, it shows me not only a menu but also a boot commandline.

By appending the word "persistent" at the end of the line and going on to "Try Ubuntu," I'm immediately directed to the desktop environment. I browse the web, change some settings, and prepare to test persistence.

I restart again, press F6 - essentially repeat the same process - and I'm directed to the persistence session.


Installing firefox as a package vs a snap

I wonder if it's a better choice to have firefox run in a sandboxed environment?

It would be better, but as you discovered it also makes integrating with the system more difficult. Snap can handle the complexity, but many snaps are not properly configured with the right access privileges. Sometimes they are too strict and you get a more difficult program to use. Sometimes they are too broad resulting in little security benefit at all.

  Am I more vulnerable to potential viruses if I run it in non-sandboxed environment?

Let's assume that Firefox had a bug today that allowed visiting any website to launch a program and install a virus. Without any sandboxing such a program would run as your locally privileged user and unless you entered your administrative password it would be unable to do anything as root, drastically limiting what it can do. However, it would be able to open your files and potentially steal your data or encrypt it and hold it hostage like randomsware does. It would also be capable of writing scripts that execute every time you login as your user allowing it to install monitoring tools like a keylogger or screen recording.

With sandboxing it would maintain the inability to become root but would also be very limited in what files it could read and write from your system. It very likely would be unable to read your important files such as SSH keys or personal documents or anything outside of your "Downloads" directory most likely. This would also drastically reduce it's ability to install a keylogger or screen recording software that would run every time you login as the same user.


Why does CPU usage remain at 100% after running Mathematica 9?

Your CPU might have overheated more than the fan/heatsink could cool it. Ubuntu would then have clocked down the CPU to keep it from burning out. It would then have only been clocked 'back up' once it cooled down again.

You could check to see if the fan/heatsink are not blocked by dust that would cause the cooling to be ineffective and clean the inside every few months from dust.


How can I change the purple background color of the lock screen on Ubuntu 17.10?

From these steps here, you can change both the image and the background colour:

Move your favorite image to /usr/share/backgrounds:

It's better to move the image you want to set as login background to system pictures folder: /usr/share/backgrounds.
To do so, open terminal via Ctrl+Alt+T, then either run command:

sudo cp /PATH/TO/IMAGE /usr/share/backgrounds/

Edit the css file that define GDM login background:

Open terminal (Ctrl+Alt+T) and run command to edit file /etc/alternatives/gdm3.css, which is linked to /usr/share/gnome-shell/theme/gdm3.css:

# Make backup first before editing
sudo cp /etc/alternatives/gdm3.css /etc/alternatives/gdm3.css.bakup
sudo nano /etc/alternatives/gdm3.css

When the file opens, go to menu (right after ‘Save’ button) -> find and find out following section:

#lockDialogGroup {
  background: #2c001e url(resource:///org/gnome/shell/theme/noise-texture.png);
  background-repeat: repeat; }

change the lines into:

#lockDialogGroup {
   background: #000000 url(file:///usr/share/backgrounds/Aardvark_Wallpaper_Grey_4096x2304.png);
   background-repeat: no-repeat;
   background-size: cover;
   background-position: center; }

Replace Aardvark_Wallpaper_Grey_4096x2304.png with your picture file name, and or change the hex colour code ##2c001e to the color of your choice.Here I used black.

Lockscreen background:

Note: Backup all files before changing them


Become root with sudo.

sudo mount <options> <device path> <mount location>