Copy files and folders to Nexus 7 from Kubuntu

I provide here two very acceptable workarounds. Trying to make mtp work for my N7 seriously broke my OS.

Through USB with adb (command line)

adb is android debug tool. It lets you access your android device through the command line. You don't need root (though it doesn't hurt).

install adb

sudo apt-get install adb

Enable usb debugging on android

In order to get access to the developer options, go in 'settings > about tablet' and tap 7 times on the 'build number' field. Then come back to the 'settings' and you will have a new 'developer options' field. Go in there and enable USB debugging.

Move files around.

From your terminal:

adb push ~/Documents/example /sdcard/Ubuntufiles/

Will move a file called 'example' from your Document folder in your Ubuntu Home to the folder 'Ubuntufiles' on your N7's 'sdcard'.

Bonus mode

Using the following command from Ubuntu:

adb shell

you get a remote terminal to your N7, where you can do stuff the GNU way.

Wireless, GUI

This might be off-topic, but if your aim is to move files between your computer and your N7, then the USB prerequisite might not be needed. As long as your N7 and your computer are connected to the same router.

Download an app that creates an FTP server on your N7.

People seem to love 'software data cable', but it really sends you a barrage of apps. 'File expert' is a file browser that doubles as FTP server, SSH server and plenty of other cool stuff. So that's what I use.

Activate the FTP server on your N7.

On 'software data cable', there's a huge 'start service' button (brace yourself for fullscreen ads). On 'file expert' : My tools > Share content > Share via FTP

It will show you the IP address and the connection creds you need to feed to Ubuntu.

Connect to N7 from Nautilus on Ubuntu

Nautilus is your file browser.

You need to only do that once. In the future, you'll have a shortcut in Nautilus.

File > Connect to server. A little window shows up that asks you for the very information that your android app is displaying. Input them and hit 'Connect'.

There you are. A file browser window with the content of your N7. Move files around to your heart's content.


To remove your account from Chromium click on your name on the top right which should open a settings menu:

On choosing Manage people another window will pop up. On hovering the mouse to the top right corner of any account that is present on your Chromium installation you can click on a Hamburger menu that appeared there (three dots):

Choose Remove this person and proceed with a confirmation to have your account permanently removed.

  Warning: this will delete all of your account including saved passwords, extensions, history, etc. If you do not want this you should only sign out as depicted below.

To only temporarily surf with another account including a guest account you can choose to sign out or add account from the Google settings that appears in the Window:


What is TCP6 773/cupsd ? why is it listening and why the ip is not cleared?

The tcp6 means an IPv6 address is being used, as evidenced by the ::1:631 :::* listing. Also, it's a localhost connection as ::1 is the IPv6 address used for the lo network interface, similar to 127.0.0.1 on IPv4.

All of the addresses listed in your question, are only accessible via the lo interface, and not from the external Internet.


How to assign a serial port to my bluetooth phone?

Is it possible that your phone doesn't have serial port support?  My old blackberry didn't.
I'd also advise you to try Blueman, which can scan and show the services available on your phone AND automatically bind it to network manager for tethering (although admittedly I think the latest bluez does that second part too now).


Is it possible to run a desktop GUI VM Container on linux with any linux image

while not really made for it something that would appear like a classic VM (as outlined by @xenoid) you can achieve "a full remote desktop in the container" via xrdp, see this reddit post for some details.

The TL;DR would be:

$ sudo apt install xrdp
$ sudo apt install xorgxrdp
$ sudo apt install xrdp-pulseaudio-installer

I think depending on the ubuntu version you might need to enable the services and then connect with the RDP client of your choice.


Both cores of my cpu jumped to 100%, fans went up to full...

Some CPU heavy background process probably ran. Probably candidates:

updatedb, which indexes your files for quick searching.
Any apt-related process, like apt-check. These keep your packages up to date and indexed. update-apt-xapian-index in particular uses quite a bit of CPU and IO.

Other timed tasks are typically not very CPU intensive. You can find then in the /etc/cron.X/ directories.


Can someone explain the HWE stack LTS package suffixes (e.g. -lts-utopic)?

You are correct. The -lts-wily shows that it is a package from Ubuntu 14.04.4 HWE Stack.

Older ones are available because people have other HWE stacks installed and the should have compatible packages.

Another reason is to let users downgrade to another HWE stack.

Packages from another stack are installable, but it is a bit tricky. You can't install a standalone package, you need to replace all of them.


Unable to start resolvconf-pull-resolved

I think the service is working fine it's just not expected to continue running. It runs this command:

/bin/sh -c cat /run/systemd/resolve/stub-resolv.conf | /sbin/resolvconf -a systemd-resolved

Reading the man page for resolvconf shows:

  The resolvconf package comprises a simple database for run-time nameserver information and a simple framework for notifying applications of changes in that information.  Resolvconf thus sets itself up as the intermediary between programs  that supply nameserver information and applications that use that information.

  Information is added to or removed from the database using the resolvconf program.  See the OPTIONS section below for a discussion of the available options.

And the -a option:

  -a IFACE.PROG

  Add or overwrite the record IFACE.PROG then run the update scripts if updating is enabled.  When  this  option  is  used the information  must be provided to resolvconf on its standard input in the format of the resolv.conf(5) file.  Each line in the file must be terminated by a newline.

It appears it creates the resolvconf database and then exits.


Can you create an executable telnet application on the desktop?

Using a simple desktop file:

Create a new file in ~/.local/share/applications

nano ~/.local/share/applications/telnet.desktop

Add the lines below

[Desktop Entry]
Name=Telnet localhost
Comment=Telnet client
Exec=telnet localhost
Icon=terminal
Type=Application
Terminal=true
Categories=Utility;
StartupNotify=true
StartupWMClass=telnet

The line Exec= …, two possibilities

Exec=telnet localhost

I'm using localhost as target host. replace localhost with your target host.

OR

Exec=/full/path/to/your/telnet_script

Use your own script if you want, eg

#!/bin/bash
telnet localhost

Make the script executable and add the full path to your script to the Exec= property


How to turn on laptop's functional keys?

The base install of Ubuntu 12.04 doesn't support, by default, the keyboard functions for your particular machine. You'll need to install drivers for it, basically. Help.ubuntu.com has an awesome wiki page detailing how you can go about doing that.

I highly recommend alternative 1 (from the wiki page):

Go here and download the attached .deb file
Run the following to install it:

gzip -d asus-wmi-dkms_999.01_all.deb.gz
sudo apt-get install dkms
sudo dpkg -i asus-wmi-dkms_999.01_all.deb


I also had the same problem with you. Sometimes I can't connect to the network after my laptop is suspended.

I typically restart the network with this command:

sudo service network-manager restart

Hope it helps.


how to install KeePassX 2.0 Alpha on ubuntu

I didn't have any trouble building from source:

# Assuming you have basic build tools already installed
sudo apt-get install cmake libgcrypt11-dev
git clone https://github.com/keepassx/keepassx.git
cd keepassx/
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local
make 2>&1 | tee make.log
sudo make install 2>&1 | tee make-install.log


How do I deploy havana instead of grizzly?

Have you followed Havana installation guide for steps other that apt-get install openstack-dashborad ?

you can find it here http://docs.openstack.org/havana/install-guide/install/apt/content/install_dashboard.html

check also the note for Ubuntu users

Remove the openstack-dashboard-ubuntu-theme package. This theme prevents translations, several menus as well as the network map from rendering correctly:

# apt-get remove --purge openstack-dashboard-ubuntu-theme


Customized distro+persistence to ISO, how to make it work?

Have you considered MX Linux (antiX + MEPIS) or antiX Linux?

https://antixlinux.com/the-most-extensive-live-usb-on-the-planet/

The MX Live USB Maker that is inlcuded with MX Linux is great for this sort of thing and setting up persistence is very easy. You can build the whole system you like then clone it straight to a USB stick with all the persistence settings carried over.


Cannot find Tamil phonetic and tamil99 input method in Ubuntu 20.04

I installed all m17n-* ibus-* packages and it still was not working. The Tamil input method was shown in neither ibus-setup or [Region & Language] pane from Gnome settings.
The problem was the directory where the m17n files reside i.e /usr/share/m17n/ was empty. my friend who is also on Ubuntu 20.04 took control of my machine and figured this out. we copied the files under /usr/share/m17n from his machine to mine and it works now.
Note: The Gnome [Region and Language] settings seems to work independently of ibus-setup config because

even though the ibus was selected as the default input methods in [Language Support] dialog from Gnome
and Tamil input-methods (phonetic, tamil99) were added via ibus-setup,

the input methods listed via both hotkey, button on the dock are the items from [Region and Language] settings.
Once I added the input methods using [Region and Language] settings pane I am now able to type in Tamil.


How can I bring back the title bar in Nautilus and Document viewer?

You can get your classical title bar back by installing gtk3-nocsd using Synaptic package manager or the command line:
sudo apt install gtk3-nocsd

While this will perfectly answers your question as you asked it, note that this will not bring back a classical menu bar. This package merely returns control of the windows decorations (titlebar, window control buttons) to your window manager.
More information on how to configure the tool can be found on the projects Github page.


This package is in universe repository of Ubuntu. So make sure you have enabled universe in /etc/apt/sources.list

To install it use the command:

sudo apt-get install mingw32

It will install packages mingw32 mingw32-binutils  mingw32-runtime automatically

and

sudo apt-cache search mingw32

mingw32 - Minimalist GNU win32 (cross) compiler
mingw32-binutils - Minimalist GNU win32 (cross) binutils
mingw32-runtime - Minimalist GNU win32 (cross) runtime

no need to select one. These packages are dependency of mingw32

Note : Currently these packages are available in trusty, utopic and earlier version of Ubuntu. If you are using the latest Ubuntu version then check Ubuntu package search if package available or not. If not then either download package and install manually or download source and compile it.

EDIT:
You can also try this:

For 32bit system:

wget http://archive.ubuntu.com/ubuntu/pool/universe/m/mingw32/mingw32_4.2.1.dfsg-2ubuntu1_i386.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/m/mingw32-binutils/mingw32-binutils_2.20-0.2ubuntu1_i386.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/m/mingw32-runtime/mingw32-runtime_3.15.2-0ubuntu1_all.deb

For 64bit system

wget http://archive.ubuntu.com/ubuntu/pool/universe/m/mingw32/mingw32_4.2.1.dfsg-2ubuntu1_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/m/mingw32-binutils/mingw32-binutils_2.20-0.2ubuntu1_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/m/mingw32-runtime/mingw32-runtime_3.15.2-0ubuntu1_all.deb

Install these packages using the command:

sudo dpkg -i *.deb

If it shows dependencies then use command :

sudo apt-get install -f

and again install

 sudo dpkg -i *.deb


Canon MG2550 PIXMA "Simple Scan : no scanners available, Ubuntu 14"

Be happy Canon provides the software at all!  Even though the scanner and printer drivers are not .debs, they are easy enough to install.

Download the cnij* and scangear* zip files appropriate for your printer from the link you provided.  Unzip them in the Downloads folder.  Then open a terminal and navigate into the folder that was created when you unzipped one of them.  Type sudo ./install.sh and provide your password when asked. Then navigate to the other folder and repeat. You're done!


