Elementary OS

Some problem in using Elementary OS.

Install NVIDIA driver

  1. First, you should removed everything related with nvidia
    $ sudo apt-get remove bumblebee (if installed)
    $ sudo apt-get remove nvidia*
    
  2. Add the ppa
    $ sudo add-apt-repository ppa:graphics-drivers/ppa
    $ sudo apt update
    
  3. And install the proper deriver
    $ sudo apt-get install nvidia-xxx
    
  4. update the pci infor
    $ sudo update-pciids
    

Long boot time

  1. Print the boot time, dispaly the tree
    $ systemd-analyze critical-chain
    
  2. And found bug in dbus
    $ sudo mv /etc/xdg/autostart/at-spi-dbus-bus.desktop /etc/xdg/autostart/at-spi-dbus-bus.desktop.bk
    
  3. NOTE
    1. display more-less start time
      $ systemd-analyze blame
      
    2. display all startup time
      $ systemd-analyze
      
    3. disable someone service
      $ sudo systemctl disable XXX.service
      

Elan Figerprint

  1. check the fingerprint sensors.supported reader(04f3: 0903, 0907, 0c01-0c33)
    $ sudo update-usbids
    $ lsusb
    Bus 001 Device 003: ID 04f3:0c1a Elan Microelectronics Corp.
    
  2. because the official libfprint don't support the Elan,so you must compile the libfprint with ElanTech fingerprint reader driver.
    $ git clone [email protected]:iafilatov/libfprint.git
    $ cd libfprint
    $ ./autogen.sh
    $ ./configure
    $ make & sudo make install
    
  3. install the fprint-demo and check fingerprint sensor's status
    $ sudo apt install fprint-demo
    $ sudo fprint-demo
    
  4. if fprint-demo can recognize the Elan fingureprint sensor(correctly installed the libfprint driver),uninstall the fprint-demo.if fprint-demon can't recognize the Elan fingureprint sensor,do not go on.
    $ sudo apt remove --purge fprint-demo
    
  5. install the fprintd.
    $ sudo add-apt-repository ppa:fingerprint/fprint
    $ sudo apt-get update
    $ sudo apt install fprintd
    # NOTE:DON'T INSTALL THE libfprint0
    
  6. enroll fingerprint
    # for current user,so don't sudo
    $ fprintd-enroll
    $ fprintd-verify
    
  7. if the fprintd can verfy your fingerprint,install the pam module.
    Verify result: verify-match (done)
    $ sudo apt install libpam-fprintd
    
  8. if you didn't modified the file of "/etc/pad.d/common-auth",do not do the following.
    $ sudo pam-auth-update --force
    
  9. remove the ppa which added just,because it will push the upgrade for libfprint0.
    $ sudo add-apt-repository -r ppa:fingerprint/fprint
    
  10. reboot and enjoy your Elan fingureprint sensor.

Power notification

  • use the UPower
    $ sudo vi  /etc/UPower/UPower.conf
    
    1. if
      UsePercentageForPolicy=true
      
    2. edit
      PercentageLow=20
      PercentageCritical=10
      PercentageAction=5
      

Use xkb modify key mapping

  1. print current mapping
    # setxkbmap -print
    xkb_keymap {
     xkb_keycodes  { include "evdev+aliases(qwerty)"    };
     xkb_types     { include "complete"    };
     xkb_compat    { include "complete"    };
     xkb_symbols   { include "pc+us+inet(evdev)"    };
     xkb_geometry  { include "pc(pc105)"    };
    };
    
    • In xkb_symbols,the file of pc we will modify.
  2. backup
    # cd /usr/share/X11/xkb
    # tar -cvf symbols.tar symbols
    
  3. exchange Caps and L_Ctrl
    # vi symbols/pc
    key <CAPS> {  [ Control_L   ] }
    key <LCTL> {  [ Caps_Lock   ] }
    
    • save the file
  4. logout and login in again.

Pair QC35 use bluetooth

Get back to a clean state

  • clean up you past attempts to pair
    • On Ubuntu, remove the headphones from the Bluetooth paired list.
    • On the headphones, hold the switch in Bluetooth pairing position for 10 seconds to delete all paired devices.
    • deactivate Bluetooth on other surrounding devices.

