This themes can be downloaded from universe repositories for Ubuntu 14.04.

Open Terminal and Type Following Commands:

sudo apt-get update
sudo apt-get install ubuntu-mobile-icons
sudo apt-get install suru-icon-theme

You can set it from unity-tweak-tool (can be downloaded by apt-get install unity-tweak-tool)

To set themes by terminal, type following commands with your theme name:

gsettings set org.gnome.desktop.interface gtk-theme "theme-name"
gsettings set org.gnome.desktop.interface icon-theme "theme-name"
gsettings set org.gnome.desktop.wm.preferences theme "theme-name"


Shell doesn't run python ONLY when executed by crontab

Answer: crontab may have different program paths than your command line.

As it so happens, in our system the 'mutt' (email) program was stored in /usr/bin/ and this path was known by whatever mechanism runs crontab and so it was successfully able to send emails. However, many programs I wanted to run in this shell, including python3, were located in a different directory: /usr/local/bin/. Programs in this local folder were not known by crontab (indeed, even running which python3 from within a shell scheduled by crontab would return nothing). This is despite both mutt and python3 working when I run a shell from my command line.

The solution is to run the programs of interest (in my case python3) from their absolute paths:

cd ./pod_reports/script/
whereareyou=`pwd`
OUT=`/usr/local/bin/python3 dummy.py`
cd ..
filename=$(ls *.pdf -1t | head -1)
strt="echo Did we get python? "
mailmutt="| mutt -s 'Subject Line' -a $filename -- me@email.com"
stmt="$strt$whereareyou$OUT$mailmutt"
echo $stmt
eval $stmt


Dual Boot Ubuntu/Windows on two separate hard drives

Generally, to make dual-boot work out of the box, one needs to install windows first and then Ubuntu. Ubuntu's bootloader - GRUB2 then autodetects Windows and creates entry in the GRUB bootlist.

If you did the other way round, that is installed Ubuntu and then Windows, then you would need to repair the GRUB to be able to boot into both OSs.

Now coming on to the next part, since you installed the OS on different HDDs altogether, you need to set the HDD with the GRUB bootloader as the first device to boot from in the BIOS.

If you have any issues figuring out the above, you may leave a comment and i will improve the answer.


Can I make new nautilus create tabs, instead of making new windows?

It is possible to use middle-click to open tabs. It can't be made default yet.


How to make dm-crypt ask for password only once?

Possibly my answer here will help i.e.

rather than duplicate the answer I have added a link.

https://askubuntu.com/a/213398/14356


While this would be rather tedious now that almost every command gets logged in your history, you can edit your ~/.bash_history file.


Terminator does not add to dock icon when opened via Ctrl+Alt+T

Delete the file: /usr/share/applications/gnome-terminal.desktop

Modify the "NoDisplay=false" in file: /usr/share/applications/org.gnome.Terminal.desktop


Is the iPod nano (5th generation) compatible with Ubuntu?

It works, though the experience is a little different than with iTunes.

https://help.ubuntu.com/community/PortableDevices/iPod

This site lists the applications that will allow you to copy music to and manager the music on your iPod.

Specifically, iPod up to 5g are supported through libgpod. iPod nano 6g is not supported and is reportedly difficult to support with anything other than iTunes.

If you don't have ubuntu yet, feel free to download and try it on a USB stick or on a LiveCD so you can see what it's like.


Why would logwatch (with cron) on stop e-mailing me daily reports?

The issue for me ended up being that cron had stopped working and thus even though logwatch was still running it was not emailing me a daily report. I simply restarted cron ( sudo service cron restart ) and it began working working again.


Awk to get all my regular users in shadow

You need to escape the $, as it is a special char for "End of Line" much like ^ is "Beginning of Line".

sudo getent shadow | awk -F: '$2 ~ /^\$/ || $2 ~  /^!\$/ {print $1}'


I suggest that you enable ufw, the default firewall.

sudo ufw enable

Now enable logging:

sudo ufw logging high

Now you can check the system logs for details:

cat /var/log/syslog | grep -i ufw

You may see an entry like this:

  Apr  6 10:54:24 T440p kernel: [151434.303127] [UFW AUDIT] IN=
  OUT=wlp3s0 SRC=192.168.0.120 DST=162.125.18.133 LEN=1086 TOS=0x00
  PREC=0x00 TTL=64 ID=40870 DF PROTO=TCP SPT=54590 DPT=443 WINDOW=1136
  RES=0x00 ACK PSH URGP=0

Then you can check the identity:

sudo apt-get update
sudo apt-get install whois
whois 162.125.18.133

And the response is, in part:

OrgName:        Dropbox, Inc.
OrgId:          DROPB
Address:        333 Brannan Street
City:           San Francisco
StateProv:      CA
PostalCode:     94107
Country:        US

So that suggests that, even though no browser or email program is open, I have Dropbox installed and it is communicating any changes to my Dropbox folders.

Be careful, with logging set to high, large log files will build up fast. I recommend that, after you've made your checks, change the logging back to low or off:

sudo ufw logging off


How do I activate PulseAudio when only being logged in via ssh?

I know this question is a year old, but I figured this out myself just moments ago.

I have a machine (music@jukebox) and I discovered as long as I am logged in as the user music on the server I can log in simultaneously through ssh/putty/whatever on another machine and the audio plays through the speakers on the server machine just fine.

I hope this helps.


Choppy HD video playback with unity/gnome

The problem seems to have solved itself with latest 14.04 trusty release! :)


$ sudo add-apt-repository ppa:xubuntu-dev/xfce-4.10
$ sudo add-apt-repository ppa:xubuntu-dev/xfce-4.12
$ sudo apt-get update
$ sudo apt-get dist-upgrade

that's how I installed it on my system, but you're right and we're discussing the issue here


Wireless broken after latest 12.04 update


How to troubleshoot and tweek unreasonably slow wireless connection?

It's likely that the antenna in the USB dongle is horizontally polarized while the antenna on your access point is likely vertically polarized. Try using a short USB cable so the dongle can be situated vertically. That may help. I've a TRENDnet USB dongle that came with a very sort USB cable for that purpose.


I Can only ping IP address and website with domain but browse, telnet etc.. don't work?

The problem was eventually corrected by first changing the VM network config to share the host machines IP address and then adding 8.8.8.8 as the DNS address. If anyone else is having a similar problem, it may be worth reading through the comments to try some of the other troubleshooting steps as well.


How to get back Dropbox Icon xubuntu 14.04

I have a netbook that I'm running a 32 bit installation of lubuntu on, and the dropbox icon works fine there...I figured I'd try to install another desktop environment to see if that would help. Apparently it's pretty easy, and this article does a good job of explaining it:

http://www.howtogeek.com/193129/how-to-install-and-use-another-desktop-environment-on-linux/

Basically, it's super easy to install another desktop environment and switch which one you want to load upon login. I decided I'd try lubuntu here's what I did:

install the desktop environment via terminal (you could use the software center too though)

sudo apt-get install lubuntu-desktop

after it was done, shut down the computer
boot into xubuntu. At the login screen, in the upper right next to the batter icon, there's a little xubuntu icon...click that, and it gives you a choice of what session to log in as. I didn't even know this, but apparently there's an 'xfce session' option and a 'xubuntu' session option....being curious, i clicked on the 'xfce session' option, and logged in....and voila! dropbox icon was back.
Now that the icon was back, I tried it for the regular 'xubuntu' login session and it works for that too. And of course it woks for the lubuntu sessions as well.

So that seemed to do it! hopefully it works for you guys too!

I have also posted this on http://ubuntuforums.org/showthread.php?t=2225969&page=2


To install:

Get that font here,
After download right click and select open with font viewer
Click install
Now run this: fc-cache -fv to build your font cache files


installed ubuntu 20.4 from USB and stuck in GNU grub screen

thanks. When I load ubuntu from a (purchased loaded) usb I can 'Try Ubuntu' ok. But when I load  full Ubuntu onto notebook it loads ok and says remove medium and restart. I remove, but on restarting I get black screen with 'common interrupt: 1.55 No irq handler for vector. then 'GNU grub version 2.02' across top of black screen, but no prompt or anything.
After a couple of days trying everything I could find on the web, and from the supplier, I made a new usb with download and rufus, which worked, but only if I catch the boot sequence with esc key and f9 key and make it boot from 'notebook hard drive', not any of the ubuntu choices. Any of the other boots give me 'common interrupt...etc.'
I've tried changing the boot sequence with Boot Repair, but it stays resolutly the same. So I can work around, and it's a spare pc for playing with, so not life threatening, but still.


Difference ubuntu-12.04-alternate-amd64.iso and ubuntu-12.04.1-desktop-amd64.iso

The Desktop is a Live desktop system and is almost certainly what you want. If your hardware is working you can install from the live CD, and this is what most people do.

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

The Alternate CD is a text based CD for installation only. It has a few more options then the desktop CD (LUKS, LVM).

https://help.ubuntu.com/12.04/installation-guide/amd64/index.html

http://www.youtube.com/watch?v=Xi-VPj4jzrg

The end installed system is the same.


Turns out uninstalling KeyTouch and restarting fixed it.


I installed some network mangers such as http://www.ubuntu.com/about/about-ubuntu/licensing and http://www.ubuntu.com/about/about-ubuntu/licensing and done a bunch of installs and removes such as http://www.ubuntu.com/about/about-ubuntu/licensing then i rebooted and it now works . i tried also this answer but it didn't work https://askubuntu.com/a/859463/793268 long story short i tried a lot of things hopelessly and was not expecting to see a change but it happened .


How can I install Sybase ASE 15.5 step by step?

Try the steps here. This may be of help.
How to install Sybase ASE on Ubuntu Linux from the forums


Ubuntu 16, Mysql 2.7, and multiple instances through systemd

I'm having exactly the same problem, here. I've created the new service files but can't even get the services to start. Have you made any progress with this since you posted it?


No Ubuntu Control panel in Windows 7 installation

Why do you expect to see a Ubuntu control panel for windows? To my knowledge, none exists.

However, you should see a Ubuntu entry in your add/remove programs list, which appears in wubi (Windows UBuntu Installer) installations. You can use it to delete Ubuntu installation, as if it were another program within windows.


Grub2 and os-prober not detecting my Windows 7

I finally found a solution to my problem that didn't involve deleting my Windows partition. As other pointed out, the problem was that my Windows install was a legasy BIOS startup, while Ubuntu was now using UEFI, which is incompatible.

The solution was to convert Windows install to UEFI. The only required things were the Windows install dvd (or a booteable UEFI pendrive) and a working Ubuntu.

First, convert your Windows partition to GDP

sudo gdisk /dev/sdX
Command (? for help): w

where sdX is the windows drive.

Then, boot your Windows install disk and, from a Command Prompt, run the steps detailed on this link starting from step 7. This will replace the existing BIOS boot partition with a UEFI boot partition.

After these steps are done, you can run

sudo update-grub

to update your startup menu.


You'll find a lot here:

http://ubuntu-art.org/index.php?xcontentmode=8125


Intellij requires root permissions for the built in update function to work.

Either start using sudo:

sudo /opt/intellij-idea-ce/bin/idea.sh