How to select a file without opening it?

It surprises me that hovering doesn't work, but you can drag to select a small area covering only that file, the way you'd drag to select multiple files.


I can't install ubuntu-restricted-extras

Juste wait a few seconds and try again.
It's probably because a background process is currently checking for updates.


What has changed to prevent Java programs from running via the permission bit

The answer is to register the desired binaries with the binfmt-support service.

Studying the difference between what is on my 16.04 installations and my 14.04 installation, I found that the previous Ubuntu version had a larger list when running the command update-binfmts --display.

The list includes a jarwrapper.

Installing the jarwrapper resolved the issue:

$ sudo apt install jarwrapper

The binfmt-support is a service that c an be configured to detect what is needed for running various type of files, including calling Wine to run Windows exe files.

Details for using the binfmt-support service can be found by studying the update-binfmts man pages.

Curious as to why the default support was dropped.  But I'm glad to be able to manually restore this support to my computers.

Note

By the way, the program type isn't determined by the extension.  It's determined by the application binary header.  So the application can be named anything, without an extension.


How do I run Packet Tracer 6.0.1 on Ubuntu 12.04.3?

Try with

sudo sh ./CPT601

Or

sudo bash CPT601


After installing ubuntu-desktop-mir package problem gone :)


Search recursively for all files with a .sql extension and pass them to mysql as argument

I believe this will work

find . -type f -name '*.sql' -exec bash -c 'cat '{}' | mysql' \;

Basically the above finds all files ending in .sql (I put the -type f in there just in case there are any directories that end in .sql).  For each file found, find runs the exec command.  The exec runs a bash sub-shell that cats the file and pipes that to the mysql program.

Hope this helps.


The" Interface" on Qjackctl is grayed out, how do I fix this?

I figured it out. To make it so that the interface is not grayed out, go to this setting in Qjackctl.

Then, click on the "up" arrow and go to dummy, then scroll back down to alsa. That will make it so that the interface is not grayed out.


Is there any need of antivirous program such as microsoft windows?

Yes you can install clamav》
"sudo apt-get install clamav"
However in linux it is not necessarily necessary. I would read the link posted above.


How to set permissions for /ttyUSBn and /ttyACMn

The answer here worked for me:
https://askubuntu.com/a/112572/241037

Since the ttyUSB device shows up as the following:

crw-rw---- 1 root dialout 188, 0 Jan 28 09:37 /dev/ttyUSB0

Add the user to the dialout group with command:

sudo adduser _user_ dialout

logout, then log back in...


Found an answer myself.
the default font that conky manager used wasn't supporting korean.
I fixed the config file and changed to a korean-supporting font.


Disable graphical terminal in grub2.

To disable graphical terminal:

Edit /etc/default/grub
Uncomment #GRUB_TERMINAL=console
Update grub with sudo update-grub
Reboot

You could also try changing the terminal resolution in /etc/default/grub instead.


High GPU RAM and power usage after nvidia-drivers update

I changed drivers from nvidia driver version 440 to 430 which seemed to have solved the RAM issue and power management. Reinstalled 440, and it now does not have the problems as stated in the question. Guess the way to fix it was to reinstall it.


the standard places where *.desktop-Files are stored are:

/usr/share/applications/ and

~/.local/share/applications/

To check if there is an ark in these folders I'd in a Terminal (Ctrl+Alt+t) do a:

ls -la /usr/share/applications/ | grep -i 'ark' and

ls -la ~/.local/share/applications/ | grep -i 'ark'

if so I'd delete it with sudo rm <pathtofile>/<*.desktop-file>, sudo is not necessary when deleting the file in your home folder.

Afterwards, or even if there is no arc*.desktop-File I'd do a forced update to my menu via:

sudo xdg-desktop-menu forceupdate --mode system


upgrading pdftk 1.41 to 1.44 how can I check for breaking changes?

Check out the history file: https://github.com/onehub/pdftk/blob/master/changelog.txt
I guess this will only give you an idea, where to look more detailed. In fact you should re-verify the whole function.


When you boot your LiveCD, press "e" to access the grub boot parameters.

Find this line:

GRUB_CMDLINE_LINUX_DEFAULT=

And add the following: "usbhid.quirks=<keyboard quirk>", in quotes, after GRUB_CMDLINE_LINUX_DEFAULT=.

You will need to research the line for your keyboard. For example, if you have a Corsair Keyboard, you need to change the <keyboard quirk> section of the command.

K65 RGB: usbhid.quirks=0x1B1C:0x1B17:0x20000408
K70: usbhid.quirks=0x1B1C:0x1B09:0x0x20000408
K70 RGB: usbhid.quirks=0x1B1C:0x1B13:0x20000408
K95: usbhid.quirks=0x1B1C:0x1B08:0x20000408
K95 RGB: usbhid.quirks=0x1B1C:0x1B11:0x20000408
Strafe: usbhid.quirks=0x1B1C:0x1B15:0x20000408
Strafe RGB: usbhid.quirks=0x1B1C:0x1B20:0x20000408
M65 RGB: usbhid.quirks=0x1B1C:0x1B12:0x20000408
Sabre RGB Optical: usbhid.quirks=0x1B1C:0x1B14:0x20000408
Sabre RGB Laser: usbhid.quirks=0x1B1C:0x1B19:0x20000408
Scimitar RGB: usbhid.quirks=0x1B1C:0x1B1E:0x20000408

Example:

GRUB_CMDLINE_LINUX_DEFAULT="resume=UUID=376b974a-9cc7-4a48-9e6a-de19471107f2 usbhid.quirks=0x1B1C:0x1B12:0x20000000 quiet splash"

Hopefully this should work. However, after the installation, you need to add these commands to /etc/default/grub. Changes to the kernel parameters at boot are not persistent.

Use:

sudo gedit /etc/default/grub

Insert the line after GRUB_CMDLINE_LINUX_DEFAULT=, exit, and run the command:

sudo update-grub


This used to be a problem and at the time it turned out you need to disable touchpad tracking while typing. A solution was found, but I am unsure whether the same solution will work for you. Worth a try though. Run synclient TouchpadOff=0. This solution can be seen at this forum.


14.04: re-enabling unity style notification in unity after xubuntu-desktop install?

Remove xfce4-notifyd:

sudo apt-get remove xfce4-notifyd


Test this:

Switch on your computer.

Wait until the BIOS has finished loading.

Press and hold the Shift key, which will bring up the Grub menu.

Select Advanced options.

Select the line ending with recovery mode, something like:

Ubuntu GNU/Linux, with Linux 3.16.0-23-generic (recovery mode)

Press enter to boot.

In a sub menu with a number of options.

Select:

Network.
and
Drop to root shell prompt.

In a terminal

Run it

mount -o remount,rw /
mount --all
dpkg --configure -a
apt-get update
apt-get dist-upgrade
apt-get autoremove
apt-get install --reinstall xubuntu-desktop
apt-get clean
reboot


SSD on Ubuntu 12.10 Much Slower than on Win7

I'm surprised the difference is that great. I don't know the answer, and I have never compared I/O on a dual-boot system, but I have a few ideas.

I don't recognise the errors you got from your benchmarking program, but they can't be good. Another test for you: are there any anomalies in your disk self-monitoring data? (For example, execute gnome-disks and look for SMART data. Does it judge an OK assessment for all the attributes?)

gnome-disks also can run isolated read and write tests. I have never run a write benchmark on my SSD and I never will, but the read benchmarks are always satisfying. Are you getting advertised isolated I/O speed? Also it might be interesting to break out separate read and write speeds during your file copy, and compare to those isolated speeds from the gnome-disk benchmark. iostat -m during the copy will give you those numbers. (iostat is in the sysstat package on Debian/Ubuntu.) That's probably not terribly practical advice, but something shocking could possibly rear up.

Is your Linux file system itself in good shape? fsck is the program for finding out, but it's difficult to run on a working file system. It's easiest I think to sudo touch /forcefsck and reboot.

Say, you're not using Ext3, are you? This might be, if you upgraded to Ubuntu 12.10 over an older distro. Ext3 does not handle gigabyte-size files as efficiently as Ext4. Perhaps that's a factor. mount (just mount, no parameters) will identify the file system in play.

