2018年10月28日 星期日

Ubuntu 快捷鍵

1、超級鍵(Win鍵) – 打開dash。

2、長按超級鍵 – 啟動Launcher。

3、按住超級鍵,再按1,2,3等數字鍵 – 從Launcher打開一個應用程序,當你按住超級鍵時,每個應用程序圖標上都會顯示一個數字,按下對應的數字就會打開蓋應用程序。

4、Alt+F1 – 將鍵槃焦點移到Launcher上,使用箭頭鍵進行移動,按回車即可啟動一個應用程序,按下右箭頭鍵顯示Quicklist。

5、Alt+F2 – 以特殊模式打開dash,以便運行任何命令。

6、超級鍵+A – 從Launcher打開應用程序窗口。

7、超級鍵+F – 從Launcher打開文件和文件夾窗口。

8、超級鍵+W – 伸展模式,縮小所有工作空間中的窗口。

9、超級鍵+D – 最小化所有窗口(即顯示桌面),再按一次恢復所有窗口。

10、超級鍵+T – 打開回收站。

11、超級鍵+S – Expo模式,縮小所有工作空間,允許你管理窗口。

12、Ctrl+Alt+T – 啟動Terminal。

13、Ctrl+Alt+L – 鎖住屏幕。

14、Ctrl+Alt+上/下/左/右鍵 – 移動到新的工作空間。

15、Ctrl+Alt+Shift+上/下/左/右鍵 – 將窗口放入新的工作空間。

16、F10 – 打開頂部面板的第一個菜單,使用箭頭鍵瀏覽菜單項。

下面是Ubuntu Unity支持的一些鼠標快捷鍵:

1、在Launcher中,可以拖動圖標對應用程序重新排序。

2、可以直接從Launcher將圖標拖動到回收站,將應用程序從Launcher中移除。

3、光標移到屏幕左側,停止不動几秒,將會啟動Unity Dock。

4、將光標移到左上角(接近Ubuntu圖標),也會啟動Unity Dock。

5、如果Launcher中的應用程序太多,可以滾動鼠標滾輪快速移動。

6、當光標在頂部面板的“聲音”圖標上時,可以通過鼠標滾輪來調整系統音量(放大或降低)。

7、在一個應用程序的Launcher圖標上點擊鼠標中鍵(按一下滾輪),將在一個新的窗口中打開應用程序,有時這個功能非常有用,在筆記本上,衕時按下左/右方向鍵也會達到衕樣的效果。

8、最大化 – 拖動窗口靠近頂部面板會自動最大化。

9、恢復窗口大小 – 向下拖動窗口或雙擊窗口。

10、平鋪 – 將窗口拖向左/右側。

下面是一個有用的窗口管理快捷鍵:

1、Alt+F10 – 在最大化/非最大化之間切換當前窗口。

2、Alt+F9 – 最小化當前窗口。

3、Alt+Tab – 在當前打開的窗口之間切換。

4、Alt+F4 – 關閉當前窗口。

5、Alt+F7 – 移動當前窗口(可以使用鍵槃或鼠標移動)。

ubuntu 11.04自動隱藏右邊啟動欄,安裝:sudo apt-get install compizconfig-settings-manager。然后在里面的桌面中的Ubuntu Unity Plugin中設置。


Jump directly to a specific panel by passing its name to gnome-control-center:
gnome-control-center display
Ubuntu 14.04 or later:

unity-control-center display


2018年10月18日 星期四

LEAP 15 fix update error

Problems:















newbie@linux-hdi0:~> ping 127.0.0.1
PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.048 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.085 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.084 ms
^C
--- 127.0.0.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2027ms
rtt min/avg/max/mdev = 0.048/0.072/0.085/0.018 ms
newbie@linux-hdi0:~>



newbie@linux-hdi0:~> nslookup www.google.com
;; connection timed out; no servers could be reached

newbie@linux-hdi0:~>

Fix Command:
systemctl restart network


netconfig -f update


Problems:
stop reached target shutdown
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi=force"
if not work change to 

GRUB_CMDLINE_LINUX="reboot=b intremap=no_x2apic_optout acpi_osi=Linux initcall_blacklist=pcc_init"

