跳至主要内容

博文

目前显示的是标签为“linux”的博文

archlinux mariadb installation

# pacman -S mariadb # mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql # systemctl enable mysqld.service # systemctl start mysqld.service # mysql_secure_installation 遗忘root密码的话,类似windows下: # systemctl stop mysqld.service # mysqld_safe --skip-grant-tables & # mysql -u root mysql mysql> UPDATE mysql.user SET Password=PASSWORD('MyNewPass') WHERE User='root'; mysql> FLUSH PRIVILEGES; mysql> exit

How can I create a Windows bootable USB stick using Ubuntu?

even other Linux distros as long as  GParted  and  GRUB  are installed. Install GParted and GRUB on Ubuntu with: sudo apt-get install gparted grub-pc-bin p7zip-full ntfs-3g For BIOS: MBR partition scheme Rewrite the partition table as  msdos  and format your USB drive as  NTFS  using GParted (and then "Manage flags" and add the  boot  flag). In GParted, right click the USB partition and select  Information . Copy the UUID somewhere as you will need it. Copy all files from mounted Windows ISO or DVD to USB drive using your favorite file manager. Go to USB drive and if the folder named  boot  has uppercase characters, make them all lowercase by renaming it. Install GRUB on USB: sudo grub-install --target=i386-pc --boot-directory="/<USB_mount_folder>/boot" /dev/sdX Create a GRUB config file in the USB drive folder  boot/grub  with the name  grub.cfg . Write this into the file: echo "If...

debian install jdk

sudo apt-get install software-properties-common When prompted to confirm the installation, type  y  for yes. To ensure that we get the correct source line on Debian, we’ll need to run the following command that also modifies the line: sudo add-apt-repository "deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main" Once we do that we’ll need to update: sudo apt-get update Now we’ll go through the installation process of different versions of Java. You can decide which versions you would like to install, and can choose to install one or several. Because it’s the latest stable release, Oracle JDK 8 is the recommended version at the time of writing. Oracle JDK 8 Oracle JDK 8 is the latest stable version of Java at time of writing. You can install it using the following command: sudo apt-get install oracle-java8-installer

inkscape linux svg

Open Inkscape. Choose  "File - Import"  to import a bitmap file. Choose to  "embed"  the image. Select the image with the select tool ( ↖ ). Select  Path - Trace Bitmap...  for settings (below shown for 2 colors =  "Scans" ): Select  "Update"  for a preview until settings are fine. Start tracing with  "OK" .

arch dns server

sudo pacman -S pdnsd vim /usr/share/doc/pdnsd/pdnsd.conf cp /usr/share/doc/pdnsd/pdnsd.conf /etc/ pdnsd

linux system monitor

KDE System Guard: pacman -S ksysguard Top: $top

Arch linux 命令行连接wifi,联网

Archlinux: ifconfig  wlp3s0 down #(wifi-menu  可以搜索附近wifi) cp /etc/netctl/example/wireless-wpa  /etc/netctl nano /etc/netctl/wireless-wpa(修改其中的:essid  ,Interface,Key) systemctl stop NetworkManager(因为会有冲突) netctl start wireless-wpa pacman -R networkmanager-dispatcher-ntpd pacman -R networkmanager 开机启动:systemctl enbale netctl-auto@wireless-wpa.service

linux set up mouse via terminal

SET mouse to LiftHand: xmodmap -e "pointer = 3 2 1" in a terminal should work. If you want to run that command at the start of lightdm (the default login screen), you can edit /etc/lightdm/lightdm.conf like described here - use the xmodmap command instead of xbacklight in the script, of course.