Having trouble installing octave packages

Solution:

sudo apt-get remove octave
sudo apt-get install -f
sudo apt-get install octave-pkg-dev libclutter-gtk-1.0-0 libcogl15 libclutter-gst-2.0-0 gstreamer1.0-clutter libcogl-pango15

Here is where I found the additional commands.

EDIT: not a good solution. Installing octave with the other dependencies caused my drivers to through a temper tantrum. Had to reinstall ubuntu for everything to get back to normal.

EDIT 2 - ABSOLUTE FIX: for the love of all that is holy. I am flipping my swear finger ubuntu and octave. If I want to install any octave packages I must install it using apt-get

sudo apt-get install octave-<package_name_you_want>

then to make sure the package is installed, just type within the octave interpreter

ver

and I promise you, the package will be there. Solution was found here


How to transfer large amount of data from Mac to Ubuntu computer?

You need to buy a special cable called a USB Data Transfer Cable. People often confuse this cable with an ordinary cable that has USB connections on each end. If you use an ordinary cable to connect both computers you will almost certainly cause both computers to burn up very quickly.


AMD Ryzen 7 3700X in X570 chipset system hangs

Even though that solution is given for a different processor, I was able to solve my problem by following this other answer.
The boot parameters that make everything work (both for the installation procedure and for the installed system) are:
pci=assign-busses apicmaintimer idle=poll reboot=cold,hard


Run /etc/cron.daily/apt at a specific time (i.e. without anacron)

Move your script out of /etc/cron.daily and add an entry for it directly in /etc/crontab. For example, you could move it to /usr/local/sbin/cron-apt and then add this entry to /etc/crontab:

0 5 * * * root /usr/local/sbin/cron-apt

This will give you fine control of the exact timing of your job as well. The command man 5 crontab will give you more information on the crontab format.


Getting the banshee-extension-soundmenu in 10.04?

The new Ubuntu sound menu, which lets audio players like Banshee add album art and player controls to the menu, was introduced in Ubuntu 10.10, so this functionality isn't available in your version of Ubuntu.

The closest you can get to the sound menu extension without upgrading Ubuntu is probably the banshee-extension-appindicator, which is available in the 10.04 repositories.


RTL8723BE PCIe Wireless Network Adapter - wifi not working on 14.04

As answers in this post suggest, two major kinds of kill switches handle the activity of any wifi radio- A hard/hardware switch and a soft/software switch.

Several options are available for turning software switch on, one that makes use of rfkill might be most helpful of them all. Launch terminal by "Ctrl+Alt+T" and run in the following code (type in the password for root if asked for):

sudo rfkill unblock all

Since your error log shows that hard switch is not the problem, but still in absence of any visible hardware switch (usually a button), you could try a dirty old trick. Just remove the battery from the case of your computer for few minutes, open up the lid if you haven't already as if you were to start the computer without a battery, press the power button for few seconds (usually 30 seconds would do). Then, reinsert the battery and power your computer on. See if the problem is resolved.


Synchronize Calendar-Evolution between computers

Yes, synchronizing calendar with Ubuntu One doesn't work. But you can use SyncEvolution to do that. There is also a GUI called Genesis to simplify. If you want an online solution, then you can also get an account at Funambol.com, or similar.

You could sync Evolutions data directory on Ubuntu One, but I wouldn't recommend it as it can have negative side effects.


UEFI Dual-Boot - Ubuntu 12.04.3 + Windows 8.1 (One GPT HDD)

Broadly speaking, you made two mistakes:

The last I heard, EasyBCD is useless for managing a dual-boot installation on an EFI-based computer. Thus, by installing it you just started digging a hole for yourself.
You tried to apply BIOS-specific knowledge to an EFI-based computer. I know that almost everybody (including manufacturers) is calling EFIs "BIOSes," but they aren't. An EFI boots in a fundamentally different way than a BIOS, so you really do need to read up on EFI boot methods and ignore all your BIOS-specific knowledge. Thinking of an EFI as a BIOS just creates confusion and causes mistakes. See the following sites for EFI-specific information:

My page on installing Linux in EFI mode
My page on EFI boot loaders for Linux
The Ubuntu wiki on EFI-mode installations

You can recover your system from where you are now, but it might be simpler to start from scratch. To do so, follow your procedure through step #6; however, be sure that you boot the Linux installer itself in EFI mode. That should get you an EFI-mode installation of GRUB, which in theory should boot Windows without your having to run Boot Repair. If you have problems at this point, you can either run Boot Repair (which is klunky and often over-does things) or install my rEFInd boot manager. Do not install EasyBCD.