You may be seeing an effect of the programs you're using to do the file copy. The cp command for example, I think it isn't terribly fast or efficient. (I gather however you're using some GUI, not cp. That adds more variables though. You never know what a program is really thinking behind its GUI.)

I can't imagine noatime would have any measurable effect on copy speed of a single file. (Even so, I use it on my SSD.) discard won't help, and may slow copying. discard you know, encourages the file system to take care of the flash memory erase pass as early as possible. I'm not certain that it even works in Ubuntu 12.10 / kernel 3.5. In any case for best benchmark results, you are better served by TRIMming an SSD before the test, and this may make a large difference in write speed indeed. sudo fstrim /home for example.

The web is full of advice for other performance adjustments. It's common SSD advice to adjust your disk I/O scheduler and file system journaling enthusiasm. Here's a thread extolling the virtues of data=writeback journaling. In my opinion that advice is slightly off the mark, but it might make a difference. Some journaling configurations would be genuinely slower, but you wouldn't be using data=journal by accident.

What am I saying anyway? System performance can be home to a thousand variables. In my opinion on a few popular choices, regarding speed of copying one file: noatime, I don't see it. data=writeback possibly. discard surely not. fstrim quite possibly. fsck maybe. Outside the worrisome benchmark I/O errors you mentioned, I would guess Ext3 or an unTRIMmed disk may account for some part of the discrepancy you're seeing.


You need libpulse-dev .

How did I find that?

cannot find -lpulse

Means you need the pulse library (remove the -l prefix in your head to see it). So here we have two keywords: lib and pulse.

To compile libraries into your own project you usually need header files or the static version of the library. These are included in the "development package" of libraries. In Ubuntu (and Debian) you'll find them in -dev suffixed package names.

So, then the first thing you do is find a package based on lib, pulse and -dev. And hey, it exists: libpulse-dev!

Alternatively, you can use the http://packages.ubuntu.com site to find packages which contain a certain file - in this case your linker was looking for libpulse.so file (read more about the GNU linker why this exact filename). By searching the file on that site you also see the package listed.


Item type in menu of Applications: "Application" or "Application in Terminal"?

Application is something with separate UI, for example calculator or GIMP.

Application in Terminal is command line software, that should run inside of terminal emulator. Otherwise you can't interact with it.

Basically, select Applucation for software with graphical user interface and Application in Terminal for command line utilities and scripts.

You can test this with 'top', for example, create shortcut with and without terminal, and you can see the difference.


how to run this script in cron.d every minute?

Focusing on the cron entry rather than the content of the script, assuming the script is ~/foobar.sh, to run the script every minute as cron job, open your cron table by crontab -e and add:

*/1 * * * * ~/foobar.sh

Make sure the script is executable at first.

*/1 in the minute column will make crond to execute the script every minute, while if you put just 1 the script will be executed only on the first minute of the given hour(s).


Unable to boot on windows after installing ubunu

Before proceeding to any further make sure the Ubuntu System Architecture you are trying to use is supported by you processor then,

Try Boot-repair  to repair you grub , for doing so you have to boot ubuntu live usb or dvd and after booting click on try-ubuntu.

When desktop screen appears press Ctrl+Alt+t  for opening terminal and run the follwing commands into the terminal -

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

After that the boot-repair window will appear ,in that select Recommended repair option . After completion restart your pc .it will be fixed. If you need assistance clcik on the link mentioned in first line.

hope it will work.


Need to invoke .sh when php webpage load

The location of the shellscript is important, and the path you're using are important. Even if alert.sh is located at /var/www, the current working directory can be different. Use echo getcwd(); to get the current working directory. With an absolute path, you would use:

shell_exec('/var/www/alert.sh');

The second possibility (most likely) is that the file mode (file permissions) is insufficient. The Apache webserver runs as user www-data. If the alert.sh is owned by you, has your group and has execute permissions for the owner only, the apache server cannot execute it. Possible permissions (practicing the least privilege rule) are:

755 - owner: you - group: you
750 - owner: you - group: www-data
644 or 640 - owner: you - group: you or www-data

The last option works only if you execute the script like shell_exec('/bin/sh alert.sh'). The shell program /bin/sh only needs to be able to read the script after which the data is executed.


Unfortunately, on 16.04 the fglrx drivers became deprecated.

You'll need to use the open-source amdgpu driver instead.

From the release notes:

  fglrx

  The fglrx driver is now deprecated in 16.04, and we recommend its open
  source alternatives (radeon and amdgpu). AMD put a lot of work into
  the drivers, and we backported kernel code from Linux 4.5 to provide a
  better experience.

  When upgrading to Ubuntu 16.04 from a previous release, both the fglrx
  driver and the xorg.conf will be removed, so that the system is set to
  use either the amdgpu driver or the radeon driver (depending on the
  available hardware).


libjpeg-turbo8-dev broken package dependencies (16.04)?

As mentioned in the comments

you have the libjpeg-turbo8-dev package on Arm64 architecture like at apt-cache policy appears

libjpeg-turbo8-dev:
  Installed: (none)
  Candidate: 1.4.2-0ubuntu3
  Version table:
      1.4.2-0ubuntu3 500
        500 http://ports.ubuntu.com/ubuntu-ports xenial/main arm64 Packages

you get the errors :

The following packages have unmet dependencies:
 libjpeg-turbo8-dev : Depends: libjpeg-turbo8 (= 1.4.2-0ubuntu3) but 1.4.2-0ubuntu3.1 is to be installed
E: Unable to correct problems, you have held broken packages.

Couse you're not selected that package as Arm64 architecture. try to type

sudo apt-get install libjpeg-turbo8-dev libjpeg-turbo8=1.4.2-0ubuntu3

Hope this helps.


Forward a certain website to a different IP locally

If you want to redirect 'illegalsite.com' site to a local Ip address, add the following line in /etc/hosts

194.249.214.55 illegalsite.com www.illegalsite.com


No HDMI output when using Intel Graphics

After doing plenty of research for months, my conclusion is the following:
The HDMI port is directly connected to the NVIDIA GPU (as suspected), and there is no way to forward that port to the Intel GPU with the current drivers (and the drivers will not get support for it anytime soon). If you are on the NVIDIA proprietary drivers, you can use NVIDIA PRIME to switch to the NVIDIA GPU. If you do, the HDMI port works. What happens in Windows (AFAIK) is that when you plugin the HDMI cable, it automatically switches the OS to the NVIDIA GPU.

My way of working around this limitation is to utilize the USB-C/Thunderbolt port on the laptop instead, through a USB-C -> HDMI adapter. That way, the monitor gets connected to the Intel DisplayPort instead, which works both when you are using the NVIDIA GPU and when you are using the Intel GPU (and with e.g. Bumblebee).


Configure vsftpd to chown uploaded files

Read man 2 chmod, especially the part that says:

   S_ISGID  (02000)  set-group-ID (set process effective group ID on execve(2); mandatory locking, as described in  fcntl(2);  take  a
                     new file's group from parent directory, as described in chown(2) and mkdir(2))

You could probably use this to make all files created in the directory in the www group, and change your web server's umask value to 022

To do this safely, read and reread man 2 chmod, man 2 open, man 2 stat and anything pointed to in the See Also: sections. Learn how Linux deals with file and directory permissions for fun and/or profit!

Or, you could install inoticoming - trigger actions when files hit an incoming directory, and do your thing whenever a file hits.


The default setting in Debian (and hence Ubuntu) for OpenSSH Server is to deny password-based login for root and allow only key-based login. Change this line in /etc/ssh/sshd_config:

PermitRootLogin without-password

to

PermitRootLogin yes

And restart the SSH server:

sudo service ssh restart


Enabling multitouch, right-click, screen-keyboard, pitch-zoom, etc. on tablet

Execute lsusb commmand, find your touchscreen ID in the output (looks like 04e7:0022) and check if it's present in this list of supported multitouch devices:

http://lii-enac.fr/en/architecture/linux-input/multitouch-devices.html

If it's not you can try enabling it and reporting compatibility here:

http://lii-enac.fr/en/architecture/linux-input/multitouch-howto.html


FWIW; A bash function:

function setdbr ()
{
    if [ "$1" == "" ]; then
        echo "Current displays, numbered:"
        xrandr \
        | sed -nre 's/^([^ ]+ connected.*)$/\1/p' \
        | cat -n
    else
        xrandr --output $(xrandr \
        | sed -nre 's/^([^ ]+) connected.*$/\1/p' \
        | head -n $1 \
        | tail -n 1 ) --brightness $2
    fi
}

  setdbr

... shows a numbered list with the displays available

  setdbr n brightness

... adjusts brightness accordingly for display, where:
"n" is one of the numbers from the list, and
"brightness" is to be a 0.0-1.0 value;
  1.0 is normal,
  0.5 is 50%,
  Values larger than 1.0 also "work" but looks weird (at least here).


3rd party tools such as MagicISO often do not create the Ubuntu installation media properly.

Use the diskpart tool from Windows - open command prompt as administator and execute :

diskpart
list disk
select disk *
clean
create partition primary
active
format fs=fat32 quick
assign letter=**

Note : * = number of USB drive | ** = select a free drive letter

Mount the ISO file and copy all the content to the USB drive.

Disable hibernation and Fast startup - open command prompt as administrator and execute:

powercfg /h off

Open the old version of the Windows Control Panel -> Power Settings : uncheck Fast startup.

Shutdown the machine completely - do NOT reboot the PC.

Turn on the computer and boot from the USB (entry with UEFI).

Install Ubuntu and after the reboot select Ubuntu as default in BIOS.

Now you can choose which operating system to boot from the GRUB menu.


ui cant install forticlient on ubuntu 18.04

If it is urgent you can try using the terminal

Installing Forticlient on Ubuntu 18.04 LTS

Install gpg key

wget -O - https://repo.fortinet.com/repo/ubuntu/DEB-GPG-KEY | sudo apt-key add -

Add the following line in /etc/apt/sources.list

deb [arch=amd64] https://repo.fortinet.com/repo/ubuntu/ /bionic multiverse

Update package lists

sudo apt-get update

Install FortiClient

sudo apt install forticlient


How to restore correct window control behaviour in Gnome?

I finally found the answer in the most unusual of places:

It was the display manager at fault somehow. Switching from SDDM to GDM solved the problem.


How to add the kill button in xfce4-panel 4.10.0 of Xubuntu 12.10?

Create new launcher, type xkill into command field.


MacBook: Blinking cursor after creating SWAP

My initial thought is that this may be related to a hybrid MBR. Depending on how you create the partitions, the total number of partitions may be important in determining which ones are in a hybrid MBR, or even in whether a hybrid MBR is created at all. This in turn could affect the boot process, particularly if you install Ubuntu in BIOS/CSM/legacy mode rather than in EFI mode. I have some thoughts about how to work around this problem:

Use rEFInd's EFI filesystem drivers -- If you're trying to boot Ubuntu by using a BIOS-mode GRUB, you may be able to install an EFI filesystem driver for whatever filesystem holds your kernel (ext4fs by default). This will enable rEFInd to boot the Linux kernel directly, which will bypass GRUB and whatever problem it's encountering.
Install Ubuntu in EFI mode -- If you re-run the installation in EFI mode rather than in BIOS mode, you might bypass the problem. The trick here is to figure out how to launch the installer in EFI mode. See this page of mine for information on the CSM; but that page is written mainly for UEFI-based PCs -- there are some Mac-specific quirks.
Omit the swap partition, and instead use a swap file -- You can install without a swap partition but still use swap space; see this question and its answers, to name just one reference, for information on how to do this.

Note that the first two options assume you've got a 64-bit EFI in your Mac. I suspect this is the case, based on the specs listed here; but if they're in error or (more likely) if I've misidentified your computer, you might have one of the few Macs with a 64-bit CPU and a 32-bit EFI. In this case, installing in EFI mode becomes much more complex, and some methods require installing a 32-bit version of Ubuntu, rather than a 64-bit version. The rEFInd about/info screen should tell you whether you've got a 32-bit or a 64-bit EFI.


VLC: Unattended video playback of sporadic UDP video source?

If you want to make a kiosk, make a kiosk. Simply put, stop loading Unity and all that and just load VLC. I've been over this quite recently with another user. That should get you into a clean environment. Obviously they're loading a script as a user called thomas, but it shouldn't take too much imagination to customise that to your usage:

exec su -c "startx /etc/X11/Xsession /usr/bin/vlc -f udp://@:PortNumber --" jccyc

Or you could have a separate script that launched VLC and call that from the Upstart job. Either way, not a tough thing to do and aside from Unity being able to bother you, it also means it's a lighter, faster to load desktop.

As for the background cone, go to Tools → Preferences → All → Interface → Main interfaces → Qt and scroll right to the bottom and uncheck "Display background code or art". That should leave you with a blank screen. (Nabbed from the forums)

It might also be wise to call VLC with these arguments if you aren't already:

vlc --fullscreen --no-mouse-events --loop --no-osd udp://@:PortNumber


How do I make my computer automatically boot into Windows instead of Ubuntu?

You could try this:

alther the grub

and enter this in the terminal:

sudo -I
gedit /boot/grub.cfg

and then type this in where its run the windows:

fi   uuid=ntfs  set root=c:/
     echo 'starting mokmanager'
     nfts mokmanager.efi
     ehco 'starting windows'
     ntfs c:/windows/win.exe

and it might work fine this way.


Can someone recommend a capture card that will work with Ubuntu 64bit, XBMC, that I can buy in the US

I'm using Ubuntu 12.04 AMD (64-bit OS) running mythbuntu .26 on an old pentium core duo as my mythtv backend (PVR and file server), 2 HDhomerun Dual OTA tuner boxes (attaches to network via ethernet), 2 Antennas Direct DB4e, XBMC Frodo (with Live-TV) running on various XBMC clients (Laptops, Desktops, Zotac ID84, raspberry Pi, latest LG Android Nexus phones)

I use the cmyth pvr plugin in XBMC to connect my XBMC clients to the mythtv backend.

Works great!


Night mode and brightness adjust not working in Ubuntu 20.04 LTS

I am ASUS TUF-17 series user having ryzen 5 processor.
and currently installed 20.04 LTS focal-fosa release in it.
So here is my solution for controlling so bright white light on your laptop, hope it'll helped out for other users too-
First of all,
Plzzz, Plzzz, Plzzz didn't do anything for your brightness ,if you have ASUS A15,A17 or any ASUS ROG series or gaming laptop.
I tried all of the possible ways to do so-
Neither changing the

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor"

is worked,nor

any changes in grub file config.

This NVIDIA problem is so frustating.
or You will get stucked into infinity reboot .
*The simplest way to reduce eye strain is to install Redshift App for linux.
#1) Redshift
you can, using this command-*
sudo apt-get install redshift

sudo apt-get install redshift-gtk

sudo apt update

This app is so beautifully optimises brightness intensity automatically,You just didn't need to control brightness.
Now, You can use different IDE's with having white background easily in late night hours.
Some More App I personally suggest you for your eye-care is-
#2

Safe Eyes   ____"available in ubuntu store" .......(it'll let you make some breaks in long working hours)

#3

Screen Shader .......(it is a chrome extension for more light filtering)

That's ALL.
Now, You didn't need to worry about your Brightness


Is there an alternate keyboard combination for the Up key in bash?

You could, if it helps type !-1 which would be the last command you typed.

If you wanted the second last you typed then !-2 and as the man history says:

Event Designators

An event designator is a reference to a command line entry in the  history  list.
Unless  the reference is absolute, events are relative to the current position in
the history list.

   !      Start a history substitution, except when followed by  a  blank,
          newline, = or (.
   !n     Refer to command line n.
   !-n    Refer to the current command minus n.
   !!     Refer to the previous command.  This is a synonym for `!-1'.
   !string
          Refer  to the most recent command preceding the current position
          in the history list starting with string.
   !?string[?]
          Refer to the most recent command preceding the current postition
          in  the  history  list containing string.  The trailing ? may be
          omitted if string is followed immediately by a newline.
   ^string1^string2^
          Quick substitution.  Repeat the last command, replacing  string1
          with string2.  Equivalent to ``!!:s/string1/string2/'' (see Mod‐
          ifiers below).
   !#     The entire command line typed so far.

You can also use CTRL+P to go back one history command at a time.
Use CTRL+N to go forward one history command at a time.


Switching to nvidia graphics (nvidia prime,nvidia x server settings)

The following steps solved my similar problem,

sudo apt-get purge nvidia-*
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install prime-indicator

now I can switch using the prime-indicator applet


Why does running this program on 11.10 give a 'GLIBC_2.15 not found' error?

The required 2.15  version is not available for Ubuntu 11.10 as here and here, you will need Ubuntu 12.04 Precise  also from here for that.

Either you will have to build it from source ( not recommended).

libc is the C library; basically, it contains all of the system functions that most (if not all) programs need to run on Linux. It's similar to a combination of dos.library and exec.library on Amigas, but it also contains a lot of things that are in the C runtime library (like, for example, ixemul.library or the .lib files included with SAS/C and other compilers for AmigaOS).

You can find its Official GNU page here


Problem while accessing a java file on ubuntu

To change permissions of all the .java files in the Ubuntu directory:

Change directories with cd to the Ubuntu directory.
Run this command:

chmod u+rw *.java


Going to the parent directory of a file with cd?

Type cd $( dirname /path/to/file.end). That will take you into /path/to.

Explanation:

dirname returns the complete path for a file (without the filename, which you would get with basename) - i.e. dirname /etc/apt/apt.conf.d/99update-notifier returns /etc/apt/apt.conf.d
the expression $(anything) is replaced by the result of the command in the parentheses. So cd $( dirname /etc/apt/apt.conf.d/99update-notifier) is executed as cd /etc/apt/apt.conf.d

Another (but old and discouraged) notation for the same was

cd `dirname /path/to/file.end`


I am able to install landscape on both 14.04 and 16.04 releases, and control through Canonical's Landscape web page. What is your issue exactly?


Install G++ 5 solves the problem. Please use the following command:

sudo apt install g++-5


error: alternative gem can't be master: it is a slave of ruby


You can safely go with Trusty. My CPU is a lot older, and it runs it pretty well.

Be aware however that to my knowledge there are still unfixed bugs with Trusty in relation to power management on laptops.


Is there any interactive or more user-friendly version of GDB for debugging?

There are multiple graphical frontends for gdb. GNU DDD and KGDB to mention a couple.

GNU DDD:

KGDB:

Update: I failed to mention that gdb actually has a built in text-based user interface if you run it with gdb -tui:


Application windows do not fit on the screen

Not fitting in 1024x600 with reasonable leeway for panels should be considered a bug in the applications. Please file those bugs!

As Takkat said, you can usually alt+mouse drag the window to work around the bug. Additionally most window managers also have a 'move' action in the window menu that lets you move it with the keyboard.

Finally you can use xrandr to scale the window; for example,

xrandr --output LVDS1 --scale 1.2x1.5

would scale you to 1229x900. Crude, but effective.

If you use this last method, note that all the drivers I've tried this with get confused unless you go back to 1x1 before trying new ratios.


Will browsers in Ubuntu touch support flash?

At the UDS Web Browser Application for touch devices session, it was stated that Flash will not be supported on Ubuntu Touch.


What package (helper app) does recoll need to index images?

I think that only libimage-exiftool-perl is needed, but the other one should not be a problem.

What recoll version are you using ?

Did you try to execute exiftool on the command line that the installation is ok (exiftool myfile.jpg) ?

Did you try to restart the GUI and/or the indexing after installing exiftool ?

If this does not help, we need to take a look at the recoll log file: see for example https://bitbucket.org/medoc/recoll/wiki/WhyIsMyFileNotIndexed.wiki about how to do this.

Hopefully the error will be obvious in the log.


allow user to enable/disable network interface without root permission

probably the best way to do this is via proper configuration of sudo. You can specify exact commands that can be run, and you can (if you choose) make it not required to enter a password

You can either use /etc/sudoers or /etc/sudoers.d/network_interface

With content similar to

user1 ALL=(ALL) /usr/bin/ip link set ens18 down

See here: https://www.sudo.ws/man/1.8.15/sudoers.man.html

All the way down at the bottom is an EXAMPLES section, if you don't want to read the whole thing


Flavors are the various editions of Ubuntu depending on your need, your preferences and your hardware. E.g. Lubuntu is mainly for old computers with little resources, Ubuntu Studio is for multimedia creation, Ubuntu Mate has a classic desktop, etc.

You can read about the flavors on https://www.ubuntu.com/download/flavours

The versions are the new updates of each flavor. New versions are released twice every year, approximately in April and October. So, Ubuntu 18.04 was released in April 2018, Ubuntu 18.10 in October 2018, and 19.04 will be released in April 2019.

Each April version from even years (14.04, 16.04, 18.04 etc) are so-called LTS (Long Term Support) versions, which are updated for five years. All other versions (i.e. 16.10, 17.04, 17.10, 18.10, etc) are regular versions which are updated for nine months only. So, if you want to avoid having to update the entire version too often, it's better to stick with a LTS.


Canonical sells licenses to its software called Landscape. Free trials are available.

  Landscape is an easy-to-use systems management and monitoring service. Manage multiple Ubuntu machines as easily as one and lower your management and administration costs.


Problem with softwares and PPAs in Softwares & Updates in Ubuntu 18.10

Atom

Run these commands to quickly and easily install and upgrade the Atom text editor snap package from the terminal in all currently supported versions of Ubuntu (64-bit only).

Install Atom text editor:

sudo apt install snapd
sudo snap install --classic atom

Note that a snap in classic confinement behaves as a traditionally packaged application with full access to the system, and Atom extension packages are installed into the user's home directory.
Upgrade Atom text editor:

sudo snap refresh --classic atom

Atom text editor can also be installed from the Ubuntu Software application in Ubuntu 18.10. Either way there is no need to add a PPA to your software sources.

Atom is more than just another text editor. Atom is extensible through the installation of Atom packages that can give Atom the capabilities of running code, showing inline graphical output and more.

Google Play Music

Visit https://dl.bintray.com/marshallofsound/deb/pool/main/G/Google-Play-Music-Desktop-Player/
Download google-play-music-desktop-player_4.0.3_amd64.deb.
Open the terminal and change directories using cd to the directory containing the google-play-music-desktop-player_4.0.3_amd64.deb file that you downloaded.
Install Google Play Music.

 sudo apt install ./google-play-music-desktop-player_4.0.3_amd64.deb

Find which PPAs to remove after upgrading

Open Software & Updates by searching it from the Dash.
Click the Other Software tab.
Find any lines relating to the repositories which are giving you problems.
You can remove a software source in Software & Updates by selecting the software source which you want to remove, and clicking the Remove button.
After clicking the Remove button in the Other software tab in Software & Updates a new small Authentication Required window opens up that looks like this. Type your user password and click the Authenticate button.

A new small window opens up with a Reload button that refreshes the list of available software. The Reload button is marked by the mouse cursor in the below screenshot.

The information about available software is out-of-date

To install software and updates from newly added or changed sources,
you have to reload the information about available software.

You need a working internet connection to continue.

Clicking the Reload button in Software & Updates does the same thing as running sudo apt update in the terminal.


light-locker switches to :1 when locking, so that explains why the vnc server running on :0 only sees a black screen.
The workaround is simply to start another vnc server at :1, connect to it, enter password, and go back to the original vnc connection at :0
x11vnc -auth /var/run/lightdm/root/\:1 -display :1


How to replace package install of nginx with compiled from source?

Unless you specify the --purge option (or use the purge command), the configuration files are left untouched while uninstallation. Therefore all you need to do is:

apt-get autoremove nginx

Or, if you installed a specific variant (such as -core, -full, -extra, etc.):

apt-get autoremove nginx-core


When you go to install, and it asks you where to install it, always pick "Something Else".  Then, you will be given an opportunity to pick any partition, or even divide up an existing one, and format it.

I'd give more detail, but it's been a while since I've installed it, and it's not easy to do it again.


Ubuntu 16.04 Displaylink driver problems

After getting the updated driver I found I had to edit a conf file here http://support.displaylink.com/knowledgebase/articles/1181623-displaylink-ubuntu-driver-after-recent-x-upgrades

This however has not solved the problem as to get it working with the monitor now causes my mouse to flicker(though the second screen did work). I'm marking this solved as the issue is a known problem with the xorg driver and should be fixed by them releasing an update nothing more I can do.


Log files stored in /var/log are the first place to look for problems.

In this case however, I couldn't see anything in the log files to suggest what the problem was. I logged in using a terminal (Ctrl-Alt-F1) and then ran startx which displayed a message about modprobe being unable to find the nvidia kernel module. Installing the nvidia drivers I noticed that there was a message about being unable to build the module because there were no source files. I then did:

sudo apt-get install linux-headers-<whatever the version was>

and then:

sudo apt-get install --reinstall nvidia-340

which then built the modules without any errors. Rebooting the system and the login worked!


Give specific user permission to write to a folder using +w notation

You could use setfacl:
setfacl -m u:username:rwx myfolder

This sets permissions for specific users, without changing the ownership of the directory.
Check out the man page for further details and examples.
EDIT: Highlighted points in comment

setfacl = set File ACL, ACL = Access Control List hence for short "setFacl"
If you want to apply it recursively to all the subdirectories: add the -R flag like this: setfacl -R -m u:username:rwx myfolder


Windows 7 restarts PC when selected from GRUB Menu

Reinstalling Ubuntu's boot loader (GRUB2) to the Master Boot Record using any of these methods will often solve the problem. If it doesn't, then boot into your Ubuntu system, update your Ubuntu system (for example, in the Update Manager), and (whether or not there were any updates available for you to install) run these commands:

sudo os-prober
sudo update-grub

When you run those commands you may be prompted for your password. As you enter it, you won't see any placeholder characters (like *)--that's OK, just type it in and press enter.


Have you tried adding 'nomodeset' to grub boot?


How can I easily install missing hplip dependencies?

In terminal

sudo apt-get -f install hplip

should fix it

There is the other option here : source

which has the download and installation instructions. It has a section that will run

DEPENDENCY AND CONFLICT RESOLUTION

This is the direct download source


Go "Settings" -> "Storage" -> Upper right corner button -> "USB computer connection" -> Check "Media device (MTP)".
Connect phone to computer by USB cable.

Works?


problem package broken cant install update

Go to terminal and type

sudo su

dpkg --configure -a

apt -f install

apt update

apt upgrade

apt autoremove

Hope it helps


Update GRUB to reflect changed partition location

You can always use sudo update-grub command to automatically probe for Operating systems in the Drive. Yes, It will do it automagically.

Procedure:

Open a terminal, by pressing Super key, which is also called as Windows key, type terminal, hit Enter
Type sudo update-grub and wait to see what it says.
If you see messages like "Microsoft Windows XP is found in /dev/sda1" or like it is done.

An example run returned this output in my system. Your output may vary.

student@student-ThinkCentre-A70:~$ sudo update-grub
[sudo] password for student:
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-23-generic-pae
Found initrd image: /boot/initrd.img-3.2.0-23-generic-pae
Found linux image: /boot/vmlinuz-2.6.35-22-generic
Found initrd image: /boot/initrd.img-2.6.35-22-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Microsoft Windows XP Professional on /dev/sda1
done

Hope this will help.


No wifi with Broadcom 43142 - Ubuntu 16.04

If you wouldn't solve your problem in another way, you can always install it from the source, which is described in second point.

How I installed my BCM4360 on Ubuntu 16.04 Xenial. We have the same card vendor, so just to make sure you haven't omitted any step.
The last resort aka building from source.

Ad. 1

sudo -i
apt update
apt upgrade
apt-get purge bcmwl-kernel-source
reboot

sudo -i
apt update
apt-get install build-essential    # Just to make sure if it's installed
update-pciids
apt-get install bcmwl-kernel-source
reboot

# If it's still not working type:
# modprobe wl

After that I had list of available WiFi networks in network menu at top bar, but I had to check something like "All users can connect with this network" in Modify connections in the same drop-down menu.
(I think it's much more safe to use two separate steps purge & install rather than install --reinstall).

Ad. 2

If everything else would fail, you could always install the driver from source.
   Pretty good explanation is given here http://www.broadcom.com/docs/linux_sta/README.txt

Frankly, I've never done it before, because I've never had to and probably you also won't.

Better check that against this README, but the installation process should start like that:

sudo -i
apt-get install build-essential linux-headers-generic
#
# I'm not sure with this following line:
# apt-get build-dep linux-generic
#
mkdir hybrid_wl
cd hybrid_wl
[ `uname -m` == 'x86_64' ] && FILE='hybrid-v35_64-nodebug-pcoem-6_30_223_271.tar.gz' || FILE='hybrid-v35-nodebug-pcoem-6_30_223_271.tar.gz'
wget http://www.broadcom.com/docs/linux_sta/$FILE
tar -zxf $FILE
make clean
make
make install

The next steps depends on whether you're already using wl module, but in README they suggest checking

  /lib/modules/`uname -r`/kernel/net/wireless

and on my computer I've found it in

  /lib/modules/`uname -r`/updates/dkms/wl.ko

Better check it with:

  sudo find / -name wl.ko

Looking at Broadcom official support site, it seems that version 6.30.223.271 downloaded above is the most up to date (compare it with 6.30.223.248 availabale in Xenial or even Yakkety repos).


Ubuntu stuck in Grub Menu Loop. Unable to boot any version

I faced exactly the same issue yesterday and figured out that
grub 2.04-1ubuntu12 -> 2.04-1ubuntu12.2 upgrade leaving you with an unbootable system
(I found no reason why).

Here are a few steps that helped me:

Try to reinstall 19.10
Uncheck "Download updates while installing" during the installation
After installation you need to hold grub packages to prevent them
from updating:
sudo apt-mark hold 'grub*'
Finally you can execute sudo apt-get upgrade

Hope this helps!


One option is to download Axcrypt2Go from the Downloads page and run it in Wine. Looking for portable program is actually a handy general rule for when you need to run any Windows program in Ubuntu.


According to here, to set security for xampp, you can run the following commands:

sudo -s
/opt/lampp/lampp security

answer:

yes

to all questions and create a password for each of the categories.

When you are finished, don't forget to type:

exit

and

sudo -k

Now, on the index.php page it should ask you for a username. The default username is

lampp

Use the password you created for the password.

It is not recommended you give permission to john instead of root for security purposes. That is one of the many reasons viruses are so easily to install on a windows system because you don't need root permission to install applications. Many applications install to the opt directory.

If there is something you want to do to files in that directory, John can use the sudo command to alter those files.

If you want to use your file manager to alter files, you can start the file manager using gksu to give john temporary permission to do whatever it is you want to do without defeating the secure structure of having a nix based system.

First, to install gksu, run the following commands:

sudo apt-get update
sudo apt-get install gksu

Press ALT + F2 and then type:

gksu nautilus

and then press ENTER.

You will be prompted for your password and then the file manager will open with root permission so BE CAREFUL.


Printer not recognized on Ubuntu Libre Office?

Have you double checked that hplip is installed and updated?

According to the HPLIP website, your printer should be close to fully supported.

http://hplipopensource.com/hplip-web/models/officejet/officejet_j4660_series.html

Open a terminal and type

sudo apt-get install hplip

If it says "hplip is already the latest version", then there may be another issue.


Could not able start the instance which in "error" state

nova reboot --hard Instance_Name

worked for me.

After I typed this command, I received

Request to reboot Server ( Server:Instance_Name) has been accepted.

My instance started running back then.


ctrl + r not picking up the latest commands in history

To check history of bash you need to type history, if you want to check only certain no.of your previous commands then type history n, where 'n' being no.of commands.

bash and bash-history aren't commands to store it in history,try some other keywords which aren't related to bash. If you check that history list, it is clear from that it doesn't store non-responsive and wrong commands.


Rhythmbox keeps changing track to a different album

Check your "play queue". It probably has the offending music queued.


Install xdiagnose version 2.5.1, which I uploaded to precise-proposed the other day.

The problem is that the Intel graphics driver has these weird "false gpu hangs". The GPU locks up but then recovers so that you don't actually notice anything, but it still is enough to trigger the error handler. Disabling apport doesn't disable this handler; 2.5.1 disables the handler directly.


Can I format a pendrive after making it bootable

How to change your bootable pendrive into a 'normal' pendrive

I don't think you need to reformat your pendrive. Just select all files and delete them. You might want to delete with Shift+Delete so the space is really freed.

You can remove hte boot flag from your pendrive as to indicate the BIOS that it doesn't need to try to boot from it. You will need gparted for that, which isn't installed by default. To it from the terminal, open a terminal with Ctrl+Alt+t. From there issue the command

sudo apt-get install gparted

Once it's installed start gparted with sudo rights

sudo gparted

Gparted opens up showing you the partitions of your first drive. There is a combo-box in the top right, find for your pendrive. Once you've found it, right-click the partition and select Manage flags and un-check boot. Click Close. The changes take effect immediately.


Ubuntu 18.04: osboxes.org virtual machine release upgrade is stuck

sudo sed -i -e 's/archive.ubuntu.com\|security.ubuntu.com/us.old-releases.ubuntu.com/g' /etc/apt/sources.list
sudo apt-get update && sudo apt-get dist-upgrade
sudo apt-get install update-manager-core
sudo do-release-upgrade


Kubuntu 19.10 Not shutting down properly

if not already done, try adding the option: nouveau.modeset=0
in the GRUB command line (don't forget to update grub).
This solved the same issue for my kubuntu 19.10 fresh install.


Acer V3-571 came pre-installed with Windows 8: possible to install Ubuntu?

First, Microsoft's certification program requires that users must be able to disable Secure Boot on x86/x86-64 computers that bear a Windows 8 logo. Thus, there almost certainly is a way to do it. Unfortunately, there's no standardization in user interfaces on this matter, so you might need to dig deeper or call tech support to find out how to do it. If you have to call tech support, be sure to complain, and follow up with a letter.

Second, Ubuntu 12.10 ships with Secure Boot support, so it's theoretically possible to install it on a computer that uses Secure Boot even without disabling that feature. I say "theoretically" because this support is very new, and some people seem to have problems with it. Ubuntu 12.04 doesn't provide Secure Boot support, so getting it to install with Secure Boot active is much harder. (It's not impossible, but it's so hard that it's not practical for anything but experts.)


I need to make a usb port to be dumb to any devices newly connected

Try using a charge-only USB adapter:
https://www.amazon.com/Plugable-Universal-Charge-Only-Adapter-Android/dp/B00FA9GXKM
or something like it.
There are also other types of these charge-only adapters that will negotiate charge voltage, but not allow the two devices to connect. Or you could use a charge only usb cable to connect the device.


Can not "see" work pc's when connected on VPN from my home

So my problem had to do with routing all the broadcast traffic (a design to keep bandwidth use down), so you don’t see the “here I am” broadcasts that say PCXXX is on the network.

However, if you know the IP address of the PC that you want to connect to, you should be able to ping it and do whatever you need to.

After I noticed that, I tried to ping the work office PCs from my home pc.  It turns out that I could ping them, but I could not log into the PC.  This was for two reasons:

1.) First was that I had not set static IPs for the PCs in the office workplace.  So each time the office PC was rebooted, it was assigned a new IP address.  Once this was fixed I could at least make sure that the PC I was trying to sign into was indeed the correct PC
2.) The second issue was that "Standard User" account under Windows 7 does NOT allow a connect to RDP.  I had to do two steps to fix this
2a) Temporarily change the "Standard Account" to an "Admin Account"
2b) Then add that user to the accounts that can RDP into


Crontab backup not working (not generating log)

If you run in terminal:

./home/user/backup.sh

you will get probably an error like:

bash: ./home/user/backup.sh: No such file or directory

That because in this case is not correct to use that . (dot) in front of the path to the scipt (/home/user/backup.sh). Also be sure that backup.sh is executable by running:

chmod +x /home/user/backup.sh

And also, be sure that you chage user with your user name everywhere.

And finally, be sure that the exit status of /home/user/backup.sh script is 0. If the exit status is different by 0, the second command (echo "Backup done: $(date +"\%Y\%m\%d\%H\%M\%S")" - where you have to escape all % characters) will never be executed because of && operator.

As I said, you have to escape all % (percent) in a crontab entry because it has a special meaning in this case:

  Percent-signs (%) in the command, unless escaped with backslash (\),
  are changed into newline characters, and all data after the first %
  are sent to the command as standard input.

  Source: cron


You could delete the soures.list file, and then push setting and then the update icon, and then hatch the upper chranoical, and then reload and it might work fine this way


Screen will not change brightness (Ubuntu 18.04.4 LTS) [UPDATED INFO]

I had similar issues with a toshiba laptop. This may help:

Make a backup copy of any files that are changed.

Edit the file /etc/default/grub.

Find the line GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

Add acpi_backlight=vendor so the line is now:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor"

After file is edited and saved run the command:

sudo update-grub

Reboot to see if changes have helped.

If there seems to be no change then here are some similar solutions than may lead to an answer for you.

Cannot change backlight brightness Ubuntu 14.04

Function Keys Do Not work (Brightness & Sound) Ubuntu 16.04


You need to enclose the escape sequences in \[  \]:

PS1='\[\e[0;34m\]\A\[\e[m\] | \[\e[0;31m\]-\[\e[m\] \[\e[0;32m\]>>\[\e[m\]  '

This is essentially the same as @user107425's answer but using the \e instead of \033 syntax and with the closing \[\e[m\] that resets the color to the default after the end of the prompt.


I could be mistaken but I believe this is the direct result of a "Windows Update" which prohibits any operating systems other than Windows to boot your computer.  I blogged about this on google plus last month, and at the time I was in disbelief until one of my readers replied with this most informative link.

It was my first impression that only windows 10 did this to computer but now it appears that previous supported versions of windows receive an update which sabotages your hardware.  I've also determined that older hardware is immune to this "feature" so until there is a class action suit against Microsoft for this MONOPOLISTIC, and most underhanded move, you can continue to enjoy dual booting but you must use an older laptop, either that or a new desktop built from quality generic components such as my ASUS here.


Netflix Desktop not working after update

you need to uninstall netflix-desktop and wine-compholio by purging them both

apt-get purge netflix-desktop wine-compholio

After this is done follow the instructions here:

http://www.webupd8.org/2013/08/pipelight-use-silverlight-in-your-linux.html


Reboot your machine and go to Root shell over Recovery Mode
Create an xorg.conf

mount -o remount,rw /
Xorg -configure
mv xorg.conf.new xorg.conf
mv xorg.conf /etc/X11/

Reboot your Machine
Open your xorg.conf

sudo -H gedit /etc/X11/xorg.conf

Change your xorg.conf in section ServerLayout to this:

Section "ServerLayout"
Identifier "**Multihead**"
Screen  "screen0"
Screen  "screen1" RightOf "screen0"
InputDevice     "mouse1" "CorePointer"
InputDevice     "keyboard1" "CoreKeyboard"
**Option "Xinerama"**
EndSection

Reboot your system

NOW IT WORKS !!!


I keep seeing reports that GRUB 2's EFI support has improved recently, but every time I've tried it, it's been awful. I have yet to try Ubuntu 12.10, so I don't know if the version of GRUB 2 it includes is any better. If not, my suspicion is that you're running into a GRUB 2 problem; but it's also possible that my bad experiences with GRUB 2 are poisoning my interpretation of your problem.

In any event, if I'm right, my suggestion is to install another boot loader and try using it. Your Boot Info Script output suggests you've already got an ELILO configuration set up, so you could just try copying your Ubuntu kernel and initrd file and editing elilo.conf (probably in EFI/debian on your ESP, /dev/sda1) to boot Ubuntu. If your ELILO isn't working, though, you might try rEFInd, which is capable of directly booting a Linux 3.3.0 or later kernel, which Ubuntu 12.10 provides. (This assumes, however, that Ubuntu has included the EFI stub loader support in their kernel. I don't know if they've done so.) The rEFInd documentation includes a section on booting Linux. In brief, you would:

Install rEFInd according to its documentation.
Create a refind_linux.conf file that includes your kernel options. (According to your Boot Info Script output, root=UUID=1de654ef-3c5e-4d17-8fc8-8490926d8d76 ro   quiet splash i915.modeset=0 xforcevesa should work. See the rEFInd documentation for details of the refind_linux.conf file format.) Place this file where your kernels reside on the ESP (copied in the next step).
Copy your kernel (vmlinuz-*) and initrd (initrd*) files from your Ubuntu /boot directory to the EFI/ubuntu directory on your ESP (your /dev/sda1), renaming the kernel file so that its name ends in .efi.

When you reboot into rEFInd, you should then see a new option in its menu for launching Ubuntu. If this process works, you can take some steps to ensure that rEFInd picks up your future kernel updates automatically. (The easiest is to reconfigure your system to mount the ESP as /boot and change refind.conf to uncomment the scan_all_linux_kernels option.)

Another observation: Your /dev/sda4 is incorrectly flagged in your partition table as an ESP. This is unlikely to be causing your current problem, but it could cause difficulties in the future. I recommend you fix it. You can do this in GNU Parted or GParted by removing the boot flag from the partition or in gdisk by changing the type code from EF00 to 8300. The latter is preferable on a dual-boot system, since your libparted will probably give the partition an improper type code for Windows rather than for Linux. (This bug will be fixed in the next version of libparted, which is due out this month.)


error when installing realtek wifi driver

First of all, you should always include the command you're running. In this example it's probably some installation script or make install.

Such scripts has to be run as root, as they attempt to write to system directories. The output is complaining that it cannot delete a file in /lib

Prepend whatever command you where running with sudo and try again.


There is not a good way to switch the launcher to the bottom using Unity (I wanted that until I got used to it I loved it). But you can hide the launcher and install a program like Docky (https://apps.ubuntu.com/cat/applications/docky/) which looks a whole lot like the Apple Dock. I have also included another method (http://www.techrepublic.com/blog/linux-and-open-source/tweak-ubuntu-unity-get-a-dock-style-launcher-and-unity-dash/) Hope it helps.


AMDPRO 17.30 and my laptop graphics card doesnt work on Ubuntu 16.04

It's because usually having a stronger GPU by default is unwanted (more on laptops, not so much on desktops). It consumes more power for no reason as integrated GPU is powerful enough to run light graphics workloads like a desktop, even with effects enabled like wobbly or burning windows.

To run an application on dGPU you can use DRI_PRIME variable. E.g. here is the output from my laptop:

$             glxinfo | grep evice
    Device: AMD SUMO (DRM 2.50.0 / 4.13.3-1-zen, LLVM 6.0.0) (0x9641)
$ DRI_PRIME=1 glxinfo | grep evice
    Device: AMD TURKS (DRM 2.50.0 / 4.13.3-1-zen, LLVM 6.0.0) (0x6741)

If you really want to run whole desktop on dGPU, you can override the variable globally (I think you can even override some kernel parameters, but I didn't explore that). Add into /etc/environment this line:

DRI_PRIME=1

For the record, it might be useful to know that assigning a variable directly, like I did in example with glxinfo, might not always work as opposed to export. However the file /etc/environment accepts syntax specifically without export.

And note, AMD is focused on radeonsi driver, the proprietary one is still here just because of OpenGL compatibility profile used by CAD software. The profile is unsupported by Mesa, for it's optional and mixing old OpenGL with modern one is frowned upon. Anyway, what I wanted to say is, the default driver is much faster than AMDGPU-pro (well, given you're using it recent enough).

UPD: regarding the naming convention — different models of GPUs are often built on the same architecture from the driver point of view, i.e. the interrupts, registers, assembly… The difference is usually in amount of some specific stuff, like VRAM, ALUs, bus, etc. In these cases drivers usually do not take compare if gpu_model=x then do y because the number of ALUs smaller or bigger, instead they're comparing to amounts directly. The reason is that any time a new GPU model could appear, which might differ in just, say, amount of VRAM (but not interrupts or other important things) — can you imagine having to rewrite all driver stuff for this reason? Worse, peoples have to update the driver for the GPU to be supported, whereas by having a generic comparison to amount of VRAM, the "new GPU" would be even supported by drivers from the time the GPU didn't exist.

So, even though it's sad that you don't see the model name you expected, but that not necessarily means something bad is going on.


This is not the way bash aliases work, all the positional parameters in the bash aliases are appended at the end of the command rather than the place you have defined. To get over it you need to use bash functions.

An example will make you more clear :

$ cat file.txt
foo
$ cat bar.txt
foobar
spamegg
$ grep -f file.txt bar.txt
foobar

$ alias foo='grep -f "$1" bar.txt'  ## Alias 'foo'
$ foo file.txt
grep: : No such file or directory

$ spam () { grep -f "$1" bar.txt ;}  ## Function 'spam'
$ spam file.txt
foobar

As you can see as the first argument in case of alias foo is being added at the end so the command foo file.txt is being expanded to :

grep -f "" bar.txt file.txt

while in case of function spam the command is correctly being expanded to :

grep -f file.txt bar.txt

So in your case, you can define a function like :

gr () { xmgrace -legend load -nxy "$@" -free -noask & ;}


To import Diskimage:

Unmount /var/lib/machines & resize /var/lib/machines.raw:

$ umount /var/lib/machines ; qemu-img resize -f raw /var/lib/machines.raw +16G

Restart machinectl Service:

$ systemctl restart /var/lib/machines

Resize btrfs Volume:

$ btrfs filesystem resize max /var/lib/machines


Touch screen not working after some reboots (another reboot resolves it)

Don't reboot directly but first shutdown then start it. This is probably some driver problem. Hope it helps!


Snap applications are, once installed, mounted as a squashfs file system under a folder /snap/<snap name>/<revision>/. A squashfs is a compressed read-only file system. Accordingly, it is perfectly normal and expected that you, nor the root user, can make changes to that mounted file system as this is how it works by design.


How do I pipe terminal standard output (stdout) to the clipboard?

This can be done with either
xsel
or
xclip
command line utilities.  Since neither program comes with Ubuntu by default you'll need to first install them via Ubuntu Software or the terminal.  Here's how in the terminal (but remember you only need one of these two.)

sudo apt install xsel
sudo apt install xclip

Note: If you're using Ubuntu in Windows Subsystem for Linux (WSL) see this other answer instead.

Now some examples.  If you want to copy the output of ls to the clipboard here's what you'd do:

With xsel:

ls | xsel -ib

With xclip:

ls | xclip -sel clip

This can of course be utilized for other terminal commands as well.  Let's say you want to paste your network info into a help forum.

With xsel:

sudo lshw -C network | xsel -ib

With xclip:

sudo lshw -C network | xclip -sel clip

Make this even easier with a new bash alias!

Edit your ~/.bash_aliases file (if it doesn't exist yet create it first with touch ~/.bash_aliases)

Then add one (depending on which program you decided to go with) of the following:

alias copy='xclip -sel clip'

or

alias copy='xsel -ib'

Then save and close.

Now (after restarting your terminal) you can send standard output to the clipboard just by piping it to 'copy' (or whatever you decide to name your new alias)

For example:

ls | copy


Usually when i need to access my Linux machine from ssh remotely, i just install ssh with sudo apt-get install ssh and by default it does what i need it to do. Connect via ssh from any PC.

Ubuntu also has their documentation on configuring openssh. https://help.ubuntu.com/community/SSH/OpenSSH/Configuring

Install openssh, sudo apt-get install openssh-server
Backup the default config, sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.factory-defaults then sudo chmod a-w /etc/ssh/sshd_config.factory-defaults
Make any changes that you like, sudo gedit /etc/ssh/sshd_config. Check the openssh/ssh man page for instructions on configuring sshd_config
Remember to restart the service to apply changes, sudo restart ssh or sudo systemctl restart ssh
You can also make sure the ssh port is open on iptables. I almost never have to do this but if you need to. sudo iptables -A INPUT -p tcp --dport 22 -j ACCEPT


Is symbolic link to ~/something dependent on logged user?

Check for yourself:

% ln -s ~/one two
% ls -l two
[...] two -> /home/rmano/one

The command ln does not even see the ~  char --- it is expanded by the shell.

Now, to use the link the new user must have the appropriate permissions on the real path.

You can put a literal ~ in the link, but then it will not work, at least not in linux --- environment variables like $HOME are not expanded when the kernel resolves symlink.

See:

% cd
% touch a1
% ln -s $HOME/a1 a2
% ln -s '$HOME'/a1 a3
% ls -l a?
-rw-rw-r-- 1 rmano rmano  0 Mar 21 13:49 a1
lrwxrwxrwx 1 rmano rmano 15 Mar 21 13:49 a2 -> /home/rmano/a1
lrwxrwxrwx 1 rmano rmano  4 Mar 21 13:50 a3 -> $HOME/a1
% cat a2
% cat a3
cat: a3: No such file or directory

There is some OS that has this characteristics (I think that one version of FreeBSD did that, as well as some unix I used on Apollo workstations --- not sure though) which is called variant symlink.

See also https://stackoverflow.com/questions/3888809/environment-variables-in-symbolic-links


davfs2 : Depends: libneon27 but it is not going to be installed

I assume this is indeed a known issue confirmed bug 1826063

For know I am trying to configure using an older release of neon27:

sudo apt install libneon27=0.30.2-2build1
sudo apt-mark hold libneon27
sudo apt -y install davfs2


How to rename backup files, using its backup version as a suffix to file name and making it no longer hidden

So long as you're certain everything is named consistently as you described above, some regular expressions can get the job done through a shell script:
#!/bin/bash
# sets the file separator to be only newlines, in case files have spaces in them
IFS=$'\n'
for file in $(find . -type f); do
        # parses just the number(s) between two tildes, and only at the end of the file
        number=$(echo $file | grep -Eo "~[0-9]+~$" | sed s/'~'/''/g)
        # if no match found, assume this is a "base" file that does not need to be renamed
        if [ "$number" == "" ]; then
                continue
        fi
        # parses the file name through "NEF", then deletes ".NEF"
        filename=$(echo $file |  grep -Eio "^.+\.NEF" | sed s/'\.NEF'/''/g )
        if [ "$filename" == "" ]; then
                continue
        fi
        mv -v $file $(echo "$filename"_"$number.NEF")
        # if anything went wrong, exit immediately
        if [ "$?" != "0" ]; then
                echo "Unable to move file $file"
                exit 1
        fi
done

This will work for descending through directories as well, just place the script and execute it with your working directory at the top of your project's directory tree. Running with example files like you provided:
###@###:~/project$ find . -type f
./DSC_0616.NEF.~8~
./DSC_0616.NEF.~5~
./DSC_0616.NEF.~1~
./DSC_0616.NEF.~7~
./DSC_0616.NEF.~3~
./DSC_0616.NEF.~4~
./DSC_0616.NEF.~9~
./DSC_0616.NEF.~2~
./DSC_0616.NEF.~6~
./lower_dir/DSC_0616.NEF.~8~
./lower_dir/DSC_0616.NEF.~5~
./lower_dir/DSC_0616.NEF.~1~
./lower_dir/DSC_0616.NEF.~7~
./lower_dir/DSC_0616.NEF.~3~
./lower_dir/DSC_0616.NEF.~4~
./lower_dir/DSC_0616.NEF.~9~
./lower_dir/DSC_0616.NEF.~2~
./lower_dir/DSC_0616.NEF.~6~

after running the script:
###@###:~/project$ find . -type f
./DSC_0616_1.NEF
./DSC_0616_3.NEF
./DSC_0616_7.NEF
./DSC_0616_5.NEF
./DSC_0616_2.NEF
./DSC_0616_9.NEF
./DSC_0616_6.NEF
./DSC_0616_8.NEF
./DSC_0616_4.NEF
./lower_dir/DSC_0616_1.NEF
./lower_dir/DSC_0616_3.NEF
./lower_dir/DSC_0616_7.NEF
./lower_dir/DSC_0616_5.NEF
./lower_dir/DSC_0616_2.NEF
./lower_dir/DSC_0616_9.NEF
./lower_dir/DSC_0616_6.NEF
./lower_dir/DSC_0616_8.NEF
./lower_dir/DSC_0616_4.NEF


Version of Qt Creator in Ubuntu Touch SDK

I'm not sure why that is. I am getting the same version number, but I know this is the right version of Qt Creator, because I had the SDK preview installed, and once they released the SDK alpha, Qt Creator recieved updates and now has the Welcome tab with the Ubuntu symbol. So no, you don't have two versions installed, that one is the right one, as you can tell by the Ubuntu symbol.


"Create Launcher..." on desktop did not work

What happens when you issue the following command from a terminal (CTRL+ALT+T)?:

gnome-desktop-item-edit --create-new $HOME/Desktop


For the FAQ you go down the the section "How do I add a swap file?".  When you get the dd command need to multiply the count=# by 20 to get 20GiB of space initialized, so it would be 20971520.  Once you have the swap file sorted out, you will need to edit the /etc/default/grub file to add resume=/mnt/20GiB.swap and resume_offset=file_offset.  This thread has some good information and links: How to enable hibernate option in Ubuntu 20.04?
I hope this helps.


Is it possible to start other software manager than Discover in Kubuntu when clicking the update button in the panel?

This doesn't really answers the question as such, but it's a workaround that gives me almost what is asked:
Create a new launcher: right click the application launcher icon and add a new item. Use a name like "Updates with Apper", a related icon, the command apper --updates and a comment like "up" or "updates".

Then, when the update button shows new updates, instead of clicking it, press Super key and type "up" to launch "Updates with Apper".

Apper opens with the list of updates. Press "Update", enter the password

Updates are downloaded

and installed
.
All looks fine, excepting the fact I usually get an error at the end saying Apper has closed, but in fact it's a rather harmless bug and the update panel button is gone:

I still prefer it to Discover because it's faster.


Tab autocompletion for a command's options

Why is this the case?

Because bash completion functions typically do not include arguments in completion.

  Is there a way to enable this "extensive" tab auto-completion?

From this U&L post:

  For some commands, bash will call the command with the argument
  --help and parse the output. Such commands can be registered with
  the complete built-in, e.g. complete -F _longopt ls. _longopt is
  in fact a completion generation function, that happens to parse a
  command's output rather than use a fixed list. (There are other more
  specialized completion functions that parse a command's output to
  generate possible completions; look in /etc/bash_completion.d/* for
  examples.)

So:

$ complete -F _longopt mousepad
$ mousepad --
--disable-server  --display=        --help            --help-all        --help-gtk        --quit            --version


Perf linux tool : Function name not shown in the symbol column

I checked your example and on my laptop (Ubuntu 16.04; perf version 4.4.128) I can see the function name, but not all of them.

I used the command perf report to check the profiling, and I got this.

Many of the line are hex addresses because they correspond to kernel-land function and I'm not a kernel developer. IIRC the perf tools are use to profile or retrieve a lot of information about the kernel behavior, so it's not really well adapted for user-land program.

Why don't you use gprof?


How do I sort a file based on both letters and numbers?

GNU sort's --version-sort should do that for you:

sort --version-sort file

Otherwise, use [ as the separator and sort by the first field and then numerically by the second:

sort -t'[' -k1,1 -k2n file


Gnu sed regular expression extension, how to type these two characters?

That's a back quote (`) in first red square and single quote (') in second red square. From regexp extensions (sed, a stream editor) - GNU

  \`

    Matches only at the start of pattern space. This is different from ^ in multi-line mode.

      Compare the following two examples:

$ printf "a\nb\nc\n" | sed 'N;N;s/^/X/gm'
Xa
Xb
Xc

$ printf "a\nb\nc\n" | sed 'N;N;s/\`/X/gm'
Xa
b
c

  \'

    Matches only at the end of pattern space. This is different from $ in multi-line mode.

That's generally with ~ above Tab key in main keyboard.

The text on your screenshot looks different may be because of custom fonts.


I'm trying to install ubuntu on acer 5349

The Live image on your USB pendrive is NOT proper somehow.
It's a first recommendation to do a USB Live from Ubuntu Using Startup Disk Creator. Yon will need to feed it with ubuntu.iso image file. Be sure that md5sum checksum matches to the original one.

For the guidance please read this and this

As an alternative way you can create Live USB by UNetbootin
The idea the same, but it works on everything: Linux, Windows, Mac.


Reinstall Ubuntu 14.04 from USB- It is the only OS on my system.

The black screen may have been a prompt for you to enter your encryption password - just a guess from experience. Otherwise it may have been a video card problem or one of many other problems.

Alright so lets move forward to get you back on your feet.  What computer are you using?

If you are in a rush, just try to reinstall - post any further questions here.


Does Ubuntu work with Wacom's wireless acessory kit (intuos5)

Got my Intuos5 working over USB and Wifi.

Just as simple as building the drivers Xf86-input-wacom and Input-wacom straight from git.

Got first the Error message  "ltmain.sh not found" when running ./autogen.sh for the Input-wacom driver. There is a workaround here

The remaining problem: touch ring and pad buttons are not working yet.


Cinnamon split desktop into separate workspaces

I have found solution using xrandr
https://askubuntu.com/a/998435/705261

For my xrandr output

Screen 0: minimum 8 x 8, current 5760 x 1080, maximum 32767 x 32767
eDP-1-1 connected 1920x1080+3840+0 (normal left inverted right x axis y axis) 344mm x 193mm
   1920x1080     60.01*+  60.01    59.97    59.96    59.93
   (...)
DP-1-1 disconnected (normal left inverted right x axis y axis)
HDMI-1-1 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 477mm x 268mm
   1920x1080     60.00*+  50.00    59.94
   (...)
HDMI-1-2 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 477mm x 268mm
   1920x1080     60.00*+  50.00    59.94
   (...)

I wanted my second monitor split to 1/3 and 2/3 so I have script

xrandr --setmonitor HDMI-1-1~1 640/159x1080/268+1920+0 HDMI-1-1
xrandr --setmonitor HDMI-1-1~2 1280/318x1080/268+2560+0 none

that is effect. Works well :)
Both windows on screenshot below are maximized.


Applications to replace iTunes for iPod synchronization?


The versions of Juju and MAAS are older and we plan on continuing to backport releases to 12.04 over it's life, however this process takes time and that's why 1.16 in Precise yet.

However I don't recommend adding the individual Juju and MAAS PPAs if you need them, instead we provide what we call the Ubuntu Cloud Archive. Since Juju/MAAS/OpenStack and all it's associated tools are usually used together we put them all in one place.

This archive is tested as a whole and certified by Canonical and it's what we recommend for production use of Juju and MAAS for 12.04 LTS users. This way you have the tested set of everything instead of having to worry about which PPAs to add or not.

Here's how to enable it:

http://www.ubuntu.com/download/cloud/cloud-archive-instructions


Backing up MySQL Database (Up to a month or while there is space)

Export your MySQL database to a text file and put it somewhere Deja-Dup picks it up.

mysqldump -u {your_DB_username} -p {your_database} > {/home/{user}/textfile.sql} will, after asking for your MySQL user password create a file textfile.sql. Assuming you backup your home directory placing this will back it up.

Before backing up you could also compress it to save some space with gzip /home/{user}/textfile.sql


Ran a command, not sure what I might have done? Wacom Tablet Removal Attempt

Here's what you actually did:

You have performed actions on the xserver-xorg-input-wacom package

I don't believe the --auto-remove switch you used in the first line is valid so it was likely ignored. As for the rest,

From the man page:

remove
           remove is identical to install except that packages are removed
           instead of installed. Note that removing a package leaves its
           configuration files on the system. If a plus sign is appended to
           the package name (with no intervening space), the identified
           package will be installed instead of removed.

       purge
           purge is identical to remove except that packages are removed and
           purged (any configuration files are deleted too).


I cannot move multiple files by drag and drop method

click and drag the pointer over all of the files which you would like to select

hold down shift while you drag and drop them into the desired folder


Not able to install from ubuntu software center

permissions in your python packages are possibly not working , change its permission by using-

sudo chown -R $USER /usr/local/lib/python2.7/dist-packages/

-Replace USER with your login name, if this doesnt works check the output of -

/usr/lib/ubuntu-sso-client/ubuntu-sso-login

If it throw any error ImportError: No module named pkg_resources

then the reason behind this could be setup tools package has been deleted in my Python environment .to solve this use the following script-

curl https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py | python

hope it will work.


Two Keyboards with different layouts on Ubuntu 18

Maybe this can help you?

  First, use xinput to identify your keyboards.
   Then, use setxkbmap to set the layout.

  My keyboards are id 10 (laptop integrated) and id 17 (external keyboard).

  Now, set my external keyboard to be Swedish layout, and my internal to Dvorak:

$ setxkbmap -device 17 se
$ setxkbmap -device 10 dvorak


Toshiba Satellite L645D screen brightness does not work on Ubuntu 12.04

You might want to edit your xorg.conf configuration. In a terminal, type:

sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup

This will make a backup of your xorg.conf file - just in case :) That being done, type:

gksudo gedit /etc/X11/xorg.conf

and under Section "Device" add the following line:

Option "RegistryDwords" "EnableBrightnessControl=1"

Save and reboot.

Perhaps this already does the trick. In that case, congratulations!


An easy way to create a desktop shortcut?

Right click the file you want a link to in your file manager.
Select "Create link" from the context menu.
Move that link wherever you want it.

In the case of application launchers, they're placed in /usr/share/applications/. The procedure is identical. We have several shortcut editor applications if you want advanced functionality, but I suspect the method above should suffice?

When we discover bugs in Ubuntu and we would like them to be fixed, we report them to the developers. This is done on http://Launchpad.net.


how to add/edit parameters for a startup service (/etc/init.d/)

Most services allow you to change startup params in /etc/default/NAME. If not, you'll have to edit /etc/init.d/NAME (or /etc/init/NAME.conf for Upstart scripts). Do not forget to restart the service, that's not automatically done for you.


How can I run a script when I unmount a particular usb drive?

The duplicate answer has most of what's necessary. Comments welcome. Plug it in to get the ids:

lsusb

replace the ids and tell it what scripts.

ACTION=="add", ATTRS{idVendor}=="09da", ATTRS{idProduct}=="0260", OWNER="{userid}", RUN+="/usr/local/bin/usb-copy-add.sh"
ACTION=="remove", ATTRS{idVendor}=="09da", ATTRS{idProduct}=="0260", OWNER="{userid}", RUN+="/usr/local/bin/usb-copy-remove.sh"

The usb-copy scripts could be done in multiple ways. They will look something like the following. This is the remove. Reverse things for the add (does not work recursively):

#!/bin/sh
localf={/your/local/folder/}
for x in `ls -1 "$localf"`
do
    file=`basename $x`
    cd {mounted dir}
    if [ "$file" -nt "$x" ]
    then
        cp "$file" "$localf"
    fi
done

or from superuser answer there is a link that describes cp --update (with -r recursive). This is the remove, reverse for the add:

cp -r -u {mounted dir} {/your/local/folder/}

also from the same superuser answer, this is the remove, reverse for the add:

rsync --progress -r -u {mounted dir} {/your/local/folder/}

Hare are some other copy ideas.


Read here about the file samba_backup:

https://wiki.samba.org/index.php/Backup_and_Recovery


I've had this today with 18.04 too (no upgrade, was fine before today), I've found that moving my mouse/swiping my trackpad constantly on the loading screen speeds loading up by a lot for this issue, though I am unsure why. It goes from >4 min to less than 1 min.


What I'm trying to figure out is how your setup ever worked.

Both your shared folders are under /media/shane - and I'm assuming "shane" is your user name. Linux sets special permissions on that folder such that only shane can traverse it to get to what is under it. The samba guest user is not shane so it will never get access.

The only way this could have worked is if the Windows user was also named "shane" and the samba password for that user on your server was an exact match to the login password for shane on the Win10 box.

For future compatibility I would edit your share definitions and add a line to force the samba client user to appear as shane to Linux - at least for these shares: force user = shane. For example:

[Media]
   comment = NAS Media
   path = /media/shane/media
   read only = no
   browsable = yes
   writeable = yes
   guest ok = yes
   public = yes
   force user = shane

Then restart smbd.

The other thing is the space in your netbios name. I've never seen a space in a hostname or netbios name. Maybe samba concatenates the two and creates kodiserver instead. I honestly don't know.


XUbuntu: Open file browser via "run command" menu

Why not just make a shell script to run thunar and drop it in /usr/bin name thuna.

Have it run "thunar /tmp" if there is no argument specified.

So much easier than fighting with the launcher.


How do I stop programs opening on startup

Open the Dash and search STARTUP APPLICATIONS. Click on the cog wheel on the top right corner of your screen and choose STARTUP APPLICATIONS or type STARTUP in the Dash. Deselect the programs you don't want to open at boot time.
If you are an advanced user, you can edit the

  ~/.config/autostart

file with the parameter

  X-GNOME-Autostart-enabled = false


Create public directory
When you want files to be shared by all users it is best to create a public directory where everyone has read access but only a select few have write access. For this purpose I would create a directory called:
/home/Public


"Welcome to emergency mode" after update

To run a fsck (file system check) on your Linux/Ubuntu partition:

boot to the GRUB menu
choose Advanced Options
choose Recovery mode
choose root access
type fsck -fy /dev/sda2
do step 5 more than once if there were errors

If you've changed partitions "a lot of times", did you remember to edit /etc/fstab and make sure that the UUID's correctly match the output of sudo blkid?

Lastly, you could have problems with your two "Windows" partitions on /dev/sdb1 and /dev/sdb2.


Tomcat has been upgraded from tomcat8 to tomcat9 in Ubuntu 20.04. The closest you can get to installing tomcat 8.5.60 in Ubuntu 20.04 is to manually download (with wget) and install tomcat 8.5.30 from Ubuntu 18.04 in Ubuntu 20.04 (with an apt command). It's the same package and it's almost the same version (8.5.30 instead of 8.5.60).
Open the terminal and type:
cd ~/Downloads/
wget -c http://launchpadlibrarian.net/366407131/tomcat8_8.5.30-1ubuntu1_all.deb http://launchpadlibrarian.net/366407127/tomcat8-common_8.5.30-1ubuntu1_all.deb http://launchpadlibrarian.net/366407125/libtomcat8-java_8.5.30-1ubuntu1_all.deb
sudo apt install ./libtomcat8-java_8.5.30-1ubuntu1_all.deb ./tomcat8_8.5.30-1ubuntu1_all.deb ./tomcat8-common_8.5.30-1ubuntu1_all.deb


Why does my indicator-datetime in Ubuntu 16.4 Gnome shell show no numbers?

Open the preferences, go to the Weather Services tab and select Yahoo as the source. For some unknown reason, Open Weather Map isn't working anymore.


In Ubuntu 20.04, wifi connection does not automatically connect on startup

Okay, I think this worked for some reason: go to 'Network Connections', select the gear to edit the connection, go to the 'Wi-Fi Security' tab, and in the 'Password' box, select 'Store the password only for this user'. Save, restart, and bam it connects automatically. Strange issue.


All Ubuntu derivatives that draw from the Ubuntu main repository will receive five years of updates for those packages. Since 'mini.iso' uses that repository, you should be fine.

It's worth noting that Xubuntu 12.04 will be getting special Canonical tender-love-n'-care as official derivative LTS. If you install via its Alternative Install CD, the final install size will be around two gigabytes, and will provide you a much richer, fully graphical environment.


Solved with HWE kernel and "radeon.si_support=0 radeon.cik_support=0 amdgpu.si_support=1 amdgpu.cik_support=1" added to GRUB


Why does my ssh login include what looks like a promotion for a TechRepublic article?

In this file:
/etc/pam.d/sshd

Comment out the following 2 lines:
# session    optional     pam_motd.so motd=/run/motd.dynamic
# session    optional     pam_motd.so noupdate

This should remove the MOTD.


unable to sign with digital certificate on portal

yesterday I tried hard, but today I loking for any text in the site of my CA Digital Certificate and found the new chain of CA.
I installed in Firefox and now works.
I installed in Chrome, don't work, but I import using the system and works... bad, but works.

I see you later.


Can I stream media from a Windows partition?

Plex can use your local computer as a media server.  Your details sounds like you are already running Plex under Windows which is serving the media from the attached drives.

You can do the same thing if you install Plex to Ubuntu.  Ubuntu will be your server.  The devices is unaware of the server operating system.  It just receives the media streams from the server.

You can mount your NTFS media drives under Ubuntu and run the Plex server under Ubuntu no different from the way you're currently running it under Windows.