Thursday, November 30, 2017

installation - Why is the latest version of Miro not in the repositories?



Possible Duplicate:
Why isn't Ubuntu using the latest versions of some applications?






What's the reason that the available version of "miro" is only 3.5.1 in Ubuntu 11.10?



The latest version of miro is 4.0.3, and there is still a ppa available with the latest version.



But why isn't miro available in the official repository?

13.04 - How to update Thunderbird to latest version?

I have ubuntu 13.04 and my Thunderbird version is 24.0. Now Mozilla released 24.1. How can I update to it?

partitioning - How should I partition my Ubuntu 10.10 install?

I have about 12-15 GBs of disk space on which I am about to install Ubuntu 10.10.




I am considering following partitioning scheme:



14GB partition with 10GB root, 2GB swap (I have 4GB RAM) & 2GB home



People say to keep a partition /home, as it will have backup of my user setting and useful when i upgrade, is that correct?



Kindly guide me if this is okay, or suggest a different partitioning scheme.



Thanks.

Wednesday, November 29, 2017

server - User stopped being sudoer after release upgrade

I've upgraded one of web server, that was running Ubuntu from 11.10 to 12.04 (No downtime since it's creation, though serving 10-40k requests/daily).


 sudo apt-get install update-manager-core
do-release-upgrade

During upgrade everything seemed normal. Restarted the instance (EC2): apache2, mysql - all seem to be running. But:


g****c@ip-10-**-**-***:~$ sudo apt-get install libssh2-php
[sudo] password for g****c:
g****c is not in the sudoers file. This incident will be reported.

(I've backed up the instance before upgrading: On origin this user is sudoer).
How can I solve this issue ?
How do I do regain su on remote server?

system installation - I would like to remove Windows 8 and install Ubuntu, without a CD or USB Drive


I have a Windows 8 laptop, that I cannot factory reset because of some error (it just won't do it. I've tried a lot of different things and the error persists). So I'd like to just wipe my HD and do a clean install of Ubuntu on this machine. I do not have a DVD-R or a Flash Drive to make a LiveCD/USB with at the moment.


I DO have access to the Internet, with a wired or wireless connection, and it is fairly fast, so Net Installs would be a possibility.


Can someone point me towards a decently simple-to-understand walkthrough of the process? And if not, do I have ANY other options here at all?


Keep in mind that I do not want to dual-boot, or keep Windows 8 in any form on this laptop. I want to completely wipe Windows 8 off my Hard Drive, and install Ubuntu instead.


Edit Thanks everyone for the answers, looks like I'm just going to go on ahead and buy an inexpensive USB Drive and just do it that way, after all.


I'm new to AskUbuntu so I am not sure if there is a way to mark this question as "asnwered" or "resolved".



In order to install Ubuntu, the easiest way to do so is using a flashdrive, but net installs are possible. You will need another computer and follow the instructions on the Ubuntu help site here. If you will be using another windows computer as the netboot server you will need to follow the link in the "Introduction" segment, or here.


EDIT: After looking around a bit I found that the download links on the second link I provided are broken. To download the latest (13.10) you'll want to replace the word "maverick" with "saucy" in the 10.10 link, or click here: 32-bit or 64-bit.


drivers - Can't get normal resolution on Ubuntu 13.04 with ATI Radeon HD 5470

I am trying to get the resolution on an old laptop normal. The laptop is a HP G72-a10SB with a 1600x900 screen, however, I get a stretched-out lower resolution. The only 2 options in System settings > Displays are 1024 x 768 (4:3) (selected) and 800 x 600 (4:3).
Here is some information:


From the HP website:



Video Graphics: ATI Mobility Radeon HD 5470 Graphics (switchable)


Video Memory: up to 2714 MB total graphics memory with 1 GB DDR3 dedicated


Display: 43.9 cm (17.3") diagonal HD+ High-Definition LED HP BrightView Display (1600 x 900)



xrandr output:



siyck@siyck-laptop:~$ xrandr
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 800 x 600, current 1024 x 768, maximum 1024 x 768
default connected 1024x768+0+0 0mm x 0mm
1024x768 61.0*



lspci output:



siyck@siyck-laptop:~$ lspci
00:00.0 Host bridge: Intel Corporation Core Processor DRAM Controller (rev 02)
00:01.0 PCI bridge: Intel Corporation Core Processor PCI Express x16 Root Port (rev 02)
00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics
Controller (rev 02)
00:16.0 Communication controller: Intel Corporation 5 Series/3400 Series Chipset HECI
Controller (rev 06)
00:1a.0 USB controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced
Host Controller (rev 05)
00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition
Audio (rev 05)
00:1c.0 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 1 (rev 05)
00:1c.2 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 3 (rev 05)
00:1d.0 USB controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 05)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev a5)
00:1f.0 ISA bridge: Intel Corporation Mobile 5 Series Chipset LPC Interface Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 5 Series/3400 Series Chipset 4 port SATA AHCI Controller (rev 05)
00:1f.3 SMBus: Intel Corporation 5 Series/3400 Series Chipset SMBus Controller (rev 05)
00:1f.6 Signal processing controller: Intel Corporation 5 Series/3400 Series Chipset Thermal Subsystem (rev 05)
01:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Park [Mobility Radeon HD 5430/5450/5470]
01:00.1 Audio device: Advanced Micro Devices [AMD] nee ATI Cedar HDMI Audio [Radeon HD 5400/6300 Series]
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 02)
03:00.0 Network controller: Broadcom Corporation BCM4313 802.11b/g/n Wireless LAN Controller (rev 01)
7f:00.0 Host bridge: Intel Corporation Core Processor QuickPath Architecture Generic Non-core Registers (rev 02)
7f:00.1 Host bridge: Intel Corporation Core Processor QuickPath Architecture System Address Decoder (rev 02)
7f:02.0 Host bridge: Intel Corporation Core Processor QPI Link 0 (rev 02)
7f:02.1 Host bridge: Intel Corporation Core Processor QPI Physical 0 (rev 02)
7f:02.2 Host bridge: Intel Corporation Core Processor Reserved (rev 02)
7f:02.3 Host bridge: Intel Corporation Core Processor Reserved (rev 02)



No fglrx installed:



siyck@siyck-laptop:~$ cd /usr/share/ati
bash: cd: /usr/share/ati: No such file or directory



Just making sure:



siyck@siyck-laptop:~$ dpkg -s xorg-driver-fglrx
dpkg-query: package 'xorg-driver-fglrx' is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
siyck@siyck-laptop:~$ dpkg -s fglrx
dpkg-query: package 'fglrx' is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.



Not too sure what this means but I guess it's not installed:



siyck@siyck-laptop:~$ locate fglrx
/usr/share/app-install/desktop/fglrx-driver.desktop
/usr/share/apport/package-hooks/source_fglrx-installer-experimental-9.py
/usr/share/apport/package-hooks/source_fglrx-installer-updates.py
/usr/share/apport/package-hooks/source_fglrx-installer.py



Can't add a new mode to xrandr:



siyck@siyck-laptop:~$ cvt 1600 900
# 1600x900 59.95 Hz (CVT 1.44M9) hsync: 55.99 kHz; pclk: 118.25 MHz
Modeline "1600x900_60.00" 118.25 1600 1696 1856 2112 900 903 908 934 -hsync +vsync
siyck@siyck-laptop:~$ xrandr --newmode "1600x900_60.00" 118.25 1600 1696 1856 2112 900 903 908 934 -hsync +vsync
xrandr: Failed to get size of gamma for output default
X Error of failed request: BadName (named color or font does not exist)
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 16 (RRCreateMode)
Serial number of failed request: 19
Current serial number in output stream: 19



I'm using GNOME3



siyck@siyck-laptop:~$ gnome-shell --version
GNOME Shell 3.6.3.1



Also, the laptop does not detect screens I connect to its VGA port.


Some help or pointers?

freeze - VMWare slowly freezing whole system

Background:



I'm running Kubuntu 18.04 LTS and running Win 10 as guest for random MS specific apps OS on VMWare Workstation 15 Player. Everything appears to work really smooth and nice... for a while. After system has been up for a week or two, weird things start to happen.



At some point, I see various desktop features freezing/unresponsive, and by digging what's going on, it always seems to somehow point to vmware-vmx process. I.e. when I run simple ps aux at terminal, it gets frozen when printing details fof vmware-vmx. By doing strace ps aux I can see that it always gets stuck when reading from /proc/vmware-vmx-PID/cmdline file. The ps aux is frozen so hard that it can't be killed.



strace ps aux screenshot



Also killing the vmware-vmx process doesn't seem to fix the problem. After killing the process, system continues to behave weird and cause lots of lock-ups with many apps. Only reboot seems to recover from it (or actually hard-reset, because reboot also gets stuck waiting to shutdown snapd daemon forever).




What is most terrifying is that doing the system reboot at that state has tendency to corrupt files that I assume some apps are trying to write when closing. On next boot I see some files being empty (i.e. thunderbird passwords were once lost, another time eclipse workspace settings were lost because it contained an empty file, vmware disk image was crapped also once).



Any idea what's going on here?
OR any positive experiences with vmware with long uptimes?



Thanks for sharing your thoughts!



Sys specs:





  • VMWare Workstation 15 Player 15.0.2

  • 64 bit kernel 4.15.0-44

  • Core i5-6600

  • 24 GB RAM, memtest86 pass

  • Geforce 1060 with NVidia drivers 410.78 (390.xx also tried, no difference)

  • KDE 5

  • Ubuntu updates up to date

  • System should be stable, it's been used for 3 years on Win7 without stability issues (uptime several months between boots & active use, no problems)

Tuesday, November 28, 2017

networking - Wireless LAN worked in 14.04, doesn't on 16.04 even with the proprietary drivers



The problem is, that the proprietary drivers, that worked with 14.04, no longer work for Ubuntu 16.04. I did not upgrade, I did a clean installation.sudo lshw -C network shows that my WLAN card is UNCLAIMED, even though I'm using proprietary drivers, which solved the issue back in 14.04. I did a clean install of Ubuntu 16.04, I did not upgrade. I'm new to Ubuntu, and Linux, I have been using Windows all my life, so bare with me. It would be really helpful if I could finally stop using my phone as a wireless tether. Also I used a script that was mentioned in one post to help with the answer. Cheers




########## wireless info START ##########

Report from: 04 May 2016 19:49 CEST +0200


Booted last: 04 May 2016 00:00 CEST +0200

Script from: 27 Sep 2015 00:34 UTC +0000

##### release ###########################

Distributor ID: Ubuntu
Description: Ubuntu 16.04 LTS
Release: 16.04

Codename: xenial

##### kernel ############################

Linux 4.4.0-21-generic #37-Ubuntu SMP Mon Apr 18 18:33:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Parameters: ro, quiet, splash, vt.handoff=7

##### desktop ###########################


Ubuntu

##### lspci #############################