or give all users the ability to update Intellij, then start as yourself:

sudo chmod -R o+rw /opt/intellij-idea-ce
/opt/intellij-idea-ce/bin/idea.sh

Then restart the IDE, click 'Help', 'Check for updates...'


Grub error 17 and 18 - grub rescue - how to boot again?

From what you say, it doesn't sound like a problem with GRUB or any other operating system.  GRUB is the first thing that is read on the hard drive, but it seems like you are having problems even reading the hard drive at all.  It may be a hard drive failure on the laptop, which definitely happens eventually to any hard drive, especially laptops that move around while the drive is spinning and also have reduced airflow (especially when old and clogged up with years of dust inside).

But the fact that you are having trouble reading all of the CDs makes it seem like it might be something causing all the disks to fail, like a controller card or something.  It's possible to have multiple failures at once, but seems unlikely.

If it was me, and I really wanted to resurrect the laptop, I would try to first take apart as much as I can and clean it out with a vacuum cleaner and perhaps compressed air, getting out as much dust as possible.  Sometimes dust makes the cpu fan stop, and when that happens, all sorts of errors occur.  I once had a computer where the fan had stopped, and I thought I had a virus, as it kept getting strange errors right away.

If you can't get a CD to boot properly, nothing else will work, though.


How to make Unity icons enlarge on mouse over as with Cairo Dock?

Unfortunately, due to the way Unity's launcher (which is not a dock according to Canonical) works, you can't do this.

You can however create a setup where Cairo Dock is aligned to the left of your screen as the launcher would be (as a compromise).


How to integrate KeyPass2 and Chrome/Chromium in Ubuntu 20.04

Ubuntu > 18.04 - 20.04
Install KeyPass2:
Press Alt+Ctrl+T to start terminal and run following commands one by one.

sudo apt-add-repository ppa:jtaylor/keepass
sudo apt-get update
sudo apt-get install keepass2 mono-complete

Open Chrome, install Kee - Password Manager Extension

Open as Administrator (Access), skip if you have it, if not follow the step.

sudo apt install nautilus-admin
nautilus -q

Download KeePassRPC plugins
KeePassRPC.plgx
Right click plugins (/usr/lib/keepass2/plugins) folder select
"Open as Administrator"
Copy Paste the latest version of KeePassRPC into the plugins folder

/usr/lib/keepass2/plugins

You're all done!


How to generate Openssl .pem file and where we have to place it

First you need to upload public key to the server you are willing to connect to, public key is in .pub file:

Example:

# ssh-copy-id -i ~/my-certificate.pub root@12.34.56.78

After this it should be working and you should be able to login using:

$ sudo ssh -i ~/my-certificate.pem root@12.34.56.78

Changes are made in file ~/.ssh/authorized_keys on server machine, open with text editor such as nano, you will see lines starting with something like: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAX ...

I personally generate the key file using $ ssh-keygen -t rsa -b 2048 -v, which generates the .pem and pub file. When you get asked:

  Enter file in which to save the key (/home/user/.ssh/id_rsa):

enter the name of the .pem file for example: my-certificate.pem

Step by step from generating key to login:

Generate the key with $ ssh-keygen -t rsa -b 2048 -v and when asked to enter file in which to save the key, type my-certificate and when asked to enter passphrase, press Enter (empty passphrase) and confirm by Enter.
You will get two files generated, one will be my-certificate and one will be my-certificate.pub, rename the my-certificate to my-certificate.pem, so you will have two files, my-certificate.pub and my-certificate.pem
Upload the public certificate to to server: ssh-copy-id -i ~/my-certificate.pub username@ip
Make .pem file on your computer read-only sudo chmod 400 my-certificate.pem
Login with $ sudo ssh -i /path/to/my-certificate.pem user@ip


Issues with Logitech K400 plus in Ubuntu 16.04

I have had various problems with a Logitech K400 Plus on in Ubuntu 16.04.

Installing "Solaar" from the Ubuntu Software, Un-pairing and then Re-pairing the keyboard (I was prompted to switch off and then switch on the keyboard again during the process) seemed to improve matters.


Not sure if this problem has already been resolved since it looks a bit dated.

From the info. you've provided, I think you can simply just delete the directory in your Home manually. Install it correctly by running sudo ./install from the directory containing the install script (are you installing from a .iso file, or do you have a CD or an installation archive from Mathworks?). Then you can simply create a symbolic link to the new installation location, or add an alias in your .bashrc file with the new installation path (by default it should be /usr/local/MATLAB/R2015b/matlab ). Cheers!


He's now using lightdm instead of gdm3 and since then everything is fine, the cause of this gdm3 problem is unsolved. https://chat.stackexchange.com/rooms/123317/discussion-between-lucki1000-and-ruben


Can I really experience performance in a LiveCD context?

The performance is a lot behind the performance of an installed system. Eg.the start of the various programs may take some time.

I would install the two systems in parallel and then decide.


Problems installing a Samsung CLP325 Colour Laser printer under Ubuntu 13.10

I have a printer in the same line, the CLX-2160n

I prefer these drivers, as they don't over-use the toner like the default drivers in Ubuntu, probably due to the extra colour profiles.

http://foo2qpdl.rkkda.com/

You may have to visit the printer options and select color rather than monochrome.


In ClipIt preferences you can define your own actions (in "Actions" tab). Everything you define in "Command" section of an action is executed in system.
For example if you define action:
Action: popup
Command: zenity --info --text "%s"
On action execution you should get popup with your text from clipboard (if zenity is installed in your system, which is installed by default in Ubuntu now).
Other example:
Action: add_texts
Command: clipit "text before %s text after"
It will copy to your clipboard actual clipboard content enclosed with "text before" and "text after" texts.


Is Ubuntu more suited for Python based apps?

In the early days of Ubuntu there were three major projects that tended to influence it.

Debian - the core that Ubuntu is based on.
GNOME - the core that the desktop is based on, and even though the latest client things (phone and tablet) are based on Qt there is still a bunch of GNOME technology in Ubuntu.
Python - the language that is preferred to tie a bunch of this stuff together.

A large percentage of the early Ubuntu community came from one of these other communities, they were either heavily involved or had partcipated. The GNOME and Debian influence on Ubuntu is well documented, but the stealth fact, the third piece is Python, here is a quote from Mark Shuttleworth:

  Python plays an important role at Canonical. You could even go so far
  as to say that Python is the language of choice for the company. Here
  is a rough list of the projects that are written with Python at
  Canonical:

  Bazaar: A distributed version control system. If you haven't tried Bazaar yet, you should give it a try, it is a very lightweight
  alternative to centralized version control like Subversion
  launchpad.net: A free software hosting and development web site that
  makes it easy to, "collaborate across multiple project".
  Storm: Storm is an object-relational mapper for Python that was developed at Canonical and is used inside of launchpad.
  Landscape: A system management service that allows for centralized management of multiple Ubuntu machines. This is a commercial product
  that Canonical has rolled out.

  There has been tremendous buzz about Python's "infection" of systems
  administration and systems programming. It will be interesting to see
  where this ultimately leads. Will Canonical start writing run levels
  in Python next?

  To get some idea of how big of a deal Python is becoming in the Linux
  world we can also take a look at Red Hat. Red Hat has a Research and
  Development division called Red Hat Emerging Technology Group. The
  link to that website can be found here.

  If you look at the projects listed, Python either plays a role or is
  the language in which the project is being developed. The future for
  Linux and Python for both Canonical and Red Hat seems to be bright.

We take a bunch of cultural ideas from Python, one of the most famous is the idea of a BFL and the idea that there's one clear way to do something:

  We would rather have one super smooth way to get things done, than 50 rougher ways to get things done. This is a bit like the core design value of Python: have one clear way to get something done. It's why I called the company Canonical: find the cleanest, clearest way to do XYZ. And the project is called Ubuntu because it's about humanity in the mass, and the values which support that, rather than about individuals (who were empowered by Linux long before we came along).

At the time of Ubuntu's launch Python was seeing an immense amount of attention and growth, and given Mark's experience with Python in the past (it was also used at Thawte Consulting) it's not surprising that if you were to build a new Linux distribution that Python was one of the easier choices to make.

That's not to say other languages are not welcome, the phone/tablet and soon the desktop will transition to QML and Qt (C++) and Juju was rewritten from Python to golang. Python just tends to be the default for things in Ubuntu. Authors can make tools in Python knowing that it's included in the default OS, so it makes a nice common watermark for people to get started in. Earlier releases of Ubuntu even included Dive into Python by default!

As far as Canonical itself, there's usually some form of sponsorship of PyCons, and participation from employees in Python conferences around the world.

TLDR; if you start a new project and you're passionate about certain technologies and you surround yourself with people who share those goals and beliefs, you can build awesome things.


For 16.04 budgie-desktop is available through the ppa:budgie-remix/ppa

By installing the whole desktop environment (via the package budgie-desktop-environment) you install all the associated applications and configuration that team of developers have recommended.

By itself, these applications would normally complement any other desktop-environment you have installed including Unity.

Since you have mentioned Unity - Unity and the 16.04 repositories contain an old version of Nautilus - v3.14.  This has all the patching to make that version of Nautilus work well with Unity.

In that particular PPA - Nautilus is v3.18 - this does not have the Unity patch-work.  Whilst you can pin Nautilus v3.14 so that it does not get upgraded, you should note 3.14 is not compatible with budgie-desktop - it freezes the desktop if you choose some of the client-side-decoration buttons.


How to change monitor resolution in my case?

I'm not sure what you can do here, but you can try setting the gamma of display with xrandr.

First find your monitor name with xrandr | grep " connected " | awk '{ print$1 }.

Now enter the xrandr command:

xrandr --output monitor_name --gamma 1:1:1

Now entering xrandr again.


How to replace echo command with print command?

You shouldn't use print from bash, but printf:

$ print "Hello"
Warning: unknown mime-type for "Hello" -- using "application/octet-stream"
Error: no such file "Hello"
$ printf "Hello\n"
Hello

print is an symbolic link to run-mailcap:

$ type print
print is hashed (/usr/bin/print)
$ ls -l /usr/bin/print
lrwxrwxrwx 1 root root 11 sep 18 14:02 /usr/bin/print -> run-mailcap

  run-mailcap,  view,  see,  edit,  compose, print - execute programs via entries in the mailcap file

  The see, edit, compose and print versions are just aliases that default
         to the view, edit, compose, and print actions (respectively).

That's why you get errors.


OS: Ubuntu 18.04 Default

Note:

Below is a ugly workaround..

Its not a programmatic way.

I wish some experts will do it in a programmatic way which will make me to delete this ugly workaround.

Workaround

create a script named lghideclock.sh (login screen hide clock) with below content in your home folder.

#! /bin/bash

file="/usr/local/share/gnome-shell/lghidetime.css"

install -Dv /dev/null $file

echo "@import url(/usr/share/gnome-shell/theme/ubuntu.css);

#panel .clock-display { font-size: 0px; }" > $file

update-alternatives --remove gdm3.css $file
update-alternatives --install /usr/share/gnome-shell/theme/gdm3.css gdm3.css $file 9999

then run

sudo /bin/bash $HOME/lghideclock.sh

and reboot.