stop starting show plymouth boot screen
f configuring the boot loader that way : 
yast
  • System
    • Boot Loader
      • Boot Loader Options
        • Optional Command Line Parameter

Replace splash=silent by splash=verbose


Right now I can think of the following options:
- Change the kernel boot option "splash=silent" to "splash=verbose"
- Disable plymouth by adding "plymouth.enable=0" to the kernel boot options
- uninstall plymouth completely

2018年10月3日 星期三

2018年9月27日 星期四

Fedora Changes/WaylandByDefault

Source:https://fedoraproject.org/wiki/Changes/WaylandByDefault

🔗 Wayland By Default

🔗 Summary

Change the default session selection in gdm to prefer the Wayland-based GNOME session over the X11-based one.

🔗 Owner

🔗 Current status

  • Targeted release: Fedora 25
  • Last updated: 2016-08-23
  • Tracker bug: 1277927

🔗 Detailed Description

We will change GDM to use wayland by default for GNOME. The code will automatically fall back to Xorg in cases where wayland is unavailable (like nvidia). Users will be able to disable wayland by setting WaylandEnable=false in /etc/gdm/custom.conf but there will no longer be two separate menu items for GNOME on Wayland and GNOME on X11.

🔗 Benefit to Fedora

Using Wayland instead of X gives a much better basis for isolating applications from each other and the system.

🔗 Scope

  • Proposal owners:
    • merge the gnome-wayland.desktop and gnome.desktop into one file that is distributed into both /usr/share/wayland-sessions and /usr/share/xsessions. since they have same filename, the wayland one will "win". - DONE
    • Make gdm hide Wayland sessions from the session chooser if we know they will not work (because the login screen had to fall back to X) - DONE
    • Close remaining feature parity gaps between the Wayland and the X11 session:
      • See the Wayland features page for a complete list of features.
      • game support - Wayland and mutter are DONE, missing support in Xwayland and SDL
      • details panel in control center needs to show hardware graphics device
      • input methods - DONE
      • on-screen keyboard - DONE
      • hi-dpi support - DONE
      • tablet support - GTK+ side DONE, control-center side still in progress
      • startup notification - DONE
      • touch proxy for xwayland - DONE
      • accessibility features - Screen reader and visual bell are DONE
      • output rotation / randr like features - DONE
      • triple-monitor setups (like [this])
      • primary selection - DONE (discussion)
      • dnd actions and cancellation - DONE
  • Other developers:
    • GTK+ applications that use X11-specific APIs need to be patched to explicitly use the GDK X backend
    • Popup and dialog placement issues in applications
  • Release engineering: No release engineering changes needed
  • Policies and guidelines: No policy or guideline changes needed

🔗 Upgrade/compatibility impact

Systems using certain graphics hw or graphics drivers (matrox, qxl) may have problems running the Wayland session. In these (rare) cases, users may have to configure gdm to use X11 (although automatic fallback should work most of the time). If we don't manage to close all the feature parity gaps entirely, then users relying on those features may have to choose the X11-based session.

🔗 How To Test

  1. Boot a fresh F25 workstation install.
  2. Verify that the login screen is running under Wayland (you can do so by looking for a process called gdm-wayland-session in ps -ef output)
  3. Verify that the session chooser offers 'GNOME', 'GNOME on X11' and 'GNOME Classic', and that 'GNOME' is selected by default.
  4. Log into all three of these sessions and verify that 'GNOME' gives you Wayland (you can verify this by bringing up the GTK+ inspector in a gtk3 application and checking what backend is used), while the other two end up with X11.
  1. Change the gdm configuration by adding WaylandEnable=false and reboot
  2. Verify that the login screen comes up under X
  3. Verify that only X-based sessions are offered in the session chooser
  1. Log into the Wayland-based session again
  2. Use the desktop normally, and verify that there are no obvious instabilities, or Wayland-specific bugs or performance problems

🔗 User Experience

The user experience of the Wayland session is identical to that of the X session.

🔗 Dependencies

The tasks lists in the Scope section are spread across a number of upstream modules and packages: gtk3, gnome-shell, mutter, libinput, Xorg, gdm.