02:00.1 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 12)
Subsystem: Acer Incorporated [ALI] RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [1025:0864]
Kernel driver in use: r8169

03:00.0 Network controller [0280]: Broadcom Corporation BCM43142 802.11b/g/n [14e4:4365] (rev 01)
Subsystem: Lite-On Communications Inc BCM43142 802.11b/g/n [11ad:6645]

Kernel modules: bcma, wl

##### lsusb #############################

Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 002: ID 06cb:2970 Synaptics, Inc. touchpad
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 04f2:b469 Chicony Electronics Co., Ltd
Bus 001 Device 002: ID 0502:3827 Acer, Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 003 Device 004: ID 04ca:2009 Lite-On Technology Corp.
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

##### PCMCIA card info ##################

##### rfkill ############################

0: acer-wireless: Wireless LAN

Soft blocked: no
Hard blocked: no
1: acer-bluetooth: Bluetooth
Soft blocked: yes
Hard blocked: no
2: hci0: Bluetooth
Soft blocked: yes
Hard blocked: no

##### lsmod #############################


acer_wmi 20480 0
sparse_keymap 16384 1 acer_wmi
cfg80211 565248 0
wmi 20480 1 acer_wmi
video 40960 1 acer_wmi

##### interfaces ########################

auto lo

iface lo inet loopback

##### ifconfig ##########################

enp2s0f1 Link encap:Ethernet HWaddr
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)


enxe29ea79c4d96 Link encap:Ethernet HWaddr
inet addr:192.168.42.253 Bcast:192.168.42.255 Mask:255.255.255.0
inet6 addr: fe80::e203:6a7d:868a:748c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1551 errors:0 dropped:0 overruns:0 frame:0
TX packets:1593 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:918949 (918.9 KB) TX bytes:273825 (273.8 KB)


##### iwconfig ##########################

enxe29ea79c4d96 no wireless extensions.

enp2s0f1 no wireless extensions.

lo no wireless extensions.

##### route #############################


Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.42.129 0.0.0.0 UG 100 0 0 enxe29ea79c4d96
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 enxe29ea79c4d96
192.168.42.0 0.0.0.0 255.255.255.0 U 100 0 0 enxe29ea79c4d96

##### resolv.conf #######################

nameserver 127.0.1.1


##### network managers ##################

Installed:

NetworkManager

Running:

root 778 1 0 19:45 ? 00:00:00 /usr/sbin/NetworkManager --no-daemon


##### NetworkManager info ###############

GENERAL.DEVICE: enxe29ea79c4d96
GENERAL.TYPE: ethernet
GENERAL.NM-TYPE: NMDeviceEthernet
GENERAL.VENDOR: MediaTek
GENERAL.PRODUCT: T02
GENERAL.DRIVER: rndis_host
GENERAL.DRIVER-VERSION: 22-Aug-2005
GENERAL.FIRMWARE-VERSION: RNDIS device

GENERAL.HWADDR:
GENERAL.MTU: 1500
GENERAL.STATE: 100 (connected)
GENERAL.REASON: 0 (No reason given)
GENERAL.UDI: /sys/devices/pci0000:00/0000:00:12.2/usb1/1-2/1-2:1.0/net/enxe29ea79c4d96
GENERAL.IP-IFACE: enxe29ea79c4d96
GENERAL.IS-SOFTWARE: no
GENERAL.NM-MANAGED: yes
GENERAL.AUTOCONNECT: yes
GENERAL.FIRMWARE-MISSING: no

GENERAL.NM-PLUGIN-MISSING: no
GENERAL.PHYS-PORT-ID: --
GENERAL.CONNECTION: Wired connection 1
GENERAL.CON-UUID: 5dd869a6-e315-4289-9761-2d898b466ea6
GENERAL.CON-PATH: /org/freedesktop/NetworkManager/ActiveConnection/0
GENERAL.METERED: yes (guessed)
CAPABILITIES.CARRIER-DETECT: yes
CAPABILITIES.SPEED: unknown
CAPABILITIES.IS-SOFTWARE: no
WIRED-PROPERTIES.CARRIER: on

CONNECTIONS.AVAILABLE-CONNECTION-PATHS: /org/freedesktop/NetworkManager/Settings/{0}
CONNECTIONS.AVAILABLE-CONNECTIONS[1]: 5dd869a6-e315-4289-9761-2d898b466ea6 | Wired connection 1
IP4.ADDRESS[1]: 192.168.42.253/24
IP4.GATEWAY: 192.168.42.129
IP4.ROUTE[1]: dst = 169.254.0.0/16, nh = 0.0.0.0, mt = 1000
IP4.DNS[1]: 192.168.42.129
DHCP4.OPTION[1]: requested_subnet_mask = 1
DHCP4.OPTION[2]: requested_rfc3442_classless_static_routes = 1
DHCP4.OPTION[3]: subnet_mask = 255.255.255.0
DHCP4.OPTION[4]: domain_name_servers = 192.168.42.129

DHCP4.OPTION[5]: ip_address = 192.168.42.253
DHCP4.OPTION[6]: requested_static_routes = 1
DHCP4.OPTION[7]: dhcp_server_identifier = 192.168.42.129
DHCP4.OPTION[8]: requested_time_offset = 1
DHCP4.OPTION[9]: broadcast_address = 192.168.42.255
DHCP4.OPTION[10]: requested_interface_mtu = 1
DHCP4.OPTION[11]: dhcp_rebinding_time = 3150
DHCP4.OPTION[12]: requested_domain_name_servers = 1
DHCP4.OPTION[13]: dhcp_message_type = 5
DHCP4.OPTION[14]: requested_broadcast_address = 1

DHCP4.OPTION[15]: routers = 192.168.42.129
DHCP4.OPTION[16]: dhcp_renewal_time = 1800
DHCP4.OPTION[17]: requested_domain_name = 1
DHCP4.OPTION[18]: requested_routers = 1
DHCP4.OPTION[19]: expiry = 1462387551
DHCP4.OPTION[20]: requested_wpad = 1
DHCP4.OPTION[21]: host_name = Technomancer
DHCP4.OPTION[22]: requested_netbios_scope = 1
DHCP4.OPTION[23]: requested_ms_classless_static_routes = 1
DHCP4.OPTION[24]: requested_netbios_name_servers = 1

DHCP4.OPTION[25]: network_number = 192.168.42.0
DHCP4.OPTION[26]: requested_domain_search = 1
DHCP4.OPTION[27]: vendor_encapsulated_options = ANDROID_METERED
DHCP4.OPTION[28]: next_server = 192.168.42.129
DHCP4.OPTION[29]: requested_host_name = 1
DHCP4.OPTION[30]: dhcp_lease_time = 3600
DHCP4.OPTION[31]: requested_ntp_servers = 1
IP6.ADDRESS[1]: fe80::e203:6a7d:868a:748c/64
IP6.GATEWAY:


GENERAL.DEVICE: enp2s0f1
GENERAL.TYPE: ethernet
GENERAL.NM-TYPE: NMDeviceEthernet
GENERAL.VENDOR: Realtek Semiconductor Co., Ltd.
GENERAL.PRODUCT: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
GENERAL.DRIVER: r8169
GENERAL.DRIVER-VERSION: 2.3LK-NAPI
GENERAL.FIRMWARE-VERSION:
GENERAL.HWADDR:
GENERAL.MTU: 1500

GENERAL.STATE: 20 (unavailable)
GENERAL.REASON: 2 (Device is now managed)
GENERAL.UDI: /sys/devices/pci0000:00/0000:00:03.1/0000:02:00.1/net/enp2s0f1
GENERAL.IP-IFACE:
GENERAL.IS-SOFTWARE: no
GENERAL.NM-MANAGED: yes
GENERAL.AUTOCONNECT: yes
GENERAL.FIRMWARE-MISSING: no
GENERAL.NM-PLUGIN-MISSING: no
GENERAL.PHYS-PORT-ID: --

GENERAL.CONNECTION: --
GENERAL.CON-UUID: --
GENERAL.CON-PATH: --
GENERAL.METERED: unknown
CAPABILITIES.CARRIER-DETECT: yes
CAPABILITIES.SPEED: unknown
CAPABILITIES.IS-SOFTWARE: no
WIRED-PROPERTIES.CARRIER: off
CONNECTIONS.AVAILABLE-CONNECTION-PATHS:


##### NetworkManager.state ##############

[main]
NetworkingEnabled=true
WirelessEnabled=true
WWANEnabled=true

##### NetworkManager.conf ###############

[main]

plugins=ifupdown,keyfile,ofono
dns=dnsmasq

[ifupdown]
managed=false

##### NetworkManager profiles ###########

##### iw reg get ########################


Region: Europe/Belgrade (based on set time zone)

country 00: DFS-UNSET
(2402 - 2472 @ 40), (N/A, 20), (N/A)
(2457 - 2482 @ 40), (N/A, 20), (N/A), NO-IR
(2474 - 2494 @ 20), (N/A, 20), (N/A), NO-OFDM, NO-IR
(5170 - 5250 @ 80), (N/A, 20), (N/A), NO-IR
(5250 - 5330 @ 80), (N/A, 20), (0 ms), DFS, NO-IR
(5490 - 5730 @ 160), (N/A, 20), (0 ms), DFS, NO-IR
(5735 - 5835 @ 80), (N/A, 20), (N/A), NO-IR

(57240 - 63720 @ 2160), (N/A, 0), (N/A)

##### iwlist channels ###################

enxe29ea79c4d96 no frequency information.

enp2s0f1 no frequency information.

lo no frequency information.


##### iwlist scan #######################

enxe29ea79c4d96 Interface doesn't support scanning.

enp2s0f1 Interface doesn't support scanning.

lo Interface doesn't support scanning.

##### module infos ######################


[cfg80211]
filename: /lib/modules/4.4.0-21-generic/kernel/net/wireless/cfg80211.ko
description: wireless configuration support
license: GPL
author: Johannes Berg
srcversion: 00D8DA6D3B739DDD31FFF50
depends:
intree: Y
vermagic: 4.4.0-21-generic SMP mod_unload modversions
parm: ieee80211_regdom:IEEE 802.11 regulatory domain code (charp)

parm: cfg80211_disable_40mhz_24ghz:Disable 40MHz support in the 2.4GHz band (bool)

##### module parameters #################

[cfg80211]
cfg80211_disable_40mhz_24ghz: N
ieee80211_regdom: 00

##### /etc/modules ######################


##### modprobe options ##################

[/etc/modprobe.d/blacklist-ath_pci.conf]
blacklist ath_pci

[/etc/modprobe.d/blacklist-bcm43.conf]
blacklist b43
blacklist b43legacy
blacklist ssb
blacklist bcm43xx

blacklist brcm80211
blacklist brcmfmac
blacklist brcmsmac
blacklist bcma

[/etc/modprobe.d/blacklist.conf]
blacklist evbug
blacklist usbmouse
blacklist usbkbd
blacklist eepro100