You will not see the clock but the clock area is clickable and it will bring you the calendar. Even if you dont want the calendar, still we can hide it in this ugly way not a programmatic way.

How to Undo Changes:

Ok.. You have tried this and you hate it.. You want to go back to previous state.
Run the below commands one by one.

sudo update-alternatives --remove gdm3.css /usr/local/share/gnome-shell/lghidetime.css
sudo rm /usr/local/share/gnome-shell/lghidetime.css
reboot

Pics


Unmet dependencies while installing albert Ubuntu 18.04

I fixed the issue by running sudo gdebi ./albert.deb

I got the answer from here

dpkg and apt for some reason could not resolve or install the dependencies. But gdebi did the job.


Is separate EFI boot partition required?

Yes, a separate EFI partition (FAT32 formated) small partition is always required if using UEFI mode. ~300MB should be enough for multi-boot but ~550MB is preferable.

The ESP - EFI System Partiton - should not be confused with /boot (not required for most Ubuntu installations) and is a standard requirement.

Additional info:

Linux on UEFI: A Quick Installation Guide

UEFI boot: how does that actually work


In 16.04 I use rar from command line to solve this problem with the Archive Manager, which is probably bound to some tricky-faulty rar files. Although most of the times, not all are unzipped. Some of the zipped files return error.


Haw can I take snapshots from a live stream in command line?

Note: I have absolutely no way of testing this. Mad props to "Ranger", the author of this code.

Try this:

ffmpeg -ss 2 -i rtsp://ip:554/h264_2 -y -f image2 -sameq -t 5 foo.jpeg

Here's a simple script named, for instance, cam-capture.sh, that captures an image and names it according to the date and time.

#!/bin/sh
export DATETIME=`date +%Y%m%d%H%M`
export DATE=`date +%Y%m%d`
export MONT=`date +%Y%m`
mkdir -p /path/to/output/$MONT/$DATE

ffmpeg -ss 2 -i rtsp://ip:554/h264_2 -y -f image2 -sameq -t 5 /path/to/output/$MONT/$DATE/$DATETIME.jpeg

Add the following entry to your crontab to execute the script every five minutes:

*/5 * * * * sh /path/to/cam-capture.sh

  Again, all credit for this goes to "Ranger" for this.


Standard ubuntu 15.04 won't boot, but ubuntu (upstart) does

This question should be closed, I have set the default grub option to upstart and that worked for me as a workaround. Anyways it's been so long that I've switched my OS 3 times.


How to change the order of the Windows titlebar buttons when moved over to the left

The colon (:) is the separator for left and right.
For example:
gsettings set org.gnome.desktop.wm.preferences button-layout 'appmenu,maximize,minimize,close:'


13.04 does not recognise installation CD

Facing the same problem with Kubuntu 13.04.

Uncheck the CDRom option on the Ubuntu software tab.

This seems to work for me!!


Error while installing wine stable version

You can test with code in the cli:

sudo dpkg --add-architecture i386
wget -qO - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -

Ubuntu 19.10:
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/eoan main'

Ubuntu 18.04:

sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/bionic main'

and

sudo add-apt-repository ppa:cybermax-dexter/sdl2-backport

sudo apt update
sudo apt install --install-recommends winehq-stable

In case of any errors:

sudo apt install aptitude
sudo aptitude install winehq-stable


How to allow partitions to dynamically extend?

First you need to run parted and use its resizepart command to expand the partition to use the whole disk, then run pvresize to tell LVM about the new space, then run lvresize to grow the logical volume, and finally resize2fs on the logical volume to grow the filesystem to use the new space.  This can be done without a reboot.


Ok everyone! Actually nevermind.
That lsblk is showing tebibytes, if you do a lsblk -b its shown as bytes and the capacity is totally right.

Sorry for my noobness.


Download the theme, Right click the docky icon (the anchor icon)
Click settings,
Click install next to the theme selection menu,
Select the theme and click "Select".
Choose your new theme from the dropdown list.

P.S. comment if you would like me to post a video tutorial

EDIT: If the file is a zip, open it with archive manager, convert it to the correct format, and then install it.


USB 3.0 port being seen as a USB 2.0 port

Hi the following procedures will fix your problem right away.

Open terminal
Backup your grub config by entering sudo cp /etc/default/grub /etc/default/grub.backup (note: this is the location of the grub config in recent Ubuntu versions, the location of your file may differ based on distro and version)
Open your grub file: sudo nano /etc/default/grub
Find the line that begins with GRUB_CMDLINE_LINUX_DEFAULT and add iommu=soft after "quiet splash" and before the quotation mark "quiet splash iommu=soft".
Save the file by hitting Ctrl-O and then exit with Ctrl-X
Enter update-grub in terminal and hit enter to update your grub.cfg
Restart your machine to let the changes take place.


count_entries.py is now at ~/journal_tools/count_entries.py where ~ is expanded to the home directory of the current user at the time.


exclude nm-tray NetworkManger from lxqt-notificationd

Now, it is working. With my new config.
cat .config/lxqt/notifications.conf
[General]
__userfile__=true
blackList=nm-tray, NetworkManager
placement=top-right
server_decides=5
spacing=6
unattendedMaxNum=10
width=300

great half answer.
Right click on nm-tray and remove notification. Now both are stopping spamming me.


General input/output error while accessing odt document

I see this error in LibreOffice v. 6.0.1.1 when I try to open a file from read-only media (CD/DVD-ROM) or from a mounted ISO image. (Tested on Ubuntu 16.04 LTS and 17.10).

I'd say it was reported in this bug: https://bugs.documentfoundation.org/show_bug.cgi?id=113024


I finally found the fix. I was missing /media/cdrom. I am not sure why it was never created in the first place but it is working now :D


How do I access encrypted folders from the terminal?

If you mount the encrypted disk correctly, it should be accessed just like a regular disk. If you do not mount the encrypted disk (or do so incorrectly), it will function as designed, and prevent access. To see what is mounted, just type mount.


Try Rufus to make a bootable USB-Drive. Get it here

http://rufus.akeo.ie/

or here