Deactivate Bluetooth LE

  1. Edit Bluetooth configuration file
    sudo nano /etc/bluetooth/main.conf
    
  2. Replace
    #ControllerMode = dual
    
  3. with
    ControllerMode = bredr
    
  4. Restart Bluetooth
    sudo service bluetooth restart
    

Pair

  1. Make sure the headphones are in pairing mode.
  2. Pair with System Settings > Bluetooth
  3. Select & test the headphones in System Settings > Sound. You may want to choose High Fidelity Playback (A2DP Sink) for high playback quality.

Debian apt cdrom error

Appear "in the drive '/cdrom/' and press [Enter]"

  1. Edit file
    # vi /etc/apt/sources.list
    
  2. comment or delete the line that contain 'cdrom'
  3. update
    # apt update
    

Long time to resolve name

Whether ipv6 on/off

$ ifconfig

check if an ipv6(inet6) appear.

Temporarily turn ipv6 off

$ sudo sh -c 'echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6'

turn ipv6 off on all interface.

Permanently turn ipv6 off

$ sudo vim /etc/sysctl.d/99-sysctl.conf
# and append the following in this conf file
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
net.ipv6.conf.wlp2s0.disable_ipv6 = 1
# and run the command
$ sudo sysctl -p

If the above does not work

$ sudo vi /etc/default/grub
GRUB_CMDLINE_LINUX="ipv6.disable=1"
$ sudo update-grub

Emerge wait time on grub menu

Modify the file

vi /boot/grub/grub.cfg
if [ $grub_platform = efi ]; then
  set timeout=0 # set to 0

NOTE:above is not suitable

modify the following file

vi /etc/grub.d/00_header
if [ \$grub_platform = efi ]; then
  set timeout=${GRUB_RECORDFAIL_TIMEOUT:-30} # set to 0

Don't appear login screen

There is no login screen after suspend when device use a additional monitor

  1. check what do you use. lightdm or gdm
    cat /etc/passwd | grep lightdm
    
  2. for example, use lightdm
    1. Set a monitor setting, and save it.
    2. Copy the file, and change the owner and group.
      sudo cp ~/.config/monitors.xml ~lightdm/.config/monitors.xml
      sudo chown lightdm:lightdm ~lightdm/.config/monitors.xml
      

Display tray icons

  1. indicator-application
    1. indicator-application is installed by default in elementary OS 5.0 Juno but it needs a tweak to work with Pantheon.
    2. copying the /etc/xdg/autostart/indicator-application.desktop file to ~/.config/autostart
      cp /etc/xdg/autostart/indicator-application.desktop ~/.config/autostart/
      sed -i 's/^OnlyShowIn.*/OnlyShowIn=Unity;GNOME;Pantheon;/' ~/.config/autostart/indicator-application.desktop
      
  2. wingpanel-indicator-ayatana
    1. wingpanel-indicator-ayatana is no longer available in elementary OS 5.0 Juno
    2. download and install this package
      wget http://ppa.launchpad.net/elementary-os/stable/ubuntu/pool/main/w/wingpanel-indicator-ayatana/wingpanel-indicator-ayatana_2.0.3+r27+pkg17~ubuntu0.4.1.1_amd64.deb
      sudo dpkg -i wingpanel-indicator-ayatana_2.0.3+r27+pkg17~ubuntu0.4.1.1_amd64.deb
      

Gala collapse

When swith windows using alt+tab, gala collapse

  1. go to the VT.
    1. Ctrl + Alt + F1
  2. kill gala
    # killall gala
    
  3. restart gala
    # nohup sh -c "DISPLAY=:0 gala --replace" >> /dev/null 2>&1 &
    

Recover the system

Can't into recovery mode, and can't boot into tty

  1. use liveCD
  2. boot from liveCD, boot into living system, not install system
  3. sudo passwd elementary # depend your user,set a sudo password
  4. sudo mount /dev/... /mnt # mount the previous root part
  5. sudo chroot /mnt # change the root dir
  6. do what you want, recover the os.

results matching ""

    No results matching ""