At this point in time, your best method of dealing with problems is to read and understand the technology; automated tools get things right sometimes, but they also often mess things up worse than they were before. (This isn't really a criticism of the automated tools; unfortunately, there's so much variability from one EFI to the next that it's impossible for automated tools to get things right all of the time.) If possible, test a tool on a USB flash drive without installing it to your hard disk. You can do this with rEFInd, but it's difficult to do a test installation of GRUB to a USB flash drive.


Install Ubuntu on Laptop dual with windows 7

Did your Linux installation take all the HDD space on your notebook? If the answer is yes, then you probably can't install Windows 7 over Linux/dual boot. If there are more space, you probably have to prepare another partition for installing Windows 7 using Gparted (in Linux).

And beware, if you install Linux first then Windows 7 after it, you probably face another booting problem, which will required you to fix your grub/lilo.


Open terminal and go to / by cd / then sudo mkdir <directory name>

or

Open nautilus with sudo sudo nautilus


I had this same issue after installing wordpress on a fresh Ubuntu Amazon AMI. The issue for me was that /src/www was not group permissioned www-data, it was set to root/root with 750 permissions. Update www to www-data group: chgrp www-data www.


Yes this is possible, with a workaround. First save this script somewhere

#!/bin/sh
while true
do
sleep 4
numlockx on
done

then type in crontab -e in the terminal, add this entry to it:

@reboot /path/to/script

It should work, restoring numlock all the time.

Source


The seq command can increment by a float:

declare -a steps=($(seq 1 .5 5))

You can get the increment with echo 'scale=1;(5-1)/8'|bc


node.js + jpm not working after installing: JPM [error] Error: spawn EACCES

This is a bug in JPM.

You can run your add-on with jpm with the following command:

jpm run -b $(which firefox)

$(which firefox) gets the path to your firefox binary.


Am not able to install other debian packages after installing google chrome. what could be the issue?

The lists shouldn't contain the file:

dl.google.com_linux_chrome_deb_dists_stable_main_i18n_Translation-en

The only files that it should contain are:

dl.google.com_linux_chrome_deb_dists_stable_main_binary-amd64_Packages
dl.google.com_linux_chrome_deb_dists_stable_main_binary-i386_Packages
dl.google.com_linux_chrome_deb_dists_stable_Release
dl.google.com_linux_chrome_deb_dists_stable_Release.gpg

Please do this and report back if there are still any errors:

sudo rm -rf /var/lib/apt/lists/* && sudo apt-get update && sudo apt-get install cryptkeeper


Using iptables to block all internet-originating traffic except for a specific port

Here is an iptables script. The LAN (Local Area Network) and interface definitions are for my test computer and would have to be changed for the users requirements:
doug@s19:~/iptables/misc$ cat ask1337350
#!/bin/sh
FWVER=0.01
#
# ask1337350 Smythies 2021.05.10 Ver:0.01
#       See here:
#       https://askubuntu.com/questions/1337350/using-iptables-to-block-all-internet-originating-traffic-except-for-a-specific-p
#       run as sudo on s19.
#
#       Note: These rules likely need to be merged with
#       any existing iptables rules set.

echo "Loading ask1337350 rule set version $FWVER..\n"

# The location of the iptables program
#
IPTABLES=/sbin/iptables

#Setting the EXTERNAL and INTERNAL interfaces and addresses for the network
#
# Set for Smythies s19 computer (for testing). Edit for ask1337350's computer.
# EXTIF="enp3s0" no,no,no use the bridge br0, or everything breaks, big time.
EXTIF="br0"
EXTIP="192.168.111.136"
NETWORK="192.168.111.0/24"
UNIVERSE="0.0.0.0/0"

# Clearing any previous configuration
# Be careful here. I can do this on s18, but do not know
# about vxsa4's computer.
#
echo "  Clearing any existing rules and setting default policies.."
$IPTABLES -P INPUT DROP
$IPTABLES -F INPUT
$IPTABLES -P OUTPUT ACCEPT
$IPTABLES -F OUTPUT
$IPTABLES -P FORWARD ACCEPT
$IPTABLES -F FORWARD
$IPTABLES -t nat -F

# Delete user defined chains
$IPTABLES -X
# Reset all IPTABLES counters
$IPTABLES -Z
# Smythies: While my references do not have it, I think this is needed.
$IPTABLES -t nat -Z

# loopback interfaces are valid.
#
$IPTABLES -A INPUT -i lo -s $UNIVERSE -d $UNIVERSE -j ACCEPT

# Allow any related traffic coming back to the server in.
#
$IPTABLES -A INPUT -i $EXTIF -s $UNIVERSE -d $EXTIP -m state --state ESTABLISHED,RELATED -j ACCEPT

# Allow in any LAN traffic
#
$IPTABLES -A INPUT -s $NETWORK -i $EXTIF -j ACCEPT

# Also allow in port 8920 traffic from anywhere
# The question does not specify a protocol. Do both.
#
$IPTABLES -A INPUT --protocol udp --destination-port 8920 -i $EXTIF -j ACCEPT
$IPTABLES -A INPUT --protocol tcp --destination-port 8920 -i $EXTIF -j ACCEPT

# Do not allow in anything else
# Could also just fall through to default policy here, but sometimes a logging rule is also desired.
#
$IPTABLES -A INPUT -i $EXTIF -j DROP

# At this point carry on. This might need to be merged into whatever existing iptables rule set.
#
echo ask1337350 rule set version $FWVER done.

Giving this, after a short time:
doug@s19:~/iptables/misc$ sudo iptables -xvnL
Chain INPUT (policy DROP 0 packets, 0 bytes)
    pkts      bytes target     prot opt in     out     source               destination
       8      616 ACCEPT     all  --  lo     *       0.0.0.0/0            0.0.0.0/0
     133     7916 ACCEPT     all  --  br0    *       0.0.0.0/0            192.168.111.136      state RELATED,ESTABLISHED
      51     3355 ACCEPT     all  --  br0    *       192.168.111.0/24     0.0.0.0/0
       0        0 ACCEPT     udp  --  br0    *       0.0.0.0/0            0.0.0.0/0            udp dpt:8920
       0        0 ACCEPT     tcp  --  br0    *       0.0.0.0/0            0.0.0.0/0            tcp dpt:8920
      19     5880 DROP       all  --  br0    *       0.0.0.0/0            0.0.0.0/0

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
    pkts      bytes target     prot opt in     out     source               destination

Chain OUTPUT (policy ACCEPT 90 packets, 12122 bytes)
    pkts      bytes target     prot opt in     out     source               destination


I fixed my PPA errors but when I try to install Steam all additional packages say No Installation Candidate

Which Ubuntu are you running? And why do you have to install it like that? Can't you just install with this?

  sudo apt-get install steam

See
Installing Steam on Ubuntu 12.04

On a sidenote, you may have to install the restricted repo in USC to be able to install Steam through it.


Problem with GIMP when instaling scangearmp on ubuntu 14.04

The gimp packages does not contain the files necessary to compile other software against it. On Ubuntu the the files needed for using some software and the files needed for development and compilation are in separate packages. In order to fulfill the requirements for compilation you need to install the dev-packages for the dependencies.

In the case of gimp this should be the package named libgimp2.0-dev.

apt-get install libgimp2.0-dev


How to create more partitions od USB flash drive?

Gparted should be able to partition USB flash drives. Ubuntu disk utility should be able to do it also, you need to make sure it is not mounted first. In the disk utility there is an option to unmount the device. Failing that, fdisk should definitely work if you are happy with the command line.

I have installed Linux to USB drives before and they boot just fine. Remember to install grub to the USB drive.


What plaintext editor with math symbols integration is available?

You can use Character Map plugin in gedit. To enable it, go to Edit > Preferences > Plugins and enable Chararcter Map. You might have to enable Side Panel too. For that just use the shortcut F9.

You might want to select Common from the list.


No sound in Hidden Folks (Unity engine game)

This problem was entirely caused by a change I made to PulseAudio quite a while back. I added the option enable-remixing = no to /etc/pulse/daemon.conf (the default is yes) to prevent Pulse making a surround mix from stereo music. I ended up getting a music player to send the exact music format to my receiver using ALSA anyway, so this setting is redundant.

When set to no Pulse drops any channels it can’t match, so some oddity in the Hidden Folks audio caused all output to be dropped.


Unable to connect to wifi Dell D820 Ubuntu

Please note that your mode is shown as Master in iwconfig. You also have a 10.42.0.1 IP address. That suggests that you have used the utility to Create New Wi-Fi Network. This is for computer-to-computer connections and not what you want. You want to make a computer-to-router connection.

Please remove all such settings by clicking the Network Manager icon and editing connections. Also, make sure that, under Wi-Fi, the mode is Client and under IPv4 settings, the mode is set to DHCP.

Reboot and let us hear your report.

I recommend that your regulatory domain be set explicitly. Check yours:

sudo iw reg get

If you get 00, that is a one-size-maybe-fits-all setting. Find yours here: http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 Then set it temporarily:

sudo iw reg set IS

Of course, substitute your country code if not Iceland. Set it permanently:

gksudo gedit /etc/default/crda

Use nano or kate or leafpad if you don't have the text editor gedit.

Change the last line to read:

REGDOMAIN=IS

Proofread carefully, save and close the text editor.

Network Manager will default to ethernet if it is available as it is generally more secure and faster. Please detach the ethernet and try to connect. If you are unable to connect, let us see another paste:

dmesg | grep -e b43 -e wlan | tail -n20

In the paste you supplied, we see repeats of this:

denied association (code=27)

Please check the settings in the router. WPA2-AES is preferred; not any WPA and WPA2 mixed mode and certainly not TKIP. Second, if your router is capable of N speeds, you may have better connectivity with a channel width of 20 MHz in the 2.4 GHz band instead of automatic 20/40 MHz, although it is likely to affect N speeds. I also have better luck with a fixed channel, either 1, 6 or 11, rather than automatic channel selection. Also, be certain the router is not set to use N speeds only; auto B, G and N is preferred. After making these changes, reboot the router.

Possible reference: https://forums.kali.org/showthread.php?29952-Will-not-associate-when-AP-is-802-11n-only


This can be done by adding sections describing desktop actions to the launcher of the application. For example, the launcher of the Google Chrome application contains a few such sections to add the "New Window" and "New Incognito Window" sections, like:
[Desktop Entry]
Version=1.0
...

[Desktop Action new-window]
Name=New Window
Exec=/usr/bin/google-chrome-stable

[Desktop Action new-private-window]
Name=New Incognito Window
Exec=/usr/bin/google-chrome-stable --incognito

By adding your own [Desktop action ...] sections, you can add additional right-click options or modify the existing ones.
Copy the launcher to your ~/.local/share/applications if you are the only user needing the additional right-click items. You can then copy and customize the launcher as a normal user.
If you wish to make the change available systemwide, then modify a copy of the launcher in /usr/local/share/applications. You need to create the folder as it does not exist by default in Ubuntu. You could also edit the installed launcher directly, but it may be overwritten on a subsequent update. You need root permissions to make these system wide changes.


Cannot connect two external monitors. Ubuntu 20.04.02 on ThinkPad-P1-Gen-3

As suggested in the thread, this was resolved by downgrading the nvidia driver. In my case I downgraded to nvidia-450.


forward port 80 for multiple IP addresses on the same Ubuntu server

What you are asking to do is not possible (that I know of) with NAT. There is really no way for iptables to know where to send what traffic and you can port forward only one instance of post 80.

Imo am more elegant solution is to use nginx as a reverse proxy.

See:

https://help.ubuntu.com/community/Nginx/ReverseProxy

http://bostinno.com/channels/nginx-as-a-reverse-proxy-with-wordpress/

It works well as nginx is fast, light weight, and you can forward to your various servers based on url ;)

Nginx serves out the static content very fast and apache serves out the dynamic content (usually php) very fast (see the second link).


How do I move the "Show Applications" icon in Ubuntu Dock?

If you don't like to run command then open dconf-editor( by simply click show applications icon and search dconf) then go to

    org > gnome > shell > extensions > dash-to-dock

and search for the show-apps-at-top and make it on

See screenshot for your reference:


How to disable root privilege for SSH'ed users?

Maybe you want to check out this link.
The point is that PermitRootLogin diasbles login via the user root. This is a security risk. However, your normal user can always login an then escalate to root (e.g. via sudo). An attacker would need two sets of passwords: your user's and root's password, which makes it harder (given you have sane password policies).

If you want to disable a user from sudo you have to take this priviledge from him. However, this woud request you doing it on your laptop you want to connect to. AND FURTHER, this will disable your user to use sudo on your laptop -- so careful: you might lock yourself out of the system when your only user is removed. (This link might be helpful)


Full Explination how to Install Juno Pulse and connect to remote access:

http://computing.vt.edu/kb/entry/3987

Hope this helps!


I can't run "sudo" on a certain command, because its not in the sudo path. How can I give the right permissions then?

Looks like the permissions in your ~/ are messed up. All files there should be owned by you. Use find ~/ -user rootto see if root has taken over some of it, especially the directory’s in the error you posted. Change permissions back to yourself where necessary.

Where did you get "pip" and how was it installed?


Can't run Ubuntu installed on a USB drive

Well, I should have mentioned at the beginning that I want to have a second partition for storage.
I used the LiveCD to unmount the USB drive with Ubuntu installed on it (with the method from sudodus) and allocate some space for storage. However, after creating second partition I could no longer run Ubuntu.
I tried installing it once again, this time making the storage partition the first one. I chose FAT32 and set mount point to /windows. Then I allocated remaining space for Ubuntu, chose ext4 file system, set the mount point to /, and chose the USB drive (not Ubuntu partition) as the device for bootloader instalation. However, it still doesn't work.
Here's the error message I get when trying to run it.
https://i.stack.imgur.com/QL0RA.jpg


Ubuntu won't get further than plain screen after booting

I've seen alot of issues with Dells and Ubuntu, and in fact anything but windows.

 What I would do

Acquire live CD/USB
Boot into Ubuntu (try ubuntu)
Start "gparted"
review drive table to see if anything weird is present. Perhaps a seperate boot partition.

 This might help you explain the weirdness.


How to turn backlight off | Sony vaio | Ubuntu Trusty

Open terminal and try this:

  xset led off

If that doesn't work get this.

References:

Question from the past.

Sony Support Answer


You can setup authentication (of varying levels and complexity) in Squid to prompt for user/pass by the person browsing.  For such a small implementation, I'd maybe recommend using basic authentication, but your decision.

You can review the documentation here: https://wiki.squid-cache.org/Features/Authentication

But essentially, for Basic Authentication you'll need to install the apache2-utils package. Then follow this:

sudo touch /etc/squid/passwd
sudo chown proxy: /etc/squid/passwd
sudo htpasswd /etc/squid/passwd user1

Now we need to edit the squid.conf for authentication.  Towards the bottom and before you http_access allow none, you'll want this:

auth_param basic program /usr/lib64/squid/basic_ncsa_auth /etc/squid/passwd
auth_param basic children 5
auth_param basic realm Authentication for Squid Proxy
auth_param basic credentialsttl 6 hours
acl auth_users proxy_auth REQUIRED
http_access allow auth_users

Now restart squid and when you access the proxy you'll be prompted for user/pass.  There are helper applications that allow the user to modify their own password after the fact, but for a single instance, it probably isn't necessary.

Good luck


This issue has been fixed in the latest Cinnamon versions.

You can upgrade Cinnamon using a PPA like sudo add-apt-repository ppa:gwendal-lebihan-dev/cinnamon-nightly

Install the cinnamon with:

sudo apt-get update
sudo apt-get install cinnamon

and then the issue should be fixed...

Oh and BTW: The icon pack is actually missing in that screenshot, if you want a Windows 7 icon pack, add ppa:noobslab/themes and ppa:noobslab/icons to your Software Sources using the method above. Then use the following commands to install the packages:

sudo apt-get update
sudo apt-get install mindows-transformation-themes
sudo apt-get install win-icons

Now you should be able to get an icon pack.

Update:

Do NOT forget to purge the previous cinnamon configuration(s) with sudo apt-get purge cinnamon before you try to install Cinnamon under the new PPA.


Just reinstall gsettings-desktop-schemas:

sudo apt-get install --reinstall gsettings-desktop-schemas

Source: http://aptosid.com/index.php?name=PNphpBB2&file=viewtopic&t=2246


CM-14.1 compilation error on Ubuntu 32 bit

I finally got it fixed by downloading accurately modified versions of the makefiles needed to compile the ROM from this website code.metager.de


Introduction

While technically it is not possible to bookmark a file in Nautilus, it is possible to add specific directory  and save symbolic links to files there. The script I wrote does exactly that.

Usage

The script is meant to behave this way: right click on a selected file, navigate to Scripts , click bookmark_file.py . The script will automatically create Bookmarked_Files directory in your file, and add it to Nautilus panel. Next time you click on it, you will find symlink to your file there

Note that symlinks can safely be removed from the bookmarks folder, and the actual files will remain in their respective place.

Obtaining the script.

The script source code is provided in this answer as well as on GitHub

If you want to manually add the file:

Copy the script source code and save it as bookmark_files.py in $HOME/.local/share/nautilus/scripts directory.
make sure you make the file executable. You can either do this via right click in Nautilus, or chmod +x $HOME/.local/share/nautilus/scripts/bookmark_files.py in terminal

Alternatively you can do it via git in command line (you will need to have git installed first ):

git clone https://github.com/SergKolo/nautilus_scripts.git  $HOME/.local/share/nautilus/scripts

Another way is to get zip file from the same github repository.

Source Code

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Author: Sergiy Kolodyazhnyy
# Contact: 1047481448@qq.com
# Description: Creates a symlink to user-selected file in
#              /home/username/Bookmarked_Files
#
# The MIT License (MIT)
#
# Copyright (c) 2016 Sergiy Kolodyazhnyy
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
__author__ = "Sergiy Kolodyazhnyy <1047481448@qq.com>"

import os
import sys
import subprocess

def main():

    user_home = os.path.expanduser('~')
    bookmark_dir = os.path.join( user_home,'Bookmarked_Files'  )
    file_path = os.path.abspath(sys.argv[1])

    # ensure the directory exists
    if not os.path.lexists( bookmark_dir  ):
       os.mkdir( bookmark_dir  )

    # check if the directory is already added as bookmark
    try:

        bookmarks = os.path.join(user_home,'.config/gtk-3.0/bookmarks')
        with open(bookmarks ,'a+') as file:
            file.seek(0)
            data = file.read()
            if not bookmark_dir in data:
                file.write('file://' + bookmark_dir )

    except IOError:
         text = '--text="Cannot auto-add bookmark directory to panel.'
         subprocess.call(['zenity','--error',text])

    # create symlink to file
    try:
        basename = sys.argv[1].split('/')[-1]
        os.symlink(file_path, os.path.join(bookmark_dir,basename))
    except OSError as error :
        text = '--text="' + str(error) + '"'
        subprocess.call( ['zenity','--error',text] )

if __name__ == '__main__':
    main()

Screenshots

Before running the script

After running the script. The image shows newly created Bookmarked_Files directory and symbolic link to the file from previous image


Installing the x86-input-mtrack driver makes the trackpad on my 2012 MacBook Air (Ubuntu 14.04) just as usable as under OS X. It supports resting the thumb/palm on the trackpad while using it, and 3/4-finger swipe gestures.


Why is my PC freezing while I'm copying a file from an external hdd?

udev/rules.d folder can be in different places on different Linux distros.

So just try searching for rules.d or udev from your's /usr or / folder:

find /usr -name "rules.d"

If nothing found, than have a look system wide:

find / -name "rules.d"

Than look for folder with *.rules files, and create a new file for max_sectors rule in it.


What are the main differences between VirtualBox networking types?

This page : http://www.virtualbox.org/manual/ch06.html

covers the virtualbox networking quite well.

NAT - Your host will act as a router (firewall) and your guests will be on a private subnet. Use this if you are not running servers on the guests.

Bridged - Your guests will get a ip address on the same subnet as your host. Use this if you are running servers on the guest and wish to connect from other computers on the LAN.

Host Only - Sort of a hybrid. As the name implies, with this option you can connect to the guest servers from the host only. Use this for "private" (host only) servers. I use this if I am running a test web server.

To make a long story short, assuming you have a router, I would use bridged networking.


How do I make a KEYBOARD shortcut to run SMPlayer?

smplayer is found in /usr/bin/.  The folder of /usr/share/applications/ is where all the .desktop files are found.

If you need the full path to a file, use the which command (this only works with applications that are in the $PATH statement):

:~$ which smplayer
/usr/bin/smplayer

Then when you create your keyboard shortcut you use the output from that command, in this case it is /usr/bin/smplayer.

Hope this helps!


How to remap "lock screen" button to suspend

Turns out, that if I override shortcut for lock from Super+L to something else and then create custom shortcut with command systemctl suspend and keybinding Super+L, then it somehow applies not only to Super+L but also to dedicated "lock button".


How to install the 'pgfplot' package in Lubuntu?

The files amsrefs.sty and pcatcode.sty are not included in the package texlive-latex-base so that is probably why you are told that the directory does not exist.

The files you are looking for is found in another TeX Live package, namely texlive-bibtex-extra. Install it and your document should compile. To install it do e.g.

sudo apt-get install texlive-bibtex-extra


Edit: upon re-reading your question I surmise that your server is behind a firewall that you do not control? If so, please disregard the iptables part of the answer and skip to the SSH config part...

Is it a matter of wanting the transport to be encrypted, or is it simply a matter of getting through the firewall?

Getting through the firewall could be as simple as adding something like:

iptables -A INPUT -i eth0 -p tcp -s aa.bb.cc.dd/32 --dport 7878 -m state --state NEW,ESTABLISHED -j ACCEPT

If you're looking for a good resource on configuring an SSH connection take a look here: http://nerderati.com/2011/03/17/simplify-your-life-with-an-ssh-config-file/

There's too much to be said on the subject to hash it all out here.

Once you have the basic ssh config set up it should be relatively trivial to create a script to start the connection (including a forwarded port) which could for example be executed when your network interface comes up, similar to the way a lot of people have their iptables rules loaded.
Take a look in /etc/network/if-up.d/ (off the top of my head) for examples.

Hope this gets you started!


How can I tie an alert to a LIbra database?

I think you would get better help via an Libra Office Forum. However, you can use a query to tie the entry date to a call back date.

  select  Year(`date`) || '-' || Month(`date`) + 1 || '-' || Day(`date`) AS "+1 month" from Table1

HSQL included in base doesn't support dateadd yet (or any date math that I can find), but it's going to be in the next version.

Please note the code above will fail for an entire month, it's just an idea and not a final answer. Of course if your backed with MySQL or something else then you can do some proper date math.


How to exit a never ending process without killing the process

As mentioned by ridgy you can specify & after your command to drop it into the background. For my particular case this didn't work. NOTE using & needs to go in hand with bg so that the process can run in the background the same goes for using ctrl-z to set a background process.


Snap application not starting due to "AppArmor policy"

I tried the same as you after setting my system to the US English locale and the problem persists even there, so I looked a bit further, but unfortunately for you it's a bug and the workaround is to install bookworm using two methods on Ubuntu:

Install from the stable PPA
Install from Flatpak

Instructions for both of the above are here
Sorry! :-(


Backward compatibility between systemd and the SysV init system relies on hooks provided by systemd-sysv-generator, as descibed here:

How does systemd use /etc/init.d scripts?

Generators should be run automatically on boot, however if you want to avoid rebooting it appears to be possible to run them on demand by invoking

systemctl daemon-reload

From man systemctl:

   daemon-reload
       Reload the systemd manager configuration. This will rerun all
       generators (see systemd.generator(7)), reload all unit files, and
       recreate the entire dependency tree. While the daemon is being
       reloaded, all sockets systemd listens on behalf of user
       configuration will stay accessible.


Reinstall base Ubuntu without formatting or removing manually installed packages

For the future:

If you have a remote server in a Data centre 1000 miles away you'd better have an IPKVM switch installed so you don't have to rely solely on ssh to reach it.

If the server is on Mount Everest: add an Iridium phone and a modem as well...

Then you can have a bootable 512MB FAT CloneZilla partition on that machine (I use an SLC USB stick) and use the console to boot to that and back-up an image of your system partition(s) to your data drive and then copy the previous system image on the secondary partition of your USB stick before you start adding trusty-proposed to the server. (I keep most of my system back-ups on the data drive: they're only 6GB)

For now:

Take an apt-backup
Go through your /var/log/apt/history*
Make your own automagical script that does an apt-get purge of all the stuff you really don't want/need any more from the data in the previous step
Execute the script while praying to Linus of the Torvalds
Update your repositories like you want them to be (like removing trusty-proposed)
Reboot while praying to Richard of the Stallmans
If everything works out: implement the IPKVM switch solution above.


Stop Enter press from lock screen to be recieved by focused application on desktop

Create dbus monitor script Ubuntu 16.04

You could create this script which is invoked by dbus after screen is unlocked. Call the script from your Startup Applications and it will always be running.

#!/bin/bash
dbus-monitor --session "type=signal,interface=com.canonical.Unity.Session,member=Unlocked" |
  while read MSG; do
    LOCK_STAT=`echo $MSG | awk '{print $NF}'`
    if [[ "$LOCK_STAT" == "member=Unlocked" ]]; then
        logger "Screen unlocked"
        # Flush keyboard buffer
        while read -e -t 1; do : ; done.
    fi
  done

Note this is for Unity under Ubuntu 16.04. Ubuntu 14.04 and earlier versions have different methods. Different desktop environments may have different methods as well.

This code works for other utilities however the #Flush keyboard buffer section is new and untested.


How can a proxy be set for the whole xubuntu system?

Whilst the the other answers are good & ok (for terminal/bash prompts), in my opinion the correct place to add these are /etc/environment.

Use sudo or gksu then add:

http_proxy="http://user:password@proxyserver:port"
https_proxy="http://user:password@proxyserver:port"
ftp_proxy="http://user:password@proxyserver:port"

Very similar but for those who run everything from within a term then yes the other answers will give results but for those in GUI land would be better off adding the above line to the environment file for full correct system wide usage.


How do I enable Backlit Keyboard on Asus N56VM

I have recently corresponded with Asus Support on this subject and they have confirmed that

  “…there are no UK N56VM models that have a backlit keyboard. …” –
  “…the backlight feature … is normally enabled by press FN + F$ to
  illuminate. …” – “…the key will have an image of a keyboard and
  sunlight … if it does not have that, then this unit will not have that
  function. …”

Trust that assists


Which terminal emulator is used in my tty1?

Not exactly. This means that tty1 is using the 'Linux' terminfo file of which defines the capabilities of the terminal:

  For every (well almost) model of terminal it tells application
  programs what the terminal is capable of doing. It tells what escape
  sequences (or control characters) to send to the terminal in order to
  do things such as move the cursor to a new location, erase part of the
  screen, scroll the screen, change modes, change appearance (colors,
  brightness, blinking, underlining, reverse video etc. --Source


Wifi switch Amber (off) no matter what I do: Centos(RPM based Linux) w/ BCM4311 as wlan0

Here is the official page for getting wifi working on that model laptop: https://wiki.ubuntu.com/HP_Pavillion_dv6000_%28dv6604nr%29


press "CTRL ALT T" together to open up a terminal.  Then type in

sudo apt-get install steam


Problem running private Application with FFMPEG on Ubuntu 19

Your application is old and is looking for a really old FFmpeg version.

Problems:

The application is looking for the .so files in the wrong location. Your application is looking for /lib/x86_64-linux-gnu/libavutil-ffmpeg.so.54, etc, but your FFmpeg likely only provides /usr/local/lib/libavutil.so.56.
The application is looking for the wrong names. libavutil-ffmpeg is the old naming scheme used by the ffmpeg package in old Ubuntu versions.
The application expects an older FFmpeg version. The 54 and 56 represent the major versions of each FFmpeg library. Major versions are not API compatible with each other. The application looks like it was written for the FFmpeg 2.8 release branch according to your major version numbers. This is very old. You compiled and installed FFmpeg 4.2. Either update the application code to use the FFmpeg 4.2 release branch, or install FFmpeg 2.8 instead.


Please try:

sudo dkms remove 8192cu/1.11 --all
sudo rm /etc/modprobe.d/blacklist-native-rtl8192.conf

Reboot and check:

sudo dkms status

There should be no mention of 8192cu.

If you find that your wireless is still slow, check to see if you have two conflicting drivers loaded:

lsmod | grep rtl

You will probably find that both rtl8xxxu and rtl8192cu are loaded. Let's blacklist the least likely to succeed:

sudo -i
modprobe -r rtl8192cu
echo "blacklist rtl8192cu"  >>  /etc/modprobe.d/blacklist.conf
exit

Any improvement? It might take a reboot.


Bash - Copy all .jar files to current directory from subfolders

Assuming all file names are unique, you can use something like (from datahub directory):

find . -name "*.jar" -exec cp {} /path/to/targetFolder \;

where /path/to/targetFolder is the directory where all jar files will be copied.


Can I disable GNOME legacy tray in 17.04?

Several GNOME shell extensions can do that.

Hide Legacy Tray will just hide it.
TopIcons Plus will move
the items from the tray to the top bar. It's cool and has many
customize options like icons color saturation, padding and size.


Why there is .desktop file in new Unity based ubuntu OS?

*.desktop files are shortcuts. Your question is way too general, so this is as much as I'm able to answer :)


Would Microsoft Visual studios C++ 2010 work on Ubuntu?

Visual Studio would run like death on Ubuntu, but if C++ is your target language, there are way better options out there, many of which are free.

Try Eclipse: http://www.eclipse.org/
or Code::Blocks: http://www.codeblocks.org/

Both are very popular.


Running a script after the gui has loaded

Just call sleep at the beginning of your "nice-to-haves" script. That shouldn't block the desktop from loading. You may also be able to speed things up on multi-core hardware by backgrounding each process.

e.g.

sleep 20s
<something that takes a long time> &
<this can now start immediately> &
...

The two commands will run in parallel, but they'll wait for 20 seconds before starting. You can use "m", "h", or "d" to specify minutes, hours, or days if a few seconds isn't what you had in mind. =)


Does Software Updater update apps installed by Software Center

If the application was installed originally from Software Center, then yes you have it in repositories already (although some apps might have other updated version outside ubuntu official repositories).
If an application was installed by a method other than Software Center, then maybe or maybe not you have its repository automatically added during installation (you need to check software sources or sources.list file for that).
Other application - MySQL workbench for example, have an in app tool to check for an update, and might direct you directly to update process.


Why is the firewall disabled by default?

Out of the box, Ubuntu ships with no TCP or UDP ports open, hence the belief that there's no reason to run Uncomplicated Firewall (ufw) by default.  I agree, though, that having ufw disabled is a strange decision.  My reasoning being that inexperienced users are feasibly going to install things like Samba, Apache and such like as they experiment with the system put before them.  If they don't understand the implications of this, they will expose themselves to malicious bevaviour on the internet.

Example - I've got my laptop configured with Samba which is fine in my home network protected with WPA2.  But if I take my laptop to a Starbucks, I might not think anything of it, but that laptop is now advertising my shares to all and sundry.  With a firewall, I can restrict my samba ports to only my home server or peer devices.  No need to worry as much now about who might be trying to connect to my laptop.  Same goes for VNC, SSH, or a huge number of other useful services my laptop might be running, or trying to connect to.

Ubuntu takes a very on/off approach to certain elements of security, a philosophy I can't agree with.  Security might be technically on or off, but by layering elements of security over one another, you end up with a better system.  Sure, Ubuntu's security is good enough for a large number of use cases, but not all.

Bottom line, run ufw.  Better safe than sorry.

Uncomplicated Firewall has a number of graphical front ends, but the simplest is Gufw.

sudo apt-get install gufw

Here, I'm allowing all traffic from specific server VLANs in my corporate environment and I've added a rule to allow the necessary ports for a reverse SSH session to bounce off this machine.


You may want to use ungoogled-chrome which is a modified version of Chrome/Chromium with all the Google spying removed:

https://github.com/Eloston/ungoogled-chromium


How to fix a computer that won't restart?

Open the terminal and edit this /etc/default/grub file under Ubuntu 12.04

 sudo gedit /etc/default/grub

Find now this line:

  GRUB_CMDLINE_LINUX=""

Replace it with this one:

  GRUB_CMDLINE_LINUX="reboot=efi"

Save your file and close, then update Grub with this command:

sudo update-grub

Reboot your system, then try to restart your system to see if it works or not. If this is not working for you, repeat the same steps and try one of these lines instead:

  GRUB_CMDLINE_LINUX="reboot=bios"

or

  GRUB_CMDLINE_LINUX="reboot=acpi"

or

  GRUB_CMDLINE_LINUX="reboot=pci"


I fixed my problem.
I deleted and merged all partitions. This has fixed the problem I now have the option to
install Ubuntu alongside windows 7.

The extra partitions I had were
Recovery(D:) "not user about the letters
HP_Tools(F:)

I hope this can help anyone who is/was having similar problem


UFW rules are checked in sequence. The first rule that matches source and destination applies and remaining rules are ignored.

When you use a plain ufw deny command, the rule is added after the others (use ufw status to list the rules in order). If the source address matches an allow or limit line above your deny (and there is likely one), that allow/limit line applies and your rule is not checked.

To make sure your rule appears first, do:

ufw insert 1 deny from 78.128.113.58/24 to any


403 Forbidden is not an error code, but a HTTP status code. It is usually caused by an incorrect Index file or incorrect permissions. You should check nginx's error log file for more details.


How do I make Firefox start always maximized?

It is possible to achieve this with a python script. The script requires python-wnck and python-gtk to be installed in order to work, although I think these are installed by default anyway.

Copy and paste this into a text editor and save it somewhere (eg ~/.maximised-firefox.py):

#!/usr/bin/env python
import wnck
import gtk
import subprocess
import time

firefox = subprocess.Popen(["firefox"])

b = True
while b:
    screen = wnck.screen_get_default()
    while gtk.events_pending():
        gtk.main_iteration()
    windows = screen.get_windows()
    for w in windows:
        if w.get_pid() == firefox.pid:
            w.maximize()
            b = False
    time.sleep(1)

firefox.wait()

Then make this executable and copy to a system wide location by opening a terminal and running:

chmod +x ~/.maximised-firefox.py
sudo cp ~/.maximised-firefox.py /usr/bin/maximised-firefox

You can then, using your grandma's profile, edit the menus using the menu editor. You can get to this from the right click menu of the menu or by running alacarte.

Then edit the firefox item and set the command to maximised-firefox.


Find out what is starting processes by command

Command ps auxf from console will give you simple "tree" view of processes. Just kill parent.

Or in your case you should better find process before java: with ps auxf | grep java -B11


/usr/sbin/update-info-dir: 1: /etc/environment: JAVA_HOME: not found

Please fix your path syntax, remove the spaces around JAVA_HOME and = operator.

Change:

JAVA_HOME = "/opt/jdk1.8.0_144/bin/"
JRE_HOME = "/opt/jdk1.8.0_144/jre"

To:

JAVA_HOME="/opt/jdk1.8.0_144/"
JRE_HOME="/opt/jdk1.8.0_144/jre"


Overclocking is usually done from the bios. The bios can be accessed by pressing a certain key when starting the computer. It does not matter what OS is running, eg the settings will apply to both Linux and windows.

Although, that chip is getting a little old now TBH :P


It means VirtualBox couldn't find the VM xml files (like ubuntu.xml). Make sure the file exists and is accessible.


Chrome Version 57.0.2987.133 (64-bit) - issues with yahoo's charting

Try to disable graphics acceleration.

Open Google Chrome.
Click the menu button (It says Customize and
control Google Chrome when you hover over it) at the top-right
corner of the window.
Click Settings.
Scroll down and click the Show
advanced settings link at the bottom of the window.
Scroll down to
the System section and uncheck the box to the left of Use hardware
acceleration when available.


How to batch remove bad character from file-names?

You can take advantage of the iconv utility, able to convert a string from an character encoding to another, and to also perform transliteration to similar character, when the destination encoding miss them.

The following script will rename each file passed on the command line to an ascii version of the same name. Modify the variable input_enc if needed, and run with --no-test as first parameter to really rename.

#!/bin/bash

input_enc="UTF-8"

test=1
if [[ $1 == '--no-test' ]]; then
  test=0
  shift
else
  echo "This is a simulation"
  echo "run with --no-test as first parameter to really rename"
  echo
fi

normalize() {
  local f="$1"
  echo "$f" | iconv -f "$input_enc" -t ASCII//TRANSLIT
}

for f; do
  g="$(normalize "$f")"
  if ((test)); then
      echo mv -i "$f" "$g"
  else
      mv -i "$f" "$g"
  fi
done


Blacklist or purge brcmfmac on Ubuntu 19.04

I don't know if the procedure might have changed in 19.04 but generally speaking:

1) you need to find the driver / kernel module that is using your device

2) you need to blacklist it in /etc/modprobe.d/ writing a file with the content blacklist yourkernelmodule

An Example:

type ls -knn

The output is a huge list. Identify your device. In my case Ethernet controller for example

03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 03)
    Subsystem: Gigabyte Technology Co., Ltd Onboard Ethernet [1458:e000]
    Kernel driver in use: r8169
    Kernel modules: r8169

The kernel driver / module is r8169.

If I would like to blacklist that driver:

echo blacklist r8169 > /etc/modprobe.d/blacklist-r8169.conf

Now the driver should no longer be automatically loaded on boot.

To remove the already loaded driver type:
rmmod r8169 and / or modprobe -r r8169

To unblock that driver again the file needs to be removed

rm /etc/modprobe.d/blacklist-r8169.conf


How to save changes made in a live session to Hard Disk?

Setting Up Your USB Stick

Setting up a device for use as Live CD persistent storage device is fairly simple. We just partition it and format it while giving it a special name that the Live CD recognizes. Although you can use any device visible to the CD for persistent storage, in this example we will discuss using a USB stick since they are pretty common now and are relatively inexpensive. There are no minimum size requirements for your storage device, but naturally, the more storage space you have the more applications you can install and settings you can save.

Plug your USB Stick into your computer and let's get it ready for Live CD persistence.

Note: If you previously followed the instructions on this page for "casper-cow" and it didn't work, that's because it should have read "casper-rw".

Note 2: In the instructions below the ext3 file-system is used. For a memory stick however where space is tight, the ext2 file-system will use up considerably less overhead and is probably good enough for this purpose.

Note 3: The instructions use all terminal commands, many of them looking quite serious. However it can all be done using the graphical Gnome Partition Editor tool you find in the System -> Administration menu. The exception is giving the partition a label, for this you'd still need to go to a terminal and issue the command

sudo e2label /dev/<yourpartition> casper-rw

Determine Which Device Your USB Stick Is

Note: if you prefer, you can use GPartEd to identify and format the usb thumb drive to ext3 (or a different compatible format) and then skip directly to the "Creating the "casper-rw" File System" section.

In order to partition and format your USB Stick, we first need to determine which device your computer recognizes it as and what its mount point is. To find this information run the following command:

df -h

The output of df -h should look something like this:

Filesystem    Size  Used Avail Use% Mounted on

/dev/hda1     187G  4.0G  183G   3% /

varlock       9.3G  507M  8.8G   6% /var/lock

udev          506M  156K  506M   1% /dev

devshm        506M     0  506M   0% /dev/shm
 /dev/hdb3     7.5G  1.4M  7.5G   1% /tmp

/dev/hdb2     9.3G  507M  8.8G   6% /var

/dev/sda1     124M   31M   94M  25% /media/USB DISK

As you can see, on my computer, my USB Stick is the last entry in the list and is seen as /dev/sda1 and is mounted and accessible at /media/USB DISK. Now that we know where our USB Stick is, let's go ahead and partition it properly.

Partitioning Your USB Stick

Partitioning your USB Stick is a fairly simple task and only requires a few short steps. To partition your USB Stick we will use the command fdisk so run the following command to start the process (replacing /dev/sda with your device path):

sudo fdisk /dev/sda

Without getting in depth about how to use fdisk (which is outside the scope of this document) here is how you can partition your USB by deleting any existing partitions and creating one new partition.

First type “p” at the command prompt and hit  to print the current partition table. The output of this command should look something like this:

 Command (m for help): p

 Disk /dev/sda: 130 MB, 130023424 bytes
 16 heads, 32 sectors/track, 496 cylinders
 Units = cylinders of 512 * 512 = 262144 bytes

 Device Boot      Start         End      Blocks   Id  System
 /dev/sda1   *           1         496      126960    6  FAT16

Again, for this example, we will just delete all of the existing partitions so now type “d” at the command prompt. Then enter the number of the partition you wish to delete. Repeat this process for each partition on your USB Stick until they are all deleted. The following is a example of what your session might look like:

 Command (m for help): d
 Partition number (1-4): 1

 Command (m for help): d
 Partition number (1-4): 2

 Command (m for help): d
 Partition number (1-4): 3

 Command (m for help): d
 Selected partition 4

 Command (m for help): p

 Disk /dev/sda1: 130 MB, 130007040 bytes
 16 heads, 32 sectors/track, 495 cylinders
 Units = cylinders of 512 * 512 = 262144 bytes

Device Boot      Start         End      Blocks   Id  System

Command (m for help):

As you can see we have now deleted all of the partitions on our USB Stick. Now we can create one new partition by typing “n” at the command prompt followed by your desired partition number. Once that is done type “w” and hit  to write the partition table changes to your USB Stick. Here is the output from my session:

 Command (m for help): n
 Command action
   e   extended
   p   primary partition (1-4)
 p
 Partition number (1-4): 1
 First cylinder (1-495, default 1):
 Using default value 1
 Last cylinder or +size or +sizeM or +sizeK (1-495, default 495):
 Using default value 495

 Command (m for help): w
 The partition table has been altered!

 Calling ioctl() to re-read partition table.

 WARNING: Re-reading the partition table failed with error 22: Invalid argument.
 The kernel still uses the old table.
 The new table will be used at the next reboot.
 Syncing disks.

Now that we have our partition table all set let's format it.

Creating the "casper-rw" File System

Formatting your USB Stick is also a very simple task. First we will unmount the device so we can format it, then just format it.

First unmount your USB Stick by running the following command:

sudo umount /dev/sda1

Now that your USB Stick is unmounted we can format it. The only special consideration is that we must give the formatted partition the label “casper-rw”. This is the name the Live CD looks for to store persistent information. You can properly format your USB Stick by issuing the following command:

sudo mkfs.ext3 -b 4096 -L casper-rw /dev/sda1

The output of this command should look something like this:

 mke2fs 1.38 (30-Jun-2005)
 Filesystem label=casper-rw
 OS type: Linux
 Block size=4096 (log=2)
 Fragment size=4096 (log=2)
 31744 inodes, 31740 blocks
 1587 blocks (5.00%) reserved for the super user
 First data block=0
 1 block group
 32768 blocks per group, 32768 fragments per group
 31744 inodes per group

 Writing inode tables: done
 Creating journal (1024 blocks): done
 Writing superblocks and filesystem accounting information: done

 This filesystem will be automatically checked every 20 mounts or
 180 days, whichever comes first.  Use tune2fs -c or -i to override.

NOTE: This example uses the ext3 file system, but almost any file system should work. Among the file systems which won't work are VFAT and NTFS

Now that we have our partition created and formatted all that is left to do is use it. So let's go use it!

__Using a Loopback File__

Instead of using a USB stick, you can use a file on your hard disk to store persistent information. The file must be named casper-rw and must be on the root of a partition. This partition can be any type that can be mounted automatically (e.g. vfat or ext3). (The persistent mode still works, if the file is created on the root partition of an USB stick.)

The following commands assume that a partition is mounted at /media/hda1. You can use any partition; even / will do fine. A file 128 MB in size will be created on this partition. To change the size, modify the count parameter of the "dd" command.

dd if=/dev/zero of=/media/hda1/casper-rw bs=1M count=128

 128+0 records in
 128+0 records out
 134217728 bytes transferred in 0.947819 seconds (141606919 bytes/sec)

mkfs.ext3 /media/hda1/casper-rw

 mke2fs 1.38 (30-Jun-2005)
 /media/hda1/casper-rw is not a block special device.
 Proceed anyway? (y,n) y
 Filesystem label=
 OS type: Linux
 Block size=1024 (log=0)
 Fragment size=1024 (log=0)
 32768 inodes, 131072 blocks
 6553 blocks (5.00%) reserved for the super user
 First data block=1
 16 block groups
 8192 blocks per group, 8192 fragments per group
 2048 inodes per group
 Superblock backups stored on blocks:
    8193, 24577, 40961, 57345, 73729

 Writing inode tables: done
 Creating journal (4096 blocks): done
 Writing superblocks and filesystem accounting information: done

 This filesystem will be automatically checked every 23 mounts or
 180 days, whichever comes first.  Use tune2fs -c or -i to override.

That's it! You can now boot the Live CD as described below.

Booting the Live CD in Persistent Mode

Now we get to enjoy the fruits of our labor. Make sure your USB Stick is plugged into your computer and take the Live CD that you downloaded and burned earlier and put it in your CD drive (if it is not already there). Reboot your computer and boot up using this Live CD.

Before you reboot there are only two things that you need to remember. When the Live CD menu gets displayed hit the  key to enter “Other Options”. This will display the arguments that the Live CD passes to the kernel. At the end of this argument list just add a space and add the word “persistent”. This will instruct the Live CD to maintain and use persistence. That is all. Go for it!

Note: It appears that with Flight 5, you need to create a new user in the Live CD session (go System -> Administration -> Users + Groups, then press the "Add User" button) for it to save your settings; it does not appear to save most changes to the default user, "ubuntu". When you create the new user, be sure to check the box in the "user privileges" tab that says "executing system administration tasks" or you'll be pretty limited in what you can do Smile :)

When you get back, or better yet, when you boot into your live environment come back to this page and see how you perform a few basic tests to make sure everything is working correctly.

Verifying That Everything Worked

Here are a few simple things you can do to verify that everything is working as expected.

Reboot the Live CD/USB

The first simple thing you can do to verify that persistence is working is install a few applications and change some environment settings (some thing highly visible and easily recognizable) like your theme or add some GNOME panel icons. Then just reboot... Hit , enter in “persistent” on the kernel arguments list and boot into your new custom Live CD environment. Your newly installed applications and your custom settings should all still be there.

If you want to dig a little deeper you could always inspect the contents of your USB Stick. This will also give you deeper insight into how this great system works.

(you can do this from the Live CD by going System -> Administration -> Disks, selecting the appropriate drive, setting the access path to /mnt and pressing the Enable button followed by the Browse button)

Investigating What Is Now On Your "casper-rw"

Another relatively simple thing you can do to verify that everything is working and to learn more about how everything works is to just inspect what is now on your USB Stick in isolation. Reboot back into your regularly installed system, plug in your USB Stick and just have a look around. The contents of your USB Stick is what makes your custom environment your own.

Automatic Persistence

By using reconstructor a CD can be remastered and an additional menu item (Persistent Mode) added on boot. The persistent mode was added as the default. No changes were made to the CD except for adding the persistent menu item. This may be best described in another how-to. If there is a place where a persistent ISO can be uploaded I'd be glad to share

Conclusion

The new Ubuntu Live CD persistence is an excellent capability and in addition to current Live CD uses, this will certainly make Live CDs very much more viable, useful and important. Now you can carry around your own custom Ubuntu environment on a CD and USB Stick that all just fits in your pocket. Now go gloat to your friends and co-workers about how much Ubuntu ROCKS!

Source: https://help.ubuntu.com/community/LiveCD/Persistence

If you encounter the problem of booting without persistence on on UEFI pc. See what Ubfan (ubfan1) wrote on 2013-04-29 here: https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1159016


Bluetooth on Easynote te69bm not working

Unless you feel comfortable patching kernel modules you may want until Ubuntu supports your bluetooth device and that could be the next kernel release.  Please do a lsusb (please insert into post) in terminal, you will see a list of devices found on you computer, one will likely be a FoxConn device with [0489:????] I have a good idea you will find [0489:e078] which is not supported correctly in the 3.13.0-43 kernel but eventually it will be supported by the Ubuntu kernel as it is correct in bluetooth-next


How to disable MAAS without uninstalling it

Had the same kind of problem, my solution was to build MaaS in a VM.  When I want MaaS I start the VM, when I don't I either save it or shut it down, depending on what I'm in the middle of.

It also makes backup real easy, just save the whole machine when you want a backup.


ubuntu 12.04 to 14.04 distribution upgrade pauses "configuring lightdm" ... "Default display manager:" gdm, lightdm

LightDM and GDM are Display Managers.  If you choose one over the other, the login screen you get differs. That's about it from an end-user perspective.  You can always choose the Display Manager by running:

sudo dpkg-reconfigure lightdm # or gdm

You will be presented with a dialogue like the one you have been shown now, and you can select which ever one you want.


Is it possible to translate words via terminal?

For offline use:

You can install dictd server and use Freedict Dictionary database for word translations.

Install dictd:

sudo apt-get install dictd

Install translation database. eg. dict-freedict-eng-fra for English to French translation, dict-freedict-eng-spa for English to Spanish translation.

sudo apt-get install dict-freedict-eng-fra
sudo apt-get install dict-freedict-eng-spa

Usage:

View list of databases:

dict -D

Use a particular database eg. for English to Spanish translation:

dict -d fd-eng-spa "how are you?"

For online use:

Install libtranslate-bin with:

sudo apt-get install libtranslate-bin

eg. using online google translate engine:

echo "what are you doing" | translate-bin -s google -f en -t fr

Offline English dictionary in Terminal:

Installing English dictionary databeses (gcide, wn, devil):

sudo apt-get install dict-gcide
sudo apt-get install dict-wn
sudo apt-get install dict-devil

Installing English Thesaurus database (moby-thesaurus):

sudo apt-get install dict-moby-thesaurus

Usage:

Using a particular database (eg. WordNet - wn):

dict -d wn "dictionary"

Not specifying a dict-database will output definitions/translations/thesaurus from all available databases. eg.

dict "dictionary"


Can a user FTP when SFTP is setup with vsFTPd

I used:

force_local_data_ssl=NO
force_local_logins_ssl=NO

Along with

ssl_enable=YES

This allowed me to have explicit FTPS and old plain FTP to run on the same time on port 21.


Sharing a dial-up connection from Ubuntu 12.04 to another on a LAN

What you're looking for is called "IP Masquerade" (or IP Masquerading). You have some tutorials there:
http://oreilly.com/openbook/linag2/book/ch11.html

and a more detailled one there: http://www.tldp.org/HOWTO/IP-Masquerade-HOWTO/index.html


New laptop, Windows 8.1, attempting dual install. Ubuntu installer doesn't 'see' existing OS

The old "install alongside" option rarely works with installations to EFI-based computers. I don't know offhand if that's a bug or if it's simply been removed. In any event, the solution is to use the "something else" option, which is covered by numerous other questions and answers here, such as:

Should I choose to Install alongside windows 8 or something else
Installation doesn't detect Windows 7
Installing Ubuntu 13.04 in a different partition than Windows
The Ubuntu community wiki on EFI-mode installations

(That last isn't part of askubuntu, but it's related.)


Where do I specify the screen image used in Lock Screen?

you should create an xml file in /usr/share/images/desktop-base directory and add these lines there:

<background>
<static>
<duration>8640000.0</duration>
<file>
  <size width="1920" height="1200">/home/fabhax/wallpapers/NATURE-TheDivide_1920x1200.jpg</size>
</file>
</static>
</background>

Of course You can change the attributes with your preference.

save the file and restart your gnome :

/etc/init.d/gdm3 restart


fixed by fixing the client Cisco:

conf t
crypto key zerosize rsa
crypto key generate rsa modulus 2048
end


Touchpad scrolling not working, all set correctly in dconf editor, acer aspire V3 771G, Ubuntu 13.04

I found the answer at http://nwoki.wordpress.com/2012/10/02/multitouch-fix-for-alps-touchpad/ for my Acer Aspire V3 771G.

The version I've downloaded was 1.3, so replace every instance of psmouse-alps-dst-0.x with psmouse-alps.1.3 (so, without the dst). Also, I did not change the alps.c file as mentioned on the website.

After ending every step I can (finally) use my touchpad. I only have to get used to spreading my fingers a little wider than I am used to with a synaptics touchpad.


Lines disappearing intermittently from both Terminal and Emacs

It seems to be a bug in the NVidia drivers. Here are some solutions to the similar question:

Gnome-terminal doesn't refresh


Are there "portable" versions of Opera for Linux/Ubuntu?

If I had a deb file of opera11, I would try to make the "portable" version.

There is a ready-to-use opera package opera-11.64-1403.i386.linux.tar.bz2, other packages


Audio "Buzz" noise from headphone jack into external speakers

I had the same problem. You try to uninstall Realtek Audio Driver and install new audio driver v.6017083. Please download and install the latest driver update from below link.

http://dlcdnet.asus.com/pub/ASUS/nb/DriversForWin8/Audio/Audio_Realtek_Win8_64_VER6017083.zip

I hope I can fix it for you.


Connecting to a Bluetooth device using blueman-manager:
To connect to a new bluetooth device in XFCE blueman-manager is installed by default and can be run either by right-click on the panel bluetooth icon or by typing blueman-manager in a terminal.

Select Adapter->Search to find any bluetooth device present. Put your device in pair mode (consult your device's manual if you are not sure how to do this) and proceed:

Right click on the appropriate device and select Pair... in the popup menu.

Enter your authentication PIN code here (0000 is the default for a headset).
Still we do not know what service we want the device to be connected with.

Choose the appropriate service (depicted for Headset here, choose "Browse Device... or "Send a File..." for data transmission in case your device supports this) from the right-click menu. This should present you a window similar to the following indicating the device is ready. The Bluetooth icon in the panel will be marked by a green dot in addition.

Note: For some devices that were connected to another machine in between we may have to remove the device first before we can pair and reconnect it again, even if the device is known to Blueman.


Uninstalling the app, deleting the ~/.local/share/com.ubuntu.reminders/ directory, re-installing, and re-authenticating Evernote fixed the issue for me (for now). On Nexus 4 (OTA 9), app version 0.5.472.

I also had success under slightly different condition caused by changing channels by just deleting the directory without any app uninstalling or re-installing. No need to re-authenticate in that case.

You can delete this through the File Manager application on the phone by going into the upper-right hand corner menu item, hitting "unlock full access," entering in your password, then hit the same menu key again, check "Show Hidden Files," navigate to the directory and delete it. You may have to have developer access enabled on the phone to get these options, though I'm not sure.

Using the terminal,the directory can be deleted by running this:

rm -R ~/.local/share/com.ubuntu.reminders/

in the terminal of the phone, or while in abd shell on your computer. This will delete all locally-saved notes, while those synced with Evernote will be safe with them.

Just in case, you may want to make a copy of the directory first.


How to change environment variable LANGUAGE globally in kde

I saw that you found where to change it. However, a few things:

en_US.UTF-8 is not a valid value in the LANGUAGE variable. You probably just want en.
I noticed that LANG has the value en_US. That enables latin1 encoding, which you don't likely want. Should be en_US.UTF-8.
If LANG is set correctly, you should not set the LC_ALL variable, because it effectively disables all GUIs for managing languages/locales.


cant cd to a directory error while moving files to another directory

A rewrite:

#!/bin/bash

minutes=$1
trace_path=$2
bkup_path=$3

if [[ ! -d "$trace_path" ]]; then
    echo "Error: trace_path '$trace_path' is not a directory" >&2
    exit 1
fi
if [[ ! -d "$bkup_path" ]]; then
    echo "Error: bkup_path '$bkup_path' is not a directory" >&2
    exit 1
fi

echo "Moving files which are older than $minutes minutes"
find "$trace_path" -cmin +"$minutes" -name "*.trc" -exec mv -v -t "$bkup_path" '{}' \+

Notes:

you don't need to cd anywhere

if you want to change dir to where the script is, do this: cd "$(dirname "$0")"

always quote your "$variables" unless you know precisely when to leave the quotes off
don't use UPPER_CASE_VARS: one day you'll accidentally write PATH=foo and then wonder why your script is broken
validate user input
find can do stuff with the files it finds.
mv has options, check its man page


How do I escape from a full-screen apllication?

If by "breaks", you mean that it freezes up, there are a few methods to try to fix things.

Wait a few minutes

Wait a few minutes and the problem might clear itself up. This is particularly apt for older machines.

Press Alt+F4

Like Windows, pressing Alt+F4 will try to nicely close the focused application. Try that and give it a minute or so to work through closing itself.

Use xkill

xkill can be useful in not-so-nicely (i.e., it doesn't give the application time to save things to disk, so things may be broken or not saved) terminating full-screen applications that have completely frozen:

Press Ctrl+Alt+T to open a terminal within the GUI
Run xkill & exit to turn the mouse cursor into an × and to close the terminal
Left click on the stalled application to attempt to terminate it


How do I get Ubuntu terminal prompt in Windows 7 with VMware Player

You can use the shortcut Ctrl+Alt+T, you can press that fancy button in the top corner (lens?) and type "terminal" (that's how you find things in Unity, the "applications ► accessories" things are for the older GNOME I think)

and might be able to press Ctrl+Alt+1 to Ctrl+Alt+6 (7 is the graphical interface), but I doubt that last one will work in a virtual machine.


How can i start a game/program with the Nvidia gpu in the right click menu?

Assuming you want this to happen in nautilus the easiest way seems to be nautilus-actions.

The alternative is creating a nautilus extension in either C or Python (with nautilus-python).


check the permissions of your Desktop directory

ls -l ~ | grep "Desktop"

it looks like a permission problem, try changing permssions with this

sudo chmod 755 ~/Desktop -R


Unable to securely remove: upgrade about libssl-doc

Me again!
Finally find the answer!
I rename the directory of /usr/share/man/man3 to /usr/share/man/man3.original.
And apt-get upgrade again.
This problem are magically solved!!!!


How do I stop the NetworkManager in Ubuntu 13.10?

Control+Alt+T will open the terminal then enter one of the following commands.

sudo service network-manager stop

will stop network manager.

sudo service network-manager start

will start network manager.

sudo service network-manager restart

will restart network manager.


Can not unmount SDA partition in GParted

While you do need to give more information, one possible reason is that another partition is mounted under the partition you are trying to umount.

First off, run the following commands and add them to your post:

$ df -a -h -T
$ mount  (No options)

One example of what I mean would be if you using EFI boot and you have a GPT disk.  In that case, when you are booted normally, you have partitions mounted below other partitions, as follows:

/
/boot
/boot/efi

In this case, you wouldn't be able to unmount /boot, until you unmounted /boot/efi.

So, check the output of the df command above (and post it), too see what other mounts might be preventing you from unmounting /boot.


Strange it appears to be compressed with it having bz2 in the extension but the .bin at the end would suggest its executable.

Try first of all making the file executable you can do this by running the command

chmod +x ~/Downloads/PrivateerGold1.03.bz2.bin

You can run in then by typing:

~/Downloads/PrivateerGold1.03.bz2.bin

if this does not work try extrating the file with:

tar -xvjf  ~/Downloads/PrivateerGold1.03.bz2.bin ~/Downloads

You will then have to tell me what you get out of that.


gnome-panel has multiple rows -- how to undo that?

Run the following, apparently gnome3 stores configuration in binary form (I haven't read up on dconf enough to know where or why).

sudo apt-get install dconf-tools

Run: dconf-editor to edit the config.

Go to: org.gnome.gnome-panel.layout (it's pretty intuitive)

The defaults seem to be:

object-id-list     ['menu-bar', 'indicators', 'show-desktop', 'window-list', 'workspace-switcher']
toplevel-id-list   ['top-panel', 'bottom-panel']

I had to figure this out after I had some weird issue with gnome while trying to get my 2 monitors to work.  Everything (menus, rows, clock, etc.) seemed to duplicate on the panel after every attempt to restart the X server.  I should have took a screenshot but this is essentially what I had before I fixed it:

object-id-list     ['menu-bar', 'indicators', 'show-desktop', 'window-list', 'workspace-switcher', 'menu-bar-0', 'indicators-0', 'show-desktop-0', 'window-list-0', 'workspace-switcher-0', 'menu-bar-1', 'indicators-1', 'show-desktop-1', 'window-list-1', 'workspace-switcher-1']
toplevel-id-list   ['top-panel', 'bottom-panel', 'top-panel-screen1', 'bottom-panel-screen1', 'top-panel-screen1-0', 'bottom-panel-screen1-0']

As you can see, there's 3 of everything.


Is uTouch still in use or under development?

There is an answer from here:

  The software that formerly made up the utouch project is now a part of the Ubuntu core so we no longer have need of a separate 'utouch' package. The individual components are still available and have simply been renamed without the 'utouch-' component.


Install TinyOS in Ubuntu 14.04

Visit TinyOS (TinyProd) Debian Development Repository and follow these instructions:

Tell apt about the TinyProd Signing Key.

wget -O - http://tinyprod.net/repos/debian/tinyprod.key | sudo apt-key add -

Add the two new lines to /etc/apt/sources.list.d/tinyprod-debian.list:

sudo -s
cd /etc/apt/sources.list.d
echo "deb http://tinyprod.net/repos/debian wheezy main" >> tinyprod-debian.list
echo "deb http://tinyprod.net/repos/debian msp430-46 main" >> tinyprod-debian.list

Install the new packages:

sudo apt-get update
sudo apt-get install nesc tinyos-tools

I didn't install either msp430-46 or avr-tinyos at this step, in case you want to install them later after you have tested your TinyOS installation.

Get the code from the TinyOS release repository:

wget http://github.com/tinyos/tinyos-release/archive/tinyos-2_1_2.tar.gz
tar xf tinyos-2_1_2.tar.gz

This will extract the actual TinyOS code in a folder named tinyos-release-tinyos-2_1_2 inside the directory the command was issued. Feel free to rename this folder to tinyos-main.
You will need to add some environment variables to your shell. The following file includes the necessary ones. Substitute the placeholder  with the path where you chose to place the code in the previous section (full path recommended).

# Here we setup the environment
# variables needed by the tinyos
# make system

export TOSROOT="<local-tinyos-path>"
export TOSDIR="$TOSROOT/tos"
export CLASSPATH=$CLASSPATH:$TOSROOT/support/sdk/java
export MAKERULES="$TOSROOT/support/make/Makerules"
export PYTHONPATH=$PYTHONPATH:$TOSROOT/support/sdk/python

echo "setting up TinyOS on source path $TOSROOT"

Suppose you named this file tinyos.env. There are now at least two possibilities to have these variables accessible in your shell:

Place it as root user in /etc/profile.d/
Place it in <local-tinyos-path> and add the following line to your .bashrc

source <local-tinyos-path>/tinyos.env

After the TinyOS installation is finished, you can check if it is successful by executing some of these commands:

tos-bsl                 tos-ident-flags         tos-serial-debug
tos-build-deluge-image  tos-install-jni         tos-set-symbols
tos-channelgen          tos-locate-jre          tos-storage-at45db
tos-check-env           tos-mote-key            tos-storage-pxa27xp30
tos-decode-flid         tos-mviz                tos-storage-stm25p
tos-deluge              tos-ramsize             tos-write-buildinfo
tos-dump.py             tos-serial-configure    tos-write-image

These instructions were copied from Automatic installation - TinyOS Wiki and executed successfully on Ubuntu 14.04 running in VirtualBox. I did all this because the commands in the tutorial in your question have at least one error.

deb http://tinyos.stanford.edu/tinyos/dists/ubuntu kramic main

should be:

deb http://tinyos.stanford.edu/tinyos/dists/ubuntu karmic main

And the tutorial in your question may be obsolete because it is so out-of-date. The other reason is that I estimate that it would take me an entire day to type all the commands in the YouTube video and run them one at a time, so I copy/pasted the instructions from the TinyOS wiki in the terminal to save time.


How to install libeecrypt7:i386 from the Wili package?

How to install packages manually

To install the libbeecrypt7 manually open this page: http://packages.ubuntu.com/wily/libbeecrypt7

Download the amd64-package if you have a 64-bit Ubuntu installation (don't worry if you have a intel processor, it will work fine). If not download the i386 package.

Open a terminal with Ctrl+Alt+t
Navigate to your download folder with cd Downloads
Install the package with sudo dpkg -i package-name.deb where "package-name" needs to be replaced with the actual name of the .deb-file you just downloaded.

There are two downsides of this method:

The package might refuse to install due to missing dependecies. Comment to this answer if that is the case.
Since this package isn't installed from the repository it won't receive any updates. This is a potential security risk.


MacBook User Needs to Download Ubuntu to a USB Stick to Install on Another PC

Yes, it can be done. You need Etcher, follow instructions here


How do I reload the boot set up for my Ubuntu install? bless?

1 boot your pc and wait for the boot menu selection to appear then press 'c'

2 enter these commands:

root=(hd0, 0)/

kernel=(hd0, 0)/vmlinuz-4.10

(whatever the kernel is, use autocomplete to find out > tabulation twice)
you have hard drive partitions so be carefull when setting the paths because hd0 represent the disk itself and 0 is the partition so maybe ubuntu is on the second one (they are numbered from 0)

3 now that the root system is defined and that the kernel is loaded, enter 'boot'.

If it happens that the system is broken you will see it now. If it boots fine you'll be able to access the ubuntu terminal and issue the command 'install-grub' which should fix your issue. Cheers.


Upgrading to 12.04 has mostly fixed this problem.


Installed SSD and want to boot existing Ubuntu off of original Hard Disk

Here's what you a gotta do:

When you turn on your computer, watch the screen.  It will likely say something like 'Press F8 for boot menu' or 'Press ESC for startup options'.  Do that, and select your HDD in the boot menu.

Once you've booted into ubuntu, run this command in Terminal:

sudo grub-install /dev/sda

That will install GRUB on the SSD, which will let you boot to Ubuntu without going through all the motions.


How can I have a Very secure Ubuntu Desktop system

Basic rules of computer security: strong passwords, have a firewall set up, don't click on something you're not sure about, and don't log in as admin/root unless you 100% have to.

Viruses aren't as much of a problem on linux as on windows, but social engineering in emails, javascript in browsers, and malicious links are still there.

Among other things, set up an admin password on your router; see my answer on this question.

A good place to start learning about security is the movie "Blackhat", now in theaters (yes, seriously). There's also learning from other perspective, from intruder's perspective. You can search online for tutorials on basic pentesting/ethical hacking and books.

Here's some of my favorite sources to start you off on reading about security.

cyberciti blog
security.stackexchange.com
https://serverfault.com/
Ubuntu Wiki


What is the purpose of these directories on my EC2 Ubuntu 16.04 instance?

Of the directories you have listed, exactly one is on disk and occupies disk space: /. The others are all in memory (RAM) for various reasons.

/dev, for example, contains files representing various devices available to your system, and these files are actually just representations of various in-memory kernel structures. /dev/shm for POSIX shared memory objects, which are also supposed to be in RAM.

The tmpfs filesystem is, in fact, in memory (RAM), so there's nothing to be gained in disk space from directories on which tmpfs is mounted.

You should be looking into getting more disk space. 8 GB for a database in 2017? Is this on a phone?


Why is Timeshift not on the official Ubuntu repos?

To briefly answer the question... it's because Timeshift is the work of a individual software developer.

Note: As of 19.04, it is in the repos now.

For those who don't know what Timeshift is...

The closest thing to a Windows-like restore point is by using Timeshift. I use it to save snapshots to an external USB hard drive. Although it can, it's normally not used for backing up your /home directory, just system-level changes. Use Backups (Déjà Dup) for backing up /home files.

Timeshift is a system restore utility which takes snapshots
of the system at regular intervals. These snapshots can be restored
at a later date to undo system changes. Creates incremental snapshots
using rsync or BTRFS snapshots using BTRFS tools.

More information at https://github.com/teejee2008/timeshift

For pre-19.04 add the PPA:

sudo add-apt-repository -y ppa:teejee2008/ppa

And install it:

sudo apt update

sudo apt install timeshift


Grabbing a number from string output on command line

The simplest form to get only the number from the string you have provided is as follows.

string="submitted batch with job number 12345"
echo $string | grep -o '[0-9]\+'

This will fail if the string or output of your program does include a second number group like

string="submitted 1 batch with job number 12345"

In that case, you would could use sed to e.g. search for the string number and only match for numbers after that occurrence.

echo $string | sed -n 's/^.*number\ \([0-9]\+\)/\1/p'


How to see the repositores you have created in Github via command line?

You can make a HTTP GET request to GitHub's REST API to query a list of repositories owned by a given user. I will use wget for the request, which should come preinstalled on Ubuntu. An alternative tool could be e.g. curl.

The response is a quite big JSON object, therefore I decided to use jshon (install it with sudo apt install jshon) as JSON parser to only extract the repository names. You could also just look at the full response or use any other parsing methods you like. If it's just for human readers and you don't care much about formatting, simply piping it through grep full_name should already suffice.

So, let's start with the command. To get a list of my public GitHub repos (the user name is "ByteCommander", obviously), I would run this:

wget -qO- 'https://api.github.com/users/ByteCommander/repos' | jshon -a -e 'full_name' -u

You should get some output similar to those lines (just a few more...):

ByteCommander/AdventOfCode
ByteCommander/ByteCommander.github.io
ByteCommander/ChatExchange6
ByteCommander/dynamodb-local

The command above can be broken down into the HTTP request made by wget, which gets its response outputted on STDOUT and piped into the JSON parser which extracts the relevant information.

wget -qO- 'https://api.github.com/users/ByteCommander/repos'

This obviously sends a request to the given URL. Replace ByteCommander with your respective GitHub user name. The -qO- are options which modify how wget outputs the response. It's short for -q (quiet, no progress/status output) and -O - (output file is STDOUT). Read more about that in man wget.

jshon -a -e 'full_name' -u

This makes the jshon parser read JSON data from STDIN (where wget's output gets piped) and parses it according to the specified options. -a applies the following operation on all elements of the response array: -e 'full_name', which extracts the "full_name" property of the objects it is applied to. -u finally just removes the quotes around the extracted string values. Read more about it in man jshon.

You can find a detailed explanation of the GitHub v3 REST API and especially the list-user-repositories endpoint and its JSON response format in their official documentation.


How can I create a title coverpage for a MP4 video

This is easily accomplished by using ffmpeg:

ffmpeg -i video-in.mp4 -framerate 30000/1001 -loop 1 -i coverpage.png -filter_complex
  "[1:v] fade=out:st=30:d=1:alpha=1 [ov]; [0:v][ov] overlay=10:10 [v]" -map "[v]"
  -map 0:a -c:v libx264 -c:a copy -shortest video-out.mp4

This assumes that the cover page is a single still image with an alpha channel and you want to overlay it over a video with a frame rate of 30000/1001 (NTSC rate).

Change the -framerate to match your input video if it is different.  If your cover page is a video then omit -framerate 30000/1001 -loop 1.  If the cover page does not have an alpha channel, add one by inserting e.g. format=yuva420p, immediately before fade.

This will display the logo at x,y position 10,10 for 30 seconds followed by a 1 second fade out.

Source


Change regex's result order after sed as order of ls -v

The sed regex is not involved here, it's about the collation order of the az-*.xml shell glob expansion.

If you have zsh, then you could use the n numeric glob qualifier

sed '...' az-*.xml(n) > AZ

If you need to use bash then it doesn't have an equivalent numeric glob flag, but you could use an external version sort ex.

printf '%s\0' az-*.xml | sort -zV | xargs -0 sed '...' > AZ

or (if you know exactly how many files there are) a simple shell loop with a brace expansion

for f in az-{1..52}; do sed '...' "$f"; done >> AZ


Ubuntu 20.04 stuck at “/dev/nvme0n1p6 clean. xxx/xxx files. xxx/xxx blocks” during boot

Your drive is full, so you need to boot from the live media and remove some junk.
First, try cleaning up the /mnt/tmp (assuming that's your Ubuntu partition). Then look if your home directories use too much space and do decluttering. Also try removing unused and unnecessary packages from your partiton, including any left-overs after uninstallation if any (requires chrooting to your partition in terminal).
After doing some spring cleaning, check if your NVMe drive used storage is at below 90 percent. If it's below 90 percent (below 80 is better), reboot into your Ubuntu install (finger crossed).


Can I completely disable sound card initialization/recognition?

I'm not sure how to disable the sound card initialization, but as you said Linux kernel 4.8 in Fedora 25 can initialize the sound card in I2S, why don't you install Linux kernel 4.8 on Ubuntu?

Reading from glaubitz's reply #12 on Bug #1551880,

  The only proper fix is to use I2S mode on Linux as well which requires
  at least Linux kernel 4.8

The current stable Linux kernel is 4.9.5, you can follow instructions on ubuntumaniac. Alternatively you can choose to wait for a few days more till 2nd February 2017 for release of Ubuntu 16.04.2 LTS which packs Linux kernel 4.8 inside.


You are currently seeing excessive drain due to issues with GPS being overly active and the notification daemon keeping the system awake, along with a few other things.

The upcoming system update has a number of changes to greatly improve the battery life. We are working to release this update at the earliest possible time, sorry for the inconvenience.

A list of these fixes is at https://bugs.launchpad.net/canonical-devices-products/+bugs?field.tag=battery&field.status%3Alist=FIXRELEASED


How can I roll back my Ubuntu from 18.04 to 16.04?

There is no 'roll back' since there is no Windows Product Key to preserve. There is only reinstall.

Save your data, wherever you stored it. Reinstall the rest.


Does Zbox AD03 work fine with Ubuntu and XBMC?

This guide is written for the AD02 but it works for the AD03 as well (it also works for my fusion based netbook), it is very complete:
http://youresuchageek.blogspot.nl/2012/06/xbmc-install-and-config-howto-for-linux.html
You can choose for yourself if you want a minimal installation (no desktop, just xbmc) or normal installation (desktop, with the option to start xbmc)

EDIT: A bit of a warning, the guide can be rather technical, just install the normal ubuntu and install xbmc, see what happens. If you're a bit more experienced with ubuntu (or just a bit more adventerous :P) follow the guide.


force format an encrypted/read only memory card

You probably already tried this, but check the file's permissions. Odds are that you can't edit them to enable write, so you probably need to change them as root. If you don't know how to chmod, you can sudo nautilus and try to enable writing from there.


Try and re-install the manual page itself: see https://askubuntu.com/a/244810/15811

Because ...  After I did this I got the normal manual page:

$ sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl

$ sudo chmod a+rx /usr/local/bin/youtube-dl

First page:

YOUTUBE-DL(1)                                                    YOUTUBE-DL(1)

NAME
       youtube-dl - download videos from youtube.com or other video platforms

SYNOPSIS
       youtube-dl [OPTIONS] URL [URL...]

DESCRIPTION
       youtube-dl   is   a   command-line  program  to  download  videos  from
       YouTube.com and a few more sites.  It requires the Python  interpreter,
       version  2.6, 2.7, or 3.2+, and it is not platform specific.  It should
       work on your Unix box, on Windows or on macOS.  It is released  to  the
       public domain, which means you can modify it, redistribute it or use it
       however you like.

OPTIONS
       -h, --help
              Print this help text and exit

       --version
              Print program version and exit

Though it does not matter much: you can get the same information you are asking for when doing:

youtube-dl --help


You can try Jupiter which is a light weight power and hardware control applet. It says improves battery life and works to some extent for me.

To install jupiter do this.

sudo add-apt-repository ppa:webupd8team/jupiter
sudo apt-get update
sudo apt-get install jupiter

Hope this helps.


Show Icon instead of text for the gnome menus?

No, this is not possible.

However, you can try out the compact Main Menu applet, which has only one icon in the panel. To add it,

Right-click on free space in the panel,
Choose Add to Panel...,
Select the Main Menu applet,
Click Add, and
finally Close:


Can I install Ubuntu desktop programs on my Nexus 4?

As there are no videos on youtube this feature is probably not yet available. Ubuntu mobile is just a beta/developer version, so I would not recommend using it to work with until it leaves beta status, even if the hdmi connection would work. I think the phone will detect whether it has a screen plugged in and a keyboard connected and then switches the desktop mode by itself. But this is only a guess (and a recommendation not to use a beta to work with), so maybe someone has a more positive answer.

Update There is a first video from canonical showing this feature. It still seems to be relatively slow since it's in beta state. http://www.omgubuntu.co.uk/2013/07/ubuntu-edge-convergence-shown-off

As far as I know this feature is not yet enabled in the public release, but unfortunately I can't test it. If you consider buying a new phone, take a look at the Ubuntu Edge: http://www.indiegogo.com/projects/ubuntu-edge

Please notice the device will be delivered in spring next year.


How can I configure 2 video cards to use on 3 monitors?

i dont think this is possible, since the processing of graphics has to be done by one of them only. This is how most motherboards are architectured... unless your MB allows double Bus for video processing. Had that same issue when trying to connect 3 monitors to windows xp, some months ago.


I actually just now helped one friend over skype to do that with Lubuntu and ive put for him 2y ago one persistant xUbuntu Live USB.

U can make it to be as Live so u can still use it as installation but with persistance witch means it saves files to persistance file witch cant be seenable from windows. Also Live means it will not change thouse 700mb of usb stick even after updates to remain original and updates will be using persitance file part.
OR u can install ubuntu on USB but then in partitioning step use manual and use all usb as system / partition and dont put swap couse swap will be automatically put in automatic installation but u dont need usb to be all the time using swap and u dont need hibernation on usb right?

So 1st step

From computer .. from what else.. go to http://www.ubuntu.com/download/ubuntu/download and download an actual Ubuntu image and i recommend better using 10.04 LTS couse thats lighter and faster and more understandable or even better i recommend 10.04.03 netbook remix couse thats even more faster.

==PRepearing Live USB with installation possibility and persistance file==

If ull use Ubuntu to make USB then System > Administration > Startup Disk Creator

Browse to desired downloaded Ubuntu file and if want u can erase USB from Startup Disk Creator and choose Persitance option and slide to use as much as want.

Press make and in process enter 3 times password.

==Installing on USB==

If u dont need option to be able to later infect some other computers with ubuntu then u can dont need live usb but u can just install Ubuntu on usb. To do that u can use LiveCD/USB and install on USB and dont put swap partition on it. Since choosing automatically to install Ubuntu on chosen partition will make swap file u need to choose Manual installation and format whole USB to be just partition / and done. It will warn that u didnt put swap but since its waste of space and might not anyways be able to work as much as fast possible if swap is beeing used and that means written to USB swap partition as virtual memory witch slows work more then we dont need it.

theres also methods in https://wiki.ubuntu.com/LiveUsbPendrivePersistent


You probably have two boot.ini files. On two separate partitions. The other has the boot flag set.

Because you mentioned that the Windows Boot Manager shows two options, Recovery and normal. And in your boot.ini there are two completely different option. I think the 'boomgr' thing is a red-herring. Even XP has the Windows Boot Manager, just it takes its entries from the boot.ini file.

What I'd do is, figure out which partition has the boot flag - not C:. Then modify it's boot.ini. You'd probably need to assign a drive mapping to the boot partition in order to do this as recovery partitions are typically hidden.


Installed: Ubuntu 18.4 LTS but often Ubuntu 14 (previously installed) boots

Whichever version you "update-grub" from will show on top of grub menu the other lower down.

Boot 18.04 and delete partition/s of 14.xx.

sudo update-grub

and

sudo reboot


What programs can I use to burn a Windwos 7 iso on a USB?

Try YUMI. It creates bootable pen drives using an iso image
http://www.pendrivelinux.com/yumi-multiboot-usb-creator/


unable to read/write to newly created files linux

ACL let's you add additional user permissions - where for example, the file could be owned by www-data but other users can have r/w permission on it. To set this up:

Install acl (apt install acl). Then in your fstab file, add acl as an option. For example:

/dev/sda / ext3 noatime,errors=remount-ro,acl 0 1

Then remount:

mount -a

Change the ownership of all the files backed to www-data if you've changed them. Set the default "acls" for any files that will later be created:

setfacl -dm u:myname:rwx /var/www

... and set the acls on already existing files:

setfacl -m u:myname:rw

... and directories

setfacl -m u:myname:rwx


I have three suggestions:

In Ubuntu, type sudo update-grub. That should cause Ubuntu to update the GRUB menu. With any luck, it will detect your OS X installation and create a boot entry for it. This might not work, though; the detection code should be the same as the code that ran during installation, so if it failed then, it will probably fail now. It's worth a try, though.
Use my rEFInd boot manager on CD-R or USB flash drive (download links are provided for both) to boot. This should give you the option of booting Ubuntu or OS X. Once you've booted OS X, you should be able to use its startup disk manager to reset OS X as the default boot option. The trouble with this approach is that you'll then be able to boot OS X but not Ubuntu. This might be acceptable as a short-term solution as you work out something longer-term, though, or if you've decided you don't want to boot Ubuntu at all.
Install rEFInd to your hard disk. You should be able to do this in Ubuntu; however, I generally advise installing from OS X on Macs. Thus, you might want to use rEFInd on a USB flash drive to boot to OS X so as to install rEFInd. One complication, though, is that El Capitan's System Integrity Protection (SIP) feature will prevent installation unless it's disabled first. See here for details on how to work around this problem. (One possible solution is installing in Ubuntu, which would obviously be the easiest solution in your situation.)