blacklist de4x5
blacklist eth1394
blacklist snd_intel8x0m
blacklist snd_aw2
blacklist i2c_i801
blacklist prism54
blacklist bcm43xx
blacklist garmin_gps
blacklist asus_acpi
blacklist snd_pcsp

blacklist pcspkr
blacklist amd76x_edac

[/etc/modprobe.d/blacklist-rare-network.conf]
alias net-pf-3 off
alias net-pf-6 off
alias net-pf-9 off
alias net-pf-11 off
alias net-pf-12 off
alias net-pf-19 off

alias net-pf-21 off
alias net-pf-36 off

[/etc/modprobe.d/iwlwifi.conf]
remove iwlwifi \
(/sbin/lsmod | grep -o -e ^iwlmvm -e ^iwldvm -e ^iwlwifi | xargs /sbin/rmmod) \
&& /sbin/modprobe -r mac80211

[/etc/modprobe.d/mlx4.conf]
softdep mlx4_core post: mlx4_en


##### rc.local ##########################

exit 0

##### pm-utils ##########################

##### udev rules ########################

grep: /etc/udev/rules.d/*net*.rules: No such file or directory


##### dmesg #############################

[ 14.718416] rndis_host 1-2:1.0 enxe29ea79c4d96: renamed from usb0
[ 30.518187] IPv6: ADDRCONF(NETDEV_UP): enxe29ea79c4d96: link is not ready
[ 30.526438] IPv6: ADDRCONF(NETDEV_UP): enp2s0f1: link is not ready
[ 30.605747] r8169 0000:02:00.1 enp2s0f1: link down
[ 30.605842] IPv6: ADDRCONF(NETDEV_UP): enp2s0f1: link is not ready
[ 161.825895] bluetooth hci0: Direct firmware load for brcm/BCM.hcd failed with error -2
[ 161.825908] Bluetooth: hci0: BCM: Patch brcm/BCM.hcd not found


########## wireless info END ############


I found the answer on this post.

1) Remove bcmwl-kernel-source

sudo apt-get purge bcmwl-kernel-source

2) Re-install bcmwl-kernel-source

sudo apt-get update
sudo apt-get install bcmwl-kernel-source

It will ask you for a password, if secure boot isn't turned off already.

After the reboot, it will ask you for a character from the password you entered previously, so you can turn off secure boot. Ubuntu will boot up, and voila.

And yes, a part of the problem was secure boot, like the previous answer stated. But the previous answer didn't work towards disabling secure boot.


11.10 - how can I get the UbuntuOne panel icon starting in the background via my .bashrc



Trying to get an indicator working to show UbuntuOne progress, like the Dropbox one.



This helped: Is there any way to get an indicator for Ubuntu One?
Also this http://www.webupd8.org/2010/10/ubuntu-one-indicator-applet.html actually gave me the command to run -



/usr/bin/ubuntuone-indicator



However this ties up the terminal so I want to run it in the background and ideally have it in my .bashrc to start on startup.



However when I try /usr/bin/ubuntuone-indicator & the indicator comes up... but the terminal is tied up and doesn't return the command prompt.



I can interrupt it (ctrl-c) and the indicator actually stays, so it seems like the job was actually in the background. Stopping it at this point requires a kill command.



So how can i get this working in the background ok so that I can add it to my .bashrc shell?



At the command line:




If I try /usr/bin/ubuntuone-indicator it starts, but the terminal is hung and indicator gets killed with a ctrl-c



If I try /usr/bin/ubuntuone-indicator & it starts the icon indicator but still hangs the terminal. If I ctrl-c, that works (exits) and the process is left in the background (requires kill to stop it). This is good... except that I can't "ctrl-c" for the .bashrc script.



Try starting the application with nohup



nohup /usr/bin/ubuntuone-indicator &


You should now be able to close the terminal.




Assuming that works, IMO, you want to add that command do a script which then runs at login rather then adding it to .bashrc



Add your script or command to Startup applications



startup applications


11.04 - Why does ubuntu-bug imply that I shouldn't report bugs for Compiz and Unity?


I run ubuntu-bug compiz. Select no it's not unity. (Although I get the same result if I report for unity.)


Then I'm presented with this question:



Development is completed for the 'natty' version of Ubuntu, so you should use technical support channels unless you know for certain it should be reported here?



Options:



  • I don't know

  • Yes, I already know the fix for this problem.

  • Yes, The problem began right after doing a system software update.

  • Yes, I have gone through technical support, and they have referred me here.

  • No, please point me to a good place to get support.


"I don't know" and "No..." both give a dialog with links to askubuntu and ubuntu.com/support and end the bug report without sending.


If I found a bug that I want to report, the only applicable yes is "Yes, The problem began after doing a system software update."


This implies that the developers are interested in regressions, but not new bugs.


My understanding was that askubuntu is for help and not for bug reports. Is this dialog merely to help askubuntu to relieve the developers of technical support tasks? (An admirable goal, but I'd assume users who are asked to post to AU and then report the same issue to launchpad will lose enthusiasm -- perhaps it's worth it if "junk bugs" are drastically reduced.) When is something not technical support?




For context, the bug I want to report is that when using Scale and switching my selection with the keyboard, Chromium does not display the same selection shadow as other windows (gnome-terminal, nautilus). I'm not looking for help to find a workaround (I can turn on window highlighting in Scale Add-on).


However, I cannot honestly answer Yes to any of the questions.



I mailed Brian Murray (the Ubuntu bugmaster) about this:



Thanks for bringing this up. Its news to me and I'm not really happy
with the user experience here. Digging into it this is actually the
Xorg package hook for apport so using ubuntu-bug with an Xorg package
will provide essentially the same experience. Maybe we should sit down
with Bryce next week and discuss it?



Maybe a good start here would be to file a bug on the xorg package about the apport hook. I'll follow up at UDS and update this answer.


(Nice catch by the way!)


dual boot - How do I uninstall Ubuntu 14.04.1 from a Vista machine?

I recently installed Ubuntu on my Vista machine. I would really love to have my machine back to just Windows.



I tried using the Recovery cd (well, okay, it wasn't the cd it was the Recovery Image on the hard drive, but isn't that the same thing?) as per the instructions here How to remove Ubuntu and put Windows back on? to fix the MBR but it didn't work. My machine just booted back into the GRUB boot options.




I tried deleting and formatting the partition that Ubuntu had installed itself on but all that did was completely mess up the boot record to where I couldn't boot the machine.



I tried booting from the Ubuntu cd and using the uninstall option but there wasn't one. It just wanted to reinstall itself.



I tried booting from the Ubuntu cd and using the Try Ubuntu option and typing the Sudo add-apt commands that can also be found on the above link. This didn't work, either, for two reasons: 1) I didn't realise Boot-Repair was a third-party program (D'oh!), and 2) when it got to the Ubuntu desktop my mouse wouldn't respond. (I tried two different ones.)



I ended up just reinstalling Ubuntu just so that I could post on here asking for help. Surely, there is ONE STRAIGHTFORWARD way to uninstall Ubuntu and repair the boot record so I (and others) can have their machine back to just Windows and have it booting straight into Windows.



I have used Ubuntu in the past (admittedly installing with the Wubi) and I don't claim to be an expert (obviously, or I wouldn't be posting asking for help) but it seems to me that Ubuntu is becoming more of a pain to uninstall.




Can someone please help?? I just want one simple straightforward way to uninstall and repair my boot record so I can get my machine back to just Windows. Thanks!!






Can someone please help me? The person answering my question is making no sense to me whatsoever. Can I get some help please?

apt-get install fails due to dependent packages

I have an offline machine M1 and online machine M2. M1 has only access to a local repository in an intranet. Apparently it has lots of lacking packages. So I wanted to install all the program in M2 to M1. I have read about apt-offline but I was not able to install some basic programs, vim for example. So as I encounter, I have copied all the .deb files in /var/cache/apt/archives from M2 to M1 and put into same path and depackaged them all. Now when I try to call apt-get install someProgram, my machine says "The following packages have unmet dependencies: someAnotherProgram". How could I erase these packages which have unmet dependencies?

software recommendation - Using multiple desktop environments



Can I install extra desktop environments without affecting my current environment?



I'm asking because I got mixed messages saying that it is no problem as well as those that say that the universe basically exploded when they switched temporarily.



You may install as many as you wish. The only 2 that I know of that are incompatible are gnome-shell and unity (one or the other).



The only complaints I have seen about doing so are either :





  1. Cosmetic changes to themes , including plymouth (boot screen), log in screen, and sometimes icons. You can always set these they way you like post install.


  2. Duplicate apps (multiple text editors, cd burners, etc). This makes the menu crowded. You can use kde/xfce/lxde apps with any of the desktop environments.


  3. It can be painstaking to remove the desktops if you no longer wish to keep them. Other window managers (fluxbox, openbox, etc) are easier to remove.


  4. Some people complain of performance hits due to loading multiple libs into ram. IMO the performance hit is negligible. It does require more hard drive space and more packages == more likely to find bugs.



How to update MySQL Server, MySQL Client and phpMyAdmin to the latest stable versions on my local machine running on 64-bit Ubuntu 12.04 LTS?

I'm using 64-bit Ubuntu 12.04 LTS on my machine. I've already installed LAMP server on my machine.




I'm using following Apache HTTP Server version.



I got following information after I type following command into my machine's terminal :



apachectl -V

Server version: Apache/2.4.10 (Ubuntu)
Server built: Jul 22 2014 22:57:50
Server's Module Magic Number: 20120211:36
Server loaded: APR 1.5.1, APR-UTIL 1.5.3

Compiled using: APR 1.5.1, APR-UTIL 1.5.3
Architecture: 64-bit
Server MPM: prefork
threaded: no
forked: yes (variable process count)
Server compiled with....
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE

-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=256
-D HTTPD_ROOT="/etc/apache2"
-D SUEXEC_BIN="/usr/lib/apache2/suexec"
-D DEFAULT_PIDLOG="/var/run/apache2.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_ERRORLOG="logs/error_log"

-D AP_TYPES_CONFIG_FILE="mime.types"
-D SERVER_CONFIG_FILE="apache2.conf"


I'm using following PHP version on my machine. Following is the command that I run and the information I seen:



php -v

PHP 5.5.19-1+deb.sury.org~precise+1 (cli) (built: Nov 19 2014 19:32:34)
Copyright (c) 1997-2014 The PHP Group

Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies


When I hit the URL : http://localhost/phpmyadmin from the address bar of my browser, Log in screen of phpMyAdmin loaded then I entered the Username and Password to login. After logging in I saw following details on right pane.



**MySQL**    

- Server: Localhost via UNIX socket
- Server version: 5.5.40-0ubuntu0.12.04.1

- Protocol version: 10
- User: root@localhost
- MySQL charset: UTF-8 Unicode (utf8)


**Web server**
- Apache/2.4.10 (Ubuntu)
- MySQL client version: 5.5.40
- PHP extension: mysqli


**phpMyAdmin**

- Version information: 3.4.10.1deb1
- Documentation
- Wiki
- Official Homepage
- Contribute
- Get support
- List of changes



I don't know whether the versions of softwares MySQL Server, MySQL Client and phpMyAdmin are the latest stable versions or not. Please guide me in this regard.



Now I want to update MySQL Server, MySQL Client and phpMyAdmin to the latest stable versions on my local machine that is running on 64-bit Ubuntu 12.04 LTS.



What should be the efficient, reliable, secure and easiest way to do this?



Please provide me help in this regard.



Thanks in advance.

16.04 - Recover/change encryption password

I foolishly changed my whole-drive encryption password last week because I was apparently incapable of reliably typing in the previous password. Unfortunately, my computer has been on since then and I didn't write the new password down anywhere so I have since forgotten it. Not my proudest moment, but I am extremely thankful I realized before it came time to enter the password. I am still logged into the computer so I have access to all my files but as soon as I shut the computer down I will be out of luck. I would like to avoid having to re-install everything if I can.


So my question is, is there anyway to recover/change my encryption password while I am still logged in as admin?

motu - Why isn't Metasploit in Ubuntu's software repositories?



Why isn't Metasploit in Ubuntu's software repositories?



More broadly, on what basis is software chosen or not to be added to the official Ubuntu repositories? Who takes those decisions? etc.



There are really two questions here.



I'll answer the broader question first. The answer is "The Ubuntu Community".




There's a process for adding software to Ubuntu's archive and having it tested as part of the releases:



https://wiki.ubuntu.com/UbuntuDevelopment/NewPackages



To answer about metasploit, its hard to say why it hasn't been packaged yet. There is a debian "Intent To Package" bug filed that is 1607 days old here:



http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=323420



If this were ever completed, it would automatically be included in the Ubuntu universe repository. However, the bug report lists a blocker on the copyright status of some of the files. If this isn't resolved, then it won't enter Debian, and likely won't be included with Ubuntu unless the distribution legality is clarified.


Monday, November 27, 2017

nodejs - What to do with tar.gz

I am quite new to Ubuntu and I am trying to install node.js on 12.04. I have the source code in a tar.gz. I am not sure what I need to do with this file. I guess I need to extract it but is there a recommended place I extract it too? Also after extracting it should I just be able to use it from the command line or do I need to do anything else?

grub2 - Dual-Boot: Win7 partition loads without error, but display doesn't work


I am having a strange dual-boot issue that I haven't been able to find an answer for anywhere. I have an Ubuntu 14.04 box, which I have created a secondary partition on for Win7. My setup process:



  • Boot to Ubuntu USB drive trial, shrink the Ubuntu partition and create NTFS partition, restart

  • Boot to Win7 CD, install, reboot, log into Win7 fine, restart

  • Boot to Ubuntu USB drive trial, run Boot-Repair, restart


Now I get a Grub menu on startup, and can get into Ubuntu no problem. However, trying to access Win7 results in a blank 'purple' screen (color of Grub screen), although I can hear the 'startup music' of Windows 7.


If I boot off the Windows CD again, and run "bootrec /fixboot" from the command line, then I am able to reboot, choose Win7 in Grub, and get into it correctly. HOWEVER, if at any point I go back into Ubuntu, then afterwards I run into the same problem above when trying to access Win7 unless I repeat the CD boot/bootrec step first.


Any ideas as to why accessing my Ubuntu partition keeps rendering my Win7 partition non-accessible?


FURTHER INFO: I tested, and it is not the selection to boot from Ubuntu that causes the subsequent Windows boot to fail. If I do two back-to-back Windows boots, the one after the CD boot/bootrec works (via a "Boot to safe mode or normally" menu), and then the next one fails.



As it turns out on further experimentation, the problem was that I had not yet installed the official graphics drivers for Windows 7 after the initial install. As far as I can tell, the handoff from GRUB to Windows 7 screws up the use of the very basic default graphic drivers to display.


But, as it turns out, if I did anything that would result in the system displaying the "Boot from Safe Mode or Normally" menu, or if I powered off and powered back on and then re-accessed Windows, prompting it to try and resume its previous session, the default graphics drivers were able to take over and work. I was able to use this to get in long enough to install the system-specific graphics drivers, after which it booted repeatedly with no problems.


I'm leaving this here for anyone who has the same problem (or wants to investigate why this happens in the GRUB-Win7 handoff).


Login Screen returns to login screen

After many many reboots in a couple days while experimenting with BIOS settings effecting the speed Hardbrake runs at, today I find after a reboot that I have to type in password to log in - ordinarily I have this disabled.


When I DO enter my password, it goes to a black screen for a bit, then returns. I can log in as guest, which does the same thing (minus the password) and if I use the wrong password, it complains instead of doing the same.


Using the install disc, I see three partitions on my drive, a ~200 MB boot sector, and two 32 GB (one extended) which seem to share the rest of the SSD.


Running FSCK seems to generate tons of errors.


The odd bits: All my background stuff is running - I can access stuff served by Subsonic, and see network shares from my windows machines. I can log in in another terminal and do stuff... I just can't get into the GUI/OS proper.


Sort of at a loss where to start. Would be happy to free drive of errors if I could (I've another machine, I could mount drive over USB and check it), but it seems everything else is working?


edit: Screensaver also seems to kick on, even from fsck's run from the boot menu.




i3-2100t, H67 chipset I believe, 12.10, everything's been working fine for the better part of a year. Seen several similar topics, but either they turn out to be something unrelated (fresh install or known graphics issues) or there are no answers. I'm happy to get any logs/info anyone want.




Starting to think SSD is corrupted in some way that's preventing booting. Can't get FSCK to complete on it.


update: ran ""fsck -n /dev/mapper/ubunutu-root"" got the answer it was clean.


Ok, here's a copy of my Xorg.0.log.old file:


[   340.321]
X.Org X Server 1.13.0
Release Date: 2012-09-05
[ 340.321] X Protocol Version 11, Revision 0
[ 340.321] Build Operating System: Linux 3.2.0-26-generic i686 Ubuntu
[ 340.321] Current Operating System: Linux HBO 3.5.0-19-generic #30-Ubuntu SMP Tue Nov 13 17:49:53 UTC 2012 i686
[ 340.321] Kernel command line: BOOT_IMAGE=/vmlinuz-3.5.0-19-generic root=/dev/mapper/ubuntu-root ro quiet splash vt.handoff=7
[ 340.321] Build Date: 27 November 2012 07:44:37AM
[ 340.321] xorg-server 2:1.13.0-0ubuntu6.1 (For technical support please see http://www.ubuntu.com/support)
[ 340.321] Current version of pixman: 0.26.0
[ 340.321] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 340.321] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 340.321] (==) Log file: "/var/log/Xorg.0.log", Time: Tue Dec 18 16:34:28 2012
[ 340.321] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 340.321] (==) No Layout section. Using the first Screen section.
[ 340.321] (==) No screen section available. Using defaults.
[ 340.321] (**) |-->Screen "Default Screen Section" (0)
[ 340.321] (**) | |-->Monitor ""
[ 340.322] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 340.322] (==) Automatically adding devices
[ 340.322] (==) Automatically enabling devices
[ 340.322] (==) Automatically adding GPU devices
[ 340.322] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[ 340.322] Entry deleted from font path.
[ 340.322] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[ 340.322] Entry deleted from font path.
[ 340.322] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[ 340.322] Entry deleted from font path.
[ 340.322] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[ 340.322] Entry deleted from font path.
[ 340.322] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[ 340.322] Entry deleted from font path.
[ 340.322] (WW) The directory "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType" does not exist.
[ 340.322] Entry deleted from font path.
[ 340.322] (==) FontPath set to:
/usr/share/fonts/X11/misc,
/usr/share/fonts/X11/Type1,
built-ins
[ 340.322] (==) ModulePath set to "/usr/lib/i386-linux-gnu/xorg/extra-modules,/usr/lib/xorg/extra-modules,/usr/lib/xorg/modules"
[ 340.322] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 340.322] (II) Loader magic: 0xb7787640
[ 340.322] (II) Module ABI versions:
[ 340.322] X.Org ANSI C Emulation: 0.4
[ 340.322] X.Org Video Driver: 13.0
[ 340.322] X.Org XInput driver : 18.0
[ 340.322] X.Org Server Extension : 7.0
[ 340.322] (II) config/udev: Adding drm device (/dev/dri/card0)
[ 340.323] (--) PCI:*(0:0:2:0) 8086:0102:19da:a166 rev 9, Mem @ 0xfe000000/4194304, 0xc0000000/268435456, I/O @ 0x0000f000/64
[ 340.323] (II) Open ACPI successful (/var/run/acpid.socket)
[ 340.323] Initializing built-in extension Generic Event Extension
[ 340.323] Initializing built-in extension SHAPE
[ 340.323] Initializing built-in extension MIT-SHM
[ 340.323] Initializing built-in extension XInputExtension
[ 340.323] Initializing built-in extension XTEST
[ 340.323] Initializing built-in extension BIG-REQUESTS
[ 340.323] Initializing built-in extension SYNC
[ 340.323] Initializing built-in extension XKEYBOARD
[ 340.323] Initializing built-in extension XC-MISC
[ 340.323] Initializing built-in extension SECURITY
[ 340.323] Initializing built-in extension XINERAMA
[ 340.323] Initializing built-in extension XFIXES
[ 340.323] Initializing built-in extension RENDER
[ 340.323] Initializing built-in extension RANDR
[ 340.323] Initializing built-in extension COMPOSITE
[ 340.323] Initializing built-in extension DAMAGE
[ 340.323] Initializing built-in extension MIT-SCREEN-SAVER
[ 340.323] Initializing built-in extension DOUBLE-BUFFER
[ 340.323] Initializing built-in extension RECORD
[ 340.323] Initializing built-in extension DPMS
[ 340.323] Initializing built-in extension X-Resource
[ 340.323] Initializing built-in extension XVideo
[ 340.323] Initializing built-in extension XVideo-MotionCompensation
[ 340.323] Initializing built-in extension XFree86-VidModeExtension
[ 340.323] Initializing built-in extension XFree86-DGA
[ 340.323] Initializing built-in extension XFree86-DRI
[ 340.323] Initializing built-in extension DRI2
[ 340.323] (II) LoadModule: "glx"
[ 340.323] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 340.324] (II) Module glx: vendor="X.Org Foundation"
[ 340.324] compiled for 1.13.0, module version = 1.0.0
[ 340.324] ABI class: X.Org Server Extension, version 7.0
[ 340.324] (==) AIGLX enabled
[ 340.324] Loading extension GLX
[ 340.324] (==) Matched intel as autoconfigured driver 0
[ 340.324] (==) Matched intel as autoconfigured driver 1
[ 340.324] (==) Matched vesa as autoconfigured driver 2
[ 340.324] (==) Matched modesetting as autoconfigured driver 3
[ 340.324] (==) Matched fbdev as autoconfigured driver 4
[ 340.324] (==) Assigned the driver to the xf86ConfigLayout
[ 340.324] (II) LoadModule: "intel"
[ 340.324] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[ 340.324] (II) Module intel: vendor="X.Org Foundation"
[ 340.324] compiled for 1.13.0, module version = 2.20.9
[ 340.324] Module class: X.Org Video Driver
[ 340.324] ABI class: X.Org Video Driver, version 13.0
[ 340.324] (II) LoadModule: "vesa"
[ 340.325] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
[ 340.325] (II) Module vesa: vendor="X.Org Foundation"
[ 340.325] compiled for 1.12.99.902, module version = 2.3.2
[ 340.325] Module class: X.Org Video Driver
[ 340.325] ABI class: X.Org Video Driver, version 13.0
[ 340.325] (II) LoadModule: "modesetting"
[ 340.325] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 340.325] (II) Module modesetting: vendor="X.Org Foundation"
[ 340.325] compiled for 1.13.0, module version = 0.5.0
[ 340.325] Module class: X.Org Video Driver
[ 340.325] ABI class: X.Org Video Driver, version 13.0
[ 340.325] (II) LoadModule: "fbdev"
[ 340.325] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[ 340.325] (II) Module fbdev: vendor="X.Org Foundation"
[ 340.325] compiled for 1.12.99.902, module version = 0.4.3
[ 340.325] Module class: X.Org Video Driver
[ 340.325] ABI class: X.Org Video Driver, version 13.0
[ 340.325] (II) intel: Driver for Intel Integrated Graphics Chipsets: i810,
i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G, 915G,
E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM, Pineview G,
965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33, GM45,
4 Series, G45/G43, Q45/Q43, G41, B43, B43, Clarkdale, Arrandale,
Sandybridge Desktop (GT1), Sandybridge Desktop (GT2),
Sandybridge Desktop (GT2+), Sandybridge Mobile (GT1),
Sandybridge Mobile (GT2), Sandybridge Mobile (GT2+),
Sandybridge Server, Ivybridge Mobile (GT1), Ivybridge Mobile (GT2),
Ivybridge Desktop (GT1), Ivybridge Desktop (GT2), Ivybridge Server,
Ivybridge Server (GT2), Haswell Desktop (GT1), Haswell Desktop (GT2),
Haswell Desktop (GT2+), Haswell Mobile (GT1), Haswell Mobile (GT2),
Haswell Mobile (GT2+), Haswell Server (GT1), Haswell Server (GT2),
Haswell Server (GT2+), Haswell SDV Desktop (GT1),
Haswell SDV Desktop (GT2), Haswell SDV Desktop (GT2+),
Haswell SDV Mobile (GT1), Haswell SDV Mobile (GT2),
Haswell SDV Mobile (GT2+), Haswell SDV Server (GT1),
Haswell SDV Server (GT2), Haswell SDV Server (GT2+),
Haswell ULT Desktop (GT1), Haswell ULT Desktop (GT2),
Haswell ULT Desktop (GT2+), Haswell ULT Mobile (GT1),
Haswell ULT Mobile (GT2), Haswell ULT Mobile (GT2+),
Haswell ULT Server (GT1), Haswell ULT Server (GT2),
Haswell ULT Server (GT2+), Haswell CRW Desktop (GT1),
Haswell CRW Desktop (GT2), Haswell CRW Desktop (GT2+),
Haswell CRW Mobile (GT1), Haswell CRW Mobile (GT2),
Haswell CRW Mobile (GT2+), Haswell CRW Server (GT1),
Haswell CRW Server (GT2), Haswell CRW Server (GT2+),
ValleyView PO board
[ 340.326] (II) VESA: driver for VESA chipsets: vesa
[ 340.326] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 340.326] (II) FBDEV: driver for framebuffer: fbdev
[ 340.326] (++) using VT number 7
[ 340.326] (II) intel(0): using device path '/dev/dri/card0'
[ 340.326] (WW) Falling back to old probe method for vesa
[ 340.326] (WW) Falling back to old probe method for modesetting
[ 340.326] (WW) Falling back to old probe method for fbdev
[ 340.326] (II) Loading sub module "fbdevhw"
[ 340.326] (II) LoadModule: "fbdevhw"
[ 340.326] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[ 340.326] (II) Module fbdevhw: vendor="X.Org Foundation"
[ 340.326] compiled for 1.13.0, module version = 0.0.2
[ 340.326] ABI class: X.Org Video Driver, version 13.0
[ 340.326] (II) intel(0): Creating default Display subsection in Screen section
"Default Screen Section" for depth/fbbpp 24/32
[ 340.326] (==) intel(0): Depth 24, (--) framebuffer bpp 32
[ 340.326] (==) intel(0): RGB weight 888
[ 340.326] (==) intel(0): Default visual is TrueColor
[ 340.326] (--) intel(0): Integrated Graphics Chipset: Intel(R) Sandybridge Desktop (GT1)

.....
EDIT FOR BREVITY
.....


[   340.861] (**) Option "xkb_rules" "evdev"
[ 340.861] (**) Option "xkb_model" "pc105"
[ 340.861] (**) Option "xkb_layout" "us"
[ 340.861] (II) config/udev: Adding input device Power Button (/dev/input/event0)
[ 340.861] (**) Power Button: Applying InputClass "evdev keyboard catchall"
[ 340.861] (II) Using input driver 'evdev' for 'Power Button'
[ 340.861] (**) Power Button: always reports core events
[ 340.861] (**) evdev: Power Button: Device: "/dev/input/event0"
[ 340.861] (--) evdev: Power Button: Vendor 0 Product 0x1
[ 340.861] (--) evdev: Power Button: Found keys
[ 340.861] (II) evdev: Power Button: Configuring as keyboard
[ 340.861] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/device:00/PNP0C0C:00/input/input0/event0"
[ 340.861] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 7)
[ 340.861] (**) Option "xkb_rules" "evdev"
[ 340.861] (**) Option "xkb_model" "pc105"
[ 340.861] (**) Option "xkb_layout" "us"
[ 340.861] (II) config/udev: Adding drm device (/dev/dri/card0)
[ 340.862] (II) config/udev: Adding input device HDA Intel PCH Front Mic (/dev/input/event10)
[ 340.862] (II) No input driver specified, ignoring this device.
[ 340.862] (II) This device may have been added with another device file.
[ 340.862] (II) config/udev: Adding input device HDA Intel PCH Rear Mic (/dev/input/event11)
[ 340.862] (II) No input driver specified, ignoring this device.
[ 340.862] (II) This device may have been added with another device file.
[ 340.862] (II) config/udev: Adding input device HDA Intel PCH Front Headphone (/dev/input/event12)
[ 340.862] (II) No input driver specified, ignoring this device.
[ 340.862] (II) This device may have been added with another device file.
[ 340.862] (II) config/udev: Adding input device HDA Intel PCH Line Out CLFE (/dev/input/event13)
[ 340.862] (II) No input driver specified, ignoring this device.
[ 340.862] (II) This device may have been added with another device file.
[ 340.863] (II) config/udev: Adding input device HDA Intel PCH Line Out Surround (/dev/input/event14)
[ 340.863] (II) No input driver specified, ignoring this device.
[ 340.863] (II) This device may have been added with another device file.
[ 340.863] (II) config/udev: Adding input device HDA Intel PCH Line Out Front (/dev/input/event15)
[ 340.863] (II) No input driver specified, ignoring this device.
[ 340.863] (II) This device may have been added with another device file.
[ 340.863] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=7 (/dev/input/event7)
[ 340.863] (II) No input driver specified, ignoring this device.
[ 340.863] (II) This device may have been added with another device file.
[ 340.863] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=3 (/dev/input/event8)
[ 340.863] (II) No input driver specified, ignoring this device.
[ 340.863] (II) This device may have been added with another device file.
[ 340.863] (II) config/udev: Adding input device HDA Intel PCH Line (/dev/input/event9)
[ 340.863] (II) No input driver specified, ignoring this device.
[ 340.863] (II) This device may have been added with another device file.
[ 340.863] (II) config/udev: Adding input device HID 0c16:0001 (/dev/input/event5)
[ 340.863] (**) HID 0c16:0001: Applying InputClass "evdev keyboard catchall"
[ 340.863] (II) Using input driver 'evdev' for 'HID 0c16:0001'
[ 340.863] (**) HID 0c16:0001: always reports core events
[ 340.864] (**) evdev: HID 0c16:0001: Device: "/dev/input/event5"
[ 340.864] (--) evdev: HID 0c16:0001: Vendor 0xc16 Product 0x1
[ 340.864] (--) evdev: HID 0c16:0001: Found keys
[ 340.864] (II) evdev: HID 0c16:0001: Configuring as keyboard
[ 340.864] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1c.3/0000:04:00.0/usb3/3-1/3-1.3/3-1.3:1.0/input/input5/event5"
[ 340.864] (II) XINPUT: Adding extended input device "HID 0c16:0001" (type: KEYBOARD, id 8)
[ 340.864] (**) Option "xkb_rules" "evdev"
[ 340.864] (**) Option "xkb_model" "pc105"
[ 340.864] (**) Option "xkb_layout" "us"
[ 340.864] (II) config/udev: Adding input device HID 0c16:0001 (/dev/input/event6)
[ 340.864] (**) HID 0c16:0001: Applying InputClass "evdev pointer catchall"
[ 340.864] (**) HID 0c16:0001: Applying InputClass "evdev keyboard catchall"
[ 340.864] (II) Using input driver 'evdev' for 'HID 0c16:0001'
[ 340.864] (**) HID 0c16:0001: always reports core events
[ 340.864] (**) evdev: HID 0c16:0001: Device: "/dev/input/event6"
[ 340.864] (--) evdev: HID 0c16:0001: Vendor 0xc16 Product 0x1
[ 340.864] (--) evdev: HID 0c16:0001: Found 13 mouse buttons
[ 340.864] (--) evdev: HID 0c16:0001: Found scroll wheel(s)
[ 340.864] (--) evdev: HID 0c16:0001: Found relative axes
[ 340.864] (--) evdev: HID 0c16:0001: Found x and y relative axes
[ 340.864] (--) evdev: HID 0c16:0001: Found absolute axes
[ 340.864] (II) evdev: HID 0c16:0001: Forcing absolute x/y axes to exist.
[ 340.864] (--) evdev: HID 0c16:0001: Found keys
[ 340.864] (II) evdev: HID 0c16:0001: Configuring as mouse
[ 340.864] (II) evdev: HID 0c16:0001: Configuring as keyboard
[ 340.864] (II) evdev: HID 0c16:0001: Adding scrollwheel support
[ 340.864] (**) evdev: HID 0c16:0001: YAxisMapping: buttons 4 and 5
[ 340.864] (**) evdev: HID 0c16:0001: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[ 340.864] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1c.3/0000:04:00.0/usb3/3-1/3-1.3/3-1.3:1.1/input/input6/event6"
[ 340.864] (II) XINPUT: Adding extended input device "HID 0c16:0001" (type: KEYBOARD, id 9)
[ 340.864] (**) Option "xkb_rules" "evdev"
[ 340.864] (**) Option "xkb_model" "pc105"
[ 340.864] (**) Option "xkb_layout" "us"
[ 340.864] (II) evdev: HID 0c16:0001: initialized for relative axes.
[ 340.864] (WW) evdev: HID 0c16:0001: ignoring absolute axes.
[ 340.864] (**) HID 0c16:0001: (accel) keeping acceleration scheme 1
[ 340.864] (**) HID 0c16:0001: (accel) acceleration profile 0
[ 340.865] (**) HID 0c16:0001: (accel) acceleration factor: 2.000
[ 340.865] (**) HID 0c16:0001: (accel) acceleration threshold: 4
[ 340.865] (II) config/udev: Adding input device HID 0c16:0001 (/dev/input/mouse1)
[ 340.865] (II) No input driver specified, ignoring this device.
[ 340.865] (II) This device may have been added with another device file.
[ 340.865] (II) config/udev: Adding input device Chicony USB EL Backlit Keyboard (/dev/input/event2)
[ 340.865] (**) Chicony USB EL Backlit Keyboard: Applying InputClass "evdev keyboard catchall"
[ 340.865] (II) Using input driver 'evdev' for 'Chicony USB EL Backlit Keyboard'
[ 340.865] (**) Chicony USB EL Backlit Keyboard: always reports core events
[ 340.865] (**) evdev: Chicony USB EL Backlit Keyboard: Device: "/dev/input/event2"
[ 340.865] (--) evdev: Chicony USB EL Backlit Keyboard: Vendor 0x4f2 Product 0x533
[ 340.865] (--) evdev: Chicony USB EL Backlit Keyboard: Found keys
[ 340.865] (II) evdev: Chicony USB EL Backlit Keyboard: Configuring as keyboard
[ 340.865] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4/2-1.4:1.0/input/input2/event2"
[ 340.865] (II) XINPUT: Adding extended input device "Chicony USB EL Backlit Keyboard" (type: KEYBOARD, id 10)
[ 340.865] (**) Option "xkb_rules" "evdev"
[ 340.865] (**) Option "xkb_model" "pc105"
[ 340.865] (**) Option "xkb_layout" "us"
[ 340.865] (II) config/udev: Adding input device Chicony USB EL Backlit Keyboard (/dev/input/event3)
[ 340.865] (**) Chicony USB EL Backlit Keyboard: Applying InputClass "evdev keyboard catchall"
[ 340.865] (II) Using input driver 'evdev' for 'Chicony USB EL Backlit Keyboard'
[ 340.866] (**) Chicony USB EL Backlit Keyboard: always reports core events
[ 340.866] (**) evdev: Chicony USB EL Backlit Keyboard: Device: "/dev/input/event3"
[ 340.866] (--) evdev: Chicony USB EL Backlit Keyboard: Vendor 0x4f2 Product 0x533
[ 340.866] (--) evdev: Chicony USB EL Backlit Keyboard: Found keys
[ 340.866] (II) evdev: Chicony USB EL Backlit Keyboard: Configuring as keyboard
[ 340.866] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4/2-1.4:1.1/input/input3/event3"
[ 340.866] (II) XINPUT: Adding extended input device "Chicony USB EL Backlit Keyboard" (type: KEYBOARD, id 11)
[ 340.866] (**) Option "xkb_rules" "evdev"
[ 340.866] (**) Option "xkb_model" "pc105"
[ 340.866] (**) Option "xkb_layout" "us"
[ 340.866] (II) config/udev: Adding input device PIXART USB OPTICAL MOUSE (/dev/input/event4)
[ 340.866] (**) PIXART USB OPTICAL MOUSE: Applying InputClass "evdev pointer catchall"
[ 340.866] (II) Using input driver 'evdev' for 'PIXART USB OPTICAL MOUSE'
[ 340.866] (**) PIXART USB OPTICAL MOUSE: always reports core events
[ 340.866] (**) evdev: PIXART USB OPTICAL MOUSE: Device: "/dev/input/event4"
[ 340.866] (--) evdev: PIXART USB OPTICAL MOUSE: Vendor 0x93a Product 0x2510
[ 340.866] (--) evdev: PIXART USB OPTICAL MOUSE: Found 3 mouse buttons
[ 340.866] (--) evdev: PIXART USB OPTICAL MOUSE: Found scroll wheel(s)
[ 340.866] (--) evdev: PIXART USB OPTICAL MOUSE: Found relative axes
[ 340.866] (--) evdev: PIXART USB OPTICAL MOUSE: Found x and y relative axes
[ 340.866] (II) evdev: PIXART USB OPTICAL MOUSE: Configuring as mouse
[ 340.866] (II) evdev: PIXART USB OPTICAL MOUSE: Adding scrollwheel support
[ 340.866] (**) evdev: PIXART USB OPTICAL MOUSE: YAxisMapping: buttons 4 and 5
[ 340.866] (**) evdev: PIXART USB OPTICAL MOUSE: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[ 340.866] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.0/input/input4/event4"
[ 340.866] (II) XINPUT: Adding extended input device "PIXART USB OPTICAL MOUSE" (type: MOUSE, id 12)
[ 340.866] (II) evdev: PIXART USB OPTICAL MOUSE: initialized for relative axes.
[ 340.866] (**) PIXART USB OPTICAL MOUSE: (accel) keeping acceleration scheme 1
[ 340.866] (**) PIXART USB OPTICAL MOUSE: (accel) acceleration profile 0
[ 340.866] (**) PIXART USB OPTICAL MOUSE: (accel) acceleration factor: 2.000
[ 340.866] (**) PIXART USB OPTICAL MOUSE: (accel) acceleration threshold: 4
[ 340.866] (II) config/udev: Adding input device PIXART USB OPTICAL MOUSE (/dev/input/mouse0)
[ 340.866] (II) No input driver specified, ignoring this device.
[ 340.866] (II) This device may have been added with another device file.
[ 341.141] (II) intel(0): EDID vendor "GSM", prod id 22553
[ 341.141] (II) intel(0): Using EDID range info for horizontal sync
[ 341.141] (II) intel(0): Using EDID range info for vertical refresh
[ 341.141] (II) intel(0): Printing DDC gathered Modelines:
[ 341.141] (II) intel(0): Modeline "1920x1080"x0.0 148.50 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync (67.5 kHz eP)
[ 341.141] (II) intel(0): Modeline "800x600"x0.0 40.00 800 840 968 1056 600 601 605 628 +hsync +vsync (37.9 kHz e)
[ 341.141] (II) intel(0): Modeline "640x480"x0.0 31.50 640 656 720 840 480 481 484 500 -hsync -vsync (37.5 kHz e)
[ 341.141] (II) intel(0): Modeline "640x480"x0.0 25.18 640 656 752 800 480 490 492 525 -hsync -vsync (31.5 kHz e)
[ 341.141] (II) intel(0): Modeline "720x400"x0.0 28.32 720 738 846 900 400 412 414 449 -hsync +vsync (31.5 kHz e)
[ 341.141] (II) intel(0): Modeline "1280x1024"x0.0 135.00 1280 1296 1440 1688 1024 1025 1028 1066 +hsync +vsync (80.0 kHz e)
[ 341.141] (II) intel(0): Modeline "1024x768"x0.0 78.75 1024 1040 1136 1312 768 769 772 800 +hsync +vsync (60.0 kHz e)
[ 341.141] (II) intel(0): Modeline "1024x768"x0.0 65.00 1024 1048 1184 1344 768 771 777 806 -hsync -vsync (48.4 kHz e)
[ 341.141] (II) intel(0): Modeline "800x600"x0.0 49.50 800 816 896 1056 600 601 604 625 +hsync +vsync (46.9 kHz e)
[ 341.141] (II) intel(0): Modeline "1152x864"x0.0 108.00 1152 1216 1344 1600 864 865 868 900 +hsync +vsync (67.5 kHz e)
[ 341.141] (II) intel(0): Modeline "1280x1024"x0.0 108.00 1280 1328 1440 1688 1024 1025 1028 1066 +hsync +vsync (64.0 kHz e)
[ 341.141] (II) intel(0): Modeline "1680x1050"x0.0 119.00 1680 1728 1760 1840 1050 1053 1059 1080 +hsync -vsync (64.7 kHz e)
[ 341.481] (II) intel(0): EDID vendor "GSM", prod id 22553
[ 341.481] (II) intel(0): Using hsync ranges from config file
[ 341.481] (II) intel(0): Using vrefresh ranges from config file
[ 341.481] (II) intel(0): Printing DDC gathered Modelines:
[ 341.481] (II) intel(0): Modeline "1920x1080"x0.0 148.50 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync (67.5 kHz eP)
[ 341.481] (II) intel(0): Modeline "800x600"x0.0 40.00 800 840 968 1056 600 601 605 628 +hsync +vsync (37.9 kHz e)
[ 341.481] (II) intel(0): Modeline "640x480"x0.0 31.50 640 656 720 840 480 481 484 500 -hsync -vsync (37.5 kHz e)
[ 341.481] (II) intel(0): Modeline "640x480"x0.0 25.18 640 656 752 800 480 490 492 525 -hsync -vsync (31.5 kHz e)
[ 341.481] (II) intel(0): Modeline "720x400"x0.0 28.32 720 738 846 900 400 412 414 449 -hsync +vsync (31.5 kHz e)
[ 341.481] (II) intel(0): Modeline "1280x1024"x0.0 135.00 1280 1296 1440 1688 1024 1025 1028 1066 +hsync +vsync (80.0 kHz e)
[ 341.481] (II) intel(0): Modeline "1024x768"x0.0 78.75 1024 1040 1136 1312 768 769 772 800 +hsync +vsync (60.0 kHz e)
[ 341.481] (II) intel(0): Modeline "1024x768"x0.0 65.00 1024 1048 1184 1344 768 771 777 806 -hsync -vsync (48.4 kHz e)
[ 341.481] (II) intel(0): Modeline "800x600"x0.0 49.50 800 816 896 1056 600 601 604 625 +hsync +vsync (46.9 kHz e)
[ 341.481] (II) intel(0): Modeline "1152x864"x0.0 108.00 1152 1216 1344 1600 864 865 868 900 +hsync +vsync (67.5 kHz e)
[ 341.482] (II) intel(0): Modeline "1280x1024"x0.0 108.00 1280 1328 1440 1688 1024 1025 1028 1066 +hsync +vsync (64.0 kHz e)
[ 341.482] (II) intel(0): Modeline "1680x1050"x0.0 119.00 1680 1728 1760 1840 1050 1053 1059 1080 +hsync -vsync (64.7 kHz e)
[ 346.532] (II) evdev: PIXART USB OPTICAL MOUSE: Close
[ 346.532] (II) UnloadModule: "evdev"
[ 346.532] (II) evdev: Chicony USB EL Backlit Keyboard: Close
[ 346.532] (II) UnloadModule: "evdev"
[ 346.532] (II) evdev: Chicony USB EL Backlit Keyboard: Close
[ 346.532] (II) UnloadModule: "evdev"
[ 346.532] (II) evdev: HID 0c16:0001: Close
[ 346.532] (II) UnloadModule: "evdev"
[ 346.532] (II) evdev: HID 0c16:0001: Close
[ 346.532] (II) UnloadModule: "evdev"
[ 346.532] (II) evdev: Power Button: Close
[ 346.533] (II) UnloadModule: "evdev"
[ 346.533] (II) evdev: Power Button: Close
[ 346.533] (II) UnloadModule: "evdev"
[ 346.764] Server terminated successfully (0). Closing log file.

I have a stack of notes generated by the command/script
MYLOG=/media/HBO-RAID/RAID-Storage/MyLog$(date +%T-%d.%m.%y).log; echo '['"code"']' >> ${MYLOG} && uname -a >> ${MYLOG} && lsb_release -a >> ${MYLOG} && for LOGFILE in $(ls /var/log/*.log); do sudo grep -iHw 'segfault\|warning\|error\|critical\|lightdm\|\(WW \)\|\(EE\)' $LOGFILE | tee -a ${MYLOG}; done && echo '['"code"']' >> ${MYLOG}


Right now I'm thinking permissions or similar. It says I don't have rights to login without password, which I normally have this machine set for.
/var/log/auth.log:Dec 19 01:06:23 HBO lightdm: pam_succeed_if(lightdm:auth): requirement "user ingroup nopasswdlogin" not met by user "abe"

Restore Deleted files ubuntu one

I have accidentally deleted all my files on my one account two days ago. I can still see them in
https://edge.one.ubuntu.com/files/trash/root/



but when I click restore, the service is down. Will i ever be able to get my files back, or is there another way to restore them.



Thanks.

Sunday, November 26, 2017

How can i get into GUI mode?

installed ubuntu-12.04.3 server. After installing, i could see only terminal mode login. I Dont see the GUI mode scree. How could i login to GUI mode login? If you need more details please let me know.

Can't open shared libraries (snap)

I have a problem related to the snap Anbox I created for ARM64 devices.



I got it to build successfully, I didn't even get a warning in the priming stage (i.e. I wasn't asked that some files were migrated to the snap or smth).



But when I tried to install it:




snap install --devmode anbox_4-6db91b2_arm64.snap



I got this error:



- Run install hook of "anbox" snap if present (run hook "install":



realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory

realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory



/snap/anbox/x1/usr/bin/anbox: error while loading shared libraries: libdw.so.1: cannot open shared object file: No such file or directory
-----)



Any idea ?




This is my snapcraft.yaml:



name: anbox
version: 4
base: core18
version-script: |
if [ "$SNAPCRAFT_GRADE" = "stable" ]; then
echo $SNAPCRAFT_PROJECT_VERSION
else

echo $SNAPCRAFT_PROJECT_VERSION-$(git rev-parse --short HEAD)
fi
summary: Android in a Box
description: |
Runtime for Android applications which runs a full Android system
in a container using Linux namespaces (user, ipc, net, mount) to
separate the Android system fully from the host.
confinement: devmode
grade: devel
architectures: [arm64]




slots:
dbus-session-slot:
interface: dbus
bus: session
name: org.anbox



plugs:
dbus-session-plug:
interface: dbus

bus: session
name: org.anbox



apps:
anbox:
command: desktop-launch $SNAP/bin/anbox-wrapper.sh
slots:
- dbus-session-slot
plugs:
- x11

- unity7
- network
- opengl
- wayland
- pulseaudio
- home
- process-control
- desktop



container-manager:

command: bin/container-manager.sh start
stop-command: bin/container-manager.sh stop
daemon: simple
plugs:
- firewall-control
- mount-observe
- network-control
- network-bind



collect-bug-info:

command: bin/collect-bug-info.sh
shell:
command: bin/anbox-shell.sh
android-settings:
command: desktop-launch $SNAP/bin/app-android-settings.sh
desktop: desktop/android-settings.desktop
slots:
- dbus-session-slot
plugs:
- dbus-session-plug

- x11
- unity7
- network
- opengl
- wayland
- pulseaudio
- home
- process-control
- desktop




appmgr:
command: desktop-launch $SNAP/bin/app-appmgr.sh
desktop: desktop/appmgr.desktop
slots:
- dbus-session-slot
plugs:
- dbus-session-plug
- x11
- unity7
- network

- opengl
- wayland
- pulseaudio
- home
- process-control
- desktop



parts:
android:
plugin: dump

# This needs to be any directory but not the root one as if we use
# it we get superious permissions errors with the copied .git tree
source: data
build-packages:
- wget
override-build: |
LOCAL_IMAGE=$SNAPCRAFT_PART_INSTALL/../../../android-images/android.img
if [ -f $LOCAL_IMAGE ]; then
echo "Using local image $LOCAL_IMAGE"
cp $LOCAL_IMAGE $SNAPCRAFT_PART_INSTALL/android.img

else
IMAGE_PATH=
IMAGE_NAME=
ARCH=arm64
case "$ARCH" in
arm64)
IMAGE_PATH="2017/08/04"
IMAGE_NAME="android_1_arm64.img"
IMAGE_HASH="e52da14ab5ee6f5274a102193d7e92382a1a7b5b87154f8cf280037bfa7ddb0b"
;;

*)
echo "ERROR: Unknown architecture $ARCH"
exit 1
;;
esac
# FIXME: downloading with a source: field doesn't work as snapcraft
# expects the downloaded file to be an archive it can extract.
echo "Downloading image..."
wget http://build.anbox.io/android-images/$IMAGE_PATH/$IMAGE_NAME
echo "$IMAGE_HASH $IMAGE_NAME" > image-hash

sha256sum -c image-hash
mv $IMAGE_NAME $SNAPCRAFT_PART_INSTALL/android.img
fi
prime:
- android.img



apparmor:
plugin: nil
stage-packages:
- apparmor




zip:
plugin: nil
stage-packages:
- zip
prime:
- usr/bin/zip



lxc:
source: https://github.com/lxc/lxc

source-type: git
source-tag: lxc-3.0.1
build-packages:
- libapparmor-dev
- libcap-dev
- libgnutls28-dev
- libseccomp-dev
- pkg-config
plugin: autotools
configflags:

- --disable-selinux
- --disable-python
- --disable-lua
- --disable-tests
- --disable-examples
- --disable-doc
- --disable-api-docs
- --disable-bash
- --disable-cgmanager
- --enable-apparmor

- --enable-seccomp
- --enable-capabilities
- --with-rootfs-path=/var/snap/anbox/common/lxc/
- --libexecdir=/snap/anbox/current/libexec/
override-build: |
set -ex
git config user.email "buildbot@anbox.io"
git config user.name "Anbox Buildbot"
git remote add anbox https://github.com/anbox/lxc
git fetch anbox

# apparmor: don't require a transition for Anbox child profiles
git cherry-pick 2f81fb7c91560b32e506bb874f8cd63e37985906
set +ex
snapcraftctl build
organize:
snap/anbox/current/libexec: libexec
prime:
- lib/liblxc.so.1
- lib/liblxc.so.1.4.0
- libexec/lxc/lxc-monitord

- bin/lxc-start
- bin/lxc-stop
- bin/lxc-info
- bin/lxc-attach
- bin/lxc-ls
- bin/lxc-top



swiftshader:
plugin: cmake
source: https://swiftshader.googlesource.com/SwiftShader

source-type: git
# Points to latest head of branch android-emulator-current-release
source-commit: 79acc73de8a455f79fb7e458719adc86aa798f07
override-build: |
git submodule update --init
snapcraftctl build
artifacts:
- libEGL.so
- libGLES_CM.so
- libGLESv2.so

organize:
libEGL.so: lib/anbox/swiftshader/libEGL.so
libGLES_CM.so: lib/anbox/swiftshader/libGLES_CM.so
libGLESv2.so: lib/anbox/swiftshader/libGLESv2.so



anbox-scripts:
plugin: dump
source: scripts
organize:
snap-wrapper.sh: bin/anbox-wrapper.sh

container-manager.sh: bin/container-manager.sh
anbox-bridge.sh: bin/anbox-bridge.sh
collect-bug-info.sh: bin/collect-bug-info.sh
app-android-settings.sh: bin/app-android-settings.sh
app-appmgr.sh: bin/app-appmgr.sh
anbox-shell.sh: bin/anbox-shell.sh
prime:
- bin/anbox-bridge.sh
- bin/anbox-shell.sh
- bin/anbox-wrapper.sh

- bin/container-manager.sh
- bin/collect-bug-info.sh
- bin/app-*.sh



anbox-data:
plugin: dump
source: data
prime:
- glvnd
- desktop

- apparmor
- seccomp



anbox:
plugin: cmake
after:
- lxc
- desktop-glib-only
source: .
configflags:

# FIXME: Anbox currently has some paths with hard coded prefixes. Once
# that is fixed we can avoid using a prefix here.
- -DCMAKE_INSTALL_PREFIX:PATH=/usr
- -DANBOX_VERSION=$SNAPCRAFT_PROJECT_VERSION
# FIXME: Once we have everything in place for full snap confinement we
# can securely enable this.
# - -DSNAP_CONFINEMENT=ON
build-packages:
- build-essential
- cmake

- cmake-data
- cmake-extras
- debhelper
- dbus
- google-mock
- libboost-dev
- libboost-filesystem-dev
- libboost-log-dev
- libboost-iostreams-dev
- libboost-program-options-dev

- libboost-system-dev
- libboost-test-dev
- libboost-thread-dev
- libcap-dev
- libdbus-1-dev
- libdw-dev
- libegl1-mesa-dev
- libgles2-mesa-dev
- libgtest-dev
- libprotobuf-dev

- libproperties-cpp-dev
- libsdl2-dev
- libsdl2-image-dev
- libsystemd-dev
- pkg-config
- protobuf-compiler
stage-packages:
- libboost-log1.65.1
- libboost-iostreams1.65.1
- libboost-program-options1.65.1

- libboost-thread1.65.1
- libdb5.3
- libdw1
- libprotobuf-lite10
- libegl1-mesa
- libgles2-mesa
- libgl1-mesa-glx
- libsdl2-2.0-0
- libsdl2-gfx-1.0-0
- libsdl2-image-2.0-0

- libsystemd0
- libblkid1
- libmount1
- libpcre3
- libselinux1
- libuuid1
- zlib1g
- libseccomp2
- libcap2
- libgnutls30

- libhogweed4
- libidn2-0
- libnettle6
- libp11-kit0
- libtasn1-6
- libunistring2
- libbz2-1.0
- libgcc1
- libgcrypt20
- libgpg-error0

- liblzma5
- libtinfo5
- libstdc++6
- libncursesw5
prime:
- usr/bin/anbox
- usr/share/anbox
- usr/lib/aarch64-linux-gnu/



Any help would be appreciated !




Greetings

Live USB backup methods


I'm currently running Ubuntu as a Live USB on a PC which also has Windows installed. However, I've discovered that updating or messing around with the kernel doesn't seem to do great things with the Live version and so after seeing it didn't boot anymore ended-up having to reformat the USB and then start again. Obviously I save all files on a different drive, but I realized that it would be a good idea in future to have a backup of the settings and installed programs and other Ubuntu-specific things to save the hassle in case it happens again.


It occurred to me that instead of using a program to backup only a certain part, considering that the persistence is only 4GB, I could just go into Windows and backup the contents of the entire USB to another drive, say, on a weekly basis, and then if I found it became corrupted or didn't boot for some reason, (assuming it was an issue with the data rather than the MBR) I could go back into Windows and copy the entire contents of the backup to overwrite the data on the USB drive, thereby having what would hopefully be an uncorrupted, but relatively up-to-date fresh version of Ubuntu again, without having to go through the process of reinstalling programs, changing settings, etc.


My question is ... would this very primitive method work? I'm wondering whether there are other aspects of the Live USB system itself which would detect that everything had been replaced. I can't think of anything specifically that might become a problem, but I just want to make sure because obviously otherwise it's not going to be a very useful form of backup! Any assurance or advice would be very appreciated, and please don't laugh at my distinctly string-and-paper approach to technology!



You need not copy the entire contents of the USB drive. Just copy the casper-rw file to the computer as a backup.


casper-rw is the name of the file where the Live USB stores persistent information.


The next time you need to create a USB drive with the same settings and applications, create a live USB using uNetbootin or any other program and copy your backed up copy of casper-rw to it.


CrashPlan only loads from terminal, not desktop


I couldn't find this particular problem I'm having, so here it goes.


On Ubuntu 14.04, I can successfully launch CrashPlan by typing sudo CrashPlan or sudo /usr/local/crashplan/bin/CrashPlanDesktop.


However, when I try to click on the Launcher CrashPlan icon or the desktop icon, nothing happens. The program does not launch. It only works via terminal, for some reason.


What can I do to make the icons work?



CrashPlan desktop does not require sudo (or gksudo in the case of the graphical launcher). Sounds like your install did not run properly. I recommend you reinstall CrashPlan.


Saturday, November 25, 2017

14.04 server PXE installation fails at "Configure the network" page



Tried unattended PXE install, it fails at this page




Network autoconfiguration failed
Your network is probably not using the DHCP protocol. Alternatively,
the DHCP server may be slow or some network hardware is not working
properly.




My DHCP server works fine with 12.04 and all other Linux distributions, such as RHEL and SLES. More importantly, pxelinux.0 is fetched over and the kernel and initrd are downloaded and started. So I assume this should be a client problem instead of server's. In particular, the 14.04 installer problem.




Jump to a shell in the installer, found ifconfig is not available. Tried dhclient, it returns no error (return code is 0 too) but still cannot ping the PXE or DHCP servers. The error for failed ping is "Network is unreachable". tcpdump shows there is not any DHCP request on the DHCP server after the initial one in PXE.



lspci shows all the NICs.



01:00.1 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller
...


Any idea what could have gone wrong?




Other info:



ip link shows the interface is p1p1 but /etc/network/interface shows only eth0 is configured.



~ # ip link
1: lo: mtu 65536 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: p1p1: mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:22:99:b2:00:12 brd ff:ff:ff:ff:ff:ff

3: p2p1: mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:22:99:b2:00:14 brd ff:ff:ff:ff:ff:ff
4: p3p1: mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:22:99:b2:00:10 brd ff:ff:ff:ff:ff:ff
5: eth3: mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:22:99:b2:00:16 brd ff:ff:ff:ff:ff:ff
6: rename6: mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:22:99:b2:00:17 brd ff:ff:ff:ff:ff:ff
7: p2p2: mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:22:99:b2:00:11 brd ff:ff:ff:ff:ff:ff

8: p4p1: mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:22:99:b2:00:13 brd ff:ff:ff:ff:ff:ff
9: p5p1: mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:22:99:b2:00:15 brd ff:ff:ff:ff:ff:ff


/etc/network # cat interfaces



# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).


# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 172.25.0.101
netmask 255.255.255.0

network 172.25.0.0
broadcast 172.25.0.255
gateway 172.25.0.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 172.25.0.1


Append biosdevname=0 to the kernel in the PXE default file, that solves this network problem. The reason can be found in this document:



Reference: Nicnaming – Solving it with Biosdevname



packaging - Is there a debian/ubuntu policy on softlinking things to another location in opt once they're installed?



Is there a debian/ubuntu policy on softlinking things to another location in opt once they're installed properly in usr/share or usr/lib?



Here's a simple example:

Packaging up dnsenum. It's a REALLY simple package (4 files).
A perl script, two wordlists, and a readme.



So from what I gather:
The wordlists should go in usr/share/dnsenum/*
The perl script itself would go in usr/lib/dnsenum/
The readme would go in usr/share/doc/dnsenum/



Add a wrapper bash script that goes in bin and just passes arguments to dnsenum.pl.



The question is this:



If there are various tools that provide wordlists or some other shared resource, is there a policy on linking all the wordlists from different packages in to /opt/wordlists/ ?




It seems like the "right" thing to do respecting the directory structure while still making things convenient.



Ubuntu follows the FHS. Ubuntu packages install everything into /usr/. Runtime data can live in /var/lib/PACKAGENAME, and some critical early-boot things that live outside /usr, in /bin, /lib, etc.



So, your wordlists would go into /usr/share/dnsenum, yes. The script would probably just go into /usr/bin, and the documentation would go into /usr/share/doc/dnsenum.



Ubuntu doesn't put anything in /opt. However, third party applications distributed through the software centre have everything in /opt, to keep them separated from the rest of the system. These are not part of the distribution.



There's nothing special about data that's shared between packages, assuming it's still owned by a single package, depended on, by the others.




An example for word lists is /usr/share/dict/words, provided by dictionaries-common.


16.04 - Can't mount back OS disk partition (no /dev/sda)

I was trying to expand my Azure VM's OS disk and I've unmounted /dev/sda1 which is OS partition in order to do the steps mentioned here: https://docs.microsoft.com/en-us/azure/virtual-machines/linux/expand-disks



But sudo unmount /dev/sda1 didn't do the job as it said "umount: /: target is busy". So I've unmounted the disk with the sudo umount -l /dev/sda1 command. Since then I can't even do sudo in terminal and df -H is not working anymore. It throws "df: cannot read table of mounted file systems: No such file or directory".



When I type sudo, it says "sudo: effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges?"




How can I fix this issue please help. Thanks in advance.

live usb - How do I make a bootable Ubuntu USB?



How do I make an Bootable Ubuntu USB containing the the latest version of Ubuntu?



For completeness, how would I be able to do this on Ubuntu, Windows, OS X or another Linux distro?



This flowchart shows how to make a bootable USB for installing Ubuntu and troubleshoot problems booting Ubuntu from it.




flowchart



Links





How to make an Ubuntu USB on Ubuntu using Startup Disk Creator



Ubuntu has a built-in application for creating a bootable Ubuntu live USB for installing Ubuntu called Startup Disk Creator. Search the Dash for Startup Disk Creator and click the Startup Disk Creator icon to open the Make Startup Disk window.




The USB flash drive that you use with Startup Disk Creator should be 2GB or larger, and for Ubuntu 18.04 and later it should be 4GB or larger. Startup Disk Creator will automatically format your USB flash drive to FAT32 and make it bootable. If you have only one USB flash drive plugged in to your computer, Startup Disk Creator will select it automatically. Be very careful to select the USB flash drive in the Make Startup Disk window in order to avoid overwriting the partition which Ubuntu is installed on, which may make Ubuntu unbootable. In the screenshot below you can see how the USB flash drive Device is identified by its model name, the same model name that appears under the Drive heading after Model: in the Disks (disk utility) application.



Startup Disk Creator
Startup Disk Creator in Ubuntu 16.04



You can also move the Stored in reserved extra space slider back and forth to create some reserved extra space for persistent file storage across reboots. In Ubuntu 16.04 and later Startup Disk Creator no longer has the persistent file storage option.



How to make an Ubuntu Minimal USB using dd





  1. Download the Ubuntu Mini CD iso file from the link on the Ubuntu Documentation Installation Minimal CD webpage. Download the file called mini.iso to your Downloads folder. You can download the mini.iso file to wherever on your computer that you want, but download it to your Downloads folder so that you can easily run the commands in the following steps without changing anything.


  2. Verify the md5 checksum of the Ubuntu mini CD iso file that you downloaded by running these commands:



    cd ~/Downloads/
    md5sum 'mini.iso'


    If you are using Windows Subsystem for Linux download the Microsoft File Checksum Integrity Verifier tool from the official Microsoft Download Center. The Microsoft File Checksum Integrity Verifier tool is a command line utility that computes MD5 or SHA1 cryptographic hashes for files.


  3. Check that the results of the command match the MD5 checksum of the mini.iso file on the Ubuntu Documentation Installation Minimal CD webpage.


  4. Get a USB flash drive, 1GB or larger. Delete all the files from the USB flash drive. Mount the flash drive using the Disks disk utility.



  5. Check in the Disks disk utility to find out the device name of your USB flash drive. This is very important because if you use the wrong device name in step 6, you will overwrite your whole operating system instead of writing to the USB flash drive. So check the USB flash drive device name twice. It should be something like /dev/sd* where instead of the * character there is a lower case letter like a, b, c, etc. In the following step I am assuming that the device name is /dev/sdc, but the device name of your USB drive could be something else like /dev/sda or /dev/sdb so check the device name of your USB drive twice and make sure that you get it right in step 6!


  6. Open the terminal or Windows Subsystem for Linux and run the following commands:



    cd ~/Downloads/  
    sudo -i
    dd if='mini.iso' of=/dev/sdc bs=4096 ## make sure that the device name of your USB drive is correct!


    The dd if='mini.iso' of=/dev/sdc bs=4096 command should take only a few seconds to complete on most computers because the mini.iso is a small file, less than 60MB. The result of running this command will be a bootable Ubuntu mini USB.


  7. Boot the computer from the Ubuntu mini live USB. The Ubuntu mini live USB should boot successfully and show a menu screen.



  8. If you select the Install option (the complete install, not the cli install) from the menu screen in Step 7, then you can select other options during the Ubuntu installation process to download all the packages that you need to perform a complete Ubuntu installation. Select the Ubuntu desktop package collection from the list of predefined collections of software in the Software selection screen in the Ubuntu mini CD installer. When you restart the system at the end of the installation, you will have a working Ubuntu desktop with the default desktop environment.



    enter image description here




How to create a bootable USB stick on OS X/macOS




11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...