(http://www.chip.de/downloads/Rufus-Portable_59986243.html)

Since it's portable you don't even need to install this programm and is therefore usable even if you don't have admin rights.


Convert an E-book to a Different Format in Calibre
The first time you open an E-book in Calibre you are asked to specify a location for the library and are offered a default location of home/username/Calibre Library.
This is probably the first place to start looking.
You can also open a text file in Calibre and convert it to .epub, then see were that ends up.


NIC is now working at 1Gbps.  The problem was the cable between my computer and the Comcast modem, which is downstairs about 100' away, and next to my wife's computer.  My wife's Lenovo and my Acer download at 150 Mbps +/- when on a short cable connected directly from the modem (i.e., no intermediate plugs/sockets).  However, when my Acer is in the upstairs office, it is connected to the modem via cat5e that runs thru the walls, so there are 2 intermediate sets of wall sockets/plugs.  As a test, I got about 110' of new cat5e, installed the RJ45s at each end and strung the 110' down the halls and up the stairs.  With this cable between the modem and my Acer in the upstairs office, I now get 1Gbps speed.  Will now have to debug/upgrade the cabling in the walls.  Thanks for your input.


Is it possible to set the ssh default login user as 'root' in @ip when none is set

You can do this by adding an entry to your local ~/.ssh/config file like

Hostname    123.122.123.123
User        root

Note that you will need to have enabled root login on the target host: I strongly recommend that you do not do so using password-based login, but instead by setting up secure key-based authentication using the default prohibit-password configuration


Why I have to wait some seconds before I can input my password on login?

It could just be your processor(s) warming up, same with the video card. I sometimes have a similar problem, however, you can still type while it doesn't show the password being entered, you can even press enter. It'll still take a few seconds for the computer to realize that you've told it to login.

Out of curiosity, is this only after shutdown, or sleep and hibernation too?


Transmission tracker and/or torrent traffic through proxy

The proxy support in transmission was removed some months ago. The best option at the moment seems to use a wrapper library like torsocks. You can install it using apt-get (or any other method). Now there is a file torsocks.conf in /etc. Here you enter your server address:

server = 192.168.2.7
server_type = 5
server_port = 8080

Now you can start transmission with torsocks transmission and your traffic will redirected to the SOCKS server.


I have a Mac OS X Server running a FQDN web site, with Ubuntu VBox running on top:

This has been solved for now...

My problem was that I am running a MAC OS X Server GUI (gawd!). Anyway to get my subdomain to point to another computer on the LAN, in this case an Ubuntu virtual box running on the same MAC server I needed to use a reverse proxy in the virtual hosts .conf file. Problem I thought I was going to have that any time I make changes via the MAC GUI it would overwrite the file to default values. So I tested it and for some reason it didn't and here is what I replaced the default values with:

VirtualHost *:80 (Add the <> before and after, for some reason it won't print on this forum, so it should be VirtualHost *:80 btwn the <>)

    ServerName subdomain.domain.info
    ProxyPreserveHost On
    ProxyRequests off
    ProxyPass / http://192.168.0.6/
    ProxyPassReverse / http://192.168.0.6/

(here you should add the /VirtualHost preceded by < and > after).

And viola it pointed to the Ubuntu VBox and didn't interrupt pointing to the correct directory of the FQDN. I got purposely vague tips from a gentleman on the MAC OS X Server forums that pointed me in the right direction. So there you have it, if you have a Mac Box Server and want to tinker with a VBox and send a subdomain to it you have to manually add the subdomain to your MAC GUI then edit the default created file in /Library/Server/Web/Config/apache2/sites 0000_any_80_yoursubdomain.domain.com and delete everything and replace it with above directive, obviously change the IP number to your chosen number of the box you want to point to.

Having said all that, I had pre-configured DNS on the Ubuntu box following Chapter 8 instructions of the Ubuntuserverguide.pdf Domain Name Service (DNS). Not sure if it had any effect, but I will post back when I fire up another blank box and not configure the DNS entries and see if it still works with default values.

UPDATE: fired up a new VM Box didn't configure DNS services and well, still works, so DNS can largely be ignored I guess if there is another server on the LAN dealing with all that.

One thing I did notice though that was pretty cool, when I shut down the VM Box and you try to access the domain hosted on it the MAC Server puts a nice kind message up saying "Service temporarily unavailable due to maintenance" which is kind of cool, means that the server exists no matter what. How interesting is that?

Update:
Created a workaround so as to be able to ftp into my subdomain. Basically, enabled FTP services on the MAC GUI server software which defaults to whatever directory you assign no matter what address you us, i.e. subdomain.FQDN.com or FQDN.com. Kind of boring that the MAC doesn't provide multiple FTP login's to different directories for each subdomain/domain served.

Anyway... sudo apt-get install samba and configure your share folder and you can access it from Mac finder and mount it, then tell the MAC Server FTP to use that mounted directory. Not ideal, but it works especially when I launch Dreamweaver and use actual subdomain ftp address it takes me to / and not /var/www via local connect using vsftpd. I can now access it remotely, which is always handy and it won't go past the / which translates to /var/www on the VM.

One other note about this set up, the users on the MAC server can't access the ftp site unless specifically added to the smb.conf file on the VM... very cool.


How do I add the GNOME logo in the corner of the screen?

The Gnome-Panel used in Oneiric uses a slightly different key-combination to add/delete and move options:

Press Win+Alt and right-click the top menu bar - N.B. Win is the Windows Symbol key

If you are using Gnome Classic (No Effects) i.e. gnome fallback mode then to add to the panel use Alt and right-click)

Make sure you right-click over the menu itself - you will have two options: Move and Delete.  Delete the menu.

Repeat the key-mouse combination.  This time:

Choose the Add to Panel

Scroll down the list - you will see two Menu options

Custom Main Menu
Main Menu

Choose one of these options for the style of menu you want.

Linked Question

How to revert to GNOME Classic Desktop?


Please create xorg.conf.new file and change there display size option in the manner that will make Your screen appear properly.
Then reboot.


how to find out the address pool for DDOS Attack IP addresses

I suggest you to set iptables to limit number of connection per host.
Ddos can use unlimited number of ip addresses

sudo iptables -A INPUT -p tcp --dport 25 -m state --state NEW -m limit --limit 50/minute --limit-burst 200 -j ACCEPT
sudo iptables -A INPUT -m state --state RELATED,ESTABLISHED -m limit --limit 50/second --limit-burst 50 -j ACCEPT
sudo iptables -A INPUT -j REJECT

-p tcp --dport 25 => Specifies traffic on port 25 (smtp).

-m state NEW => This rule applies to NEW connections.

-m limit --limit 50/minute --limit-burst 200 -j ACCEPT =>This is the essence of preventing DOS.

--limit-burst is a bit confusing, but in a nutshell 200 new connections (packets really) are allowed before the limit of 50 NEW connections (packets) per minute is applied.

Second rule – Limit established traffic
This rule applies to RELATED and ESTABLISHED all traffic on all ports
In summary, 50 ESTABLISHED (and/or RELATED) connections (packets really) are allowed before the limit of 50 ESTABLISHED (and/or RELATED) connections (packets) per second is applied.

or use set of rules for all input

sudo iptables -A INPUT -m limit --limit 50/minute --limit-burst 200 -j ACCEPT
sudo iptables -A INPUT -j REJECT

Also you have answer from Oli and usage of whois


How to correctly remove OpenJDK/OpenJRE and set SunJDK/SunJRE as Default

Installing Sun Java on Older Versions of Ubuntu (9.10 and below)

I had the same problem once about three years ago with Ubuntu 8.04 I think. There was a weird problem when using openjre and the problem was solved by using the sun jre version. Here are the steps in the terminal which apply to versions below 10.04, since starting from 10.04 sun java has been dropped and replaced by openjre:

sudo apt-get remove openjdk-6-jre default-jre default-jre-headless

sudo apt-get install sun-java6-jre sun-java6-bin sun-java6-plugin sun-java6-fonts

(Everything Sun java related. Just to make sure)

After that, if you removed openjdk then you would only have sun java. If you did not remove it then you have both of them. To change from one to another do this:

sudo update-java-alternatives -l - This will show you the list of java engines you can use.

The name of the java alternative is the one in the left so for example openjdk would appear like this:

java-6-openjdk 1061 /usr/lib/jvm/java-6-openjdk

And you would set the system to openjdk like this:

sudo update-java-alternatives -s java-6-openjdk

If you would want to use Sun then you would do this (After installation of the sun packages):

sudo update-java-alternatives -s java-6-sun

If you want to use the java 7 version, simply change the number 6 mentioned above for 7. For example if I wanted to install the openjre version 7 I would:

sudo apt-get install openjdk-7-jre default-jre default-jre-headless

Installing Sun Java on Newer versions of Ubuntu (10.04 an above)

Open the terminal and type the following:

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

That should install the Sun Java version on your system. To change to it simply do the following in case you have other java alternatives:

sudo update-java-alternatives -s java-7-oracle

If you want the installation to be automatic type the following:

sudo echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections

after that simply do the following to set the default environment variables:

sudo apt-get install oracle-java7-set-default

Note that the PPA includes versions 6, 7 and 8. So you can install any of them by simply changing the number in the installation line, for example:

sudo apt-get install oracle-java8-installer

Would install Java 8. After installing the Java version you wish to use and setting the version to the default with the update-java-alternatives command, you can check which version you are using by typing the following:

java -version

It will show you the default version you are using at that moment.

I would like to also mention that OpenJRE/JDK has come a long way from 2 or 3 years ago when it had many issues that were solved by changing to Sun Java.


Error installing Android Studio! How to uninstall it completely?

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

sudo apt-get --purge remove android-studio


Can't install software update on ubuntu 18.04. Face error with the upgrade command

Try

sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available

This will give you your default config for dpkg


Install the server edition, and don't choose to install a desktop environment.


What application can edit WebM metadata?

mkvpropedit works as webm is a subset of mkv:

https://mkvtoolnix.download/doc/mkvpropedit.html

To install:

sudo apt-get install mkvtoolnix


How to run the Ubuntu window manager in a window on another system

Run Xnest or Xephyr on the terminal. Use that display for the server's gnome-session.


Broadcom BCM43242A0 Bluetooth adapter not detected in Ubuntu 18.04

Steps to fix:

Go to repo winterheart/broadcom-bt-firmware and download file
BCM43142A0-0a5c-216c.hcd (according your Bluetooth chipset).
Move that file to /lib/firmware/brcm (if not working: rename file to BCM.hcd)
Turn off and turn on pc

P.S. This can work for other broadcom adapters as well, only need to get correct .hcd file: grep Bluetooth Device and ID with command lsusb | grep Bluetooth.
Edited This Bluetooth issue solution working for Ubuntu 20.04 as well.

Source https://dev-pages.info/ubuntu-bluetooth/


Diablo 3 and Starcraft 2 fullscreen with system bar ( ubuntu 14.04 )

A simple thing that you could try is to configure your bar to hide  it itself automatically.

Right click in your panel, go to Settings and configure the auto-hide property.


Install hplip from Ubuntu repositories instead.

sudo apt-get install hplip-gui

Hopefully, this will work.


How to download and install ffmpeg from Launchpad?

ffmpeg is available in the official Ubuntu repositories :
- xenial | xenial-updates | yakkety | yakkety-updates -

apt policy ffmpeg
ffmpeg:
  Installed: 7:3.0.5-0ubuntu0.16.10.1
  Candidate: 7:3.0.5-0ubuntu0.16.10.1
  Version table:
 *** 7:3.0.5-0ubuntu0.16.10.1 500
        500 http://archive.ubuntu.com/ubuntu yakkety-updates/universe amd64 Packages
        500 http://archive.ubuntu.com/ubuntu yakkety-security/universe amd64 Packages
        100 /var/lib/dpkg/status
     7:3.0.2-1ubuntu3 500
        500 http://archive.ubuntu.com/ubuntu yakkety/universe amd64 Packages

To install it open a terminal and execute this command :

sudo apt install ffmpeg

There is no need to download ffmpeg from launchpad.

Update addressing your comment about missing packages after an installation using apt

When you install ffmpeg using apt, the 'additional packages' are getting installed alongside automatically, maybe something went wrong in your case. For example - here my initial setup - these packages were installed after I had executed the command sudo apt install ffmpeg :

ffmpeg (7:3.0.2-1ubuntu3)
i965-va-driver (1.7.1-1)
libaacs0 (0.8.1-1)
libass5 (0.13.2-1)
libavcodec57 (7:3.0.2-1ubuntu3)
libavdevice57 (7:3.0.2-1ubuntu3)
libavfilter6 (7:3.0.2-1ubuntu3)
libavformat57 (7:3.0.2-1ubuntu3)
libavresample3 (7:3.0.2-1ubuntu3)
libavutil55 (7:3.0.2-1ubuntu3)
libbdplus0 (0.1.2-1)
libbluray1 (1:0.9.3-2)
libbs2b0 (3.1.0+dfsg-2.2)
libchromaprint0 (1.3-1build1)
libcrystalhd3 (1:0.0~git20110715.fdd2f19-11build1)
libdc1394-22 (2.2.4-1)
libflite1 (2.0.0-release-2)
libgme0 (0.6.0-3)
libgsm1 (1.0.13-4)
libmodplug1 (1:0.8.8.5-2)
libmp3lame0 (3.99.5+repack1-9build1)
libopenal-data (1:1.17.2-1)
libopenal1 (1:1.17.2-1)
libopenjpeg5 (1:1.5.2-3.1)
libpostproc54 (7:3.0.2-1ubuntu3)
librubberband2v5 (1.8.1-6ubuntu2)
libschroedinger-1.0-0 (1.0.11-2.1build1)
libsdl1.2debian (1.2.15+dfsg1-4)
libshine3 (3.1.0-4)
libsoxr0 (0.1.2-1)
libssh-gcrypt-4 (0.7.3-1)
libswresample2 (7:3.0.2-1ubuntu3)
libswscale4 (7:3.0.2-1ubuntu3)
libtwolame0 (0.3.13-1.2)
libva1 (1.7.1-2)
libvdpau1 (1.1.1-3ubuntu1)
libx264-148 (2:0.148.2699+gita5e06b9-1)
libx265-79 (1.9-3)
libxvidcore4 (2:1.3.4-1)
libzvbi-common (0.2.35-11)
libzvbi0 (0.2.35-11)
mesa-va-drivers (12.0.3-1ubuntu2)
mesa-vdpau-drivers (12.0.3-1ubuntu2)
va-driver-all (1.7.1-2)
vdpau-driver-all (1.1.1-3ubuntu1)

This is from an Ubuntu 16.10 installation - packages and versions are different in other editions.
Other packages like libavcodec-extra57, which provides some additional de/encoders or any dev-versions have to be installed manually.
If you are still running Ubuntu 14.04, you can install libav-tools (a fork of ffmpeg which temporarily replaced ffmpeg in Ubuntu 14.04) instead.


Installed ubuntu with erase disk and cant boot. no grub

Reinstall the GRUB boot loader this way :
Boot from Ubuntu installation media.
Open a terminal and execute :

sudo mount /dev/sda2 /mnt
sudo mount /dev/sda1 /mnt/boot/efi
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
sudo chroot /mnt
grub-install /dev/sda
update-grub

Note : sda = disk | sda1 = EFI partition | sda2 = system partition

In case Ubuntu still does not boot - maybe you have to select Ubuntu as default system in BIOS, because there still is Windows boot loader (Microsoft folder) installed on the EFI partition sda1.


How to switch on the web camera in my dell laptop(Ubuntu OS)?

You can on your camera by downloading any software in Ubuntu store. The software I have been using are  "cheese webcam booth" "camera" etc.


Probably it is dconf issue that you have just described.  On your terminal window (ctrl+alt+T) and type this:

dconf reset -f "/home/yourusername/"

note: must use / in the end of the path

dconf is what holds all of the values and defaults factors for Unity thus, that's what controls the reboot/shutdown buttons.  This function reset all of dcnof and bring default back.  It'd might do the trick in your situation.


Since this is a dmg image i think you have to convert to an iso then you can burn the ISO in brasero. You can look dmg2img "DMG2IMG is an Apple's compressed dmg to standard (hfsplus) image disk file convert tool",to install check here https://askubuntu.com/a/38122/71679 or a java port of the earlier DMG2ISO version called DMGExtractor http://www.catacombae.org/dmgx.html. "dmg2iso has been superseded by dmg2img - it can handle files >4GB "

Since no experience with either i cant say if they will work or not but it may be a good starting point.My understanding is that brasero cant burn  .dmg files they need to be converted first and from what ive read dmg2img doesn't always work for everyone.


Use the -f (force) option:

wipefs -af /dev/sdb


How do I add a "new window" entry to the nautilus quicklist?

You can use the middle mouse button to click the Home Folder. This will launch a new window of Nautilus.


Resolved by installing 32 bits architecture support:

sudo apt-get update
sudo apt-get install -y lib32z1 lib32ncurses5 lib32bz2-1.0


How to install ClipGrab in Ubuntu 16.10 (Yakkety Yak)

Try the code below , thats work for me

sudo add-apt-repository --remove ppa:clipgrab-team/


is my Lenovo S103t compatible with touch screen compatible with ubuntu?

Snowlinux 4 Cinnamon http://distrowatch.com/?newsid=07897 is alleged here (bottom of page)  http://ubuntuforums.org/showthread.php?t=1415915&page=49 to work perfectly but there seem to be problems with standard Ubuntu as per https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-evdev/+bug/946417.


What does "md value mismatch_count" count?

Anyone curious, it turns out my issue was a second default change between array creation and the version of mdadm i ran me new create on, the stripe size default had been 64k and it is now 512k.  Switching to 64k solved my issue.


qtjackctl ./configure returns JACK library not found

JACK development files are in the libjack-dev package. Install it with:

sudo apt install libjack-dev


Agreed with migrc's comment. Also, check out if anything else(for eg. Software Center) is using your connection during your conn test.


Does it damage or increase wear on computer to use sleep (instead of shutdown) for days on end?

In short: No, don't worry about it.  Sleep will cause very minimal wear and tear.  If you're interested in learning more, read on.

The light that you see on when your computer is on standby is an LED (light emitting diode).  LEDs can last up to hundreds of thousands of hours (according to http://www.green-energy-efficient-homes.com/faq-led-lights-burn-out.html), so you shouldn't worry about it burning out.

When your computer is on standby or is in sleep mode, most of the computer is 100% off.  That includes your processor, hard drive, network cards (usually), and just about anything else.  The main exception is your RAM (memory), which is necessary to allow your computer to resume quickly.  This needs to stay on because your computer basically forgets everything in its RAM when it's powered off.  I haven't ever heard of a computer being on sleep for a long time damaging the RAM, though it is theoretically possible.

If you're really worried or really energy conscious, you can use hibernate.  This saves a copy of your RAM to your hard drive.  That's basically a compromise between a full shut down and sleep.  Your RAM is saved, so your computer can remember what you were doing, but it's saved to your hard drive, so your RAM doesn't have to stay powered.  It takes a little longer to hibernate and resume from hibernation than it would for sleep, and it doesn't work 100% well on all computers (same deal with sleep), but it's generally pretty good.

One other thing to keep in mind is that if your computer loses power (ie, a desktop that gets unplugged or a laptop that runs out of battery while asleep -- because computer still use up a small amount of power while asleep), it will be completely fine if it was hibernating or powered off, but if your computer was asleep, you will lose any work that you didn't save.  It won't damage your computer, but it does mean that you can't completely count on your computer being able to 'wake up' after going to sleep if something bad happens to it.


Remotely kill a running process in an Ubuntu system with no space left

You can send kill command directly like this
ssh myserver 'kill -9 `pidof myprog`'

you also should be aware if you allow root login via ssh, so in that case you specify host like root@myserver


I would begin by ensuring Pycharm Community is installed correctly in terminal.

sudo snap refresh
snap list

this should list pycharm-communtiy, if it is not listed, type:

sudo snap install pycharm-communtiy --classic

now to stop the program's services (if any) so they do not conflict. type:

sudo snap stop pycharm-community

and disable the snap:

sudo snap disable pycharm-community

and finally remove it

sudo snap remove pycharm-community

Ensure it is removed by

snap list


Is this how I tell whether or not I have "third party drivers"?

The easiest way to check if you have 3rd party DKMS modules is to use

dkms status

command.

But there is a possibility that you installed some modules without using DKMS. But you should know if you installed something from source.


Cannot get wireless to work after installing Ubuntu 12.04

"UNCLAIMED" means there are no drivers attached to your card. Since there are no drivers attached to your card you wifi will not work.

Try this solution, it is marked as solved so it should work for you:
http://ubuntuforums.org/showthread.php?t=2162026


Can't See Launcher and settings in 11.10

It's possible that the unity plugin isn't enabled anymore, so you need to check & enable it if it isn't

This needs to be done while in the ubuntu (unity 3d) session, there are numerous ways to do this, picking one -

Log in to ubuntu and go Ctrl+Alt+t on the keyboard, if a terminal opens great.

If a terminal doesn't open, then up in that top panel click on "Go". In the nautilus window, on left side in Computer section click File System & then browse to usr > share > applications. Scroll down & d. click on the terminal icon

If you don't know if compiz-config-settings-manager is installed then run this in the terminal

sudo apt-get install compiz-config-settings-manager

Once it's installed or if it already was then run this

ccsm

scroll down & enable the unity plugin if it isn't enabled

P:S.: If CCSM is installed, it works in Unity 2D sessions as well.


Turns out that Upstart was not properly configured or started (I was on a chroot).
So installation scripts did not detected that and did not copy the upstart script to /etc/init/cgroup-lite.conf

To avoid this issue
    touch /etc/init/cgroup-lite.conf
    apt-get install cgroup-lite
    rm /etc/init/cgroup-lite.conf

It will use /etc/init.d/cgroup-lite instead


Starting forked-daapd service from GIT Install

So there were a few things that needed to be done for this to work correctly.

First was running forked-daapd which was achieved by this:

sudo forked-daapd

This seemed to work, but when checking the running processes, forked dapped was not there, so I checked the log file and saw that there was an error initializing the database, and it was a permissions issue. For now, I set the access to root and the username in the forked-daapd config file to root as well and boom! We have a media server.

Since this is internal only we can get by with root for now, but its a good idea to create a new user to access it.

Hope this helps anyone that might have gotten stuck in the same spot as me.


How to Tell Dash to look for music on other NTFS partitions?

Add your music to your player's library.

I think this question is very similar to this one.  The Unity music lens uses different Scopes - Banshee by default, I gather - to provide results.  This is part of the lens spec.  Banshee ONLY provides music results that are inside its library, so anything else won't show up.

In any event, for ease-of-use, I'd recommend creating a symlink to your NTFS partition inside your music folder:
ln -s /path/to/NTFS/music ~/Music/External.  This way, Banshee'll see that music as existing inside your Music directory, as will any other player you use.

Edit: Just found a duplicate - here.  Answers are quite similar.


How can I modify the snap autorefresh frequency?

Does this help? It implies that you can run "snap refresh" in a script and schedule it using cron or any other similar utility.

> When you’re signed into the store, snaps are updated automatically in
> the background to the latest version, every day. This can also be done
> manually using snap refresh for either all installed snaps or by
> specifying a particular snap to refresh.

There doesn't seem to be any configuration file to affect the autorefresh frequency of snap.


You could probably add this line before the import line

export DISPLAY=':0'


wrong ELF class for python 2.7 (32-bit ubuntu 14.04)

Move the folder /home/marius/.python-eggs/ with

mv /home/marius/.python-eggs /home/marius/.python-eggs.bak

and install acestream again from this repository:

sudo apt-add-repository "deb http://repo.acestream.org/ubuntu/ trusty main"
sudo wget -O - http://repo.acestream.org/keys/acestream.public.key | sudo apt-key add -
sudo apt-get update
sudo apt-get install --reinstall acestream*

In the DEB packages of acestream*:i386 for Trusty are 32-bit libs (i686).

I checked:

I have downloaded all deb packages:

$ find -type f -name "ace*.deb"
./acestream-player-data_3.0.2-1trusty2_i386.deb
./acestream-player_3.0.2-1trusty1_i386.deb
./acestream-full_3.0.2-1trusty1_i386.deb
./acestream-player/usr/share/acestreamplayer/acestream-player-data_3.0.2-1trusty2_i386.deb
./acestream-engine_3.0.3-1trusty1_i386.deb

and extracted:

find -type f -name "ace*.deb" -print0 | xargs -0 -I {} dpkg -x {} acestream

$ ls -go acestream/usr/share/acestream/lib/
insgesamt 1500
drwxr-xr-x 2    4096 Okt 31  2014 acestreamengine
-rw-r--r-- 1   96943 Okt 31  2014 bitarray-0.8.1-py2.7-linux-i686.egg
-rw-r--r-- 1  129811 Okt 31  2014 blist-1.3.4-py2.7-linux-i686.egg
-rw-r--r-- 1   32506 Okt 31  2014 GeoIP-1.3.2-py2.7-linux-i686.egg
-rw-r--r-- 1   29233 Okt 31  2014 miniupnpc-1.9-py2.7-linux-i686.egg
-rw-r--r-- 1  146129 Okt 31  2014 psutil-1.2.1-py2.7-linux-i686.egg
-rw-r--r-- 1 1086544 Okt 31  2014 pycompat27.so


Microphone not detected anymore after kernel change on Lenovo Ideapad 5 14ARE05

Thanks @guiverc for your reply. After upgrading to kernel 5.8.1 my computer's integrated speakers do not work anymore.
My earpods however are recognized, I can talk and listen to music through my earpods' mics. However I cannot use my computer's mic and speakers.
> pulseaudio -v
I: [pulseaudio] main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
I: [pulseaudio] main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
I: [pulseaudio] core-util.c: Successfully gained nice level -11.
I: [pulseaudio] main.c: This is PulseAudio 13.99.1
I: [pulseaudio] main.c: Page size is 4096 bytes
I: [pulseaudio] main.c: Machine ID is 444fc26f472b46a0a63f493bc042d5e3.
I: [pulseaudio] main.c: Using runtime directory /run/user/1000/pulse.
I: [pulseaudio] main.c: Using state directory /home/jeremie/.config/pulse.
I: [pulseaudio] main.c: Using modules directory /usr/lib/pulse-13.99.1/modules.
I: [pulseaudio] main.c: Running in system mode: no
E: [pulseaudio] pid.c: Daemon already running.
E: [pulseaudio] main.c: pa_pid_file_create() failed.

Thanks


I found the solution here on Ubuntu Forums.

You just have to edit the /etc/default/grub file as root, for example:

sudo -H gedit /etc/default/grub

Find the line where it says:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

Change that to:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_sleep=nonvs"

After that, save the file and close it.

Then, you have to tell GRUB to update to the new configuration. You can do that by entering:

sudo update-grub

After that, reboot and enjoy!


Is it possible in Ubuntu app, start C++ function from javascript?

Yes, it is possible.

What you need to do is create a plugin.  This will allow you to import a C++ object (and only objects!) into your QML namespace.  Since you want a C++ function, you'll have to make a "dummy" object with a method that just calls the C++ function you desire.

To do this, you'll need to create two classes.  One will be a class for that dummy object mentioned above.  The second will inherit from QQmlExtensionPlugin and must call qmlRegisterType for the first class.

This has just been an overview -- for more details, see the Qt documentation.  I've also written up and example of a QML plugin to read a file, which should be fairly close to what you'll need.


Ok, I found the solution. It was only about me and my missing knowledge about Linux, LaTex and searching for the wrong terms on google. Sorry for the question.

I changed the path path/to/texlive/bin/linux-i386/pdflatex to path/to/texlive/bin/x86_64-linux/pdflatex. Now everything works fine.

Thank you for helping.


You can use seq to create the sequence of numbers and pipe its output into xargs to call touch for each number:

seq -w $i | xargs touch


503 too many open connections error - did I muck something up?

No its not a problem on your side....

I believe what is happening is that the archive http:// site has too many connections open.  From what I recall in a similar situation, another mirror site would be selected to try to complete the download depending on settings.


Downloaded MMS stream has very long duration

Not sure why it matters - you have the orig. file.

But try using FFmpeg instead, should work better. A standalone binary can be had here to test with. Choose either the git master or release, download, extract & run ffmpeg from extracted folder

http://johnvansickle.com/ffmpeg/

Or build your own - https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu


Just installed Ubuntu 13.04 alongside Windows 7. Unable to boot Ubuntu

Try booting through a liveDVD or live USB, install Boot-Repair by opening a terminal and typing as follows:

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

Try the Recommended repair option.


How can I install AMD GPU (pro) drivers for Ubuntu 16.04, 16.10 or 17.04 (desktop)?

The AMD Radeon R7 240 is a first generation (GCN 1.0) "Oland" GPU that is experimentally supported by the open source amdgpu driver.

Prior to using the amdgpu-pro driver, ensure that:

The kernel you're installing has been built with CONFIG_DRM_AMDGPU_SI=Y and/or CONFIG_DRM_AMDGPU_CIK=Y set to enabled in the kernel config. I no longer use AMD GPUs on any Linux hardware in my possession, so I'm unable to confirm for you if this is enabled by default for Ubuntu. And related to the second point,
If you require any AMD DAL/DC enablement in your deployment (needed to support HDMI Audio,etc) on current generation AMD GPUs for a future upgrade, consider building and deploying this kernel instead. It tends to have the latest security fixes applied to it, so you should be good to go.
Ensure that the radeon module is blacklisted prior to installing the package from AMD.

Also, realize that AMDGPU-Pro works on top of the open-source AMDGPU kernel driver. The driver provides OpenGL, OpenCL, Vulkan and VDPAU support, and as such:

Ensure that KMS is enabled. There should be no modeset lines anywhere on the kernel options passed by the grub configuration file.
Whatever kernel you decide to build and install, ensure that you've installed the appropriate linux-firmware package as well. Otherwise, you'll run into trouble particularly with the AMD DAL/DC functionality.
And finally, the subject of HDMI and DisplayPort Audio with the opensource amdgpu driver, should you ever roll back from the amdgpu-pro binaries: You'll still need the AMD DAL/DC kernel patchwork linked above.

You may also use this reference should you run into any trouble.


Your wired earphone button has 4 leads on the male plug which works ok on smartphones that have 4 receptors on the female jack. However most laptops only have 3 receptors on the female jack so the button can't operate.

If you have bluetooth earbuds this link ([Bluetooth headset multimedia buttons])1 would help you out. Basically it says /etc/modules-load.d/uinput.conf needs to contain uinput.


Is there a program that will emulate typewriter sounds?

There are some implementations to play a sound for every keypress, one of them is "keypress" on Github.com, made by Github user "chrelad". It's a fork of linux-typewriter.

Instructions on how to set it up:

Open a terminal (Ctrl+Alt+T).
Install the package python-xlib.

sudo apt-get install python-xlib

Download the application:

wget -O keypress.tar.gz https://github.com/chrelad/keypress/tarball/master
tar xvfz keypress.tar.gz && cd chrelad*

Start it by executing

./keypress.py

Optional: You can change the sound by opening the file keypress.py with an editor and look out for the line that says

        os.system("aplay sounds/key01.wav")

Now change key01.wav to what you want it to sound like.

To restart it after the reboot:

Open a terminal.
Type: cd chrelad* && ./keypress.py


Install Redis-Server on Ubuntu 16.04 LTS minimal

To fix your error: Install Redis as non-root user.

sudo apt-get update
sudo apt-get install build-essential tcl

Download and Extract the Source Code

cd /tmp

Now, download the latest stable version of Redis. This is always available at a stable download URL:

curl -O http://download.redis.io/redis-stable.tar.gz

Unpack the tarball by typing:

tar xzvf redis-stable.tar.gz

Move into the Redis source directory structure that was just extracted:

cd redis-stable

Build and Install Redis

Compiling dependencies:

cd deps
sudo make hiredis jemalloc linenoise lua geohash-int
cd ..

Compile the Redis binaries by typing:

make

After the binaries are compiled, run the test suite to make sure everything was built correctly. You can do this by typing:

make test

This will typically take a few minutes to run. Once it is complete, you can install the binaries onto the system by typing:

sudo make install

Begin by creating the redis user and group. This can be done in a single command by typing:

sudo adduser --system --group --no-create-home redis

Now, we can create the /var/lib/redis directory by typing:

sudo mkdir /var/lib/redis

We should give the redis user and group ownership over this directory:

sudo chown redis:redis /var/lib/redis

Adjust the permissions so that regular users cannot access this location:

sudo chmod 770 /var/lib/redis

Starting Redis

Start up the systemd service by typing:

sudo systemctl start redis

Check that the service had no errors by running:

sudo systemctl status redis

Source: https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-redis-on-ubuntu-16-04


Unity Alternative for Ubuntu 17.10 and after that

You asked about "community", well...
look like there is a fork of unity 8 named "yunit" here is their github repo:

This is a fork of Canonical's Unity 8 repository as of April 5, 2017. Following Mark Shuttleworth's announcement to abandon Unity 8 development, we are planning to continue working with the project.

website: yunit.io

There is another project named "Enjade" (Now being called "Artemis" I guess):

The Artemis Project aims to bring the best environments to continue the venerable Unity 7 desktop in the modern Linux space. With an open, friendly community and a willingness to make the Linux desktop more friendly, the Unity legacy will live on while bringing new innovations to the table.
It's going to be a plasma based environment that aims to bring Unity experience while getting new features continuously.

You can also make gnome shell to look like unity:
http://www.omgubuntu.co.uk/2017/04/make-gnome-shell-look-feel-like-unity
However I prefer myself to use a simple highly customizable Window manager instead of DE or at least a lightweight DE like xfce, it's been years that I'm using OpenBox so it never was a big deal for me in first place.


Why is there a reserved spot in the Launcher?

log out or restart your computer. I've had this happen before, you've probably got an additional program drug into your launch menu but Unity hasn't caught up to displaying it. After restarting the icon of whatever program you've placed there should become visible (or the space will disappear.)

EDIT: Also, there are some programs which do not play nice with Unity and create extra icons in it's launch bar. They're usually programs you already have in it but they don't know how to tell that they're already in it so they make more icons for themselves.


copy-mangar having auto-poweroff after completing copying/moving operations?

If you prefer command-line way, yes you can do it with the following command. But you need to make the shutdown command that does not require your password to run by editing the visudo file:
rsync -ap /source /destination && sudo shutdown -h now

The -P or --partial flag prevents incomplete files from begin deleted if there is an interruption. If you run the same command again, any incomplete transfer will be resumed.
For making shutdown command to run without entering your password, run sudo visudo and add the following line at the END in the file that opens:
Your_USERNAME  ALL=NOPASSWD: /sbin/shutdown

Then exit the editor and save it (Ctrl+X).
Now your computer will shutdown after the copy finish.

Also you can use graphical rsync grsync tool. Install grsync:
sudo apt-get install grsync

After you installed, open the dash and type grsync end hit enter to open it.
Configure the hints(1-5) and press start button(6) to start the copy.

click on "Basic options" tab

type your source path in first text-box or click on "Open" button

type your destination path in next text-box.

click on "Extra options" tab

type your command in text-box below "Execute this command after rsync" that will be execute when copy gets finish.
there is also an option for executing the command before starting grsync copy progress.

and finally click "Start copy" button (upper right corner in grsync window)

Note that to executing the shutdown command without your password you need to edit visudo file as mentioned in above.
Don't forget checking the resume support option from "Advanced options" tab:


If your PC manufacturer gave you a Windows installation CD, you can use it to Repair your current Windows installation (don't re-install, or you'll lose everything).  If you want to get your data onto another drive, or reinstall Ubuntu, you can use the Ubuntu CD you said you have.

Booting your computer from a CD can be a different process depending on the manufacturer, and the BIOS version.  I suggest searching for how to boot from cd on [computer manufacturer/model number here], so you can get some specific help.  Tip: Most of the time, you can press F2 before the BIOS hands control to GRUB, and you'll get the CMOS settings page.  From there, you can change the boot order so that CD will be the default.

Edit: Yes, this is absolutely a duplicate of How to remove Ubuntu, but Windows back on.


I am also using  13.10 but its Xubuntu , any way there are the packages you need if you want to install linx11-dev ion 13.10 . try this method .

sudo apt-get install libpthread-stubs0 libpthread-stubs0-dev libx11-dev libx11-doc libxau-dev libxcb1-dev libxdmcp-dev x11proto-core-dev x11proto-input-dev x11proto-kb-dev xorg-sgml-doctools xtrans-dev

hope that helps.


Running League of Legends on Samsung Chromebook with Ubuntu 12.04.4 ARM

TL;DR

If you have a program compiled for x86 you'll need an emulator to run it on ARM. In its current development state Wine has no such (working) emulator, therefore you can't do what you want.

About wine:

  Wine (originally an acronym for "Wine Is Not an Emulator") is a
  compatibility layer capable of running Windows applications on several
  POSIX-compliant operating systems, such as Linux, Mac OSX, & BSD.
  Instead of simulating internal Windows logic like a virtual machine or
  emulator, Wine translates Windows API calls into POSIX calls
  on-the-fly, eliminating the performance and memory penalties of other
  methods and allowing you to cleanly integrate Windows applications
  into your desktop.

About emulation:

  When users think of emulators, they think of programs like Dosbox or
  zsnes. These applications run as virtual machines and are slow, having
  to emulate each processor instruction. Wine does not do any CPU
  emulation - hence the name "Wine Is Not an Emulator."

Wine on non x86 processors:

  Well, it is true that Wine only runs on x86 processors. Unfortunately
  it will also require quite a lot of work before it runs on other
  processor architectures.

  ...

  Then there's what everyone has been waiting for: 'I want to be able to
  run my x86 Windows applications on any processor architecture I like.'
  That's the most complex one. Again the prerequisite is that Winelib
  works on this architecture, which will definitely happen someday. Then
  'all that is needed' is to integrate an x86 emulator with Wine (and
  also change Wine's name :-). Ulrich Weigand just did that as an
  experiment some time ago when he had 'some spare time'. He even
  managed to get some Win16 applications to run. His code was not in a
  state where it could be integrated into Wine yet and I don't know how
  much work has been put into pursuing it. His attempt did spark many
  discussions on Wine's mailing list though. The result is that we would
  need a sophisticated emulator including a JIT in order to get
  something really viable (i.e. not too slow). And developing such an
  emulator is a whole project in itself.


I was able to install Mediaelch in Ubuntu 15.04 (Vivid) using the source for 14.04.

Method: 1 Adding Repository and Signing Key

Turns out adding a repo and its key manually is no big deal.  Create a file, add the info from Launchpad, add the key, update and install:

sudo sh -c 'printf "deb http://ppa.launchpad.net/kvibes/mediaelch/ubuntu trusty main\n deb-src http://ppa.launchpad.net/kvibes/mediaelch/ubuntu trusty main\n" > /etc/apt/sources.list.d/kvibes-mediaelch-ubuntu-trusty.list'
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 00DAEE81 && echo That worked. || echo That totally failed.
sudo apt-get update && sudo apt-get install mediaelch

Not so hard afterall.

Method: 2 Add New Repo and Edit for Older Source

Don't know anything about manually adding repos and signing keys, so I just added the repository according to instructions and merely replaced "vivid" with "trusty" in its list file.  I didn't bother renaming the .list file.

sudo apt-add-repository ppa:kvibes/mediaelch
sudo sh -c 'sed -i "s/vivid/trusty/g" /etc/apt/sources.list.d/kvibes-ubuntu-mediaelch-vivid.list'

Then just update and install

sudo apt-get update && sudo apt-get install mediaelch

Worked a charm.


Can't launch google-chrome-stable. Getting Out of date NSS (Libnss3)

If you are running 15.10 and below, the proper way is to upgrade the distro. However if you need to stick to your current version for whatever reason, here is what I have done.

I have force install the libnss3 from the upgraded version .deb file along with a dependency requirements.

Here is the dependency

sudo dpkg -i libnspr4_4.13.1-0ubuntu0.16.10.1_amd64.deb

from http://launchpadlibrarian.net/317146464/libnspr4_4.13.1-0ubuntu0.16.10.1_amd64.deb

Then, install the libnss3

sudo dpkg -i libnss3_3.26.2-1ubuntu1_amd64.deb

from http://launchpadlibrarian.net/295856174/libnss3_3.26.2-1ubuntu1_amd64.deb

You still need to install one more, libnss3-nssdb, which is required for the Chrome as well

sudo dpkg --force-all -i libnss3-nssdb_3.26.2-0ubuntu0.16.04.2_all.deb

from http://launchpadlibrarian.net/296542005/libnss3-nssdb_3.26.2-0ubuntu0.16.04.2_all.deb

=====

I have taken the precaution by backing up these packages from system before installing the upgraded version in case something break and I cannot find the original .deb. In my case, I cannot find the deb for libnss3-nssdb

sudo apt-get install dpkg-repack
sudo dpkg-repack libnss3-nssdb


.sh file opens with emacs instead of running

To run studio.sh file on nautilus,you need to create a .desktop file as below.

Filename : studio.desktop

[Desktop Entry]
Type=Application
Name=Run script
Exec='/fullpath_to_script/studio.sh'
Terminal=false
StartupNotify=true
Encoding=UTF-8

place the studio.desktop file on desktop.On double click on this file,you will be able to execute androidstudio.sh file from nautilus.

You have to give execute permission to studio.desktop file inorder to run,

sudo chmod a+x /path/to/studio.desktop


The denyhosts error seems to be Debian Bug #608672.  It seems that the logrotate script for denyhosts tries to execute /etc/denyhosts.conf as a shell script to access the configuration variables.

While your configuration file is fine for denyhosts itself, it causes the logrotate script to fail.  It looks like the problem has been fixed for the 11.10 release but the fix has not yet been released as an update for 11.04.

You should be able to work around the problem by removing the spaces before and after the equals sign on each line of your /etc/denyhosts.conf file.


What is a cross-platform alternative to iBooks Author?

There are two alternatives available for you. One is Open-Source and the other is a commercial product.

BookType (Open Source).

A cloud-based solution, so inherently multi-platform. Can be installed on a local server.
The Books developed can be hosted on the cloud, can be made available in any formt, with any license of your choosing.

Inkling Habitat (Commercial).

Source


Ettercap arp poisoning doesn't work correctely, it doesn't receive packet

The usual mechanism for packet sniffers is to set a specific interface into promiscuous mode. Virtual machines usually get their own ethernet bridge or tun/tap interface, depending upon the virtualization tool in use, settings, etc.

You may need to select a different interface in the ettercap capture settings.


I have two cursors on my screen, one of which is always on top and will never move - how do I remove it?

After running "xinput --list" in the terminal and resetting the laptop the problem was fixed.

I have no idea why this would make it work (maybe because it's refreshing the devices plugged in?).

Either way huge thank-you to Wilf.


installing and using android studio with virt on ubuntu 16.04

Installing and using Android Studio on Ubuntu 16.04 is a task that needs a certain strategy and you need to follow certain steps.

Your system must be equipped with a 64-bit CPU capable of supporting Hardware Virtualization and at least 4 GB of RAM but this will not be enough if you're planning to use other programs while Android Studio is running.  In that case, 8 GB is a must.  You must be using the 64-bit Ubuntu 16.04 of course.
You need to install the  Oracle JDK 8 and this can be done by adding the webupd8team java ppa to your system (sudo add-apt-repository ppa:webupd8team/java) and installing both oracle-java8-installer and oracle-java8-set-default.
Install the complete KVM/qemu on your system by following the instructions given here.
In the beginning, you will find instructions on how to check if your system's processor is ok for use with KVM.
Don't forget to log off and back on after the installation, otherwise your user will not be activated as a member of the libvirtd group and you will not be able to use KVM.
Download the latest Android Studio .zip file from the Android Developer's site and make sure you install the 32-bit support files listed over there.
NOTE: The file lib32bz2-1.0 does not exist on 16.04, so you have to install libbz2-1.0:i386 instead, using sudo apt-get install libbz2-1.0:i386.
Extract the contents of the .zip file in a folder of your choice and create a launcher for the studio.sh file you will find in the android-studio/bin folder and if everything else is ok, it should run fine.

You will need to install all the necessary libraries and images using the android SDK and create the AVD's you'll be using of course but I think you must know that already since you are a developer.  In order for the emulator to actually use KVM, you must start it using these emulator parameters:

  /pathTo/emulator -avd avd_name -qemu -m 1024 -enable-kvm

Update: The command above has been deprecated.  You can run your emulator with full hardware virtualization support now by simply using -accel on.

  /pathTo/emulator -avd avd_name -accel on

This switch is not necessary though, since the default setting for -accel is auto which means that if KVM is installed correctly, it will be used by default.

The value of 1024 is an example.  Use the same amount of memory you configured your AVD to use.  Further instructions on how to insert the parameters above to android-studio instead of launching the emulator manually, you can find on the android developers site.  Personally, I prefer to launch it manually and have it there whenever I need it.


Have root access, still permission denied upon using cat command

When sudo cat a is run, file a's contents were read and printed on the stdout with sudo privileges. The redirection of the text was handled by the shell and would be appended to file b (since >> was used). In this particular case it seems that the file didn't have permission to be modified by non-superuser.

Although running shell as root using sudo su, sudo -i or sudo -s seems to be a good idea to overcome this limitation, but it is not suggested. It might happen that shell was running with sudo privileges and unknowingly without exiting the root shell, some other command is used. And if that command is mistyped, it can cause serious harm to the system.

In such cases, cat's output can be piped and tee can be used. It is a utility which read the input from standard input and outputs to file and standard output. Since you want to append the file, -a option can be used. Therefore, the command will look like:

sudo cat f84e19a2f44c6386.crt gd_bundle-g2-g1.crt | sudo tee -a coolexample.crt

I assumed that f84e19a2f44c6386.crt and gd_bundle-g2-g1.crt didn't have permissions to be read by normal users.


Gnome Shell has turned into Gnome Classic (no effects) after installing fglrx.

Installing fglrx-updates and fglrx-amdcccle-updates fixed similar problem for me.

Don't forget to remove old fglrx first:

sudo apt-get purge fglrx*

then install

sudo apt-get install fglrx-updates fglrx-amdcccle-updates

and run

sudo aticonfig --initial

and reboot.

You should be able to run fglrxinfo and see output that confirms good installation.


Setup Postfix/dovecot/maysql - receiving mail in Maildir but not in client inbox

I figured out the problem:

/etc/dovecot/dovecot.conf

protocols = imap lmtp

and I changed /etc/postfix/main.cf

virtual_transport = lmtp:unix:private/dovecot-lmtp

Now I have another question

I need to forward mail to a virtual alias but I also need mail in the inbox.

How do I need to change the configuration to achieve that?


I would recommend you to use virtual machine like vmware and install ubuntu and learn the commands if you are new to linux because it is difficult for first time users.

but if you have no difficulty using ubuntu , just go to ubuntu official website and download the iso file and put it in a cd using poweriso and boot the computer with that cd.

all other doubts will be cleared by google.


Disable sudo permission to user from command line

The user in question has sudo privileges because it is in the admin group.  As wojox commented, you could use visudo and remove sudo privileges from the admin group, but that would remove sudo capabilities from all members of the admin group not just the one user.

Alternatively, you can remove the user from the admin group.  If screen oriented vi is considered command line enough, run vigr and delete the username from the appropriate line.

For a "pure" command line solution, try gpasswd, as it administers /etc/group and can add and delete users from groups.

root@toki:~# id -Gn username
username adm dialout cdrom plugdev lpadmin admin sambashare
                                         # ^- the group to remove
root@toki:~# gpasswd -d username admin
Removing user username from group admin

root@toki:~# id -Gn username
username adm dialout cdrom plugdev lpadmin sambashare
                                        # ^- username not a member
root@toki:~# gpasswd -a username admin
Adding user username to group admin
root@toki:~# id -Gn username
username adm dialout cdrom plugdev lpadmin admin sambashare

Below is my first answer before I realized there was a less dumb way to do it.

If you'd like a more complicated way to do this, you can use usermod.

Here's a quote from the usermod man page:

-G, --groups GROUP1[,GROUP2,...[,GROUPN]]]
    A list of supplementary groups which the user is also a member of.
    Each group is separated from the next by a comma, with no intervening
    whitespace. The groups are subject to the same restrictions as the
    group given with the -g option.

    If the user is currently a member of a group which is not listed, the
    user will be removed from the group. This behaviour can be changed via
    the -a option, which appends the user to the current supplementary group
    list.

So you have to specify all the groups for the user except for admin.

root@toki:~# id username
uid=1000(username) gid=1000(username) groups=1000(username),4(adm),20(dialout),24(cdrom),46(plugdev),111(lpadmin),119(admin),122(sambashare)

root@toki:~# usermod -G 4,20,24,46,111,122 username

root@toki:~# id username
uid=1000(username) gid=1000(username) groups=1000(username),4(adm),20(dialout),24(cdrom),46(plugdev),111(lpadmin),122(sambashare)

Finally, it violates the spirit of the question, but one could type users-admin from the command line to modify users and groups.


Graphical with "gparted". You can install it from Ubuntu software center. You can ONLY edit partitions that are not active (Windows from Ubuntu will not be so you are OK there). Otherwise create a bootable gParted DVD (always handy when you have one around)
From command line you can do this with the command "parted".


I've actually just spent the last two days fixing this problem myself. I was running 13.04 and had it happen suddenly and mysteriously, I re installed from a 12.04 disk and upgraded back up to 13.04 with the same problem continuing.

I found a lot of useful solution suggestions here and here:

Unity doesn't load, no Launcher, no Dash appears

After upgrading to 13.04 Unity interface is not showing

None of solutions in the first post fixed mine however and I ended up fixing it with:

sudo apt-get install gnome-session-fallback
sudo gnome-session-quit

then logging back in. Though it would have made sense for that to have installed gnome it seemed to instead have fixed unity and now is running like a charm.


How to fix error after a release-update to Ubuntu 12.10?

Same problem from Lenovo ThinkCentreEdge.
For my case, after the update, desktop background had lines on it but after I wiped my mouse they disappeared and back to normal. Moreover, my computer was working a lot slower and often hanged so need to reboot.
My solution is same as Diogenes, re-install Ubuntu and avoid updating.


Recover files from a broken Virtualbox machine .vdi

Of the command line

In case we use Ubuntu as a host we can convert our .vdi disk to a raw disk with the following command:

VBoxManage clonehd <sourcename> <clone.raw> --format RAW

We can then open testdisk  with this file to recover files on the virtual drive's image (also see below):

testdisk <clone.raw>

Of a virtual machine

In case the broken VDI drive image is still registered with Virtual Box we may be able to add this image as a drive to our new virtual machine:

Start your virtual Ubuntu to which we had added the broken .vdi but do not mount the drive.

Create a directory on a mounted partition there to hold the harvested data (e.g. ~/rescued),
Install testdisk  on the virtual machine.
Start testdisk from a terminal there:

sudo testdisk

Choose the appropriate drive to harvest data from (here shown for /sdb) and select [Proceed]

Choose the appropriate partition layout (usually Intel)
Select [Analyse] - [Quick Search]
Select the partition which contains the data to harvest (here only a single NTFS partition was present):

Press  P  to list files on that partiton.
Browse to the directory containing the data. View the filenames to make sure you did choose the right ones.
Select directories or files to harvest using  : . All selected files/directories will be marked green:

Press upper case  C  to copy all selected directories/files to the rescue directory which will be selected in the next step.
Choose a directory on your Ubuntu VM's mounted partition(s) to hold rescued data:

Press  c  to start copying the data from the broken .vdi to our rescue directory in your healthy VM.

Notes:

In case we can not see our files with the [Quick Search] option in 6. we may have to perform a [Deeper Search]. This will also list previous deleted and overwritten partitions. So we need to make sure we select the appropriate partitions where our data reside.
If we had taken snapshots of the .vdi we may find these in ~/.VirtualBox/Machines/<Name of Machine>/Snapshots/{###}.vmdkbut whenever we had used the snapshot feature of Virtual Box any changes from a snapshot will be written to a differential file.

To merge the differential file with the hard drive we need to delete all snapshots (which is probably not what we want as then we could just restore to previous snapshot rather than call for data recovery), or we need to clone the machine's drive using:

VBoxManage clonehd <name_of_source> <clone>

Then we bind the clone to our rescue VM as depicted above.
Writing to the broken .vdi should only be done after the data was safe as this may further damage the file system.
In case our rescue Ubuntu is too small to hold the rescued data we may create another new virtual drive to bind to the VM. This drive then has to be mounted in the VM to be able to save data from testdisk there.


Is there a way to use Ubuntu Software Center without snaps?

You can remove the snap store with the command
sudo snap remove snap-store

and install GNOME software center (if it is not already present) with the command
sudo apt install --no-install-recommends gnome-software

The --no-install-recommends ensures that snap plugins are not pulled as recommended packages.
Alternatively, you can also install the synaptic package manager, which is not an "app store", but provides a lot more functionality.
sudo apt install synaptic


Package supervisor on Ubuntu 16.04 is missing

Looking at the package in the 16.04 repository, it seems that it is in the "Universe" repository.

So, you first need to enable it:

sudo add-apt-repository universe

Then you can actually install the package:

sudo apt-get update
sudo apt-get install supervisor


Failed rebooting ubuntu 12.10 after installation in VirtualBox

Your VM is booting the ISO/CD Image, not the Installed system.
That happens because you still have the ISO or CD in the VM drive un mount it, eject it and reboot the VM.

Source and credit to Uri Herrera from comments:


dnsmasq not working when plugging in wired network

If you have also started playing with firewall rules, they may be interfering with dnsmasq.

I would direct you to my discussion of how iptables can interfere with local dns.


Xubuntu 16.04 installer hangs at "Configuring system locales..." on VirtualBox

You should be able to find out what's going on by pressing CTRL-ALT-F1 inside the VM. That should bring you into a console. Try out ALT-F(any of the function keys) inside the console.

There should be different consoles showing different things, among others some debug output on what the installer is doing. You should be able to find out what it's doing or respectively where it's stuck by looking around there.

Also there should be a shell there. You should be able to issue a ps auxw or similar to find out what's going on.


How to boot USB from GNU GRUB 2.02~beta2-9ubuntu1?

This is a deep revive but since there is no answer, I may as well do it.

In GNU GRUB command line (hit c on menu) and type ls -lh in the shell and look for the hard drive that matches your USB by size...it should tell you that it found a partition on the USB.  Then do:

set root='hd[something],[some partition]'
chainloader +1
boot

It should then proceed to boot from your USB stick partition.


ubuntu server 12.04 new installation does not boot

I just did the same thing and solved it.  In the new bios there is a switch fro UEFI mode or not.  Disable UEFI.

Secondly my new i5 ASUS motherboard switched the hard drives.  It was trying to boot off of the second drive and not the bootable one.  Both were brand spanking new 1TB drived.  I reinstalled three times!

Get into BIOS
Disable UEFI
Go to boot menu and change the bootable drive. (NOT UEFI)


How to change the default wallpaper on the custom LiveCD?

For Ubuntu 12.04 :

Here's how you can change the default wallpaper. For example, we'll set it to the included Wild Wheat (/usr/share/backgrounds/WildWheat_by_Brian_Burt.jpg):

Within the LiveCD chroot, open the following file with nano as,

nano /usr/share/glib-2.0/schemas/10_gsettings-desktop-schemas.gschema.override

Change the below line to the path for your file:

picture-uri='file:///usr/share/backgrounds/warty-final-ubuntu.png'

For our example, that becomes:

picture-uri='file:///usr/share/backgrounds/WildWheat_by_Brian_Burt.jpg`

Finally, compile the modified schemas with:

glib-compile-schemas /usr/share/glib-2.0/schemas

For Ubuntu 14.04 :

Say you want to make /usr/share/backgrounds/Reflections_by_Trenton_Fox.jpg as your default wallpaper.

Within the LiveCD chroot, open the following file with nano as,

nano /usr/share/gnome-background-properties/ubuntu-wallpapers.xml

Change the following line:

<filename>/usr/share/backgrounds/warty-final-ubuntu.png</filename>

To (in our case):

<filename>/usr/share/backgrounds/Reflections_by_Trenton_Fox.jpg</filename>

Also edit the <stringvalue> in the following file,

nano /var/lib/gconf/debian.defaults/%gconf-tree.xml

Change the line,

<stringvalue>/usr/share/backgrounds/warty-final-ubuntu.png</stringvalue>

To (in our case):

<stringvalue>/usr/share/backgrounds/Reflections_by_Trenton_Fox.jpg</stringvalue>

Source


Ubuntu running slowly after upgrade to 12.04

Switch to Unity 2D, it will make all the difference.


Accidentally Wiped Root Partition - System Still Running

It's been four days, and accepting the comments from the original question, I took the opportunity to do a fresh install of the system. (And that's why it's good for your home directory to be in a different disk...)

On the other hand, I think I accidentally (not again...) found the tool(s) that could have been used that time. "Could" was highlighted since of course, I was not able to try this. For those that can try these later (we hope not on your working system), maybe you can confirm if these really work:

testdisk from the universe repo. Their official website says: "It was primarily designed to help recover lost partitions and/or make non-booting disks bootable again when these symptoms are caused by faulty software: certain types of viruses or human error (such as accidentally deleting a Partition Table). Partition table recovery using TestDisk is really easy."

There you go, automated.

gpart from the official repos. The Wikipedia article says, "It is also good at finding and listing the types, locations, and sizes of inadvertently-deleted partitions, both primary and logical. It gives you the information you need to manually re-create them (using fdisk, cfdisk, sfdisk, etc.). The guessed partition table can also be written to a file or (if you firmly believe the guessed table is entirely correct) directly to a disk device."

Well, learning is a great thing. ;-)

PS

To install: sudo apt install testdisk gpart


Can't get Nvidia 880M to work on my Asus G750JZ

I am a user of Asus FX553VD (also with dual graphics), and I just made everything work with bumblebee. There were significant changes in nvidia install, so majority of guides won't help you.

For different reasons nvidia-prime doesn't work well with some laptops, so I recommend you using bumblebee.

Bumblebee is a package that let's you run different packages on discrete card, and only when it get's called, card turns on, so you have nice power management.

Firstly, install bumblebee by sudo apt install bumblebee

If you have nvidia-xxx driver then you don't have to reinstall, else if you have nvidia-driver-xxx I couldn't get it work with bumblebee, but if you will, let me now.

Anyway, do sudo apt purge nvidia* - to purge your nvidia packages, and do sudo apt install nvidia-390 - most stable version by now.

DON'T REBOOT!!!

Secondly, do prime-select intel, to select your intel card. Now you can reboot.

Thirdly, we have to configure our bumblebee.conf file, which is located in /etc/bumblebee/bumblebee.conf. You can do this by sudo nano /etc/bumblebee/bumblebee.conf.

In [bumblebeed] section change Driver= to Driver=nvidia.

In [driver-nvidia] section change your KernelDriver= to KernelDriver=nvidia, LibraryPath=.. to LibraryPath=/usr/lib/x86_64-linux-gnu:/usr/lib/i386-linux-gnu and XorgModulePath=... to XorgModulePath=/usr/lib/x86_64-linux-gnu/nvidia/xorg,/usr/lib/xorg/modules,/usr/lib/xorg/modules/input

Now, go to /etc/modprobe.d/bumblebee.conf, and blacklist nvidia-390 as earlier drivers had been, just by changing driver version.

After that look for any file in /etc/modprobe.d/ for having alias nvidia off. If any does, comment it, so it look like this - #alias nvidia off. Also check /lib/modprobe.d/ folder, and do the same thing.

Finally, you can reboot and try your optirun.

P.S: I was managing to get it working for a week, and just fixed everything.


According to this response, the problem lies with the .sh extension. Remove that (so for example rename your file from rkhunter.sh to rkhunter.
To confirm run the following command run-parts --test /etc/cron.daily
If your script (rkhunter) is included in the results, all is good. For more information on the run-parts command, read the man pages on it man run-parts