🔗 Contingency Plan

  • Contingency mechanism: Rename /usr/share/wayland-sessions/gnome.desktop to /usr/share/wayland-sessions/gnome-wayland.desktop so it doesn't preempt the X11 session file anymore, thereby keeping the X-based session as the default and adding wayland back to the list.
  • Contingency deadline: beta
  • Blocks release? no
  • Blocks product? no

🔗 Documentation

TBD

🔗 Release Notes

TBD

How to disable Wayland and enable Xorg display server on Ubuntu 18.04 Bionic Beaver Linux

Objective

The default Ubuntu 18.04 Bionic Beaver installation comes with Wayland enabled. The objective is to disable Wayland and enable Xorg display server instead.

Operating System and Software Versions

  • Operating System: - Ubuntu 18.04 Bionic Beaver
  • Software: - GDM3

Requirements

Privileged access to is required to perform this configuration.

Difficulty

EASY

Conventions

  • # - requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
  • $ - requires given linux commands to be executed as a regular non-privileged user

Instructions

Configure GDM3

As a privileged administrator user use your text editor to perform the following changes of the GDM3 custom configuration file /etc/gdm3/custom.conf.
FROM:
#WaylandEnable=false
TO:
WaylandEnable=false
By uncommenting the above line your system will use the Xorg display manager instead of Wayland next time it boots.

Reboot

Reboot your system to apply the changes.

2018年9月12日 星期三

Upgrading Fedora 27 Workstation to Fedora 28

Soon after release time, a notification appears to tell you an upgrade is available. You can click the notification to launch the GNOME Software app. Or you can choose Software from GNOME Shell.
Choose the Updates tab in GNOME Software and you should see a window like this:

If you don’t see anything on this screen, try using the reload tool at the top left. It may take some time after release for all systems to be able to see an upgrade available.
Choose Download to fetch the upgrade packages. You can continue working until you reach a stopping point, and the download is complete. Then use GNOME Software to restart your system and apply the upgrade. Upgrading takes time, so you may want to grab a coffee and come back to the system later.

Using the command line

If you’ve upgraded from past Fedora releases, you are likely familiar with the dnf upgrade plugin. This method is the recommended and supported way to upgrade from Fedora 27 to Fedora 28. Using this plugin will make your upgrade to Fedora 28 simple and easy.

1. Update software and back up your system

Before you do anything, you will want to make sure you have the latest software for Fedora 27 before beginning the upgrade process. To update your software, use GNOME Software or enter the following command in a terminal.
sudo dnf upgrade --refresh
Additionally, make sure you back up your system before proceeding. For help with taking a backup, see the backup series on the Fedora Magazine.

2. Install the DNF plugin

Next, open a terminal and type the following command to install the plugin:
sudo dnf install dnf-plugin-system-upgrade

3. Start the update with DNF

Now that your system is up-to-date, backed up, and you have the DNF plugin installed, you can begin the upgrade by using the following command in a terminal:
sudo dnf system-upgrade download --releasever=28
This command will begin downloading all of the upgrades for your machine locally to prepare for the upgrade. If you have issues when upgrading because of packages without updates, broken dependencies, or retired packages, add the ‐‐allowerasingflag when typing the above command. This will allow DNF to remove packages that may be blocking your system upgrade.

4. Reboot and upgrade

Once the previous command finishes downloading all of the upgrades, your system will be ready for rebooting. To boot your system into the upgrade process, type the following command in a terminal:
sudo dnf system-upgrade reboot
Your system will restart after this. Many releases ago, the fedup tool would create a new option on the kernel selection / boot screen. With the dnf-plugin-system-upgradepackage, your system reboots into the current kernel installed for Fedora 27; this is normal. Shortly after the kernel selection screen, your system begins the upgrade process.
Now might be a good time for a coffee break! Once it finishes, your system will restart and you’ll be able to log in to your newly upgraded Fedora 28 system.
Upgrading Fedora: Upgrade complete!

Resolving upgrade problems

On occasion, there may be unexpected issues when you upgrade your system. If you experience any issues, please visit the DNF system upgrade wiki page for more information on troubleshooting in the event of a problem.
If you are having issues upgrading and have third-party repositories installed on your system, you may need to disable these repositories while you are upgrading. For support with repositories not provided by Fedora, please contact the providers of the repositories.